1 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
3 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
4 update uses to use new macro arguments.
5 (__LD3_LANE_FUNC): Likewise.
6 (__LD4_LANE_FUNC): Likewise.
8 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
10 * config/aarch64/aarch64-builtins.c
11 (aarch64_types_loadstruct_lane_qualifiers): Define.
12 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13 ld4_lane): New builtins.
14 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
16 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
17 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
18 (aarch64_ld2_lane<mode>): New expand.
19 (aarch64_ld3_lane<mode>): Likewise.
20 (aarch64_ld4_lane<mode>): Likewise.
21 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
22 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
24 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
26 * avr-protos.h (avr_out_sign_extend): New.
27 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
28 (avr_out_sign_extend): New function.
29 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
30 (extendhisi2, extendpsisi2): Use it.
31 (adjust_len) [sext]: New.
33 2014-10-24 Martin Liska <mliska@suse.cz>
35 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
38 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
41 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
42 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
43 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
45 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
49 * config/aarch64/aarch64.c (is_mem_p): Delete.
50 (is_memory_op): Rename to...
51 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
52 (dep_between_memop_and_curr): Assert that the input is a SET.
53 (aarch64_madd_needs_nop): Add comment. Do not call
54 dep_between_memop_and_curr on NULL body.
55 (aarch64_final_prescan_insn): Add comment.
58 2014-10-24 Richard Biener <rguenther@suse.de>
60 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
61 to genmatch BUILD_LIBS instead.
63 2014-10-24 Richard Biener <rguenther@suse.de>
65 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
66 and build_call_expr_loc.
67 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
68 non_lvalue_loc to build it for GENERIC.
69 (decision_tree::gen_generic): Add location argument to
70 generic_simplify prototype.
71 (capture_info): New class.
72 (capture_info::capture_info): New constructor.
73 (capture_info::walk_match): New method.
74 (capture_info::walk_result): New method.
75 (capture_info::walk_c_expr): New method.
76 (dt_simplify::gen): Handle preserving side-effects for
77 GENERIC code generation.
78 (decision_tree::gen_generic): Do not reject operands
79 with TREE_SIDE_EFFECTS.
80 * generic-match.h: New file.
81 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
82 * match.pd: Add some constant folding patterns from fold-const.c.
83 * fold-const.c: Include generic-match.h.
84 (fold_unary_loc): Dispatch to generic_simplify.
85 (fold_ternary_loc): Likewise.
86 (fold_binary_loc): Likewise. Remove patterns now implemented
88 * gimple-fold.c (replace_stmt_with_simplification): New function.
89 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
90 (no_follow_ssa_edges): New function.
91 (fold_stmt): New overload with valueization hook. Use
92 no_follow_ssa_edges for the overload without hook.
93 (fold_stmt_inplace): Likewise.
94 * gimple-fold.h (no_follow_ssa_edges): Declare.
96 2014-10-24 Felix Yang <felix.yang@huawei.com>
97 Jiji Jiang <jiangjiji@huawei.com>
100 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
101 (__LD3R_FUNC): Ditto.
102 (__LD4R_FUNC): Ditto.
103 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
104 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
105 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
106 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
107 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
108 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
109 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
110 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
111 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
112 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
113 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
114 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
115 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
116 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
117 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
118 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
119 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
120 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
121 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
122 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
123 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
125 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
126 (aarch64_simd_ld3r<mode>): Likewise.
127 (aarch64_simd_ld4r<mode>): Likewise.
128 (aarch64_ld2r<mode>): New expand.
129 (aarch64_ld3r<mode>): Likewise.
130 (aarch64_ld4r<mode>): Likewise.
132 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
134 * rtlanal.c (get_base_term): Handle SCRATCH.
136 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
138 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
141 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
143 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
144 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
145 (max_issue, choose_ready, sched_init): Update.
147 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
149 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
150 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
151 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
152 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
153 (print_rank_for_schedule_stats): Print out elements of ready list that
154 ended up on their respective places due to each of the sorting
156 (ready_sort): Update.
157 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
158 (schedule_block): Update.
160 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
162 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
163 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
164 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
165 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
166 (model_start_schedule): Update.
167 (sched_pressure_start_bb): New static function. Calculate
168 sched_class_regs_num.
169 (schedule_block): Use it.
170 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
172 2014-10-24 Richard Biener <rguenther@suse.de>
174 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
175 host library and make sure to pull in the required libintl
176 and libiconv dependencies.
178 2014-10-24 Richard Biener <rguenther@suse.de>
180 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
182 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
185 * collect2.c (main): Filter out -fno-lto.
187 2014-10-24 Martin Liska <mliska@suse.cz>
189 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
190 division by zero in dumps.
191 (sem_item_optimizer::merge_classes): Ditto.
193 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
195 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
197 2014-10-23 Ian Lance Taylor <iant@google.com>
199 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
201 2014-10-23 Ian Lance Taylor <iant@google.com>
203 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't define.
205 2014-10-23 Jakub Jelinek <jakub@redhat.com>
208 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
209 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
210 instead of only handling autoinc in dest if it is a MEM.
211 (vt_stack_adjustments): Fix up formatting.
213 2014-10-23 DJ Delorie <dj@redhat.com>
215 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
216 independend of -mlarge.
217 * config/msp430/constraints.md (Ys): Update comment.
219 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
223 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
225 * dse.c (deletable_insn_p): Likewise.
227 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
229 * config/avr/avr.c: Fix GNU coding rules and typos.
230 * config/avr/avr.h: Dito.
231 * config/avr/avr-c.c: Dito.
232 * config/avr/avr.md: Dito.
234 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
236 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
238 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
240 (define_expand "abs<mode>2"): Ditto.
242 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
244 * tree-core.h (tree_var_decl): Extend `function_code' field
245 by one bit, move `regdecl_flag' field to ...
246 (tree_decl_with_vis): Here.
247 * tree.h (DECL_STATIC_CHAIN): Update struct name.
249 2014-10-23 Richard Biener <rguenther@suse.de>
251 * Makefile.in (BUILD_CPPLIB): Add.
252 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
255 2014-10-23 Richard Biener <rguenther@suse.de>
257 * fold-const.c (fold_binary_loc): Preserve side-effects of
258 X - X when simplifying to 0.
259 * stor-layout.c (finish_bitfield_representative): Strip
260 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
262 2014-10-22 Richard Biener <rguenther@suse.de>
263 Tobias Burnus <burnus@net-b.de>
266 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
268 2014-10-22 Dehao Chen <dehao@google.com>
270 * auto-profile.c: Change order of header files.
272 2014-10-22 Guozhi Wei <carrot@google.com>
274 PR tree-optimization/63530
275 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
276 pointer alignment according to DR_MISALIGNMENT.
278 2014-10-22 David Malcolm <dmalcolm@redhat.com>
280 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
282 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
284 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
285 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
286 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
287 * dominance.h: New. Add prototypes for dominance.c.
288 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
289 * cfghooks.h: (struct profile_record) Relocate here.
290 Relocate 2 prototypes from basic-block.h.
291 * basic-block.h: Move prototypes and struct to new header files.
292 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
293 * rtl.h: Move a few prototypes to new header files.
294 * cfgcleanup.c (merge_memattrs): Make static.
295 * genopinit.c (main): Add predict.h to list of includes.
296 * predict.h: Update prototype list to match predict.c.
297 * predict.c (maybe_hot_count_p): Export.
298 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
299 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
300 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
301 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
302 * profile.h: Adjust prototypes.
303 * ifcvt.h: New. Relocate struct ce_if_block here.
304 * ifcvt.c: Include ifcvt.h.
305 * config/frv/frv.c: Include ifcvt.h.
306 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
308 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
310 * lra.c (lra): Remove call to recog_init.
311 * config/i386/i386.md (preferred_for_speed): New attribute
312 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
313 "enabled". Remove check for sched1.
315 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
317 * recog.h (recog_data_d): Remove enabled_alternatives.
318 * recog.c (extract_insn): Don't set it.
319 * reload.c (find_reloads): Call get_enabled_alternatives.
321 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
323 * recog.h (constrain_operands): Add an alternative_mask parameter.
324 (constrain_operands_cached): Likewise.
325 (get_preferred_alternatives): Declare new form.
326 * recog.c (get_preferred_alternatives): New bb-taking instance.
327 (constrain_operands): Take the set of available alternatives as
329 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
330 (extract_constrain_insn_cached): Update calls to constrain_operands.
331 * caller-save.c (reg_save_code): Likewise.
332 * ira.c (setup_prohibited_mode_move_regs): Likewise.
333 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
334 * ree.c (combine_reaching_defs): Likewise.
335 * reload.c (can_reload_into): Likewise.
336 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
337 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
338 (emit_insn_if_valid_for_reload): Likewise.
339 * reorg.c (fill_slots_from_thread): Likewise.
340 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
341 * config/pa/pa.c (pa_can_combine_p): Likewise.
342 * config/rl78/rl78.c (insn_ok_now): Likewise.
343 * config/sh/sh.md (define_peephole2): Likewise.
344 * final.c (final_scan_insn): Update call to constrain_operands_cached.
346 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
348 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
350 * genattr.c (main): Handle "preferred_for_size" and
351 "preferred_for_speed" in the same way as "enabled".
352 * recog.h (bool_attr): New enum.
353 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
354 (get_preferred_alternatives, check_bool_attrs): Declare.
355 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
356 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
358 (get_enabled_alternatives): Use get_bool_attr_mask.
359 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
360 instead of recog_data.enabled_alternatives.
361 * ira.c (ira_setup_alts): Likewise.
362 * postreload.c (reload_cse_simplify_operands): Likewise.
363 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
364 * ira-lives.c (preferred_alternatives): New variable.
365 (process_bb_node_lives): Set it.
366 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
367 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
368 of recog_data.enabled_alternatives.
369 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
370 to preferred_alternatives.
371 * lra-constraints.c (process_alt_operands): Update accordingly.
372 * lra.c (lra_set_insn_recog_data): Likewise.
373 (lra_update_insn_recog_data): Assert check_bool_attrs.
375 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
377 * recog.h (extract_constrain_insn): Declare.
378 * recog.c (extract_constrain_insn): New function.
379 * lra.c (check_rtl): Use it.
380 * postreload.c (reload_cse_simplify_operands): Likewise.
381 * reg-stack.c (check_asm_stack_operands): Likewise.
382 (subst_asm_stack_regs): Likewise.
383 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
384 * regrename.c (build_def_use): Likewise.
385 * sel-sched.c (get_reg_class): Likewise.
386 * config/arm/arm.c (note_invalid_constants): Likewise.
387 * config/s390/predicates.md (execute_operation): Likewise.
389 2014-10-22 Jakub Jelinek <jakub@redhat.com>
390 Yury Gribov <y.gribov@samsung.com>
392 * common.opt (flag_sanitize_recover): New variable.
393 (fsanitize-recover): Remove Var/Init, deprecate.
394 (fsanitize-recover=): New option.
395 * doc/invoke.texi (fsanitize-recover): Update docs.
396 * opts.c (finish_options): Use opts->x_flag_sanitize
397 instead of flag_sanitize. Prohibit -fsanitize-recover
398 for anything besides UBSan. Formatting.
399 (common_handle_option): Handle OPT_fsanitize_recover_
400 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
401 instead of flag_sanitize.
402 * asan.c (pass_sanopt::execute): Fix up formatting.
403 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
404 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
405 instrument_bool_enum_load, ubsan_instrument_float_cast,
406 instrument_nonnull_arg, instrument_nonnull_return): Check
407 bits in flag_sanitize_recover bitmask instead of
408 flag_sanitize_recover as bool flag.
410 2014-10-22 Jiong Wang <jiong.wang@arm.com>
412 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
414 2014-10-22 Renlin Li <renlin.li@arm.com>
416 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
417 __ARM_FEATURE_IDIV__.
419 2014-10-22 Richard Biener <rguenther@suse.de>
421 * Makefile.in (s-match): Adjust dependencies to only catch
424 2014-10-22 Richard Biener <rguenther@suse.de>
425 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
427 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
428 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
429 (gimple-match.c): Generate by triggering s-match.
430 (generic-match.c): Likewise.
431 (s-match): Rule to build gimple-match.c and generic-match.c
432 by running the genmatch generator program.
433 (build/hash-table.o): Dependencies to build hash-table.c for the host.
434 (build/genmatch.o): Dependencies to build genmatch.
435 (genprog): Add match.
436 (build/genmatch): Likewise.
437 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
438 * generic-match-head.c: New file.
439 * gimple-match-head.c: Likewise.
440 * gimple-match.h: Likewise.
441 * genmatch.c: Likewise.
442 * match.pd: Likewise.
443 * builtins.h (fold_builtin_n): Export.
444 * builtins.c (fold_builtin_n): Likewise.
445 * gimple-fold.h (gimple_build): Declare various overloads.
446 (gimple_simplify): Likewise.
447 (gimple_convert): Re-implement in terms of gimple_build.
448 * gimple-fold.c (gimple_convert): Remove.
449 (gimple_build): New functions.
450 * doc/match-and-simplify.texi: New file.
451 * doc/gccint.texi: Add menu item Match and Simplify and include
452 match-and-simplify.texi.
454 2014-10-22 Jakub Jelinek <jakub@redhat.com>
457 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
458 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
459 even for just TARGET_AVX2, not only for
460 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
461 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
462 otherwise build it using concatenation of 256-bit
464 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
465 avx512 broadcast patterns.
466 (vec_dup<mode>): Likewise. For avx2 use
467 v<sseintprefix>broadcast<bcstscalarsuff> instead of
468 vbroadcast<ssescalarmodesuffix>.
469 (AVX2_VEC_DUP_MODE): New mode iterator.
470 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
471 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
474 * config/i386/i386.c (ix86_pic_register_p): Also return
475 true if x is a hard register with ORIGINAL_REGNO equal to
476 pic_offset_table_rtx pseudo REGNO.
477 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
478 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
480 2014-10-22 Alan Modra <amodra@gmail.com>
482 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
483 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
484 (gcc_obstack_init): Use obstack_specify_allocation in place of
486 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
487 (regexp_representation): Likewise.
488 * godump.c (go_output_type): Likewise.
490 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
492 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
493 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
494 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
496 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
498 * doc/invoke.texi (pedantic-errors): Explain better.
500 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
501 Vidya Praveen <vidya.praveen@atmel.com>
502 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
503 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
504 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
506 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
508 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
509 (avr_nonconst_pointer_addrspace): Likewise.
510 * config/avr/avr.h (AVR_HAVE_LPM): Define.
512 Added AVRTINY architecture to avr target.
513 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
514 (base_arch_s): member added for AVRTINY architecture.
515 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
516 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
517 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
518 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
519 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
520 in callee saved register list.
521 (avr_option_override): CCP address updated for AVRTINY.
522 (avr_init_expanders): tmp and zero rtx initialized as per arch.
523 Reset avr_have_dimode if AVRTINY.
524 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
525 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
526 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
527 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
528 (expand_epilogue): Likewise.
529 (avr_print_operand): Print CCP address in case of AVRTINY also.
531 (function_arg_regno_p): Check different register list for arguments
533 (init_cumulative_args): Check for AVRTINY to update number of argument
535 (tiny_valid_direct_memory_access_range): New function. Return false if
536 direct memory access range is not in accepted range for AVRTINY.
537 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
538 indirect load (with displacement) for AVRTINY.
539 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
540 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
541 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
542 indirect load (no displacement) for AVRTINY.
543 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
544 indirect load (with displacement) for AVRTINY.
545 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
546 indirect load for pre-decrement address.
547 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
548 functions. Update instruction length for AVRTINY.
549 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
551 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
552 (out_movsi_r_mr): Likewise, for SImode.
553 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
554 indirect store (no displacement) for AVRTINY.
555 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
556 indirect store (with displacement) for AVRTINY.
557 (out_movsi_mr_r): Emit out insn for IO address store. Update store
558 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
560 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
561 indirect load (no displacement) for PSImode in AVRTINY.
562 (avr_out_load_psi_reg_disp_tiny): New function to handle register
563 indirect load (with displacement) for PSImode in AVRTINY.
564 (avr_out_load_psi): Call PSImode register indirect load functions for
565 AVRTINY. Update instruction length for AVRTINY.
566 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
567 indirect store (no displacement) for PSImode in AVRTINY.
568 (avr_out_store_psi_reg_disp_tiny): New function to handle register
569 indirect store (with displacement) for PSImode in AVRTINY.
570 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
571 register indirect store functions for AVRTINY.
572 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
573 register indirect store (with displacement) for AVRTINY.
574 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
575 register indirect store function for QImode in AVRTINY.
576 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
577 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
578 indirect store (no displacement) for HImode in AVRTINY.
579 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
580 indirect store (with displacement) for HImode in AVRTINY.
581 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
582 indirect store for post-increment address in HImode.
583 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
584 register indirect store function for HImode in AVRTINY.
585 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
587 (order_regs_for_local_alloc): Updated register allocation order for
589 (avr_conditional_register_usage): New function. It is a target hook
590 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
591 used registers list and register allocation order for AVRTINY.
592 (avr_return_in_memory): Update return value size for AVRTINY.
593 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
594 for AVRTINY arch and tiny program memory base address.
595 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
596 (avr_texinfo): Added description for AVRTINY arch.
597 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
598 STATIC_CHAIN_REGNUM for AVRTINY.
599 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
600 * config/avr/avr.md: Added constants for tmp/ zero registers in
601 AVRTINY. Attributes for AVRTINY added.
602 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
604 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
605 in AVRTINY memory access range.
606 (*mov<mode>): Likewise for HImode and SImode.
607 (*movsf): Likewise for SFmode.
608 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
610 * config/avr/avr-protos.h: Added function prototype for
611 tiny_valid_direct_memory_access_range.
612 * config/avr/avr-tables.opt: Regenerate.
613 * gcc/config/avr/t-multilib: Regenerate.
614 * doc/avr-mmcu.texi: Regenerate.
616 2014-10-21 Andrew Pinski <apinski@cavium.com>
618 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
619 available option also.
620 * config/aarch64/aarch64-cost-tables.h: New file.
621 * config/aarch64/aarch64-cores.def (thunderx): New core.
622 * config/aarch64/aarch64-tune.md: Regenerate.
623 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
624 of config/arm/aarch-cost-tables.h.
625 (thunderx_regmove_cost): New variable.
626 (thunderx_tunings): New variable.
628 2014-10-21 Dehao Chen <dehao@google.com>
630 * auto-profile.c: New file.
631 * auto-profile.h: New file.
632 * basic-block.h (maybe_hot_count_p): New export func.
633 (add_working_set): New export func.
634 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
635 (GCOV_TAG_AFDO_FUNCTION): Likewise.
636 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
637 * opts.c (enable_fdo_optimizations): New func.
638 (common_handle_option): Handle -fauto-profile flag.
639 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
640 (class pass_early_inline): Export early_inliner.
641 (early_inliner): Likewise.
642 (pass_early_inline::execute): Likewise.
643 * ipa-inline.h (early_inliner): Likewise.
644 * predict.c (maybe_hot_count_p): New export func.
645 (counts_to_freqs): AutoFDO logic.
646 (rebuild_frequencies): Likewise.
647 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
648 * profile.c (add_working_set): New func.
649 * Makefile.in (auto-profile.o): New object file.
650 * passes.def (pass_ipa_auto_profile): New pass.
651 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
652 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
653 * toplev.c (compile_file): AutoFDO logic.
654 * doc/invoke.texi (-fauto-profile): New doc.
655 * coverage.c (coverage_init): AutoFDO logic.
656 * common.opt (-fauto-profile): New flag.
657 * timevar.def (TV_IPA_AUTOFDO): New tag.
658 * value-prof.c (gimple_alloc_histogram_value): New export func.
659 (check_ic_target): Likewise.
660 * value-prof.h (gimple_alloc_histogram_value): Likewise.
661 (check_ic_target): Likewise.
663 2014-10-21 David Malcolm <dmalcolm@redhat.com>
665 * cgraph.c (cgraph_c_finalize): New function.
666 * cgraph.h (cgraph_c_finalize): New prototype.
667 (cgraphunit_c_finalize): New prototype.
668 * cgraphunit.c (first_analyzed): Move from analyze_functions
670 (first_analyzed_var): Likewise.
671 (analyze_functions): Move static variables into file-scope.
672 (cgraphunit_c_finalize): New function.
673 * diagnostic.c (diagnostic_finish): Free the memory for
674 context->classify_diagnostic and context->printer, running the
675 destructor for the latter.
676 (bt_stop): Use toplev::main.
677 * dwarf2out.c (dwarf2out_finalize): New function.
678 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
679 * gcse.c (gcse_c_finalize): New function.
680 * gcse.h (gcse_c_finalize): New prototype.
681 * ggc-page.c (init_ggc): Make idempotent.
682 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
683 * ipa-cp.c (ipa_cp_c_finalize): New function.
684 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
685 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
686 a field of class pass_ipa_pure_const.
687 (node_duplication_hook_holder): Likewise.
688 (node_removal_hook_holder): Likewise.
689 (register_hooks): Convert to method...
690 (pass_ipa_pure_const::register_hooks): ...here, converting
691 static variable init_p into...
692 (pass_ipa_pure_const::init_p): ...new field.
693 (pure_const_generate_summary): Update invocation of
694 register_hooks to invoke as a method of current_pass.
695 (pure_const_read_summary): Likewise.
696 (propagate): Convert to...
697 (pass_ipa_pure_const::execute): ...method.
698 * ipa-reference.c (ipa_init): Move static bool init_p from here
700 (ipa_init_p): New file-scope variable, so that it can be reset
701 when repeatedly invoking the compiler within one process by...
702 (ipa_reference_c_finalize): New function.
703 * ipa-reference.h (ipa_reference_c_finalize): New.
704 * main.c (main): Replace invocation of toplev_main with
705 construction of a toplev instance, and call its "main" method.
706 * params.c (global_init_params): Add an assert that
707 params_finished is false.
708 (params_c_finalize): New.
709 * params.h (params_c_finalize): New.
710 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
711 invoking generate_summary, for the benefit of pass_ipa_pure_const.
712 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
713 before calling write_summary hook.
714 (ipa_write_optimization_summaries_1): Likewise when calling
715 write_optimization_summary hook.
716 (ipa_read_summaries_1): Likewise for read_summary hook.
717 (ipa_read_optimization_summaries_1): Likewise for
718 read_optimization_summary hook.
719 (execute_ipa_stmt_fixups): Likewise.
720 * stringpool.c (init_stringpool): Clean up if we're called more
722 * timevar.c (timevar_init): Ignore repeated calls.
723 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
725 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
726 (initialize_rtl): Move static local "initialized_once"
727 into file scope, and rename to...
728 (rtl_initialized): New variable.
729 (do_compile): Move timevar initialization from here to
730 toplev::start_timevars.
731 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
732 toplev::finalize): New functions.
733 (toplev_main): Rename to...
734 (toplev::main): ...this.
735 * toplev.h (class toplev): New class.
737 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
739 * loop-doloop.c: Include loop-unroll.h.
741 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
743 * cfg.h: New. Header file for cfg.c.
744 * cfganal.h: New. Header file for cfganal.c.
745 * lcm.h: New. Header file for lcm.c.
746 * loop-unroll.h: New. Header file for loop-unroll.h.
747 * cfgloop.h: (unroll_loops): Remove prototype.
748 * basic-block.h: Move prototypes and structs to new header files.
749 Include cfg.h, cfganal.h, and lcm.h.
750 * loop-init.c: Include loop-unroll.h.
751 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
752 * modulo-sched.c: Include loop-unroll.h.
754 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
756 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
757 MARKER_BYTE_UNKNOWN markers when handling casts.
759 2014-10-21 Richard Biener <rguenther@suse.de>
761 * tree-ssa-phiopt.c (value_replacement): Properly verify we
762 are the non-singleton PHI.
764 2014-10-21 Jakub Jelinek <jakub@redhat.com>
766 PR tree-optimization/63563
767 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
768 if either dra or drb stmts are not normal loads/stores.
770 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
772 * config/i386/i386.c (expand_vec_perm_1): Fix
773 expand_vec_perm_palignr case.
774 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
777 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
779 * cfgloopanal.c (seq_cost): Delete.
780 * rtl.h (seq_cost): New prototype.
781 * rtlanal.c (seq_cost): New function.
782 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
784 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
786 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
787 * basic-block.h: Remove prototypes for cfgrtl.c.
788 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
789 prototypes to cfgrtl.h.
790 * profile.h (profile_info): Add extern export declaration.
791 * rtl.h: Remove prototypes for cfgrtl.h.
792 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
793 * ipa-inline.c: Include profile.h.
794 * loop-unroll.c: Ditto.
795 * modulo-sched.c: Ditto.
796 * postreload-gcse.c: Ditto.
798 * sched-ebb.c: Ditto.
799 * sched-rgn.c: Ditto.
801 * tree-ssa-loop-ivcanon.c: Ditto.
803 2014-10-20 Richard Biener <rguenther@suse.de>
805 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
806 operands to get a def operand kind match. Signal mismatches
807 to the parent so we can try swapping its operands.
808 (vect_build_slp_tree): Try swapping operands if they have
809 a mismatched operand kind.
811 2014-10-20 Alan Modra <amodra@gmail.com>
814 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
815 Increase "ops" array size. Correct array size tests. Init
816 n_constants in loop. Break out of innermost loop when finding
817 a trivial CONST expression.
819 2014-10-20 Martin Liska <mliska@suse.cz>
822 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
823 Gimple tempate string is compared.
825 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
827 * varasm.c (const_alias_set): Remove.
828 (init_varasm_once): Remove initialization of const_alias_set.
829 (build_constant_desc): Do not set alias set to const_alias_set.
831 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
833 * configure: Regenerate.
834 * configure.ac: Move the test for section attribute specifier "e" in GAS
835 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
836 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
837 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
838 ifdef HAVE_GAS_SECTION_EXCLUDE.
840 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
842 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
843 match_operand expression.
845 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
846 David Edelsohn <dje.gcc@gmail.com>
848 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
850 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
852 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
854 * doc/invoke.texi (Options to Request or Suppress Warnings):
855 Explain options precedence.
856 (Wtrampolines): Do not indent paragraph.
858 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
860 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
861 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
862 (pa_jump_in_call_delay): Likewise.
863 * config/pa/pa.c (pa_option_override): Remove jump in call delay
865 (pa_output_millicode_call): Remove support for jump in call delay.
866 (pa_output_call): Likewise.
867 (pa_jump_in_call_delay): Delete.
868 (pa_following_call): Likewise.
869 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
870 (uncond_branch): Remove following call check from attribute length.
872 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
875 * config/sh/sh-modes.def (PSI): Remove.
876 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
877 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
878 (sh_reorg): Remove commented out FPSCR code.
879 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
880 insn instead of move insn.
881 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
882 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
884 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
885 (sh1_builtin_p): Uncomment.
886 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
887 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
888 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
889 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
890 (general_movsrc_operand, general_movdst_operand): Disallow
892 * config/sh/sh.md (FPSCR_FR): New constant.
893 (push_fpscr): Emit sts_fpscr insn.
894 (pop_fpscr): Emit lds_fpscr_insn.
895 (movsi_ie): Disallow FPSCR operands.
896 (fpu_switch, unnamed related split, extend_psi_si,
897 truncate_si_psi): Remove insns.
898 (lds_fpscr, sts_fpscr): New insns.
899 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
901 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
903 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
904 (clone_inlined_nodes): Do not overwrite the clone if above predicate
907 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
909 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
910 (expand_vec_perm_d): Ditto.
911 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
912 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
914 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
915 (ix86_expand_sse_unpack): Handle V64QImode.
916 (expand_vec_perm_blend): Update conditions for TARGET, handle
917 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
918 (expand_vec_perm_pshufb): Handle V64QImode.
919 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
920 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
921 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
922 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
923 (ix86_expand_vecop_qihi): Handle V64QImode.
924 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
925 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
926 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
927 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
928 (mul<mode>3): Use VI1_AVX512.
929 (<sse2_avx2>_packsswb): Ditto.
930 (<sse2_avx2>_packuswb): Ditto.
931 (<ssse3_avx2>_pshufb<mode>3): Ditto.
932 (<shift_insn><mode>3): Ditto.
934 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
936 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
937 conditions to fix bootstrap.
939 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
941 gcc-plugin.h: Add tm.h and flattened includes from function.h.
943 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
944 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
945 Anna Tikhonova <anna.tikhonova@intel.com>
946 Ilya Tocar <ilya.tocar@intel.com>
947 Andrey Turetskiy <andrey.turetskiy@intel.com>
948 Ilya Verbin <ilya.verbin@intel.com>
949 Kirill Yukhin <kirill.yukhin@intel.com>
950 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
952 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
953 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
954 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
955 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
956 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
957 (define_expand "vec_init<mode>"): Use VF48_I1248.
959 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
960 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
961 Anna Tikhonova <anna.tikhonova@intel.com>
962 Ilya Tocar <ilya.tocar@intel.com>
963 Andrey Turetskiy <andrey.turetskiy@intel.com>
964 Ilya Verbin <ilya.verbin@intel.com>
965 Kirill Yukhin <kirill.yukhin@intel.com>
966 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
968 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
969 expand_sse2_mulvxdi3.
971 2014-10-17 Richard Biener <rguenther@suse.de>
973 * fold-const.c (fold_comparison): Remove redundant constant
974 folding and operand swapping.
975 (fold_binary_loc): Do comparison operand swapping here.
976 (fold_ternary_loc): Canonicalize operand order for
977 commutative ternary operations.
978 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
981 2014-10-17 Jakub Jelinek <jakub@redhat.com>
983 PR tree-optimization/63464
984 * gimple.h (gimple_seq_discard): New prototype.
985 * gimple.c: Include stringpool.h and tree-ssanames.h.
986 (gimple_seq_discard): New function.
987 * optabs.h (lshift_cheap_p): New prototype.
988 * optabs.c (lshift_cheap_p): New function, moved from...
989 * tree-switch-conversion.c (lshift_cheap_p): ... here.
990 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
991 (reassoc_branch_fixups): New variable.
992 (update_range_test): Add otherrangep and seq arguments.
993 Unshare exp. If otherrange is NULL, use for other ranges
994 array of pointers pointed by otherrangep instead.
995 Emit seq before gimplified statements for tem.
996 (optimize_range_tests_diff): Adjust update_range_test
998 (optimize_range_tests_xor): Likewise. Fix up comment.
999 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1001 (optimize_range_tests): Adjust update_range_test caller.
1002 Call optimize_range_tests_to_bit_test.
1003 (branch_fixup): New function.
1004 (execute_reassoc): Call branch_fixup.
1006 PR tree-optimization/63302
1007 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1008 optimize_range_tests_diff): Use !integer_pow2p () instead of
1011 2014-10-17 Martin Liska <mliska@suse.cz>
1013 * ipa-icf.c (sem_function::merge): Local flags are set to false
1014 to enforce equal calling convention to be used.
1015 * opts.c (common_handle_option): Indentation fix.
1017 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1019 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1021 2014-10-17 Tom de Vries <tom@codesourcery.com>
1023 PR rtl-optimization/61605
1024 * regcprop.c (copyprop_hardreg_forward_1): Use
1025 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1027 2014-10-17 Tom de Vries <tom@codesourcery.com>
1029 PR rtl-optimization/61605
1030 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1031 notice stores for noops. Don't regard noops as copies.
1033 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1035 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1036 register in a special way.
1037 (__cpuid_count): Ditto.
1038 * config/i386/driver-i386.h: Protect with
1039 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1040 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1041 is required to compile the function.
1043 2014-10-16 DJ Delorie <dj@redhat.com>
1045 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1048 * config/rs6000/rs6000-c.c (rid_int128): New.
1049 (rs6000_macro_to_expand): Use instead of RID_INT128.
1051 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1053 * function.h: Flatten file. Remove includes, adjust prototypes to
1054 reflect only what is in function.h.
1055 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1056 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1058 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1059 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1060 prototypes to predict.h.
1061 (init_varasm_status): Move prototype to varasm.h.
1062 * expr.h: Adjust include files.
1063 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1064 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1066 (locate_and_pad_parm): Move prototype to function.h.
1067 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1068 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1069 assign_temp, reposition_prologue_and_epilogue_notes,
1070 prologue_epilogue_contains, sibcall_epilogue_contains,
1071 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1072 set_return_jump_label): Move prototypes to function.h.
1073 * predict.h (optimize_function_for_size_p,
1074 optimize_function_for_speed_p): Relocate prototypes from function.h.
1075 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1076 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1078 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1079 * genattrtab.c (write_header): Add predict.h to include list.
1080 * genconditions.c (write_header): Add predict.h to include list.
1081 * genemit.c (main): Adjust header file includes.
1082 * gengtype.c (ifiles): Add flattened function.h header files.
1083 * genoutput.c (output_prologue): Add predict.h to include list.
1084 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1085 * genrecog.c (write_header): Add flattened function.h header files.
1086 * alias.c: Adjust include files.
1087 * auto-inc-dec.c: Likewise.
1088 * basic-block.h: Likewise.
1089 * bb-reorder.c: Likewise.
1090 * bt-load.c: Likewise.
1091 * builtins.c: Likewise.
1092 * caller-save.c: Likewise.
1093 * calls.c: Likewise.
1094 * cfgbuild.c: Likewise.
1095 * cfgcleanup.c: Likewise.
1096 * cfgexpand.c: Likewise.
1097 * cfgloop.c: Likewise.
1098 * cfgloop.h: Likewise.
1099 * cfgrtl.c: Likewise.
1100 * cgraph.h: Likewise.
1101 * cgraphclones.c: Likewise.
1102 * cgraphunit.c: Likewise.
1103 * combine-stack-adj.c: Likewise.
1104 * combine.c: Likewise.
1105 * coverage.c: Likewise.
1106 * cprop.c: Likewise.
1108 * cselib.c: Likewise.
1109 * dbxout.c: Likewise.
1111 * df-core.c: Likewise.
1112 * df-problems.c: Likewise.
1113 * df-scan.c: Likewise.
1114 * dojump.c: Likewise.
1115 * dwarf2cfi.c: Likewise.
1116 * dwarf2out.c: Likewise.
1117 * emit-rtl.c: Likewise.
1118 * except.c: Likewise.
1119 * explow.c: Likewise.
1121 * final.c: Likewise.
1122 * function.c: Likewise.
1124 * gimple-fold.c: Likewise.
1125 * gimple-low.c: Likewise.
1126 * gimple-streamer.h: Likewise.
1127 * haifa-sched.c: Likewise.
1128 * ifcvt.c: Likewise.
1132 * loop-invariant.c: Likewise.
1133 * lra-assigns.c: Likewise.
1134 * lra-coalesce.c: Likewise.
1135 * lra-constraints.c: Likewise.
1136 * lra-eliminations.c: Likewise.
1137 * lra-lives.c: Likewise.
1138 * lra-spills.c: Likewise.
1140 * lto-cgraph.c: Likewise.
1141 * lto-section-in.c: Likewise.
1142 * lto-section-out.c: Likewise.
1143 * lto-streamer-in.c: Likewise.
1144 * lto-streamer-out.c: Likewise.
1145 * mode-switching.c: Likewise.
1146 * modulo-sched.c: Likewise.
1147 * omp-low.c: Likewise.
1148 * optabs.c: Likewise.
1149 * passes.c: Likewise.
1150 * postreload-gcse.c: Likewise.
1151 * postreload.c: Likewise.
1152 * predict.c: Likewise.
1153 * profile.c: Likewise.
1154 * recog.c: Likewise.
1156 * reg-stack.c: Likewise.
1157 * regcprop.c: Likewise.
1158 * reginfo.c: Likewise.
1159 * regrename.c: Likewise.
1160 * reload.c: Likewise.
1161 * reload1.c: Likewise.
1162 * reorg.c: Likewise.
1163 * resource.c: Likewise.
1164 * rtlanal.c: Likewise.
1165 * sched-deps.c: Likewise.
1166 * sched-ebb.c: Likewise.
1167 * sched-rgn.c: Likewise.
1168 * sel-sched-dump.c: Likewise.
1169 * sel-sched-ir.c: Likewise.
1170 * sel-sched.c: Likewise.
1171 * shrink-wrap.c: Likewise.
1172 * simplify-rtx.c: Likewise.
1173 * statistics.c: Likewise.
1175 * stor-layout.c: Likewise.
1176 * store-motion.c: Likewise.
1177 * symtab.c: Likewise.
1178 * targhooks.c: Likewise.
1179 * toplev.c: Likewise.
1180 * trans-mem.c: Likewise.
1181 * tree-cfg.c: Likewise.
1182 * tree-cfgcleanup.c: Likewise.
1183 * tree-dfa.c: Likewise.
1184 * tree-eh.c: Likewise.
1185 * tree-inline.c: Likewise.
1186 * tree-into-ssa.c: Likewise.
1187 * tree-nested.c: Likewise.
1188 * tree-nrv.c: Likewise.
1189 * tree-profile.c: Likewise.
1190 * tree-ssa-alias.c: Likewise.
1191 * tree-ssa-ccp.c: Likewise.
1192 * tree-ssa-copy.c: Likewise.
1193 * tree-ssa-copyrename.c: Likewise.
1194 * tree-ssa-dom.c: Likewise.
1195 * tree-ssa-operands.c: Likewise.
1196 * tree-ssa-propagate.c: Likewise.
1197 * tree-ssa-structalias.c: Likewise.
1198 * tree-ssa-tail-merge.c: Likewise.
1199 * tree-ssa-threadedge.c: Likewise.
1200 * tree-ssa-threadupdate.c: Likewise.
1201 * tree-ssa-uncprop.c: Likewise.
1202 * tree-ssa-uninit.c: Likewise.
1203 * tree-ssa.c: Likewise.
1204 * tree-stdarg.c: Likewise.
1205 * tree-tailcall.c: Likewise.
1208 * valtrack.c: Likewise.
1209 * varasm.c: Likewise.
1210 * vmsdbgout.c: Likewise.
1212 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1213 * config/alpha/alpha.c: Likewise.
1214 * config/arc/arc.c: Likewise.
1215 * config/arm/arm.c: Likewise.
1216 * config/avr/avr-log.c: Likewise.
1217 * config/avr/avr.c: Likewise.
1218 * config/bfin/bfin.c: Likewise.
1219 * config/c6x/c6x.c: Likewise.
1220 * config/cr16/cr16.c: Likewise.
1221 * config/cris/cris.c: Likewise.
1222 * config/darwin.c: Likewise.
1223 * config/epiphany/epiphany.c: Likewise.
1224 * config/epiphany/mode-switch-use.c: Likewise.
1225 * config/epiphany/resolve-sw-modes.c: Likewise.
1226 * config/fr30/fr30.c: Likewise.
1227 * config/frv/frv.c: Likewise.
1228 * config/h8300/h8300.c: Likewise.
1229 * config/i386/i386.c: Likewise.
1230 * config/ia64/ia64.c: Likewise.
1231 * config/iq2000/iq2000.c: Likewise.
1232 * config/lm32/lm32.c: Likewise.
1233 * config/m32c/m32c.c: Likewise.
1234 * config/m32r/m32r.c: Likewise.
1235 * config/m68k/m68k.c: Likewise.
1236 * config/mcore/mcore.c: Likewise.
1237 * config/mep/mep-pragma.c: Likewise.
1238 * config/mep/mep.c: Likewise.
1239 * config/microblaze/microblaze.c: Likewise.
1240 * config/mips/mips.c: Likewise.
1241 * config/mmix/mmix.c: Likewise.
1242 * config/mn10300/mn10300.c: Likewise.
1243 * config/moxie/moxie.c: Likewise.
1244 * config/msp430/msp430.c: Likewise.
1245 * config/nds32/nds32-cost.c: Likewise.
1246 * config/nds32/nds32-fp-as-gp.c: Likewise.
1247 * config/nds32/nds32-intrinsic.c: Likewise.
1248 * config/nds32/nds32-isr.c: Likewise.
1249 * config/nds32/nds32-md-auxiliary.c: Likewise.
1250 * config/nds32/nds32-memory-manipulation.c: Likewise.
1251 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1252 * config/nds32/nds32-predicates.c: Likewise.
1253 * config/nds32/nds32.c: Likewise.
1254 * config/nios2/nios2.c: Likewise.
1255 * config/pa/pa.c: Likewise.
1256 * config/pdp11/pdp11.c: Likewise.
1257 * config/rl78/rl78.c: Likewise.
1258 * config/rs6000/rs6000.c: Likewise.
1259 * config/rx/rx.c: Likewise.
1260 * config/s390/s390.c: Likewise.
1261 * config/score/score.c: Likewise.
1262 * config/sh/sh.c: Likewise.
1263 * config/sparc/sparc.c: Likewise.
1264 * config/spu/spu.c: Likewise.
1265 * config/stormy16/stormy16.c: Likewise.
1266 * config/tilegx/tilegx.c: Likewise.
1267 * config/tilepro/tilepro.c: Likewise.
1268 * config/v850/v850.c: Likewise.
1269 * config/vax/vax.c: Likewise.
1270 * config/xtensa/xtensa.c: Likewise.
1272 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1274 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1275 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1277 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1279 * config/sh/sh-protos.h (fldi_ok): Remove.
1280 * config/sh/sh.c (fldi_ok): Likewise.
1281 (sh_secondary_reload): Don't use fldi_ok.
1282 * config/sh/constraints.md (G constraint, H constraint): Don't use
1285 2014-10-16 Martin Liska <mliska@suse.cz>
1287 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1288 Cast to unsigned long.
1289 (sem_item_optimizer::dump_cong_classes): Likewise.
1291 2014-10-16 Tom de Vries <tom@codesourcery.com>
1293 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1294 with SSA_NAME_IN_FREELIST.
1296 2014-10-16 Richard Biener <rguenther@suse.de>
1299 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1300 (fold_builtin_strncat_chk): Move ...
1301 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1302 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1304 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1307 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1310 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1311 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1312 Anna Tikhonova <anna.tikhonova@intel.com>
1313 Ilya Tocar <ilya.tocar@intel.com>
1314 Andrey Turetskiy <andrey.turetskiy@intel.com>
1315 Ilya Verbin <ilya.verbin@intel.com>
1316 Kirill Yukhin <kirill.yukhin@intel.com>
1317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1319 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1322 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1324 Anna Tikhonova <anna.tikhonova@intel.com>
1325 Ilya Tocar <ilya.tocar@intel.com>
1326 Andrey Turetskiy <andrey.turetskiy@intel.com>
1327 Ilya Verbin <ilya.verbin@intel.com>
1328 Kirill Yukhin <kirill.yukhin@intel.com>
1329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1331 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1332 V16SI, V32HI, V64QI modes.
1334 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1337 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1338 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1340 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1341 to match fp insn patterns.
1342 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1344 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1345 expand_df_unop, expand_df_binop): Remove.
1346 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1347 FPSCR_STAT_REG as not call clobbered.
1348 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1349 invoking fpscr_set_from_mem.
1351 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1352 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1354 (REGISTER_NAMES): Adjust.
1355 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1356 (FIRST_PSEUDO_REGISTER): Increase to 156.
1357 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1358 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1360 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1361 FPSCR_MODES_REG and FPSCR_STAT_REG.
1362 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1364 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1365 FPSCR_SZ): Add new constants.
1366 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1368 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1369 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1370 Use TARGET_FPU_ANY condition.
1371 (fpu_switch peephole2): Remove.
1372 (fpu_switch split): Use simple_mem_operand to capture the mem and
1373 adjust split implementation.
1374 (extend_psi_si, truncate_si_psi): New insns.
1375 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1376 set of FPSCR_MODES_REG.
1378 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1379 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1380 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1381 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1382 call_value_compact, call_value_compact_rettramp, call,
1383 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1384 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1385 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1386 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1387 call_value_pop_compact_rettramp, various unnamed splits):
1388 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1391 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1392 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1393 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1394 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1395 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1397 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1398 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1399 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1400 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1401 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1402 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1403 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1405 2014-10-16 Martin Liska <mliska@suse.cz>
1406 Jan Hubicka <hubicka@ucw.cz>
1408 * Makefile.in: New object files included.
1409 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1411 (verify_edge_corresponds_to_fndecl): More sensitive verification
1412 of nodes that are merged by IPA ICF.
1413 * cgraph.h (cgraph_node::num_references): New function.
1414 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1415 * common.opt: New options ipa-icf, ipa-icf-functions and
1416 ipa-icf-variables introduced.
1417 * doc/invoke.texi: Documentation of new options introduced.
1418 * ipa-icf-gimple.c: New file.
1419 * ipa-icf-gimple.h: New file.
1420 * ipa-icf.c: New file.
1421 * ipa-icf.h: New file.
1422 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1423 (input_overwrite_node): Likewise.
1424 * lto-section-in.c: New icf section added.
1425 * lto-streamer.h (enum lto_section_type): Likewise.
1426 * opts.c (common_handle_option): New option added.
1427 * passes.def: New pass included.
1428 * timevar.def: Time variable for IPA ICF added.
1429 * tree-pass.h: New IPA ICF pass entry point added.
1431 2014-10-16 Richard Biener <rguenther@suse.de>
1433 PR tree-optimization/63168
1434 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1435 latches if after merging they are no longer simple.
1436 * cfghooks.c (merge_blocks): Handle merging a latch block
1439 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1440 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1441 Anna Tikhonova <anna.tikhonova@intel.com>
1442 Ilya Tocar <ilya.tocar@intel.com>
1443 Andrey Turetskiy <andrey.turetskiy@intel.com>
1444 Ilya Verbin <ilya.verbin@intel.com>
1445 Kirill Yukhin <kirill.yukhin@intel.com>
1446 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1448 * config/i386/sse.md
1449 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1450 support AVX-512VL instructions.
1452 2014-10-16 DJ Delorie <dj@redhat.com>
1454 * tree-core.h: Fix comment to not assume pointers are multiples of
1457 2014-10-15 Tom Tromey <tromey@redhat.com>
1459 * timevar.h (class auto_timevar): New class.
1461 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1464 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1465 Remove the second alternative.
1466 (regprefix): Remove mode attribute.
1467 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1468 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1471 2013-11-05 Ian Lance Taylor <iant@google.com>
1473 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1474 If possible, add .cfi directives to record change to bx.
1475 * config/i386/i386.c (ix86_emit_cfi): New function.
1476 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1478 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1481 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1483 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1486 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1488 PR rtl-optimization/63448
1489 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1490 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1491 (LRA_MAX_INHERITANCE_PASSES): Use it.
1492 (lra_constraint_iter_after_spill): Remove.
1493 (lra_assignment_iter): New.
1494 (lra_assignment_iter_after_spill): New.
1495 * lra-assigns.c (lra_assignment_iter): New.
1496 (lra_assignment_iter_after_spill): New.
1497 (former_reload_pseudo_spill_p): New.
1498 (spill_for): Set up former_reload_pseudo_spill_p.
1499 (setup_live_pseudos_and_spill_after_risky): Ditto.
1500 (assign_by_spills): Ditto.
1501 (lra_assign): Increment lra_assignment_iter. Print the iteration
1502 number. Reset former_reload_pseudo_spill_p. Check
1503 lra_assignment_iter_after_spill.
1504 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1505 lra_assignment_iter and lra_assignment_iter_after_spill.
1506 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1507 (lra_constraints): Remove code with
1508 lra_assignment_iter_after_spill.
1510 2014-10-15 Teresa Johnson <tejohnson@google.com>
1513 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1516 2014-10-15 Renlin Li <renlin.li@arm.com>
1518 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1519 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1520 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1521 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1523 2014-10-15 Richard Biener <rguenther@suse.de>
1525 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1526 SSA form up-to-date when devirtualizing a call to
1527 __builtin_unreachable and avoid fixing up EH info here.
1529 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1530 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1531 Anna Tikhonova <anna.tikhonova@intel.com>
1532 Ilya Tocar <ilya.tocar@intel.com>
1533 Andrey Turetskiy <andrey.turetskiy@intel.com>
1534 Ilya Verbin <ilya.verbin@intel.com>
1535 Kirill Yukhin <kirill.yukhin@intel.com>
1536 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1538 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1539 to support AVX-512BW.
1540 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1541 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1542 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1543 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1544 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1545 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1546 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1547 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1548 (define_insn "*andnot<mode>3"): Ditto.
1549 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1550 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1551 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1552 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1553 (define_insn "*abs<mode>2"): Remove masking support.
1554 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1555 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1556 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1558 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1559 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1560 Anna Tikhonova <anna.tikhonova@intel.com>
1561 Ilya Tocar <ilya.tocar@intel.com>
1562 Andrey Turetskiy <andrey.turetskiy@intel.com>
1563 Ilya Verbin <ilya.verbin@intel.com>
1564 Kirill Yukhin <kirill.yukhin@intel.com>
1565 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1567 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1568 * config/i386/sse.md
1569 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1570 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1571 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1572 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1573 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1574 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1575 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1577 2014-10-15 Renlin Li <renlin.li@arm.com>
1579 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1581 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1583 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1584 MINUS_EXPR in unsigned type to avoid undefined behavior.
1586 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1588 * stor-layout.c (self_referential_size): Do not promote arguments.
1590 2014-10-15 Marek Polacek <polacek@redhat.com>
1592 * doc/invoke.texi: Update to reflect that GNU11 is the default
1594 * c-common.h (c_language_kind): Update comment.
1596 2014-10-15 Richard Biener <rguenther@suse.de>
1598 * hash-table.c: Include bconfig.h if building for the host.
1599 * hash-table.h: Do not include ggc.h on the host but just declare
1600 a few ggc allocation templates.
1602 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1603 Jeff Law <law@redhat.com>
1605 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1606 multiple hard registers, use smaller mode derived from MODE.
1608 2014-10-15 Andreas Schwab <schwab@suse.de>
1610 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1611 as ATTRIBUTE_UNUSED.
1613 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1615 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1616 (decide_unrolling): ... this one.
1617 (peel_loops_completely): Remove.
1618 (decide_peel_simple): Remove.
1619 (decide_peel_once_rolling): Remove.
1620 (decide_peel_completely): Remove.
1621 (peel_loop_simple): Remove.
1622 (peel_loop_completely): Remove.
1623 (unroll_and_peel_loops): Rename to ...
1624 (unroll_loops): ... this one; handle only unrolling.
1625 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1628 (unroll_and_peel_loops): Remove.
1629 (unroll_loops): New.
1630 * passes.def: Replace
1631 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1632 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1633 rtl_unroll_and_peel_loops): Rename to ...
1634 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1635 (pass_rtl_unroll_and_peel_loops): Rename to ...
1636 (pass_rtl_unroll_loops): ... this one.
1637 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1638 (make_pass_rtl_unroll_loops): New.
1639 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1640 (canonicalize_loop_induction_variables): Update.
1642 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1644 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1645 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1646 !TARGET_HARD_FLOAT_POSTINC.
1647 (*lsip, *ssip): new instructions.
1649 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1651 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1654 2014-10-14 Andrew Pinski <apinski@cavium.com>
1656 * explow.c (convert_memory_address_addr_space): Rename to ...
1657 (convert_memory_address_addr_space_1): This. Add in_const argument.
1658 Inside a CONST RTL, permute the conversion and addition of constant
1659 for zero and sign extended pointers.
1660 (convert_memory_address_addr_space): New function.
1662 2014-10-14 Andrew Pinski <apinski@cavium.com>
1665 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1668 * explow.c (convert_memory_address_addr_space): Also permute the
1669 conversion and addition of constant for zero-extend.
1671 2014-10-14 DJ Delorie <dj@redhat.com>
1673 * config/msp430/msp430-modes.def (PSI): Add.
1675 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1676 (msp430_hard_regno_nregs_with_padding): New.
1677 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1678 (msp430_hard_regno_nregs_has_padding): New.
1679 (msp430_hard_regno_nregs_with_padding): New.
1680 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1681 (msp430_addr_space_legitimate_address_p): New.
1682 (msp430_asm_integer): New.
1683 (msp430_init_dwarf_reg_sizes_extra): New.
1684 (msp430_print_operand): Use X suffix for PSImode even in small model.
1685 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1686 (PTR_SIZE): ...but 4 bytes for EH.
1687 (SIZE_TYPE): Use __int20.
1688 (PTRDIFF_TYPE): Likewise.
1689 (INCOMING_FRAME_SP_OFFSET): Adjust.
1690 * config/msp430/msp430.md (movqi_topbyte): New.
1691 (movpsi): Use fixed suffixes.
1692 (movsipsi2): Enable for 430X, not large model.
1693 (extendhipsi2): Likewise.
1694 (zero_extendhisi2): Likewise.
1695 (zero_extendhisipsi2): Likewise.
1696 (extend_and_shift1_hipsi2): Likewise.
1697 (extendpsisi2): Likewise.
1698 (*bitbranch<mode>4_z): Fix suffix logic.
1700 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1703 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1704 do not choke on null node.
1705 <VAR_DECL>: Likewise.
1707 2014-10-14 DJ Delorie <dj@redhat.com>
1709 * machmode.h (int_n_data_t): New.
1710 (int_n_enabled_p): New.
1712 * tree.c (int_n_enabled_p): New.
1714 (make_or_reuse_type): Check for all __intN types, not just
1716 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1718 * tree.h (int128_integer_type_node): Remove.
1719 (int128_unsigned_type_node): Remove.
1720 (int_n_trees_t): New.
1721 (int_n_enabled_p): New.
1723 * toplev.c (standard_type_bitsize): New.
1724 (do_compile): Check which __intN types are enabled for the current
1726 * builtin-types.def (BT_INT128): Remove.
1727 (BT_UINT128): Remove.
1728 * machmode.def: Add macro to create __int128 for all targets.
1729 * stor-layout.c (mode_for_size): Support __intN types.
1730 (smallest_mode_for_size): Likewise.
1731 (initialize_sizetypes): Support __intN types.
1732 * genmodes.c (struct mode_data): Add int_n field.
1733 (blank_mode): Likewise.
1736 (emit_insn_modes_h): Count __intN entries and define
1738 (emit_mode_int_n): New.
1739 (emit_insn_modes_c): Call it.
1740 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1741 types, not just __int128.
1742 * tree-core.h (integer_type_kind): Remove __int128-specific
1743 entries, reserve spots for __intN entries.
1745 * config/msp430/msp430-modes.def (PSI): Add.
1747 2014-10-14 Kito Cheng <kito@0xlab.org>
1749 * ira.c: Fix typo in comment.
1751 * ira-build.c: Ditto.
1752 * ira-color.c: Ditto.
1753 * ira-emit.c: Ditto.
1755 * ira-lives.c: Ditto.
1757 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1759 PR rtl-optimization/63475
1760 * alias.c (true_dependence_1): Always use get_addr to extract
1761 true address operands from x_addr and mem_addr. Use extracted
1762 address operands to check for references with alignment ANDs.
1763 Use extracted address operands with find_base_term and
1764 base_alias_check. For noncanonicalized operands call canon_rtx with
1765 extracted address operand.
1766 (write_dependence_1): Ditto.
1767 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1769 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1772 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1775 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1776 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1777 Anna Tikhonova <anna.tikhonova@intel.com>
1778 Ilya Tocar <ilya.tocar@intel.com>
1779 Andrey Turetskiy <andrey.turetskiy@intel.com>
1780 Ilya Verbin <ilya.verbin@intel.com>
1781 Kirill Yukhin <kirill.yukhin@intel.com>
1782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1784 * config/i386/i386.c
1785 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1786 (ix86_expand_int_vcond): Ditto.
1788 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1790 Anna Tikhonova <anna.tikhonova@intel.com>
1791 Ilya Tocar <ilya.tocar@intel.com>
1792 Andrey Turetskiy <andrey.turetskiy@intel.com>
1793 Ilya Verbin <ilya.verbin@intel.com>
1794 Kirill Yukhin <kirill.yukhin@intel.com>
1795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1797 * config/i386/i386.c
1798 (emit_reduc_half): Handle V64QI and V32HI mode.
1799 * config/i386/sse.md
1800 (define_mode_iterator VI_AVX512BW): New.
1801 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1803 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1805 Anna Tikhonova <anna.tikhonova@intel.com>
1806 Ilya Tocar <ilya.tocar@intel.com>
1807 Andrey Turetskiy <andrey.turetskiy@intel.com>
1808 Ilya Verbin <ilya.verbin@intel.com>
1809 Kirill Yukhin <kirill.yukhin@intel.com>
1810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1812 * config/i386/sse.md
1813 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1815 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1816 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1817 Anna Tikhonova <anna.tikhonova@intel.com>
1818 Ilya Tocar <ilya.tocar@intel.com>
1819 Andrey Turetskiy <andrey.turetskiy@intel.com>
1820 Ilya Verbin <ilya.verbin@intel.com>
1821 Kirill Yukhin <kirill.yukhin@intel.com>
1822 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1824 * config/i386/i386.c
1825 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1826 * config/i386/sse.md
1827 (define_mode_iterator VI): Add V64QI and V32HI modes.
1829 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1831 Anna Tikhonova <anna.tikhonova@intel.com>
1832 Ilya Tocar <ilya.tocar@intel.com>
1833 Andrey Turetskiy <andrey.turetskiy@intel.com>
1834 Ilya Verbin <ilya.verbin@intel.com>
1835 Kirill Yukhin <kirill.yukhin@intel.com>
1836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1838 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1840 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1841 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1842 Anna Tikhonova <anna.tikhonova@intel.com>
1843 Ilya Tocar <ilya.tocar@intel.com>
1844 Andrey Turetskiy <andrey.turetskiy@intel.com>
1845 Ilya Verbin <ilya.verbin@intel.com>
1846 Kirill Yukhin <kirill.yukhin@intel.com>
1847 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1849 * config/i386/sse.md
1850 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1851 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1853 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1855 Anna Tikhonova <anna.tikhonova@intel.com>
1856 Ilya Tocar <ilya.tocar@intel.com>
1857 Andrey Turetskiy <andrey.turetskiy@intel.com>
1858 Ilya Verbin <ilya.verbin@intel.com>
1859 Kirill Yukhin <kirill.yukhin@intel.com>
1860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1862 * config/i386/sse.md
1863 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1864 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1866 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1868 Anna Tikhonova <anna.tikhonova@intel.com>
1869 Ilya Tocar <ilya.tocar@intel.com>
1870 Andrey Turetskiy <andrey.turetskiy@intel.com>
1871 Ilya Verbin <ilya.verbin@intel.com>
1872 Kirill Yukhin <kirill.yukhin@intel.com>
1873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1875 * config/i386/sse.md
1876 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1877 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1878 (define_expand "mul<mode>3<mask_name>"): Add masking.
1879 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1880 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1881 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1882 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1883 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1884 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1885 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1886 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1887 (define_insn "avx2_packusdw"): Delete.
1888 (define_insn "sse4_1_packusdw"): Ditto.
1889 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1891 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1893 Anna Tikhonova <anna.tikhonova@intel.com>
1894 Ilya Tocar <ilya.tocar@intel.com>
1895 Andrey Turetskiy <andrey.turetskiy@intel.com>
1896 Ilya Verbin <ilya.verbin@intel.com>
1897 Kirill Yukhin <kirill.yukhin@intel.com>
1898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1900 * config/i386/sse.md
1901 (define_insn "vec_dup<mode>"): Update constraints.
1903 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1905 Anna Tikhonova <anna.tikhonova@intel.com>
1906 Ilya Tocar <ilya.tocar@intel.com>
1907 Andrey Turetskiy <andrey.turetskiy@intel.com>
1908 Ilya Verbin <ilya.verbin@intel.com>
1909 Kirill Yukhin <kirill.yukhin@intel.com>
1910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1912 * config/i386/sse.md
1913 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1914 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1915 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1917 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1918 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1919 Anna Tikhonova <anna.tikhonova@intel.com>
1920 Ilya Tocar <ilya.tocar@intel.com>
1921 Andrey Turetskiy <andrey.turetskiy@intel.com>
1922 Ilya Verbin <ilya.verbin@intel.com>
1923 Kirill Yukhin <kirill.yukhin@intel.com>
1924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1926 * config/i386/sse.md
1927 (define_expand "mul<mode>3<mask_name>"): Add masking.
1929 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1931 Anna Tikhonova <anna.tikhonova@intel.com>
1932 Ilya Tocar <ilya.tocar@intel.com>
1933 Andrey Turetskiy <andrey.turetskiy@intel.com>
1934 Ilya Verbin <ilya.verbin@intel.com>
1935 Kirill Yukhin <kirill.yukhin@intel.com>
1936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1938 * config/i386/sse.md
1939 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1940 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1942 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1943 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1944 Anna Tikhonova <anna.tikhonova@intel.com>
1945 Ilya Tocar <ilya.tocar@intel.com>
1946 Andrey Turetskiy <andrey.turetskiy@intel.com>
1947 Ilya Verbin <ilya.verbin@intel.com>
1948 Kirill Yukhin <kirill.yukhin@intel.com>
1949 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1951 * config/i386/sse.md
1952 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1953 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1954 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1957 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1958 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1959 Anna Tikhonova <anna.tikhonova@intel.com>
1960 Ilya Tocar <ilya.tocar@intel.com>
1961 Andrey Turetskiy <andrey.turetskiy@intel.com>
1962 Ilya Verbin <ilya.verbin@intel.com>
1963 Kirill Yukhin <kirill.yukhin@intel.com>
1964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1966 * config/i386/sse.md
1967 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1968 use VF_128_256 mode iterator and update assembler emit code.
1969 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1970 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1971 Add masking, use VF_128_256 mode iterator.
1972 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1973 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1974 Add masking, use VF_128_256 mode iterator and update assembler emit
1976 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1977 (define_mode_attr avx512flogicsuff): Delete.
1978 (define_insn "avx512f_<logic><mode>"): Ditto.
1979 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1981 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1983 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1985 Anna Tikhonova <anna.tikhonova@intel.com>
1986 Ilya Tocar <ilya.tocar@intel.com>
1987 Andrey Turetskiy <andrey.turetskiy@intel.com>
1988 Ilya Verbin <ilya.verbin@intel.com>
1989 Kirill Yukhin <kirill.yukhin@intel.com>
1990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1992 * config/i386/sse.md
1993 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1994 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1995 use VI12_128 mode iterator.
1996 (define_expand "ashrv2di3<mask_name>"): New.
1998 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2000 Anna Tikhonova <anna.tikhonova@intel.com>
2001 Ilya Tocar <ilya.tocar@intel.com>
2002 Andrey Turetskiy <andrey.turetskiy@intel.com>
2003 Ilya Verbin <ilya.verbin@intel.com>
2004 Kirill Yukhin <kirill.yukhin@intel.com>
2005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2007 * config/i386/i386.c
2008 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2009 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2010 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2011 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2012 CODE_FOR_avx512vl_ucmpv4si3_mask.
2013 * config/i386/sse.md
2014 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2015 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2017 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2018 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2019 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2020 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2021 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2022 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2024 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2025 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2026 Anna Tikhonova <anna.tikhonova@intel.com>
2027 Ilya Tocar <ilya.tocar@intel.com>
2028 Andrey Turetskiy <andrey.turetskiy@intel.com>
2029 Ilya Verbin <ilya.verbin@intel.com>
2030 Kirill Yukhin <kirill.yukhin@intel.com>
2031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2033 * config/i386/sse.md
2034 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2035 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2036 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2037 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2038 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2039 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2040 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2041 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2042 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2044 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2045 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2046 Anna Tikhonova <anna.tikhonova@intel.com>
2047 Ilya Tocar <ilya.tocar@intel.com>
2048 Andrey Turetskiy <andrey.turetskiy@intel.com>
2049 Ilya Verbin <ilya.verbin@intel.com>
2050 Kirill Yukhin <kirill.yukhin@intel.com>
2051 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2053 * config/i386/sse.md
2054 (define_insn "avx512f_blendm<mode>"): Delete.
2055 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2056 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2057 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2058 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2060 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2063 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2066 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2068 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2069 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2070 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2071 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2074 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2077 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2079 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2082 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2085 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2088 2014-10-14 Richard Biener <rguenther@suse.de>
2090 PR tree-optimization/63512
2091 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2094 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2097 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2098 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2100 (negsf2_i): Rename to *negsf2_i.
2101 (abssf2_i): Rename to *abssf2_i.
2102 (negdf2_i): Rename to *negdf2_i.
2103 (absdf2_i): Rename to *absdf2_i.
2105 2014-10-14 Felix Yang <felix.yang@huawei.com>
2106 Jeff Law <law@redhat.com>
2108 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2109 "replace" into boolean bitfields; turn member "loop_depth" into a short
2110 integer; add new member "no_equiv" and "reserved".
2111 (no_equiv): Set no_equiv of struct equivalence if register is marked
2112 as having no known equivalence.
2113 (update_equiv_regs): Check all definitions for a multiple-set
2114 register to make sure that the RHS have the same value.
2116 2014-10-13 Richard Henderson <rth@redhat.com>
2118 * combine-stack-adj.c (no_unhandled_cfa): New.
2119 (maybe_merge_cfa_adjust): New.
2120 (combine_stack_adjustments_for_block): Use them.
2122 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2124 * Makefile.in (TAGS): Tag ../include files.
2126 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2128 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2129 to rs6000_dbx_register_number.
2130 (DWARF_FRAME_REGNUM): Redefine as identity map.
2131 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2132 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2133 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2134 argument to handle .debug_frame and .eh_frame directly. Always
2135 translate SPE high register numbers. Add special treatment for CR,
2136 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2138 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2139 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2140 (RS6000_USE_DWARF_NUMBERING): Define.
2141 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2142 (RS6000_USE_DWARF_NUMBERING): Define.
2143 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2144 (RS6000_USE_DWARF_NUMBERING): Define.
2145 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2146 (RS6000_USE_DWARF_NUMBERING): Define.
2147 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2148 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2150 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2152 * config/i386/i386.c (ix86_address_cost): Lower cost for
2153 when address contains GOT register.
2155 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2156 Vladimir Makarov <vmakarov@redhat.com>
2160 PR rtl-optimization/55458
2161 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2162 (ix86_init_pic_reg): New.
2163 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2164 (ix86_save_reg): Likewise.
2165 (ix86_expand_prologue): Remove PIC register initialization
2166 now performed in ix86_init_pic_reg.
2167 (ix86_output_function_epilogue): Add check on pseudo register.
2168 (set_pic_reg_ever_alive): New.
2169 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2170 set_pic_reg_ever_alive.
2171 (legitimize_tls_address): Likewise.
2172 (ix86_pic_register_p): New check.
2173 (ix86_delegitimize_address): Add check on pseudo register.
2174 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2175 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2176 (TARGET_INIT_PIC_REG): New.
2177 (TARGET_USE_PSEUDO_PIC_REG): New.
2178 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2179 if pic_offset_table_rtx exists.
2180 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2182 * doc/tm.texi: Regenerate.
2183 * function.c (assign_parms): Generate pseudo register for PIC.
2184 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2186 * ira-color.c (color_pass): Add check on pseudo register.
2187 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2189 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2191 (ira): Add target specific PIC register initialization.
2192 (do_reload): Keep PIC pseudo register.
2193 * lra-assigns.c (spill_for): Add checks on pseudo register.
2194 * lra-constraints.c (contains_symbol_ref_p): New.
2195 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2197 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2198 * target.def (use_pseudo_pic_reg): New.
2199 (init_pic_reg): New.
2201 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2203 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2204 Remove m_SILVERMONT and m_INTEL from the tune.
2206 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2209 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2210 when _HPUX_SOURCE is defined.
2212 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2214 PR tree-optimization/62127
2215 * tree.c (remap_type_1): When remapping array, remap
2218 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2220 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2221 longer impact parallelization.
2223 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2226 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2228 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2230 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2232 2014-10-13 Richard Biener <rguenther@suse.de>
2234 PR tree-optimization/63419
2235 * gimple-fold.h (gimple_convert): New function.
2236 * gimple-fold.c (gimple_convert): Likewise.
2237 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2238 to split out required conversions early.
2240 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2242 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2243 Add the parts of an insn in reverse order, with the pattern at
2244 the top of the queue. Detect when we're iterating over a SEQUENCE
2245 pattern and in that case just consider patterns of subinstructions.
2247 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2250 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2252 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2254 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2255 address. Use def chains to handle GBR clobbering call insns.
2257 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2259 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2260 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2261 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2262 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2263 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2264 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2265 * doc/gty.texi (for_user): Document new option.
2266 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2268 (walk_type): Don't error out on for_user option.
2269 (write_func_for_structure): Emit user marking routines if requested by
2271 (write_local_func_for_structure): Likewise.
2272 (main): Mark types with for_user option as used.
2273 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2274 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2275 * hash-table.h (ggc_hasher): New struct.
2276 (hash_table::create_ggc): New function.
2277 (gt_pch_nx): New overload for hash_table.
2279 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2281 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2282 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2283 * config/sh/sh.c: Likewise.
2284 * config/sh/sh-mem.cc: Likewise.
2285 * config/sh/sh.md: Likewise.
2286 * config/sh/predicates.md: Likewise.
2287 * config/sh/sync.md: Likewise.
2289 2014-10-11 Martin Liska <mliska@suse.cz>
2292 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2293 for call_cgraph_insertion_hooks added.
2295 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2298 * stor-layout.c (min_align_of_type): Don't decrease alignment
2299 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2300 TYPE_USER_ALIGN is set.
2302 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2304 PR rtl-optimization/63483
2305 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2306 references when alignment ANDs are involved.
2307 (write_dependence_p): Ditto.
2308 (may_alias_p): Ditto.
2310 2014-10-10 Marek Polacek <polacek@redhat.com>
2312 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2313 * doc/invoke.texi: Document -fsanitize=object-size.
2314 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2315 or it into SANITIZE_UNDEFINED.
2316 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2317 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2318 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2319 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2320 * ubsan.c: Include tree-object-size.h.
2321 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2322 (ubsan_expand_bounds_ifn): Use false instead of 0.
2323 (ubsan_expand_objsize_ifn): New function.
2324 (instrument_object_size): New function.
2325 (pass_ubsan::execute): Add object size instrumentation.
2326 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2328 2014-10-10 Richard Henderson <rth@redhat.com>
2331 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2332 Restrict the set of expressions we're willing to move.
2334 2014-10-10 Jeff Law <law@redhat.com>
2336 * ira.c (struct equivalence): Promote INIT_INSNs field to
2337 an rtx_insn_list. Add comments.
2338 (no_equiv): Promote LIST to an rtx_insn_list. Update
2339 testing for and creating the special marker. Use methods
2340 to extract the insn and next pointers. Promote INSN to an
2342 (update_equiv_regs): Update test for special marker in the
2345 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2347 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2348 * configure: Regenerate.
2349 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2350 TARGET_FIX_ERR_A53_835769_DEFAULT.
2351 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2353 * doc/install.texi (aarch64*-*-*): Document
2354 new --enable-fix-cortex-a53-835769 option.
2356 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2357 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2359 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2360 (ADJUST_INSN_LENGTH): Define.
2361 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2362 * config/aarch64/aarch64.c (is_mem_p): New function.
2363 (is_memory_op): Likewise.
2364 (aarch64_prev_real_insn): Likewise.
2365 (is_madd_op): Likewise.
2366 (dep_between_memop_and_curr): Likewise.
2367 (aarch64_madd_needs_nop): Likewise.
2368 (aarch64_final_prescan_insn): Likewise.
2369 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2370 and -mno-fix-cortex-a53-835769 options.
2372 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2374 PR tree-optimization/63464
2375 * tree-switch-conversion.c (struct case_bit_test): Remove
2376 hi and lo fields, add wide_int mask field.
2377 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2378 hi/lo fields into wide_int mask operations, optimize by pretending
2379 minval to be 0 if maxval is small enough.
2380 (process_switch): Adjust caller.
2382 2014-10-10 Richard Biener <rguenther@suse.de>
2384 PR tree-optimization/63379
2385 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2386 a neutral operand for min/max when it is not a reduction chain.
2388 2014-10-10 Richard Biener <rguenther@suse.de>
2390 PR tree-optimization/63476
2391 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2392 (BB_LIVE_VOP_ON_EXIT): New define.
2393 (create_expression_by_pieces): Assign VUSEs to stmts.
2394 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2395 (pass_pre::execute): Assert virtual SSA form is up-to-date
2398 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2400 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2402 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2404 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2407 2014-10-09 Richard Biener <rguenther@suse.de>
2409 PR tree-optimization/63380
2410 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2413 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2415 * config/avr/avr.opt (mmcu=): Change to have a string value.
2416 (mn-flash=, mskip-bug, march=, mrmw): New options.
2417 (HeaderInclude): New.
2418 (mmcu=): Remove Var / Init clauses.
2419 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2421 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2422 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2423 (SYMBOL_FLAG_IO_LOW): Define.
2424 (avr_device_to_as, avr_device_to_ld): Don't declare.
2425 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2426 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2427 (EXTRA_SPEC_FUNCTIONS): Don't define.
2428 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2429 (LINK_SPEC): Translate -arch= option to -m= option.
2430 Don't use device_to_ld / device_to_data_start.
2431 (STARTFILE_SPEC): Now empty.
2432 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2433 * config/avr/gen-avr-mmcu-specs.c: New file.
2434 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2435 (s-device-specs): Likewise.
2436 (GCC_PASSES): Add s-device-specs.
2437 (install-driver): Depend on install-device-specs.
2438 (install-device-specs): New rule.
2439 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2440 avr_arch_index and provide fallback initialization for avr_n_flash.
2441 (varasm.h): #include.
2442 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2443 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2444 (avr_attribute_table): Add "io", "address" and "io_low".
2445 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2446 Add special handling for symbols with "io" and/or "address" attributes.
2447 (avr_asm_asm_output_aligned_bss): New function.
2448 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2449 as appropriate. Handle io_low attribute.
2450 (avr_out_sbxx_branch): Handle symbolic io addresses.
2451 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2452 avr_n_flash instead of avr_current_device->n_flash.
2453 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2454 (avr_emit_movmemhi): Likewise.
2455 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2456 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2457 Don't define avr_current_device->macro (that's the specfile's job).
2458 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2459 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2460 * config/avr/avr.md (*cpse.ne): Likewise.
2461 (mov<mode>): Use avr_eval_addr_attrib.
2462 (cbi): Change constraint for low_io_address_operand operand to "i".
2463 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2464 * config/avr/predicates.md (io_address_operand):
2465 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2466 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2467 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2469 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2470 * config/avr/genmultilib.awk: Use -march=.
2471 Remove Multilib matches processing.
2472 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2473 * config/avr/avr-arch.h: Add double include guard.
2474 (avr_mcu_t) <library_name>: Update comment.
2475 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2476 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2477 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2478 (avr_device_to_sp8): Likewise.
2479 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2481 * doc/extend.texi (io, address): Document new AVR variable attributes.
2484 2014-10-09 Marek Polacek <polacek@redhat.com>
2486 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2488 2014-10-08 Richard Biener <rguenther@suse.de>
2490 PR tree-optimization/61969
2491 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2494 2014-10-09 Richard Biener <rguenther@suse.de>
2496 PR tree-optimization/63445
2497 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2498 overflow for non-equality compares.
2500 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2502 PR rtl-optimization/57003
2503 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2504 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2505 killing regs_invalidated_by_call.
2507 2014-10-08 Teresa Johnson <tejohnson@google.com>
2510 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2511 (ssa_fix_duplicate_block_edges): Invoke it.
2512 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2514 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2517 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2518 atomic_fetch_<fetchop_name>si_hard,
2519 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2520 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2521 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2522 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2524 2014-10-08 Rong Xu <xur@google.com>
2526 * gcov-tool.c (profile_overlap): New driver function
2527 to compute profile overlap.
2528 (print_overlap_usage_message): New.
2529 (overlap_usage): New.
2531 (print_usage): Add calls to overlap function.
2533 * doc/gcov-tool.texi: Add documentation.
2535 2014-10-08 Steve Ellcey <sellcey@mips.com>
2537 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2538 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2540 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2542 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2543 pattern matching of MEM_REF.
2544 (check_stmt_for_type_change): Update.
2546 2014-10-08 Steve Ellcey <sellcey@mips.com>
2548 * config/mips/linux64.h: Remove.
2549 * config/mips/gnu-user64.h: Remove.
2550 * gcc.config (mips*-*-*): Remove references to linux64.h and
2552 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2553 with modified version from gnu-user64.h.
2554 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2555 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2556 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2558 (GNU_USER_LINK_EMULATION64): Ditto.
2559 (GNU_USER_LINK_EMULATIONN32): Ditto.
2560 (GLIBC_DYNAMIC_LINKER32): Ditto.
2561 (GLIBC_DYNAMIC_LINKER64): Ditto.
2562 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2563 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2564 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2565 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2566 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2567 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2568 (GLIBC_DYNAMIC_LINKER): Delete.
2569 (UCLIBC_DYNAMIC_LINKER): Delete.
2571 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2572 Richard Biener <rguenther@suse.de>
2574 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2575 Get address space from operand 0 (BASE).
2577 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2580 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2582 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2584 * dwarf2out.c: Remove current_function_has_inlines.
2585 (gen_subprogram_die): Same.
2586 (gen_inlined_subroutine_die): Same.
2588 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2590 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2592 (_addcarry_u64): Ditto.
2593 (_addcarryx_u64): Ditto.
2595 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2597 * cgraph.h (cgraph_node::get_fun): Declare.
2598 * cgraph.c (cgraph_node::get_fun): New method.
2599 * ipa-inline.c (can_inline_edge_p): Use it.
2601 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2603 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2604 and -ftrapping-math.
2605 * lto-wrapper.c (merge_and_complain): Likewise.
2606 (run_gcc): Likewise.
2608 2014-10-06 Rong Xu <xur@google.com>
2610 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2611 * tree-profile.c: (params.h): New include.
2612 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2613 and __gcov_indirect_call_topn_counters for
2614 indirect_call_topn_profile.
2615 (gimple_init_edge_profiler): New decls for
2616 __gcov_indirect_call_topn_profiler.
2617 (gimple_gen_ic_profiler): Generate the correct profiler call.
2618 (gimple_gen_ic_func_profiler): Fix format.
2619 * value-prof.c (params.h): New include.
2620 (dump_histogram_value): Hanlde indirect_call_topn counters.
2621 (stream_in_histogram_value): Ditto.
2622 (gimple_indirect_call_to_profile): Use indirect_call_topn
2623 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2624 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2626 * value-prof.h (enum hist_type): Histrogram type for
2627 indirect_call_topn counters.
2628 * profile.c (instrument_values): Instrument
2629 indirect_call_topn counters.
2631 2014-10-06 Rong Xu <xur@google.com>
2633 * Makefile.in: Fix dependence.
2634 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2635 indirect call topn profiler.
2638 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2640 * calls.c (expand_call): Do not use the target as the return slot if
2641 it is not sufficiently aligned.
2643 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2645 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2646 discussion of permutes and why we don't handle them.
2648 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2650 * config/sparc/predicates.md (int_register_operand): Delete.
2652 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2654 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2656 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2658 * ubsan.h (ubsan_get_source_location): New prototype.
2659 * ubsan.c (ubsan_source_location_type): New variable.
2660 Function renamed to ...
2661 (ubsan_get_source_location_type): ... this. Cache
2662 return value in ubsan_source_location_type variable.
2663 (ubsan_source_location, ubsan_create_data): Use
2664 ubsan_get_source_location_type instead of
2665 ubsan_source_location_type.
2666 * asan.c (asan_protect_global): Don't protect globals
2667 with ubsan_get_source_location_type () type.
2668 (asan_add_global): Provide global decl location info
2671 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2673 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2676 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2678 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2680 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2682 (ipa_polymorphic_call_context::dump): Fix formating.
2683 (walk_ssa_copies): Add logic avoiding loops; update uses.
2684 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2686 2014-10-02 Mark Wielaard <mjw@redhat.com>
2689 * dwarf2out.c (gen_subprogram_die): When a member function is
2690 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2691 * langhooks.h (struct lang_hooks_for_decls): Add
2692 function_decl_deleted_p langhook.
2693 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2694 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2696 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2698 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2699 NULL pointer checks.
2700 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2701 if type doesn't change.
2702 * cgraph.h (cgraph_indirect_call_info): New flag.
2703 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2704 (cgraph_node::dump): Dump it.
2705 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2706 of context.get_dynamic_type.
2707 (ipa_make_edge_direct_to_target): Do not speculate
2708 edge that is already speuclative.
2709 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2710 speculate to __builtin_unreachable
2711 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2713 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2715 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2717 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2718 get_dynamic_type; drop TODO.
2719 * ipa-polymorphic-call.c
2720 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2721 for otr_type to be unknown.
2723 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2725 * common/config/score/score-common.c: Remove.
2726 * config.gcc: Remove support for score-*.
2727 * config/score/constraints.md: Remove.
2728 * config/score/elf.h: Remove.
2729 * config/score/predicates.md: Remove.
2730 * config/score/score-conv.h: Remove.
2731 * config/score/score-generic.md: Remove.
2732 * config/score/score-modes.def: Remove.
2733 * config/score/score-protos.h: Remove.
2734 * config/score/score.c: Remove.
2735 * config/score/score.h: Remove.
2736 * config/score/score.md: Remove.
2737 * config/score/score.opt: Remove.
2738 * doc/md.texi: Don't document score-*.
2740 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2743 * genconditions.c: Directly include ggc.h before rtl.h.
2745 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2747 * ipa-polymorphic-call.c
2748 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2749 code determining speculative type.
2750 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2752 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2754 * altivec.md (altivec_lvsl): New define_expand.
2755 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2756 (altivec_lvsr): New define_expand.
2757 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2758 * rs6000.c (rs6000_expand_builtin): Change to use
2759 altivec_lvs[lr]_direct; remove commented-out code.
2761 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2763 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2764 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2765 little endian target.
2767 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2769 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2771 * tree-pretty-print.h (dump_location): Declare.
2772 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2773 (pp_gimple_stmt_1): Likewise.
2774 (dump_implicit_edges): Likewise.
2775 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2779 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2781 * gcc.c (driver::global_initializations): Remove "const" so
2782 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2783 and decoded_options_count.
2785 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2787 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2789 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2790 TARGET_E500_DOUBLE case here.
2792 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2797 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2799 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2801 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2802 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2803 in_polymorphic_cdtor
2804 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2805 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2806 * cgraphclones.c (cgraph_edge::clone): Likewise.
2807 * ipa-prop.c (update_jump_functions_after_inlining,
2808 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2809 to possible_dynamic_type_change.
2810 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2811 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2812 IN_POLY_CDOTR argument.
2814 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2815 for BASE and OUTER_TYPE being NULL.
2816 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2817 in_poly_cdtor parameter.
2819 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2821 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2822 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2824 (expand_vec_perm_1): Likewise.
2826 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2827 Uros Bizjak <ubizjak@gmail.com>
2829 PR tree-optimization/61403
2830 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2831 error in comment. Also optimize 256-bit vectors for AVX2
2832 or AVX (floating vectors only), provided the first permutation
2833 can be performed in one insn.
2835 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2837 * gcc.c (class driver): New class.
2838 (main): Reimplement in terms of driver::main, moving most of the
2839 locals to be locals within individual methods of class driver.
2840 The remaining locals "explicit_link_files", "decoded_options" and
2841 "decoded_options_count" are used by multiple driver:: methods, and
2842 so become member data. Doing so isolates the argc/argv reads and
2843 writes. Replace "goto out" with a special exit code from
2844 new method driver::prepare_infiles. Split out the old
2845 implementation of main into the following...
2846 (driver::main): New function, corresponding to the old "main"
2848 (driver::set_progname): New function, taken from the old
2849 "main" implementation.
2850 (driver::expand_at_files): Likewise.
2851 (driver::decode_argv): Likewise.
2852 (driver::global_initializations): Likewise.
2853 (driver::build_multilib_strings): Likewise.
2854 (driver::set_up_specs): Likewise.
2855 (driver::putenv_COLLECT_GCC): Likewise.
2856 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2857 (driver::handle_unrecognized_options): Likewise.
2858 (driver::maybe_print_and_exit): Likewise.
2859 (driver::prepare_infiles): Likewise.
2860 (driver::do_spec_on_infiles): Likewise.
2861 (driver::maybe_run_linker): Likewise.
2862 (driver::final_actions): Likewise.
2863 (driver::get_exit_code): Likewise.
2865 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2867 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2868 don't emit empty ctors.
2870 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2872 * convert.c (convert_to_integer): Do not introduce useless conversions
2873 between integral types.
2875 2014-10-03 David Sherwood <david.sherwood@arm.com>
2877 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2879 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2881 * lra-constraints.c (inherit_in_ebb): Handle calls with
2882 multiple return values.
2883 * caller-save.c (save_call_clobbered_regs): Likewise.
2885 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2887 * tree-vect-data-refs.c (vect_permute_load_chain,
2888 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2889 suffle3 to shuffle3.
2892 * omp-low.c (taskreg_contexts): New variable.
2893 (scan_omp_parallel): Push newly created context into taskreg_contexts
2894 vector and move record layout code to finish_taskreg_scan.
2895 (scan_omp_task): Likewise.
2896 (finish_taskreg_scan): New function.
2897 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2898 vector elements and release it.
2901 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2902 of palignr arguments can't be used due to min 0 or max - min
2903 too high, try also op0, op1 order of palignr arguments.
2905 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2907 * cgraph.h (ipa_polymorphic_call_context):
2908 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2909 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2910 * ipa-polymorphic-call.c
2911 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2912 past end of dynamic types.
2913 (ipa_polymorphic_call_context::stream_out,
2914 speculative_outer_type): Stream dynamic flag.
2915 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2916 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2918 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2920 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2921 * ipa-prop.c (update_jump_functions_after_inlining,
2922 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2924 2014-10-02 Teresa Johnson <tejohnson@google.com>
2926 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2927 up when synthesizing counts to avoid rounding errors.
2929 2014-10-02 Teresa Johnson <tejohnson@google.com>
2932 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2933 asserts to handle incoming insanities.
2935 2014-10-02 Martin Jambor <mjambor@suse.cz>
2937 PR tree-optimization/63375
2938 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2941 2014-10-02 Olivier Hainque <hainque@adacore.com>
2943 * Makefile.in (CROSS): Define, to @CROSS.
2945 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2948 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2949 if it expands to a single insn only.
2950 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2951 fail unless in_order is true. Add forward declaration.
2952 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2953 is useful for one_operand_p.
2954 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2956 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2958 * cgraphclones.c (build_function_type_skip_args): Do not make new
2959 type variant of old.
2961 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2963 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2964 when speculation is added.
2965 (ipa_edge_args): Add polymorphic_call_contexts.
2966 (ipa_get_ith_polymorhic_call_context): New accesor.
2967 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2968 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2969 (ipa_compute_jump_functions_for_edge): Compute contexts.
2970 (update_jump_functions_after_inlining): Update contexts.
2971 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2972 update dumping; add speculative edge creation.
2973 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2975 (update_indirect_edges_after_inlining): Pass down context.
2976 (ipa_edge_duplication_hook): Duplicate contexts.
2977 (ipa_write_node_info): Stream out contexts.
2978 (ipa_read_node_info): Stream in contexts.
2979 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2981 (try_speculative_devirtualization): New function.
2982 * ipa-utils.h (try_speculative_devirtualization): Declare.
2984 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2986 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2989 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2991 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2994 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2996 * ipa-polymorphic-call.c
2997 (ipa_polymorphic_call_context::restrict_to_inner_class):
2998 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2999 use speculation_consistent_p to do so; Add CONSDER_BASES
3000 and CONSIDER_PLACEMENT_NEW parameters.
3001 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3002 short circuit obvious cases.
3003 (ipa_polymorphic_call_context::dump): Improve formatting.
3004 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3005 combine_speculation_with to record speculations; Do not ICE when
3006 object is located in pointer type decl; do not ICE for methods
3007 of UNION_TYPE; do not record nonpolymorphic types.
3008 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3009 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3010 (ipa_polymorphic_call_context::combine_with): New method.
3011 (ipa_polymorphic_call_context::make_speculative): Move here; use
3012 combine speculation.
3013 * cgraph.h (ipa_polymorphic_call_context): Update
3014 restrict_to_inner_class prototype; add offset_by, make_speculative,
3015 combine_with, useless_p, combine_speculation_with and
3016 speculation_consistent_p methods.
3017 (ipa_polymorphic_call_context::offset_by): New method.
3018 (ipa_polymorphic_call_context::useless_p): New method.
3020 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3022 PR rtl-optimization/62151
3023 * combine.c (can_combine_p): Allow the destination register of INSN
3024 to be clobbered in I3.
3025 (subst): Do not substitute into clobbers of registers.
3027 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3030 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3031 offset, TARGET_MEM_REF and SSA_NAME.
3033 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3034 256-bit vectors for TARGET_AVX2.
3036 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3040 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3041 argument to avx2_permv2ti.
3043 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3045 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3047 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3049 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3050 (fmod<mode>3): Ditto.
3051 (fpremxf4_i387): Ditto.
3052 (reminderxf3): Ditto.
3053 (reminder<mode>3): Ditto.
3054 (fprem1xf4_i387): Ditto.
3056 2014-09-30 Teresa Johnson <tejohnson@google.com>
3058 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3059 duplicate_blocks bitmap.
3060 (remove_ctrl_stmt_and_useless_edges): Ditto.
3061 (create_block_for_threading): Ditto.
3062 (compute_path_counts): New function.
3063 (update_profile): Ditto.
3064 (recompute_probabilities): Ditto.
3065 (update_joiner_offpath_counts): Ditto.
3066 (freqs_to_counts_path): Ditto.
3067 (clear_counts_path): Ditto.
3068 (ssa_fix_duplicate_block_edges): Update profile info.
3069 (ssa_create_duplicates): Pass new parameter.
3070 (ssa_redirect_edges): Remove old profile update.
3071 (thread_block_1): New duplicate_blocks bitmap,
3072 remove old profile update.
3073 (thread_single_edge): Pass new parameter.
3075 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3078 * varasm.c (decode_reg_name_and_count): Check availability for
3079 registers from ADDITIONAL_REGISTER_NAMES.
3081 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3084 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3085 (PLUGIN_HEADERS): Add pass-instances.def.
3087 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3089 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3091 * config/aarch64/aarch64-simd.md
3092 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3093 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3094 (vqdmulls_lane_s32): Fix return type.
3095 (vqdmulls_laneq_s32): New.
3097 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3100 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3101 or invert_jump_1 if jump isn't any_condjump_p.
3103 2014-09-30 Terry Guo <terry.guo@arm.com>
3105 * config/arm/arm-cores.def (cortex-m7): New core name.
3106 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3108 * config/arm/arm-tables.opt: Regenerated.
3109 * config/arm/arm-tune.md: Regenerated.
3110 * config/arm/arm.h (TARGET_VFP5): New macro.
3111 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3112 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3113 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3114 * doc/invoke.texi: Document new cpu and fpu names.
3116 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3118 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3119 before sinking insn.
3121 2014-09-30 David Sherwood <david.sherwood@arm.com>
3123 * ira-int.h (ira_allocno): Add "wmode" field.
3124 * ira-build.c (create_insn_allocnos): Add new "parent" function
3126 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3127 that cannot be accessed in wmode.
3129 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3131 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3134 2014-09-29 Andi Kleen <ak@linux.intel.com>
3136 * opts.c (print_filtered_help): Print --param min/max/default
3139 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3141 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3143 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3145 * tree-vrp.c (get_single_symbol): New function.
3146 (build_symbolic_expr): Likewise.
3147 (symbolic_range_based_on_p): New predicate.
3148 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3149 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3150 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3151 operand is symbolic and based on the other operand.
3153 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3155 * config/microblaze/microblaze.md (call_internal1): Use VOID
3156 instead of SI to fix "((void (*)(void)) 0)()" issue
3158 2014-09-29 Nick Clifton <nickc@redhat.com>
3160 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3161 CLOBBER rtx for naked functions.
3162 (msp430_expand_epilogue): Likewise.
3163 (msp430_use_f5_series_hwmult): Cache result.
3164 (use_32bit_hwmult): Cache result.
3165 (msp430_no_hwmult): New function.
3166 (msp430_output_labelref): Use it.
3168 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3171 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3172 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3173 use the alignment of avar rather than ovar.
3175 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3177 * config/pa/pa.c (pa_output_function_epilogue): Only update
3178 last_address when a nonnote insn is found.
3180 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3183 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3185 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3188 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3189 fix pasto in checking array size.
3191 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3194 * passes.def (pass_tracer): Move before last dominator pass.
3196 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3198 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3200 (run_attempt): Handle errors of "pex_run" invocation.
3202 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3204 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3206 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3207 (TARGET_ASAN_SHADOW_OFFSET): Define.
3209 2014-09-26 Martin Liska <mliska@suse.cz>
3211 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3213 * cgraph.h: Likewise.
3214 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3215 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3216 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3217 * tree-ssa-alias.h: Likewise.
3219 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3220 Max Ostapenko <m.ostapenko@partner.samsung.com>
3222 * common.opt: New option.
3223 * doc/invoke.texi: Describe new option.
3224 * gcc.c (execute): Don't free first string early, but at the end
3225 of the function. Call retry_ice if compiler exited with
3227 (main): Factor out common code.
3228 (print_configuration): New function.
3229 (files_equal_p): Likewise.
3230 (check_repro): Likewise.
3231 (run_attempt): Likewise.
3232 (do_report_bug): Likewise.
3233 (append_text): Likewise.
3234 (try_generate_repro): Likewise
3236 2014-09-25 Andi Kleen <ak@linux.intel.com>
3238 * config/i386/i386.c (x86_print_call_or_nop): New function.
3239 (x86_function_profiler): Support -mnop-mcount and
3241 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3242 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3244 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3246 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3247 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3248 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3251 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3253 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3254 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3255 types_odr_comparable): Declare.
3256 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3257 * ipa-polymorphic-call.c: New file.
3258 (contains_polymorphic_type_p, possible_placement_new,
3259 ipa_polymorphic_call_context::restrict_to_inner_class,
3260 contains_type_p, decl_maybe_in_construction_p,
3261 ipa_polymorphic_call_context::stream_out,
3262 ipa_polymorphic_call_context::debug,
3263 ipa_polymorphic_call_context::stream_in,
3264 ipa_polymorphic_call_context::set_by_decl,
3265 ipa_polymorphic_call_context::set_by_invariant,
3267 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3268 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3269 extr_type_from_vtbl_ptr_store, record_known_type
3270 check_stmt_for_type_change,
3271 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3273 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3274 and streamer-hooks.h
3275 (contains_polymorphic_type_p, possible_placement_new,
3276 ipa_polymorphic_call_context::restrict_to_inner_class,
3277 contains_type_p, decl_maybe_in_construction_p,
3278 ipa_polymorphic_call_context::stream_out,
3279 ipa_polymorphic_call_context::debug,
3280 ipa_polymorphic_call_context::stream_in,
3281 ipa_polymorphic_call_context::set_by_decl,
3282 ipa_polymorphic_call_context::set_by_invariant,
3284 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3285 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3286 extr_type_from_vtbl_ptr_store, record_known_type
3287 check_stmt_for_type_change,
3288 ipa_polymorphic_call_context::get_dynamic_type): Move to
3289 ipa-polymorphic-call.c
3290 (type_all_derivations_known_p, types_odr_comparable,
3291 types_must_be_same_for_odr): Export.
3292 (type_known_to_have_no_deriavations_p): New function.
3293 * Makefile.in: Add ipa-polymorphic-call.c
3295 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3297 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3299 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3300 (possible_polymorphic_call_targets): Instead of computing both
3301 speculative and non-speculative answers, do just one at a time.
3302 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3303 (dump_targets): Break out from ...
3304 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3305 and non-speculative lists.
3306 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3307 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3309 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3311 PR rtl-optimization/63348
3312 * emit-rtl.c (try_split): Do not emit extra barrier.
3314 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3316 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3317 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3319 (aarch64_<sur>shll2_n<mode>): Likewise.
3320 (aarch64_<sur>shr_n<mode>): Likewise.
3321 (aarch64_<sur>sra_n<mode>: Likewise.
3322 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3323 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3324 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3325 * config/aarch64/iterators.md (ve_mode): New.
3326 (offsetlr): Remap to infix text for use in new predicates.
3327 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3328 (aarch64_simd_shift_imm_hi): Likewise.
3329 (aarch64_simd_shift_imm_si): Likewise.
3330 (aarch64_simd_shift_imm_di): Likewise.
3331 (aarch64_simd_shift_imm_offset_qi): Likewise.
3332 (aarch64_simd_shift_imm_offset_hi): Likewise.
3333 (aarch64_simd_shift_imm_offset_si): Likewise.
3334 (aarch64_simd_shift_imm_offset_di): Likewise.
3335 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3336 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3337 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3338 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3340 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3342 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3343 new created BB as the intersection of live-in from "old_dest" and
3346 2014-09-25 Felix Yang <felix.yang@huawei.com>
3348 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3349 * genautomata.c (merge_states): Ditto.
3351 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3354 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3355 in instruction sequence.
3357 2014-09-25 Nick Clifton <nickc@redhat.com>
3360 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3361 in instruction sequence.
3363 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3366 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3367 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3369 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3371 Anna Tikhonova <anna.tikhonova@intel.com>
3372 Ilya Tocar <ilya.tocar@intel.com>
3373 Andrey Turetskiy <andrey.turetskiy@intel.com>
3374 Ilya Verbin <ilya.verbin@intel.com>
3375 Kirill Yukhin <kirill.yukhin@intel.com>
3376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3378 * config/i386/sse.md
3379 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3380 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3381 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3382 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3383 Use VI8F_256_512 mode iterator.
3384 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3385 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3387 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3389 Anna Tikhonova <anna.tikhonova@intel.com>
3390 Ilya Tocar <ilya.tocar@intel.com>
3391 Andrey Turetskiy <andrey.turetskiy@intel.com>
3392 Ilya Verbin <ilya.verbin@intel.com>
3393 Kirill Yukhin <kirill.yukhin@intel.com>
3394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3396 * config/i386/sse.md
3397 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3398 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3399 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3400 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3401 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3402 (define_insn "*vec_concatv2df"): Add EVEX version.
3404 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3406 Anna Tikhonova <anna.tikhonova@intel.com>
3407 Ilya Tocar <ilya.tocar@intel.com>
3408 Andrey Turetskiy <andrey.turetskiy@intel.com>
3409 Ilya Verbin <ilya.verbin@intel.com>
3410 Kirill Yukhin <kirill.yukhin@intel.com>
3411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3413 * config/i386/sse.md
3414 (define_insn "vec_set<mode>_0"): Add EVEX version.
3416 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3418 Anna Tikhonova <anna.tikhonova@intel.com>
3419 Ilya Tocar <ilya.tocar@intel.com>
3420 Andrey Turetskiy <andrey.turetskiy@intel.com>
3421 Ilya Verbin <ilya.verbin@intel.com>
3422 Kirill Yukhin <kirill.yukhin@intel.com>
3423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3425 * config/i386/sse.md
3427 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3429 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3430 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3431 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3432 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3433 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3434 (define_expand "sse2_cvtpd2ps_mask): New.
3435 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3436 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3438 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3439 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3440 Anna Tikhonova <anna.tikhonova@intel.com>
3441 Ilya Tocar <ilya.tocar@intel.com>
3442 Andrey Turetskiy <andrey.turetskiy@intel.com>
3443 Ilya Verbin <ilya.verbin@intel.com>
3444 Kirill Yukhin <kirill.yukhin@intel.com>
3445 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3447 * config/i386/i386.c
3448 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3449 (ufix_notruncv8dfv8si2_mask_round): ... this.
3450 * config/i386/sse.md
3451 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3452 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3453 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3454 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3455 (define_expand "sse2_cvtpd2dq"): Delete.
3456 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3457 make 2nd operand const0 vector.
3458 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3460 (define_mode_attr pd2udqsuff): New.
3462 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3463 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3464 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3465 (define_expand "sse2_cvttpd2dq"): Ditto.
3466 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3467 make 2nd operand const0 vector.
3469 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3471 PR tree-optimization/63341
3472 * tree-vectorizer.h (vect_create_data_ref_ptr,
3473 vect_create_addr_base_for_vector_ref): Add another tree argument
3474 defaulting to NULL_TREE.
3475 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3476 argument, pass it down to vect_create_addr_base_for_vector_ref.
3477 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3478 add that to base_offset too if non-NULL.
3479 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3480 for dr_explicit_realign_optimized set it to vector byte size
3481 - 1 instead of setting offset, pass byte_offset down to
3482 vect_create_data_ref_ptr.
3484 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3486 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3487 forgotten debug output; canonicalize querries more wtih LTO.
3489 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3491 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3492 ipa-utils.h; add stream_int and stream_out methods.
3493 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3494 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3495 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3497 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3498 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3499 ipa_polymorphic_call_context::clear_speculation,
3500 ipa_polymorphic_call_context::clear_outer_type): Move here from
3502 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3503 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3504 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3505 ipa_polymorphic_call_context::clear_speculation,
3506 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3507 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3509 (ipa_polymorphic_call_context::stream_out): New method.
3510 (ipa_polymorphic_call_context::stream_in): New method.
3511 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3512 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3514 (ipa_analyze_call_uses): Simplify.
3515 (update_indirect_edges_after_inlining): Do not care about outer_type.
3516 (ipa_write_indirect_edge_info): Update.
3517 (ipa_write_indirect_edge_info): Likewise.
3518 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3519 (dump_edge_flags): Break out from ...
3520 (cgraph_node::dump): ... here; dump indirect edges.
3522 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3524 * ipa-utils.h (polymorphic_call_context): Add
3525 metdhos dump, debug and clear_outer_type.
3526 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3527 (ipa_polymorphic_call_context::clear_outer_type): New method.
3528 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3529 * ipa-devirt.c (types_odr_comparable): New function.
3530 (types_must_be_same_for_odr): New function.
3531 (odr_subtypes_equivalent_p): Simplify.
3532 (possible_placement_new): Break out from ...
3533 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3534 be more cuatious about returning false in cases the context may be
3535 valid in derived type or via placement new.
3536 (contains_type_p): Clear maybe_derived_type
3537 (ipa_polymorphic_call_context::dump): New method.
3538 (ipa_polymorphic_call_context::debug): New method.
3539 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3540 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3541 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3542 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3543 to suceed on all valid cases; remove confused sanity check.
3544 (dump_possible_polymorphic_call_targets): Simplify.
3546 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3548 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3549 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3550 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3551 varpool.c: Rename all instances of DECL_ABSTRACT to
3554 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3556 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3557 special handling for stores whose SET_SRC is an UNSPEC (such as
3560 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3562 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3563 !REG_P (src) to release more instruction sink opportunities.
3565 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3567 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3568 move costs for 128-bit types.
3570 2014-09-24 Martin Jambor <mjambor@suse.cz>
3572 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3573 when duplicating a PASS_THROUGH jump function when creating a
3576 2014-09-24 Marek Polacek <polacek@redhat.com>
3580 * asan.c (maybe_instrument_call): Add default case.
3581 * ipa-pure-const.c (special_builtin_state): Likewise.
3582 * predict.c (expr_expected_value_1): Likewise.
3583 * lto-streamer-out.c (write_symbol): Initialize variable.
3585 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3587 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3589 (vmuld_laneq_f64): Likewise.
3590 (vmuls_lane_f32): Likewise.
3591 (vmuls_laneq_f32): Likewise.
3593 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3596 * varpool.c (varpool_node::add): Pass decl attributes
3597 to lookup_attribute.
3599 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3602 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3604 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3606 PR tree-optimization/63266
3607 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3608 marker for unknown byte value.
3609 (MARKER_MASK): New macro.
3610 (MARKER_BYTE_UNKNOWN): New macro.
3611 (HEAD_MARKER): New macro.
3612 (do_shift_rotate): Mark bytes with unknown values due to sign
3613 extension when doing an arithmetic right shift. Replace hardcoded
3614 mask for marker by new MARKER_MASK macro.
3615 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3616 numbers accordingly.
3618 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3620 Anna Tikhonova <anna.tikhonova@intel.com>
3621 Ilya Tocar <ilya.tocar@intel.com>
3622 Andrey Turetskiy <andrey.turetskiy@intel.com>
3623 Ilya Verbin <ilya.verbin@intel.com>
3624 Kirill Yukhin <kirill.yukhin@intel.com>
3625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3627 * config/i386/sse.md
3629 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3631 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3632 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3634 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3636 Anna Tikhonova <anna.tikhonova@intel.com>
3637 Ilya Tocar <ilya.tocar@intel.com>
3638 Andrey Turetskiy <andrey.turetskiy@intel.com>
3639 Ilya Verbin <ilya.verbin@intel.com>
3640 Kirill Yukhin <kirill.yukhin@intel.com>
3641 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3643 * config/i386/sse.md
3644 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3645 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3646 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3647 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3648 (define_expand "avx512vl_pshuflw_mask"): New.
3649 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3650 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3651 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3652 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3653 (define_expand "avx512vl_pshufhw_mask"): New.
3654 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3656 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3657 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3658 Anna Tikhonova <anna.tikhonova@intel.com>
3659 Ilya Tocar <ilya.tocar@intel.com>
3660 Andrey Turetskiy <andrey.turetskiy@intel.com>
3661 Ilya Verbin <ilya.verbin@intel.com>
3662 Kirill Yukhin <kirill.yukhin@intel.com>
3663 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3665 * config/i386/i386.c
3666 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3667 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3668 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3669 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3670 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3671 * config/i386/sse.md
3672 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3674 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3675 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3677 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3678 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3679 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3680 (define_expand "avx512vl_pshufd_mask"): New.
3681 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3683 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3684 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3685 Anna Tikhonova <anna.tikhonova@intel.com>
3686 Ilya Tocar <ilya.tocar@intel.com>
3687 Andrey Turetskiy <andrey.turetskiy@intel.com>
3688 Ilya Verbin <ilya.verbin@intel.com>
3689 Kirill Yukhin <kirill.yukhin@intel.com>
3690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3692 * config/i386/i386.c
3693 (CODE_FOR_avx2_extracti128): Rename to ...
3694 (CODE_FOR_avx_vextractf128v4di): this.
3695 (CODE_FOR_avx2_inserti128): Rename to ...
3696 (CODE_FOR_avx_vinsertf128v4di): this.
3697 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3698 CODE_FOR_avx_vextractf128v4di.
3699 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3700 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3701 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3702 CODE_FOR_avx512vl_vinsertv8si.
3703 * config/i386/sse.md
3705 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3706 AVX512_VEC mode iterator.
3708 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3711 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3712 AVX512_VEC_2 mode iterator.
3713 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3714 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3715 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3716 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3717 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3718 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3719 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3720 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3721 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3722 (define_expand "avx2_extracti128"): Delete.
3723 (define_expand "avx2_inserti128"): Ditto.
3725 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3726 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3727 Anna Tikhonova <anna.tikhonova@intel.com>
3728 Ilya Tocar <ilya.tocar@intel.com>
3729 Andrey Turetskiy <andrey.turetskiy@intel.com>
3730 Ilya Verbin <ilya.verbin@intel.com>
3731 Kirill Yukhin <kirill.yukhin@intel.com>
3732 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3734 * config/i386/sse.md
3735 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3736 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3737 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3738 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3739 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3740 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3741 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3742 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3743 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3744 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3745 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3746 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3747 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3749 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3751 PR rtl-optimization/63210
3752 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3753 HARD_REGNO is not available for CONFLICT_A.
3755 2014-09-23 Andi Kleen <ak@linux.intel.com>
3757 * cgraph.h (symtab_node): Add no_reorder attribute.
3758 (symbol_table::output_asm_statements): Remove.
3759 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3760 (cgraph_node::create_version_clone): Dito.
3761 (symbol_table::output_asm_statements): Remove.
3762 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3763 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3764 (output_in_order): Add no_reorder flag. Only handle no_reorder
3766 (symbol_table::compile): Add separate pass for no_reorder nodes.
3767 (process_common_attributes): Set no_reorder flag in symtab node.
3769 (process_function_and_variable_attributes): Pass symtab nodes to
3770 process_common_attributes.
3771 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3772 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3773 (lto_output_varpool_node): Dito.
3774 (input_overwrite_node): Dito.
3775 (input_varpool_node): Dito.
3776 * varpool.c (varpool_node::add): Set no_reorder attribute.
3777 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3778 (symbol_table::output_variables): Dito.
3779 * symtab.c (symtab_node::dump_base): Print no_reorder.
3781 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3783 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3786 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3788 * configure: Regenerate.
3790 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3792 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3793 when result_mode == shift_mode.
3795 2014-09-23 Kostya Serebryany <kcc@google.com>
3797 Update to match the changed asan API.
3798 * asan.c (asan_global_struct): Update the __asan_global definition
3799 to match the new API.
3800 (asan_add_global): Ditto.
3801 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3804 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3806 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3807 refine the constraints used on 32/64-bit floating point moves.
3809 (f64_vsx): Likewise.
3812 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3813 (BOOL_REGS_OP1): Likewise.
3814 (BOOL_REGS_OP2): Likewise.
3815 (BOOL_REGS_UNARY): Likewise.
3816 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3817 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3818 for moves involving VSX registers. Do not use constraints that
3819 target VSX registers for decimal types.
3820 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3821 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3823 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3825 * tree.h (int_bit_position): Turn into inline function;
3826 implement using wide int.
3827 * tree.c (int_bit_position): Remove.
3829 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3832 * target-globals.c (target_globals::~target_globals): Fix location
3833 of ira_int destruction.
3835 2014-09-23 Renlin Li <renlin.li@arm.com>
3837 * config/aarch64/aarch64.md (return): New.
3838 (simple_return): Likewise.
3839 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3840 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3842 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3844 * common/config/aarch64/aarch64-common.c:
3845 (default_options aarch_option_optimization_table):
3846 Default to -fsched-pressure.
3848 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3850 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3851 with LABEL_PRESERVE_P flag set.
3853 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3855 Anna Tikhonova <anna.tikhonova@intel.com>
3856 Ilya Tocar <ilya.tocar@intel.com>
3857 Andrey Turetskiy <andrey.turetskiy@intel.com>
3858 Ilya Verbin <ilya.verbin@intel.com>
3859 Kirill Yukhin <kirill.yukhin@intel.com>
3860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3862 * config/i386/sse.md
3863 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3864 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3865 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3866 (define_insn "sse2_shufpd_v2df_mask"): New.
3868 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3870 Anna Tikhonova <anna.tikhonova@intel.com>
3871 Ilya Tocar <ilya.tocar@intel.com>
3872 Andrey Turetskiy <andrey.turetskiy@intel.com>
3873 Ilya Verbin <ilya.verbin@intel.com>
3874 Kirill Yukhin <kirill.yukhin@intel.com>
3875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3877 * config/i386/sse.md
3878 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3879 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3880 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3881 (define_insn "sse_shufps_v4sf_mask"): New.
3883 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3884 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3885 Anna Tikhonova <anna.tikhonova@intel.com>
3886 Ilya Tocar <ilya.tocar@intel.com>
3887 Andrey Turetskiy <andrey.turetskiy@intel.com>
3888 Ilya Verbin <ilya.verbin@intel.com>
3889 Kirill Yukhin <kirill.yukhin@intel.com>
3890 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3892 * config/i386/sse.md
3893 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3894 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3895 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3896 (define_insn "unpcklps128_mask"): New.
3898 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3899 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3900 Anna Tikhonova <anna.tikhonova@intel.com>
3901 Ilya Tocar <ilya.tocar@intel.com>
3902 Andrey Turetskiy <andrey.turetskiy@intel.com>
3903 Ilya Verbin <ilya.verbin@intel.com>
3904 Kirill Yukhin <kirill.yukhin@intel.com>
3905 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3907 * config/i386/sse.md
3908 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3909 (define_insn "avx512vl_unpckhpd128_mask"): New.
3910 (define_expand "avx_movddup256<mask_name>"): Add masking.
3911 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3912 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3913 (define_insn "avx512vl_unpcklpd128_mask"): New.
3915 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3917 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3918 * doc/tm.texi: Regenerate.
3919 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3920 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3921 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3923 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3924 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3925 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3926 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3927 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3929 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3930 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3931 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3932 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3933 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3934 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3935 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3936 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3937 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3938 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3939 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3942 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3944 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3945 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3946 * ipa-prop.c (struct type_change_info): Rename to ...
3947 (prop_type_change_info): ... this; update uses.
3948 * ggc-page.c (globals): Rename to ...
3949 (static struct ggc_globals): ... this; update uses.
3950 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3951 (im_mem_ref): ... this; update uses.
3952 * ggc-common.c (loc_descriptor): Rename to ...
3953 (ggc_loc_descriptor): ... this; update uses.
3954 * lra-eliminations.c (elim_table): Rename to ...
3955 (lra_elim_table): ... this; update uses.
3956 * bitmap.c (output_info): Rename to ...
3957 (bitmap_output_info): ... this; update uses.
3958 * gcse.c (expr): Rename to ...
3959 (gcse_expr) ... this; update uses.
3960 (occr): Rename to ...
3961 (gcse_occr): .. this; update uses.
3962 * tree-ssa-copy.c (prop_value_d): Rename to ...
3963 (prop_value_t): ... this.
3964 * predict.c (block_info_def): Rename to ...
3965 (block_info): ... this; update uses.
3966 (edge_info_def): Rename to ...
3967 (edge_info): ... this; update uses.
3968 * profile.c (bb_info): Rename to ...
3969 (bb_profile_info): ... this; update uses.
3970 * alloc-pool.c (output_info): Rename to ...
3971 (pool_output_info): ... this; update uses.
3972 * ipa-cp.c (topo_info): Rename to ..
3973 (ipa_topo_info): ... this; update uses.
3974 * tree-nrv.c (nrv_data): Rename to ...
3975 (nrv_data_t): ... this; update uses.
3976 * ipa-split.c (bb_info): Rename to ...
3977 (split_bb_info): ... this one.
3978 * profile.h (edge_info): Rename to ...
3979 (edge_profile_info): ... this one; update uses.
3980 * dse.c (bb_info): Rename to ...
3981 (dse_bb_info): ... this one; update uses.
3982 * cprop.c (occr): Rename to ...
3983 (cprop_occr): ... this one; update uses.
3984 (expr): Rename to ...
3985 (cprop_expr): ... this one; update uses.
3987 2014-09-22 Jason Merrill <jason@redhat.com>
3989 * Makefile.in (check-parallel-%): Add @.
3991 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3993 * config/aarch64/geniterators.sh: New.
3994 * config/aarch64/iterators.md (VDQF_DF): New.
3995 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3996 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3998 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4000 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4001 -lnosys when -msim absent.
4003 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4005 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4007 2014-09-22 Richard Biener <rguenther@suse.de>
4009 * gimplify.c (gimplify_init_constructor): Do not leave
4010 non-GIMPLE vector constructors around.
4011 * tree-cfg.c (verify_gimple_assign_single): Verify that
4012 CONSTRUCTORs have gimple elements.
4014 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4017 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4018 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4019 instead of a normal gimple assignment stmt.
4021 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4023 * config/bfin/bfin.md: Fix use of constraints in define_split.
4025 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4027 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4028 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4030 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4032 * hard-reg-set.h: Include hash-table.h.
4033 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4035 * target-globals.c (target_globals::~target_globals): Call
4036 hard_regs->finalize.
4037 * rtl.h (subreg_shape): New structure.
4038 (shape_of_subreg): New function.
4039 (simplifiable_subregs): Declare.
4040 * reginfo.c (simplifiable_subreg): New structure.
4041 (simplifiable_subregs_hasher): Likewise.
4042 (simplifiable_subregs): New function.
4043 (invalid_mode_changes): Delete.
4044 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4045 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4046 Record valid mode changes in valid_mode_changes.
4047 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4048 Update calls to record_subregs_of_mode.
4049 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4050 handling. Initialize new variables. Update call to
4051 find_subregs_of_mode.
4052 (invalid_mode_change_p): Check new variables instead of
4053 invalid_mode_changes.
4054 (finish_subregs_of_mode): Finalize new variables instead of
4055 invalid_mode_changes.
4056 (target_hard_regs::finalize): New function.
4057 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4058 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4060 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4062 * combine.c (subst): Use simplify_subreg_regno rather than
4063 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4065 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4067 * rtl.h (subreg_info): Expand commentary
4068 * rtlanal.c (subreg_get_info): Likewise.
4070 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4072 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4073 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4074 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4076 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4078 * config/arm/arm.c: #include "tm-constrs.h"
4079 (thumb1_size_rtx_costs): Adjust rtx costs.
4081 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4083 * configure.ac (target_header_dir): Move block defining
4084 this to before the block setting inhibit_libc.
4085 (inhibit_libc): When considering $with_headers, just
4086 check it it's explicitly "no". If not, also check if
4087 $target_header_dir/stdio.h is present. If not, set
4089 * configure: Regenerate.
4091 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4093 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4095 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4097 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4098 insn for divides by integer powers of two.
4099 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4100 (mod<mode>3): Fix formatting.
4101 (three anonymous define_insn and two define_split): Delete.
4103 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4105 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4106 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4107 (floatdisf2_internal2): Ditto.
4108 (ashrdi3_no_power): Ditto. Fix formatting.
4110 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4112 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4113 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4116 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4118 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4119 constant, use addsi3 directly.
4120 (three anonymous define_insn, two define_split): Delete.
4121 (sub<mode>3): Move. Do not allow constant second operand.
4122 Generate different insn for constant first operand.
4123 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4124 (subf<mode>3_imm): New.
4125 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4126 (*plus_ltu<mode>): Only handle registers.
4127 (*plus_ltu<mode>_1): New. Handle integer third operand.
4128 (*plus_gtu<mode>): Only handle registers.
4129 (*plus_gtu<mode>_1): New. Handle integer third operand.
4131 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4133 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4134 (iorxor): New code_attr.
4135 (IORXOR): New code_attr.
4136 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4137 (ior<mode>3, xor<mode>3): Delete.
4138 (<iorxor><mode>3): New.
4139 (splitter for "big" integer ior, xor): New.
4140 (*bool<mode>3): Move. Also handle AND.
4141 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4142 (splitter for "big" integer ior, xor): Delete.
4144 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4146 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4147 (two anonymous define_insn and two define_split): Delete.
4148 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4150 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4152 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4153 (two anonymous define_insn and two define_split): Delete.
4154 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4156 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4158 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4160 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4162 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4163 (input_operand): Do not allow ca_operand.
4164 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4165 carry bit, allow SImode and Pmode.
4166 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4168 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4170 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4171 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4172 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4173 (*call_rex64_ms_sysv): Remove.
4174 (*call_value_rex64_ms_sysv): Ditto.
4175 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4177 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4179 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4182 2014-09-20 Andreas Schwab <schwab@suse.de>
4184 * config/ia64/ia64.md: Remove constraints from define_split
4187 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4189 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4190 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4191 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4192 (get_dynamic_type): Remove.
4193 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4194 (clear_speculation): Bring to ipa-deivrt.h
4195 (get_class_context): Rename to ...
4196 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4197 (contains_type_p): Update.
4198 (get_dynamic_type): Rename to ...
4199 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4200 (possible_polymorphic_call_targets): UPdate.
4201 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4202 * ipa-prop.c (ipa_analyze_call_uses): Update.
4204 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4206 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4207 privatize dynamic TLS variables.
4209 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4211 * diagnostic.c (warning_n): New function.
4212 * diagnostic-core.h (warning_n): Declare.
4213 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4214 output dynamic counts when available.
4216 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4218 PR tree-optimization/63255
4219 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4220 issue in setting body_removed flag.
4222 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4225 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4226 that visibility change is possible
4227 (handle_weakref_attribute): Likewise.
4228 * cgraph.h (symtab_node): Add method get_create and
4229 field refuse_visibility_changes.
4230 (symtab_node::get_create): New method.
4231 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4232 * varasm.c (mark_weak): Verify that visibility change is
4235 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4237 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4238 for base_reg_operand to be common between LO_SUM and PLUS.
4239 (fusion_gpr_mem_combo): New predicate to match a fused address
4240 that combines the addis and memory offset address.
4242 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4244 (emit_fusion_gpr_load): Likewise.
4246 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4247 signature to pass each argument separately, rather than
4248 using an operands array. Rewrite the insns found by peephole2 to
4249 be a single insn, rather than hoping the insns will still be
4250 together when the peephole pass is done. Drop being called via a
4252 (emit_fusion_gpr_load): Change calling signature to be called from
4253 the fusion_gpr_load_<mode> insns with a combined memory address
4254 instead of the peephole pass passing the addis and offset
4257 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4259 (power8 fusion peephole): Drop support for doing power8 via a
4260 normal peephole that was created by the peephole2 pass.
4261 (power8 fusion peephole2): Create a new insn with the fused
4262 address, so that the fused operation is kept together after
4263 register allocation is done.
4264 (fusion_gpr_load_<mode>): Likewise.
4266 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4269 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4271 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4273 * recog.c (scratch_operand): Do not simply allow all hard registers:
4274 only allow those that are allocatable.
4276 2014-09-19 Felix Yang <felix.yang@huawei.com>
4278 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4279 comments and fix spacing to conform to coding style.
4281 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4283 * genrecog.c (validate_pattern): Allow empty constraints in
4286 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4288 * dwarf2out.c (decl_ultimate_origin): Update comment.
4289 * tree.c (block_ultimate_origin): Same.
4291 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4293 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4294 Update GCC version name to GCC 5.
4295 (rs6000_function_arg_boundary): Likewise.
4296 (rs6000_function_arg): Likewise.
4298 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4300 * config/sh/sh.md: Fix use of constraints in define_split.
4302 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4305 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4307 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4309 * doc/md.texi (Modifiers): Consistently use "read/write"
4310 nomenclature rather than "input/output".
4311 * genrecog.c (constraints_supported_in_insn_p): New.
4312 (validate_pattern): If needed, also check constraints on
4313 MATCH_SCRATCH operands.
4314 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4315 operands with no '=' or '+' modifier.
4317 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4319 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4320 scratch register as written.
4322 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4324 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4327 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4329 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4332 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4335 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4336 address load optimization force s390_optimize_prologue to leave it
4337 that way. Only do the optimization if we already decided to push
4338 r14 into a stack slot.
4340 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4342 * asan.c (build_check_stmt): Alignment arg was added.
4343 (asan_expand_check_ifn): Optimization for alignment >= 8.
4345 2014-09-19 Olivier Hainque <hainque@adacore.com>
4347 * config/i386/vxworksae.h: Remove obsolete definitions.
4348 (STACK_CHECK_PROTECT): Define.
4349 * config/i386/vx-common.h: Remove. Merge contents within
4350 config/i386/vxworks.h.
4351 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4354 2014-09-19 Olivier Hainque <hainque@adacore.com>
4356 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4357 * config/rs6000/t-vxworksmils: New file.
4358 * config/rs6000/vxworksmils.h: New file.
4360 2014-09-19 Olivier Hainque <hainque@adacore.com>
4362 * varasm.c (default_section_type_flags): Flag .persistent.bss
4363 sections as SECTION_BSS.
4365 2014-09-19 Nick Clifton <nickc@redhat.com>
4367 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4368 pop'ed registers so that DCE does not eliminate them.
4370 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4373 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4375 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4377 * system.h (LIBGCC2_TF_CEXT): Poison.
4378 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4379 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4380 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4381 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4382 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4383 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4384 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4385 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4386 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4388 2014-09-19 Kito Cheng <kito@0xlab.org>
4390 * except.h: Fix header guard.
4391 * addresses.h: Add missing header guard.
4392 * cfghooks.h: Likewise.
4393 * collect-utils.h: Likewise.
4394 * collect2-aix.h: Likewise.
4395 * conditions.h: Likewise.
4396 * cselib.h: Likewise.
4397 * dwarf2asm.h: Likewise.
4398 * graphds.h: Likewise.
4399 * graphite-scop-detection.h: Likewise.
4400 * gsyms.h: Likewise.
4401 * hw-doloop.h: Likewise.
4402 * incpath.h: Likewise.
4403 * ipa-inline.h: Likewise.
4404 * ipa-ref.h: Likewise.
4405 * ira-int.h: Likewise.
4407 * lra-int.h: Likewise.
4409 * lto-section-names.h: Likewise.
4410 * read-md.h: Likewise.
4411 * reload.h: Likewise.
4412 * rtl-error.h: Likewise.
4413 * sdbout.h: Likewise.
4414 * targhooks.h: Likewise.
4415 * tree-affine.h: Likewise.
4416 * xcoff.h: Likewise.
4417 * xcoffout.h: Likewise.
4419 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4422 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4425 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4428 * lra.c (lra): Call recog_init.
4430 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4433 * asan.c (transform_statements): Don't instrument clobber statements.
4435 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4437 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4438 to neon_load1_1reg<q>.
4440 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4443 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4444 if there are only debug stmts after the noreturn call, instead
4445 remove the debug stmts.
4447 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4449 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4450 (odr_types_equivalent_p): Use pair hash.
4451 (odr_subtypes_equivalent_p): Likewise, do structural compare
4452 on ODR types that may be mismatched.
4453 (warn_odr): Support warning when only one field is given.
4454 (odr_types_equivalent_p): Strenghten comparsions made;
4456 (add_type_duplicate): Update VISITED hash set.
4458 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4460 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4461 Enable selection of 'posix' or no thread model.
4463 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4465 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4466 when architecture is older than ARMv7.
4468 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4471 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4472 that fit exactly in a word or double word.
4474 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4476 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4479 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4481 Anna Tikhonova <anna.tikhonova@intel.com>
4482 Ilya Tocar <ilya.tocar@intel.com>
4483 Andrey Turetskiy <andrey.turetskiy@intel.com>
4484 Ilya Verbin <ilya.verbin@intel.com>
4485 Kirill Yukhin <kirill.yukhin@intel.com>
4486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4488 * config/i386/i386.c
4489 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4490 * config/i386/sse.md
4491 (define_mode_iterator VI48F_256): New.
4492 (define_mode_attr extract_type): Ditto.
4493 (define_mode_attr extract_suf): Ditto.
4494 (define_mode_iterator AVX512_VEC): Ditto.
4496 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4498 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4500 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4502 (define_mode_attr extract_type_2): Ditto.
4503 (define_mode_attr extract_suf_2): Ditto.
4504 (define_mode_iterator AVX512_VEC_2): Ditto.
4506 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4507 AVX512_VEC_2 mode iterator.
4508 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4509 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4510 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4511 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4512 (define_split for V16FI mode): Ditto.
4513 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4514 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4515 (define_split for VI8F_256 mode): Ditto.
4516 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4517 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4518 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4519 (define_split for VI4F_256 mode): Ditto.
4520 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4521 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4522 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4523 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4524 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4525 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4526 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4527 Update `type' attribute, remove explicit `memory' attribute calculation.
4529 2014-09-16 Kito Cheng <kito@0xlab.org>
4531 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4532 ira_spilled_reg_stack_slots_num if using lra.
4533 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4534 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4535 make sure not using lra.
4536 (ira_reuse_stack_slot): Likewise.
4537 (ira_mark_new_stack_slot): Likewise.
4539 2014-09-15 Andi Kleen <ak@linux.intel.com>
4541 * function.c (allocate_struct_function): Force
4542 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4543 profiling is disabled.
4545 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4547 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4548 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4549 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4550 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4551 macro with statically checked member functions.
4552 * rtl.h (rtx_insn::deleted): New method.
4553 (rtx_insn::set_deleted): Likewise.
4554 (rtx_insn::set_undeleted): Likewise.
4555 (INSN_DELETED_P): Remove.
4557 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4559 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4560 result of emit_jump_insn_before to a new variable.
4561 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4562 (mark_jump_label_1): Likewise.
4563 (mark_jump_label_asm): Likewise.
4564 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4565 * rtl.h (mark_jump_label): Adjust.
4567 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4569 * Makefile.in (dg_target_exps): Remove.
4570 (check_gcc_parallelize): Change to just an upper bound number.
4571 (check-%-subtargets): Always print the non-parallelized goals.
4572 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4573 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4574 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4575 check_p_numbers6): New variables.
4576 (check_p_numbers): Set to sequence from 1 to 9999.
4577 (check_p_subdirs): Set to sequence from 1 to minimum of
4578 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4580 (check-%, check-parallel-%): Rewritten so that for parallelized
4581 testing each job runs all the *.exp files, with
4582 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4584 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4586 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4588 (arc_sets_cc_p): Likewise.
4589 * config/arc/arc.c (arc_print_operand): Use methods of
4590 "final_sequence" for clarity, and to enable strengthening of
4591 locals "jump" and "delay" from rtx to rtx_insn *.
4592 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4593 rtx_insn *; use method of rtx_sequence for typesafety.
4594 (arc_get_insn_variants): Use insn method of rtx_sequence for
4596 (arc_pad_return): Likewise.
4597 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4598 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4599 dyn_cast to rtx_sequence *, using insn method for typesafety.
4600 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4601 rtx_sequence * and use insn method when invoking get_attr_length.
4602 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4603 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4604 rtx_sequence *, introducing a local "seq", using its insn method
4605 from typesafety and clarity.
4606 (add_sched_insns_for_speculation): Strengthen local "next" from
4608 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4609 (predicate_insn): Likewise.
4610 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4612 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4613 * config/epiphany/epiphany-protos.h
4614 (extern void epiphany_insert_mode_switch_use): Likewise for param
4616 (get_attr_sched_use_fpu): Likewise for param.
4617 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4618 Likewise for param "insn".
4619 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4620 param "insn" of "target_insert_mode_switch_use" callback.
4621 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4622 (frv_issues_to_branch_unit_p): Likewise.
4623 (frv_pack_insn_p): Likewise.
4624 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4625 const rtx * (i.e. mutable rtx_def * const *) to
4627 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4628 Strengthen first param from rtx to rtx_insn *.
4629 (output_fix_trunc): Likewise.
4630 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4631 (output_fix_trunc): Likewise.
4632 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4634 (min_insn_size): Likewise for param "insn".
4635 (get_mem_group): Likewise.
4637 (get_insn_path): Likewise.
4638 (get_insn_group): Likewise.
4639 (count_num_restricted): Likewise.
4640 (fits_dispatch_window): Likewise.
4641 (add_insn_window): Likewise.
4642 (add_to_dispatch_window): Likewise.
4643 (debug_insn_dispatch_info_file): Likewise.
4644 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4646 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4647 "cmp" and local "prev".
4648 (m32c_output_compare): Likewise for param "insn".
4649 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4650 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4651 (define_predicate "large_insn_p"): Likewise.
4652 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4653 param from rtx to rtx_insn *.
4654 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4655 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4656 (m68k_sched_attr_size): Likewise.
4657 (sched_get_opxy_mem_type): Likewise for param "insn".
4658 (m68k_sched_attr_op_mem): Likewise.
4659 (sched_mem_operand_p): Likewise.
4660 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4661 * config/mep/mep.c (mep_multi_slot): Likewise.
4662 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4664 (mips_sync_loop_insns): Likewise.
4665 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4666 method of "final_sequence" for typesafety.
4667 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4669 (mips_output_sync_loop): Likewise.
4670 (mips_sync_loop_insns): Likewise.
4671 (mips_74k_agen_init): Likewise.
4672 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4674 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4675 Strengthen param "insn" from rtx to rtx_insn *.
4676 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4678 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4680 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4681 "insn". Use method of rtx_sequence for typesafety.
4682 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4684 (branch_needs_nop_p): Likewise.
4685 (use_skip_p): Likewise.
4686 (pa_insn_refs_are_delayed): Likewise.
4687 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4688 for locals "insn", "ninsn".
4689 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4691 (is_cracked_insn): Likewise.
4692 (is_branch_slot_insn): Likewise.
4693 (is_nonpipeline_insn): Likewise.
4694 (insn_terminates_group_p): Likewise.
4695 (insn_must_be_first_in_group): Likewise.
4696 (insn_must_be_last_in_group): Likewise.
4697 (force_new_group): Likewise for param "next_insn".
4698 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4700 (s390_sched_score): Likewise.
4701 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4702 (rtx sfunc_uses_reg): Likewise for sole param.
4703 * config/sh/sh.c (sh_print_operand): Use insn method of
4704 final_sequence for typesafety.
4705 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4706 Use insn method of final_sequence for typesafety.
4707 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4708 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4710 (eligible_for_return_delay): Likewise.
4711 (eligible_for_sibcall_delay): Likewise.
4712 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4713 (eligible_for_return_delay): Likewise.
4714 (eligible_for_sibcall_delay): Likewise.
4715 * config/stormy16/stormy16-protos.h
4716 (xstormy16_output_cbranch_hi): Likewise for final param.
4717 (xstormy16_output_cbranch_si): Likewise.
4718 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4719 (xstormy16_output_cbranch_si): Likewise.
4720 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4721 * config/v850/v850.c (notice_update_cc): Likewise.
4723 * final.c (get_attr_length_1): Strengthen param "insn" and param
4724 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4725 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4726 (get_attr_min_length): Likewise.
4727 (shorten_branches): Likewise for signature of locals "length_fun"
4728 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4729 from a checked cast and use its methods for clarity and to enable
4730 strengthening local "inner_insn" from rtx to rtx_insn *.
4731 * genattr.c (gen_attr): When writing out the prototypes of the
4732 various generated "get_attr_" functions, strengthen the params of
4733 the non-const functions from rtx to rtx_insn *.
4734 Similarly, strengthen the params of insn_default_length,
4735 insn_min_length, insn_variable_length_p, insn_current_length.
4736 (main): Similarly, strengthen the param of num_delay_slots,
4737 internal_dfa_insn_code, insn_default_latency, bypass_p,
4738 insn_latency, min_issue_delay, print_reservation,
4739 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4740 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4741 to hook_int_rtx_insn_unreachable.
4742 * genattrtab.c (write_attr_get): When writing out the generated
4743 "get_attr_" functions, strengthen the param "insn" from rtx to
4744 rtx_insn *, eliminating a checked cast.
4745 (make_automaton_attrs): When writing out prototypes of
4746 "internal_dfa_insn_code_", "insn_default_latency_" functions
4747 and the "internal_dfa_insn_code" and "insn_default_latency"
4748 callbacks, strengthen their params from rtx to rtx_insn *
4749 * genautomata.c (output_internal_insn_code_evaluation): When
4750 writing out code, add a checked cast from rtx to rtx_insn * when
4751 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4752 (output_dfa_insn_code_func): Strengthen param of generated
4753 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4754 (output_trans_func): Likewise for generated function
4756 (output_internal_insn_latency_func): When writing out generated
4757 function "internal_insn_latency", rename params from "insn" and
4758 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4759 locals "insn" and "insn2" as rtx_insn * with checked casts once
4760 we've proven that we're not dealing with const0_rtx.
4761 (output_insn_latency_func): Strengthen param of generated
4762 function "insn_latency" from rtx to rtx_insn *.
4763 (output_print_reservation_func): Likewise for generated function
4764 "print_reservation".
4765 (output_insn_has_dfa_reservation_p): Likewise for generated
4766 function "insn_has_dfa_reservation_p".
4767 * hooks.c (hook_int_rtx_unreachable): Rename to...
4768 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4769 from rtx to rtx_insn *.
4770 * hooks.h (hook_int_rtx_unreachable): Likewise.
4771 (extern int hook_int_rtx_insn_unreachable): Likewise.
4772 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4773 (get_attr_min_length): Likewise.
4774 * recog.c (get_enabled_alternatives): Likewise.
4775 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4776 * reorg.c (find_end_label): Introduce local rtx "pat" and
4777 strengthen local "insn" from rtx to rtx_insn *.
4778 (redundant_insn): Use insn method of "seq" rather than element for
4779 typesafety; strengthen local "control" from rtx to rtx_insn *.
4780 * resource.c (mark_referenced_resources): Add checked cast to
4781 rtx_insn * within INSN/JUMP_INSN case.
4782 (mark_set_resources): Likewise.
4783 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4786 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4788 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4789 param "label" from rtx to rtx_insn *.
4790 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4792 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4793 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4794 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4795 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4796 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4797 param from rtx to rtx_insn *.
4798 (default_loop_align_max_skip): Likewise.
4799 (default_label_align_max_skip): Likewise.
4800 (default_jump_align_max_skip): Likewise.
4801 * target.def (label_align_after_barrier_max_skip): Likewise.
4802 (loop_align_max_skip): Likewise.
4803 (label_align_max_skip): Likewise.
4804 (jump_align_max_skip): Likewise.
4805 * targhooks.h (default_label_align_after_barrier_max_skip):
4807 (default_loop_align_max_skip): Likewise.
4808 (default_label_align_max_skip): Likewise.
4809 (default_jump_align_max_skip): Likewise.
4811 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4813 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4814 from const_rtx to const rtx_insn *. Update union members from rtx
4816 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4817 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4818 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4819 strengthen both params from const_rtx to const rtx_insn *.
4820 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4821 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4822 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4824 * target.def (can_follow_jump): Strengthen both params from
4825 const_rtx to const rtx_insn *, and update default implementation
4826 from hook_bool_const_rtx_const_rtx_true to
4827 hook_bool_const_rtx_insn_const_rtx_insn_true.
4829 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4831 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4832 "insn" from rtx to rtx_insn *.
4833 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4835 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4836 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4837 Anna Tikhonova <anna.tikhonova@intel.com>
4838 Ilya Tocar <ilya.tocar@intel.com>
4839 Andrey Turetskiy <andrey.turetskiy@intel.com>
4840 Ilya Verbin <ilya.verbin@intel.com>
4841 Kirill Yukhin <kirill.yukhin@intel.com>
4842 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4844 * config/i386/sse.md
4845 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4846 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4847 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4848 (define_expand "vcvtps2ph_mask"): New.
4849 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4850 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4851 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4853 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4855 Anna Tikhonova <anna.tikhonova@intel.com>
4856 Ilya Tocar <ilya.tocar@intel.com>
4857 Andrey Turetskiy <andrey.turetskiy@intel.com>
4858 Ilya Verbin <ilya.verbin@intel.com>
4859 Kirill Yukhin <kirill.yukhin@intel.com>
4860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4862 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4864 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4865 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4866 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4867 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4868 also for TARGET_AVX512VL.
4869 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4871 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4873 * doc/install.texi (Options specification): add
4874 --disable-libsanitizer item.
4876 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4877 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4880 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4882 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4883 kernel version check to avoid incrementing it after every major OS X
4885 (darwin_default_min_version): Avoid static memory buffer.
4887 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4889 * tree.c (need_assembler_name_p): Store C++ type mangling only
4892 2014-09-13 Marek Polacek <polacek@redhat.com>
4894 * tree.c (protected_set_expr_location): Don't check whether T is
4897 2014-09-12 DJ Delorie <dj@redhat.com>
4899 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4900 (extend_and_shift1_hipsi2): Likewise.
4901 (extend_and_shift2_hipsi2): Likewise.
4903 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4905 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4906 with NULL when dealing with an insn.
4907 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4908 from rtx to rtx_insn *.
4909 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4910 const_rtx to const rtx_insn *.
4911 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4913 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4915 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4918 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4920 * target.def (libgcc_floating_mode_supported_p): New hook.
4921 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4923 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4924 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4925 (LIBGCC2_HAS_TF_MODE): Remove.
4926 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4927 * doc/tm.texi: Regenerate.
4928 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4930 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4931 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4932 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4933 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4934 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4935 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4936 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4937 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4938 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4939 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4941 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4942 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4943 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4944 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4945 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4946 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4947 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4948 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4949 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4950 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4951 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4952 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4953 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4954 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4956 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4958 (ia64_libgcc_floating_mode_supported_p): New function.
4959 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4960 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4961 (IA64_NO_LIBGCC_TFMODE): Define.
4962 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4963 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4965 (pdp11_scalar_mode_supported_p): New function.
4966 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4967 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4969 2014-09-12 Richard Biener <rguenther@suse.de>
4972 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4974 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4976 * tree.c (integer_each_onep): New function.
4977 * tree.h (integer_each_onep): Declare it.
4978 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4979 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4980 (X & 1) == 0 for vector and complex.
4982 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4984 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4986 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4987 cost to spilling from integer to FP registers.
4989 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4991 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4993 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4994 are now handled correctly.
4996 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4998 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4999 handling of CALLER_SAVE_REGS and POINTER_REGS.
5001 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5003 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5004 the number of hard registers.
5006 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5008 Anna Tikhonova <anna.tikhonova@intel.com>
5009 Ilya Tocar <ilya.tocar@intel.com>
5010 Andrey Turetskiy <andrey.turetskiy@intel.com>
5011 Ilya Verbin <ilya.verbin@intel.com>
5012 Kirill Yukhin <kirill.yukhin@intel.com>
5013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5015 * config/i386/sse.md
5016 (define_mode_iterator VI48_AVX512VL): New.
5017 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5018 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5019 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5020 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5021 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5022 "avx512f_vternlog<mode>_mask" and update mode iterator.
5023 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5024 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5026 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5027 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5028 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5029 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5030 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5031 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5033 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5034 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5035 Anna Tikhonova <anna.tikhonova@intel.com>
5036 Ilya Tocar <ilya.tocar@intel.com>
5037 Andrey Turetskiy <andrey.turetskiy@intel.com>
5038 Ilya Verbin <ilya.verbin@intel.com>
5039 Kirill Yukhin <kirill.yukhin@intel.com>
5040 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5042 * config/i386/sse.md (VI128_256): Delete.
5043 (define_mode_iterator VI124_256): New.
5044 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5045 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5046 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5047 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5048 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5049 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5050 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5051 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5053 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5054 in presence of AVX-512.
5056 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5058 Anna Tikhonova <anna.tikhonova@intel.com>
5059 Ilya Tocar <ilya.tocar@intel.com>
5060 Andrey Turetskiy <andrey.turetskiy@intel.com>
5061 Ilya Verbin <ilya.verbin@intel.com>
5062 Kirill Yukhin <kirill.yukhin@intel.com>
5063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5065 * config/i386/sse.md
5066 (define_expand "<avx512>_gathersi<mode>"): Rename from
5067 "avx512f_gathersi<mode>".
5068 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5069 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5070 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5071 "avx512f_gatherdi<mode>".
5072 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5073 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5075 (define_expand "<avx512>_scattersi<mode>"): Rename from
5076 "avx512f_scattersi<mode>".
5077 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5078 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5079 "avx512f_scatterdi<mode>".
5080 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5082 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5084 * ira.h (ira_finish_once): Delete.
5085 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5086 (target_ira_int::free_ira_costs): Likewise.
5087 (target_ira_int::free_register_move_costs): Likewise.
5088 (ira_finish_costs_once): Delete.
5089 * ira.c (free_register_move_costs): Replace with...
5090 (target_ira_int::free_register_move_costs): ...this new function.
5091 (target_ira_int::~target_ira_int): Define.
5092 (ira_init): Call free_register_move_costs as a member function rather
5093 than a global function.
5094 (ira_finish_once): Delete.
5095 * ira-costs.c (free_ira_costs): Replace with...
5096 (target_ira_int::free_ira_costs): ...this new function.
5097 (ira_init_costs): Call free_ira_costs as a member function rather
5098 than a global function.
5099 (ira_finish_costs_once): Delete.
5100 * target-globals.c (target_globals::~target_globals): Call the
5101 target_ira_int destructor.
5102 * toplev.c: Include lra.h.
5103 (finalize): Call lra_finish_once rather than ira_finish_once.
5105 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5107 * common.opt (flto-odr-type-merging): New flag.
5108 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5109 (types_same_for_odr): Likewise.
5110 (odr_subtypes_equivalent_p): Likewise.
5111 (add_type_duplicate): Do not walk type variants.
5112 (register_odr_type): New function.
5113 * ipa-utils.h (register_odr_type): Declare.
5114 (odr_type_p): New function.
5115 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5117 * doc/invoke.texi (-flto-odr-type-merging): Document.
5118 * tree.c (need_assembler_name_p): Compute ODR names when asked
5120 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5122 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5125 * config/i386/i386.c (ix86_option_override_internal): Also turn
5126 off OPTION_MASK_ABI_X32 for -m16.
5128 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5130 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5133 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5136 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5137 Directly forward to __*_DENORM_MIN__.
5139 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5141 * rtl.h (LABEL_REF_LABEL): New macro.
5143 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5144 of XEXP (, 0), where we know that we have a LABEL_REF.
5145 * cfgbuild.c (make_edges): Likewise.
5146 (purge_dead_tablejump_edges): Likewise.
5147 * cfgexpand.c (convert_debug_memory_address): Likewise.
5148 * cfgrtl.c (patch_jump_insn): Likewise.
5149 * combine.c (distribute_notes): Likewise.
5150 * cse.c (hash_rtx_cb): Likewise.
5151 (exp_equiv_p): Likewise.
5152 (fold_rtx): Likewise.
5153 (check_for_label_ref): Likewise.
5154 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5155 (cselib_hash_rtx): Likewise.
5156 * emit-rtl.c (mark_label_nuses): Likewise.
5157 * explow.c (convert_memory_address_addr_space): Likewise.
5158 * final.c (output_asm_label): Likewise.
5159 (output_addr_const): Likewise.
5160 * gcse.c (add_label_notes): Likewise.
5161 * genconfig.c (walk_insn_part): Likewise.
5162 * genrecog.c (validate_pattern): Likewise.
5163 * ifcvt.c (cond_exec_get_condition): Likewise.
5164 (noce_emit_store_flag): Likewise.
5165 (noce_get_alt_condition): Likewise.
5166 (noce_get_condition): Likewise.
5167 * jump.c (maybe_propagate_label_ref): Likewise.
5168 (mark_jump_label_1): Likewise.
5169 (redirect_exp_1): Likewise.
5170 (rtx_renumbered_equal_p): Likewise.
5171 * lra-constraints.c (operands_match_p): Likewise.
5172 * reload.c (operands_match_p): Likewise.
5173 (find_reloads): Likewise.
5174 * reload1.c (set_label_offsets): Likewise.
5175 * reorg.c (get_branch_condition): Likewise.
5176 * rtl.c (rtx_equal_p_cb): Likewise.
5177 (rtx_equal_p): Likewise.
5178 * rtlanal.c (reg_mentioned_p): Likewise.
5179 (rtx_referenced_p): Likewise.
5180 (get_condition): Likewise.
5181 * sched-vis.c (print_value): Likewise.
5182 * varasm.c (const_hash_1): Likewise.
5183 (compare_constant): Likewise.
5184 (const_rtx_hash_1): Likewise.
5185 (output_constant_pool_1): Likewise.
5187 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5189 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5190 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5192 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5193 cr6_test_for_lt_reverse): Ditto.
5195 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5198 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5200 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5202 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5203 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5204 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5205 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5208 (aarch64_fold_builtin): Remove all reinterpret cases.
5210 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5212 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5214 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5215 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5216 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5217 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5218 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5219 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5220 aarch64_reinterpretv2df<mode>): Delete.
5222 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5224 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5225 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5226 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5227 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5228 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5229 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5230 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5231 vreinterpret_u32_f64): Use cast.
5233 * config/aarch64/iterators.md (VD_RE): Delete.
5235 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5237 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5238 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5239 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5240 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5241 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5242 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5243 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5244 Replace inline assembler with __aarch64_vset_lane_any.
5246 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5248 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5250 (vmull_high_lane_s32): Likewise.
5251 (vmull_high_lane_u16): Likewise.
5252 (vmull_high_lane_u32): Likewise.
5254 2014-09-11 Jason Merrill <jason@redhat.com>
5257 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5259 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5262 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5263 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5264 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5266 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5268 Anna Tikhonova <anna.tikhonova@intel.com>
5269 Ilya Tocar <ilya.tocar@intel.com>
5270 Andrey Turetskiy <andrey.turetskiy@intel.com>
5271 Ilya Verbin <ilya.verbin@intel.com>
5272 Kirill Yukhin <kirill.yukhin@intel.com>
5273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5275 * config/i386/sse.md
5276 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5277 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5278 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5280 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5281 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5283 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5285 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5286 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5287 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5288 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5289 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5290 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5291 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5292 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5294 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5296 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5297 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5298 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5300 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5302 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5303 to access removed nodes.
5305 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5307 PR tree-optimization/63186
5308 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5309 (mark_nonssa_use): Likewise.
5310 (verify_non_ssa_vars): Verify all header blocks for label
5313 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5315 Anna Tikhonova <anna.tikhonova@intel.com>
5316 Ilya Tocar <ilya.tocar@intel.com>
5317 Andrey Turetskiy <andrey.turetskiy@intel.com>
5318 Ilya Verbin <ilya.verbin@intel.com>
5319 Kirill Yukhin <kirill.yukhin@intel.com>
5320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5322 * config/i386/sse.md
5323 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5324 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5325 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5326 "<avx2_avx512f>_permvar<mode><mask_name>".
5327 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5328 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5329 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5330 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5332 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5333 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5334 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5335 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5337 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5339 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5340 V2DF, V4SF, DF, and DI modes.
5341 (vsx_fmav2df2): Likewise.
5342 (vsx_float_fix_<mode>2): Likewise.
5343 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5345 2014-09-10 Xinliang David Li <davidxl@google.com>
5348 * config/arm/arm.md (movcond_addsi): Handle case where source
5349 and target operands are the same.
5351 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5353 * final.c (this_is_asm_operands): Strengthen this variable from
5354 rtx to const rtx_insn *.
5355 * output.h (this_is_asm_operands): Likewise.
5356 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5357 const_rtx to const rtx_insn *.
5358 (diagnostic_for_asm): Likewise.
5359 * rtl-error.h (error_for_asm): Likewise.
5360 (warning_for_asm): Likewise.
5362 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5364 * genextract.c (print_header): When writing out insn_extract to
5365 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5366 * recog.h (insn_extract): Strengthen the param from rtx to
5369 2014-09-10 Mike Stump <mikestump@comcast.net>
5371 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5374 2014-09-10 Martin Jambor <mjambor@suse.cz>
5376 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5377 (analyze): Do not set analyze flag if expand_thunk returns false;.
5378 (create_wrapper): Likewise.
5379 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5381 2014-09-10 Martin Jambor <mjambor@suse.cz>
5384 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5385 new decl properly. Analyze the new thunk if it is expanded.
5387 2014-09-10 Andreas Schwab <schwab@suse.de>
5389 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5390 [USED_FOR_TARGET]: Define.
5392 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5394 * config/mips/mips.c (mips_secondary_reload_class): Handle
5397 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5399 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5402 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5404 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5405 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5406 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5407 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5408 flag_delete_null_pointer_checks for them.
5409 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5410 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5411 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5412 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5413 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5415 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5416 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5417 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5418 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5419 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5420 -fsanitize=returns-nonnull-attribute): Document.
5422 * ubsan.h (struct ubsan_mismatch_data): Removed.
5423 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5424 * ubsan.c (ubsan_source_location): For unknown locations,
5425 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5426 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5427 Allow more than one location and arbitrary extra arguments passed
5428 in ... instead of through MISMATCH pointer.
5429 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5430 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5431 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5434 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5436 Anna Tikhonova <anna.tikhonova@intel.com>
5437 Ilya Tocar <ilya.tocar@intel.com>
5438 Andrey Turetskiy <andrey.turetskiy@intel.com>
5439 Ilya Verbin <ilya.verbin@intel.com>
5440 Kirill Yukhin <kirill.yukhin@intel.com>
5441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5443 * config/i386/sse.md
5444 (define_mode_iterator VI48F): New.
5445 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5446 "avx512f_compress<mode>_mask" and update mode iterator.
5447 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5448 "avx512f_compressstore<mode>_mask" and update mode iterator.
5449 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5450 "avx512f_expand<mode>_maskz" and update mode iterator.
5451 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5452 "avx512f_expand<mode>_mask" and update mode iterator.
5454 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5456 Anna Tikhonova <anna.tikhonova@intel.com>
5457 Ilya Tocar <ilya.tocar@intel.com>
5458 Andrey Turetskiy <andrey.turetskiy@intel.com>
5459 Ilya Verbin <ilya.verbin@intel.com>
5460 Kirill Yukhin <kirill.yukhin@intel.com>
5461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5463 * config/i386/i386.c
5464 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5465 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5466 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5467 avx512dq_rangepv4sf_mask.
5468 * config/i386/sse.md
5469 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5471 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5472 (define_insn "reduces<mode>"): Ditto.
5473 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5475 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5476 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5477 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5479 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5481 Anna Tikhonova <anna.tikhonova@intel.com>
5482 Ilya Tocar <ilya.tocar@intel.com>
5483 Andrey Turetskiy <andrey.turetskiy@intel.com>
5484 Ilya Verbin <ilya.verbin@intel.com>
5485 Kirill Yukhin <kirill.yukhin@intel.com>
5486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5488 * config/i386/i386.c
5489 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5490 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5491 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5492 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5493 avx512vl_getmantv2df_mask.
5494 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5495 avx512f_vgetmantv4sf_round.
5496 * config/i386/sse.md
5497 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5498 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5500 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5501 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5502 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5503 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5505 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5506 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5507 update mode iterator.
5509 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5510 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5513 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5514 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5515 update mode iterator.
5516 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5517 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5520 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5521 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5523 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5524 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5525 update mode iterator.
5526 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5527 "avx512f_getmant<mode><round_saeonly_name>".
5529 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5532 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5534 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5535 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5536 Anna Tikhonova <anna.tikhonova@intel.com>
5537 Ilya Tocar <ilya.tocar@intel.com>
5538 Andrey Turetskiy <andrey.turetskiy@intel.com>
5539 Ilya Verbin <ilya.verbin@intel.com>
5540 Kirill Yukhin <kirill.yukhin@intel.com>
5541 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5543 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5544 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5545 (define_mode_iterator FMAMODE_AVX512): New.
5546 (define_mode_iterator FMAMODE): Remove conditions.
5547 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5548 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5549 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5551 (define_mode_iterator FMAMODE_NOVF512): Remove.
5552 (define_insn "*fma_fmadd_<mode>"): Rename from
5553 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5554 FMAMODE mode iterator.
5555 (define_mode_iterator VF_SF_AVX512VL): New.
5556 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5557 Use VF_SF_AVX512VL mode iterator.
5558 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5559 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5561 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5562 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5564 (define_insn "*fma_fmsub_<mode>"): Rename from
5565 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5566 FMAMODE mode iterator.
5567 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5568 Use VF_SF_AVX512VL mode iterator.
5569 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5570 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5572 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5573 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5575 (define_insn "*fma_fnmadd_<mode>"): Rename from
5576 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5577 use FMAMODE mode iterator.
5578 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5579 Use VF_SF_AVX512VL mode iterator.
5580 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5581 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5583 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5584 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5586 (define_insn "*fma_fnmsub_<mode>"): Rename from
5587 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5588 FMAMODE mode iterator.
5589 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5590 Use VF_SF_AVX512VL mode iterator.
5591 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5592 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5594 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5595 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5597 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5598 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5599 use VF_AVX512VL mode iterator.
5600 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5601 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5603 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5604 Use VF_SF_AVX512VL mode iterator.
5605 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5606 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5608 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5609 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5611 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5612 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5613 remove usage of subst.
5614 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5615 Use VF_SF_AVX512VL mode iterator.
5616 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5617 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5619 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5620 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5623 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5626 * calls.c (precompute_arguments): Check
5627 promoted_for_signed_and_unsigned_p and set the promoted mode.
5628 (promoted_for_signed_and_unsigned_p): New function.
5629 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5630 and set the promoted mode.
5631 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5632 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5633 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5635 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5637 * opth-gen.awk: Generate mapping from cpp message reasons to the
5638 options that enable them.
5639 * doc/options.texi (CppReason): Document.
5641 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5643 * doc/invoke.texi (Wnormalized=): Update.
5645 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5648 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5649 operands. Split off the constant operand alternative to ...
5650 (*bool<mode>3_imm): New.
5652 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5654 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5655 const rtx_insn *, and move prototype to above...
5656 (single_set): ...this. Convert this from a macro to an inline
5657 function, enforcing the requirement that the param is a const
5659 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5661 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5662 Strengthen both params from rtx to rtx_insn *.
5663 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5664 Likewise; introduce locals "producer_set", "consumer_set", using
5665 them in place of "producer" and "consumer" when dealing with SET
5667 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5668 when invoking single_set in region guarded by INSN_P.
5669 (avr_out_bitop): Likewise.
5670 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5671 region guarded by GET_CODE check, using methods to strengthen
5672 local "this_insn" from rtx to rtx_insn *, and for clarity.
5673 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5674 Strengthen local "insn" from rtx to rtx_insn *.
5675 (define_insn_and_split "xload<mode>_A"): Likewise.
5676 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5678 (find_load): Likewise for return type.
5679 (workaround_speculation): Likewise for both locals named
5681 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5683 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5685 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5687 * config/h8300/h8300.c (notice_update_cc): Likewise.
5688 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5689 "insn" and "dep_insn".
5690 (exact_store_load_dependency): Likewise for both params.
5691 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5692 since this now clashes with inline function. Instead, delay
5693 calling single_set until the point where its needed, and then
5694 assign the result to "compare_set" and rework the conditional that
5696 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5697 local "last" from rtx to rtx_insn *.
5698 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5700 (mips_store_data_bypass_p): Likewise for both params.
5701 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5703 (mips_store_data_bypass_p): Likewise for both params.
5704 (mips_orphaned_high_part_p): Likewise for param "insn".
5705 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5706 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5707 Introduce local rtx "insn2_pat".
5708 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5710 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5711 Introduce local rtx "set", using it in place of "insn" for the
5712 result of single_set. This appears to fix a bug, since the call
5713 to find_regno_note on a SET does nothing.
5714 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5715 params from rtx to rtx_insn *.
5716 (set_to_load_agen): Likewise.
5717 * config/s390/s390.c (s390_label_align): Likewise for local
5718 "prev_insn". Introduce new rtx locals "set" and "src", using
5719 them in place of "prev_insn" for the results of single_set
5720 and SET_SRC respectively.
5721 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5722 Introduce new rtx local "set" using in place of "jump" for the
5723 result of single_set. Use SET_SRC (set) rather than plain
5725 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5727 (noncall_uses_reg): Likewise.
5728 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5729 guarded by GET_CODE check, using its methods for clarity, and to
5730 enable strengthening local "this_insn" from rtx to rtx_insn *.
5731 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5732 "insn" from rtx to rtx_insn *.
5733 (define_expand "umulhisi3"): Likewise.
5734 (define_expand "smulsi3_highpart"): Likewise.
5735 (define_expand "umulsi3_highpart"): Likewise.
5736 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5737 local "after". Replace GET_CODE check with a dyn_cast,
5738 introducing new local rtx_sequence * "seq", using insn method for
5741 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5742 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5743 place of "insn" once we're dealing with patterns rather than the
5745 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5746 (scan_trace): Likewise for local "elt", updating lookups within
5747 sequence to use insn method rather than element method.
5748 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5750 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5751 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5752 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5753 invoking single_set.
5754 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5755 "insn" from rtx to rtx_insn *.
5756 (skip_usage_debug_insns): Likewise for return type, adding a
5758 (check_secondary_memory_needed_p): Likewise for local "insn".
5759 (inherit_reload_reg): Likewise.
5760 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5761 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5763 (store_data_bypass_p): Likewise for both params.
5764 (if_test_bypass_p): Likewise.
5765 * recog.h (store_data_bypass_p): Likewise for both params.
5766 (if_test_bypass_p): Likewise.
5767 * reload.c (find_equiv_reg): Likewise for local "where".
5768 * reorg.c (delete_jump): Likewise for param "insn".
5769 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5770 to const rtx_insn *.
5771 * store-motion.c (replace_store_insn): Likewise for param "del".
5772 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5773 and use its methods for clarity, and to strengthen local "del"
5774 from rtx to rtx_insn *.
5775 (build_store_vectors): Use insn method of "st" when calling
5776 replace_store_insn for typesafety and clarity.
5778 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5780 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5781 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5782 on how to make it legal in future.
5784 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5786 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5788 (restinsn): Likewise.
5789 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5791 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5793 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5795 (arc_hazard): Likewise for both params.
5796 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5797 checked casts to rtx_sequence * and uses of the insn method for
5799 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5800 (arc_adjust_insn_length): Likewise for param "insn".
5801 (struct insn_length_parameters_s): Likewise for first param of
5802 "get_variants" callback field.
5803 (arc_get_insn_variants): Likewise for first param and local
5804 "inner". Replace a check of GET_CODE with a dyn_cast to
5805 rtx_sequence *, using methods for type-safety and clarity.
5806 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5807 rtx_sequence * and uses of the insn method for type-safety when
5808 invoking arc_adjust_insn_length.
5809 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5811 (arm_address_offset_is_imm): Likewise.
5812 (struct tune_params): Likewise for params 1 and 3 of the
5813 "sched_adjust_cost" callback field.
5814 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5815 params 1 and 3 ("insn" and "dep").
5816 (xscale_sched_adjust_cost): Likewise.
5817 (fa726te_sched_adjust_cost): Likewise.
5818 (cortexa7_older_only): Likewise for param "insn".
5819 (cortexa7_younger): Likewise.
5820 (arm_attr_length_move_neon): Likewise.
5821 (arm_address_offset_is_imm): Likewise.
5822 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5823 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5824 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5825 (workaround_speculation): Likewise for local "last_condjump".
5826 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5827 (shadow_or_blockage_p): Likewise.
5828 (get_unit_reqs): Likewise.
5829 (get_unit_operand_masks): Likewise.
5830 (c6x_registers_update): Likewise.
5831 (returning_call_p): Likewise.
5832 (can_use_callp): Likewise.
5833 (convert_to_callp): Likewise.
5834 (find_last_same_clock): Likwise for local "t".
5835 (reorg_split_calls): Likewise for local "shadow".
5836 (hwloop_pattern_reg): Likewise for param "insn".
5837 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5838 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5839 (frv_extract_membar): Likewise.
5840 (frv_optimize_membar_local): Strengthen param "last_membar" from
5841 rtx * to rtx_insn **.
5842 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5844 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5846 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5847 both params from rtx to rtx_insn *.
5848 (ia64_ld_address_bypass_p): Likewise.
5849 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5851 (ia64_safe_type): Likewise.
5852 (group_barrier_needed): Likewise.
5853 (safe_group_barrier_needed): Likewise.
5854 (ia64_single_set): Likewise.
5855 (is_load_p): Likewise.
5856 (record_memory_reference): Likewise.
5857 (get_mode_no_for_insn): Likewise.
5858 (important_for_bundling_p): Likewise.
5859 (unknown_for_bundling_p): Likewise.
5860 (ia64_st_address_bypass_p): Likewise for both params.
5861 (ia64_ld_address_bypass_p): Likewise.
5862 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5863 in place of rtx "x" after the emit_insn call.
5864 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5865 Strengthen param from rtx to rtx_insn *.
5866 (ix86_agi_dependent): Likewise for both params.
5867 (ix86_attr_length_immediate_default): Likewise for param 1.
5868 (ix86_attr_length_address_default): Likewise for param.
5869 (ix86_attr_length_vex_default): Likewise for param 1.
5870 * config/i386/i386.c (ix86_attr_length_immediate_default):
5871 Likewise for param "insn".
5872 (ix86_attr_length_address_default): Likewise.
5873 (ix86_attr_length_vex_default): Likewise.
5874 (ix86_agi_dependent): Likewise for both params.
5875 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5876 (vselect_insn): Likewise for this variable.
5877 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5879 (m68k_sched_attr_opy_type): Likewise.
5880 * config/m68k/m68k.c (sched_get_operand): Likewise.
5881 (sched_attr_op_type): Likewise.
5882 (m68k_sched_attr_opx_type): Likewise.
5883 (m68k_sched_attr_opy_type): Likewise.
5884 (sched_get_reg_operand): Likewise.
5885 (sched_get_mem_operand): Likewise.
5886 (m68k_sched_address_bypass_p): Likewise for both params.
5887 (sched_get_indexed_address_scale): Likewise.
5888 (m68k_sched_indexed_address_bypass_p): Likewise.
5889 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5890 (m68k_sched_indexed_address_bypass_p): Likewise.
5891 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5892 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5894 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5895 params from rtx to rtx_insn *.
5896 (mips_fmadd_bypass): Likewise.
5897 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5898 (mips_linked_madd_p): Likewise.
5899 (mips_macc_chains_last_hilo): Likewise for this variable.
5900 (mips_macc_chains_record): Likewise for param.
5901 (vr4130_last_insn): Likewise for this variable.
5902 (vr4130_swap_insns_p): Likewise for both params.
5903 (mips_ls2_variable_issue): Likewise for param.
5904 (mips_need_noat_wrapper_p): Likewise for param "insn".
5905 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5906 in place of "x" after the emit_insn.
5907 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5908 params from rtx to rtx_insn *.
5909 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5910 (pa_combine_instructions): Introduce local "par" for result of
5911 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5913 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5914 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5915 (rl78_alloc_physical_registers_op1): Likewise.
5916 (rl78_alloc_physical_registers_op2): Likewise.
5917 (rl78_alloc_physical_registers_ro1): Likewise.
5918 (rl78_alloc_physical_registers_cmp): Likewise.
5919 (rl78_alloc_physical_registers_umul): Likewise.
5920 (rl78_alloc_address_registers_macax): Likewise.
5921 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5922 * config/s390/predicates.md (execute_operation): Likewise for
5924 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5926 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5927 (addr_generation_dependency_p): Likewise for param "insn".
5928 (s390_agen_dep_p): Likewise for both params.
5929 (s390_fpload_toreg): Likewise for param "insn".
5930 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5931 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5933 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5934 * config/sh/sh_treg_combine.cc
5935 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5937 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5938 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5939 "and_insn", "load", "shift".
5940 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5942 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5943 for XEXP (note, 0) of the REG_CC_SETTER note.
5944 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5945 rtx_insn *, eliminating a checked cast made redundant by this.
5946 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5948 * genattr.c (main): When writing out the prototype to
5949 const_num_delay_slots, strengthen the param from rtx to
5951 * genattrtab.c (write_const_num_delay_slots): Likewise when
5952 writing out the implementation of const_num_delay_slots.
5953 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5954 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5955 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5956 favor of new rtx locals "src" and "set" and new local rtx_insn *
5958 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5960 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5961 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5963 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5964 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5965 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5966 the top-level scope, replacing with new more tightly-scoped rtx
5967 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5968 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5970 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5972 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5974 (ira_setup_alts): Likewise for param "insn".
5975 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5976 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5978 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5979 new more-tightly scoped rtx locals "add3_insn", "insn",
5980 "add2_insn" and rtx_insn * "move_insn".
5981 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5982 checked cast on result of gen_move_insn when invoking
5984 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5986 (verify_changes): Add a checked cast on "object" when invoking
5988 (extract_insn_cached): Strengthen param "insn" from rtx to
5990 (extract_constrain_insn_cached): Likewise.
5991 (extract_insn): Likewise.
5992 * recog.h (insn_invalid_p): Likewise for param 1.
5993 (recog_memoized): Likewise for param.
5994 (extract_insn): Likewise.
5995 (extract_constrain_insn_cached): Likewise.
5996 (extract_insn_cached): Likewise.
5997 * reload.c (can_reload_into): Likewise for local "test_insn".
5998 * reload.h (cleanup_subreg_operands): Likewise for param.
5999 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6000 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6001 result of emit_insn. Remove a checked cast made redundant by this
6003 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6005 * sel-sched.c (get_reg_class): Likewise.
6007 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6008 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6010 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6011 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6013 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6015 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6017 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6018 const rtx_insn *, and from rtx to rtx_insn * for the other
6020 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6021 INSN_LOCATION, since we know INSN_P holds.
6022 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6023 (insn_file): Likewise.
6024 (insn_scope): Likewise.
6025 (insn_location): Likewise.
6027 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6028 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6029 for the result of gen_load_const_gp.
6030 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6031 param from rtx to rtx_insn *.
6032 * config/rs6000/rs6000.c (output_call): Likewise.
6033 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6034 introducing a checked cast to rtx_sequence * and use of the insn
6036 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6037 from rtx to rtx_insn *.
6038 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6039 (insn_line): Likewise.
6040 (insn_file): Likewise.
6041 (insn_location): Likewise.
6042 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6043 from rtx to rtx_insn *.
6044 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6045 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6046 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6048 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6049 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6051 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6053 * combine.c (try_combine): Eliminate checked cast on result of
6055 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6056 autogenerated one by strengthening the return type and params 2 and 3
6057 from rtx to rtx_insn *, and by naming the params.
6058 * gengenrtl.c (special_rtx): Add INSN to those that are
6060 * rtl.h (gen_rtx_INSN): New prototype.
6062 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6064 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6066 (no_equiv): Likewise.
6067 (update_equiv_regs): Likewise.
6068 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6069 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6070 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6072 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6073 from rtx to rtx_insn_list *.
6074 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6075 rtx_insn_list * and use methods for clarity and typesafety.
6076 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6078 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6079 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6080 an INSN_LIST, not an insn.
6081 (reverse_equiv_p): Strengthen local "insns" from rtx to
6082 rtx_insn_list * and use methods for clarity and typesafety.
6083 (contains_reloaded_insn_p): Likewise for local "list".
6085 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6087 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6088 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6089 (arm_builtin_vectorized_function): Likewise.
6090 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6091 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6093 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6095 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6096 * builtins.h (default_target_builtins): Likewise.
6097 * gcse.h (default_target_gcse): Likewise.
6098 * target-globals.h (target_globals): Add a destructor. Convert
6099 void-pointer fields back to their real type and change from
6100 GTY((atomic)) to GTY((skip)).
6101 (restore_target_globals): Remove casts accordingly.
6102 * target-globals.c (save_target_globals): Use XCNEW rather than
6103 ggc_internal_cleared_alloc to allocate non-GC structures.
6104 Use ggc_cleared_alloc to allocate the target_globals structure
6106 (target_globals::~target_globals): Define.
6108 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6110 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6111 mnemonic instead of fldmfdd.
6112 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6113 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6114 Output vpush when address register is SP.
6115 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6116 (vfp_output_vstmd): ... This.
6117 * config/arm/vfp.md (push_multi_vfp): Update call to
6120 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6122 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6124 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6126 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6127 (*sqrtdf2_vfp): Likewise.
6128 (*cmpsf_vfp): Likewise.
6129 (*cmpsf_trap_vfp): Likewise.
6130 (*cmpdf_vfp): Likewise.
6131 (*cmpdf_trap_vfp): Likewise.
6133 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6135 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6136 (*truncdfsf2_vfp): Likewise.
6137 (*truncsisf2_vfp): Likewise.
6138 (*truncsidf2_vfp): Likewise.
6139 (fixuns_truncsfsi2): Likewise.
6140 (fixuns_truncdfsi2): Likewise.
6141 (*floatsisf2_vfp): Likewise.
6142 (*floatsidf2_vfp): Likewise.
6143 (floatunssisf2): Likewise.
6144 (floatunssidf2): Likewise.
6146 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6148 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6149 (*muldf3_vfp): Likewise.
6150 (*mulsf3negsf_vfp): Likewise.
6151 (*muldf3negdf_vfp): Likewise.
6152 (*mulsf3addsf_vfp): Likewise.
6153 (*muldf3adddf_vfp): Likewise.
6154 (*mulsf3subsf_vfp): Likewise.
6155 (*muldf3subdf_vfp): Likewise.
6156 (*mulsf3negsfaddsf_vfp): Likewise.
6157 (*fmuldf3negdfadddf_vfp): Likewise.
6158 (*mulsf3negsfsubsf_vfp): Likewise.
6159 (*muldf3negdfsubdf_vfp): Likewise.
6161 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6163 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6164 (*absdf2_vfp): Likewise.
6165 (*negsf2_vfp): Likewise.
6166 (*negdf2_vfp): Likewise.
6167 (*addsf3_vfp): Likewise.
6168 (*adddf3_vfp): Likewise.
6169 (*subsf3_vfp): Likewise.
6170 (*subdf3_vfp): Likewise.
6171 (*divsf3_vfp): Likewise.
6172 (*divdf3_vfp): Likewise.
6174 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6176 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6178 (arm_print_operand): Don't convert real values to decimal
6179 representation in default case.
6180 (fp_immediate_constant): Delete.
6181 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6182 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6184 (*thumb2_movsi_vfp): Likewise.
6185 (*movdi_vfp): Likewise.
6186 (*movdi_vfp_cortexa8): Likewise.
6187 (*movhf_vfp_neon): Likewise.
6188 (*movhf_vfp): Likewise.
6189 (*movsf_vfp): Likewise.
6190 (*thumb2_movsf_vfp): Likewise.
6191 (*movdf_vfp): Likewise.
6192 (*thumb2_movdf_vfp): Likewise.
6193 (*movsfcc_vfp): Likewise.
6194 (*thumb2_movsfcc_vfp): Likewise.
6195 (*movdfcc_vfp): Likewise.
6196 (*thumb2_movdfcc_vfp): Likewise.
6198 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6200 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6204 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6207 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6208 Use qualifier_immediate for last operand. Rename to...
6209 (aarch64_types_ternop_lane_qualifiers): ... This.
6210 (TYPES_QUADOP): Rename to...
6211 (TYPES_TERNOP_LANE): ... This.
6212 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6213 error. Change return of 0 to return of NULL_RTX.
6214 (aarch64_crc32_expand_builtin): Likewise.
6215 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6216 ICE when expanding unknown builtin.
6217 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6218 TERNOP_LANE qualifiers.
6219 (sqdmlsl_lane): Likewise.
6220 (sqdmlal_laneq): Likewise.
6221 (sqdmlsl_laneq): Likewise.
6222 (sqdmlal2_lane): Likewise.
6223 (sqdmlsl2_lane): Likewise.
6224 (sqdmlal2_laneq): Likewise.
6225 (sqdmlsl2_laneq): Likewise.
6227 2014-09-09 Nick Clifton <nickc@redhat.com>
6229 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6231 (S/390 and zSeries Options): Remove superfluous word from the
6232 description of the -mhotpatch option.
6234 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6236 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6237 * ira.c: #include "shrink-wrap.h"
6238 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6239 * ifcvt.c: #include "shrink-wrap.h"
6240 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6242 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6244 * common/config/picochip/picochip-common.c: Remove.
6245 * config.gcc: Remove support for picochip.
6246 * config/picochip/constraints.md: Remove.
6247 * config/picochip/dfa_space.md: Remove.
6248 * config/picochip/dfa_speed.md: Remove.
6249 * config/picochip/picochip-protos.h: Remove.
6250 * config/picochip/picochip.c: Remove.
6251 * config/picochip/picochip.h: Remove.
6252 * config/picochip/picochip.md: Remove.
6253 * config/picochip/picochip.opt: Remove.
6254 * config/picochip/predicates.md: Remove.
6255 * config/picochip/t-picochip: Remove.
6256 * doc/md.texi: Don't document picochi.
6258 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6260 * basic-block.h (control_flow_insn_p): Strengthen param from
6261 const_rtx to const rtx_insn *.
6262 * cfgbuild.c (control_flow_insn_p): Likewise.
6264 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6266 * gcse.c (modify_mem_list): Strengthen this variable from
6267 vec<rtx> * to vec<rtx_insn *> *.
6268 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6270 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6271 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6272 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6274 (record_last_set_info): Likewise for local "last_set_insn".
6276 2014-09-08 DJ Delorie <dj@redhat.com>
6278 * doc/invoke.texi (MSP430 Options): Add -minrt.
6280 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6282 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6283 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6284 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6286 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6288 (adjust_splat): New function.
6289 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6290 (dump_swap_insn_table): Add case for SH_SPLAT.
6292 2014-09-08 Richard Biener <rguenther@suse.de>
6295 * tree-inline.c (copy_loops): The source loop header should
6297 (tree_function_versioning): If loops need fixup after removing
6298 unreachable blocks fix them.
6299 * omp-low.c (simd_clone_adjust): Do not add incr block to
6300 loop under construction.
6302 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6304 * config/aarch64/aarch64-builtins.c
6305 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6307 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6309 * config/i386/cygming.h (TF_SIZE): Remove.
6310 * config/i386/darwin.h (TF_SIZE): Remove.
6311 * config/i386/dragonfly.h (TF_SIZE): Remove.
6312 * config/i386/freebsd.h (TF_SIZE): Remove.
6313 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6314 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6315 * config/i386/sol2.h (TF_SIZE): Remove.
6316 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6317 * config/ia64/linux.h (TF_SIZE): Remove.
6318 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6319 * doc/tm.texi: Regenerate.
6320 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6322 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6324 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6326 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6328 * doc/tm.texi: Regenerate.
6329 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6331 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6332 * config/cris/cris.h (__make_dp): Remove.
6334 2014-09-08 Richard Biener <rguenther@suse.de>
6337 * cfgloop.c (mark_loop_for_removal): Track former header
6339 * cfgloop.h (struct loop): Add former_header member unconditionally.
6340 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6341 diagnostic unconditionally.
6343 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6346 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6347 constraint for operand0 and remove write only modifier from operand3.
6349 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6351 PR rtl-optimization/62208
6352 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6353 rather than const0_rtx in eq/ne-xor simplifications.
6355 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6357 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6358 (arc_output_mi_thunk): Likewise.
6360 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6361 arguments to silence bogus warning.
6363 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6366 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6368 2014-09-06 Tom de Vries <tom@codesourcery.com>
6370 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6371 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6372 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6374 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6377 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6378 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6380 2014-09-05 Easwaran Raman <eraman@google.com>
6382 PR rtl-optimization/62146
6383 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6384 hoisted instruction unconditional.
6386 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6389 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6390 Do not allow any_mask_operand for operands[2].
6391 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6393 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6395 * config/arc/arc.c (arc_print_operand): Use insn method of
6396 final_sequence for type-safety.
6397 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6398 "insn" from rtx to rtx_insn *.
6399 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6400 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6401 Likewise for locals "branch", "label".
6402 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6403 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6404 (same_cmp_following_p): Likewise for locals "i2", "i3".
6405 * config/sh/sh_optimize_sett_clrt.cc
6406 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6407 param "cbranch_insn".
6408 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6409 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6410 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6412 (condjump_p): Likewise.
6413 (condjump_in_parallel_p): Likewise.
6415 (any_uncondjump_p): Likewise.
6416 (any_condjump_p): Likewise.
6417 (condjump_label): Likewise.
6418 (returnjump_p): Strengthen param "insn" from rtx to
6420 (onlyjump_p): Strengthen param "insn" from const_rtx to
6422 (jump_to_label_p): Likewise.
6423 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6424 (invert_jump): Likewise.
6425 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6427 (get_jump_flags): Strengthen param "insn" from rtx to
6429 (get_branch_condition): Likewise.
6430 (condition_dominates_p): Likewise.
6431 (make_return_insns): Move declaration of local "pat" earlier, to
6432 after we've handled NONJUMP_INSN_P and non-sequences, using its
6433 methods to simplify the code and for type-safety.
6434 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6436 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6437 (condjump_p): Strengthen param from const_rtx to
6439 (any_condjump_p): Likewise.
6440 (any_uncondjump_p): Likewise.
6442 (condjump_label): Likewise.
6443 (simplejump_p): Likewise.
6444 (returnjump_p): Likewise.
6445 (onlyjump_p): Likewise.
6446 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6447 (invert_jump): Likewise.
6448 (condjump_in_parallel_p): Strengthen param from const_rtx to
6450 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6451 to const rtx_insn *.
6452 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6453 to const rtx_insn *.
6454 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6456 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6458 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6459 above the conditional, and convert the check on GET_CODE to a
6460 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6461 the conditional. Simplify the conditional by using methods of
6464 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6466 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6467 "link" from rtx to rtx_insn_list *, and use its methods for
6468 clarity and type-safety.
6469 (toggle_cancelled_flags): Likewise.
6470 (restore_last_backtrack_point): Likewise.
6471 (queue_to_ready): Use insn method of "link" in one place.
6472 (schedule_block): Strengthen local "link" from rtx to
6473 rtx_insn_list *, and use its methods for clarity and type-safety.
6475 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6477 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6478 param "insn" from const_rtx to const rtx_insn *.
6479 (sched_get_reverse_condition_uncached): Likewise.
6480 (sched_get_condition_with_rev): Likewise.
6481 (sched_has_condition_p): Likewise.
6482 (sched_insns_conditions_mutex_p): Likewise for both params.
6483 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6484 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6485 (setup_insn_reg_uses): Move local "list" to be more tightly
6486 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6487 its methods for clarity and type-safety.
6488 (sched_analyze_1): Strengthen local "pending" from rtx to
6489 rtx_insn_list *, and local "pending_mem" from rtx to
6490 rtx_expr_list *. Use methods of each for clarity and type-safety.
6491 (sched_analyze_2): Likewise.
6492 (sched_analyze_insn): Likewise.
6494 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6495 param from const_rtx to const rtx_insn *.
6496 (sched_insns_conditions_mutex_p): Likewise for both params.
6497 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6500 * system.h (CONST_CAST_RTX_INSN): New macro.
6502 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6504 * recog.c (peep2_attempt): Strengthen return type from rtx to
6506 (peep2_update_life): Likewise for params "last", "prev", removing
6507 a checked cast made redundant by this.
6508 (peephole2_optimize): Likewise for local "last".
6510 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6512 * basic-block.h (set_block_for_insn): Eliminate this macro in
6514 * rtl.h (set_block_for_insn): New inline function, imposing the
6515 requirement that the "insn" param is an rtx_insn *.
6517 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6519 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6521 * final.c (get_call_reg_set_usage): Likewise for first param,
6522 eliminating a checked cast.
6523 * regs.h (get_call_reg_set_usage): Likewise for first param.
6524 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6525 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6526 cast, replacing references to "x" with "call_insn" where
6528 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6529 rtx_insn *, adding a checked cast.
6531 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6533 * output.h (final_scan_insn): Strengthen first param from rtx to
6536 * final.c (final_scan_insn): Likewise, renaming it back from
6537 "uncast_insn" to "insn", eliminating the checked cast.
6539 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6540 "vec" with an rtx_sequence * "seq", taking a copy of
6541 "final_sequence", and using methods of "seq" for clarity, and for
6542 type-safety in the calls to final_scan_insn.
6543 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6544 of "final_sequence" for clarity, and for type-safety in the call to
6546 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6547 rtx_sequence * and rename from "insn" to "seq".
6549 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6551 * jump.c (delete_related_insns): Introduce a new local "table" by
6552 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6553 get_labels method of "table" to simplify access to the labels in
6556 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6558 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6559 f_minmaxs, f_minmaxd types.
6561 2014-09-05 Richard Biener <rguenther@suse.de>
6563 * cfgloop.c (mark_loop_for_removal): Record former header
6564 when ENABLE_CHECKING.
6565 * cfgloop.h (strut loop): Add former_header member when
6567 * loop-init.c (fix_loop_structure): Sanity check loops
6568 marked for removal if they re-appeared.
6570 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6572 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6573 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6575 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6576 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6577 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6578 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6579 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6580 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6581 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6582 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6583 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6584 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6585 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6586 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6587 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6588 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6589 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6590 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6591 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6592 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6593 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6594 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6595 with int{32,16,8}_t.
6597 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6599 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6600 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6601 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6602 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6603 Remove temporary __asm__ and reimplement.
6605 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6607 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6608 handling cmge, cmgt, cmeq, cmtst.
6610 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6611 cmlt, cmgeu, cmgtu, cmtst): Remove.
6613 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6614 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6615 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6616 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6618 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6620 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6622 (aarch64_fold_builtin): Update pattern for cmtst.
6624 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6627 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6629 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6630 Switch operands, separate out more cases, refactor.
6632 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6634 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6635 argument; rename old version to...
6636 (aarch64_const_vec_all_same_in_range_p): ...this.
6637 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6639 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6641 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6643 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6644 Remove qualifier_const_pointer, update comment.
6646 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6648 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6650 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6652 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6653 varargs with pointer parameter.
6654 (aarch64_simd_expand_builtin): pass pointer into previous.
6656 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6658 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6661 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6663 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6664 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6665 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6666 Replace temporary asm with call to builtin.
6667 (vrbit_p8, vrbitq_p8): New functions.
6669 2014-09-05 Richard Biener <rguenther@suse.de>
6671 * cfgloop.c (mark_loop_for_removal): New function.
6672 * cfgloop.h (mark_loop_for_removal): Declare.
6673 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6674 (merge_blocks): Likewise.
6675 (duplicate_block): Likewise.
6676 * except.c (sjlj_emit_dispatch_table): Likewise.
6677 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6678 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6679 (thread_through_loop_header): Likewise.
6681 2014-09-05 Richard Biener <rguenther@suse.de>
6684 * fold-const.c (try_move_mult_to_index): Remove.
6685 (fold_binary_loc): Do not call it.
6686 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6687 from the base object again.
6689 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6691 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6694 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6697 * config/arm/arm.md (setmem): New pattern.
6698 * config/arm/arm-protos.h (struct tune_params): New fields.
6699 (arm_gen_setmem): New prototype.
6700 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6701 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6702 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6703 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6704 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6705 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6706 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6707 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6708 (arm_const_inline_cost): New function.
6709 (arm_block_set_max_insns): New function.
6710 (arm_block_set_non_vect_profit_p): New function.
6711 (arm_block_set_vect_profit_p): New function.
6712 (arm_block_set_unaligned_vect): New function.
6713 (arm_block_set_aligned_vect): New function.
6714 (arm_block_set_unaligned_non_vect): New function.
6715 (arm_block_set_aligned_non_vect): New function.
6716 (arm_block_set_vect, arm_gen_setmem): New functions.
6718 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6720 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6722 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6724 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6726 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6728 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6730 * valtrack.h: Adjust.
6732 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6734 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6736 (emit_jump_insn_before_noloc): Likewise.
6737 (emit_call_insn_before_noloc): Likewise.
6738 (emit_label_before): Likewise.
6739 (emit_label_after): Likewise.
6740 (emit_insn_before_setloc): Likewise.
6741 (emit_jump_insn_before_setloc): Likewise.
6742 (emit_call_insn_before_setloc): Likewise.
6743 (emit_call_insn_before): Likewise.
6746 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6748 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6749 rtx_insn *, eliminating a checked cast.
6751 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6753 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6754 const_rtx to const rtx_insn *.
6755 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6758 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6760 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6761 fixup_args_size_notes.
6762 * expr.c (fixup_args_size_notes): Strengthen first two params from
6763 rtx to rtx_insn *, eliminating a checked cast.
6764 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6767 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6769 * haifa-sched.c (get_ready_element): Strengthen return type from
6771 * sched-int.h (get_ready_element): Likewise.
6773 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6776 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6777 indexed_or_indirect_operand instead of memory_operand.
6778 (floatsi<mode>2_lfiwzx_mem): Ditto.
6780 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6782 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6783 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6784 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6786 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6788 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6790 (get_last_nonnote_insn): Likewise.
6791 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6792 * resource.c (find_basic_block): Likewise.
6794 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6797 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6799 * genattr.c (main): Within the prototype of insn_latency written
6800 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6801 * genautomata.c (output_internal_maximal_insn_latency_func):
6802 Within the implementation of insn_latency written out to
6803 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6804 eliminating a pair of checked casts.
6806 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6808 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6811 * rtl.h (eh_returnjump_p): Likewise.
6813 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6815 * Makefile.in (TAGS): Handle constructs in timevar.def.
6817 2014-09-04 Guozhi Wei <carrot@google.com>
6820 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6821 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6822 it into two patterns.
6823 (move_lo_quad_internal_be_<mode>): Likewise.
6825 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6827 * doc/options.texi: Document that Var and Init are required if CPP
6829 * optc-gen.awk: Require Var and Init if CPP is given.
6830 * common.opt (Wpedantic): Use Init.
6832 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6834 * config/rs6000/rs6000.c (special_handling_values): Add
6836 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6837 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6838 as swappable with special handling SH_EXTRACT. Remove
6839 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6841 (adjust_extract): New function.
6842 (handle_special_swappables): Add default to case statement; add
6843 case for SH_EXTRACT that calls adjust_extract.
6844 (dump_swap_insn_table): Handle SH_EXTRACT.
6846 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6848 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6849 selection of 0th memory doubleword, regardless of endianness.
6851 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6853 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6855 2014-09-04 Alan Modra <amodra@gmail.com>
6858 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6861 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6863 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6864 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6865 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6866 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6867 * doc/tm.texi: Regenerate.
6868 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6869 selection logic to default_dwarf_frame_reg_mode.
6871 2014-09-03 Marek Polacek <polacek@redhat.com>
6873 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6876 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6878 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6879 the automodified register.
6881 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6883 * output.h (get_some_local_dynamic_name): Declare.
6884 * final.c (some_local_dynamic_name): New variable.
6885 (get_some_local_dynamic_name): New function.
6886 (final_end_function): Clear some_local_dynamic_name.
6887 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6888 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6889 (print_operand): Report an error if '%&' is used inappropriately.
6890 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6891 (get_some_local_dynamic_name_1): Delete.
6892 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6893 (rs6000_get_some_local_dynamic_name): Delete.
6894 (rs6000_get_some_local_dynamic_name_1): Delete.
6895 (print_operand): Report an error if '%&' is used inappropriately.
6896 * config/s390/s390.c (machine_function): Remove some_ld_name.
6897 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6898 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6899 * config/sparc/sparc.c: Include rtl-iter.h.
6900 (machine_function): Remove some_ld_name.
6901 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6902 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6904 2014-09-03 Richard Henderson <rth@redhat.com>
6906 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6907 (aarch64_popwb_pair_reg): Remove.
6908 (aarch64_set_frame_expr): Remove.
6909 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6910 the restore ops performed by the insns generated.
6911 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6912 insn. Perform the calls_eh_return addition later; do not attempt to
6913 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6914 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6915 special markup at all. Load cfun->machine->frame.hard_fp_offset
6916 into a local variable.
6917 (aarch64_frame_pointer_required): Don't check calls_alloca.
6919 2014-09-03 Richard Biener <rguenther@suse.de>
6921 * opts.c (default_options_optimization): Adjust
6922 max-combine-insns to 2 for -Og.
6924 2014-09-03 Martin Jambor <mjambor@suse.cz>
6927 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6928 pass-trough jump functions correctly.
6930 2014-09-03 Martin Jambor <mjambor@suse.cz>
6933 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6934 created replacements in ascending order of offsets.
6935 (known_aggs_to_agg_replacement_list): Likewise.
6937 2014-09-03 Martin Liska <mliska@suse.cz>
6939 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6940 is set to set uninitialized value for vnresult.
6942 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6944 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6945 for TARGET_MUST_PASS_IN_STACK.
6947 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6949 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6950 for TARGET_ARG_PARTIAL_BYTES.
6952 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6954 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6955 instructions for varargs implementation.
6956 (nds32_expand_epilogue): Emit stack adjustment instructions for
6957 varargs implementation.
6959 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6961 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6962 optimization detection.
6964 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6966 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6968 (nds32_function_arg_advance): Deal with nameless arguments.
6969 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6970 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6971 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6973 2014-09-03 Richard Biener <rguenther@suse.de>
6975 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6976 (struct bb_bitmap_sets): Remove deferred member.
6977 (BB_DEFERRED): Remove.
6978 (defer_or_phi_translate_block): Remove.
6979 (compute_antic_aux): Remove deferring of blocks, assert
6980 proper iteration order.
6981 (compute_antic): Do not set BB_DEFERRED.
6982 (eliminate): Allocate el_avail of proper size initially.
6984 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6986 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6987 according to the value of crtl->args.pretend_args_size.
6989 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6991 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6992 varargs information.
6994 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6996 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6997 implementation for TARGET_SETUP_INCOMING_VARARGS.
6998 (nds32_strict_argument_naming): Refine comment.
6999 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7000 Define for future implementation.
7002 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7004 * config/i386/adxintrin.h (_subborrow_u32): New.
7005 (_addcarry_u32): Ditto.
7006 (_subborrow_u64): Ditto.
7007 (_addcarry_u64): Ditto.
7008 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7010 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7011 __builtin_ia32_sbb_u64
7013 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7015 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7017 (nds32_function_arg_advance): Likewise.
7018 (nds32_init_cumulative_args): Likewise.
7019 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7020 (NDS32_FIRST_GPR_REGNUM): Define.
7021 (NDS32_LAST_GPR_REGNUM): Define.
7022 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7023 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7024 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7025 (machine_function): Use GRP-specific stuff.
7027 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7029 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7030 (nds32_expand_epilogue): Likewise.
7031 (nds32_expand_prologue_v3push): Likewise.
7032 (nds32_expand_epilogue_v3pop): Likewise.
7034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7036 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7037 v3push/v3pop for variadic function.
7038 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7040 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7042 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7043 Check rtx for varargs implementation.
7044 (nds32_output_stack_pop): Likewise.
7045 * config/nds32/nds32-protos.h: Have a rtx argument for
7046 nds32_output_stack_push and nds32_output_stack_pop.
7047 * config/nds32/nds32.md: Likewise.
7049 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7051 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7052 to check if FUNC is an interrupt service routine.
7053 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7055 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7057 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7058 arguments implementation.
7060 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7062 * config/nds32/nds32-predicates.c
7063 (nds32_valid_stack_push_pop): Rename to ...
7064 (nds32_valid_stack_push_pop_p): ... this.
7065 * config/nds32/nds32-protos.h: Likewise.
7066 * config/nds32/predicates.md: Likewise.
7068 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7070 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7071 (nds32_emit_stack_v3push): ... this.
7072 (nds32_gen_stack_v3pop): Rename to ...
7073 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7076 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7078 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7079 (nds32_emit_stack_push_multiple): ... this.
7080 (nds32_gen_stack_pop_multiple): Rename to ...
7081 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7084 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7087 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7088 and add a second splitter to handle the remaining cases.
7090 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7092 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7094 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7096 * cfgexpand.c (label_rtx_for_bb): Change type to
7097 hash_map<basic_block, rtx_code_label *> *.
7098 (expand_gimple_basic_block): Adjust.
7099 (pass_expand::execute): Likewise.
7101 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7103 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7104 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7105 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7106 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7107 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7108 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7109 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7112 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7114 * alloc-pool.c: Include coretypes.h.
7115 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7116 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7117 hash_set instead of htab.
7118 * ggc-page.c (in_gc): New variable.
7119 (ggc_free): Do nothing if a collection is taking place.
7120 (ggc_collect): Set in_gc appropriately.
7121 * ggc.h (gt_ggc_mx(const char *)): New function.
7122 (gt_pch_nx(const char *)): Likewise.
7123 (gt_ggc_mx(int)): Likewise.
7124 (gt_pch_nx(int)): Likewise.
7125 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7126 (hash_map::hash_entry::pch_nx): Likewise.
7127 (hash_map::hash_entry::pch_nx_helper): Likewise.
7128 (hash_map::hash_map): Adjust.
7129 (hash_map::create_ggc): New function.
7130 (gt_ggc_mx): Likewise.
7131 (gt_pch_nx): Likewise.
7132 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7133 (default_hashset_traits::pch_nx): Likewise.
7134 (hash_set::hash_entry::ggc_mx): Likewise.
7135 (hash_set::hash_entry::pch_nx): Likewise.
7136 (hash_set::hash_entry::pch_nx_helper): Likewise.
7137 (hash_set::hash_set): Adjust.
7138 (hash_set::create_ggc): New function.
7139 (hash_set::elements): Likewise.
7140 (gt_ggc_mx): Likewise.
7141 (gt_pch_nx): Likewise.
7142 * hash-table.h (hash_table::hash_table): Adjust.
7143 (hash_table::m_ggc): New member.
7144 (hash_table::~hash_table): Adjust.
7145 (hash_table::expand): Likewise.
7146 (hash_table::empty): Likewise.
7147 (gt_ggc_mx): New function.
7148 (hashtab_entry_note_pointers): Likewise.
7149 (gt_pch_nx): Likewise.
7151 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7153 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7154 built-in definition.
7155 (XVCVUXDDP_SCALE): Likewise.
7156 (XVCVDPSXDS_SCALE): Likewise.
7157 (XVCVDPUXDS_SCALE): Likewise.
7158 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7159 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7160 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7161 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7162 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7164 * config/rs6000/rs6000.c (real.h): New include.
7165 (rs6000_scale_v2df): New function.
7166 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7167 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7168 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7169 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7170 (vsx_xvcvsxddp_scale): New define_expand.
7171 (vsx_xvcvsxddp): New define_insn.
7172 (vsx_xvcvuxddp_scale): New define_expand.
7173 (vsx_xvcvuxddp): New define_insn.
7174 (vsx_xvcvdpsxds_scale): New define_expand.
7175 (vsx_xvcvdpsxds): New define_insn.
7176 (vsx_xvcvdpuxds_scale): New define_expand.
7177 (vsx_xvcvdpuxds): New define_insn.
7178 * doc/extend.texi (vec_ctf): Add new prototypes.
7179 (vec_cts): Likewise.
7180 (vec_ctu): Likewise.
7181 (vec_splat): Likewise.
7182 (vec_div): Likewise.
7183 (vec_mul): Likewise.
7185 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7188 * config/arm/neon.md
7189 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7190 <v_cmp_result>): New pattern.
7191 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7192 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7193 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7194 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7195 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7196 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7198 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7201 * config/arm/iterators.md (FIXUORS): New code iterator.
7202 (VCVT): New int iterator.
7203 (su_optab): New code attribute.
7205 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7207 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7209 * config/aarch64/predicates.md (aarch64_comparison_operation):
7210 New special predicate.
7211 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7212 aarch64_comparison_operation instead of matching an operator.
7213 Update operand numbers.
7214 (csinc3<mode>_insn): Likewise.
7215 (*csinv3<mode>_insn): Likewise.
7216 (*csneg3<mode>_insn): Likewise.
7217 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7218 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7219 Return -1 instead of aborting on invalid condition codes.
7220 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7221 to assert that the returned condition code is valid.
7222 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7224 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7226 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7227 tree.def, and gimple.def
7229 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7230 Balaji V. Iyer <balaji.v.iyer@intel.com>
7231 Igor Zamyatin <igor.zamyatin@intel.com>
7233 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7234 (__cilkrts_cilk_for_64): Likewise.
7235 * cilk-common.c (declare_cilk_for_builtin): New function.
7236 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7237 __cilkrts_cilk_for_64 bultins.
7238 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7240 (cilk_for_32_fndecl): New define.
7241 (cilk_for_64_fndecl): Likewise.
7242 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7243 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7244 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7245 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7246 GF_OMP_FOR_COMBINED_INTO.
7247 * gimplify.c (gimplify_scan_omp_clauses): Added
7248 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7249 (gimplify_adjust_omp_clauses): Ditto.
7250 (gimplify_omp_for): Added CILK_FOR case.
7251 (gimplify_expr): Ditto.
7252 * omp-low.c: Include cilk.h.
7253 (extract_omp_for_data): Set appropriate kind for
7254 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7255 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7256 (create_omp_child_function_name): Added second argument to handle
7258 (cilk_for_check_loop_diff_type): New function.
7259 (expand_cilk_for_call): Likewise.
7260 (expand_cilk_for): Likewise.
7261 (create_omp_child_function): Set cilk_for_count; handle the cases when
7262 it is true; call create_omp_child_function_name with second argument.
7263 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7264 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7265 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7266 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7267 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7268 (convert_local_omp_clauses): Ditto.
7269 * tree-pretty-print.c (dump_omp_clause): Added
7270 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7271 (dump_generic_node): Added CILK_FOR case.
7272 * tree.c (omp_clause_num_ops): New element
7273 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7274 (omp_clause_code_name): New element _Cilk_for_count_.
7275 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7276 * tree.def: Add tree code for CILK_FOR.
7278 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7280 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7281 (ppc403-compare): Add "exts with dot" case.
7282 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7283 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7284 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7285 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7286 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7287 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7288 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7289 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7290 cell-cmp-microcoded): Similarly.
7291 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7292 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7293 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7294 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7295 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7296 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7297 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7298 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7299 (power6-compare): Add "exts with dot" case.
7300 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7301 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7302 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7304 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7305 if avoiding Cell microcode.
7306 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7307 (is_cracked_insn): Ditto.
7308 (insn_must_be_first_in_group): Ditto.
7309 * config/rs6000/rs6000.md (dot): Adjust comment.
7310 (cell_micro): Handle exts+dot.
7311 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7312 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7313 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7314 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7315 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7316 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7317 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7319 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7321 * config/rs6000/rs6000.md (QHSI): Delete.
7322 (EXTQI, EXTHI, EXTSI): New mode iterators.
7323 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7324 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7325 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7326 9 anonymous instructions, and 8 splitters): Delete.
7327 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7328 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7329 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7330 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7331 *zero_extendsi<mode>2_dot2): New.
7333 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7335 * config/rs6000/rs6000.md (any_extend): New code iterator.
7336 (u, su): New code attributes.
7337 (dmode, DMODE): New mode attributes.
7338 (<su>mul<mode>3_highpart): New.
7339 (*<su>mul<mode>3_highpart): New.
7340 (<su>mulsi3_highpart_le): New.
7341 (<su>muldi3_highpart_le): New.
7342 (<su>mulsi3_highpart_64): New.
7343 (<u>mul<mode><dmode>3): New.
7344 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7346 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7349 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7351 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7352 *mulsi3_internal2, and two splitters): Delete.
7353 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7355 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7357 2014-09-02 Richard Biener <rguenther@suse.de>
7359 PR tree-optimization/62695
7360 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7363 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7366 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7368 2014-09-01 Andi Kleen <ak@linux.intel.com>
7370 * file-find.c (add_prefix_begin): Add.
7371 (do_add_prefix): Rename from add_prefix with first argument.
7372 (add_prefix): Add new wrapper.
7373 * file-find.h (add_prefix_begin): Add.
7374 * gcc-ar.c (main): Support -B option.
7376 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7378 * genemit.c: Include dumpfile.h.
7379 (gen_split): Print name of splitter function to dump file.
7381 2014-09-01 Richard Biener <rguenther@suse.de>
7383 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7384 Use stack auto_vecs for constraint expressions.
7385 (find_func_aliases_for_call): Likewise.
7386 (find_func_aliases): Likewise.
7387 (find_func_clobbers): Likewise.
7389 2014-09-01 Richard Biener <rguenther@suse.de>
7391 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7392 operands vector in most cases. Remove redundant code.
7394 2014-09-01 Olivier Hainque <hainque@adacore.com>
7396 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7397 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7398 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7400 2014-09-01 Richard Biener <rguenther@suse.de>
7402 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7403 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7404 vn_reference_compute_hash, vn_reference_insert): Remove.
7405 (vn_reference_lookup_call): New function.
7406 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7407 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7408 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7409 (create_reference_ops_from_call): Remove.
7410 (vn_reference_lookup_3): Properly update shared_lookup_references.
7411 (vn_reference_lookup_pieces): Assert that we updated
7412 shared_lookup_references properly.
7413 (vn_reference_lookup): Likewise.
7414 (vn_reference_lookup_call): New function.
7415 (visit_reference_op_call): Use it. Avoid re-building the
7417 (visit_reference_op_load): Remove redundant lookup.
7418 (visit_reference_op_store): Perform special tail-merging work
7419 only when possibly doing tail-merging.
7420 (visit_use): Likewise.
7421 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7423 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7426 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7427 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7428 (find_inc): Revert 2014-08-13 change.
7430 2014-09-01 Marek Polacek <polacek@redhat.com>
7433 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7434 Change the type of V to unsigned HOST_WIDE_INT.
7436 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7438 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7439 the size of byte markers.
7440 (do_shift_rotate): Fix confusion between host, target and marker byte
7442 (verify_symbolic_number_p): Likewise.
7443 (find_bswap_or_nop_1): Likewise.
7444 (find_bswap_or_nop): Likewise.
7446 2014-09-01 Olivier Hainque <hainque@adacore.com>
7448 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7449 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7451 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7453 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7454 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7455 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7457 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7461 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7462 (build_check_stmt): Likewise.
7463 (instrument_strlen_call): Likewise.
7464 (asan_expand_check_ifn): Likewise and fix types.
7465 (maybe_cast_to_ptrmode): New function.
7467 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7469 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7471 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7473 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7475 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7477 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7478 prefix to function labels when generating fast indirect calls.
7480 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7484 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7485 param back from rtx_insn * to rtx. Rename param from "label" to
7486 "label_or_return", reintroducing "label" as an rtx_insn * after
7487 we've ensured it's not a RETURN.
7488 (first_active_target_insn): Likewise for return type and param;
7489 add a checked cast to rtx_insn * once we've ensured "insn" is not
7491 (steal_delay_list_from_target): Convert param "pnew_thread" back
7492 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7494 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7495 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7496 cast once we've established we're not dealing with a RETURN,
7497 renaming subsequent uses of "thread" to "thread_insn".
7498 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7500 (follow_jumps): Convert return type and param "label" from
7501 rtx_insn * back to rtx. Move initialization of "value" to after
7502 the handling for ANY_RETURN_P, adding a checked cast there to
7503 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7504 rename to "this_label_or_return", reintroducing "this_label" as
7505 an rtx_insn * once we've handled the case where it could be an
7507 (fill_slots_from_thread): Rename param "thread" to
7508 "thread_or_return", converting from an rtx_insn * back to an rtx.
7509 Reintroduce name "thread" as an rtx_insn * local with a checked
7510 cast once we've handled the case of it being an ANY_RETURN_P.
7511 Convert local "new_thread" from an rtx_insn * back to an rtx.
7512 Add a checked cast when assigning to "trial" from "new_thread".
7513 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7514 checked cast to rtx_insn * from "new_thread" when invoking
7516 (fill_eager_delay_slots): Convert locals "target_label",
7517 "insn_at_target" from rtx_insn * back to rtx.
7518 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7519 (relax_delay_slots): Convert locals "trial", "target_label" from
7520 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7521 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7522 invoking update_block.
7523 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7524 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7526 * resource.h (mark_target_live_regs): Undo erroneous conversion
7527 of second param of r214693, converting it back from rtx_insn * to
7528 rtx, since it could be a RETURN.
7530 * resource.c (find_dead_or_set_registers): Similarly, convert
7531 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7532 could be writing back a RETURN. Rename local rtx_insn * "next" to
7533 "next_insn", and introduce "lab_or_return" as a local rtx,
7534 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7535 (mark_target_live_regs): Undo erroneous conversion
7536 of second param of r214693, converting it back from rtx_insn * to
7537 rtx, since it could be a RETURN. Rename it from "target" to
7538 "target_maybe_return", reintroducing the name "target" as a local
7539 rtx_insn * with a checked cast, after we've handled the case of
7542 2014-08-29 DJ Delorie <dj@redhat.com>
7544 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7545 pointer size up to a power of two.
7546 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7547 (POINTER_SIZE_UNITS): New, rounded up value.
7548 * dwarf2asm.c (size_of_encoded_value): Use it.
7549 (dw2_output_indirect_constant_1): Likewise.
7550 * expmed.c (init_expmed_one_conv): We now know the sizes of
7552 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7553 * optabs.c (expand_float): Use precision, not size.
7554 (expand_fix): Likewise.
7555 * simplify-rtx (simplify_unary_operation_1): Likewise.
7556 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7557 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7558 (default_assemble_integer) Likewise.
7559 (dump_tm_clone_pairs): Likewise.
7560 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7561 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7562 (prepare_call_arguments): Likewise.
7563 * stor-layout.c (finalize_type_size): Preserve precision.
7564 (layout_type): Use precision, not size.
7566 * expr.c (convert_move): If the target has an explicit converter,
7569 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7571 * gdbinit.in: Skip various inline functions in rtl.h when
7574 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7577 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7579 2014-08-29 Richard Biener <rguenther@suse.de>
7581 PR tree-optimization/62291
7582 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7583 exactly the vector size needed and use quick_push.
7584 (phi_translate_1): Adjust comment.
7585 (valid_in_sets): Remove block argument and remove pointless
7587 (dependent_clean): Adjust for removal of block argument.
7589 (compute_antic_aux): Likewise.
7590 (compute_partial_antic_aux): Likewise.
7592 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7593 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7594 Anna Tikhonova <anna.tikhonova@intel.com>
7595 Ilya Tocar <ilya.tocar@intel.com>
7596 Andrey Turetskiy <andrey.turetskiy@intel.com>
7597 Ilya Verbin <ilya.verbin@intel.com>
7598 Kirill Yukhin <kirill.yukhin@intel.com>
7599 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7601 * config/i386/sse.md
7602 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7603 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7604 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7605 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7607 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7609 Anna Tikhonova <anna.tikhonova@intel.com>
7610 Ilya Tocar <ilya.tocar@intel.com>
7611 Andrey Turetskiy <andrey.turetskiy@intel.com>
7612 Ilya Verbin <ilya.verbin@intel.com>
7613 Kirill Yukhin <kirill.yukhin@intel.com>
7614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7616 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7617 * config/i386/sse.md
7618 (define_mode_iterator VI4_128_8_256): New.
7619 (define_mode_iterator VI2_128_4_256): Ditto.
7620 (define_mode_iterator PMOV_DST_MODE): Rename into
7621 (define_mode_iterator PMOV_DST_MODE_1): this.
7622 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7623 Use PMOV_DST_MODE_1 mode iterator.
7624 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7626 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7628 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7629 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7630 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7631 (define_mode_iterator PMOV_DST_MODE_2): New.
7632 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7633 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7634 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7636 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7637 (define_mode_attr pmov_dst_3): Ditto.
7638 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7639 (define_mode_attr pmov_suff_3): Ditto.
7640 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7641 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7642 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7643 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7644 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7645 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7646 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7647 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7648 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7649 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7650 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7651 (define_mode_attr pmov_dst_4): Ditto.
7652 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7653 (define_mode_attr pmov_suff_4): Ditto.
7654 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7655 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7656 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7657 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7658 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7659 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7660 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7661 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7662 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7663 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7664 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7666 2014-08-29 Richard Biener <rguenther@suse.de>
7668 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7669 NON_LVALUE_EXPR in gimple.
7671 2014-08-29 Richard Biener <rguenther@suse.de>
7674 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7675 from previous refactoring.
7676 (gimple_fold_builtin_strncpy): Likewise.
7678 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7681 * function.c (assign_parm_setup_reg): Remove erroneous checked
7682 cast to rtx_insn * on result of gen_extend_insn in favor of
7683 introducing a new local rtx "pat".
7685 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7687 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7689 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7691 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7693 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7694 (next_insn): Likewise.
7695 * emit-rtl.c (next_insn): Likewise.
7696 (previous_insn): Likewise.
7697 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7698 "insn" and "next" from rtx to rtx_insn *.
7699 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7700 "insn", "insn1", "vliw_start", "prologue_end_note",
7701 "last_insn_in_packet".
7703 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7705 * shrink-wrap.h (active_insn_between): Strengthen both params from
7707 * function.c (active_insn_between): Likewise.
7709 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7711 * genattr.c (main): When writing out insn-attr.h, strengthen param
7712 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7713 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7714 writing out the definition of dfa_clear_single_insn_cache to the
7715 generated insn-automata.c
7717 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7719 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7721 (incr_ticks_for_insn): Likewise.
7722 (init_resource_info): Likewise.
7724 * resource.c (init_resource_info): Likewise.
7725 (clear_hashed_info_for_insn): Likewise.
7726 (incr_ticks_for_insn): Likewise.
7728 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7730 (steal_delay_list_from_target): Use methods of "seq".
7731 (try_merge_delay_insns): Use methods of "merged_insns".
7732 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7733 (reorg_redirect_jump): Likewise for param "jump".
7735 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7737 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7739 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7740 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7742 (s390_mainpool_finish): In three places, split out a local rtx
7743 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7744 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7745 and split another local rtx "insn" out into rtx "pat" and
7747 * config/sh/sh.c (output_branchy_insn): Rather than working
7748 directly on operands[9], introduce local rtx_code_label *
7749 variables named "lab" in two places, working on them, and then
7750 assigning them to operands[9], so that the intervening operations
7751 are known by the type system to be on insns.
7753 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7755 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7758 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7759 in invocation of INSN_HAS_LOCATION.
7761 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7763 * config/rs6000/altivec.h (vec_xl): New #define.
7764 (vec_xst): Likewise.
7765 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7766 (XXSPLTD_V2DI): Likewise.
7767 (DIV_V2DI): Likewise.
7768 (UDIV_V2DI): Likewise.
7769 (MUL_V2DI): Likewise.
7770 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7771 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7772 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7773 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7774 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7775 (UNSPEC_VSX_DIVSD): Likewise.
7776 (UNSPEC_VSX_DIVUD): Likewise.
7777 (UNSPEC_VSX_MULSD): Likewise.
7778 (vsx_mul_v2di): New insn-and-split.
7779 (vsx_div_v2di): Likewise.
7780 (vsx_udiv_v2di): Likewise.
7781 (vsx_xxspltd_<mode>): New insn.
7783 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7785 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7787 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7788 (NEXT_INSN): Likewise.
7789 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7790 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7792 (no_labels_between_p): Likewise for both params.
7794 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7795 cast when using NEXT_INSN on operands[2].
7796 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7797 "insn" from rtx to rtx_insn *, adding a checked cast.
7798 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7800 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7802 (arc_text_label): Likewise for param "insn".
7803 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7805 (arc_ccfsm_record_condition): Likewise for param "jump".
7806 (arc_text_label): Likewise for local "label".
7807 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7808 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7809 a method for typesafety. Add a checked cast.
7810 * config/arc/constraints.md (Clb): Add a checked cast when getting
7811 the CODE_LABEL from a LABEL_REF.
7812 * config/arm/arm.c (require_pic_register): Strengthen locals
7813 "seq", "insn" from rtx to rtx_insn *.
7814 (create_fix_barrier): Likewise for locals "selected", "next".
7815 (thumb1_reorg): Likewise for locals "prev", "insn".
7816 (arm_expand_prologue): Likewise for local "last".
7817 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7819 (thumb2_output_casesi): Likewise for operands[2].
7820 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7821 strengthen local "insn" from rtx to rtx_insn *.
7822 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7823 type and param "insn".
7824 (find_prev_insn_start): Likewise.
7825 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7827 (gen_one_bundle): Likewise for loal "t".
7828 (find_load): Likewise for param "insn".
7829 (workaround_speculation): Likewise for locals "insn", "next",
7830 "target", "next_tgt".
7831 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7832 and for locals "insn", "within", "last".
7833 (count_unit_reqs): Likewise for params "head", "tail" and local
7835 (try_rename_operands): Likewise for params "head", "tail".
7836 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7837 (struct c6x_sched_context): Likewise for fields
7838 "last_scheduled_insn", "last_scheduled_iter0".
7839 (init_sched_state): Replace NULL_RTX with NULL.
7840 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7842 (undo_split_delayed_nonbranch): Likewise for param and for local
7844 (conditionalize_after_sched): Likewise for local "insn".
7845 (bb_earliest_end_cycle): Likewise.
7846 (filter_insns_above): Likewise for locals "insn", "next".
7847 (hwloop_optimize): Remove redundant checked cast.
7848 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7849 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7851 (cris_simple_epilogue): Likewise.
7852 (cris_expand_prologue): Likewise.
7853 (cris_expand_epilogue): Likewise.
7854 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7855 local "insn" from rtx to rtx_insn *.
7856 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7857 (struct frv_packet_group): Likewise for the elements within array
7858 fields "insns", "sorted", and for field "nop".
7859 (frv_packet): Likewise for the elements within array field
7861 (frv_add_insn_to_packet): Likewise for param "insn".
7862 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7864 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7865 (frv_sort_insn_group_1): Likewise for local "insn".
7866 (frv_optimize_membar_local): Likewise.
7867 (frv_align_label): Likewise for locals "x", "last", "barrier",
7869 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7871 (ia64_sched_init): Likewise for local "insn".
7872 (scheduled_good_insn): Likewise for param "last".
7873 (struct _ia64_sched_context): Likewise for field
7874 "last_scheduled_insn".
7875 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7876 (struct bundle_state): Likewise for field "insn".
7877 (issue_nops_and_insn): Likewise for param "insn".
7878 (get_next_important_insn): Likewise for return type and both
7880 (ia64_add_bundle_selector_before): Likewise for param "insn".
7881 (bundling): Likewise for params "prev_head_insn", "tail" and
7882 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7883 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7884 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7885 Strengthen final param from rtx to rtx_insn *.
7886 (iq2000_move_1word): Likewise for second param.
7887 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7888 param "cur_insn" and local "next_insn".
7889 (iq2000_move_1word): Likewise for param "insn".
7890 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7891 casts when using NEXT_INSN on operands[1].
7892 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7893 "insn" from rtx to rtx_insn *.
7894 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7895 "x", introducing local rtx_insn * "insn" for when working with the
7896 CODE_LABEL of the LABEL_REF.
7897 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7899 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7901 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7903 (conditionalize_block): Likewise for return type and param.
7904 (mcore_is_dead): Likewise for param "first" and local "insn".
7905 (emit_new_cond_insn): Likewise for return type.
7906 (conditionalize_block): Likewise for return type, param, and
7907 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7909 (conditionalize_optimization): Likewise for local "insn".
7910 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7912 * config/microblaze/microblaze.md: Add checked casts when using
7914 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7915 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7916 and rtx_insn * "insn".
7917 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7918 checked cast when using NEXT_INSN on operands[2].
7919 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7920 local "insn" from rtx to rtx_insn *.
7921 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7923 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7924 Add a checked cast when using NEXT_INSN on operands[1].
7925 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7927 (pa_output_cbranch): Likewise for final param.
7928 (pa_output_lbranch): Likewise for second param.
7929 (pa_output_bb): Likewise for third param.
7930 (pa_output_bvb): Likewise.
7931 (pa_output_dbra): Likewise for second param.
7932 (pa_output_movb): Likewise.
7933 (pa_output_parallel_movb): Likewise.
7934 (pa_output_parallel_addb): Likewise.
7935 (pa_output_millicode_call): Likewise for first param.
7936 (pa_output_mul_insn): Likewise for second param.
7937 (pa_output_div_insn): Likewise for third param.
7938 (pa_output_mod_insn): Likewise for second param.
7939 (pa_jump_in_call_delay): Likewise for param.
7940 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7941 (pa_output_div_insn): Likewise.
7942 (pa_output_mod_insn): Likewise.
7943 (pa_output_cbranch): Likewise.
7944 (pa_output_lbranch): Likewise.
7945 (pa_output_bb): Likewise.
7946 (pa_output_bvb): Likewise.
7947 (pa_output_dbra): Likewise.
7948 (pa_output_movb): Likewise.
7949 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7950 to simplify and for typesafety.
7951 (pa_output_call): Use method of rtx_sequence *.
7952 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7953 (pa_jump_in_call_delay): Likewise.
7954 (pa_output_parallel_movb): Likewise.
7955 (pa_output_parallel_addb): Likewise.
7956 (pa_following_call): Likewise.
7957 (pa_combine_instructions): Likewise for locals "anchor",
7959 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7960 locals "start", "end".
7961 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7962 param "insn" and local "local_insn".
7963 (picochip_final_prescan_insn): Likewise for local "local_insn".
7964 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7966 (uses_TOC): Likewise.
7967 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7968 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7969 splitting out to more tightly-scoped locals, 3 as rtx and one as
7971 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7973 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7975 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7977 (fixup_addr_diff_vecs): Likewise.
7978 (reg_unused_after): Likewise for param 2.
7979 (sh_can_redirect_branch): Likewise for both params.
7980 (check_use_sfunc_addr): Likewise for param 1.
7981 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7982 (find_barrier): Likewise for local "last_got".
7983 (gen_block_redirect): Likewise for return type, param "jump" and
7984 locals "prev", "scan", "next", "insn".
7985 (struct far_branch): Likewise for fields "near_label",
7986 "insert_place", "far_label".
7987 (gen_far_branch): Likewise for local "jump".
7988 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7990 (barrier_align): Likewise for param and for locals "prev", "x".
7991 Introduce local rtx_sequence * "prev_seq" and use insn method for
7992 typesafety and clarity.
7993 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7994 (get_dest_uid): Likewise for local "dest".
7995 (split_branches): Likewise for locals "next", "beyond", "label",
7996 "block", "far_label". Add checked casts when assigning to
7997 bp->far_label and "far_label".
7998 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7999 (sequence_insn_p): Likewise.
8000 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8001 more loop-scoped rtx "insn" when walking LABEL_REFS.
8002 (sh_can_redirect_branch): Strengthen both params from rtx to
8004 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8005 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8006 for clarity and typesafety.
8007 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8008 "insn" from rtx to rtx_insn *.
8009 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8010 when using NEXT_INSN on the CODE_LABEL in operands[2].
8011 (define_insn "casesi_worker_2"): Likewise.
8012 (define_insn "casesi_shift_media"): Likewise.
8013 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8015 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8016 Strengthen field "insn" from rtx to rtx_insn *.
8017 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8018 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8019 param "start_insn" and local "start_insn".
8020 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8022 (find_set_of_reg_bb): Likewise for param "insn".
8023 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8024 (trace_reg_uses): Likewise for param "start_insn".
8025 (sh_treg_combine::cbranch_trace): Likewise for field
8027 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8029 (sh_treg_combine::record_set_of_reg): Likewise for param
8030 "start_insn" and local "i".
8031 (sh_treg_combine::can_remove_cstore): Likewise for local
8033 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8035 (sh_treg_combine::execute): Likewise for local "i".
8036 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8038 (sparc_check_64): Likewise for second param.
8039 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8040 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8041 dyn_cast, using its insn method for typesafety and clarity.
8042 (empty_delay_slot): Strengthen param "insn" from rtx to
8044 (set_extends): Likewise.
8045 (sparc_check_64): Likewise.
8046 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8047 for locals "seq", "last_insn".
8048 (combine_bnp): Likewise for param "insn".
8049 (xstormy16_reorg): Likewise for local "insn".
8050 * config/v850/v850.c (substitute_ep_register): Likewise for params
8051 "first_insn", "last_insn" and local "insn".
8052 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8053 elements of "regs" array, and local "insn".
8054 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8055 * final.c (final_sequence): Strengthen this global from rtx to
8057 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8059 (final_scan_insn): Update assignment to "final_sequence" to be
8060 from "seq", the cast version of "body", for type-safety.
8061 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8062 "insns" from rtx to rtx_insn *.
8063 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8064 * genattr.c (main): When writing out generated insn-attr.h,
8065 strengthen params 1 and 3 of eligible_for_delay,
8066 eligible_for_annul_true, eligible_for_annul_false from rtx to
8068 * genattrtab.c (write_eligible_delay): Likewise when writing out
8069 generated insn-attrtab.c; also local "insn" the generated
8071 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8073 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8074 "start_label" from rtx to rtx_insn *.
8075 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8076 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8077 "insns" and local "insn".
8078 (validate_equiv_mem): Likewise for param "start" and local "insn".
8079 (memref_used_between_p): Likewise for params "start", "end" and
8081 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8083 * loop-doloop.c (doloop_optimize): Within region guarded by
8084 INSN_P (doloop_pat), introduce a new local rtx_insn *
8085 "doloop_insn" via a checked cast, and use it for typesafety,
8086 eventually writing the value back into doloop_pat.
8087 * output.h (final_sequence): Strengthen this global from rtx to
8089 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8090 reintroducing "insn" as an rtx_insn * via a checked cast.
8091 Strengthen param "attempt" and local "new_insn"from rtx to
8093 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8095 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8096 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8097 "p" in favor of more tightly-scoped replacements, sometimes rtx
8098 and sometimes rtx_insn *, as appropriate.
8099 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8100 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8101 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8102 local "trial" from rtx to rtx_insn *.
8103 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8104 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8105 rtx_sequence * and use methods for clarity and typesafety.
8106 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8107 rtx to rtx_insn *. Strenghten local "li" from rtx to
8108 rtx_insn_list * and use its methods for clarity and typesafety.
8109 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8111 (steal_delay_list_from_fallthrough): Likewise.
8112 (try_merge_delay_insns): Likewise for param "thread" and locals
8113 "trial", "next_trial", "delay_insn".
8114 (redundant_insn): Likewise for param "target" and local "trial".
8115 (own_thread_p): Likewise for param "thread" and locals
8116 "active_insn", "insn".
8117 (get_label_before): Likewise for param "insn".
8118 (fill_simple_delay_slots): Likewise for local "new_label"; use
8119 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8120 (label_before_next_insn): Strengthen return type and local "insn"
8121 from rtx to rtx_insn *.
8122 (relax_delay_slots): Likewise for locals "other", "tmp".
8123 (make_return_insns): Likewise for param "first" and locals "insn",
8124 "jump_insn", "prev". Move declaration of "pat" to its assignment
8125 and strengthen from rtx to rtx_sequence *. Use its methods for
8126 clarity and typesafety.
8127 * rtlanal.c (no_labels_between_p): Strengthen params from
8128 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8130 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8131 from const_rtx to const rtx_insn *.
8132 (reg_set_between_p): Rename param "from_insn" to
8133 "uncast_from_insn", and reintroduce "from_insn" as a
8134 const rtx_insn * via a checked cast.
8135 (modified_between_p): Likewise for param "start" as "uncast_start".
8136 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8137 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8138 "tmp", head" from rtx to rtx_insn *.
8139 (recompute_rev_top_order): Likewise for local "insn".
8140 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8141 * store-motion.c (build_store_vectors): Likewise for local "insn".
8142 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8143 for clarity and typesafety.
8144 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8146 (computation_cost): Likewise for local "seq".
8147 (get_address_cost): Likewise.
8149 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8151 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8153 (label_is_jump_target_p): Likewise for second param.
8155 * rtlanal.c (tablejump_p): Likewise for param "insn".
8156 (label_is_jump_target_p): Likewise for param "jump_insn".
8158 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8160 * rtl.h (find_first_parameter_load): Strengthen return type and
8161 both params from rtx to rtx_insn *.
8162 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8163 both params and locals "before", "first_set" from rtx to
8164 rtx_insn *. Remove now-redundant cast.
8165 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8167 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8169 * rtl.h (find_last_value): Delete.
8170 * rtlanal.c (find_last_value): Delete.
8172 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8174 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8175 from rtx to rtx_insn *.
8176 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8177 rtx "note" with new local rtx_insn * "new_head" when calculating
8178 head insn of new basic block.
8179 * combine.c (combine_split_insns): Strengthen return type and local
8180 "ret" from rtx to rtx_insn *.
8181 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8182 (try_combine): Eliminate local "m_split", splitting into new
8183 locals "m_split_insn" and "m_split_pat".
8184 (find_split_point): Strengthen local "seq" from rtx into
8186 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8187 locals "label", "branch".
8188 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8190 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8191 * dse.c (note_add_store_info): Likewise for fields "first",
8193 (note_add_store): Likewise for local "insn".
8194 (emit_inc_dec_insn_before): Likewise for locals "insn",
8196 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8197 (replace_read): Likewise for locals "insns", "this_insn".
8198 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8199 (notice_eh_throw): Likewise for param "insn".
8200 (before_next_cfi_note): Likewise for return type, param, and local
8202 (connect_traces): Likewise for local "note".
8203 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8204 (verify_rtl_sharing): Likewise.
8205 (unshare_all_rtl_in_chain): Likewise for param "insn".
8206 (get_first_nonnote_insn): Likewise for local "insn".
8207 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8208 "seq" and use its methods to clarify things.
8209 (next_insn): Strengthen return type from rtx to rtx_insn *.
8210 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8211 local rtx_insn * using a checked cast, dropping a checked cast
8212 made redundant by this change. Use a cast to and method of
8213 rtx_sequence to clarify the code.
8214 (previous_insn): Rename param "insn" to "uncast_insn" and
8215 reintroduce "insn" as a local rtx_insn * using a checked cast,
8216 dropping a checked cast made redundant by this change. Use a cast
8217 to and method of rtx_sequence to clarify the code.
8218 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8219 reintroduce "insn" as a local rtx_insn * using a checked cast,
8220 dropping a checked cast made redundant by this change.
8221 (next_nonnote_insn_bb): Likewise.
8222 (prev_nonnote_insn): Likewise.
8223 (prev_nonnote_insn_bb): Likewise.
8224 (next_nondebug_insn): Likewise.
8225 (prev_nondebug_insn): Likewise.
8226 (next_nonnote_nondebug_insn): Likewise.
8227 (prev_nonnote_nondebug_insn): Likewise.
8228 (next_real_insn): Likewise.
8229 (prev_real_insn): Likewise.
8230 (next_active_insn): Likewise.
8231 (prev_active_insn): Likewise.
8232 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8234 (prev_cc0_setter): Likewise.
8235 (try_split): Rename param "trial" to "uncast_trial" and
8236 reintroduce "insn" as a local rtx_insn * using a checked cast,
8237 dropping checked casts made redundant by this change.
8238 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8240 (remove_insn): Rename param "insn" to "uncast_insn" and
8241 reintroduce "insn" as a local rtx_insn * using a checked cast.
8242 (emit_pattern_after_setloc): Likewise for param "after", as
8244 (emit_pattern_after): Likewise. Strengthen local "prev" from
8246 (emit_pattern_before_setloc): Rename param "before" to
8247 "uncast_before" and reintroduce "before" as a local rtx_insn *
8248 using a checked cast. Strengthen locals "first", "last" from
8250 (emit_pattern_before): Likewise rename/cast param "before" to
8251 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8252 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8253 "first" and local "insn" from rtx to rtx_insn *.
8254 (copy_reg_eh_region_note_backward): Likewise for param "last"
8256 * expr.c (fixup_args_size_notes): Rename param "last" to
8257 "uncast_last" and reintroduce "last" as a local rtx_insn *
8258 using a checked cast. Strengthen local "insn" from rtx to
8260 * function.c (set_insn_locations): Strengthen param "insn" from
8262 (record_insns): Likewise for param "insns" and local "tmp".
8263 (active_insn_between): Rename param "tail" to
8264 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8265 using a checked cast.
8266 (thread_prologue_and_epilogue_insns): Split out top-level local
8267 rtx "seq" into three different rtx_insn * locals. Strengthen
8268 local "prologue_seq" from rtx to rtx_insn *.
8269 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8270 from rtx to rtx_insn *.
8271 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8272 (priority): Likewise for locals "prev_first", "twin".
8273 (setup_insn_max_reg_pressure): Likewise for param "after".
8274 (sched_setup_bb_reg_pressure_info): Likewise.
8275 (no_real_insns_p): Strengthen params from const_rtx to
8277 (schedule_block): Strengthen local "next_tail" from rtx to
8279 * ifcvt.c (find_active_insn_before): Strengthen return type and
8280 param "insn" from rtx to rtx_insn *.
8281 (find_active_insn_after): Likewise.
8282 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8283 (cond_exec_process_if_block): Likewise for locals "then_start",
8284 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8285 (noce_process_if_block): Likewise for local "jump".
8286 (merge_if_block): Likewise for two locals named "end".
8287 (cond_exec_find_if_block): Likewise for local "last_insn".
8288 * jump.c (delete_related_insns): Rename param "insn" to
8289 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8290 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8291 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8293 (split_reg): Likewise.
8294 * lra.c (lra_process_new_insns): Likewise.
8295 * modulo-sched.c (permute_partial_schedule): Strengthen param
8296 "last" from rtx to rtx_insn *.
8297 * optabs.c (add_equal_note): Likewise for param "insns" and local
8299 (expand_binop_directly): Add checked casts to rtx_insn * within
8300 NEXT_INSN (pat) uses.
8301 (expand_unop_direct): Likewise.
8302 (maybe_emit_unop_insn): Likewise.
8303 * recog.c (peep2_attempt): Strengthen locals "last",
8304 "before_try", "x" from rtx to rtx_insn *.
8305 * reorg.c (optimize_skip): Strengthen return type and local
8306 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8307 and locals "trial", "next_trial" from rtx to rtx_insn *.
8308 * resource.c (next_insn_no_annul): Strengthen return type and
8309 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8310 rtx_sequence to clarify the code.
8311 (mark_referenced_resources): Add a checked cast to rtx_insn *
8312 within PREV_INSN (x).
8313 (find_dead_or_set_registers): Strengthen return type, param
8314 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8315 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8317 (mark_target_live_regs): Strengthen params "insns" and "target",
8318 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8319 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8321 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8322 from rtx to rtx_insn *.
8323 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8324 from rtx to rtx_insn *.
8325 (copy_reg_eh_region_note_backward): Likewise.
8326 (unshare_all_rtl_in_chain): Likewise for sole param.
8327 (dump_rtl_slim): Strengthen second and third params from const_rtx
8328 to const rtx_insn *.
8329 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8330 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8331 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8332 "next_tail" from rtx to rtx_insn *.
8333 (begin_move_insn): Likewise for local "next".
8334 * sched-int.h (sched_free_deps): Likewise for first and second
8336 (no_real_insns_p): Strengthen both params from const_rtx to
8338 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8340 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8342 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8343 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8344 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8346 (debug_rtl_slim): Strengthen params "first" and "last" from
8347 const_rtx to const rtx_insn *.
8348 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8349 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8350 (convert_to_simple_return): Likewise for param "returnjump".
8351 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8353 (convert_to_simple_return): Likewise for param "returnjump".
8354 * valtrack.c (propagate_for_debug): Likewise for params
8356 * valtrack.h (propagate_for_debug): Likewise for second param.
8358 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8360 * output.h (insn_current_reference_address): Strengthen param
8361 from rtx to rtx_insn *.
8362 * final.c (insn_current_reference_address): Likewise.
8364 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8366 * basic-block.h (inside_basic_block_p): Strengthen param from
8367 const_rtx to const rtx_insn *.
8368 * cfgbuild.c (inside_basic_block_p): Likewise.
8370 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8372 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8374 (get_trace_info): Likewise for param "insn".
8375 (save_point_p): Likewise.
8376 (maybe_record_trace_start): Likewise for both params.
8377 (maybe_record_trace_start_abnormal): Likewise.
8378 (create_trace_edges): Likewise for sole param and for three of the
8380 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8381 to rtx_insn *, and update a call to pat->element to pat->insn.
8383 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8385 * function.h (struct expr_status): Convert field "x_forced_labels"
8386 from rtx_expr_list * to rtx_insn_list *.
8388 * cfgbuild.c (make_edges): Convert local "x" from an
8389 rtx_expr_list * to an rtx_insn_list *, replacing use of
8390 "element" method with "insn" method.
8391 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8392 * except.c (sjlj_emit_dispatch_table): Replace use of
8393 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8395 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8396 rtx_expr_list * to an rtx_insn_list *, replacing use of
8397 "element" method with "insn" method.
8398 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8399 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8400 rtx_insn *, adding a checked cast. Replace use of
8401 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8403 (expand_label): Likewise for local "label_r".
8405 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8407 * function.h (struct rtl_data): Convert field
8408 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8410 * rtl.h (remove_node_from_insn_list): New prototype.
8412 * builtins.c (expand_builtin): When prepending to
8413 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8415 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8416 to rtx_insn_list *, and use its "insn" method rather than
8418 * cfgrtl.c (delete_insn): Use new function
8419 remove_node_from_insn_list rather than
8420 remove_node_from_expr_list.
8421 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8422 to rtx_insn_list *, and use its "insn" method rather than
8424 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8425 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8426 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8427 from remove_node_from_expr_list.
8428 * stmt.c (expand_label): When prepending to
8429 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8432 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8434 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8435 and "x_naked_return_label" from rtx to rtx_code_label *.
8437 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8439 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8440 (SET_NEXT_INSN): Likewise.
8441 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8443 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8444 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8445 to split out the SEQUENCE from local "bundle", strengthening the
8446 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8447 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8448 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8449 and the type of the elements of the "slot" array from rtx to
8451 (reorg_split_calls): Likewise for locals "insn" and "next", and
8452 the type of the elements of the "slot" array.
8454 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8456 (frv_function_prologue): Likewise for locals "insn", "next",
8458 (frv_register_nop): Introduce a local "nop_insn" to be the
8459 rtx_insn * containing rtx "nop".
8461 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8462 used as an insn and sometimes as a pattern, so rename it to
8463 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8464 using it where dealing with the core insn.
8466 * config/picochip/picochip.c (reorder_var_tracking_notes):
8467 Strengthen locals "insn", "next", "last_insn", "queue",
8468 "next_queue", "prev" from rtx to rtx_insn *.
8470 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8471 the second param is an rtx_insn ** rather than an rtx **.
8472 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8473 from rtx to rtx_sequence *, and introduce local named "sequence",
8474 using methods of rtx_sequence to clarify the code.
8475 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8477 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8478 Rename param "after" to "uncast_after", reintroducing "after" as a
8479 local rtx_insn * with a checked cast.
8480 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8481 reintroducing "after" as a local rtx_insn * with a checked cast.
8482 Strengthen local "last" from rtx to rtx_insn * and remove the
8483 now-redundant checked casts.
8484 (copy_delay_slot_insn): Strengthen return type and param from rtx
8487 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8488 "last" from rtx to rtx_insn *.
8490 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8492 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8493 param from rtx to rtx_insn *.
8495 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8497 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8498 and local "insn" from rtx to rtx_insn *.
8499 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8500 (unfilled_slots_next): Likewise.
8501 (function_return_label): Strengthen from rtx to rtx_code_label *.
8502 (function_simple_return_label): Likewise.
8503 (first_active_target_insn): Strengthen return type and param from
8505 (find_end_label): Strengthen return type from rtx to
8506 rtx_code_label *; strengthen locals as appropriate.
8507 (emit_delay_sequence): Strengthen return type, param "insn" and
8508 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8509 and local "li" from rtx to rtx_insn_list *, using methods of
8510 rtx_insn_list for clarity and typesafety.
8511 (add_to_delay_list): Strengthen return type and param "insn" from
8512 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8513 rtx_insn_list * and use methods of rtx_insn_list.
8514 (delete_from_delay_slot): Strengthen return type, param "insn",
8515 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8516 Strengthen local "seq" from rtx to rtx_sequence *, and local
8517 "delay_list" from rtx to rtx_insn_list *, using methods of
8518 rtx_sequence for clarity and type-safety.
8519 (delete_scheduled_jump): Add checked cast when invoking
8520 delete_from_delay_slot. Strengthen local "trial" from rtx to
8522 (optimize_skip): Strengthen return type and local "delay_list"
8523 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8525 (steal_delay_list_from_target): Strengthen return type, param
8526 "delay_list" and local "new_delay_list" from rtx to
8527 rtx_insn_list *. Strengthen param "seq" from rtx to
8528 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8530 Split out local "temp" into multiple more-tightly scoped locals:
8531 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8532 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8533 Strengthen locals named "trial" from rtx to rtx_insn *.
8534 (steal_delay_list_from_fallthrough): Strengthen return type and
8535 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8536 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8537 Strengthen local "trial" from rtx to rtx_insn *.
8538 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8539 to rtx_insn_list * and use its methods. Strengthen local "pat"
8540 from rtx to rtx_sequence * and use its methods. Strengthen locals
8541 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8542 (get_label_before): Strengthen return type and local "label" from
8544 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8545 "next_trial", "next", prev". Strengthen local "delay_list" from
8546 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8548 (follow_jumps): Strengthen return type, param "label" and locals
8549 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8550 (fill_slots_from_thread): Strengthen return type, param
8551 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8552 "insn", "thread", "opposite_thread" and locals "new_thread",
8553 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8554 "sequence" from a checked cast to rtx_sequence so that we can call
8555 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8556 with an rtx_sequence *.
8557 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8558 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8559 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8560 (relax_delay_slots): Strengthen param "first" and locals "insn",
8561 "next", "trial", "delay_insn", "target_label" from rtx to
8562 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8563 Introduce a local "trial_seq" for PATTERN (trial) of type
8564 rtx_sequence *, in both cases using methods of rtx_sequence.
8565 (dbr_schedule): Strengthen param "first" and locals "insn",
8566 "next", "epilogue_insn" from rtx to rtx_insn *.
8568 2014-08-28 Richard Biener <rguenther@suse.de>
8570 PR tree-optimization/62283
8571 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8572 Do not peel loops for alignment where the vector loop likely
8573 doesn't run at least VF times.
8575 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8577 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8578 important_candidates. Consider all important candidates if
8579 IVS doesn't give any result. Remove check on ivs->upto.
8580 (try_add_cand_for): Call iv_ca_add_use only once.
8582 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8583 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8584 Anna Tikhonova <anna.tikhonova@intel.com>
8585 Ilya Tocar <ilya.tocar@intel.com>
8586 Andrey Turetskiy <andrey.turetskiy@intel.com>
8587 Ilya Verbin <ilya.verbin@intel.com>
8588 Kirill Yukhin <kirill.yukhin@intel.com>
8589 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8591 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8592 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8594 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8595 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8596 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8597 (define_insn "*mul<mode>3"): Add EVEX version.
8599 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8601 Anna Tikhonova <anna.tikhonova@intel.com>
8602 Ilya Tocar <ilya.tocar@intel.com>
8603 Andrey Turetskiy <andrey.turetskiy@intel.com>
8604 Ilya Verbin <ilya.verbin@intel.com>
8605 Kirill Yukhin <kirill.yukhin@intel.com>
8606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8608 * config/i386/sse.md
8609 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8610 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8611 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8612 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8613 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8614 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8615 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8616 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8617 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8618 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8619 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8620 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8621 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8622 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8623 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8624 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8626 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8627 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8628 Anna Tikhonova <anna.tikhonova@intel.com>
8629 Ilya Tocar <ilya.tocar@intel.com>
8630 Andrey Turetskiy <andrey.turetskiy@intel.com>
8631 Ilya Verbin <ilya.verbin@intel.com>
8632 Kirill Yukhin <kirill.yukhin@intel.com>
8633 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8635 * config/i386/sse.md
8636 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8637 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8638 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8640 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8642 Anna Tikhonova <anna.tikhonova@intel.com>
8643 Ilya Tocar <ilya.tocar@intel.com>
8644 Andrey Turetskiy <andrey.turetskiy@intel.com>
8645 Ilya Verbin <ilya.verbin@intel.com>
8646 Kirill Yukhin <kirill.yukhin@intel.com>
8647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8649 * config/i386/sse.md
8650 (define_mode_iterator VI128_256): New.
8651 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8653 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8655 Anna Tikhonova <anna.tikhonova@intel.com>
8656 Ilya Tocar <ilya.tocar@intel.com>
8657 Andrey Turetskiy <andrey.turetskiy@intel.com>
8658 Ilya Verbin <ilya.verbin@intel.com>
8659 Kirill Yukhin <kirill.yukhin@intel.com>
8660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8662 * config/i386/sse.md
8663 (define_mode_iterator VI8_256_512): New.
8664 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8666 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8667 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8669 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8671 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8673 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8674 pointer to the cumulative reloc value and return the value for
8676 (compute_reloc_for_rtx): Take a const_rtx. Call
8677 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8678 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8679 for_each_rtx for the CONST case.
8681 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8683 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8684 (mark_constants_in_pattern): ...this new function to iterate over
8686 (mark_constants): Update accordingly.
8688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8690 * varasm.c: Include rtl-iter.h.
8691 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8692 Remove the pointer to the cumulative hashval_t and just return
8693 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8694 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8695 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8697 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8699 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8700 Give real type of data parameter. Remove return value.
8701 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8702 to iterate over subrtxes.
8704 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8706 * var-tracking.c (use_narrower_mode_test): Turn from being a
8707 for_each_rtx callback to being a function that examines each
8709 (adjust_mems): Update accordingly.
8711 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8713 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8714 callback to being a function that examines each subrtx itself.
8715 Remove handling of null rtxes.
8716 (add_uses): Update accordingly.
8718 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8720 * var-tracking.c: Include rtl-iter.h.
8721 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8722 to being a function that examines each subrtx itself.
8723 (use_type): Update accordingly.
8725 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8727 * store-motion.c: Include rtl-iter.h.
8728 (extract_mentioned_regs_1): Delete.
8729 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8730 for_each_rtx to iterate over subrtxes.
8732 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8734 * sel-sched.c: Include rtl-iter.h
8735 (count_occurrences_1): Delete.
8736 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8737 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8739 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8741 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8742 * rtlanal.c (tls_referenced_p_1): Delete.
8743 (tls_referenced_p): Take a const_rtx rather than an rtx.
8744 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8746 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8748 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8749 (for_each_inc_dec): Take an rtx rather than an rtx *.
8750 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8751 (cselib_record_sets): Likewise.
8752 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8753 (check_for_inc_dec): Likewise.
8754 * rtlanal.c (for_each_inc_dec_ops): Delete.
8755 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8756 rather than a pointer to the memory address. Replace
8757 for_each_inc_dec_ops argument with separate function and data
8758 arguments. Abort on non-autoinc addresses.
8759 (for_each_inc_dec_find_mem): Delete.
8760 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8761 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8765 * rtl.h (find_all_hard_regs): Declare.
8766 * rtlanal.c (find_all_hard_regs): New function.
8767 (record_hard_reg_uses_1): Delete.
8768 (record_hard_reg_uses): Use find_all_hard_regs.
8770 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8772 * rtl.h (replace_label_data): Delete.
8773 (replace_label): Take the old label, new label and update-nuses flag
8774 as direct arguments. Return void.
8775 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8776 * rtlanal.c (replace_label): Update interface as above. Handle
8777 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8778 iterator. Use FOR_EACH_SUBRTX_PTR.
8780 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8782 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8783 with const_rtx parameters.
8784 * varasm.c (get_pool_constant): Likewise.
8785 * rtlanal.c (rtx_referenced_p_1): Delete.
8786 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8787 Assert that the rtx we're looking for is nonnull. Allow searches
8788 for constant pool SYMBOL_REFs.
8790 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8792 * reload1.c: Include rtl-iter.h.
8793 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8794 to being a function that examines each subrtx itself.
8795 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8797 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8799 * regcprop.c (cprop_find_used_regs_1): Delete.
8800 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8804 * regcprop.c: Include rtl-iter.h.
8805 (kill_value): Take a const_rtx.
8806 (kill_autoinc_value): Turn from being a for_each_rtx callback
8807 to being a function that examines each subrtx itself.
8808 (copyprop_hardreg_forward_1): Update accordingly.
8810 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8812 * reg-stack.c: Include rtl-iter.h.
8813 (subst_stack_regs_in_debug_insn): Delete.
8814 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8815 instead of for_each_rtx.
8817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8819 * lower-subreg.c (find_decomposable_subregs): Turn from being
8820 a for_each_rtx callback to being a function that examines each
8821 subrtx itself. Remove handling of null rtxes.
8822 (decompose_multiword_subregs): Update accordingly.
8824 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8826 * lower-subreg.c (adjust_decomposed_uses): Delete.
8827 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8828 Remove handling of null rtxes.
8830 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8832 * lower-subreg.c: Include rtl-iter.h.
8833 (resolve_subreg_use): Turn from being a for_each_rtx callback
8834 to being a function that examines each subrtx itself. Remove
8835 handling of null rtxes.
8836 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8837 (decompose_multiword_subregs): Likewise.
8839 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8841 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8842 to being a function that examines each subrtx itself.
8843 (simplify_using_condition, simplify_using_initial_values): Update
8846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8848 * loop-iv.c: Include rtl-iter.h.
8849 (find_single_def_src): New function.
8850 (replace_single_def_regs): Turn from being a for_each_rtx callback
8851 to being a function that examines each subrtx itself.
8852 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8854 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8856 * jump.c (eh_returnjump_p_1): Delete.
8857 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8858 Remove handling of null rtxes.
8860 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8862 * jump.c: Include rtl-iter.h.
8863 (returnjump_p_1): Delete.
8864 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8865 Remove handling of null rtxes.
8867 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8869 * ira.c: Include rtl-iter.h.
8870 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8871 to being a function that examines each subrtx itself. Remove
8872 handling of null rtxes.
8873 (update_equiv_regs): Update call accordingly.
8875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8877 * fwprop.c: Include rtl-iter.h.
8878 (varying_mem_p): Turn from being a for_each_rtx callback to being
8879 a function that examines each subrtx itself.
8880 (propagate_rtx): Update accordingly.
8882 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8884 * function.c: Include rtl-iter.h
8885 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8886 callback to being a function that examines each subrtx itself.
8887 Return the changed flag.
8888 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8889 (instantiate_virtual_regs): Update calls accordingly.
8891 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8893 * final.c: Include rtl-iter.h.
8894 (mark_symbol_ref_as_used): Delete.
8895 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8898 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8900 * emit-rtl.c: Include rtl-iter.h.
8901 (find_auto_inc): Turn from being a for_each_rtx callback to being
8902 a function that examines each subrtx itself. Assume the first operand
8903 to an RTX_AUTOINC is the automodified register.
8904 (try_split): Update call accordingly.
8906 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8908 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8909 Return a bool, inverting the result so that 0/false means "not ok".
8910 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8911 subrtxes of a CONST.
8912 (mem_loc_descriptor, add_const_value_attribute)
8913 (resolve_addr_in_expr): Update calls accordingly.
8915 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8917 * dwarf2out.c: Include rtl-iter.h.
8918 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8919 Remove unused data parameter. Return a bool, inverting the result
8920 so that 0/false means "not ok".
8921 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8922 instead of for_each_rtx.
8924 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8926 * dse.c: Include rtl-iter.h.
8927 (check_mem_read_rtx): Change void * parameter to real type.
8928 Remove return value.
8929 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8930 for_each_rtx. Don't handle null rtxes.
8932 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8934 * df-problems.c: Include rtl-iter.h.
8935 (find_memory): Turn from being a for_each_rtx callback to being
8936 a function that examines each subrtx itself. Continue to look for
8937 volatile references even after a nonvolatile one has been found.
8938 (can_move_insns_across): Update calls accordingly.
8940 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8942 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8943 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8944 to iterate over subrtxes. Return a bool rather than an int.
8946 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8948 * ddg.c: Include rtl-iter.h.
8949 (mark_mem_use_1): Rename to...
8950 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8951 instead of for_each_rtx.
8952 (mem_read_insn_p): Update accordingly.
8954 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8956 * cse.c (change_cc_mode_args): Delete.
8957 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8958 a function that examines each subrtx itself. Take the fields of
8959 change_cc_mode_args as argument and return void.
8960 (cse_change_cc_mode_insn): Update calls accordingly.
8962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8964 * cse.c (is_dead_reg): Change argument to const_rtx.
8965 (dead_debug_insn_data): Delete.
8966 (is_dead_debug_insn): Expand commentary. Turn from being a
8967 for_each_rtx callback to being a function that examines
8968 each subrtx itself. Take the fields of dead_debug_insn_data
8970 (delete_trivially_dead_insns): Update call accordingly.
8972 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8974 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8975 being a for_each_rtx callback to being a function that examines
8977 (cse_extended_basic_block): Update call accordingly.
8979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8981 * cse.c (check_dependence_data): Delete.
8982 (check_dependence): Change from being a for_each_rtx callback to being
8983 a function that examines all subrtxes itself. Don't handle null rtxes.
8984 (invalidate): Update call accordingly.
8986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8988 * cse.c: Include rtl-iter.h.
8989 (approx_reg_cost_1): Delete.
8990 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8991 Don't handle null rtxes.
8993 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8995 * cfgcleanup.c: Include rtl-iter.h.
8996 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8997 to being a function that examines each subrtx itself.
8998 (thread_jump): Update accordingly.
9000 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9002 * combine-stack-adj.c: Include rtl-iter.h.
9003 (record_stack_refs_data): Delete.
9004 (record_stack_refs): Turn from being a for_each_rtx callback
9005 to being a function that examines each subrtx itself.
9006 Take a pointer to the reflist. Invert sense of return value
9007 so that true means success and false means failure. Don't
9009 (combine_stack_adjustments_for_block): Update accordingly.
9011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9013 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9014 callback to a function that takes an rtx and returns a bool
9015 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9020 * combine.c: Include rtl-iter.h.
9021 (unmentioned_reg_p_1): Delete.
9022 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9023 Don't handle null rtxes.
9025 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9027 * calls.c: Include rtl-iter.h.
9028 (internal_arg_pointer_based_exp_1): Delete.
9029 (internal_arg_pointer_based_exp): Take a const_rtx.
9030 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9032 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9034 * caller-save.c: Include rtl-iter.h.
9035 (add_used_regs_1): Delete.
9036 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9037 to iterate over subrtxes. Assert that any remaining pseudos
9040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9042 * bt-load.c: Include rtl-iter.h.
9043 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9044 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9045 to iterate over subrtxes.
9046 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9047 find_btr_use rather than btr_referenced_p.
9049 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9051 * alias.c: Include rtl-iter.h.
9052 (refs_newer_value_cb): Delete.
9053 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9055 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9057 * rtl-iter.h: New file.
9058 * rtlanal.c: Include it.
9059 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9060 (generic_subrtx_iterator <T>::add_single_to_queue)
9061 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9062 (generic_subrtx_iterator <T>::free_array): New functions.
9063 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9064 (generic_subrtx_iterator <const_rtx_accessor>)
9065 (generic_subrtx_iterator <rtx_var_accessor>
9066 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9067 (setup_reg_subrtx_bounds): New function.
9068 (init_rtlanal): Call it.
9070 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9073 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9075 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9077 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9079 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9081 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9083 * rtl.h (JUMP_LABEL_AS_INSN): New.
9085 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9087 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9089 (alloc_EXPR_LIST): Strengthen return type from rtx to
9091 (remove_free_EXPR_LIST_node): Likewise for param.
9092 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9093 from rtx to rtx_expr_list *.
9094 * sched-int.h (struct deps_desc): Strengthen fields
9095 "pending_read_mems" and "pending_write_mems" from rtx to
9098 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9099 rtx to rtx_expr_list *.
9100 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9101 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9103 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9104 from rtx to rtx_expr_list *.
9105 * loop-iv.c (simplify_using_initial_values): Strengthen local
9106 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9107 "pnote_next" from rtx * to rtx_expr_list **.
9108 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9109 param "exprp" from rtx * to rtx_expr_list **.
9110 (add_insn_mem_dependence): Strengthen local "mem_list" from
9111 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9113 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9114 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9115 param "old_mems_p" from rtx * to rtx_expr_list **.
9116 * var-tracking.c (struct adjust_mem_data): Strengthen field
9117 "side_effects" from rtx to rtx_expr_list *.
9118 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9120 (prepare_call_arguments): Likewise.
9122 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9124 * function.h (struct rtl_data): Strengthen field
9125 "x_stack_slot_list" from rtx to rtx_expr_list *.
9127 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9128 when assigning to stack_slot_list.
9130 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9132 * function.h (struct rtl_data): Strengthen field
9133 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9134 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9135 rtx * to rtx_expr_list **.
9137 * cfgbuild.c (make_edges): In loop over
9138 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9139 rtx_expr_list *, and use methods of the latter class to clarify
9141 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9142 rtx_expr_list *, and use methods of the latter class to clarify
9144 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9145 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9146 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9147 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9148 to rtx_expr_list *. Use methods of the latter class to clarify
9151 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9153 * function.h (struct expr_status): Strengthen field
9154 "x_forced_labels" from rtx to rtx_expr_list *.
9156 * cfgbuild.c (make_edges): Split local "x" into two locals,
9157 strengthening one from rtx to rtx_expr_list *, and using methods
9159 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9160 loop over forced_labels, introduce strengthen it from rtx to
9161 rtx_expr_list *, using methods to clarify the code.
9162 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9163 to rtx_expr_list *, using methods of said class to clarify the
9165 * reload1.c (set_initial_label_offsets): Split local "x" into two
9166 per-loop variables, strengthening the first from rtx to
9167 rtx_expr_list * and using methods.
9169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9171 * coretypes.h (class rtx_expr_list): Add forward declaration.
9172 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9173 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9174 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9175 invariant: GET_CODE (X) == EXPR_LIST.
9176 (is_a_helper <rtx_expr_list *>::test): New.
9177 (rtx_expr_list::next): New.
9178 (rtx_expr_list::element): New.
9179 (gen_rtx_EXPR_LIST): New.
9181 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9183 * varasm.c (mark_constants): Convert a GET_CODE check into a
9184 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9185 Use methods of rtx_sequence to clarify the code.
9187 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9189 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9190 local "seq" via a checked cast, and use methods of rtx_sequence
9191 to simplify the code.
9193 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9195 * resource.c (mark_referenced_resources): Strengthen local
9196 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9197 using methods of rtx_sequence to clarify the code.
9198 (find_dead_or_set_registers): Within the switch statement, convert
9199 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9200 the JUMP_P handling, introduce another local "seq", adding a
9201 checked cast to rtx_sequence *. In both cases, use methods of
9202 rtx_sequence to clarify the code.
9203 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9204 via a checked cast, and use methods of rtx_sequence to simplify
9207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9209 * reorg.c (redundant_insn): In two places in the function, replace
9210 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9211 usings methods of rtx_sequence to clarify the code.
9213 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9215 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9216 local "seq" with a checked cast, and use methods of rtx_sequence
9217 to clarify the code.
9219 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9221 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9222 with a checked cast, in the region for where we know it's a
9223 SEQUENCE. Use methods of rtx_sequence.
9225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9227 * final.c (get_attr_length_1): Replace GET_CODE check with a
9228 dyn_cast, introducing local "seq" and the use of methods of
9230 (shorten_branches): Likewise, introducing local "body_seq".
9231 Strengthen local "inner_insn" from rtx to rtx_insn *.
9232 (reemit_insn_block_notes): Replace GET_CODE check with a
9233 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9234 Use methods of rtx_sequence.
9235 (final_scan_insn): Likewise, introducing local "seq" for when
9236 "body" is known to be a SEQUENCE, using its methods.
9238 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9240 * except.c (can_throw_external): Strengthen local "seq" from rtx
9241 to rtx_sequence *. Use methods of rtx_sequence.
9242 (insn_nothrow_p): Likewise.
9244 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9246 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9247 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9248 Use methods of rtx_sequence.
9249 (scan_trace): Likewise for local "pat".
9251 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9253 * coretypes.h (class rtx_sequence): Add forward declaration.
9254 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9255 invariant: GET_CODE (X) == SEQUENCE.
9256 (is_a_helper <rtx_sequence *>::test): New.
9257 (is_a_helper <const rtx_sequence *>::test): New.
9258 (rtx_sequence::len): New.
9259 (rtx_sequence::element): New.
9260 (rtx_sequence::insn): New.
9262 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9264 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9266 (alloc_INSN_LIST): Strengthen return type from rtx to
9268 (copy_INSN_LIST): Likewise for return type and param.
9269 (concat_INSN_LIST): Likewise for both params and return type.
9270 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9271 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9272 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9273 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9275 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9276 "implicit_sets", "control_uses", "clobbers" from rtx to
9278 (struct deps_desc): Likewise for fields "pending_read_insns",
9279 "pending_write_insns", "pending_jump_insns",
9280 "last_pending_memory_flush", "last_function_call",
9281 "last_function_call_may_noreturn", "sched_before_next_call",
9282 "sched_before_next_jump".
9283 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9284 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9286 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9287 from rtx to rtx_insn_list *.
9288 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9291 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9292 to rtx_insn_list **.
9293 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9295 (queue_insn): Likewise for local "link".
9296 (struct haifa_saved_data): Strengthen field "insn_queue" from
9297 rtx * to rtx_insn_list **.
9298 (save_backtrack_point): Update allocation of save->insn_queue to
9299 reflect the strengthening of elements from rtx to rtx_insn_list *.
9300 (queue_to_ready): Strengthen local "link" from rtx to
9301 rtx_insn_list *; use methods "next" and "insn" when traversing the
9303 (early_queue_to_ready): Likewise for locals "link", "next_link",
9305 (schedule_block): Update allocation of insn_queue to reflect the
9306 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9307 local "link" from rtx to rtx_insn_list *, and use methods when
9309 (add_to_speculative_block): Strengthen locals "twins" and
9310 "next_node" from rtx to rtx_insn_list *, and use methods when
9311 working with them. Strengthen local "twin" from rtx to
9312 rtx_insn *, eliminating a checked cast.
9313 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9314 from rtx to rtx_insn_list *, and use methods when working with
9317 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9318 from rtx to rtx_insn_list *, adding a checked cast.
9319 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9321 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9322 "newlink" from rtx to rtx_insn_list *. Strengthen local
9323 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9324 from rtx to rtx_insn *.
9325 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9326 from rtx to rtx_insn_list *. Use methods of the latter class.
9327 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9328 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9329 (remove_free_INSN_LIST_node): Strengthen return type and local
9330 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9331 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9332 rtx_insn_list *, using "insn" method.
9334 * sched-deps.c (add_dependence_list): Strengthen param "list"
9335 from rtx to rtx_insn_list *, and use methods when working with it.
9336 (add_dependence_list_and_free): Strengthen param "listp" from
9337 rtx * to rtx_insn_list **.
9338 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9339 to rtx_insn_list **, and use methods when working with *listp.
9340 (remove_from_both_dependence_lists): Strengthen param "listp" from
9341 rtx * to rtx_insn_list **
9342 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9343 to rtx_insn_list **. Eliminate local "link", in favor of two new
9344 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9346 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9347 by introducing local "cond_deps".
9348 (remove_from_deps): Strengthen param "insn" from rtx to
9351 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9352 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9353 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9354 Use methods of rtx_insn_list.
9356 * store-motion.c (struct st_expr): Strengthen fields
9357 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9358 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9360 (find_moveable_store): Split out "tmp" into multiple more-tightly
9361 scoped locals. Use methods of rtx_insn_list *.
9362 (compute_store_table): Strengthen local "tmp" from rtx to
9363 rtx_insn *. Use methods of rtx_insn_list *.
9365 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9367 * coretypes.h (class rtx_insn_list): Add forward declaration.
9368 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9369 (is_a_helper <rtx_insn_list *>::test): New.
9370 (rtx_insn_list::next): New.
9371 (rtx_insn_list::insn): New.
9372 (gen_rtx_INSN_LIST): Add prototype.
9373 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9374 * gengenrtl.c (special_rtx): Add INSN_LIST.
9376 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9378 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9379 "prev" from rtx to rtx_insn *.
9381 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9383 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9384 functions. Require merely an rtx for now, not an rtx_insn *.
9385 (BLOCK_FOR_INSN): Likewise.
9386 (INSN_LOCATION): Likewise.
9387 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9389 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9391 * rtl.h (PATTERN): Convert this macro into a pair of inline
9392 functions, for now, requiring const_rtx and rtx.
9394 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9396 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9398 (final_postscan_insn): Likewise.
9399 (adjust_cost): Likewise.
9400 (adjust_priority): Likewise.
9401 (variable_issue): Likewise.
9402 (macro_fusion_pair_p): Likewise.
9403 (dfa_post_cycle_insn): Likewise.
9404 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9405 (first_cycle_multipass_issue): Likewise.
9406 (dfa_new_cycle): Likewise.
9407 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9408 (speculate_insn): Likewise for param "insn".
9409 (gen_spec_check): Likewise for params "insn" and "label".
9410 (get_insn_spec_ds): Likewise for param "insn".
9411 (get_insn_checked_ds): Likewise.
9412 (dispatch_do): Likewise.
9413 (dispatch): Likewise.
9414 (cannot_copy_insn_p): Likewise.
9415 (invalid_within_doloop): Likewise.
9416 (legitimate_combined_insn): Likewise.
9420 * doc/tm.texi: Automatically updated to reflect changes to
9423 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9425 (schedule_block): Likewise.
9426 (sched_init): Likewise.
9427 (sched_speculate_insn): Strengthen param "insn" from rtx to
9429 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9431 * hooks.c (hook_bool_rtx_true): Rename to...
9432 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9434 (hook_constcharptr_const_rtx_null): Rename to...
9435 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9436 first param from const_rtx to const rtx_insn *.
9437 (hook_bool_rtx_int_false): Rename to...
9438 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9439 param from rtx to rtx_insn *.
9440 (hook_void_rtx_int): Rename to...
9441 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9444 * hooks.h (hook_bool_rtx_true): Rename to...
9445 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9447 (hook_bool_rtx_int_false): Rename to...
9448 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9449 param from rtx to rtx_insn *.
9450 (hook_void_rtx_int): Rename to...
9451 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9453 (hook_constcharptr_const_rtx_null): Rename to...
9454 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9455 first param from const_rtx to const rtx_insn *.
9457 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9458 and local "prev" from rtx to rtx_insn *.
9460 * sched-int.h (sched_speculate_insn): Strengthen first param from
9463 * sel-sched.c (create_speculation_check): Likewise for local "label".
9464 * targhooks.c (default_invalid_within_doloop): Strengthen param
9465 "insn" from const_rtx to const rtx_insn *.
9466 * targhooks.h (default_invalid_within_doloop): Strengthen param
9467 from const_rtx to const rtx_insn *.
9469 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9470 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9472 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9474 (arc_invalid_within_doloop): Likewise, with const.
9476 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9477 (arm_cannot_copy_insn_p): Likewise for param "insn".
9478 (arm_unwind_emit): Likewise.
9480 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9483 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9484 (c6x_variable_issue): Likewise. Removed now-redundant checked
9486 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9488 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9489 Likewise for param "insn".
9490 (epiphany_mode_after): Likewise.
9491 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9492 params "insn", "dep_insn".
9493 (epiphany_mode_needed): Likewise for param "insn".
9494 (epiphany_mode_after): Likewise.
9496 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9497 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9498 (ix86_avx_u128_mode_needed): Likewise.
9499 (ix86_i387_mode_needed): Likewise.
9500 (ix86_mode_needed): Likewise.
9501 (ix86_avx_u128_mode_after): Likewise.
9502 (ix86_mode_after): Likewise.
9503 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9504 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9505 (ix86_adjust_priority): Likewise for param "insn".
9506 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9507 (do_dispatch): Likewise.
9508 (has_dispatch): Likewise.
9509 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9511 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9512 reflect renaming of default hook implementation from
9513 hook_constcharptr_const_rtx_null to
9514 hook_constcharptr_const_rtx_insn_null.
9515 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9517 (ia64_variable_issue): Likewise for param "insn".
9518 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9519 (ia64_dfa_new_cycle): Likewise.
9520 (ia64_get_insn_spec_ds): Likewise.
9521 (ia64_get_insn_checked_ds): Likewise.
9522 (ia64_speculate_insn): Likewise.
9523 (ia64_gen_spec_check): Likewise for params "insn", "label".
9524 (ia64_asm_unwind_emit): Likewise for param "insn".
9526 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9528 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9530 (m68k_sched_variable_issue): Likewise for param "insn".
9532 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9535 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9536 Likewise for params "insn", "dep".
9538 * config/mips/mips.c (mips_adjust_cost): Likewise.
9539 (mips_variable_issue): Likewise for param "insn".
9540 (mips_final_postscan_insn): Likewise.
9542 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9543 for params "insn", "dep".
9545 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9547 (pa_adjust_priority): Likewise for param "insn".
9549 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9550 Likewise for params "insn", "dep_insn".
9552 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9554 (rs6000_variable_issue): Likewise.
9555 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9556 (rs6000_debug_adjust_cost): Likewise.
9557 (rs6000_adjust_priority): Likewise for param "insn".
9558 (rs6000_use_sched_lookahead_guard): Likewise.
9559 (get_next_active_insn): Likewise for return type and both params.
9560 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9561 and locals "insn", "next_insn".
9562 (pad_groups): Likewise.
9564 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9566 (s390_cannot_copy_insn_p): Likewise.
9567 (s390_sched_variable_issue): Likewise for third param, eliminating
9569 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9570 default hook implementation from hook_constcharptr_const_rtx_null
9571 to hook_constcharptr_const_rtx_insn_null.
9573 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9574 from rtx to rtx_insn *.
9575 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9576 (sh_variable_issue): Likewise for param "insn".
9577 (sh_dfa_new_cycle): Likewise.
9578 (sh_mode_needed): Likewise.
9579 (sh_mode_after): Likewise.
9581 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9582 params "insn", "dep_insn".
9583 (hypersparc_adjust_cost): Likewise.
9584 (sparc_adjust_cost): Likewise.
9586 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9587 param, eliminated checked cast.
9588 (spu_sched_adjust_cost): Likewise for first and third params.
9590 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9591 params "insn" and "dep_insn" from rtx to rtx_insn *.
9593 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9595 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9597 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9598 (set_is_load_p): ...this, updating to work on a SET pattern rather
9600 (is_store_insn): Rename to...
9601 (set_is_store_p): ...this, updating to work on a SET pattern
9602 rather than an insn.
9603 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9604 top of function to where it is needed. Rewrite the bogus
9605 condition that checks for "insn" and "dep" being PARALLEL to
9606 instead use single_set, introducing locals "insn_set" and
9607 "dep_set". Given that we only ever returned "cost" for a non-pair
9608 of SETs, bail out early if we don't have a pair of SET.
9609 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9610 use the new locals "insn_set" and "dep_set", and update calls to
9611 is_load_insn and is_store_insn to be calls to set_is_load_p and
9614 2014-08-27 Guozhi Wei <carrot@google.com>
9617 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9618 amount before using it.
9620 2014-08-27 Richard Biener <rguenther@suse.de>
9622 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9623 get_maxval_strlen inside a more useful API.
9624 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9625 (gimple_fold_builtin): ... caller.
9626 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9627 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9628 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9629 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9630 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9631 gimple_fold_builtin_sprintf): Adjust to compute maxval
9634 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9637 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9639 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9641 Anna Tikhonova <anna.tikhonova@intel.com>
9642 Ilya Tocar <ilya.tocar@intel.com>
9643 Andrey Turetskiy <andrey.turetskiy@intel.com>
9644 Ilya Verbin <ilya.verbin@intel.com>
9645 Kirill Yukhin <kirill.yukhin@intel.com>
9646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9648 * config/i386/sse.md
9649 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9650 Use `concat_tg_mode' attribute to determine asm register size.
9652 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9654 Anna Tikhonova <anna.tikhonova@intel.com>
9655 Ilya Tocar <ilya.tocar@intel.com>
9656 Andrey Turetskiy <andrey.turetskiy@intel.com>
9657 Ilya Verbin <ilya.verbin@intel.com>
9658 Kirill Yukhin <kirill.yukhin@intel.com>
9659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9661 * config/i386/sse.md
9662 (define_mode_iterator VI48_AVX512VL): New.
9663 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9664 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9665 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9666 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9667 with VI1): Change mode iterator.
9668 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9669 with VI_ULOADSTORE_BW_AVX512VL): New.
9670 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9671 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9672 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9673 with VI1): Change mode iterator.
9674 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9675 with VI_ULOADSTORE_BW_AVX512VL): New.
9676 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9677 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9678 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9679 with VI1): Change mode iterator.
9680 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9681 with VI_ULOADSTORE_BW_AVX512VL): New.
9682 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9683 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9684 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9685 (define_insn "<avx512>_storedqu<mode>_mask" with
9686 VI48_AVX512VL): New.
9687 (define_insn "<avx512>_storedqu<mode>_mask" with
9688 VI12_AVX512VL): Ditto.
9690 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9692 Anna Tikhonova <anna.tikhonova@intel.com>
9693 Ilya Tocar <ilya.tocar@intel.com>
9694 Andrey Turetskiy <andrey.turetskiy@intel.com>
9695 Ilya Verbin <ilya.verbin@intel.com>
9696 Kirill Yukhin <kirill.yukhin@intel.com>
9697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9699 * config/i386/sse.md
9700 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9701 (define_mode_iterator VI48_AVX512BW): New.
9702 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9703 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9704 with VI48_AVX2_48_AVX512F): New.
9705 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9706 with VI2_AVX512VL): Ditto.
9708 2014-08-27 Richard Biener <rguenther@suse.de>
9711 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9712 (fold_builtin_3): Do not fold strcat_chk here.
9713 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9715 (gimple_fold_builtin): Fold strcat_chk here.
9717 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9719 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9720 * dwarf2out.c (dwarf2out_decl): Make static.
9722 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9724 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9726 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9728 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9729 from rtx to rtx_insn *.
9730 (cselib_lookup_from_insn): Likewise for final param.
9731 (cselib_subst_to_values_from_insn): Likewise.
9732 (cselib_add_permanent_equiv): Likewise.
9734 * cselib.c (cselib_current_insn): Likewise for this variable.
9735 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9736 (cselib_lookup_from_insn): Likewise.
9737 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9738 "save_cselib_current_insn".
9739 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9741 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9742 from rtx to rtx_insn *.
9744 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9746 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9749 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9751 * df.h (df_dump_insn_problem_function): Strengthen first param of
9752 this callback from const_rtx to const rtx_insn *.
9753 (struct df_insn_info): Strengthen field "insn" from rtx to
9755 (DF_REF_INSN): Eliminate this function, reinstating the older
9757 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9758 (df_reg_defined): Likewise.
9759 (df_find_use): Likewise.
9760 (df_reg_used): Likewise.
9761 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9763 (df_dump_insn_bottom): Likewise.
9764 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9765 (df_insn_debug_regno): Likewise.
9766 (debug_df_insn): Likewise.
9767 (df_rd_simulate_one_insn): Likewise for param 2.
9768 (df_word_lr_simulate_defs): Likewise for param 1.
9769 (df_word_lr_simulate_uses): Likewise.
9770 (df_md_simulate_one_insn): Likewise for param 2.
9771 (df_simulate_find_noclobber_defs): Likewise for param 1.
9772 (df_simulate_find_defs): Likewise.
9773 (df_simulate_defs): Likewise.
9774 (df_simulate_uses): Likewise.
9775 (df_simulate_one_insn_backwards): Likewise for param 2.
9776 (df_simulate_one_insn_forwards): Likewise.
9777 (df_uses_create): Likewise for param 2.
9778 (df_insn_create_insn_record): Likewise for param 1.
9779 (df_insn_delete): Likewise.
9780 (df_insn_rescan): Likewise.
9781 (df_insn_rescan_debug_internal): Likewise.
9782 (df_insn_change_bb): Likewise.
9783 (df_notes_rescan): Likewise.
9784 * rtl.h (remove_death): Likewise for param 2.
9785 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9787 * sched-int.h (reemit_notes): Strengthen param from rtx to
9789 * valtrack.h (propagate_for_debug): Likewise for param 1.
9791 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9792 local "tmp_rtx" from const_rtx to const rtx_insn *.
9793 * combine.c (remove_death): Strengthen param "insn" from rtx to
9795 (move_deaths): Likewise for local "where_dead".
9796 * cse.c (delete_trivially_dead_insns): Introduce local
9797 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9798 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9800 (df_reg_defined): Likewise.
9801 (df_find_use): Likewise.
9802 (df_reg_used): Likewise.
9803 (df_dump_insn_problem_data): Strengthen param "insn" from
9804 const_rtx to const rtx_insn *.
9805 (df_dump_insn_top): Likewise.
9806 (df_dump_insn_bottom): Likewise.
9807 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9808 (df_insn_debug_regno): Likewise.
9809 (debug_df_insn): Likewise.
9810 (DF_REF_INSN): Delete.
9811 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9812 from rtx to rtx_insn *.
9813 (df_chain_insn_top_dump): Strengthen param "insn" from
9814 const_rtx to const rtx_insn *.
9815 (df_chain_insn_bottom_dump): Likewise.
9816 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9818 (df_word_lr_simulate_uses): Likewise.
9819 (df_print_note): Likewise.
9820 (df_remove_dead_and_unused_notes): Likewise.
9821 (df_set_unused_notes_for_mw): Likewise.
9822 (df_set_dead_notes_for_mw): Likewise.
9823 (df_create_unused_note): Likewise.
9824 (df_simulate_find_defs): Likewise.
9825 (df_simulate_find_uses): Likewise.
9826 (df_simulate_find_noclobber_defs): Likewise.
9827 (df_simulate_defs): Likewise.
9828 (df_simulate_uses): Likewise.
9829 (df_simulate_one_insn_backwards): Likewise.
9830 (df_simulate_one_insn_forwards): Likewise.
9831 (df_md_simulate_one_insn): Likewise.
9832 * df-scan.c (df_uses_create): Likewise.
9833 (df_insn_create_insn_record): Likewise.
9834 (df_insn_delete): Likewise.
9835 (df_insn_rescan): Likewise.
9836 (df_insn_rescan_debug_internal): Likewise.
9837 (df_insn_change_bb): Likewise.
9838 (df_notes_rescan): Likewise.
9839 (df_refs_add_to_chains): Likewise.
9840 (df_insn_refs_verify): Likewise.
9841 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9842 when invoking df_insn_delete.
9843 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9844 (set_unique_reg_note): Add checked cast.
9845 * final.c (cleanup_subreg_operands): Likewise.
9846 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9847 "insn" from rtx to rtx_insn *.
9848 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9849 "last" from rtx to rtx_insn *.
9850 * ira-emit.c (change_regs_in_insn): New function.
9851 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9852 Invoke change_regs_in_insn rather than change_regs.
9853 * ira.c (update_equiv_regs): Strengthen locals "insn",
9854 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9855 for_each_rtx_in_insn rather than for_each_rtx.
9856 * recog.c (confirm_change_group): Add checked casts.
9857 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9859 (peep2_fill_buffer): Add checked cast.
9860 * rtlanal.c (remove_note): Likewise.
9861 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9862 locals "next" "end" from rtx to rtx_insn *.
9864 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9866 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9868 (struct reg_use_data): Likewise for field "insn".
9869 (insn_cost): Likewise for param.
9870 (real_insn_for_shadow): Likewise for return type and param.
9871 (increase_insn_priority): Likewise for param 1.
9872 (debug_dependencies): Likewise for both params.
9874 * haifa-sched.c (insn_delay): Likewise for param "insn".
9875 (real_insn_for_shadow): Likewise for return type and param "insn".
9876 (update_insn_after_change): Likewise for param "insn".
9877 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9879 (insn_cost): Likewise for param "insn".
9880 (increase_insn_priority): Likewise.
9881 (calculate_reg_deaths): Likewise.
9882 (setup_insn_reg_pressure_info): Likewise.
9883 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9884 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9885 (model_recompute): Likewise.
9886 (must_restore_pattern_p): Likewise for param "next".
9887 (model_excess_cost): Likewise for param "insn".
9888 (queue_remove): Likewise.
9889 (adjust_priority): Likewise for param "prev".
9890 (update_register_pressure): Likewise for param "insn".
9891 (setup_insn_max_reg_pressure): Likewise for local "insn".
9892 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9893 (model_add_to_schedule): Likewise.
9894 (model_reset_queue_indices): Likewise for local "insn".
9895 (unschedule_insns_until): Strengthen local "recompute_vec" from
9896 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9897 "con" from rtx to rtx_insn *.
9898 (restore_last_backtrack_point): Likewise for both locals "x". Add
9900 (estimate_insn_tick): Likewise for param "insn".
9901 (commit_schedule): Likewise for params "prev_head", "tail" and
9903 (verify_shadows): Likewise for locals "i1", "i2".
9904 (dump_insn_stream): Likewise for params "head", "tail" and locals
9905 "next_tail", "insn".
9906 (schedule_block): Likewise for locals "insn", "x". Add a checked
9908 (fix_inter_tick): Likewise for params "head", "tail".
9909 (create_check_block_twin): Likewise for local "jump".
9910 (haifa_change_pattern): Likewise for param "insn".
9911 (haifa_speculate_insn): Likewise.
9912 (dump_new_block_header): Likewise for params "head", "tail".
9913 (fix_jump_move): Likewise for param "jump".
9914 (move_block_after_check): Likewise.
9915 (sched_init_insn_luid): Likewise for param "insn".
9916 (sched_init_luids): Likewise for local "insn".
9917 (insn_luid): Likewise for param "insn".
9918 (init_h_i_d): Likewise.
9919 (haifa_init_h_i_d): Likewise for local "insn".
9920 (haifa_init_insn): Likewise for param "insn".
9921 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9923 (create_insn_reg_use): Likewise for param "insn".
9924 (setup_insn_reg_uses): Likewise. Add a checked cast.
9925 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9926 "tail" from rtx to rtx_insn *.
9927 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9928 "insn", "next_tail".
9930 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9932 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9933 from rtx to rtx_insn *.
9934 (model_add_to_schedule): Likewise for locals "start", "end",
9937 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9939 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9941 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9942 "to" and locals "insn", "next", "copy". Remove now-redundant
9945 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9947 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9948 rtx_insn * and param 4 from rtx * to rtx_insn **.
9949 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9950 param 2 from rtx * to rtx_insn **.
9952 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9953 rtx_insn * and final param from rtx * to rtx_insn **.
9955 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9956 from rtx to rtx_insn *.
9957 (try_head_merge_bb): Likewise for both locals named "move_upto".
9958 * df-problems.c (can_move_insns_across): Likewise for params
9959 "from", "to", "across_from", "across_to" and locals "insn",
9960 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9962 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9963 from rtx to rtx_insn *.
9964 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9965 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9966 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9968 (noce_try_abs): Likewise.
9969 (noce_get_condition): Likewise for param "jump". Strengthen param
9970 "earliest" from rtx * to rtx_insn **.
9971 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9973 (find_cond_trap): Likewise.
9974 (dead_or_predicable): Likewise for local "earliest".
9975 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9977 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9978 and local "prev". Strengthen param "earliest" from rtx * to
9980 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9981 Strengthen param "earliest" from rtx * to rtx_insn **.
9983 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9985 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9986 "to" and local "insn" from rtx to rtx_insn *.
9988 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9990 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9991 from rtx to rtx_insn *.
9992 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9993 (code_motion_path_driver): Likewise for local "last_insn".
9994 (simplify_changed_insns): Likewise for local "insn".
9996 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9998 * rtl.h (push_to_sequence): Strengthen param from rtx to
10000 (push_to_sequence2): Likewise for both params.
10001 (delete_insns_since): Likewise for param.
10002 (reorder_insns_nobb): Likewise for all three params.
10003 (set_new_first_and_last_insn): Likewise for both params.
10005 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10006 rtx_insn *. Remove now-redundant cast.
10007 (set_last_insn): Likewise.
10009 * builtins.c (expand_builtin_return): Strengthen local
10010 "call_fusage" from rtx to rtx_insn *.
10011 * cfgrtl.c (create_basic_block_structure): Likewise for local
10013 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10014 "first", "last" and local "insn".
10015 (delete_insns_since): Likewise for param "from".
10016 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10018 (push_to_sequence): Likewise for param "first" and local "last".
10019 (push_to_sequence2): Likewise for params "first" and "last".
10020 * lra.c (emit_add3_insn): Likewise for local "last".
10021 (lra_emit_add): Likewise.
10022 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10024 (process_address_1): Likewise for locals "insn", last".
10025 * modulo-sched.c (ps_first_note): Likewise for return type.
10026 * optabs.c (expand_binop_directly): Likewise for param "last".
10028 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10030 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10032 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10034 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10036 * function.h (struct sequence_stack): Strengthen fields "first"
10037 and "last" from rtx to rtx_insn *.
10038 (struct emit_status): Likewise for fields "x_first_insn" and
10041 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10042 (set_first_insn): Add checked cast.
10043 (get_last_insn): Remove now-redundant checked cast.
10044 (set_last_insn): Add checked cast.
10046 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10047 "saved_first" and "saved_last" from rtx to rtx_insn *.
10049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10051 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10052 (unlink_insn_chain): Strengthen both params from rtx to
10055 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10057 (unlink_insn_chain): Likewise for params "first" and "last".
10058 Remove now-redundant checked cast.
10059 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10060 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10062 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10064 (add_insn): Likewise for param "insn" and local "prev".
10065 (add_insn_after_nobb): Likewise for both params and local "next".
10066 (add_insn_before_nobb): Likewise for both params and local "prev".
10067 (add_insn_after): Rename param "after" to "uncast_after",
10068 introducing local "after" with another checked cast.
10069 (add_insn_before): Rename params "insn" and "before", giving them
10070 "uncast_" prefixes, adding the old names back using checked casts.
10071 (emit_note_after): Likewise for param "after".
10072 (emit_note_before): Likewise for param "before".
10073 (emit_label): Add a checked cast.
10075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10077 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10078 "insn" from rtx to rtx_insn *.
10080 * cselib.c (cselib_record_sets_hook): Likewise.
10082 * var-tracking.c (add_with_sets): Likewise, renaming back from
10083 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10086 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10088 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10089 and "header_" from rtx to rtx_insn *.
10090 (struct basic_block_d): Likewise for field "head_" within "x"
10091 field of union basic_block_il_dependent.
10092 (BB_HEAD): Drop function...
10093 (SET_BB_HEAD): ...and this function in favor of...
10094 (BB_HEAD): ...reinstate macro.
10095 (BB_END): Drop function...
10096 (SET_BB_END): ...and this function in favor of...
10097 (BB_END): ...reinstate macro.
10098 (BB_HEADER): Drop function...
10099 (SET_BB_HEADER): ...and this function in favor of...
10100 (BB_HEADER): ...reinstate macro.
10102 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10103 (fix_crossing_unconditional_branches): Likewise.
10104 * caller-save.c (save_call_clobbered_regs): Likewise.
10105 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10106 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10107 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10108 (merge_blocks_move_successor_nojumps): Likewise.
10109 (outgoing_edges_match): Update use of for_each_rtx to
10110 for_each_rtx_in_insn.
10111 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10112 (expand_gimple_cond): Likewise.
10113 (expand_gimple_tailcall): Likewise.
10114 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10116 (construct_exit_block): Drop use of SET_BB_END.
10117 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10119 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10120 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10121 SET_BB_HEAD and SET_BB_END.
10122 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10124 (rtl_delete_block): Drop use of SET_BB_HEAD.
10125 (rtl_split_block): Drop use of SET_BB_END.
10126 (emit_nop_for_unique_locus_between): Likewise.
10127 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10128 (block_label): Drop use of SET_BB_HEAD.
10129 (fixup_abnormal_edges): Drop use of SET_BB_END.
10130 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10131 (relink_block_chain): Likewise.
10132 (fixup_reorder_chain): Drop use of SET_BB_END.
10133 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10134 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10135 rtx_insn **. Drop use of SET_BB_HEADER.
10136 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10138 (BB_HEAD): Delete this function.
10139 (SET_BB_HEAD): Likewise.
10140 (BB_END): Likewise.
10141 (SET_BB_END): Likewise.
10142 (BB_HEADER): Likewise.
10143 (SET_BB_HEADER): Likewise.
10144 * emit-rtl.c (add_insn_after): Rename param "insn" to
10145 "uncast_insn", adding a new local "insn" and a checked cast to
10146 rtx_insn *. Drop use of SET_BB_END.
10147 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10148 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10149 (reorder_insns): Drop use of SET_BB_END.
10150 (emit_insn_after_1): Strengthen param "first" and locals "last",
10151 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10152 (emit_pattern_after_noloc): Add checked cast.
10153 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10154 (restore_other_notes): Likewise.
10155 (move_insn): Likewise.
10156 (sched_extend_bb): Likewise.
10157 (fix_jump_move): Likewise.
10158 * ifcvt.c (noce_process_if_block): Likewise.
10159 (dead_or_predicable): Likewise.
10160 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10161 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10162 * sel-sched-ir.c (sel_move_insn): Likewise.
10163 * sel-sched.c (move_nop_to_previous_block): Likewise.
10165 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10167 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10169 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10171 * basic-block.h (create_basic_block_structure): Strengthen params
10172 1 "head" and 2 "end" from rtx to rtx_insn *.
10173 * cfgrtl.c (create_basic_block_structure): Likewise.
10174 (rtl_create_basic_block): Update casts from void * to rtx to
10175 rtx_insn *, so that we can pass them as rtx_insn * to
10176 create_basic_block_structure.
10177 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10179 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10181 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10183 (check_for_inc_dec): Strengthen param "insn" from rtx to
10186 * cselib.h (cselib_process_insn): Likewise.
10188 * cselib.c (cselib_record_sets): Likewise.
10189 (cselib_process_insn): Likewise.
10191 * dse.c (struct insn_info): Likewise for field "insn".
10192 (check_for_inc_dec_1): Likewise for local "insn".
10193 (check_for_inc_dec): Likewise for param "insn".
10194 (scan_insn): Likewise.
10195 (dse_step1): Likewise for local "insn".
10197 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10198 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10200 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10202 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10203 from rtx to rtx_insn *.
10204 (DEP_PRO): Delete this function and...
10205 (SET_DEP_PRO): ...this function in favor of...
10206 (DEP_PRO): ...reinstate this macro.
10207 (DEP_CON): Delete this function and...
10208 (SET_DEP_CON): ...this function in favor of...
10209 (DEP_CON): ...reinstate this old macro.
10210 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10211 (init_dep): Likewise.
10212 (set_priorities): Likewise for both params.
10213 (sd_copy_back_deps): Likewise for params 1 and 2.
10215 * haifa-sched.c (priority): Likewise for param "insn" and local
10217 (set_priorities): Likewise for params "head" and "tail" and local
10219 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10221 (add_to_speculative_block): Add a checked cast.
10222 (create_check_block_twin): Drop use of SET_DEP_CON.
10223 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10226 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10227 Drop use of SET_DEP_PRO
10228 (init_dep): Strengthen params "pro" and "con" from rtx to
10230 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10231 use of SET_DEP_CON.
10234 (SET_DEP_PRO): Delete.
10235 (SET_DEP_CON): Delete.
10237 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10239 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10240 from rtx to rtx_insn *.
10241 (VINSN_INSN_RTX): Eliminate rvalue function and...
10242 (SET_VINSN_INSN): ...lvalue function in favor of...
10243 (VINSN_INSN_RTX): reinstate this old macro.
10245 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10246 in favor of VINSN_INSN_RTX.
10247 (VINSN_INSN_RTX): Delete this function.
10248 (SET_VINSN_INSN_RTX): Likewise.
10250 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10252 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10253 (BND_TO): Delete this function and...
10254 (SET_BND_TO): ...this functions in favor of...
10255 (BND_TO): ...reinstating this macro.
10256 (struct _fence): Strengthen field "executing_insns" from
10257 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10258 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10259 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10260 and param "insn" from rtx to insn_t.
10261 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10264 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10266 (rtx_vec_t): Likewise.
10267 (struct sched_deps_info_def): Strengthen param of "start_insn"
10268 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10269 "note_mem_dep" callback and first param of "note_dep" callback.
10271 * haifa-sched.c (add_to_speculative_block): Strengthen param
10272 "insn" from rtx to rtx_insn *.
10273 (clear_priorities): Likewise.
10274 (calc_priorities): Likewise for local "insn".
10276 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10277 Remove redundant checked cast.
10278 (haifa_note_mem_dep): Likewise for param "pending_insn".
10279 (haifa_note_dep): Likewise for param "elem".
10280 (note_mem_dep): Likewise for param "e".
10281 (sched_analyze_1): Add checked casts.
10282 (sched_analyze_2): Likewise.
10284 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10285 from rtx to rtx_insn *.
10286 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10287 from vec<rtx> * to vec<rtx_insn *> *.
10289 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10291 (flist_add): Strengthen param "executing_insns" from
10292 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10293 (advance_deps_context): Remove now-redundant checked cast.
10294 (init_fences): Replace uses of NULL_RTX with NULL.
10295 (merge_fences): Strengthen params "last_scheduled_insn" and
10296 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10297 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10298 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10299 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10300 an instruction, rather than doing double-duty as a pattern.
10301 (return_nop_to_pool): Update for change of insn_t.
10302 (deps_init_id): Remove now-redundant checked cast.
10303 (struct sched_scan_info_def): Strengthen param of "init_insn"
10304 callback from rtx to insn_t.
10305 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10306 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10308 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10309 "end" from rtx to rtx_insn *.
10310 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10311 (rtx insn_rtx, bool force_unique_p)
10312 (BND_TO): Delete function.
10313 (SET_BND_TO): Delete function.
10315 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10317 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10318 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10320 (undo_transformations): Likewise for param "insn".
10321 (update_liveness_on_insn): Likewise.
10322 (compute_live_below_insn): Likewise for param "insn" and local
10324 (update_data_sets): Likewise for param "insn".
10325 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10326 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10327 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10329 (move_cond_jump): Likewise for param "insn".
10330 (move_cond_jump): Drop use of SET_BND_TO.
10331 (compute_av_set_on_boundaries): Likewise.
10332 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10333 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10334 from rtx to rtx_insn *.
10335 (maybe_emit_renaming_copy): Likewise for param "insn".
10336 (maybe_emit_speculative_check): Likewise.
10337 (handle_emitting_transformations): Likewise.
10338 (remove_insn_from_stream): Likewise.
10339 (code_motion_process_successors): Strengthen local "succ" from rtx
10342 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10344 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10345 ilist_t, not _xlist_t;
10346 (ILIST_INSN): Define in terms of new union field "insn".
10347 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10349 (struct _list_node): Add new field "insn" to the union, of type
10351 (ilist_add): Replace macro with an inline function, requiring an
10353 (ilist_remove): Define this macro directly in terms of
10354 _list_remove, rather than indirectly via _xlist_remove.
10355 (ilist_clear): Likewise, in terms of _list_clear rather than
10357 (ilist_is_in_p): Replace macro with an inline function, requiring
10359 (_list_iter_cond_insn): New function.
10360 (ilist_iter_remove): Define this macro directly in terms of
10361 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10362 (ilist_iterator): Define directly in terms of _list_iterator
10363 rather than indirectly through _xlist_iterator.
10364 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10365 than in terms of _FOR_EACH_X.
10366 (FOR_EACH_INSN_1): Likewise.
10368 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10372 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10373 DECL_HARD_REGISTER and return for invalid register specifications.
10374 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10375 DECL_HARD_REGISTER, call expand_one_error_var.
10376 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10377 CC_REGNUM with non-MODE_CC modes.
10378 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10380 2014-08-26 Marek Polacek <polacek@redhat.com>
10383 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10385 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10387 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10388 qi cost; add di cost.
10389 (cortexa57_addrcost_table): Likewise.
10391 2014-08-26 Marek Polacek <polacek@redhat.com>
10394 * expr.c (is_aligning_offset): Remove logical not.
10396 2014-08-26 Marek Polacek <polacek@redhat.com>
10399 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10400 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10402 2014-08-26 Richard Biener <rguenther@suse.de>
10404 PR tree-optimization/62175
10405 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10406 expand possibly trapping operations.
10408 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10410 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10411 "insn" from rtx to rtx_insn *.
10412 (permute_load): Likewise for param "insn".
10413 (permute_store): Likewise.
10414 (handle_special_swappables): Likewise for local "insn".
10415 (replace_swap_with_copy): Likewise for locals "insn" and
10417 (rs6000_analyze_swaps): Likewise for local "insn".
10419 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10421 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10426 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10427 "note_list" from rtx to rtx_insn *.
10428 (BB_NOTE_LIST): Replace this function and...
10429 (SET_BB_NOTE_LIST): ...this function with...
10430 (BB_NOTE_LIST): ...the former macro implementation.
10432 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10433 local "from_start" from rtx to rtx_insn *. Strengthen param
10434 "to_endp" from rtx * to rtx_insn **.
10436 * haifa-sched.c (concat_note_lists): Likewise.
10437 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10439 (sel_restore_notes): Likewise.
10440 (move_bb_info): Likewise.
10441 (BB_NOTE_LIST): Delete this function.
10442 (SET_BB_NOTE_LIST): Delete this function.
10443 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10444 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10448 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10449 from rtx * to rtx_insn **.
10450 (reorder2): Likewise.
10451 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10452 from rtx to rtx_insn *.
10454 * doc/tm.texi: Update mechanically for above change to target.def.
10456 * sched-int.h (note_list): Strengthen this variable from rtx to
10458 (remove_notes): Likewise for both params.
10459 (restore_other_notes): Likewise for return type and first param.
10460 (struct ready_list): Strengthen field "vec" from rtx * to
10462 (struct dep_replacement): Strenghten field "insn" from rtx to
10464 (struct deps_desc): Likewise for fields "last_debug_insn",
10466 (struct haifa_sched_info): Likewise for callback field
10467 "can_schedule_ready_p"'s param, for first param of "new_ready"
10468 callback field, for both params of "rank" callback field, for
10469 first field of "print_insn" callback field (with a const), for
10470 both params of "contributes_to_priority" callback, for param
10471 of "insn_finishes_block_p" callback, for fields "prev_head",
10472 "next_tail", "head", "tail", for first param of "add_remove_insn"
10473 callback, for first param of "begin_schedule_ready" callback, for
10474 both params of "begin_move_insn" callback, and for second param
10475 of "advance_target_bb" callback.
10476 (add_dependence): Likewise for params 1 and 2.
10477 (sched_analyze): Likewise for params 2 and 3.
10478 (deps_analyze_insn): Likewise for param 2.
10479 (ready_element): Likewise for return type.
10480 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10481 (try_ready): Strenghten param from rtx to rtx_insn *.
10482 (sched_emit_insn): Likewise for return type.
10483 (record_delay_slot_pair): Likewise for params 1 and 2.
10484 (add_delay_dependencies): Likewise for param.
10485 (contributes_to_priority): Likewise for both params.
10486 (find_modifiable_mems): Likewise.
10488 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10489 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10490 "first_older_only_insn" from rtx to rtx_insn *.
10491 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10494 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10495 "last_scheduled_iter0" from rtx to rtx_insn *.
10496 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10497 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10498 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10499 "insn" from rtx to rtx_insn *.
10500 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10502 (c6x_sched_reorder2): Strengthen param "ready" and locals
10503 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10504 "insn" from rtx to rtx_insn *.
10505 (c6x_variable_issue): Add a checked cast when assigning from insn
10506 to ss.last_scheduled_iter0.
10507 (split_delayed_branch): Strengthen param "insn" and local "i1"
10508 from rtx to rtx_insn *.
10509 (split_delayed_nonbranch): Likewise.
10510 (undo_split_delayed_nonbranch): Likewise for local "insn".
10511 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10512 "entry_after", "end_packet", "head_insn", "tail_insn",
10513 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10514 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10515 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10516 but add a checked cast on loop->start_label. Consolidate calls to
10517 avoid assigning result of gen_spkernel to "insn", now an
10520 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10521 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10523 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10524 rtx_insn **. Strengthen locals "top", "next" from rtx to
10526 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10527 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10528 (add_parameter_dependencies): Strengthen params "call", "head" and
10529 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10530 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10531 (add_dependee_for_func_arg): Likewise for param "arg" and local
10533 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10534 "tail" and locals "insn", "first_arg".
10536 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10537 for params "head", "tail" and locals "insn", "next", "next_tail".
10538 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10539 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10540 "insn", "lowest", "highest" from rtx to rtx_insn *.
10541 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10543 (ia64_sched_reorder2): Likewise.
10545 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10546 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10547 from rtx * to rtx_insn **.
10548 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10550 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10552 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10553 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10556 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10557 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10559 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10560 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10561 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10563 (vr4130_reorder): Likewise.
10564 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10566 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10568 (mips_sched_reorder): Likewise.
10569 (mips_sched_reorder2): Likewise.
10571 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10573 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10574 Strengthen local "tmp" from rtx to rtx_insn *.
10575 (rs6000_sched_reorder2): Likewise.
10577 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10578 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10579 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10580 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10582 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10583 "tmp2" from rtx to rtx_insn *.
10584 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10585 Strengthen local "insn" from rtx to rtx_insn *.
10586 (ready_reorder): Strengthen param "ready" from rtx * to
10587 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10588 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10589 (sh_reorder2): Likewise.
10591 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10592 local "insn" from rtx to rtx_insn *.
10594 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10596 (scheduled_insns): Strengthen this variable from vec<rtx> to
10598 (set_modulo_params): Likewise for locals "i1", "i2".
10599 (record_delay_slot_pair): Likewise for params "i1", "i2".
10600 (add_delay_dependencies): Likewise for param "insn".
10601 (cond_clobbered_p): Likewise.
10602 (recompute_todo_spec): Likewise for local "prev".
10603 (last_scheduled_insn): Likewise for this variable.
10604 (nonscheduled_insns_begin): Likewise.
10605 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10607 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10609 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10610 Strengthen local "insn" from rtx to rtx_insn *.
10611 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10612 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10613 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10614 (ready_remove_first): Likewise for return type and local "t".
10615 (ready_element): Likewise for return type.
10616 (ready_remove): Likewise for return type and local "t".
10617 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10618 (check_clobbered_conditions): Strengthen local "x" from rtx to
10619 rtx_insn *, adding a checked cast.
10620 (schedule_insn): Likewise for param "insn".
10621 (remove_notes): Likewise for params "head", "tail" and locals
10622 "next_tail", "insn", "next".
10623 (struct haifa_saved_data): Likewise for fields
10624 "last_scheduled_insn", "nonscheduled_insns_begin".
10625 (save_backtrack_point): Update for change to field "vec" of
10627 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10629 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10630 from rtx to rtx_insn *
10631 (resolve_dependencies): Strengthen param "insn" from rtx to
10633 (restore_other_notes): Likewise for return type, for param "head"
10634 and local "note_head".
10635 (undo_all_replacements): Likewise for local "insn".
10636 (first_nonscheduled_insn): Likewise for return type and local "insn".
10637 (queue_to_ready): Likewise for local "insn", adding checked casts.
10638 (early_queue_to_ready): Likewise for local "insn".
10639 (debug_ready_list_1): Strengthen local "p" from rtx * to
10641 (move_insn): Strengthen param "insn" and local "note" from rtx to
10643 (insn_finishes_cycle_p): Likewise for param "insn".
10644 (max_issue): Likewise for local "insn".
10645 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10647 (commit_schedule): Strengthen param "prev_head" and local "insn"
10648 from rtx to rtx_insn *
10649 (prune_ready_list): Likewise for local "insn".
10650 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10651 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10652 (set_priorities): Likewise for local "prev_head".
10653 (try_ready): Likewise for param "next".
10654 (fix_tick_ready): Likewise.
10655 (change_queue_index): Likewise.
10656 (sched_extend_ready_list): Update for change to field "vec" of
10658 (generate_recovery_code): Strengthen param "insn" from rtx to
10660 (begin_speculative_block): Likewise.
10661 (create_check_block_twin): Likewise for param "insn" and locals
10662 "label", "check", "twin". Introduce local "check_pat" to avoid
10663 "check" being used as a plain rtx before being used as an insn.
10664 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10665 extracting elements from ready_list.
10666 (sched_remove_insn): Strengthen param "insn" from rtx to
10668 (sched_emit_insn): Likewise for return type.
10669 (ready_remove_first_dispatch): Likewise for return type and local
10672 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10674 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10677 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10678 from rtx to rtx_insn *.
10679 (add_dependence_list): Likewise for param "insn". Add a checked
10681 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10682 to rtx_insn *. Strengthen param "list_p" from rtx * to
10684 (chain_to_prev_insn): Strengthen param "insn" and locals
10685 "prec_nonnote", "i" from rtx to rtx_insn *.
10686 (flush_pending_lists): Likewise for param "insn".
10687 (cur_insn): Likewise for this variable.
10688 (haifa_start_insn): Add a checked cast.
10689 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10690 (sched_analyze_reg): Likewise for param "insn".
10691 (sched_analyze_1): Likewise.
10692 (sched_analyze_2): Likewise. Add checked casts.
10693 (sched_analyze_insn): Likewise. Also for local "prev".
10694 (deps_analyze_insn): Likewise for param "insn".
10695 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10696 (add_dependence_1): Likewise for params "insn", "elem".
10697 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10698 (parse_add_or_inc): Likewise for param "insn".
10699 (find_inc): Likewise for local "inc_cand".
10700 (find_modifiable_mems): Likewise for params "head", "tail" and
10701 locals "insn", "next_tail".
10703 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10704 (begin_schedule_ready): Likewise for param "insn".
10705 (begin_move_insn): Likewise for params "insn" and "last".
10706 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10708 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10709 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10710 (ebb_add_remove_insn): Likewise for param "insn".
10711 (advance_target_bb): Likewise.
10713 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10715 (check_live): Likewise for param "insn".
10716 (init_ready_list): Likewise for local "insn".
10717 (can_schedule_ready_p): Likewise for param "insn".
10718 (begin_schedule_ready): Likewise.
10719 (new_ready): Likewise for param "next".
10720 (rgn_print_insn): Likewise for param "insn".
10721 (rgn_rank): Likewise for params "insn1", "insn2".
10722 (contributes_to_priority): Likewise for params "next", "insn".
10723 (rgn_insn_finishes_block_p): Likewise for param "insn".
10724 (add_branch_dependences): Likewise for params "head", "tail" and
10725 locals "insn", "last".
10726 (rgn_add_remove_insn): Likewise for param "insn".
10727 (advance_target_bb): Likewise.
10729 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10730 const_rtx to const rtx_insn *.
10732 * sel-sched-dump.h (sel_print_insn): Likewise.
10734 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10735 (deps_init_id): Likewise.
10737 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10738 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10741 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10743 * output.h (final_start_function): Strengthen param 1 from rtx to
10746 * final.c (final_start_function): Likewise, renaming back from
10747 "uncast_first" to "first", and dropping the checked cast from rtx
10750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10752 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10753 * final.c (final): Likewise. Rename param back from
10754 "uncast_first" to "first" and eliminate the checked cast from rtx
10757 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10759 * output.h (shorten_branches): Strengthen param from rtx to
10762 * final.c (shorten_branches): Likewise, renaming param back from
10763 "uncast_first" to "first", and dropping the checked cast from rtx
10766 * genattr.c (gen_attr): Likewise when writing out the prototype of
10769 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10771 * sched-int.h (struct haifa_sched_info): Strengthen fields
10772 "prev_head" and "next_tail" from rtx to rtx_insn *.
10774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10776 * rtl.h (rtx_jump_table_data::get_labels): New method.
10777 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10778 with use of the new rtx_jump_table_data::get_labels method.
10779 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10780 to rtx_jump_table_data *. Simplify by using get_labels method.
10781 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10782 a dyn_cast, introducing local "table", using it to replace
10783 label-lookup logic with a get_labels method call.
10784 (patch_jump_insn): Simplify using get_labels method.
10785 * dwarf2cfi.c (create_trace_edges): Likewise.
10786 * rtlanal.c (label_is_jump_target_p): Likewise.
10788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10790 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10793 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10794 (unshare_all_rtl_again): Likewise, also for local "p".
10796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10798 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10800 * cfgrtl.c (delete_insn_and_edges): Likewise.
10802 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10804 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10805 from rtx to rtx_insn *.
10807 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10811 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10812 locals "returnjump", "epilogue_end", "insn", "next".
10814 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10815 "returnjump" from rtx * to rtx_insn **.
10816 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10820 * basic-block.h (struct edge_def). Strengthen "r" within
10821 union edge_def_insns from rtx to rtx_insn *.
10823 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10824 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10826 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10827 from rtx to rtx_insn *.
10828 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10830 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10831 (reg_used_on_edge): Likewise.
10832 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10833 (gt_pch_nx): New overload for rtx_insn *&.
10834 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10835 from rtx to rtx_insn *.
10837 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10839 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10840 from rtx to rtx_insn *.
10841 (BB_FOOTER): Replace function with access macro.
10842 (SET_BB_FOOTER): Delete.
10844 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10846 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10847 (emit_barrier_after_bb): Likewise.
10848 (record_effective_endpoints): Likewise.
10849 (relink_block_chain): Likewise.
10850 (fixup_fallthru_exit_predecessor): Likewise.
10851 (cfg_layout_duplicate_bb): Likewise.
10852 (cfg_layout_split_block): Likewise.
10853 (cfg_layout_delete_block): Likewise.
10854 (cfg_layout_merge_blocks): Likewise.
10855 (BB_FOOTER): Delete function.
10856 (SET_BB_FOOTER): Delete function.
10857 * combine.c (update_cfg_for_uncondjump): Replace uses of
10858 SET_BB_FOOTER with BB_FOOTER.
10860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10862 * except.h (struct eh_landing_pad_d): Strengthen field
10863 "landing_pad" from rtx to rtx_code_label *.
10865 * except.c (sjlj_emit_dispatch_table): Likewise for param
10867 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10871 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10872 first param from rtx to rtx_insn *.
10873 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10874 field "set_frame_ptr_insn".
10875 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10876 "csend" from rtx to rtx_code_label *.
10877 (xtensa_expand_atomic): Likewise for local "csloop".
10878 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10880 (xtensa_call_tls_desc): Likewise for return type and locals
10881 "call_insn", "insns".
10882 (xtensa_legitimize_tls_address): Likewise for local "insns".
10883 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10885 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10887 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10888 first param from rtx to rtx_insn *.
10889 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10894 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10895 Strengthen param 1 from rtx to rtx_insn *.
10896 (tilepro_output_cbranch): Likewise.
10897 (tilepro_adjust_insn_length): Likewise.
10898 (tilepro_final_prescan_insn): Likewise for sole param.
10900 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10901 Likewise for local "last".
10902 (cbranch_predicted_p): Likewise for param "insn".
10903 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10904 (tilepro_output_cbranch_with_opcode): Likewise.
10905 (tilepro_output_cbranch): Likewise.
10906 (frame_emit_load): Likewise for return type and locals "seq",
10908 (emit_sp_adjust): Likewise for return type and local "insn".
10909 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10911 (tilepro_adjust_insn_length): Likewise for param "insn".
10912 (next_insn_to_bundle): Likewise for return type and params
10914 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10915 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10917 (match_addli_pcrel): Likewise for param "insn".
10918 (replace_addli_pcrel): Likewise.
10919 (match_auli_pcrel): Likewise.
10920 (replace_auli_pcrel): Likewise.
10921 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10923 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10924 "queue", "next_queue", "prev".
10925 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10926 (tilepro_final_prescan_insn): Likewise for param "insn".
10928 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10930 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10931 Strengthen param 1 from rtx to rtx_insn *.
10932 (tilegx_output_cbranch): Likewise.
10933 (tilegx_adjust_insn_length): Likewise.
10934 (tilegx_final_prescan_insn): Likewise for sole param.
10936 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10938 (cbranch_predicted_p): Likewise for param "insn".
10939 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10940 (tilegx_output_cbranch_with_opcode): Likewise.
10941 (tilegx_output_cbranch): Likewise.
10942 (frame_emit_load): Likewise for return type.
10943 (set_frame_related_p): Likewise for locals "seq", "insn".
10944 (emit_sp_adjust): Likewise for return type, and for local "insn".
10945 Introduce local "pat" for use in place of "insn" where the latter
10946 isn't an instruction.
10947 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10948 from rtx to rtx_insn *.
10949 (tilegx_adjust_insn_length): Likewise for param "insn".
10950 (next_insn_to_bundle): Likewise for return type and params "r" and
10952 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10954 (replace_insns): Likewise for params "old_insn", "new_insns".
10955 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10957 (replace_mov_pcrel_step2): Likewise.
10958 (replace_mov_pcrel_step3): Likewise.
10959 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10961 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10962 "queue", "next_queue", "prev".
10963 (tilegx_output_mi_thunk): Likewise for local "insn".
10964 (tilegx_final_prescan_insn): Likewise for param "insn".
10966 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10968 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10970 (frame_emit_load): Likewise.
10971 (frame_emit_add_imm): Likewise, also for local "insn".
10972 (spu_expand_prologue): Likewise for local "insn".
10973 (struct spu_bb_info): Likewise for field "prop_jump".
10974 (emit_nop_for_insn): Likewise for param "insn" and local
10976 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10978 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10979 locals "hint", "insn".
10980 (get_branch_target): Likewise for param "branch".
10981 (insn_clobbers_hbr): Likewise for param "insn".
10982 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10983 locals "insn", "before_4", "before_16".
10984 (insert_hbrp): Likewise for local "insn".
10985 (spu_machine_dependent_reorg): Likewise for locals "branch",
10986 "insn", "next", "bbend".
10987 (uses_ls_unit): Likewise for param "insn".
10988 (get_pipe): Likewise.
10989 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10990 introducing a checked cast.
10991 (spu_sched_adjust_cost): Likewise for params "insn" and
10993 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10994 (spu_sms_res_mii): Likewise.
10996 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10998 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10999 from rtx to rtx_insn *.
11000 (output_cbranch): Likewise for param 6.
11001 (output_return): Likewise for param 1.
11002 (output_sibcall): Likewise.
11003 (output_v8plus_shift): Likewise.
11004 (output_v8plus_mult): Likewise.
11005 (output_v9branch): Likewise for param 7.
11006 (output_cbcond): Likewise for param 3.
11008 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11010 (sparc_legitimize_pic_address): Likewise.
11011 (sparc_emit_call_insn): Likewise.
11012 (emit_save_or_restore_regs): Likewise.
11013 (emit_window_save): Likewise for return type and local "insn".
11014 (sparc_expand_prologue): Likewise for local "insn".
11015 (sparc_flat_expand_prologue): Likewise.
11016 (output_return): Likewise for param "insn".
11017 (output_sibcall): Likewise for param "insn" and local "delay".
11018 (output_ubranch): Likewise for param "insn".
11019 (output_cbranch): Likewise.
11020 (output_cbcond): Likewise.
11021 (output_v9branch): Likewise.
11022 (output_v8plus_shift): Likewise.
11023 (sparc_output_mi_thunk): Likewise for local "insn".
11024 (get_some_local_dynamic_name): Likewise.
11025 (output_v8plus_mult): Likewise for param "insn".
11027 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11029 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11030 from rtx to rtx_insn *.
11031 (output_branchy_insn): Likewise for param 3.
11032 (output_far_jump): Likewise for param 1.
11033 (final_prescan_insn): Likewise.
11034 (sh_insn_length_adjustment): Likewise for sole param.
11036 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11037 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11039 (sh_emit_compare_and_set): Likewise for local "lab".
11040 (output_far_jump): Strengthen param "insn" and local "prev" from
11042 (output_branchy_insn): Likewise for param "insn" and local
11044 (output_ieee_ccmpeq): Likewise for param "insn".
11045 (struct label_ref_list_d): Strengthen field "label" from rtx to
11047 (pool_node): Likewise.
11048 (pool_window_label): Likewise for this global.
11049 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11050 (dump_table): Strengthen params "start", "barrier" and local
11051 "scan" from rtx to rtx_insn *.
11052 (broken_move): Likewise for param "insn".
11053 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11054 Strengthen param "first_mova" from rtx * to rtx_insn **.
11055 (mova_p): Likewise for param "insn".
11056 (fixup_mova): Likewise for param "mova".
11057 (find_barrier): Likewise for return type, params "mova" and
11058 "from", and locals "barrier_before_mova", "found_barrier",
11059 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11060 "label" from rtx to rtx_code_label *.
11061 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11063 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11064 (split_branches): Likewise for param "first" and local "insn".
11065 (final_prescan_insn): Likewise for param "insn".
11066 (sequence_insn_p): Likewise for locals "prev", "next".
11067 (sh_insn_length_adjustment): Likewise for param "insn".
11068 (sh_can_redirect_branch): Likewise for local "insn".
11069 (find_r0_life_regions): Likewise for locals "end", "insn".
11070 (sh_output_mi_thunk): Likewise for local "insns".
11072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11074 * config/score/score.c (score_output_mi_thunk): Strengthen local
11075 "insn" from rtx to rtx_insn *.
11076 (score_prologue): Likewise.
11078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11080 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11081 1 from rtx to rtx_insn *.
11082 (s390_emit_jump): Likewise for return type.
11083 (s390_emit_call): Likewise.
11084 (s390_load_got): Likewise.
11086 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11088 (s390_match_ccmode): Likewise for param "insn".
11089 (s390_emit_jump): Likewise for return type.
11090 (s390_split_branches): Likewise for local "label".
11091 (struct constant): Strengthen field "label" from rtx to
11093 (struct constant_pool): Likewise for field "label". Strengthen
11094 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11096 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11098 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11099 (s390_end_pool): Likewise.
11100 (s390_dump_pool): Likewise for local "insn".
11101 (s390_mainpool_start): Likewise.
11102 (s390_chunkify_start): Likewise.
11103 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11104 with insns. Strengthen locals "label", "jump", "barrier", "next",
11105 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11106 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11108 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11109 "jump", "label", "next_insn".
11110 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11111 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11113 (s390_load_got): Likewise for return type and local "insns".
11114 (s390_save_gprs_to_fprs): Likewise for local "insn".
11115 (s390_restore_gprs_from_fprs): Likewise.
11116 (pass_s390_early_mach::execute): Likewise.
11117 (s390_emit_prologue): Likewise for local "insns".
11118 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11120 (s390_emit_call): Strengthen return type and local "insn" from
11122 (s390_emit_tpf_eh_return): Likewise for local "insn".
11123 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11124 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11125 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11127 (s390_non_addr_reg_read_p): Likewise for param "insn".
11128 (find_cond_jump): Likewise for return type and param "insn".
11129 (s390_swap_cmp): Likewise for param "insn".
11130 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11131 "prev_insn", "next_insn".
11132 (s390_reorg): Likewise for locals "insn", "target".
11133 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11134 (s390_sched_variable_issue): For now, rename param "insn" to
11135 "uncast_insn", introducing a checked cast.
11136 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11138 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11139 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11141 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11143 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11144 param from rtx to rtx_insn *.
11145 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11149 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11150 4 from rtx to rtx_insn *.
11151 (rs6000_final_prescan_insn): Likewise for first param.
11152 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11154 (rs6000_get_some_local_dynamic_name): Likewise.
11155 (output_cbranch): Likewise for param "insn".
11156 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11157 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11158 (rs6000_emit_allocate_stack): Likewise for local "insn".
11159 (load_cr_save): Likewise.
11160 (restore_saved_cr): Likewise.
11161 (restore_saved_lr): Likewise.
11162 (emit_cfa_restores): Likewise.
11163 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11164 "deleted_debug_label".
11165 (rs6000_output_mi_thunk): Likewise for local "insn".
11166 (rs6000_final_prescan_insn): Likewise for param "insn".
11168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11170 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11171 Strengthen param "insn" from rtx to rtx_insn *.
11172 * config/picochip/picochip.c (picochip_current_prescan_insn):
11173 Likewise for this variable.
11174 (picochip_final_prescan_insn): Likewise for param "insn".
11176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11178 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11179 from rtx to rtx_insn *.
11180 (pa_output_indirect_call): Likewise.
11181 (pa_adjust_insn_length): Likewise.
11182 (pa_attr_length_millicode_call): Likewise.
11183 (pa_attr_length_call): Likewise.
11184 (pa_attr_length_indirect_call): Likewise.
11186 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11188 (pa_attr_length_millicode_call): Likewise.
11189 (pa_attr_length_call): Likewise.
11190 (pa_output_call): Likewise.
11191 (pa_attr_length_indirect_call): Likewise.
11192 (pa_output_indirect_call): Likewise.
11194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11196 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11197 Strengthen first param from rtx to rtx_insn *.
11198 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11201 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11203 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11204 type from rtx to rtx_insn *.
11205 (mips_expand_call): Likewise.
11206 (mips_adjust_insn_length): Likewise for first param.
11207 (mips_output_conditional_branch): Likewise.
11208 (mips_output_order_conditional_branch): Likewise.
11209 (mips_final_prescan_insn): Likewise.
11211 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11212 rtx_insn * for the SEQUENCE case.
11213 (SEQ_END): Likewise.
11214 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11215 (mips_emit_call_insn): Likewise, also for local "insn".
11216 (mips16_gp_pseudo_reg): Likewise for local "scan".
11217 (mips16_build_call_stub): Likewise for return type and for local
11218 "insn". Introduce a new local "pattern" so that "insn" can indeed
11220 (mips_expand_call): Strengthen return type and local "insn" from
11222 (mips_block_move_loop): Strengthen local "label" from rtx to
11224 (mips_expand_synci_loop): Likewise for locals "label",
11226 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11228 (mips16e_collect_argument_saves): Likewise for locals "insn",
11230 (mips_find_gp_ref): Likewise for param of callback for "pred"
11231 param, and for local "insn".
11232 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11233 (mips_insn_has_flexible_gp_ref_p): Likewise.
11234 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11236 (mips_epilogue_set_cfa): Likewise for local "insn".
11237 (mips_expand_epilogue): Likewise.
11238 (mips_adjust_insn_length): Likewise for param "insn".
11239 (mips_output_conditional_branch): Likewise.
11240 (mips_output_order_conditional_branch): Likewise.
11241 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11242 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11243 "falu2_turn_enabled_insn".
11244 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11245 "done_label" from rtx to rtx_code_label *.
11246 (struct mips16_constant): Likewise for field "label".
11247 (mips16_add_constant): Likewise for return type.
11248 (mips16_emit_constants_1): Strengthen return type and param "insn"
11249 from rtx to rtx_insn *.
11250 (mips16_emit_constants): Likewise for param "insn".
11251 (mips16_insn_length): Likewise.
11252 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11253 to rtx_code_label *.
11254 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11255 from rtx to rtx_insn *.
11256 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11257 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11258 (r10k_simplify_address): Strengthen param "insn" and local
11259 "def_insn" from rtx to rtx_insn *.
11260 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11262 (r10k_needs_protection_p_1): Update target type of cast of data
11263 from to rtx to rtx_insn *.
11264 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11265 rtx * to rtx_insn **.
11266 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11268 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11269 (mips_call_expr_from_insn): Likewise for param "insn".
11270 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11271 (mips_find_pic_call_symbol): Likewise for param "insn".
11272 (mips_annotate_pic_calls): Likewise for local "insn".
11273 (mips_sim_insn): Likewise for this variable.
11274 (struct mips_sim): Likewise for field "insn" within elements of
11276 (mips_sim_wait_reg): Likewise for param "insn".
11277 (mips_sim_wait_regs): Likewise.
11278 (mips_sim_wait_units): Likewise.
11279 (mips_sim_wait_insn): Likewise.
11280 (mips_sim_issue_insn): Likewise.
11281 (mips_sim_finish_insn): Likewise.
11282 (mips_seq_time): Likewise for param "seq" and local "insn".
11283 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11284 locals "first", "second".
11285 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11286 "last", "last2", "next".
11287 (mips_avoid_hazard): Likewise for params "after", "insn".
11288 (mips_reorg_process_insns): Likewise for locals "insn",
11289 "last_insn", "subinsn", "next_insn".
11290 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11291 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11293 (mips_output_mi_thunk): Likewise for local "insn".
11294 (mips_final_prescan_insn): Likewise for param "insn".
11296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11298 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11299 Strengthen return type and local "insns" from rtx to rtx_insn *.
11300 (microblaze_legitimize_tls_address): Likewise for local "insns".
11301 (microblaze_block_move_loop): Strengthen local "label" from rtx
11302 to rtx_code_label *.
11303 (microblaze_expand_prologue): Strengthen two locals named "insn"
11304 from rtx to rtx_insn *.
11305 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11306 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11307 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11308 to rtx_code_label *.
11310 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11312 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11313 param from rtx to rtx_insn *.
11314 (mep_reuse_lo): Likewise for third param.
11315 (mep_use_post_modify_p): Likewise for first param.
11316 (mep_core_address_length): Likewise.
11317 (mep_cop_address_length): Likewise.
11318 (mep_final_prescan_insn): Likewise.
11319 (mep_store_data_bypass_p): Likewise for both params.
11320 (mep_mul_hilo_bypass_p): Likewise.
11321 (mep_ipipe_ldc_p): Likewise for param.
11323 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11324 (mep_rewrite_mult): Likewise.
11325 (mep_rewrite_mulsi3): Likewise.
11326 (mep_rewrite_maddsi3): Likewise.
11327 (mep_reuse_lo_p_1): Likewise.
11328 (mep_reuse_lo_p): Likewise.
11329 (mep_frame_expr): Likewise.
11330 (mep_make_parallel): Likewise for both params.
11331 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11333 (mep_use_post_modify_p): Likewise for param "insn".
11334 (mep_core_address_length): Likewise.
11335 (mep_cop_address_length): Likewise.
11336 (mep_reg_set_in_function): Likewise for local "insn".
11337 (mep_asm_without_operands_p): Likewise.
11338 (F): Likewise for return type and param "x".
11339 (add_constant): Likewise for local "insn".
11340 (maybe_dead_move): Likewise for return type and local "insn".
11341 (mep_expand_prologue): Likewise for local "insn".
11342 (mep_final_prescan_insn): Likewise for param "insn".
11343 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11344 "next", "follow", "x".
11345 (mep_insert_repeat_label_last): Likewise for return type, param
11346 "last_insn", and locals "next", "prev". Strengthen param "label"
11347 from rtx to rtx_code_label *.
11348 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11350 (struct mep_doloop_end): Likewise for fields "insn" and
11352 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11353 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11354 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11356 (mep_invert_branch): Likewise for params "insn" and "after".
11357 (mep_reorg_erepeat): Likewise for param "insns" and locals
11358 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11359 "l" from rtx to rtx_code_label *.
11360 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11361 from rtx to rtx_insn *.
11362 (mep_reorg_addcombine): Likewise for param "insns" and locals
11364 (add_sp_insn_p): Likewise for param "insn".
11365 (mep_reorg_noframe): Likewise for param "insns" and locals
11366 "start_frame_insn", "end_frame_insn", "next".
11367 (mep_reorg): Likewise for local "insns".
11368 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11370 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11371 (mep_mul_hilo_bypass_p): Likewise.
11372 (mep_ipipe_ldc_p): Likewise for param "insn".
11373 (mep_make_bundle): Likewise for return type, param "cop" and local
11374 "insn", splitting out the latter into a new local "seq" for when it
11375 is a SEQUENCE rather than an insn.
11376 (core_insn_p): Likewise for param "insn".
11377 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11378 "last", "first", "note", "prev", "core_insn".
11380 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11382 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11384 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11385 (m68k_final_prescan_insn): Likewise for first param.
11387 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11388 (m68k_set_frame_related): Likewise for param "insn".
11389 (output_btst): Likewise for param "insn".
11390 (m68k_final_prescan_insn): Likewise.
11391 (m68k_move_to_reg): Likewise for local "insn".
11392 (m68k_call_tls_get_addr): Likewise for local "insns".
11393 (m68k_call_m68k_read_tp): Likewise.
11394 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11395 (m68k_output_mi_thunk): Likewise for local "insn".
11397 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11399 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11400 first param from rtx to rtx_insn *.
11401 (iq2000_adjust_insn_length): Likewise.
11402 (iq2000_output_conditional_branch): Likewise.
11403 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11404 "insn" and local "nop_insn".
11405 (iq2000_annotate_frame_insn): Likewise for param "insn".
11406 (iq2000_expand_prologue): Likewise for both locals "insn".
11407 (iq2000_adjust_insn_length): Likewise for param "insn".
11408 (iq2000_output_conditional_branch): Likewise.
11410 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11412 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11413 "insns" from rtx to rtx_insn *.
11414 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11415 (struct spill_fill_data): Likewise for field "init_after" and for
11416 elements of array field "prev_insn".
11417 (spill_restore_mem): Likewise for locals "insn", "first".
11418 (do_spill): Likewise for local "insn".
11419 (do_restore): Likewise.
11420 (ia64_expand_prologue): Likewise.
11421 (ia64_expand_epilogue): Likewise.
11422 (emit_insn_group_barriers): Likewise for locals "insn",
11424 (emit_all_insn_group_barriers): Likewise for locals "insn",
11426 (dfa_stop_insn): Likewise for this global.
11427 (dfa_pre_cycle_insn): Likewise.
11428 (ia64_nop): Likewise.
11429 (final_emit_insn_group_barriers): Likewise for locals "insn",
11431 (emit_predicate_relation_info): Likewise for locals "head", "n",
11433 (ia64_reorg): Likewise for local "insn".
11434 (ia64_output_mi_thunk): Likewise.
11435 (expand_vec_perm_interleave_2): Likewise for local "seq".
11437 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11439 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11440 param 1 "insn" from rtx to rtx_insn *.
11441 (ix86_use_lea_for_mov): Likewise.
11442 (ix86_avoid_lea_for_addr): Likewise.
11443 (ix86_split_lea_for_addr): Likewise.
11444 (ix86_lea_for_add_ok): Likewise.
11445 (ix86_output_call_insn): Likewise.
11447 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11448 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11449 (ix86_output_function_epilogue): Likewise for locals "insn",
11450 "deleted_debug_label".
11451 (legitimize_tls_address): Likewise for local "insn".
11452 (get_some_local_dynamic_name): Likewise.
11453 (increase_distance): Likewise for params "prev", "next".
11454 (distance_non_agu_define_in_bb): Likewise for params "insn",
11455 "start" and locals "prev", "next".
11456 (distance_non_agu_define): Likewise for param "insn".
11457 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11458 locals "next", "prev".
11459 (distance_agu_use): Likewise for param "insn".
11460 (ix86_lea_outperforms): Likewise.
11461 (ix86_ok_to_clobber_flags): Likewise.
11462 (ix86_avoid_lea_for_add): Likewise.
11463 (ix86_use_lea_for_mov): Likewise.
11464 (ix86_avoid_lea_for_addr): Likewise.
11465 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11466 (ix86_split_lea_for_addr): Likewise for param "insn".
11467 (ix86_lea_for_add_ok): Likewise for param "insn".
11468 (ix86_expand_carry_flag_compare): Likewise for local
11470 (ix86_expand_int_movcc): Likewise.
11471 (ix86_output_call_insn): Likewise for param "insn".
11472 (ix86_output_call_insn): Likewise for local "i".
11473 (x86_output_mi_thunk): Introduce local "insn", using it in place
11474 of "tmp" when dealing with insns.
11475 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11477 (ix86_pad_returns): Likewise for locals "ret", "prev".
11478 (ix86_count_insn_bb): Likewise for local "insn".
11479 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11480 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11481 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11482 (expand_vec_perm_interleave2): Likewise for local "seq".
11483 (expand_vec_perm_vperm2f128_vblend): Likewise.
11484 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11485 call to for_each_rtx with for_each_rtx_in_insn.
11487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11489 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11490 "label" from rtx to rtx_code_label *.
11491 (ix86_expand_prologue): Likewise.
11492 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11494 (ix86_split_idivmod): Likewise for locals "end_label" and
11496 (ix86_expand_branch): Likewise for local "label2".
11497 (ix86_expand_aligntest): Likewise for return type and local "label".
11498 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11500 (expand_movmem_epilogue): Likewise for the various locals named
11502 (expand_setmem_epilogue): Likewise.
11503 (expand_small_movmem_or_setmem): Likewise for local "label".
11504 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11505 Strengthen param "done_label" from rtx * to rtx_code_label **.
11506 Strengthen locals "loop_label" and "label" from rtx to
11508 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11509 Likewise for locals "loop_label", "label".
11510 (ix86_expand_set_or_movmem): Likewise for locals "label",
11511 "jump_around_label", "hot_label".
11512 (ix86_expand_strlensi_unroll_1): Likewise for locals
11513 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11515 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11516 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11517 "label2", "jump_label".
11518 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11520 (ix86_expand_lfloorceil): Likewise for local "label".
11521 (ix86_expand_rint): Likewise.
11522 (ix86_expand_floorceildf_32): Likewise.
11523 (ix86_expand_floorceil): Likewise.
11524 (ix86_expand_rounddf_32): Likewise.
11525 (ix86_expand_trunc): Likewise.
11526 (ix86_expand_truncdf_32): Likewise.
11527 (ix86_expand_round): Likewise.
11529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11531 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11532 first param from rtx to rtx_insn *.
11533 (h8300_insn_length_from_table): Likewise.
11534 * config/h8300/h8300.c (F): Likewise for return type and param
11536 (Fpa): Add a checked cast to rtx_insn *.
11537 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11539 (final_prescan_insn): Likewise for param "insn".
11540 (h8300_binary_length): Likewise.
11541 (h8300_insn_length_from_table): Likewise.
11543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11545 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11546 Strengthen first param "insn" from rtx to rtx_insn *.
11548 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11550 (frame_insn): Likewise for return type. Introduce local "insn"
11551 for use in place of local "x" for use as an rtx_insn *.
11552 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11553 (epiphany_expand_prologue): Likewise for local "insn".
11554 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11555 * config/epiphany/resolve-sw-modes.c
11556 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11561 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11562 param from rtx to rtx_insn *.
11563 (c6x_final_prescan_insn): Likewise for first param.
11565 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11566 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11567 (c6x_expand_compare): Strengthen local "insns" from rtx to
11569 (c6x_get_unit_specifier): Likewise for param "insn".
11570 (c6x_print_unit_specifier_field): Likewise.
11571 (c6x_final_prescan_insn): Likewise.
11572 (emit_add_sp_const): Likewise for local "insn".
11573 (c6x_expand_prologue): Likewise.
11575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11577 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11578 param 1 from rtx to rtx_insn *.
11579 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11580 the various locals named "insn".
11581 (expand_epilogue_reg_restore): Likewise.
11582 (frame_related_constant_load): Likewise.
11583 (add_to_reg): Likewise.
11584 (emit_link_insn): Likewise.
11585 (do_link): Likewise.
11586 (expand_interrupt_handler_prologue): Likewise.
11587 (branch_dest): Likewise for param "branch".
11588 (asm_conditional_branch): Likewise for param "insn".
11589 (gen_one_bundle): Likewise for elements of param "slot" and local
11591 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11592 elements of local "slot".
11593 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11594 "queue", "next_queue", "prev".
11595 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11596 (add_sched_insns_for_speculation): Likewise for local "insn".
11598 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11600 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11601 from rtx to rtx_insn *.
11602 (output_movhi): Likewise.
11603 (output_movsisf): Likewise.
11604 (avr_out_tstsi): Likewise.
11605 (avr_out_tsthi): Likewise.
11606 (avr_out_tstpsi): Likewise.
11607 (avr_out_compare): Likewise.
11608 (avr_out_compare64): Likewise.
11609 (avr_out_movpsi): Likewise.
11610 (ashlqi3_out): Likewise.
11611 (ashlhi3_out): Likewise.
11612 (ashlsi3_out): Likewise.
11613 (ashrqi3_out): Likewise.
11614 (ashrhi3_out): Likewise.
11615 (ashrsi3_out): Likewise.
11616 (lshrqi3_out): Likewise.
11617 (lshrhi3_out): Likewise.
11618 (lshrsi3_out): Likewise.
11619 (avr_out_ashlpsi3): Likewise.
11620 (avr_out_ashrpsi3): Likewise.
11621 (avr_out_lshrpsi3): Likewise.
11622 (avr_out_fract): Likewise.
11623 (avr_out_sbxx_branch): Likewise.
11624 (avr_out_round): Likewise.
11625 (avr_out_xload): Likewise.
11626 (avr_out_movmem): Likewise.
11627 (adjust_insn_length): Likewise.
11628 (avr_out_lpm): Likewise.
11629 (reg_unused_after): Likewise.
11630 (_reg_unused_after): Likewise.
11631 (avr_jump_mode): Likewise for second param.
11632 (jump_over_one_insn): Likewise for first param.
11633 (avr_final_prescan_insn): Likewise.
11634 (out_shift_with_cnt): Likewise for second param.
11636 * config/avr/avr.c (get_sequence_length): Likewise for param
11637 "insns" and local "insn".
11638 (emit_push_byte): Likewise for local "insn".
11639 (emit_push_sfr): Likewise.
11640 (avr_prologue_setup_frame): Likewise for locals "insn",
11641 "fp_plus_insns", "sp_plus_insns".
11642 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11644 (avr_jump_mode): Likewise for param "insn".
11645 (avr_final_prescan_insn): Likewise.
11646 (avr_find_unused_d_reg): Likewise.
11647 (avr_out_lpm_no_lpmx): Likewise.
11648 (avr_out_lpm): Likewise.
11649 (avr_out_xload): Likewise.
11650 (output_movqi): Likewise.
11651 (output_movhi): Likewise.
11652 (out_movqi_r_mr): Likewise.
11653 (out_movhi_r_mr): Likewise.
11654 (out_movsi_r_mr): Likewise.
11655 (out_movsi_mr_r): Likewise.
11656 (output_movsisf): Likewise.
11657 (avr_out_load_psi): Likewise.
11658 (avr_out_store_psi): Likewise.
11659 (avr_out_movpsi): Likewise.
11660 (out_movqi_mr_r): Likewise.
11661 (avr_out_movhi_mr_r_xmega): Likewise.
11662 (out_movhi_mr_r): Likewise.
11663 (compare_condition): Likewise for param "insn" and local "next".
11664 (compare_sign_p): Likewise for param "insn".
11665 (compare_diff_p): Likewise.
11666 (compare_eq_p): Likewise.
11667 (avr_out_compare): Likewise.
11668 (avr_out_compare64): Likewise.
11669 (avr_out_tsthi): Likewise.
11670 (avr_out_tstpsi): Likewise.
11671 (avr_out_tstsi): Likewise.
11672 (out_shift_with_cnt): Likewise.
11673 (ashlqi3_out): Likewise.
11674 (ashlhi3_out): Likewise.
11675 (avr_out_ashlpsi3): Likewise.
11676 (ashlsi3_out): Likewise.
11677 (ashrqi3_out): Likewise.
11678 (ashrhi3_out): Likewise.
11679 (avr_out_ashrpsi3): Likewise.
11680 (ashrsi3_out): Likewise.
11681 (lshrqi3_out): Likewise.
11682 (lshrhi3_out): Likewise.
11683 (avr_out_lshrpsi3): Likewise.
11684 (lshrsi3_out): Likewise.
11685 (avr_out_fract): Likewise.
11686 (avr_out_round): Likewise.
11687 (avr_adjust_insn_length): Likewise.
11688 (reg_unused_after): Likewise.
11689 (_reg_unused_after): Likewise.
11690 (avr_compare_pattern): Likewise.
11691 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11692 and locals "branch1", "branch2", "insn2", "jump".
11693 (avr_reorg): Likewise for local "insn".
11694 (avr_2word_insn_p): Likewise for param "insn".
11695 (jump_over_one_insn_p): Likewise.
11696 (avr_out_sbxx_branch): Likewise.
11697 (avr_out_movmem): Likewise.
11699 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11701 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11702 param from rtx to rtx_insn *.
11703 (thumb1_final_prescan_insn): Likewise.
11704 (thumb2_final_prescan_insn): Likewise.
11706 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11708 (struct minipool_node): Likewise for field "insn".
11709 (dump_minipool): Likewise for param "scan".
11710 (create_fix_barrier): Likewise for local "from". Strengthen local
11711 "label" from rtx to rtx_code_label *.
11712 (push_minipool_barrier): Strengthen param "insn" from rtx to
11714 (push_minipool_fix): Likewise.
11715 (note_invalid_constants): Likewise.
11716 (thumb2_reorg): Likewise for local "insn".
11717 (arm_reorg): Likewise.
11718 (thumb2_final_prescan_insn): Likewise for param
11719 "insn" and local "first_insn".
11720 (arm_final_prescan_insn): Likewise for param "insn" and locals
11721 "start_insn", "this_insn".
11722 (arm_debugger_arg_offset): Likewise for param "insn".
11723 (thumb1_emit_multi_reg_push): Likewise for return type and local
11725 (thumb1_final_prescan_insn): Likewise for param "insn".
11726 (thumb_far_jump_used_p): Likewise for local "insn".
11727 (thumb1_expand_prologue): Likewise.
11728 (arm_expand_epilogue_apcs_frame): Likewise.
11729 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11730 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11731 from rtx to rtx_code_label *.
11732 (arm_split_atomic_op): Likewise for local "label".
11733 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11735 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11737 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11738 first param from rtx to rtx_insn *.
11739 (arc_verify_short): Likewise.
11740 (arc_short_long): Likewise.
11741 (arc_need_delay): Likewise.
11743 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11745 (arc_ccfsm_advance): Likewise for param "insn" and locals
11746 "start_insn", "this_insn".
11747 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11748 (arc_ccfsm_post_advance): Likewise for param "insn".
11749 (arc_next_active_insn): Likewise for return type and param "insn".
11750 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11751 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11752 (output_short_suffix): Likewise for local "insn".
11753 (arc_final_prescan_insn): Likewise for param "insn". Remove
11754 now-redundant checked cast.
11755 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11756 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11757 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11758 for use where lc_set became an insn.
11759 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11761 (arc_get_insn_variants): Likewise for local "prev".
11762 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11764 (arc_predicate_delay_insns): Likewise for local "insn".
11765 (arc_pad_return): Likewise for local "prev". For now, add a
11766 checked cast when extracting the insn from "final_sequence".
11767 (arc_short_long): Likewise for param "insn".
11768 (arc_need_delay): Likewise for param "insn" and local "next".
11769 (arc_label_align): Likewise for locals "prev", "next".
11771 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11773 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11774 "insn" from rtx to rtx_insn *.
11775 (alpha_gp_save_rtx): Likewise for local "seq".
11776 (alpha_instantiate_decls): Likewise for local "top".
11777 (get_some_local_dynamic_name): Likewise for local "insn".
11778 (alpha_does_function_need_gp): Likewise.
11779 (set_frame_related_p): Likewise for return type and for locals
11781 (emit_frame_store_1): Likewise for local "insn".
11782 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11783 (alpha_end_function): Likewise for local "insn".
11784 (alpha_output_mi_thunk_osf): Likewise.
11785 (alphaev4_insn_pipe): Likewise for param "insn".
11786 (alphaev5_insn_pipe): Likewise.
11787 (alphaev4_next_group): Likewise for return type and param 1
11789 (alphaev5_next_group): Likewise.
11790 (alpha_align_insns_1): Likewise for return type and param 1 of
11791 callback param "next_group", and for locals "i", "next", "prev",
11792 "where", "where2", "insn".
11794 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11796 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11797 rather than modifying the stmt.
11799 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11801 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11802 cgraph_state conversion.
11804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11806 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11807 Strengthen local "insns" from rtx to rtx_insn *.
11808 (aarch64_set_frame_expr): Likewise for local "insn".
11809 (aarch64_save_or_restore_fprs): Likewise.
11810 (aarch64_save_or_restore_callee_save_registers): Likewise.
11811 (aarch64_expand_prologue): Likewise.
11812 (aarch64_expand_epilogue): Likewise.
11813 (aarch64_output_mi_thunk): Likewise.
11814 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11815 "label2" from rtx to rtx_code_label *.
11816 (aarch64_split_atomic_op): Likewise for local "label".
11818 2014-08-25 Martin Liska <mliska@suse.cz>
11820 * cgraph.h (symtab_node):
11821 (bool needed_p (void)): created from decide_is_symbol_needed
11822 (bool referred_to_p (void)): created from referred_to_p
11823 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11824 * cgraph.h (cgraph_node):
11825 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11826 (void expand (void)): created from expand_function
11827 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11828 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11829 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11830 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11831 * cgraph.h (varpool_node):
11832 (static void add (tree decl): created from varpool_add_new_variable
11833 * cgraph.h (cgraph_edge):
11834 void remove (void);
11835 (void remove_caller (void)): created from cgraph_edge_remove_caller
11836 (void remove_callee (void)): created from cgraph_edge_remove_callee
11837 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11838 created from cgraph_set_call_stmt
11839 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11840 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11841 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11842 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11843 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11844 created from cgraph_speculative_call_info
11845 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11846 int freq_scale, bool update_original)): created from cgraph_clone_edge
11847 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11848 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11849 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11850 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11851 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11852 (static void rebuild_references (void)): created from cgraph_rebuild_references
11853 * cgraph.h (symbol_table):
11854 (create_reference): renamed from add_reference
11855 (maybe_create_reference): renamed from maybe_add_reference
11856 (void register_symbol (symtab_node *node)): new function
11857 (void clear_asm_symbols (void)): new function
11858 (void unregister (symtab_node *node)): new function
11859 (void release_symbol (cgraph_node *node, int uid)): new function
11860 (cgraph_node * allocate_cgraph_symbol (void)): new function
11861 (void initialize (void)): created from cgraph_init
11862 (symtab_node *first_symbol (void)):new function
11863 (asm_node *first_asm_symbol (void)):new function
11864 (symtab_node *first_defined_symbol (void)):new function
11865 (varpool_node *first_variable (void)):new function
11866 (varpool_node *next_variable (varpool_node *node)):new function
11867 (varpool_node *first_static_initializer (void)):new function
11868 (varpool_node *next_static_initializer (varpool_node *node)):new function
11869 (varpool_node *first_defined_variable (void)):new function
11870 (varpool_node *next_defined_variable (varpool_node *node)):new function
11871 (cgraph_node *first_defined_function (void)):new function
11872 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11873 (cgraph_node *first_function (void)):new function
11874 (cgraph_node *next_function (cgraph_node *node)):new function
11875 (cgraph_node *first_function_with_gimple_body (void)):new function
11876 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11877 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11878 created from symtab_remove_unreachable_nodes
11879 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11880 (void process_new_functions (void)): created from cgraph_process_new_functions
11881 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11882 (bool output_variables (void)): created from varpool_node::output_variables
11883 (void output_asm_statements (void)): created from output_asm_statements
11884 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11885 (void compile (void)): created from compile
11886 (void output_weakrefs (void)): created from output_weakrefs
11887 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11888 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11889 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11890 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11891 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11892 created from cgraph_next_function_with_gimple_body
11893 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11894 created from cgraph_remove_edge_removal_hook
11895 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11896 created from cgraph_add_node_removal_hook
11897 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11898 created from cgraph_remove_node_removal_hook
11899 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11900 created from varpool_add_node_removal_hook
11901 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11902 created from varpool_remove_node_removal_hook
11903 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11904 created from cgraph_add_function_insertion_hook
11905 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11906 created from cgraph_remove_function_insertion_hook
11907 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11908 created from varpool_add_variable_insertion_hook
11909 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11910 created from varpool_remove_variable_insertion_hook
11911 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11912 created from cgraph_add_edge_duplication_hook
11913 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11914 created from cgraph_remove_edge_duplication_hook
11915 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11916 created from cgraph_add_node_duplication_hook
11917 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11918 created from cgraph_remove_node_duplication_hook
11919 (void call_edge_removal_hooks (cgraph_edge *e)):
11920 created from cgraph_call_edge_removal_hooks
11921 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11922 created from call_function_insertion_hooks
11923 (void call_cgraph_removal_hooks (cgraph_node *node)):
11924 created from cgraph_call_node_removal_hooks
11925 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11926 created from cgraph_node::call_duplication_hooks
11927 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11928 created from cgraph_call_edge_duplication_hooks
11929 (void call_varpool_removal_hooks (varpool_node *node)):
11930 created from varpool_call_node_removal_hooks
11931 (void call_varpool_insertion_hooks (varpool_node *node)):
11932 created from varpool_call_variable_insertion_hooks
11933 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11934 created from insert_to_assembler_name_hash
11935 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11936 created from unlink_from_assembler_name_hash
11937 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11938 created from symtab_prevail_in_asm_name_hash
11939 (void symtab_initialize_asm_name_hash (void)):
11940 created from symtab_initialize_asm_name_hash
11941 (void change_decl_assembler_name (tree decl, tree name)):
11942 created from change_decl_assembler_name
11943 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11944 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11945 created from decl_assembler_name_hash
11946 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11947 created from decl_assembler_name_equal
11948 (static hashval_t hash_node_by_assembler_name (const void *p)):
11949 created from hash_node_by_assembler_name
11950 (static int eq_assembler_name (const void *p1, const void *p2)):
11951 created from eq_assembler_name
11953 2014-08-25 Marek Polacek <polacek@redhat.com>
11955 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11957 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11959 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11960 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11961 SWI1248_AVX512BW mode iterator.
11963 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11966 * config/sh/predicates.md (general_extend_operand): Disable
11967 TRUNCATE before reload completes.
11969 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11971 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11973 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11976 * config/sh/sh.opt (musermode): Allow negative form.
11977 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11978 targets that don't support it.
11979 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11980 Document -mno-usermode option.
11982 2014-08-24 Kito Cheng <kito@0xlab.org>
11984 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11985 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11986 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11987 * doc/tm.texi: Regenerate.
11989 2014-08-24 Kito Cheng <kito@0xlab.org>
11991 * ira.c: Fix typo in comment.
11993 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11995 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11996 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11998 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12001 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12002 last_address when the current function is a thunk.
12003 (pa_asm_output_mi_thunk): When we don't have named sections or they
12004 are not being used, check that thunk can reach the stub table with a
12007 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12009 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12011 (pass_web::execute): Likewise for local "insn".
12013 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12015 * var-tracking.c (struct micro_operation_def): Strengthen field
12016 "insn" from rtx to rtx_insn *.
12017 (struct emit_note_data_def): Likewise.
12018 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12019 (vt_stack_adjustments): Likewise for local "insn".
12020 (adjust_insn): Likewise for param "insn".
12021 (val_store): Likewise.
12022 (val_resolve): Likewise.
12023 (struct count_use_info): Likewise for field "insn".
12024 (log_op_type): Likewise for param "insn".
12025 (reverse_op): Likewise.
12026 (prepare_call_arguments): Likewise.
12027 (add_with_sets): The initial param takes an insn, but we can't
12028 yet strengthen it from rtx to rtx_insn * since it's used as a
12029 cselib_record_sets_hook callback. For now rename initial param
12030 from "insn" to "uncast_insn", and introduce a local "insn" of
12031 the stronger rtx_insn * type, with a checked cast.
12032 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12034 (emit_note_insn_var_location): Likewise.
12035 (emit_notes_for_changes): Likewise.
12036 (emit_notes_for_differences): Likewise.
12037 (next_non_note_insn_var_location): Likewise for return type and
12039 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12040 (vt_initialize): Likewise for local "insn".
12041 (delete_debug_insns): Likewise for locals "insn" and "next".
12043 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12045 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12047 (mark_constant_pool): Likewise for local "insn".
12049 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12051 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12053 (dead_debug_promote_uses): Likewise.
12054 (dead_debug_insert_temp): Likewise.
12056 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12058 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12059 from const_rtx to const rtx_insn *.
12060 (store_killed_after): Likewise. Strengthen locals "last", "act"
12061 from rtx to rtx_insn *.
12062 (store_killed_before): Strengthen param "insn" from const_rtx to
12063 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12064 (find_moveable_store): Strengthen param "insn" from rtx to
12066 (compute_store_table): Likewise for local "insn".
12067 (insert_insn_start_basic_block): Likewise for param "insn" and
12068 locals "prev", "before", "insn".
12069 (insert_store): For now, add a checked cast to rtx_insn * on the
12070 result of gen_move_insn.
12071 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12073 (replace_store_insn): Likewise. For now, add a checked cast to
12074 rtx_insn * on the result of gen_move_insn.
12076 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12078 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12080 (expand_sjlj_dispatch_table): Likewise.
12082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12084 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12085 "insn" from rtx to rtx_insn *.
12087 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12089 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12090 "insn" from rtx to rtx_insn *.
12091 (dup_block_and_redirect): Likewise for param 3 "before".
12093 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12094 from rtx to rtx_insn *.
12095 (move_insn_for_shrink_wrap): Likewise.
12096 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12097 (dup_block_and_redirect): Likewise for param "before" and local
12099 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12101 (convert_to_simple_return): Likewise for local "start".
12103 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12104 Strengthen local "insn" from rtx to rtx_insn *, for use when
12105 invoking requires_stack_frame_p.
12107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12109 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12111 (speculate_expr): Likewise for locals "orig_insn_rtx",
12113 (eq_transformed_insns): Likewise for locals "i1", "i2".
12114 (check_for_new_jump): Likewise for return type and local "end".
12115 (find_new_jump): Likewise for return type and local "jump".
12116 (sel_split_edge): Likewise for local "jump".
12117 (sel_create_recovery_block): Likewise.
12118 (sel_redirect_edge_and_branch_force): Likewise.
12119 (sel_redirect_edge_and_branch): Likewise.
12121 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12123 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12124 "new_insn" from rtx to rtx_insn *.
12125 (create_insn_rtx_with_rhs): Likewise for return type and for local
12127 (create_insn_rtx_with_lhs): Likewise.
12128 (create_speculation_check): Likewise for local "insn_rtx".
12129 (implicit_clobber_conflict_p): Likewise for local "insn".
12130 (get_expr_cost): Likewise.
12131 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12132 (move_cond_jump): Likewise for locals "next", "prev", "link",
12133 "head", "from", "to".
12135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12137 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12138 "next" from rtx to rtx_insn *.
12139 (find_conditional_protection): Likewise for local "next".
12140 (is_conditionally_protected): Likewise for local "insn1".
12141 (is_pfree): Likewise for locals "insn1", "insn2".
12143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12145 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12146 from rtx to rtx_insn *.
12148 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12149 locals "insn1", "insn2" from rtx to rtx_insn *.
12150 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12151 locals "insn", "prev", "last_jump", "next_tail".
12152 (schedule_ebb): Likewise for params "head", "tail".
12153 (schedule_ebbs): Likewise for locals "tail", "head".
12155 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12156 to rtx_insn on "last_insn" in one of the invocations of
12159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12161 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12162 "elem", "insn" from rtx to rtx_insn *.
12163 (change_spec_dep_to_hard): Likewise.
12164 (get_back_and_forw_lists): Likewise for local "con".
12165 (sd_add_dep): Likewise for locals "elem", "insn".
12166 (sd_resolve_dep): Likewise for locals "pro", "con".
12167 (sd_unresolve_dep): Likewise.
12168 (sd_delete_dep): Likewise.
12169 (chain_to_prev_insn): Likewise for local "pro".
12170 (find_inc): Likewise for locals "pro", "con".
12172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12174 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12176 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12178 (modified_between_p): Strengthen local "insn" from rtx to
12180 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12181 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12186 * resource.c (next_insn_no_annul): Strengthen local "next" from
12188 (mark_referenced_resources): Likewise for local "insn".
12190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12192 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12194 (find_reloads): Likewise for param 1.
12195 (subst_reloads): Likewise for sole param.
12196 (find_equiv_reg): Likwise for param 2.
12197 (regno_clobbered_p): Likwise for param 2.
12198 (reload): Likewise for param 1.
12200 * caller-save.c (save_call_clobbered_regs): Strengthen local
12201 "insn" from rtx to rtx_insn *.
12202 (insert_one_insn): Likewise for local "insn".
12204 * reload.c (this_insn): Likewise for this global.
12205 (find_reloads): Likewise for param "insn".
12206 (find_reloads_toplev): Likewise.
12207 (find_reloads_address): Likewise.
12208 (subst_reg_equivs): Likewise.
12209 (update_auto_inc_notes): Likewise.
12210 (find_reloads_address_1): Likewise.
12211 (find_reloads_subreg_address): Likewise.
12212 (subst_reloads): Likewise.
12213 (find_equiv_reg): Likewise, also for local "p".
12214 (regno_clobbered_p): Likewise for param "insn".
12216 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12218 (spill_reg_store): Likewise for the elements of this array.
12219 (remove_init_insns): Likewise for local "equiv_insn".
12220 (will_delete_init_insn_p): Likewise for param "insn".
12221 (reload): Likewise for param ""first" and local "insn".
12222 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12224 (calculate_elim_costs_all_insns): Likewise.
12225 (delete_caller_save_insns): Likewise.
12226 (spill_failure): Likewise for param "insn".
12227 (delete_dead_insn): Likewise.
12228 (set_label_offsets): Likewise.
12229 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12231 (elimination_costs_in_insn): Likewise for param "insn".
12232 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12233 when referring to an insn.
12234 (set_initial_label_offsets): Likewise.
12235 (set_offsets_for_label): Strengthen param "insn" from rtx to
12237 (init_eliminable_invariants): Likewise for param "first" and local
12239 (fixup_eh_region_note): Likewise for param "insn".
12240 (reload_as_needed): Likewise for locals "prev", "insn",
12241 "old_next", "old_prev", "next".
12242 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12244 (reload_inheritance_insn): Strengthen elements of this array from
12246 (failed_reload): Likewise for param "insn".
12247 (choose_reload_regs): Likewise for local "insn". Replace use of
12248 NULL_RTX with NULL when referring to an insn.
12249 (input_reload_insns): Strengthen elements of this array from rtx
12251 (other_input_address_reload_insns): Likewise for this global.
12252 (other_input_reload_insns): Likewise for this global.
12253 (input_address_reload_insns): Likwise for the elements of this
12255 (inpaddr_address_reload_insns): Likwise for the elements of this
12257 (output_reload_insns): Likewise for the elements of this array.
12258 (output_address_reload_insns): Likewise for the elements of this
12260 (outaddr_address_reload_insns): Likewise for the elements of this
12262 (operand_reload_insns): Likewise for this global.
12263 (other_operand_reload_insns): Likewise for this global.
12264 (other_output_reload_insns): Likewise for the elements of this
12266 (new_spill_reg_store): Likewise for the elements of this
12268 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12269 Strengthen local "where" from rtx * to rtx_insn **.
12270 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12271 from rtx to rtx_insn *.
12272 (do_input_reload): Likewise for local "insn".
12273 (do_output_reload): Likewise for local "insn".
12274 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12275 (emit_insn_if_valid_for_reload): Likewise for return type and local
12276 "last". Add checked cast to rtx_insn when returning "insn" since
12277 this has been through emit_insn.
12278 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12279 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12280 returning "insn" since it's been through
12281 emit_insn_if_valid_for_reload at this point.
12282 (delete_output_reload): Strengthen param "insn" and locals
12283 "output_reload_insn", "i2" from rtx to rtx_insn *.
12284 (delete_address_reloads): Likewise for params "dead_insn",
12285 "current_insn" and locals "prev", "next".
12286 (delete_address_reloads_1): Likewise for params "dead_insn",
12287 "current_insn" and locals "prev", "i2".
12288 (inc_for_reload): Likewise for locals "last", "add_insn".
12289 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12292 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12293 param of this duplicate of the prototype from reload.h
12295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12297 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12299 (regstat_bb_compute_calls_crossed): Likewise.
12301 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12303 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12305 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12307 (regrename_analyze): Strengthen local "insn" from rtx to
12309 (scan_rtx_reg): Likewise for param "insn".
12310 (scan_rtx_address): Likewise.
12311 (scan_rtx): Likewise.
12312 (restore_operands): Likewise.
12313 (record_out_operands): Likewise.
12314 (build_def_use): Likewise for local "insn". Replace use of
12315 NULL_RTX with NULL when dealing with an insn.
12317 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12319 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12320 * reginfo.c (reg_scan): Likewise, also for local "insn".
12321 (reg_scan_mark_refs): Likewise for param "insn".
12322 (init_subregs_of_mode): Likewise for local "insn".
12324 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12326 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12327 "insn" from rtx to rtx_insn *.
12328 (replace_oldest_value_reg): Likewise for param "insn".
12329 (replace_oldest_value_addr): Likewise.
12330 (replace_oldest_value_mem): Likewise.
12331 (apply_debug_insn_changes): Likewise for local "last_insn".
12332 (copyprop_hardreg_forward_1): Likewise for local "insn".
12334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12336 * reg-stack.c (next_flags_user): Strengthen return type and param
12337 "insn" from rtx to rtx_insn *.
12338 (straighten_stack): Likewise for param "insn".
12339 (check_asm_stack_operands): Likewise.
12340 (remove_regno_note): Likewise.
12341 (emit_pop_insn): Likewise for return type, param "insn", local
12343 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12344 "limit" from rtx to rtx_insn *.
12345 (swap_to_top): Likewise for param "insn".
12346 (move_for_stack_reg): Likewise.
12347 (move_nan_for_stack_reg): Likewise.
12348 (swap_rtx_condition): Likewise.
12349 (compare_for_stack_reg): Likewise.
12350 (subst_all_stack_regs_in_debug_insn): Likewise.
12351 (subst_stack_regs_pat): Likewise, and local "insn2".
12352 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12354 (subst_stack_regs): Likewise.
12355 (change_stack): Likewise.
12356 (convert_regs_1): Likewise for locals "insn", "next".
12358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12360 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12362 (combine_set_extension): Likewise for param "curr_insn".
12363 (transform_ifelse): Likewise for param "def_insn".
12364 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12365 from vec<rtx> * to vec<rtx_insn *> *.
12366 (is_cond_copy_insn): Likewise for param "insn".
12367 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12368 to vec<rtx_insn *>.
12369 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12370 local "def_insn" from rtx to rtx_insn *.
12371 (get_sub_rtx): Likewise for param "def_insn".
12372 (merge_def_and_ext): Likewise.
12373 (combine_reaching_defs): Likewise.
12374 (add_removable_extension): Likewise for param "insn".
12375 (find_removable_extensions): Likewise for local "insn".
12376 (find_and_remove_re): Likewise for locals "curr_insn" and
12377 "def_insn". Strengthen locals "reinsn_del_list" and
12378 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12382 * recog.c (split_insn): Strengthen param "insn" and locals
12383 "first", "last" from rtx to rtx_insn *.
12384 (split_all_insns): Likewise for locals "insn", "next".
12385 (split_all_insns_noflow): Likewise.
12387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12389 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12391 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12392 (debug_rtx_find): Likewise for param 1 "x".
12394 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12395 const_rtx to const rtx_insn *. Likewise for local "insn".
12396 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12397 (debug_rtx_find): Likewise for param 1 "x".
12398 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12399 from const_rtx to const rtx_insn * within the appropriate cases of
12400 the switch statement.
12402 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12403 Strengthen local "insns" from rtx to rtx_insn * since this is
12404 passed to a call to debug_rtx_list.
12406 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12408 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12411 * function.c (stack_protect_epilogue): Add checked cast to
12412 rtx_insn for now when invoking predict_insn_def.
12414 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12416 (predict_insn_def): Likewise.
12417 (rtl_predict_edge): Likewise for local "last_insn".
12418 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12420 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12422 (bb_estimate_probability_locally): Likewise for local "last_insn".
12423 (expensive_function_p): Likewise for local "insn".
12425 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12426 local "jmp", since this is used when invoking predict_insn_def.
12428 2014-08-22 Marek Polacek <polacek@redhat.com>
12431 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12433 2014-08-22 Marek Polacek <polacek@redhat.com>
12436 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12437 a comparison in parens.
12438 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12441 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12443 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12446 * cprop.c (fis_get_condition): Likewise.
12448 * postreload.c (reload_cse_regs): Likewise for param "first".
12449 (reload_cse_simplify): Likewise for param "insn".
12450 (reload_cse_regs_1): Likewise for local "insn".
12451 (reload_cse_simplify_set): Likewise for param "insn".
12452 (reload_cse_simplify_operands): Likewise.
12453 (struct reg_use): Likewise for field "insn".
12454 (reload_combine_purge_insn_uses): Likewise for param "insn".
12455 (fixup_debug_insns): Likewise for params "from", "to" and local
12457 (try_replace_in_use): Likewise for local "use_insn".
12458 (reload_combine_recognize_const_pattern): Likewise for param
12459 "insn" and locals "add_moved_after_insn", "use_insn".
12460 (reload_combine_recognize_pattern): Likewise for param "insn" and
12462 (reload_combine): Likewise for locals "insn", "prev".
12463 (reload_combine_note_use): Likewise for param "insn".
12464 (move2add_use_add2_insn): Likewise.
12465 (move2add_use_add3_insn): Likewise.
12466 (reload_cse_move2add): Likewise, also for local "next".
12467 (move2add_note_store): Likewise for local "insn".
12469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12471 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12473 (struct unoccr): Likewise.
12474 (struct modifies_mem): Likewise.
12475 (alloc_mem): Likewise for local "insn".
12476 (insert_expr_in_table): Likewise for param "insn".
12477 (dump_expr_hash_table_entry): Likewise for local "insn".
12478 (oprs_unchanged_p): Likewise for param "insn".
12479 (load_killed_in_block_p): Likewise for local "setter".
12480 (record_last_reg_set_info): Likewise for param "insn".
12481 (record_last_reg_set_info_regno): Likewise.
12482 (record_last_mem_set_info): Likewise.
12483 (record_last_set_info): Likewise for local "last_set_insn".
12484 (record_opr_changes): Likewise for param "insn".
12485 (hash_scan_set): Likewise.
12486 (compute_hash_table): Likewise for local "insn".
12487 (get_avail_load_store_reg): Likewise for param "insn".
12488 (eliminate_partially_redundant_load): Likewise, also for locals
12489 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12491 (eliminate_partially_redundant_loads): Likewise for local "insn".
12493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12495 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12497 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12498 (expand_twoval_unop): Likewise for locals entry_last", "last".
12499 (expand_twoval_binop): Likewise.
12500 (expand_twoval_binop_libfunc): Likewise for local "insns".
12501 (widen_leading): Likewise for local "last".
12502 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12503 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12504 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12505 (expand_parity): Likewise for locals "last" and "seq".
12506 (expand_ffs): Likewise for local "seq". Strengthen local
12507 "nonzero_label" from rtx to rtx_code_label *.
12508 (expand_absneg_bit): Strengthen local "insns" from rtx to
12510 (expand_unop_direct): Likewise for local "last".
12511 (expand_unop): Likewise for locals "last", "insns".
12512 (expand_abs_nojump): Likewise for local "last".
12513 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12514 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12516 (expand_copysign_absneg): Strengthen local "label" from rtx to
12518 (expand_copysign_bit): Strengthen local "insns" from rtx to
12520 (struct no_conflict_data): Likewise for fields "first", "insn".
12521 (emit_libcall_block_1): Likewise for param "insns" and locals
12522 "next", "last", "insn".
12523 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12524 on "insns" when invoking emit_libcall_block_1. Ultimately we
12525 want to strengthen insns itself.
12526 (prepare_cmp_insn): Strengthen local "last" from rtx to
12528 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12529 (prepare_float_lib_cmp): Likewise for local "insns".
12530 (emit_conditional_move): Likewise for local "last".
12531 (emit_conditional_add): Likewise.
12532 (have_sub2_insn): Likewise for local "seq".
12533 (expand_float): Likewise for local "insns". Strengthen locals
12534 "label", "neglabel" from rtx to rtx_code_label *.
12535 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12536 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12537 (expand_fixed_convert): Likewise for local "insns" (to
12539 (expand_sfix_optab): Likewise for local "last".
12540 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12541 to rtx_code_label *.
12542 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12543 from rtx to rtx_insn *.
12544 (expand_atomic_fetch_op): Likewise for local "insn".
12545 (maybe_legitimize_operand_same_code): Likewise for local "last".
12546 (maybe_legitimize_operands): Likewise.
12548 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12550 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12551 "insn" from rtx to rtx_insn *.
12552 (ps_rtl_insn): Likewise for return type.
12553 (doloop_register_get): Likewise for params "head", "tail" and
12554 locals "insn", "first_insn_not_to_check".
12555 (schedule_reg_move): Likewise for local "this_insn".
12556 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12557 of gen_move_insn for now.
12558 (reset_sched_times): Strengthen local "insn" from rtx to
12560 (permute_partial_schedule): Likewise.
12561 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12562 (dump_insn_location): Likewise for param "insn".
12563 (loop_canon_p): Likewise for local "insn".
12564 (sms_schedule): Likewise.
12565 (print_partial_schedule): Likewise.
12566 (ps_has_conflicts): Likewise.
12568 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12570 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12571 "tailp" from rtx * to rtx_insn **.
12573 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12574 from rtx to rtx_insn *.
12575 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12576 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12577 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12579 * modulo-sched.c (const_iteration_count): Strengthen return type
12580 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12581 use of NULL_RTX with NULL when working with insns.
12582 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12584 (sms_schedule): Likewise.
12585 * sched-rgn.c (init_ready_list): Likewise, also for locals
12586 "src_head" and "src_next_tail".
12587 (compute_block_dependences): Likewise.
12588 (free_block_dependencies): Likewise.
12589 (debug_rgn_dependencies): Likewise.
12590 (free_rgn_deps): Likewise.
12591 (compute_priorities): Likewise.
12592 (schedule_region): Likewise.
12593 * sel-sched.c (find_ebb_boundaries): Likewise.
12595 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12596 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12600 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12601 from rtx to rtx_insn *.
12602 (new_seginfo): Likewise for param "insn".
12603 (create_pre_exit): Likewise for locals "last_insn",
12604 "before_return_copy", "return_copy".
12605 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12610 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12611 from rtx to rtx_insn *.
12612 (lra_push_insn): Likewise for 1st param.
12613 (lra_push_insn_and_update_insn_regno_info): Likewise.
12614 (lra_pop_insn): Likewise for return type.
12615 (lra_invalidate_insn_data): Likewise for 1st param.
12616 (lra_set_insn_deleted): Likewise.
12617 (lra_delete_dead_insn): Likewise.
12618 (lra_process_new_insns): Likewise for first 3 params.
12619 (lra_set_insn_recog_data): Likewise for 1st param.
12620 (lra_update_insn_recog_data): Likewise.
12621 (lra_set_used_insn_alternative): Likewise.
12622 (lra_invalidate_insn_regno_info): Likewise.
12623 (lra_update_insn_regno_info): Likewise.
12624 (lra_former_scratch_operand_p): Likewise.
12625 (lra_eliminate_regs_1): Likewise.
12626 (lra_get_insn_recog_data): Likewise.
12628 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12631 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12633 (substitute_within_insn): New.
12634 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12635 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12636 Replace call to "substitute" with call to substitute_within_insn.
12638 * lra-constraints.c (curr_insn): Strengthen from rtx to
12640 (get_equiv_with_elimination): Likewise for param "insn".
12641 (match_reload): Strengthen params "before" and "after" from rtx *
12643 (emit_spill_move): Likewise for return type. Add a checked cast
12644 to rtx_insn * on result of gen_move_insn for now.
12645 (check_and_process_move): Likewise for local "before". Replace
12646 NULL_RTX with NULL when referring to insns.
12647 (process_addr_reg): Strengthen params "before" and "after" from
12648 rtx * to rtx_insn **.
12649 (insert_move_for_subreg): Likewise.
12650 (simplify_operand_subreg): Strengthen locals "before" and "after"
12651 from rtx to rtx_insn *.
12652 (process_address_1): Strengthen params "before" and "after" from
12653 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12655 (process_address): Strengthen params "before" and "after" from
12656 rtx * to rtx_insn **.
12657 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12658 (curr_insn_transform): Strengthen locals "before" and "after"
12659 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12661 (loc_equivalence_callback): Update cast of "data", changing
12662 resulting type from rtx to rtx_insn *.
12663 (substitute_pseudo_within_insn): New.
12664 (inherit_reload_reg): Strengthen param "insn" from rtx to
12665 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12666 NULL when referring to insns. Add a checked cast to rtx_insn *
12667 when using usage_insn to invoke lra_update_insn_regno_info.
12668 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12669 likewise for locals "restore", "save". Add checked casts to
12670 rtx_insn * when using usage_insn to invoke
12671 lra_update_insn_regno_info and lra_process_new_insns. Replace
12672 NULL_RTX with NULL when referring to insns.
12673 (split_if_necessary): Strengthen param "insn" from rtx to
12675 (update_ebb_live_info): Likewise for params "head", "tail" and local
12677 (get_last_insertion_point): Likewise for return type and local "insn".
12678 (get_live_on_other_edges): Likewise for local "last".
12679 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12680 "prev_insn", "next_insn", "restore".
12681 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12682 (undo_optional_reloads): Likewise for local "insn".
12684 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12686 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12688 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12690 (spill_pseudos): Likewise for local "insn".
12691 (init_elimination): Likewise.
12692 (process_insn_for_elimination): Likewise for param "insn".
12694 * lra-lives.c (curr_insn): Likewise.;
12696 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12697 (remove_pseudos): Likewise for param "insn".
12698 (spill_pseudos): Likewise for local "insn".
12699 (lra_final_code_change): Likewise for locals "insn", "curr".
12701 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12702 (lra_set_insn_deleted): Likewise.
12703 (lra_delete_dead_insn): Likewise, and for local "prev".
12704 (new_insn_reg): Likewise for param "insn".
12705 (lra_set_insn_recog_data): Likewise.
12706 (lra_update_insn_recog_data): Likewise.
12707 (lra_set_used_insn_alternative): Likewise.
12708 (get_insn_freq): Likewise.
12709 (invalidate_insn_data_regno_info): Likewise.
12710 (lra_invalidate_insn_regno_info): Likewise.
12711 (lra_update_insn_regno_info): Likewise.
12712 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12714 (lra_push_insn_1): Strengthen param "insn" from rtx to
12716 (lra_push_insn): Likewise.
12717 (lra_push_insn_and_update_insn_regno_info): Likewise.
12718 (lra_pop_insn): Likewise for return type and local "insn".
12719 (push_insns): Likewise for params "from", "to", and local "insn".
12720 (setup_sp_offset): Likewise for params "from", "last" and locals
12722 (lra_process_new_insns): Likewise for params "insn", "before",
12723 "after" and local "last".
12724 (struct sloc): Likewise for field "insn".
12725 (lra_former_scratch_operand_p): Likewise for param "insn".
12726 (remove_scratches): Likewise for locals "insn", "last".
12727 (check_rtl): Likewise for local "insn".
12728 (add_auto_inc_notes): Likewise for param "insn".
12729 (update_inc_notes): Likewise for local "insn".
12730 (lra): Replace NULL_RTX with NULL when referring to insn.
12732 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12734 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12736 (resolve_reg_notes): Likewise.
12737 (resolve_simple_move): Likewise for return type, param "insn", and
12738 locals "insns", "minsn".
12739 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12740 (resolve_use): Likewise.
12741 (resolve_debug): Likewise.
12742 (find_decomposable_shift_zext): Likewise.
12743 (resolve_shift_zext): Likewise for return type, param "insn", and
12744 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12745 (decompose_multiword_subregs): Likewise for local "insn",
12746 "orig_insn", "decomposed_shift", "end".
12748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12750 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12751 param "insns" from rtx to rtx_insn *.
12753 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12755 (struct iv_to_split): Likewise.
12756 (loop_exit_at_end_p): Likewise for local "insn".
12757 (split_edge_and_insert): Likewise for param "insns".
12758 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12759 and locals "seq", "jump".
12760 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12761 "branch_code"; update invocations of compare_and_jump_seq to
12762 eliminate NULL_RTX in favor of NULL.
12763 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12765 (reset_debug_uses_in_loop): Likewise.
12766 (analyze_insn_to_expand_var): Likewise for param "insn".
12767 (analyze_iv_to_split_insn): Likewise.
12768 (analyze_insns_in_loop): Likewise for local "insn".
12769 (insert_base_initialization): Likewise for param
12770 "insn" and local "seq".
12771 (split_iv): Likewise for param "insn" and local "seq".
12772 (expand_var_during_unrolling): Likewise for param "insn".
12773 (insert_var_expansion_initialization): Likewise for local "seq".
12774 (combine_var_copies_in_loop_exit): Likewise.
12775 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12777 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12778 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12781 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12783 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12785 (iv_analyze_result): Likewise.
12786 (iv_analyze_expr): Likewise.
12789 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12790 local "def_insn" from rtx to rtx_insn *.
12791 (get_biv_step_1): Likewise for local "insn".
12792 (iv_analyze_expr): Likewise for param "insn".
12793 (iv_analyze_def): Likewise for local "insn".
12794 (iv_analyze_op): Likewise for param "insn".
12795 (iv_analyze): Likewise.
12796 (iv_analyze_result): Likewise.
12798 (suitable_set_for_replacement): Likewise.
12799 (simplify_using_initial_values): Likewise for local "insn".
12800 (iv_number_of_iterations): Likewise for param "insn".
12801 (check_simple_exit): Add checked cast to rtx_insn when invoking
12802 iv_number_of_iterations for now (until get_condition is
12805 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12806 "insn" from rtx to rtx_insn *.
12807 (analyze_insns_in_loop): Likewise for local "insn".
12809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12811 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12813 (struct invariant): Likewise.
12814 (hash_invariant_expr_1): Likewise for param "insn".
12815 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12816 (find_exits): Likewise for local "insn".
12817 (create_new_invariant): Likewise for param "insn".
12818 (check_dependencies): Likewise.
12819 (find_invariant_insn): Likewise.
12820 (record_uses): Likewise.
12821 (find_invariants_insn): Likewise.
12822 (find_invariants_bb): Likewise for local "insn".
12823 (get_pressure_class_and_nregs): Likewise for param "insn".
12824 (calculate_loop_reg_pressure): Likewise for local "insn".
12826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12828 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12830 (add_test): Likewise for locals "seq", "jump".
12831 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12833 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12835 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12837 (rebuild_jump_labels_chain): Likewise for param "chain".
12839 * cfgexpand.c (pass_expand::execute): Add checked cast to
12840 rtx_insn * when calling rebuild_jump_labels_chain in region where
12841 we know e->insns.r is non-NULL.
12843 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12845 (rebuild_jump_labels): Likewise.
12846 (rebuild_jump_labels_chain): Likewise for param "chain".
12847 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12848 (init_label_info): Likewise for param "f".
12849 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12850 "prev_nonjump_insn".
12851 (mark_all_labels): Likewise for param "f" and locals "insn",
12852 "prev_nonjump_insn".
12854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12856 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12857 from rtx to rtx_insn *insn.
12858 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12859 (ira_add_allocno_copy): Likewise.
12860 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12862 (ira_create_copy): Likewise.
12863 (ira_add_allocno_copy): Likewise.
12864 (create_bb_allocnos): Likewise for local "insn".
12865 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12866 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12867 process_regs_for_copy for rtx_insn * param.
12868 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12869 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12870 process_regs_for_copy for rtx_insn * param.
12871 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12872 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12873 (record_operand_costs): Likewise.
12874 (scan_one_insn): Likewise for return type, and for param "insn".
12875 (process_bb_for_costs): Likewise for local "insn".
12876 (process_bb_node_for_hard_reg_moves): Likewise.
12877 * ira-emit.c (struct move): Likewise for field "insn".
12878 (create_move): Eliminate use of NULL_RTX when dealing with an
12880 (emit_move_list): Strengthen return type and locals "result",
12881 "insn" from rtx to rtx_insn *insn.
12882 (emit_moves): Likewise for locals "insns", "tmp".
12883 (ira_emit): Likewise for local "insn".
12884 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12886 (find_call_crossed_cheap_reg): Likewise.
12887 (process_bb_node_lives): Likewise for local "insn".
12888 * ira.c (decrease_live_ranges_number): Likewise.
12889 (compute_regs_asm_clobbered): Likewise.
12890 (build_insn_chain): Likewise.
12891 (find_moveable_pseudos): Likewise, also locals "def_insn",
12892 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12893 to rtx_insn **. Add a checked cast when assigning from
12894 "closest_use" into closest_uses array in a region where we know
12895 it's a non-NULL insn.
12896 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12898 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12899 "last_interesting_insn", "uin".
12900 (move_unallocated_pseudos): Likewise for locals "def_insn",
12901 "move_insn", "newinsn".
12903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12905 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12906 Strengthen locals "done_label", "do_error" from rtx to
12908 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12909 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12911 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12912 "done_label", "do_error" to rtx_code_label * and local "last" to
12914 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12915 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12916 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12917 "after_lopart_neg", "do_overflow", "hipart_different" to
12918 rtx_code_label * and local "last" to rtx_insn *.
12920 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12922 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12923 "insn" and "move_insn" from rtx to rtx_insn *.
12925 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12927 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12929 (cheap_bb_rtx_cost_p): Likewise.
12930 (first_active_insn): Likewise for return type and local "insn".
12931 (last_active_insn): Likewise for return type and locals "insn",
12933 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12935 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12937 (noce_try_move): Likewise for local "seq".
12938 (noce_try_store_flag): Likewise.
12939 (noce_try_store_flag_constants): Likewise.
12940 (noce_try_addcc): Likewise.
12941 (noce_try_store_flag_mask): Likewise.
12942 (noce_try_cmove): Likewise.
12943 (noce_try_minmax): Likewise.
12944 (noce_try_abs): Likewise.
12945 (noce_try_sign_mask): Likewise.
12946 (noce_try_bitop): Likewise.
12947 (noce_can_store_speculate_p): Likewise for local "insn".
12948 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12950 (check_cond_move_block): Likewise for local "insn".
12951 (cond_move_convert_if_block): Likewise.
12952 (cond_move_process_if_block): Likewise for locals "seq",
12954 (noce_find_if_block): Likewise for local "jump".
12955 (merge_if_block): Likewise for local "last".
12956 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12957 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12958 (block_has_only_trap): Likewise for return type and local "trap".
12959 (find_if_case_1): Likewise for local "jump".
12960 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12963 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12965 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12966 "last_insn", "loop_end" from rtx to rtx_insn *.
12968 * hw-doloop.c (scan_loop): Likewise for local "insn".
12969 (discover_loop): Likewise for param "tail_insn".
12970 (discover_loops): Likewise for local "tail".
12972 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12973 cast to rtx_insn * when assigning from an rtx local to a
12974 hwloop_info's "last_insn" field.
12976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12978 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12979 (add_delay_dependencies): Strengthen local "pro" from rtx to
12981 (recompute_todo_spec): Likewise.
12982 (dep_cost_1): Likewise for locals "insn", "used".
12983 (schedule_insn): Likewise for local "dbg".
12984 (schedule_insn): Likewise for locals "pro", "next".
12985 (unschedule_insns_until): Likewise for local "con".
12986 (restore_pattern): Likewise for local "next".
12987 (estimate_insn_tick): Likewise for local "pro".
12988 (resolve_dependencies): Likewise for local "next".
12989 (fix_inter_tick): Likewise.
12990 (fix_tick_ready): Likewise for local "pro".
12991 (add_to_speculative_block): Likewise for locals "check", "twin",
12993 (sched_extend_bb): Likewise for locals "end", "insn".
12994 (init_before_recovery): Likewise for local "x".
12995 (sched_create_recovery_block): Likewise for local "barrier".
12996 (create_check_block_twin): Likewise for local "pro".
12997 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12999 (unlink_bb_notes): Update for change to type of bb_header.
13000 Strengthen locals "prev", "label", "note", "next" from rtx to
13002 (clear_priorities): Likewise for local "pro".
13004 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13006 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13008 (test_insn): Likewise for this global.
13009 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13011 (oprs_anticipatable_p): Likewise.
13012 (oprs_available_p): Likewise.
13013 (insert_expr_in_table): Strengthen param "insn" from rtx to
13015 (hash_scan_set): Likewise.
13016 (hash_scan_clobber): Likewise.
13017 (hash_scan_call): Likewise.
13018 (hash_scan_insn): Likewise.
13019 (compute_hash_table_work): Likewise for local "insn".
13020 (process_insert_insn): Likewise for return type and local "pat".
13021 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13022 "pat", "pat_end", "maybe_cc0_setter".
13023 (pre_edge_insert): Likewise for local "insn".
13024 (pre_insert_copy_insn): Likewise for param "insn".
13025 (pre_insert_copies): Likewise for local "insn".
13026 (struct set_data): Likewise for field "insn".
13027 (single_set_gcse): Likewise for param "insn".
13028 (gcse_emit_move_after): Likewise.
13029 (pre_delete): Likewise for local "insn".
13030 (update_bb_reg_pressure): Likewise for param "from" and local
13032 (should_hoist_expr_to_dom): Likewise for param "from".
13033 (hoist_code): Likewise for local "insn".
13034 (get_pressure_class_and_nregs): Likewise for param "insn".
13035 (calculate_bb_reg_pressure): Likewise for local "insn".
13036 (compute_ld_motion_mems): Likewise.
13038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13040 * genpeep.c (main): Rename param back from "uncast_ins1" to
13041 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13044 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13046 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13049 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13050 documentation to state it is only for VSX operations.
13052 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13053 constraint only active if VSX.
13055 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13056 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13057 (lfiwzx): Likewise.
13059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13061 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13062 Strengthen local "insn" from rtx to rtx_insn *.
13063 (use_killed_between): Likewise for param "target_insn".
13064 (all_uses_available_at): Likewise for param "target_insn" and
13066 (update_df_init): Likewise for params "def_insn", "insn".
13067 (update_df): Likewise for param "insn".
13068 (try_fwprop_subst): Likewise for param "def_insn" and local
13070 (free_load_extend): Likewise for param "insn".
13071 (forward_propagate_subreg): Likewise for param "def_insn" and
13073 (forward_propagate_asm): Likewise for param "def_insn" and local
13075 (forward_propagate_and_simplify): Likewise for param "def_insn"
13076 and local "use_insn".
13077 (forward_propagate_into): Likewise for locals "def_insn" and
13080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13082 * function.c (emit_initial_value_sets): Strengthen local "seq"
13083 from rtx to rtx_insn *.
13084 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13086 (instantiate_virtual_regs): Likewise for local "insn".
13087 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13088 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13089 (expand_function_end): Likewise for locals "insn" and "seq".
13090 (epilogue_done): Likewise for local "insn".
13091 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13093 (reposition_prologue_and_epilogue_notes): Likewise for locals
13094 "insn", "last", "note", "first".
13095 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13096 (pass_match_asm_constraints::execute): Likewise for local "insn".
13098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13100 * output.h (final_scan_insn): Strengthen return type from rtx to
13102 (final_forward_branch_p): Likewise for param.
13103 (current_output_insn): Likewise for this global.
13105 * final.c (rtx debug_insn): Likewise for this variable.
13106 (current_output_insn): Likewise.
13107 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13108 adding "insn" back in as an rtx_insn * with a checked cast, so
13109 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13111 (compute_alignments): Strengthen local "label" from rtx to
13113 (shorten_branches): Rename param from "first" to "uncast_first",
13114 introducing a new local rtx_insn * "first" using a checked cast to
13115 effectively strengthen "first" from rtx to rtx_insn * without
13116 affecting the type signature. Strengthen locals "insn", "seq",
13117 "next", "label" from rtx to rtx_insn *.
13118 (change_scope): Strengthen param "orig_insn" and local "insn" from
13120 (final_start_function): Rename param from "first" to "uncast_first",
13121 introducing a new local rtx_insn * "first" using a checked cast to
13122 effectively strengthen "first" from rtx to rtx_insn * without
13123 affecting the type signature. Strengthen local "insn" from rtx to
13125 (dump_basic_block_info): Strengthen param "insn" from rtx to
13127 (final): Rename param from "first" to "uncast_first",
13128 introducing a new local rtx_insn * "first" using a checked cast to
13129 effectively strengthen "first" from rtx to rtx_insn * without
13130 affecting the type signature. Strengthen locals "insn", "next"
13131 from rtx to rtx_insn *.
13132 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13134 (call_from_call_insn): Strengthen param "insn" from rtx to
13136 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13137 introducing a new local rtx_insn * "insn" using a checked cast to
13138 effectively strengthen "insn" from rtx to rtx_insn * without
13139 affecting the type signature. Strengthen return type and locals
13140 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13141 now-redundant checked cast to rtx_insn * from both invocations of
13142 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13143 introducing a local "call_insn" for use when invoking
13144 call_from_call_insn.
13145 (notice_source_line): Strengthen param "insn" from rtx to
13147 (leaf_function_p): Likewise for local "insn".
13148 (final_forward_branch_p): Likewise.
13149 (leaf_renumber_regs): Likewise for param "first".
13150 (rest_of_clean_state): Likewise for locals "insn" and "next".
13151 (self_recursive_call_p): Likewise for param "insn".
13152 (collect_fn_hard_reg_usage): Likewise for local "insn".
13153 (get_call_fndecl): Likewise for param "insn".
13154 (get_call_cgraph_rtl_info): Likewise.
13155 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13156 introducing a new local rtx_insn * "insn" using a checked cast to
13157 effectively strengthen "insn" from rtx to rtx_insn * without
13158 affecting the type signature.
13160 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13161 cast when assigning from param "insn" to current_output_insn.
13162 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13163 so that we can assign it back to current_output_insn.
13165 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13167 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13168 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13169 atmxt540s and atmxt540sreva devices.
13170 * config/avr/avr-tables.opt: Regenerate.
13171 * config/avr/t-multilib: Regenerate.
13172 * doc/avr-mmcu.texi: Regenerate.
13174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13176 * expr.c (convert_move): Strengthen local "insns" from rtx to
13178 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13179 "top_label" from rtx to rtx_code_label *.
13180 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13182 (emit_single_push_insn): Likewise for locals "prev", "last".
13183 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13184 to rtx_code_label *.
13185 (store_constructor): Likewise for locals "loop_start", "loop_end".
13186 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13188 (expand_expr_real_2): Likewise.
13189 (expand_expr_real_1): Strengthen local "label" from rtx to
13192 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13194 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13195 from rtx to rtx_insn *.
13196 (store_bit_field_1): Likewise.
13197 (extract_bit_field_1): Likewise.
13198 (expand_mult_const): Likewise for local "insns".
13199 (expmed_mult_highpart): Strengthen local "label" from rtx to
13201 (expand_smod_pow2): Likewise.
13202 (expand_sdiv_pow2): Likewise.
13203 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13204 rtx_insn *. Strengthen locals "label", "label1", "label2",
13205 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13206 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13207 (emit_store_flag): Likewise.
13208 (emit_store_flag_force): Strengthen local "label" from rtx to
13210 (do_cmp_and_jump): Likewise for param "label".
13212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13214 * explow.c (force_reg): Strengthen local "insn" from rtx to
13216 (adjust_stack_1): Likewise.
13217 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13218 "final_label", "available_label", "space_available" from rtx to
13220 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13221 (anti_adjust_stack_and_probe): Likewise.
13223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13225 * except.h (sjlj_emit_function_exit_after): Strengthen param
13226 "after" from rtx to rtx_insn *. This is only called with
13227 result of get_last_insn (in function.c) so type-change should be
13230 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13231 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13232 to rtx_insn *. These fields are only used from except.c so this
13233 type-change should be self-contained to this patch.
13235 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13236 local "last" from rtx to rtx_insn *.
13237 (dw2_build_landing_pads): Likewise for local "seq".
13238 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13239 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13240 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13242 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13244 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13245 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13246 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13247 referring to an insn. Strengthen local "dispatch_label" from
13248 rtx to rtx_code_label *.
13249 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13251 (expand_eh_return): Strengthen local "around_label" from
13252 rtx to rtx_code_label *.
13253 (convert_to_eh_region_ranges): Strengthen locals "iter",
13254 "last_action_insn", "first_no_action_insn",
13255 "first_no_action_insn_before_switch",
13256 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13260 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13261 from rtx to rtx_insn *.
13262 (cached_next_real_insn): Likewise.
13263 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13264 working with insns.
13265 (dwarf2out_var_location): Strengthen locals "next_real",
13266 "next_note", "expected_next_loc_note", "last_start", "insn" from
13269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13271 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13272 from rtx to rtx_insn *.
13273 (create_pseudo_cfg): Likewise for local "insn".
13275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13277 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13278 from rtx to rtx_insn *.
13279 (df_bb_regno_last_def_find): Likewise.
13281 * df-problems.c (df_rd_bb_local_compute): Likewise.
13282 (df_lr_bb_local_compute): Likewise.
13283 (df_live_bb_local_compute): Likewise.
13284 (df_chain_remove_problem): Likewise.
13285 (df_chain_create_bb): Likewise.
13286 (df_word_lr_bb_local_compute): Likewise.
13287 (df_remove_dead_eq_notes): Likewise for param "insn".
13288 (df_note_bb_compute): Likewise for local "insn".
13289 (simulate_backwards_to_point): Likewise.
13290 (df_md_bb_local_compute): Likewise.
13292 * df-scan.c (df_scan_free_bb_info): Likewise.
13293 (df_scan_start_dump): Likewise.
13294 (df_scan_start_block): Likewise.
13295 (df_install_ref_incremental): Likewise for local "insn".
13296 (df_insn_rescan_all): Likewise.
13297 (df_reorganize_refs_by_reg_by_insn): Likewise.
13298 (df_reorganize_refs_by_insn_bb): Likewise.
13299 (df_recompute_luids): Likewise.
13300 (df_bb_refs_record): Likewise.
13301 (df_update_entry_exit_and_calls): Likewise.
13302 (df_bb_verify): Likewise.
13304 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13306 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13307 "first_note" from rtx to rtx_insn *.
13308 (get_node_of_insn): Likewise for param 2 "insn".
13309 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13311 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13313 (mem_write_insn_p): Likewise.
13314 (mem_access_insn_p): Likewise.
13315 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13316 (def_has_ccmode_p): Likewise for param "insn".
13317 (add_cross_iteration_register_deps): Likewise for locals
13318 "def_insn" and "use_insn".
13319 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13320 (build_intra_loop_deps): Likewise for local "src_insn".
13321 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13323 (get_node_of_insn): Likewise for param "insn".
13325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13327 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13328 (deletable_insn_p): Strengthen param "insn" from rtx to
13329 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13330 find_call_stack_args, since this is guarded by CALL_P (insn).
13331 (marked_insn_p): Strengthen param "insn" from rtx to
13333 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13334 invoking find_call_stack_args, since this is guarded by
13336 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13337 rtx_insn *; we know this is an insn since this was called by
13338 mark_nonreg_stores.
13339 (mark_nonreg_stores_2): Likewise.
13340 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13342 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13343 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13345 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13346 from rtx to rtx_insn *.
13347 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13348 "next", "ref_insn".
13349 (delete_unmarked_insns): Likewise for locals "insn", "next".
13350 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13351 (mark_reg_dependencies): Likewise for param "insn".
13352 (rest_of_handle_ud_dce): Likewise for local "insn".
13353 (word_dce_process_block): Likewise.
13354 (dce_process_block): Likewise.
13356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13358 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13359 from rtx to rtx_insn *.
13360 (struct change_cc_mode_args): Likewise for field "insn".
13361 (this_insn): Strengthen from rtx to rtx_insn *.
13362 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13364 (validate_canon_reg): Strengthen param "insn" from rtx to
13366 (canon_reg): Likewise.
13367 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13369 (record_jump_equiv): Strengthen param "insn" from rtx to
13371 (try_back_substitute_reg): Likewise, also for locals "prev",
13373 (find_sets_in_insn): Likewise for param "insn".
13374 (canonicalize_insn): Likewise.
13375 (cse_insn): Likewise. Add a checked cast.
13376 (invalidate_from_clobbers): Likewise for param "insn".
13377 (invalidate_from_sets_and_clobbers): Likewise.
13378 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13380 (cse_prescan_path): Strengthen local "insn" from rtx to
13382 (cse_extended_basic_block): Likewise for locals "insn" and
13384 (cse_main): Likewise for param "f".
13385 (check_for_label_ref): Likewise for local "insn".
13386 (set_live_p): Likewise for second param ("insn").
13387 (insn_live_p): Likewise for first param ("insn") and for local
13389 (cse_change_cc_mode_insn): Likewise for first param "insn".
13390 (cse_change_cc_mode_insns): Likewise for first and second params
13392 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13394 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13397 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13399 Anna Tikhonova <anna.tikhonova@intel.com>
13400 Ilya Tocar <ilya.tocar@intel.com>
13401 Andrey Turetskiy <andrey.turetskiy@intel.com>
13402 Ilya Verbin <ilya.verbin@intel.com>
13403 Kirill Yukhin <kirill.yukhin@intel.com>
13404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13406 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13408 * config/i386/sse.md
13409 (define_mode_iterator VI248_AVX2): Delete.
13410 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13411 (define_mode_iterator VI48_AVX2): Ditto.
13412 (define_insn <shift_insn><mode>3): Delete.
13413 (define_insn "<shift_insn><mode>3<mask_name>" with
13414 VI2_AVX2_AVX512BW): New.
13415 (define_insn "<shift_insn><mode>3<mask_name>" with
13418 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13420 Anna Tikhonova <anna.tikhonova@intel.com>
13421 Ilya Tocar <ilya.tocar@intel.com>
13422 Andrey Turetskiy <andrey.turetskiy@intel.com>
13423 Ilya Verbin <ilya.verbin@intel.com>
13424 Kirill Yukhin <kirill.yukhin@intel.com>
13425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13427 * config/i386/sse.md
13428 (define_mode_iterator VI4F_BRCST32x2): New.
13429 (define_mode_attr 64x2_mode): Ditto.
13430 (define_mode_attr 32x2mode): Ditto.
13431 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13432 with VI4F_BRCST32x2): Ditto.
13433 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13434 with V16FI mode iterator): Ditto.
13435 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13436 with V16FI): Ditto.
13437 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13438 with VI8F_BRCST64x2): Ditto.
13440 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13442 Anna Tikhonova <anna.tikhonova@intel.com>
13443 Ilya Tocar <ilya.tocar@intel.com>
13444 Andrey Turetskiy <andrey.turetskiy@intel.com>
13445 Ilya Verbin <ilya.verbin@intel.com>
13446 Kirill Yukhin <kirill.yukhin@intel.com>
13447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13449 * config/i386/sse.md
13450 (define_mode_iterator VI8_AVX512VL): New.
13451 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13453 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13455 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13456 (define_mode_iterator V48_AVX512VL): New.
13457 (define_mode_iterator V12_AVX512VL): Ditto.
13458 (define_insn <avx512>_load<mode>_mask): Split into two similar
13459 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13460 Refactor output template.
13461 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13465 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13467 (reg_available_p): Likewise for param "insn".
13468 (insert_set_in_table): Likewise.
13469 (hash_scan_set): Likewise.
13470 (hash_scan_insn): Likewise.
13471 (make_set_regs_unavailable): Likewise.
13472 (compute_hash_table_work): Likewise for local "insn".
13473 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13475 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13476 (try_replace_reg): Likewise.
13477 (find_avail_set): Likewise.
13478 (cprop_jump): Likewise for params "setcc", "jump".
13479 (constprop_register): Likewise for param "insn".
13480 (cprop_insn): Likewise.
13481 (do_local_cprop): Likewise.
13482 (local_cprop_pass): Likewise for local "insn".
13483 (bypass_block): Likewise for params "setcc" and "jump".
13484 (bypass_conditional_jumps): Likewise for locals "setcc" and
13486 (one_cprop_pass): Likewise for local "insn".
13488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13490 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13491 from rtx to rtx_insn *.
13492 (struct comparison): Likewise, also for field "prev_clobber".
13493 (conforming_compare): Likewise for param "insn".
13494 (arithmetic_flags_clobber_p): Likewise.
13495 (find_flags_uses_in_insn): Likewise.
13496 (find_comparison_dom_walker::before_dom_children): Likewise for
13497 locals "insn", "next", "last_clobber".
13498 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13502 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13503 "insn" from rtx to rtx_insn *.
13504 (single_set_for_csa): Likewise for param "insn".
13505 (record_one_stack_ref): Likewise.
13506 (try_apply_stack_adjustment): Likewise.
13507 (struct record_stack_refs_data): Likewise for field "insn".
13508 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13509 (prev_active_insn_bb): Likewise for return type and param "insn".
13510 (next_active_insn_bb): Likewise.
13511 (force_move_args_size_note): Likewise for params "prev" and "last"
13512 and locals "test", "next_candidate", "prev_candidate".
13513 (combine_stack_adjustments_for_block): Strengthen locals
13514 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13517 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13519 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13520 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13521 (subst_insn): Likewise for this variable.
13522 (added_links_insn): Likewise.
13523 (struct insn_link): Likewise for field "insn".
13524 (alloc_insn_link): Likewise for param "insn".
13525 (struct undobuf): Likewise for field "other_insn".
13526 (find_single_use): Likewise for param "insn" and local "next".
13527 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13528 (delete_noop_moves): Likewise for locals "insn", "next".
13529 (create_log_links): Likewise for locals "insn", "use_insn".
13530 Strengthen local "next_use" from rtx * to rtx_insn **.
13531 (insn_a_feeds_b): Likewise for params "a", "b".
13532 (combine_instructions): Likewise for param "f" and locals "insn",
13533 "next", "prev", "first", "last_combined_insn", "link", "link1",
13534 "temp". Replace use of NULL_RTX with NULL when referring to
13536 (setup_incoming_promotions): Likewise for param "first"
13537 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13538 (can_combine_p): Likewise for params "insn", "i3", "pred",
13539 "pred2", "succ", "succ2" and for local "p".
13540 (combinable_i3pat): Likewise for param "i3".
13541 (cant_combine_insn_p): Likewise for param "insn".
13542 (likely_spilled_retval_p): Likewise.
13543 (adjust_for_new_dest): Likewise.
13544 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13545 (try_combine): Likewise for return type and for params "i3", "i2",
13546 "i1", "i0", "last_combined_insn", and for locals "insn",
13547 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13548 "i0_insn". Eliminate local "tem" in favor of new locals
13549 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13550 checked cast for now to rtx_insn * on the return type of
13551 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13553 (find_split_point): Strengthen param "insn" from rtx to
13555 (simplify_set): Likewise for local "other_insn".
13556 (recog_for_combine): Likewise for param "insn".
13557 (record_value_for_reg): Likewise.
13558 (record_dead_and_set_regs_1): Likewise for local
13559 "record_dead_insn".
13560 (record_dead_and_set_regs): Likewise for param "insn".
13561 (record_promoted_value): Likewise.
13562 (check_promoted_subreg): Likewise.
13563 (get_last_value_validate): Likewise.
13564 (reg_dead_at_p): Likewise.
13565 (move_deaths): Likewise for param "to_insn".
13566 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13567 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13568 in favor of new locals "tem_note" and "tem_insn", the latter being
13570 (distribute_links): Strengthen locals "place", "insn" from rtx to
13573 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13575 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13577 (can_delete_label_p): Require a const rtx_code_label * rather than
13579 (delete_insn): Add checked cast to rtx_code_label * when we know
13580 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13582 (delete_insn_chain): Strengthen locals "prev" and "current" from
13583 rtx to rtx_insn *. Add a checked cast when assigning from
13584 "finish" (strengthening the params will come later). Add a
13585 checked cast to rtx_note * in region where we know
13587 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13589 (compute_bb_for_insn): Likewise.
13590 (free_bb_for_insn): Likewise for local "insn".
13591 (compute_bb_for_insn): Likewise.
13592 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13593 local "insn" from rtx to rtx_insn *
13594 (flow_active_insn_p): Require a const rtx_insn * rather than a
13596 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13598 (can_fallthru): Likewise for locals "insn" and "insn2".
13599 (bb_note): Likewise for local "note".
13600 (first_insn_after_basic_block_note): Likewise for local "note" and
13602 (rtl_split_block): Likewise for locals "insn" and "next".
13603 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13605 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13606 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13608 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13609 them), "kill_from", "barrier", "new_insn".
13610 (patch_jump_insn): Likewise for params "insn", "old_label".
13611 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13612 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13613 "old_label", "new_label".
13614 (rtl_tidy_fallthru_edge): Likewise for local "q".
13615 (rtl_split_edge): Likewise for locals "before", "last".
13616 (commit_one_edge_insertion): Likewise for locals "before",
13617 "after", "insns", "tmp", "last", adding a checked cast where
13618 currently necessary.
13619 (commit_edge_insertions): Likewise.
13620 (rtl_dump_bb): Likewise for locals "insn", "last".
13621 (print_rtl_with_bb): Likewise for local "x".
13622 (rtl_verify_bb_insns): Likewise for local "x".
13623 (rtl_verify_bb_pointers): Likewise for local "insn".
13624 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13626 (rtl_verify_fallthru): Likewise for local "insn".
13627 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13628 (purge_dead_edges): Likewise for local "insn".
13629 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13630 (skip_insns_after_block): Likewise for return type and for locals
13631 "insn", "last_insn", "next_head", "prev".
13632 (record_effective_endpoints): Likewise for locals "next_insn",
13634 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13635 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13636 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13637 (duplicate_insn_chain): For now, add checked cast from rtx to
13638 rtx_insn * when returning insn.
13639 (cfg_layout_duplicate_bb): Likewise for local "insn".
13640 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13641 "prev", "remaints".
13642 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13643 (rtl_block_empty_p): Likewise.
13644 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13645 "split_point", "last".
13646 (rtl_block_ends_with_call_p): Likewise for local "insn".
13647 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13649 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13650 "split_at_insn" from rtx to rtx_insn *.
13651 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13652 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13653 to const rtx_insn *.
13654 (rtl_account_profile_record): Likewise.
13656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13658 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13660 (average_num_loop_insns): Likewise.
13661 (init_set_costs): Likewise for local "seq".
13662 (seq_cost): Likewise for param "seq", from const_rtx to const
13665 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13667 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13670 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13672 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13673 "f1" and "f2" from rtx * to rtx_insn **.
13674 (flow_find_head_matching_sequence): Likewise.
13676 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13677 "cbranch_insn" from rtx to rtx_insn *.
13678 (thread_jump): Likewise for local "insn".
13679 (try_forward_edges): Likewise for local "last".
13680 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13681 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13683 (can_replace_by): Likewise for params "i1", "i2".
13684 (old_insns_match_p): Likewise.
13685 (merge_notes): Likewise.
13686 (walk_to_nondebug_insn): Likewise for param "i1".
13687 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13688 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13689 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13690 (flow_find_head_matching_sequence): Strengthen params "f1" and
13691 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13692 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13694 (outgoing_edges_match): Likewise for locals "last1", "last2".
13695 (try_crossjump_to_edge): Likewise for local "insn".
13696 Replace call to for_each_rtx with for_each_rtx_in_insn.
13698 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13699 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13700 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13701 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13702 (try_optimize_cfg): Strengthen local "last" from rtx to
13704 (delete_dead_jumptables): Likewise for locals "insn", "next",
13707 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13708 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13709 "rtx else_first_tail", to reflect the basic-block.h changes above.
13711 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13713 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13715 (purge_dead_tablejump_edges): Likewise.
13716 (find_bb_boundaries): Likewise for locals "insn", "end",
13717 "flow_transfer_insn".
13719 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13721 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13722 "ins" and "prev" from rtx to rtx_insn *.
13724 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13726 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13728 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13729 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13731 (load_register_parameters): Likewise for local "before_arg".
13732 (check_sibcall_argument_overlap): Likewise for param "insn".
13733 (expand_call): Likewise for locals "normal_call_insns",
13734 "tail_call_insns", "insns", "before_call", "after_args",
13735 "before_arg", "last", "prev". Strengthen one of the "last" from
13736 rtx to rtx_call_insn *.
13737 (fixup_tail_calls): Strengthen local "insn" from rtx to
13739 (emit_library_call_value_1): Likewise for locals "before_call" and
13742 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13744 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13745 and "last" from rtx to rtx_insn *.
13746 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13747 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13749 (expand_errno_check): Strengthen local "lab" from rtx to
13751 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13753 (expand_builtin_mathfn_2): Likewise.
13754 (expand_builtin_mathfn_ternary): Likewise.
13755 (expand_builtin_mathfn_3): Likewise.
13756 (expand_builtin_interclass_mathfn): Likewise for local "last".
13757 (expand_builtin_int_roundingfn): Likewise for local "insns".
13758 (expand_builtin_int_roundingfn_2): Likewise.
13759 (expand_builtin_strlen): Likewise for local "before_strlen".
13760 (expand_builtin_strncmp): Likewise for local "seq".
13761 (expand_builtin_signbit): Likewise for local "last".
13762 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13763 from rtx to rtx_code_label *.
13764 (expand_stack_restore): Strengthen local "prev" from rtx to
13767 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13769 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13771 (struct btr_def_s): Likewise.
13772 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13774 (add_btr_def): Likewise.
13775 (new_btr_user): Likewise.
13776 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13778 (link_btr_uses): Likewise.
13779 (move_btr_def): Likewise for locals "insp", "old_insn",
13780 "new_insn". Add checked cast to rtx_insn * for now on result of
13782 (can_move_up): Strengthen param "insn" from const_rtx to
13785 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13787 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13789 (get_uncond_jump_length): Likewise for locals "label", "jump".
13790 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13792 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13793 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13794 (find_jump_block): Likewise for local "insn".
13795 (fix_crossing_conditional_branches): Likewise for locals
13796 "old_jump", "new_jump".
13797 (fix_crossing_unconditional_branches): Likewise for locals
13798 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13799 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13801 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13803 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13805 (struct mem_insn): Likewise for field "insn".
13806 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13807 (reg_next_inc_use): Likewise.
13808 (reg_next_def): Likewise.
13809 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13810 from rtx to rtx_insn *.
13811 (move_insn_before): Likewise for param "next_insn" and local "insns".
13812 (attempt_change): Likewise for local "mov_insn".
13813 (try_merge): Likewise for param "last_insn".
13814 (get_next_ref): Likewise for return type and local "insn".
13815 Strengthen param "next_array" from rtx * to rtx_insn **.
13816 (parse_add_or_inc): Strengthen param "insn" from rtx to
13818 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13820 (merge_in_block): Likewise for locals "insn", "curr",
13822 (pass_inc_dec::execute): Update allocations of the arrays to
13823 reflect the stronger types.
13825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13827 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13828 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13829 from rtx to rtx_code_label *.
13831 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13833 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13836 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13838 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13839 generated a warning and prevented bootstrapping the compiler.
13841 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13843 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13846 * jump.c (delete_related_insns): Likewise, also for locals "next"
13849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13851 * genautomata.c (output_internal_insn_latency_func): When writing
13852 the function "internal_insn_latency" to insn-automata.c,
13853 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13854 allowing the optional guard function of (define_bypass) clauses to
13855 expect a pair of rtx_insn *, rather than a pair of rtx.
13856 (output_insn_latency_func): When writing the function
13857 "insn_latency", add an "uncast_" prefix to params "insn" and
13858 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13859 using checked casts from the params, thus enabling the above
13860 change to the generated "internal_insn_latency" function.
13862 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13864 PR tree-optimization/62091
13865 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13866 handle correctly arrays.
13867 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13868 inheritance binfos.
13869 (record_known_type): Walk into inner type.
13870 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13871 condition on no type changes.
13873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13875 * genattrtab.c (write_attr_get): Within the generated get_attr_
13876 functions, rename param "insn" to "uncast_insn" and reintroduce
13877 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13878 is an rtx_insn * within insn-attrtab.c
13880 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13882 * output.h (peephole): Strengthen return type from rtx to
13884 * rtl.h (delete_for_peephole): Likewise for both params.
13885 * genpeep.c (main): In generated "peephole" function, strengthen
13886 return type and local "insn" from rtx to rtx_insn *. For now,
13887 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13888 rtx_insn *, with a checked cast.
13889 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13890 locals "insn", "next", "prev" from rtx to rtx_insn *.
13892 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13894 PR tree-optimization/62112
13895 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13896 * gimple-iterator.h (gsi_replace): Return bool.
13897 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13898 moved from ref_may_alias_global_p.
13899 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13901 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13902 (stmt_kills_ref_p_1): Rename...
13903 (stmt_kills_ref_p): ... to this.
13904 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13905 stmt_kills_ref_p): Declare.
13906 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13907 Move the self-assignment case...
13908 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13912 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13914 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13915 "after". For now, don't strengthen param "trial", which requires
13916 adding checked casts when returning it.
13918 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13920 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13921 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13922 "var_location" hook from rtx to rtx_insn *.
13923 (debug_nothing_rtx): Delete in favor of...
13924 (debug_nothing_rtx_code_label): New prototype.
13925 (debug_nothing_rtx_rtx): Delete unused prototype.
13926 (debug_nothing_rtx_insn): New prototype.
13928 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13929 invoking debug_hooks->var_location (in two places, one in a NOTE
13930 case of a switch statement, the other guarded by a CALL_P
13931 conditional. Add checked cast to rtx_code_label * when invoking
13932 debug_hooks->label (within CODE_LABEL case of switch statement).
13934 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13935 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13936 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13937 (xcoff_debug_hooks): Likewise.
13938 * debug.c (do_nothing_debug_hooks): Likewise.
13939 (debug_nothing_rtx): Delete in favor of...
13940 (debug_nothing_rtx_insn): New function.
13941 (debug_nothing_rtx_rtx): Delete unused function.
13942 (debug_nothing_rtx_code_label): New function.
13943 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13944 debug_nothing_rtx to debug_nothing_rtx_code_label.
13945 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13947 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13948 debug_nothing_rtx to debug_nothing_rtx_insn.
13949 (sdbout_label): Strengthen param "insn" from rtx to
13951 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13952 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13953 "var_location" hook from debug_nothing_rtx to
13954 debug_nothing_rtx_insn.
13956 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13958 * recog.h (insn_output_fn): Update this function typedef to match
13959 the changes below to the generated output functions, strengthening
13960 the 2nd param from rtx to rtx_insn *.
13962 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13963 insn when invoking an output function, to match the new signature
13964 of insn_output_fn with a stronger second param.
13966 * genconditions.c (write_header): In the generated code for
13967 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13968 to match the other changes in this patch.
13970 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13971 the generated "gen_" functions from rtx to rtx_insn * within their
13974 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13975 the subfunctions within the generated "recog_", "split", "peephole2"
13976 function trees from rtx to rtx_insn *. For now, the top-level
13977 generated functions ("recog", "split", "peephole2") continue to
13978 take a plain rtx for "insn", to avoid introducing dependencies on
13979 other patches. Rename this 2nd param from "insn" to
13980 "uncast_insn", and reintroduce "insn" as a local variable of type
13981 rtx_insn *, initialized at the top of the generated function with
13982 a checked cast on "uncast_insn".
13983 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13984 the generated "gen_" functions from rtx to rtx_insn * within their
13987 * genoutput.c (process_template): Strengthen the 2nd param within
13988 the generated "output_" functions "insn" from rtx to rtx_insn *.
13990 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13992 * tree-profile.c (tree_profiling): Skip external functions
13993 when doing coverage instrumentation.
13994 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13996 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13998 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13999 (vec_mergee): Likewise.
14000 (vec_mergeo): Likewise.
14001 (vec_cntlz): Likewise.
14002 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14003 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14004 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14005 VMRGEW, and VMRGOW.
14006 * doc/extend.texi: Document various forms of vec_cpsgn,
14007 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14008 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14009 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14010 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14011 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14013 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14015 * config/rs6000/rs6000.c (context.h): New include.
14016 (tree-pass.h): Likewise.
14017 (make_pass_analyze_swaps): New decl.
14018 (rs6000_option_override): Register pass_analyze_swaps.
14019 (swap_web_entry): New subsclass of web_entry_base (df.h).
14020 (special_handling_values): New enum.
14021 (union_defs): New function.
14022 (union_uses): Likewise.
14023 (insn_is_load_p): Likewise.
14024 (insn_is_store_p): Likewise.
14025 (insn_is_swap_p): Likewise.
14026 (rtx_is_swappable_p): Likewise.
14027 (insn_is_swappable_p): Likewise.
14028 (chain_purpose): New enum.
14029 (chain_contains_only_swaps): New function.
14030 (mark_swaps_for_removal): Likewise.
14031 (swap_const_vector_halves): Likewise.
14032 (adjust_subreg_index): Likewise.
14033 (permute_load): Likewise.
14034 (permute_store): Likewise.
14035 (handle_special_swappables): Likewise.
14036 (replace_swap_with_copy): Likewise.
14037 (dump_swap_insn_table): Likewise.
14038 (rs6000_analyze_swaps): Likewise.
14039 (pass_data_analyze_swaps): New pass_data.
14040 (pass_analyze_swaps): New rtl_opt_pass.
14041 (make_pass_analyze_swaps): New function.
14042 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14044 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14046 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14047 type from rtx to rtx_insn *.
14048 (create_copy_of_insn_rtx): Likewise.
14049 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14050 (create_copy_of_insn_rtx): Likewise, also for local "res".
14052 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14054 * rtl.h (find_first_parameter_load): Strengthen return type from
14056 * rtlanal.c (find_first_parameter_load): Strengthen return type
14057 from rtx to rtx_insn *. Add checked cast for now, to postpone
14058 strengthening the params.
14060 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14063 * diagnostic.c: Set default caret.
14064 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14066 * diagnostic.h (struct diagnostic_context):
14068 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14070 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14071 (sel_bb_head): Strengthen return type insn_t (currently just an
14072 rtx) to rtx_insn *.
14073 (sel_bb_end): Likewise.
14075 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14076 (sel_bb_head): Strengthen return type and local "head" from
14077 insn_t (currently just an rtx) to rtx_insn *.
14078 (sel_bb_end): Likewise for return type.
14079 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14082 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14084 * basic-block.h (get_last_bb_insn): Strengthen return type from
14086 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14089 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14092 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14094 (diagnostic_report_diagnostic): ... from here.
14095 * toplev.c (general_init): Move code to c-family.
14097 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14099 * df.h (web_entry_base): Replace existing struct web_entry with a
14100 new class web_entry_base with only the predecessor member.
14101 (unionfind_root): Remove declaration and move to class member.
14102 (unionfind_union): Remove declaration and move to friend
14104 (union_defs): Remove declaration.
14105 * web.c (web_entry_base::unionfind_root): Modify to be member
14106 function and adjust accessors.
14107 (unionfind_union): Modify to be friend function and adjust
14109 (web_entry): New subclass of web_entry_base containing the reg
14111 (union_match_dups): Modify for struct -> class changes.
14112 (union_defs): Likewise.
14113 (entry_register): Likewise.
14114 (pass_web::execute): Likewise.
14116 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14118 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14119 builtin define __VEC_ELEMENT_REG_ORDER__.
14121 2014-08-20 Martin Jambor <mjambor@suse.cz>
14122 Wei Mi <wmi@google.com>
14125 PR middle-end/61776
14126 * tree-ssa-operands.c (update_stmt_operands): Remove
14127 MODIFIED_NORETURN_CALLS.
14128 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14129 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14130 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14131 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14132 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14133 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14134 (gimple_call_set_ctrl_altering): New func.
14135 (gimple_call_ctrl_altering_p): Ditto.
14136 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14137 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14138 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14139 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14140 remove MODIFIED_NORETURN_CALLS.
14142 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14144 * coverage.c (coverage_compute_profile_id): Return non-0;
14145 also handle symbols with unique name.
14146 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14148 2014-08-20 Steve Ellcey <sellcey@mips.com>
14150 PR middle-end/49191
14151 * doc/sourcebuild.texi (non_strict_align): New.
14153 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14155 * cgraphunit.c (ipa_passes, compile): Reshedule
14156 symtab_remove_unreachable_nodes passes; update comments.
14157 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14158 TODO_remove_functions before the pass; the functions ought to be
14160 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14161 TODO_remove_functions.
14162 * passes.c (pass_data_early_local_passes): Do not schedule function
14164 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14166 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14169 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14170 before setting the option.
14171 * diagnostic.c (diagnostic_classify_diagnostic): Record
14172 command-line status.
14174 2014-08-20 Richard Biener <rguenther@suse.de>
14177 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14178 to build uint{16,32,64}_type_node.
14180 2014-08-20 Terry Guo <terry.guo@arm.com>
14182 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14183 with immediate_operand.
14185 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14187 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14188 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14191 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14193 PR preprocessor/51303
14194 * incpath.c (remove_duplicates): Use cpp_warning.
14196 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14200 * doc/options.texi (CPP): Document it.
14201 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14202 * optc-gen.awk: Handle CPP.
14203 * opth-gen.awk: Likewise.
14205 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14207 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14209 (duplicate_insn_chain): Likewise.
14210 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14211 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14212 checked cast for now (until we can strengthen the params in the
14214 (duplicate_insn_chain): Likewise.
14216 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14218 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14220 (prev_cc0_setter): Likewise.
14222 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14223 rtx_insn *, adding checked casts for now as necessary.
14224 (prev_cc0_setter): Likewise.
14226 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14228 * expr.h (emit_move_insn): Strengthen return type from rtx to
14230 (emit_move_insn_1): Likewise.
14231 (emit_move_complex_push): Likewise.
14232 (emit_move_complex_parts): Likewise.
14234 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14235 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14237 (emit_move_complex_push): Strengthen return type from rtx to
14239 (emit_move_complex): Likewise, also for local "ret".
14240 (emit_move_ccmode): Likewise.
14241 (emit_move_multi_word): Likewise for return type and locals
14242 "last_insn", "seq".
14243 (emit_move_insn_1): Likewise for return type and locals "result",
14245 (emit_move_insn): Likewise for return type and local "last_insn".
14246 (compress_float_constant): Likewise.
14248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14250 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14251 from rtx to rtx_insn *.
14253 * rtl.h (emit_insn_before): Likewise.
14254 (emit_insn_before_noloc): Likewise.
14255 (emit_insn_before_setloc): Likewise.
14256 (emit_jump_insn_before): Likewise.
14257 (emit_jump_insn_before_noloc): Likewise.
14258 (emit_jump_insn_before_setloc): Likewise.
14259 (emit_call_insn_before): Likewise.
14260 (emit_call_insn_before_noloc): Likewise.
14261 (emit_call_insn_before_setloc): Likewise.
14262 (emit_debug_insn_before): Likewise.
14263 (emit_debug_insn_before_noloc): Likewise.
14264 (emit_debug_insn_before_setloc): Likewise.
14265 (emit_label_before): Likewise.
14266 (emit_insn_after): Likewise.
14267 (emit_insn_after_noloc): Likewise.
14268 (emit_insn_after_setloc): Likewise.
14269 (emit_jump_insn_after): Likewise.
14270 (emit_jump_insn_after_noloc): Likewise.
14271 (emit_jump_insn_after_setloc): Likewise.
14272 (emit_call_insn_after): Likewise.
14273 (emit_call_insn_after_noloc): Likewise.
14274 (emit_call_insn_after_setloc): Likewise.
14275 (emit_debug_insn_after): Likewise.
14276 (emit_debug_insn_after_noloc): Likewise.
14277 (emit_debug_insn_after_setloc): Likewise.
14278 (emit_label_after): Likewise.
14279 (emit_insn): Likewise.
14280 (emit_debug_insn): Likewise.
14281 (emit_jump_insn): Likewise.
14282 (emit_call_insn): Likewise.
14283 (emit_label): Likewise.
14284 (gen_clobber): Likewise.
14285 (emit_clobber): Likewise.
14286 (gen_use): Likewise.
14287 (emit_use): Likewise.
14290 (emit_barrier_before): Strengthen return type from rtx to
14292 (emit_barrier_after): Likewise.
14293 (emit_barrier): Likewise.
14295 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14296 from rtx to rtx_insn *. Add checked casts for now when converting
14297 "last" from rtx to rtx_insn *.
14298 (emit_insn_before_noloc): Likewise for return type.
14299 (emit_jump_insn_before_noloc): Likewise.
14300 (emit_call_insn_before_noloc): Likewise.
14301 (emit_debug_insn_before_noloc): Likewise.
14302 (emit_barrier_before): Strengthen return type and local "insn"
14303 from rtx to rtx_barrier *.
14304 (emit_label_before): Strengthen return type from rtx to
14305 rtx_insn *. Add checked cast for now when returning param
14306 (emit_pattern_after_noloc): Strengthen return type from rtx to
14307 rtx_insn *. Add checked casts for now when converting "last" from
14309 (emit_insn_after_noloc): Strengthen return type from rtx to
14311 (emit_jump_insn_after_noloc): Likewise.
14312 (emit_call_insn_after_noloc): Likewise.
14313 (emit_debug_insn_after_noloc): Likewise.
14314 (emit_barrier_after): Strengthen return type from rtx to
14316 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14317 Add checked cast for now when converting "label" from rtx to
14319 (emit_pattern_after_setloc): Strengthen return type from rtx to
14320 rtx_insn *. Add checked casts for now when converting "last" from
14322 (emit_pattern_after): Strengthen return type from rtx to
14324 (emit_insn_after_setloc): Likewise.
14325 (emit_insn_after): Likewise.
14326 (emit_jump_insn_after_setloc): Likewise.
14327 (emit_jump_insn_after): Likewise.
14328 (emit_call_insn_after_setloc): Likewise.
14329 (emit_call_insn_after): Likewise.
14330 (emit_debug_insn_after_setloc): Likewise.
14331 (emit_debug_insn_after): Likewise.
14332 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14333 when converting "last" from rtx to rtx_insn *.
14334 (emit_pattern_before): Strengthen return type from rtx to
14336 (emit_insn_before_setloc): Likewise.
14337 (emit_insn_before): Likewise.
14338 (emit_jump_insn_before_setloc): Likewise.
14339 (emit_jump_insn_before): Likewise.
14340 (emit_call_insn_before_setloc): Likewise.
14341 (emit_call_insn_before): Likewise.
14342 (emit_debug_insn_before_setloc): Likewise.
14343 (emit_debug_insn_before): Likewise.
14344 (emit_insn): Strengthen return type and locals "last", "insn",
14345 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14346 within cases where we know we have an insn.
14347 (emit_debug_insn): Likewise.
14348 (emit_jump_insn): Likewise.
14349 (emit_call_insn): Strengthen return type and local "insn" from rtx
14351 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14352 a checked cast to rtx_insn * for now on "label".
14353 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14354 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14355 (emit_use): Likewise.
14356 (gen_use): Likewise, also for local "seq".
14357 (emit): Likewise for return type and local "insn".
14358 (rtx_insn): Likewise for return type and local "new_rtx".
14360 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14361 from rtx to rtx_barrier *.
14363 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14364 changed return type from rtx to rtx_insn *, we must update
14365 "emit_fn" type, and this in turn means updating...
14366 (frame_insn): ...this. Strengthen return type from rtx to
14367 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14369 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14371 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14372 rtx to rtx_jump_table_data *. Also for local.
14373 * rtl.h (emit_jump_table_data): Likewise.
14375 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14377 * basic-block.h (create_basic_block_structure): Strengthen third
14378 param "bb_note" from rtx to rtx_note *.
14379 * rtl.h (emit_note_before): Strengthen return type from rtx to
14381 (emit_note_after): Likewise.
14382 (emit_note): Likewise.
14383 (emit_note_copy): Likewise. Also, strengthen param similarly.
14384 * function.h (struct rtl_data): Strengthen field
14385 "x_stack_check_probe_note" from rtx to rtx_note *.
14387 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14388 from rtx to rtx_note *.
14389 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14390 "bb_note" from rtx to rtx_note *.
14391 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14392 when calling emit_note_copy.
14393 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14395 (emit_note_after): Likewise.
14396 (emit_note_before): Likewise.
14397 (emit_note_copy): Likewise. Also, strengthen param similarly.
14398 (emit_note): Likewise.
14399 * except.c (emit_note_eh_region_end): Likewise for return type.
14400 Strengthen local "next" from rtx to rtx_insn *.
14401 (convert_to_eh_region_ranges): Strengthen local "note"
14402 from rtx to rtx_note *.
14403 * final.c (change_scope): Likewise.
14404 (reemit_insn_block_notes): Likewise, for both locals named "note".
14405 Also, strengthen local "insn" from rtx to rtx_insn *.
14406 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14408 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14409 strengthen local "seq" from rtx to rtx_insn *.
14410 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14412 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14414 (get_bb_note_from_pool): Strengthen return type from rtx to
14416 (sel_create_basic_block): Strengthen local "new_bb_note" from
14417 insn_t to rtx_note *.
14418 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14419 "note" from rtx to rtx_note *.
14420 (emit_notes_in_bb): Likewise.
14422 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14424 * function.h (struct rtl_data): Strengthen field
14425 "x_parm_birth_insn" from rtx to rtx_insn *.
14426 * function.c (struct assign_parm_data_all): Strengthen fields
14427 "first_conversion_insn" and "last_conversion_insn" from rtx to
14430 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14432 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14433 to rtx_insn *; also for local "var_end_seq".
14434 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14435 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14437 (expand_gimple_cond): Likewise for locals "last2" and "last".
14438 (mark_transaction_restart_calls): Likewise for local "insn".
14439 (expand_gimple_stmt): Likewise for return type and locals "last"
14441 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14442 (avoid_complex_debug_insns): Likewise for param "insn".
14443 (expand_debug_locations): Likewise for locals "insn", "last",
14444 "prev_insn" and "insn2".
14445 (expand_gimple_basic_block): Likewise for local "last".
14446 (construct_exit_block): Likewise for locals "head", "end",
14448 (pass_expand::execute): Likewise for locals "var_seq",
14449 "var_ret_seq", "next".
14451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14453 * asan.h (asan_emit_stack_protection): Strengthen return type from
14455 * asan.c (asan_emit_stack_protection): Likewise. Add local
14456 "insns" to hold the return value.
14458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14460 * basic-block.h (bb_note): Strengthen return type from rtx to
14462 * sched-int.h (bb_note): Likewise.
14463 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14465 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14467 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14470 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14471 "insn" from rtx to rtx_insn *.
14472 (make_debug_insn_raw): Strengthen return type from rtx to
14473 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14474 (make_jump_insn_raw): Strengthen return type from rtx to
14475 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14476 (make_call_insn_raw): Strengthen return type from rtx to
14477 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14478 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14479 callback from rtx to rtx_insn *; likewise for local "insn" and
14480 "next", adding a checked cast to rtx_insn in the relevant cases of
14481 the switch statement.
14482 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14483 callback from rtx to rtx_insn *.
14484 (emit_pattern_after_setloc): Likewise.
14485 (emit_pattern_after): Likewise.
14486 (emit_pattern_before_setloc): Likewise.
14487 (emit_pattern_before): Likewise.
14489 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14491 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14493 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14494 accepting an rtx_insn *.
14495 (last_call_insn): Strengthen return type from rtx to
14498 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14500 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14501 "insns" from rtx to rtx_insn *.
14502 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14503 locals "insn" and "prev".
14505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14507 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14508 rtx_jump_table_data **.
14510 * cfgbuild.c (make_edges): Introduce local "table", using it in
14511 place of "tmp" for jump table data.
14512 (find_bb_boundaries): Strengthen local "table" from rtx to
14513 rtx_jump_table_data *.
14514 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14515 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14516 (try_crossjump_to_edge): Likewise.
14517 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14519 (patch_jump_insn): Introduce local "table", using it in place of
14520 "tmp" for jump table data.
14521 (force_nonfallthru_and_redirect): Introduce local "table", so that
14522 call to tablejump_p can receive an rtx_jump_table_data **. Update
14523 logic around the call to overwrite "note" appropriately if
14524 tablejump_p returns non-zero.
14525 (get_last_bb_insn): Introduce local "table", using it in place of
14526 "tmp" for jump table data.
14527 * dwarf2cfi.c (create_trace_edges): Likewise.
14529 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14530 from rtx to rtx_jump_table_data *.
14531 (create_fix_barrier): Strengthen local "tmp" from rtx to
14532 rtx_jump_table_data *.
14533 (arm_reorg): Likewise for local "table".
14535 * config/s390/s390.c (s390_chunkify_start): Likewise.
14537 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14539 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14540 rtx to rtx_jump_table_data *.
14542 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14543 rtx_jump_table_data **. Add a checked cast when writing through
14544 the pointer: we know there that local "table" is non-NULL and that
14545 JUMP_TABLE_DATA_P (table) holds.
14546 (label_is_jump_target_p): Introduce local "table", using it in
14547 place of "tmp" for jump table data.
14549 2014-08-19 Marek Polacek <polacek@redhat.com>
14552 * doc/invoke.texi: Document -Wbool-compare.
14554 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14556 * rtl.h (entry_of_function): Strengthen return type from rtx to
14558 * cfgrtl.c (entry_of_function): Likewise.
14560 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14562 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14563 rtx_insn *, adding a checked cast for now.
14564 (get_last_insn): Likewise.
14566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14568 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14571 * emit-rtl.c (gen_label_rtx): Likewise.
14573 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14575 * rtl.h (previous_insn): Strengthen return type from rtx to
14577 (next_insn): Likewise.
14578 (prev_nonnote_insn): Likewise.
14579 (prev_nonnote_insn_bb): Likewise.
14580 (next_nonnote_insn): Likewise.
14581 (next_nonnote_insn_bb): Likewise.
14582 (prev_nondebug_insn): Likewise.
14583 (next_nondebug_insn): Likewise.
14584 (prev_nonnote_nondebug_insn): Likewise.
14585 (next_nonnote_nondebug_insn): Likewise.
14586 (prev_real_insn): Likewise.
14587 (next_real_insn): Likewise.
14588 (prev_active_insn): Likewise.
14589 (next_active_insn): Likewise.
14591 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14592 rtx_insn *, adding a checked cast.
14593 (previous_insn): Likewise.
14594 (next_nonnote_insn): Likewise.
14595 (next_nonnote_insn_bb): Likewise.
14596 (prev_nonnote_insn): Likewise.
14597 (prev_nonnote_insn_bb): Likewise.
14598 (next_nondebug_insn): Likewise.
14599 (prev_nondebug_insn): Likewise.
14600 (next_nonnote_nondebug_insn): Likewise.
14601 (prev_nonnote_nondebug_insn): Likewise.
14602 (next_real_insn): Likewise.
14603 (prev_real_insn): Likewise.
14604 (next_active_insn): Likewise.
14605 (prev_active_insn): Likewise.
14607 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14608 param "stepfunc" so that it returns an rtx_insn * rather than an
14609 rtx, to track the change to prev_nonnote_insn_bb, which is the
14610 only function this is called with.
14611 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14613 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14615 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14618 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14620 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14621 (class rtx_nonjump_insn): Likewise.
14622 (class rtx_jump_insn): Likewise.
14623 (class rtx_call_insn): Likewise.
14624 (class rtx_jump_table_data): Likewise.
14625 (class rtx_barrier): Likewise.
14626 (class rtx_code_label): Likewise.
14627 (class rtx_note): Likewise.
14629 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14630 adding the invariant DEBUG_INSN_P (X).
14631 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14632 the invariant NONJUMP_INSN_P (X).
14633 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14634 the invariant JUMP_P (X).
14635 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14636 the invariant CALL_P (X).
14637 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14638 invariant JUMP_TABLE_DATA_P (X).
14639 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14640 invariant BARRIER_P (X).
14641 (class rtx_code_label): New, a subclass of rtx_insn, adding
14642 the invariant LABEL_P (X).
14643 (class rtx_note): New, a subclass of rtx_insn, adding
14644 the invariant NOTE_P(X).
14645 (is_a_helper <rtx_debug_insn *>::test): New.
14646 (is_a_helper <rtx_nonjump_insn *>::test): New.
14647 (is_a_helper <rtx_jump_insn *>::test): New.
14648 (is_a_helper <rtx_call_insn *>::test): New.
14649 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14650 overloaded for both rtx and rtx_insn *.
14651 (is_a_helper <rtx_barrier *>::test): New.
14652 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14653 for both rtx and rtx_insn *.
14654 (is_a_helper <rtx_note *>::test): New.
14656 2014-08-19 Marek Polacek <polacek@redhat.com>
14658 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14659 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14660 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14661 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14663 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14665 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14666 rtx_insn *. To help with transition, for now, convert from an
14667 access macro into a pair of functions: BND_TO, returning an
14669 (SET_BND_TO): New function, for use where BND_TO is used as an
14672 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14674 (BND_TO): New function, adding a checked cast.
14675 (SET_BND_TO): New function.
14677 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14679 (compute_av_set_on_boundaries): Likewise.
14681 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14683 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14684 destination if it is used in source.
14685 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14686 (*popcount<mode>2_falsedep_1): Likewise.
14688 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14691 * configure.ac: Set install_gold_as_default to no first.
14692 * configure: Regenerated.
14694 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14696 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14697 "note_list" field will eventually be an rtx_insn *. To help with
14698 transition, for now, convert from an access macro into a pair of
14699 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14700 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14703 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14704 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14706 * sel-sched-ir.c (init_bb): Likewise.
14707 (sel_restore_notes): Likewise.
14708 (move_bb_info): Likewise.
14709 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14710 (SET_BB_NOTE_LIST): New function.
14712 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14714 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14715 field will eventually be an rtx_insn *. To help with transition,
14716 for now, convert from an access macro into a pair of functions:
14717 VINSN_INSN_RTX, returning an rtx_insn *, and...
14718 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14719 is used as an lvalue.
14721 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14722 SET_VINSN_INSN_RTX where it's used as an lvalue.
14723 (VINSN_INSN_RTX): New function.
14724 (SET_VINSN_INSN_RTX): New function.
14726 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14728 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14729 eventually be rtx_insn *, but to help with transition, for now,
14730 convert from an access macro into a pair of functions: DEP_PRO
14731 returning an rtx_insn * and...
14732 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14733 lvalue, returning an rtx&.
14734 (DEP_CON): Analogous changes to DEP_PRO above.
14735 (SET_DEP_CON): Likewise.
14737 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14738 an lvalue to SET_DEP_CON.
14739 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14740 (sd_copy_back_deps): Likewise for DEP_CON.
14741 (DEP_PRO): New function, adding a checked cast for now.
14742 (DEP_CON): Likewise.
14743 (SET_DEP_PRO): New function.
14744 (SET_DEP_CON): Likewise.
14746 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14748 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14749 (extra_options): Add i386/cygwin.opt.
14750 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14751 (CPP_SPEC): Accept -pthread.
14752 (LINK_SPEC): Ditto.
14753 (GOMP_SELF_SPECS): Update comment.
14754 * config/i386/cygwin.opt: New file for -pthread flag.
14756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14758 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14759 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14760 that we can return an rtx_insn *.
14762 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14764 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14765 when building executables, not DLLs. Add --large-address-aware
14766 under the same conditions.
14767 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14768 when building executables, not DLLs. Add --large-address-aware
14769 under the same conditions when using -m32.
14771 * config/i386/cygwin-stdint.h: Throughout, make type
14772 definitions dependent on target architecture, not host.
14774 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14776 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14777 the return type from rtx to rtx_insn *, which will enable various
14778 conversions in followup patches. For now this is is done by a
14780 (NEXT_INSN): Likewise.
14781 (SET_PREV_INSN): Convert to an inline function. This is intended
14782 for use as an lvalue, and so returns an rtx& to allow in-place
14784 (SET_NEXT_INSN): Likewise.
14786 2014-07-08 Mark Wielaard <mjw@redhat.com>
14789 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14791 2014-08-19 Marek Polacek <polacek@redhat.com>
14794 * cgraphunit.c (handle_alias_pairs): Fix condition.
14796 2014-08-19 Richard Biener <rguenther@suse.de>
14798 * gimple-fold.c (fold_gimple_assign): Properly build a
14799 null-pointer constant when devirtualizing addresses.
14801 2014-07-07 Mark Wielaard <mjw@redhat.com>
14803 * dwarf2out.c (decl_quals): New function.
14804 (modified_type_die): Take one cv_quals argument instead of two,
14805 one for const and one for volatile.
14806 (add_type_attribute): Likewise.
14807 (generic_parameter_die): Call add_type_attribute with one modifier
14809 (base_type_for_mode): Likewise.
14810 (add_bounds_info): Likewise.
14811 (add_subscript_info): Likewise.
14812 (gen_array_type_die): Likewise.
14813 (gen_descr_array_type_die): Likewise.
14814 (gen_entry_point_die): Likewise.
14815 (gen_enumeration_type_die): Likewise.
14816 (gen_formal_parameter_die): Likewise.
14817 (gen_subprogram_die): Likewise.
14818 (gen_variable_die): Likewise.
14819 (gen_const_die): Likewise.
14820 (gen_field_die): Likewise.
14821 (gen_pointer_type_die): Likewise.
14822 (gen_reference_type_die): Likewise.
14823 (gen_ptr_to_mbr_type_die): Likewise.
14824 (gen_inheritance_die): Likewise.
14825 (gen_subroutine_type_die): Likewise.
14826 (gen_typedef_die): Likewise.
14827 (force_type_die): Likewise.
14829 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14831 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14833 * configure: Regenerate.
14835 2014-08-19 Richard Biener <rguenther@suse.de>
14837 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14838 DECL_EXTERNALs in BLOCKs as non-references.
14839 * tree-streamer-out.c (streamer_write_chain): Likewise.
14841 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14842 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14843 Anna Tikhonova <anna.tikhonova@intel.com>
14844 Ilya Tocar <ilya.tocar@intel.com>
14845 Andrey Turetskiy <andrey.turetskiy@intel.com>
14846 Ilya Verbin <ilya.verbin@intel.com>
14847 Kirill Yukhin <kirill.yukhin@intel.com>
14848 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14850 * config/i386/sse.md
14851 (define_mode_iterator VI48_AVX512F): Delete.
14852 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14853 (define_mode_iterator VI2_AVX512VL): Ditto.
14854 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14857 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14859 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14860 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14861 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14862 with VI48_AVX512F_AVX512VL): New.
14863 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14864 with VI2_AVX512VL): Ditto.
14866 2014-08-19 Marek Polacek <polacek@redhat.com>
14868 * doc/invoke.texi: Document -Wc99-c11-compat.
14870 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14872 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14873 for rvalues, and...
14874 (SET_PREV_INSN): New macro, for use as an lvalue.
14875 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14877 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14878 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14879 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14880 (fixup_abnormal_edges): Likewise.
14881 (unlink_insn_chain): Likewise.
14882 (fixup_reorder_chain): Likewise.
14883 (cfg_layout_delete_block): Likewise.
14884 (cfg_layout_merge_blocks): Likewise.
14885 * combine.c (update_cfg_for_uncondjump): Likewise.
14886 * emit-rtl.c (link_insn_into_chain): Likewise.
14887 (remove_insn): Likewise.
14888 (delete_insns_since): Likewise.
14889 (reorder_insns_nobb): Likewise.
14890 (emit_insn_after_1): Likewise.
14891 * final.c (rest_of_clean_state): Likewise.
14892 (final_scan_insn): Likewise.
14893 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14894 * haifa-sched.c (concat_note_lists): Likewise.
14895 (remove_notes): Likewise.
14896 (restore_other_notes): Likewise.
14897 (move_insn): Likewise.
14898 (unlink_bb_notes): Likewise.
14899 (restore_bb_notes): Likewise.
14900 * jump.c (delete_for_peephole): Likewise.
14901 * optabs.c (emit_libcall_block_1): Likewise.
14902 * reorg.c (emit_delay_sequence): Likewise.
14903 (fill_simple_delay_slots): Likewise.
14904 * sel-sched-ir.c (sel_move_insn): Likewise.
14905 (sel_remove_insn): Likewise.
14906 (get_bb_note_from_pool): Likewise.
14907 * sel-sched.c (move_nop_to_previous_block): Likewise.
14909 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14910 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14911 (c6x_gen_bundles): Likewise.
14912 (hwloop_optimize): Likewise.
14913 * config/frv/frv.c (frv_function_prologue): Likewise.
14914 (frv_register_nop): Likewise.
14915 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14916 (ia64_reorg): Likewise.
14917 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14918 (mep_make_bundle): Likewise.
14919 (mep_bundle_insns): Likewise.
14920 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14921 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14922 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14924 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14926 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14927 return type from rtx to rtx_insn *.
14928 (BB_END): Likewise.
14929 (BB_HEADER): Likewise.
14930 (BB_FOOTER): Likewise.
14931 (SET_BB_HEAD): Convert to a function.
14932 (SET_BB_END): Likewise.
14933 (SET_BB_HEADER): Likewise.
14934 (SET_BB_FOOTER): Likewise.
14936 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14937 Strengthen the return type from rtx to rtx_insn *. For now, this
14938 is done by adding a checked cast, but this will eventually
14939 become a field lookup.
14940 (BB_END): Likewise.
14941 (BB_HEADER): Likewise.
14942 (BB_FOOTER): Likewise.
14943 (SET_BB_HEAD): New function, from macro of same name. This is
14944 intended for use as an lvalue, and so returns an rtx& to allow
14945 in-place modification.
14946 (SET_BB_END): Likewise.
14947 (SET_BB_HEADER): Likewise.
14948 (SET_BB_FOOTER): Likewise.
14950 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14952 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14953 for rvalues, and...
14954 (SET_BB_HEAD): New macro, for use as a lvalue.
14955 (BB_END, SET_BB_END): Likewise.
14956 (BB_HEADER, SET_BB_HEADER): Likewise.
14957 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14959 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14960 of BB_* macros into SET_BB_* macros.
14961 (fix_crossing_unconditional_branches): Likewise.
14962 * caller-save.c (save_call_clobbered_regs): Likewise.
14963 (insert_one_insn): Likewise.
14964 * cfgbuild.c (find_bb_boundaries): Likewise.
14965 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14966 (outgoing_edges_match): Likewise.
14967 (try_optimize_cfg): Likewise.
14968 * cfgexpand.c (expand_gimple_cond): Likewise.
14969 (expand_gimple_tailcall): Likewise.
14970 (expand_gimple_basic_block): Likewise.
14971 (construct_exit_block): Likewise.
14972 * cfgrtl.c (delete_insn): Likewise.
14973 (create_basic_block_structure): Likewise.
14974 (rtl_delete_block): Likewise.
14975 (rtl_split_block): Likewise.
14976 (emit_nop_for_unique_locus_between): Likewise.
14977 (rtl_merge_blocks): Likewise.
14978 (block_label): Likewise.
14979 (try_redirect_by_replacing_jump): Likewise.
14980 (emit_barrier_after_bb): Likewise.
14981 (fixup_abnormal_edges): Likewise.
14982 (record_effective_endpoints): Likewise.
14983 (relink_block_chain): Likewise.
14984 (fixup_reorder_chain): Likewise.
14985 (fixup_fallthru_exit_predecessor): Likewise.
14986 (cfg_layout_duplicate_bb): Likewise.
14987 (cfg_layout_split_block): Likewise.
14988 (cfg_layout_delete_block): Likewise.
14989 (cfg_layout_merge_blocks): Likewise.
14990 * combine.c (update_cfg_for_uncondjump): Likewise.
14991 * emit-rtl.c (add_insn_after): Likewise.
14992 (remove_insn): Likewise.
14993 (reorder_insns): Likewise.
14994 (emit_insn_after_1): Likewise.
14995 * haifa-sched.c (get_ebb_head_tail): Likewise.
14996 (restore_other_notes): Likewise.
14997 (move_insn): Likewise.
14998 (sched_extend_bb): Likewise.
14999 (fix_jump_move): Likewise.
15000 * ifcvt.c (noce_process_if_block): Likewise.
15001 (dead_or_predicable): Likewise.
15002 * ira.c (update_equiv_regs): Likewise.
15003 * reg-stack.c (change_stack): Likewise.
15004 * sel-sched-ir.c (sel_move_insn): Likewise.
15005 * sel-sched.c (move_nop_to_previous_block): Likewise.
15007 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15008 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15010 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15012 * rtl.h (for_each_rtx_in_insn): New function.
15013 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15015 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15017 * coretypes.h (class rtx_insn): Add forward declaration.
15019 * rtl.h: Include is-a.h.
15020 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15021 workaround to ensure gengtype knows inheritance is occurring,
15022 whilst continuing to use the pre-existing special-casing for
15024 (class rtx_insn): New subclass of rtx_def, adding the
15025 invariant that we're dealing with something we can sanely use
15026 INSN_UID, NEXT_INSN, PREV_INSN on.
15027 (is_a_helper <rtx_insn *>::test): New.
15028 (is_a_helper <const rtx_insn *>::test): New.
15030 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15032 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15034 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15036 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15039 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15041 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15042 to BUILT_IN_UNREACHABLE.
15044 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15047 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15049 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15050 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15051 (ffs<mode>2): Do not expand with tzcnt for
15052 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15053 (ffssi2_no_cmove): Ditto.
15054 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15055 (ctz<mode>2): New expander.
15056 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15057 (*ctz<mode>2_falsedep): New insn.
15058 (*ctz<mode>2): Rename from ctz<mode>2.
15059 (clz<mode>2_lzcnt): New expander.
15060 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15061 (*clz<mode>2_lzcnt_falsedep): New insn.
15062 (*clz<mode>2): Rename from ctz<mode>2.
15063 (popcount<mode>2): New expander.
15064 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15065 (*popcount<mode>2_falsedep): New insn.
15066 (*popcount<mode>2): Rename from ctz<mode>2.
15067 (*popcount<mode>2_cmp): Remove.
15068 (*popcountsi2_cmp_zext): Ditto.
15070 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15072 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15073 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15074 * config/microblaze/microblaze.h
15075 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15077 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15080 * configure.ac: Set install_gold_as_default to no for
15082 * configure: Regenerated.
15084 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15086 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15087 * config.in: Add undef of HAVE_isl.
15088 * configure: Regenerate.
15089 * configure.ac: Add definition of HAVE_isl.
15090 * graphite-blocking.c: Add checking of HAVE_isl.
15091 * graphite-dependences.c: Likewise.
15092 * graphite-interchange.c: Likewise.
15093 * graphite-isl-ast-to-gimple.c: Likewise.
15094 * graphite-optimize-isl.c: Likewise.
15095 * graphite-poly.c: Likewise.
15096 * graphite-scop-detection.c: Likewise.
15097 * graphite-sese-to-poly.c: Likewise.
15098 * graphite.c: Likewise.
15099 * toplev.c: Replace the checking of HAVE_cloog with the checking
15102 2014-08-18 Richard Biener <rguenther@suse.de>
15104 PR tree-optimization/62090
15105 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15106 (fold_builtin_3): Do not fold snprintf.
15107 (fold_builtin_4): Likewise.
15108 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15109 moved from builtins.c.
15110 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15111 (gimple_fold_builtin): Do not fold sprintf here.
15113 2014-08-18 Richard Biener <rguenther@suse.de>
15115 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15117 (maybe_canonicalize_mem_ref_addr): ... this function.
15118 (fold_stmt_1): Apply it here before all simplification.
15120 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15123 * cgraph.h (cgraph_node::create_indirect_edge): Add
15124 compute_indirect_info param.
15125 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15126 indirect_info only when it is required.
15127 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15128 indirect_info fore cloned indirect edge.
15130 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15132 Anna Tikhonova <anna.tikhonova@intel.com>
15133 Ilya Tocar <ilya.tocar@intel.com>
15134 Andrey Turetskiy <andrey.turetskiy@intel.com>
15135 Ilya Verbin <ilya.verbin@intel.com>
15136 Kirill Yukhin <kirill.yukhin@intel.com>
15137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15139 * config/i386/sse.md
15140 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15141 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15143 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15145 Anna Tikhonova <anna.tikhonova@intel.com>
15146 Ilya Tocar <ilya.tocar@intel.com>
15147 Andrey Turetskiy <andrey.turetskiy@intel.com>
15148 Ilya Verbin <ilya.verbin@intel.com>
15149 Kirill Yukhin <kirill.yukhin@intel.com>
15150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15152 * config/i386/sse.md
15153 (define_mode_iterator VF1_AVX512VL): New.
15154 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15155 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15158 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15160 Anna Tikhonova <anna.tikhonova@intel.com>
15161 Ilya Tocar <ilya.tocar@intel.com>
15162 Andrey Turetskiy <andrey.turetskiy@intel.com>
15163 Ilya Verbin <ilya.verbin@intel.com>
15164 Kirill Yukhin <kirill.yukhin@intel.com>
15165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15167 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15168 * config/i386/i386.md
15169 (define_code_iterator any_float): New.
15170 (define_code_attr floatsuffix): New.
15171 * config/i386/sse.md
15172 (define_mode_iterator VF1_128_256VL): New.
15173 (define_mode_iterator VF2_512_256VL): New.
15174 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15176 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15177 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15179 (define_mode_attr qq2pssuff): New.
15180 (define_mode_attr sselongvecmode): New.
15181 (define_mode_attr sselongvecmodelower): New.
15182 (define_mode_attr sseintvecmode3): New.
15183 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15185 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15186 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15187 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15188 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15190 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15192 Anna Tikhonova <anna.tikhonova@intel.com>
15193 Ilya Tocar <ilya.tocar@intel.com>
15194 Andrey Turetskiy <andrey.turetskiy@intel.com>
15195 Ilya Verbin <ilya.verbin@intel.com>
15196 Kirill Yukhin <kirill.yukhin@intel.com>
15197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15199 * config/i386/sse.md
15200 (define_mode_iterator VF2_AVX512VL): New.
15201 (define_mode_attr sseintvecmode2): New.
15202 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15203 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15204 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15206 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15208 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15210 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15213 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15215 Anna Tikhonova <anna.tikhonova@intel.com>
15216 Ilya Tocar <ilya.tocar@intel.com>
15217 Andrey Turetskiy <andrey.turetskiy@intel.com>
15218 Ilya Verbin <ilya.verbin@intel.com>
15219 Kirill Yukhin <kirill.yukhin@intel.com>
15220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15222 * config/i386/i386.md
15223 (define_insn "*movoi_internal_avx"): Add evex version.
15224 (define_insn "*movti_internal"): Ditto.
15226 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15228 Anna Tikhonova <anna.tikhonova@intel.com>
15229 Ilya Tocar <ilya.tocar@intel.com>
15230 Andrey Turetskiy <andrey.turetskiy@intel.com>
15231 Ilya Verbin <ilya.verbin@intel.com>
15232 Kirill Yukhin <kirill.yukhin@intel.com>
15233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15235 * config/i386/i386.md
15236 (define_attr "isa"): Add avx512dq, noavx512dq.
15237 (define_attr "enabled"): Ditto.
15238 * config/i386/sse.md
15239 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15241 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15243 Anna Tikhonova <anna.tikhonova@intel.com>
15244 Ilya Tocar <ilya.tocar@intel.com>
15245 Andrey Turetskiy <andrey.turetskiy@intel.com>
15246 Ilya Verbin <ilya.verbin@intel.com>
15247 Kirill Yukhin <kirill.yukhin@intel.com>
15248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15250 * config/i386/i386.c
15251 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15252 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15253 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15254 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15255 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15256 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15257 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15258 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15259 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15260 * config/i386/sse.md
15261 (define_mode_iterator VMOVE): Allow V4TI mode.
15262 (define_mode_iterator V_AVX512VL): New.
15263 (define_mode_iterator V): New handling for AVX512VL.
15264 (define_insn "avx512f_load<mode>_mask"): Delete.
15265 (define_insn "<avx512>_load<mode>_mask"): New.
15266 (define_insn "avx512f_store<mode>_mask"): Delete.
15267 (define_insn "<avx512>_store<mode>_mask"): New.
15270 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15273 * asan.c (instrument_derefs): Fix bitfield check.
15275 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15277 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15278 * config/rs6000/htm.md (ttest): Remove clobber.
15279 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15280 (and_operand): Reformat.
15281 (and_2rld_operand): New predicate.
15282 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15284 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15285 parameter. Handle AND directly.
15286 (rs6000_split_logical_di): Remove last parameter.
15287 (rs6000_split_logical): Remove last parameter. Remove obsolete
15289 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15290 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15291 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15292 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15293 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15294 and 5 anonymous splitters): Delete.
15295 (and<mode>3): New expander.
15296 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15297 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15298 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15299 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15300 (floatdisf2_internal1): Remove clobbers.
15301 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15302 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15303 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15304 (and<mode>3 for BOOL_128): Remove clobber.
15305 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15306 rs6000_split_logical.
15307 (*bool<mode>3_internal for BOOL_128): Adjust call of
15308 rs6000_split_logical.
15309 (*boolc<mode>3_internal1 for BOOL_128,
15310 *boolc<mode>3_internal2 for BOOL_128,
15311 *boolcc<mode>3_internal1 for BOOL_128,
15312 *boolcc<mode>3_internal2 for BOOL_128,
15313 *eqv<mode>3_internal1 for BOOL_128,
15314 *eqv<mode>3_internal2 for BOOL_128,
15315 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15316 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15318 (*vec_reload_and_reg_<mptrsize>): Delete.
15320 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15322 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15323 and split, *boolccsi3_internal3 and split): Delete.
15324 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15325 *boolccdi3_internal3 and split): Delete.
15326 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15327 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15329 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15331 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15332 and split, *boolcsi3_internal3 and split): Delete.
15333 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15334 *boolcdi3_internal3 and split): Delete.
15335 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15337 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15339 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15340 <'u'>: Also support printing the low-order 16 bits.
15341 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15342 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15343 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15344 *booldi3_internal3 and split): Delete.
15345 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15346 *bool<mode>3_dot2): New.
15347 (two anonymous define_splits for non_logical_cint_operand): Merge.
15349 2014-08-17 Marek Polacek <polacek@redhat.com>
15350 Manuel López-Ibáñez <manu@gcc.gnu.org>
15353 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15354 (diagnostic_show_locus): Don't print caret diagnostic
15355 if a column is larger than the line_width.
15357 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15359 * common.opt: Make the ISL AST generator to be the main code generator
15362 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15364 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15366 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15369 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15371 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15372 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15373 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15375 * config/pa/pa.md (begin_brtab): Delete insn.
15376 (end_brtab): Likewise.
15378 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15380 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15382 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15384 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15385 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15386 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15387 (get_dynamic_type): Remove.
15388 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15389 (clear_speculation): Bring to ipa-deivrt.h
15390 (get_class_context): Rename to ...
15391 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15392 (contains_type_p): Update.
15393 (get_dynamic_type): Rename to ...
15394 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15395 (possible_polymorphic_call_targets): UPdate.
15396 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15397 * ipa-prop.c (ipa_analyze_call_uses): Update.
15399 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15401 * doc/invoke.texi (SH options): Document missing processor variant
15402 options. Remove references to Hitachi. Undocument deprecated mspace
15405 2014-08-15 Jason Merrill <jason@redhat.com>
15407 * tree.c (type_hash_canon): Uncomment assert.
15409 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15411 * input.h (in_system_header_at): Add comment.
15413 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15416 * diagnostic.c (build_message_string): Make it extern.
15417 * diagnostic.h (build_message_string): Make it extern.
15419 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15421 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15422 load/store from/to non-floating class pseudo.
15424 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15426 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15428 2014-08-15 Richard Biener <rguenther@suse.de>
15430 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15431 (get_constraint_for_ssa_var): Remove dead code.
15432 (get_constraint_for_1): Adjust.
15433 (find_what_var_points_to): Likewise.
15434 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15436 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15439 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15440 (_mm512_mask_cmpge_epu32_mask): Ditto.
15441 (_mm512_cmpge_epu32_mask): Ditto.
15442 (_mm512_mask_cmpge_epi64_mask): Ditto.
15443 (_mm512_cmpge_epi64_mask): Ditto.
15444 (_mm512_mask_cmpge_epu64_mask): Ditto.
15445 (_mm512_cmpge_epu64_mask): Ditto.
15446 (_mm512_mask_cmple_epi32_mask): Ditto.
15447 (_mm512_cmple_epi32_mask): Ditto.
15448 (_mm512_mask_cmple_epu32_mask): Ditto.
15449 (_mm512_cmple_epu32_mask): Ditto.
15450 (_mm512_mask_cmple_epi64_mask): Ditto.
15451 (_mm512_cmple_epi64_mask): Ditto.
15452 (_mm512_mask_cmple_epu64_mask): Ditto.
15453 (_mm512_cmple_epu64_mask): Ditto.
15454 (_mm512_mask_cmplt_epi32_mask): Ditto.
15455 (_mm512_cmplt_epi32_mask): Ditto.
15456 (_mm512_mask_cmplt_epu32_mask): Ditto.
15457 (_mm512_cmplt_epu32_mask): Ditto.
15458 (_mm512_mask_cmplt_epi64_mask): Ditto.
15459 (_mm512_cmplt_epi64_mask): Ditto.
15460 (_mm512_mask_cmplt_epu64_mask): Ditto.
15461 (_mm512_cmplt_epu64_mask): Ditto.
15462 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15463 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15464 (_mm512_cmpneq_epu32_mask): Ditto.
15465 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15466 (_mm512_cmpneq_epi64_mask): Ditto.
15467 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15468 (_mm512_cmpneq_epu64_mask): Ditto.
15469 (_mm512_castpd_ps): Ditto.
15470 (_mm512_castpd_si512): Ditto.
15471 (_mm512_castps_pd): Ditto.
15472 (_mm512_castps_si512): Ditto.
15473 (_mm512_castsi512_ps): Ditto.
15474 (_mm512_castsi512_pd): Ditto.
15475 (_mm512_castpd512_pd128): Ditto.
15476 (_mm512_castps512_ps128): Ditto.
15477 (_mm512_castsi512_si128): Ditto.
15478 (_mm512_castpd512_pd256): Ditto.
15479 (_mm512_castps512_ps256): Ditto.
15480 (_mm512_castsi512_si256): Ditto.
15481 (_mm512_castpd128_pd512): Ditto.
15482 (_mm512_castps128_ps512): Ditto.
15483 (_mm512_castsi128_si512): Ditto.
15484 (_mm512_castpd256_pd512): Ditto.
15485 (_mm512_castps256_ps512): Ditto.
15486 (_mm512_castsi256_si512): Ditto.
15487 (_mm512_cmpeq_epu32_mask): Ditto.
15488 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15489 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15490 (_mm512_cmpeq_epu64_mask): Ditto.
15491 (_mm512_cmpgt_epu32_mask): Ditto.
15492 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15493 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15494 (_mm512_cmpgt_epu64_mask): Ditto.
15495 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15496 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15497 * config/i386/i386.c (enum ix86_builtins): Add
15498 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15499 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15500 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15501 (bdesc_args): Add __builtin_ia32_si512_256si,
15502 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15503 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15504 __builtin_ia32_pd512_pd.
15505 (ix86_expand_args_builtin): Handle new FTYPEs.
15506 * config/i386/sse.md (castmode): Add 512-bit modes.
15507 (AVX512MODE2P): New.
15508 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15509 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15511 2014-08-15 Richard Biener <rguenther@suse.de>
15513 * fold-const.c (tree_swap_operands_p): Put all constants
15514 last, also strip sign-changing NOPs when considering further
15515 canonicalization. Canonicalize also when optimizing for size.
15517 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15519 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15520 one_match > zero_match case to just before simple_sequence.
15522 2014-08-15 Richard Biener <rguenther@suse.de>
15524 * data-streamer.h (streamer_string_index, string_for_index):
15526 * data-streamer-out.c (streamer_string_index): Make static.
15527 * data-streamer-in.c (string_for_index): Likewise.
15528 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15529 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15531 2014-08-15 Richard Biener <rguenther@suse.de>
15533 PR tree-optimization/62031
15534 * tree-data-ref.c (dr_analyze_indices): Do not set
15535 DR_UNCONSTRAINED_BASE.
15536 (dr_may_alias_p): All indirect accesses have to go the
15537 formerly DR_UNCONSTRAINED_BASE path.
15538 * tree-data-ref.h (struct indices): Remove
15539 unconstrained_base member.
15540 (DR_UNCONSTRAINED_BASE): Remove.
15542 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15544 PR middle-end/62092
15545 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15546 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15547 in OMP_CLAUSE_MAP in some outer target region.
15549 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15551 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15552 name_expansion_cache.
15553 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15554 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15555 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15556 (difference_cannot_overflow_p): New parameter. Use affine
15557 expansion for equality check.
15558 (iv_elimination_compare_lt): Pass new argument.
15560 2014-08-14 DJ Delorie <dj@redhat.com>
15562 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15563 variables to the accumulator.
15565 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15566 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15567 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15568 with far-far moves.
15570 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15571 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15572 (umulqihi3_virt): Likewise.
15573 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15574 (umulqihi3_real): Likewise.
15576 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15578 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15580 PR tree-optimization/62091
15581 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15582 function_entry_reached.
15583 (walk_aliased_vdefs): Clear it here.
15584 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15586 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15588 * ipa-utils.h (compare_virtual_tables): Declare.
15589 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15591 2014-08-14 Marek Polacek <polacek@redhat.com>
15594 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15595 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15597 2014-08-14 Tom de Vries <tom@codesourcery.com>
15599 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15601 2014-08-14 Tom de Vries <tom@codesourcery.com>
15603 PR rtl-optimization/62004
15604 PR rtl-optimization/62030
15605 * ifcvt.c (rtx_interchangeable_p): New function.
15606 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15607 * emit-rtl.h (mem_attrs_eq_p): Declare.
15609 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15611 * graphite-scop-detection.c:
15612 Add inclusion of cp-tree.h.
15613 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15614 in case they are pointers to object types
15616 2014-08-14 Richard Biener <rguenther@suse.de>
15618 * BASE-VER: Change to 5.0.0
15620 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15621 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15622 Anna Tikhonova <anna.tikhonova@intel.com>
15623 Ilya Tocar <ilya.tocar@intel.com>
15624 Andrey Turetskiy <andrey.turetskiy@intel.com>
15625 Ilya Verbin <ilya.verbin@intel.com>
15626 Kirill Yukhin <kirill.yukhin@intel.com>
15627 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15629 * config/i386/sse.md (define_mode_attr avx512): New.
15630 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15632 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15633 (define_mode_attr ssse3_avx2): Ditto.
15634 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15635 (define_mode_attr avx2_avx512bw): New.
15636 (define_mode_attr ssedoublemodelower): New.
15637 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15638 V32HI, V64QI modes.
15639 (define_mode_attr ssebytemode): Allow V8DI modes.
15640 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15641 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15642 (define_mode_attr ssePSmode2): New.
15643 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15644 V16HI, V32HI modes.
15645 (define_mode_attr dbpsadbwmode): New.
15646 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15647 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15648 (vi8_sse4_1_avx2_avx512): New.
15649 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15651 (define_mode_attr blendbits): Move before its immediate use.
15653 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15655 Anna Tikhonova <anna.tikhonova@intel.com>
15656 Ilya Tocar <ilya.tocar@intel.com>
15657 Andrey Turetskiy <andrey.turetskiy@intel.com>
15658 Ilya Verbin <ilya.verbin@intel.com>
15659 Kirill Yukhin <kirill.yukhin@intel.com>
15660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15662 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15663 * config/i386/subst.md
15664 (define_mode_iterator SUBST_V): Update.
15665 (define_mode_iterator SUBST_A): Ditto.
15666 (define_subst_attr "mask_operand7"): New.
15667 (define_subst_attr "mask_operand10"): New.
15668 (define_subst_attr "mask_operand_arg34") : New.
15669 (define_subst_attr "mask_expand_op3"): New.
15670 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15671 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15672 (define_subst_attr "mask_avx512vl_condition"): New.
15673 (define_subst_attr "round_mask_operand4"): Ditto.
15674 (define_subst_attr "round_mask_scalar_op3"): Delete.
15675 (define_subst_attr "round_mask_op4"): New.
15676 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15678 (define_subst_attr "round_modev8sf_condition"): New.
15679 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15681 (define_subst_attr "round_saeonly_mask_operand4"): New.
15682 (define_subst_attr "round_saeonly_mask_op4"): New.
15683 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15684 V8DImode, V16SImode.
15685 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15686 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15687 (define_subst_attr "mask_expand4_args"): New.
15688 (define_subst "mask_expand4"): New.
15690 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15692 Anna Tikhonova <anna.tikhonova@intel.com>
15693 Ilya Tocar <ilya.tocar@intel.com>
15694 Andrey Turetskiy <andrey.turetskiy@intel.com>
15695 Ilya Verbin <ilya.verbin@intel.com>
15696 Kirill Yukhin <kirill.yukhin@intel.com>
15697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15699 * config/i386/i386.md
15700 (define_attr "isa"): Add avx512bw,noavx512bw.
15701 (define_attr "enabled"): Ditto.
15702 (define_split): Add 32/64-bit mask logic.
15703 (define_insn "*k<logic>qi"): New.
15704 (define_insn "*k<logic>hi"): New.
15705 (define_insn "*anddi_1"): Add mask version.
15706 (define_insn "*andsi_1"): Ditto.
15707 (define_insn "*<code><mode>_1"): Ditto.
15708 (define_insn "*<code>hi_1"): Ditto.
15709 (define_insn "kxnor<mode>"): New.
15710 (define_insn "kunpcksi"): New.
15711 (define_insn "kunpckdi"): New.
15712 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15713 (define_insn "*one_cmplhi2_1"): Ditto.
15715 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15716 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15717 Anna Tikhonova <anna.tikhonova@intel.com>
15718 Ilya Tocar <ilya.tocar@intel.com>
15719 Andrey Turetskiy <andrey.turetskiy@intel.com>
15720 Ilya Verbin <ilya.verbin@intel.com>
15721 Kirill Yukhin <kirill.yukhin@intel.com>
15722 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15724 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15727 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15729 Anna Tikhonova <anna.tikhonova@intel.com>
15730 Ilya Tocar <ilya.tocar@intel.com>
15731 Andrey Turetskiy <andrey.turetskiy@intel.com>
15732 Ilya Verbin <ilya.verbin@intel.com>
15733 Kirill Yukhin <kirill.yukhin@intel.com>
15734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15736 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15738 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15739 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15740 xmm/ymm16+ when availble.
15741 * config/i386/i386.h
15742 (HARD_REGNO_NREGS): Add mask regs.
15743 (VALID_AVX512F_REG_MODE): Ditto.
15744 (VALID_AVX512F_REG_MODE) : Define.
15745 (VALID_MASK_AVX512BW_MODE): Ditto.
15746 (reg_class) (MASK_REG_P(X)): Define.
15747 * config/i386/i386.md: Do not split long moves with mask register,
15748 use kmovb if avx512bw is availible.
15749 (movdi_internal): Handle mask registers.
15751 2014-08-14 Richard Biener <rguenther@suse.de>
15753 PR tree-optimization/62081
15754 * tree-ssa-loop.c (pass_fix_loops): New pass.
15755 (pass_tree_loop::gate): Do not fixup loops here.
15756 * tree-pass.h (make_pass_fix_loops): Declare.
15757 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15759 2014-08-14 Richard Biener <rguenther@suse.de>
15761 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15762 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15764 2014-08-14 Richard Biener <rguenther@suse.de>
15766 PR tree-optimization/62090
15767 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15768 (fold_builtin_2): Do not fold sprintf.
15769 (fold_builtin_3): Likewise.
15770 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15771 moved from builtins.c.
15772 (gimple_fold_builtin): Fold sprintf.
15774 2014-08-14 Richard Biener <rguenther@suse.de>
15776 PR rtl-optimization/62079
15777 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15780 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15782 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15783 current_function_decl.
15785 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15787 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15788 cgraph_function_node to cgraph_node::function_symbol
15791 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15793 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15794 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15796 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15798 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15801 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15803 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15806 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15809 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15810 any registers that are used in mem_insn.
15812 2014-08-12 Steve Ellcey <sellcey@mips.com>
15814 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15816 2014-08-12 Steve Ellcey <sellcey@mips.com>
15818 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15819 (MULTILIB_DIRNAMES): Ditto.
15820 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15821 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15822 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15823 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15824 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15825 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15827 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15830 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15831 of __ARM_SIZEOF_WCHAR_T.
15833 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15836 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15837 Remove unnecessary attributes.
15839 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15841 * internal-fn.c (init_internal_fns): Fix off-by-one.
15843 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15845 Anna Tikhonova <anna.tikhonova@intel.com>
15846 Ilya Tocar <ilya.tocar@intel.com>
15847 Andrey Turetskiy <andrey.turetskiy@intel.com>
15848 Ilya Verbin <ilya.verbin@intel.com>
15849 Kirill Yukhin <kirill.yukhin@intel.com>
15850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15852 * config/i386/i386.c (standard_sse_constant_opcode): Use
15853 vpxord/vpternlog if avx512 is availible.
15855 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15857 PR middle-end/62103
15858 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15859 bitfields, that is when size doesn't match the size of type or the
15860 size of the constructor.
15862 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15864 * config/rs6000/constraints.md (wh constraint): New constraint,
15865 for FP registers if direct move is available.
15866 (wi constraint): New constraint, for VSX/FP registers that can
15867 handle 64-bit integers.
15868 (wj constraint): New constraint for VSX/FP registers that can
15869 handle 64-bit integers for direct moves.
15870 (wk constraint): New constraint for VSX/FP registers that can
15871 handle 64-bit doubles for direct moves.
15872 (wy constraint): Make documentation match implementation.
15874 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15875 scalar_in_vmx_p field to simplify tests of whether SFmode or
15876 DFmode can go in the Altivec registers.
15877 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15878 (rs6000_setup_reg_addr_masks): Likewise.
15879 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15880 field, and wh/wi/wj/wk constraints.
15881 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15882 the wh/wi/wj/wk constraints.
15883 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15884 upper registers, prefer VSX registers unless the operation is a
15885 memory operation with REG+OFFSET addressing.
15887 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15888 DImode. Change SFmode to use ww constraint instead of d to allow
15889 SF registers in the upper registers.
15892 (VSr5): Fix thinko in comment.
15893 (VSa): New mode attribute that is an alternative to wa, that
15894 returns the VSX register class that a mode can go in, but may not
15895 be the preferred register class.
15896 (VS_64dm): New mode attribute for appropriate register classes for
15897 referencing 64-bit elements of vectors for direct moves and normal
15899 (VS_64reg): Likewise.
15900 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15901 register allocator to only registers the data type can handle.
15902 (vsx_le_perm_load_<mode>): Likewise.
15903 (vsx_le_perm_store_<mode>): Likewise.
15904 (vsx_xxpermdi2_le_<mode>): Likewise.
15905 (vsx_xxpermdi4_le_<mode>): Likewise.
15906 (vsx_lxvd2x2_le_<mode>): Likewise.
15907 (vsx_lxvd2x4_le_<mode>): Likewise.
15908 (vsx_stxvd2x2_le_<mode>): Likewise.
15909 (vsx_add<mode>3): Likewise.
15910 (vsx_sub<mode>3): Likewise.
15911 (vsx_mul<mode>3): Likewise.
15912 (vsx_div<mode>3): Likewise.
15913 (vsx_tdiv<mode>3_internal): Likewise.
15914 (vsx_fre<mode>2): Likewise.
15915 (vsx_neg<mode>2): Likewise.
15916 (vsx_abs<mode>2): Likewise.
15917 (vsx_nabs<mode>2): Likewise.
15918 (vsx_smax<mode>3): Likewise.
15919 (vsx_smin<mode>3): Likewise.
15920 (vsx_sqrt<mode>2): Likewise.
15921 (vsx_rsqrte<mode>2): Likewise.
15922 (vsx_tsqrt<mode>2_internal): Likewise.
15923 (vsx_fms<mode>4): Likewise.
15924 (vsx_nfma<mode>4): Likewise.
15925 (vsx_eq<mode>): Likewise.
15926 (vsx_gt<mode>): Likewise.
15927 (vsx_ge<mode>): Likewise.
15928 (vsx_eq<mode>_p): Likewise.
15929 (vsx_gt<mode>_p): Likewise.
15930 (vsx_ge<mode>_p): Likewise.
15931 (vsx_xxsel<mode>): Likewise.
15932 (vsx_xxsel<mode>_uns): Likewise.
15933 (vsx_copysign<mode>3): Likewise.
15934 (vsx_float<VSi><mode>2): Likewise.
15935 (vsx_floatuns<VSi><mode>2): Likewise.
15936 (vsx_fix_trunc<mode><VSi>2): Likewise.
15937 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15938 (vsx_x<VSv>r<VSs>i): Likewise.
15939 (vsx_x<VSv>r<VSs>ic): Likewise.
15940 (vsx_btrunc<mode>2): Likewise.
15941 (vsx_b2trunc<mode>2): Likewise.
15942 (vsx_floor<mode>2): Likewise.
15943 (vsx_ceil<mode>2): Likewise.
15944 (vsx_<VS_spdp_insn>): Likewise.
15945 (vsx_xscvspdp): Likewise.
15946 (vsx_xvcvspuxds): Likewise.
15947 (vsx_float_fix_<mode>2): Likewise.
15948 (vsx_set_<mode>): Likewise.
15949 (vsx_extract_<mode>_internal1): Likewise.
15950 (vsx_extract_<mode>_internal2): Likewise.
15951 (vsx_extract_<mode>_load): Likewise.
15952 (vsx_extract_<mode>_store): Likewise.
15953 (vsx_splat_<mode>): Likewise.
15954 (vsx_xxspltw_<mode>): Likewise.
15955 (vsx_xxspltw_<mode>_direct): Likewise.
15956 (vsx_xxmrghw_<mode>): Likewise.
15957 (vsx_xxmrglw_<mode>): Likewise.
15958 (vsx_xxsldwi_<mode>): Likewise.
15959 (vsx_xscvdpspn): Tighten constraints to only use register classes
15961 (vsx_xscvspdpn): Likewise.
15962 (vsx_xscvdpspn_scalar): Likewise.
15964 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15965 wj, and wk constraints.
15966 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15967 general purpose registers.
15969 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15971 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15972 DImode instead of wm. Use wk constraint for direct move of DFmode
15974 (extendsidi2_lfiwax): Likewise.
15975 (lfiwax): Likewise.
15976 (lfiwzx): Likewise.
15977 (movdi_internal64): Likewise.
15979 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15980 wk constraints. Make the wy constraint documentation match them
15983 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15985 Replacement of isl_int by isl_val
15986 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15987 (compute_bounds_for_param): use isl_val instead of isl_int
15988 (compute_bounds_for_loop): likewise
15989 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15990 (build_linearized_memory_access): use isl_val instead of isl_int
15991 (pdr_stride_in_loop): likewise
15992 * graphite-optimize-isl.c:
15993 (getPrevectorMap): use isl_val instead of isl_int
15995 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15996 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15997 (extern the_isl_ctx): declare
15998 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15999 (extract_affine_gmp): likewise
16001 (build_loop_iteration_domains): likewise
16002 (add_param_constraints): likewise
16004 2014-08-11 Richard Biener <rguenther@suse.de>
16006 PR tree-optimization/62075
16007 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16008 handle uses in patterns.
16010 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16011 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16012 Anna Tikhonova <anna.tikhonova@intel.com>
16013 Ilya Tocar <ilya.tocar@intel.com>
16014 Andrey Turetskiy <andrey.turetskiy@intel.com>
16015 Ilya Verbin <ilya.verbin@intel.com>
16016 Kirill Yukhin <kirill.yukhin@intel.com>
16017 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16019 * common/config/i386/i386-common.c
16020 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16021 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16022 (ix86_handle_option): Handle OPT_mavx512vl.
16023 * config/i386/cpuid.h (bit_AVX512VL): Define.
16024 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16025 set -mavx512vl accordingly.
16026 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16027 OPTION_MASK_ISA_AVX512VL.
16028 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16029 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16030 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16031 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16032 * config/i386/i386.h (TARGET_AVX512VL): Define.
16033 (TARGET_AVX512VL_P(x)): Ditto.
16034 * config/i386/i386.opt: Add mavx512vl.
16036 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16038 PR tree-optimization/62073
16039 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16042 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16043 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16044 Anna Tikhonova <anna.tikhonova@intel.com>
16045 Ilya Tocar <ilya.tocar@intel.com>
16046 Andrey Turetskiy <andrey.turetskiy@intel.com>
16047 Ilya Verbin <ilya.verbin@intel.com>
16048 Kirill Yukhin <kirill.yukhin@intel.com>
16049 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16051 * common/config/i386/i386-common.c
16052 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16053 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16054 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16055 (ix86_handle_option): Handle OPT_mavx512bw.
16056 * config/i386/cpuid.h (bit_AVX512BW): Define.
16057 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16058 set -mavx512bw accordingly.
16059 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16060 OPTION_MASK_ISA_AVX512BW.
16061 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16062 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16063 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16064 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16065 * config/i386/i386.h (TARGET_AVX512BW): Define.
16066 (TARGET_AVX512BW_P(x)): Ditto.
16067 * config/i386/i386.opt: Add mavx512bw.
16069 2014-08-11 Richard Biener <rguenther@suse.de>
16071 PR tree-optimization/62070
16072 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16073 Remove SSA checking.
16075 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16077 * asan.c (asan_check_flags): New enum.
16078 (build_check_stmt_with_calls): Removed function.
16079 (build_check_stmt): Split inlining logic to
16080 asan_expand_check_ifn.
16081 (instrument_derefs): Rename parameter.
16082 (instrument_mem_region_access): Rename parameter.
16083 (instrument_strlen_call): Likewise.
16084 (asan_expand_check_ifn): New function.
16085 (asan_instrument): Remove old code.
16086 (pass_sanopt::execute): Change handling of
16087 asan-instrumentation-with-call-threshold.
16088 (asan_clear_shadow): Fix formatting.
16089 (asan_function_start): Likewise.
16090 (asan_emit_stack_protection): Likewise.
16091 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16092 Update description.
16093 * internal-fn.c (expand_ASAN_CHECK): New function.
16094 * internal-fn.def (ASAN_CHECK): New internal function.
16095 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16096 Update description.
16097 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16098 * tree.c: Small comment fix.
16100 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16102 * gimple.c (gimple_call_fnspec): Support internal functions.
16103 (gimple_call_return_flags): Use const.
16104 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16105 * internal-fn.def: Add fnspec information.
16106 * internal-fn.h (internal_fn_fnspec): New function.
16107 (init_internal_fns): Declare new function.
16108 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16109 (init_internal_fns): New function.
16110 * tree-core.h: Update macro call.
16111 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16113 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16115 * lto-streamer.h (struct output_block::symbol): Change from
16116 struct symtab_node to plain symtab_node.
16117 (referenced_from_this_partition_p): Change first parameter
16118 from struct symtab_node to plain symtab_node.
16120 2014-08-10 Marek Polacek <polacek@redhat.com>
16123 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16125 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16127 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16128 DECL correctly; do not give up on types in static storage.
16130 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16132 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16134 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16136 * graphite-isl-ast-to-gimple.c:
16137 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16139 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16141 2014-08-08 Guozhi Wei <carrot@google.com>
16143 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16145 2014-08-08 Cary Coutant <ccoutant@google.com>
16147 * dwarf2out.c (get_skeleton_type_unit): Remove.
16148 (output_skeleton_debug_sections): Remove skeleton type units.
16149 (output_comdat_type_unit): Likewise.
16150 (dwarf2out_finish): Likewise.
16152 2014-08-07 Yi Yang <ahyangyi@google.com>
16154 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16156 2014-08-08 Richard Biener <rguenther@suse.de>
16158 * lto-streamer.h (struct lto_input_block): Make it a class
16159 with a constructor.
16160 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16161 (struct lto_function_header, struct lto_simple_header,
16162 struct lto_simple_header_with_strings,
16163 struct lto_decl_header, struct lto_function_header): Make
16164 a simple inheritance hieararchy. Remove unused fields.
16165 (struct lto_asm_header): Remove.
16166 * lto-streamer-out.c (produce_asm): Adjust.
16167 (lto_output_toplevel_asms): Likewise.
16168 (produce_asm_for_decls): Likewise.
16169 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16170 * data-streamer-in.c (string_for_index): Likewise.
16171 * ipa-inline-analysis.c (inline_read_section): Likewise.
16172 * ipa-prop.c (ipa_prop_read_section): Likewise.
16173 (read_replacements_section): Likewise.
16174 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16175 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16176 (lto_destroy_simple_input_block): Likewise.
16177 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16178 (lto_input_toplevel_asms): Likewise.
16180 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16181 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16182 Anna Tikhonova <anna.tikhonova@intel.com>
16183 Ilya Tocar <ilya.tocar@intel.com>
16184 Andrey Turetskiy <andrey.turetskiy@intel.com>
16185 Ilya Verbin <ilya.verbin@intel.com>
16186 Kirill Yukhin <kirill.yukhin@intel.com>
16187 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16189 * common/config/i386/i386-common.c
16190 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16191 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16192 (ix86_handle_option): Handle OPT_mavx512dq.
16193 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16194 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16195 set -mavx512dq accordingly.
16196 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16197 OPTION_MASK_ISA_AVX512DQ.
16198 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16199 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16200 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16201 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16202 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16203 (TARGET_AVX512DQ_P(x)): Ditto.
16204 * config/i386/i386.opt: Add mavx512dq.
16206 2014-08-08 Richard Biener <rguenther@suse.de>
16208 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16209 target_percent, target_percent_s): Export.
16210 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16211 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16212 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16213 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16214 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16215 Move to gimple-fold.c.
16216 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16218 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16219 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16220 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16221 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16222 (rewrite_call_expr_array): Remove.
16223 (fold_builtin_sprintf_chk): Likewise.
16224 (fold_builtin_snprintf_chk): Likewise.
16225 (fold_builtin_varargs): Remove handling of sprintf_chk,
16226 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16227 (gimple_fold_builtin_sprintf_chk): Remove.
16228 (gimple_fold_builtin_snprintf_chk): Likewise.
16229 (gimple_fold_builtin_varargs): Likewise.
16230 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16231 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16232 * gimple.c (gimple_seq_add_seq_without_update): New function.
16233 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16234 * gimple-fold.c: Include output.h.
16235 (gsi_replace_with_seq_vops): New function, split out from ...
16236 (gimplify_and_update_call_from_tree): ... here.
16237 (replace_call_with_value): New function.
16238 (replace_call_with_call_and_fold): Likewise.
16239 (var_decl_component_p): Moved from builtins.c.
16240 (gimple_fold_builtin_memory_op): Moved from builtins.c
16241 fold_builtin_memory_op and rewritten to GIMPLE.
16242 (gimple_fold_builtin_memset): Likewise.
16243 (gimple_fold_builtin_strcpy): Likewise.
16244 (gimple_fold_builtin_strncpy): Likewise.
16245 (gimple_fold_builtin_strcat): Likewise.
16246 (gimple_fold_builtin_fputs): Likewise.
16247 (gimple_fold_builtin_memory_chk): Likewise.
16248 (gimple_fold_builtin_stxcpy_chk): Likewise.
16249 (gimple_fold_builtin_stxncpy_chk): Likewise.
16250 (gimple_fold_builtin_snprintf_chk): Likewise.
16251 (gimple_fold_builtin_sprintf_chk): Likewise.
16252 (gimple_fold_builtin_strlen): New function.
16253 (gimple_fold_builtin_with_strlen): New function split out from
16254 gimple_fold_builtin.
16255 (gimple_fold_builtin): Change signature and handle
16256 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16257 here. Call gimple_fold_builtin_with_strlen.
16258 (gimple_fold_call): Adjust.
16260 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16262 * calls.c (precompute_arguments): Check
16263 promoted_for_signed_and_unsigned_p and set the promoted mode.
16264 (promoted_for_signed_and_unsigned_p): New function.
16265 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16266 and set the promoted mode.
16267 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16268 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16269 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16272 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16274 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16275 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16276 (expand_call): Likewise.
16277 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16278 to get promoted mode.
16279 * combine.c (record_promoted_value): Skip > 0 comparison with
16280 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16281 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16282 of SUBREG_PROMOTED_UNSIGNED_P.
16283 (convert_modes): Likewise.
16284 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16285 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16286 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16287 SUBREG_PROMOTED_UNSIGNED_SET.
16288 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16289 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16290 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16291 SUBREG_PROMOTED_SET.
16292 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16293 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16294 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16295 of SUBREG_PROMOTED_UNSIGNED_P.
16296 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16297 (SUBREG_PROMOTED_SET): New define.
16298 (SUBREG_PROMOTED_GET): Likewise.
16299 (SUBREG_PROMOTED_SIGN): Likewise.
16300 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16301 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16302 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16303 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16304 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16305 (nonzero_bits1): Skip > 0 comparison with the results as
16306 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16307 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16308 of !SUBREG_PROMOTED_UNSIGNED_P.
16309 * simplify-rtx.c (simplify_unary_operation_1): Use new
16310 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16311 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16312 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16313 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16315 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16317 * ipa-devirt.c: Include gimple-pretty-print.h
16318 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16320 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16321 (get_polymorphic_call_info): Fix return value
16322 (type_change_info): New sturcture based on ipa-prop
16324 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16325 based on ipa-prop variant.
16326 (extr_type_from_vtbl_ptr_store): New function
16327 based on ipa-prop variant.
16328 (record_known_type): New function.
16329 (check_stmt_for_type_change): New function.
16330 (get_dynamic_type): New function.
16331 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16332 * tree-ssa-pre.c: ipa-utils.h
16333 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16334 machinery; sanity check with ipa-prop devirtualization.
16335 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16338 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16340 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16341 * alias.c, cfgexpand.c, cgraphbuild.c,
16342 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16343 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16344 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16345 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16346 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16347 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16348 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16349 dse.c, except.c, gengtype.c, gimple-expr.c,
16350 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16351 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16352 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16353 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16354 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16355 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16357 * pointer-set.c: Remove file.
16358 * pointer-set.h: Remove file.
16360 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16362 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16363 * config/arm/types.md (f_sels, f_seld): Delete.
16365 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16367 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16368 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16369 (aarch64_movdi_<mode>high): Likewise.
16370 (aarch64_mov<mode>high_di): Likewise.
16371 (aarch64_movdi_<mode>low): Likewise.
16372 (aarch64_mov<mode>low_di): Likewise.
16373 (aarch64_movtilow_tilow): Likewise.
16374 Add comment explaining usage of fp,simd attributes and of
16375 TARGET_FLOAT and TARGET_SIMD.
16377 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16378 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16380 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16381 Use MOVN when one of the half-words is 0xffff.
16383 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16385 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16387 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16389 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16390 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16391 (rfs_str): String corresponding to RFS_* constants.
16392 (rank_for_schedule_stats_t): New typedef.
16393 (rank_for_schedule_stats): New static variable.
16394 (rfs_result): New static function.
16395 (rank_for_schedule): Track statistics for deciding heuristics.
16396 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16398 (ready_sort): Use them for debug printouts.
16399 (schedule_block): Init statistics state. Print statistics on
16400 rank_for_schedule decisions.
16402 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16404 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16406 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16408 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16411 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16413 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16414 function to not conflict.
16415 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16416 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16417 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16418 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16419 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16422 2014-08-07 Marek Polacek <polacek@redhat.com>
16424 * fold-const.c (fold_binary_loc): Add folding of
16425 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16427 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16429 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16430 instead of type size.
16431 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16433 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16435 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16436 (*thumb1_movqi_insn): Likewise.
16437 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16439 2014-08-07 Tom de Vries <tom@codesourcery.com>
16441 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16442 (glibc_2_11_or_earlier): Remove effective-target keywords.
16444 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16446 * config/arm/arm.c (bdesc_2arg): Fix typo.
16447 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16449 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16451 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16453 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16456 * haifa-sched.c (advance_one_cycle): Fix dump.
16457 (schedule_block): Don't advance cycle if we are already at the
16458 beginning of the cycle.
16460 2014-08-06 Martin Jambor <mjambor@suse.cz>
16463 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16465 2014-08-06 Richard Biener <rguenther@suse.de>
16468 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16470 (lto_input_tree): Pop SCCs here.
16472 2014-08-06 Richard Biener <rguenther@suse.de>
16474 PR tree-optimization/61320
16475 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16476 handle misaligned loads.
16478 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16480 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16481 (aarch64_expand_vec_perm_const): Check for dup before zip.
16483 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16485 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16486 CONST_INT_P instead of GET_CODE and compare.
16487 (aarch64_select_cc_mode): Likewise.
16488 (aarch64_print_operand): Likewise.
16489 (aarch64_rtx_costs): Likewise.
16490 (aarch64_simd_valid_immediate): Likewise.
16491 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16492 (aarch64_simd_emit_pair_result_insn): Likewise.
16494 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16496 * gdbhooks.py (find_gcc_source_dir): New helper function.
16497 (class PassNames): New class, locating and parsing passes.def.
16498 (class BreakOnPass): New command "break-on-pass".
16500 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16502 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16505 2014-08-05 Richard Biener <rguenther@suse.de>
16507 PR rtl-optimization/61672
16508 * emit-rtl.h (mem_attrs_eq_p): Declare.
16509 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16510 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16511 * cfgcleanup.c (merge_memattrs): Likewise.
16512 Include emit-rtl.h.
16514 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16516 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16517 rather than singleton vectors.
16518 (vqdmlsls_lane_s32): Likewise.
16520 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16522 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16523 Use VSDQ_HSI mode iterator.
16524 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16525 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16526 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16527 Use BUILTIN_VDQHS macro.
16528 (sqrdmulh_laneq): Likewise.
16529 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16530 (vqdmlals_laneq_s32): Likewise.
16531 (vqdmlslh_laneq_s16): Likewise.
16532 (vqdmlsls_laneq_s32): Likewise.
16533 (vqdmulhh_laneq_s16): Likewise.
16534 (vqdmulhs_laneq_s32): Likewise.
16535 (vqrdmulhh_laneq_s16): Likewise.
16536 (vqrdmulhs_laneq_s32): Likewise.
16538 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16540 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16541 (vmuld_laneq_f64): Likewise.
16542 (vmuls_laneq_f32): Likewise.
16543 (vmul_n_f64): Likewise.
16544 (vmuld_lane_f64): Reimplement in C.
16545 (vmuls_lane_f32): Likewise.
16547 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16549 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16551 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16553 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16555 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16556 (rbitsi2): Likewise.
16557 (*arm_rev): Set predicable and predicable_short_it attributes.
16559 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16561 * convert.c (convert_to_integer): Guard transformation to lrint by
16564 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16566 * config/aarch64/aarch64-builtins.c
16567 (aarch64_simd_builtin_type_mode): Delete.
16568 (v8qi_UP): Remap to V8QImode.
16569 (v4hi_UP): Remap to V4HImode.
16570 (v2si_UP): Remap to V2SImode.
16571 (v2sf_UP): Remap to V2SFmode.
16572 (v1df_UP): Remap to V1DFmode.
16573 (di_UP): Remap to DImode.
16574 (df_UP): Remap to DFmode.
16575 (v16qi_UP):V16QImode.
16576 (v8hi_UP): Remap to V8HImode.
16577 (v4si_UP): Remap to V4SImode.
16578 (v4sf_UP): Remap to V4SFmode.
16579 (v2di_UP): Remap to V2DImode.
16580 (v2df_UP): Remap to V2DFmode.
16581 (ti_UP): Remap to TImode.
16582 (ei_UP): Remap to EImode.
16583 (oi_UP): Remap to OImode.
16584 (ci_UP): Map to CImode.
16585 (xi_UP): Remap to XImode.
16586 (si_UP): Remap to SImode.
16587 (sf_UP): Remap to SFmode.
16588 (hi_UP): Remap to HImode.
16589 (qi_UP): Remap to QImode.
16590 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16591 (VAR1): Build builtin name.
16592 (aarch64_init_simd_builtins): Remove dead code.
16594 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16596 * graphite-isl-ast-to-gimple.c:
16597 (set_options): New function.
16598 (scop_to_isl_ast): Add calling of set_options.
16600 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16602 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16603 (analyze_iv_to_split_insn): Don't initialize them.
16604 (get_ivts_expr): Removed.
16605 (allocate_basic_variable, insert_base_initialization): Use
16606 SET_SRC instead of *get_ivts_expr.
16607 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16609 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16611 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16612 (translate_isl_ast_for_loop): Add checking of the
16613 flag_loop_parallelize_all.
16614 (ast_build_before_for): New function.
16615 (scop_to_isl_ast): Add checking of the
16616 flag_loop_parallelize_all.
16617 * graphite-dependences.c: Move the defenition of the
16618 scop_get_dependences from graphite-optimize-isl.c to this file.
16619 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16620 (carries_deps): Add checking of the x's value.
16621 * graphite-optimize-isl.c: Move the defenition of the
16622 scop_get_dependences to graphite-dependences.c.
16623 * graphite-poly.h: Add declarations of scop_get_dependences
16626 2014-08-04 Rohit <rohitarulraj@freescale.com>
16629 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16631 (alt_reg_names): Likewise.
16632 (rs6000_dwarf_register_span): For SPE high registers, replace
16633 dwarf register numbers with GCC hard register numbers.
16634 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16635 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16636 register number for the corresponding GCC hard register number.
16637 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16638 newly added GCC hard register numbers for SPE high registers.
16639 (DWARF_FRAME_REGISTERS): Likewise.
16640 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16641 (DWARF_FRAME_REGNUM): Likewise.
16642 (FIXED_REGISTERS): Likewise.
16643 (CALL_USED_REGISTERS): Likewise.
16644 (CALL_REALLY_USED_REGISTERS): Likewise.
16645 (REG_ALLOC_ORDER): Likewise.
16646 (enum reg_class): Likewise.
16647 (REG_CLASS_NAMES): Likewise.
16648 (REG_CLASS_CONTENTS): Likewise.
16649 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16651 2014-08-04 Richard Biener <rguenther@suse.de>
16653 * gimple-fold.h (gimple_fold_builtin): Remove.
16654 * gimple-fold.c (gimple_fold_builtin): Make static.
16655 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16656 fold_stmt, not gimple_fold_builtin.
16658 2014-08-04 Martin Liska <mliska@suse.cz>
16660 * cgraph.h (csi_end_p): Removed.
16661 (csi_next): Likewise.
16662 (csi_node): Likewise.
16663 (csi_start): Likewise.
16664 (cgraph_node_in_set_p): Likewise.
16665 (cgraph_node_set_size): Likewise.
16666 (vsi_end_p): Likewise.
16667 (vsi_next): Likewise.
16668 (vsi_node): Likewise.
16669 (vsi_start): Likewise.
16670 (varpool_node_set_size): Likewise.
16671 (cgraph_node_set_nonempty_p): Likewise.
16672 (varpool_node_set_nonempty_p): Likewise.
16673 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16675 * ipa-inline-transform.c: Likewise.
16676 * ipa-utils.c (cgraph_node_set_new): Removed.
16677 (cgraph_node_set_add): Likewise.
16678 (cgraph_node_set_remove): Likewise.
16679 (cgraph_node_set_find): Likewise.
16680 (dump_cgraph_node_set): Likewise.
16681 (debug_cgraph_node_set): Likewise.
16682 (free_cgraph_node_set): Likewise.
16683 (varpool_node_set_new): Likewise.
16684 (varpool_node_set_add): Likewise.
16685 (varpool_node_set_remove): Likewise.
16686 (varpool_node_set_find): Likewise.
16687 (dump_varpool_node_set): Likewise.
16688 (free_varpool_node_set): Likewise.
16689 (debug_varpool_node_set): Likewise.
16690 * tree-emutls.c (struct tls_var_data):
16691 (emutls_index): Removed.
16692 (emutls_decl): Likewise.
16693 (gen_emutls_addr): Function implementation uses newly added
16694 hash_map<varpool_node *, tls_var_data>.
16695 (clear_access_vars): Likewise.
16696 (create_emultls_var): Likewise.
16697 (ipa_lower_emutls): Likewise.
16698 (reset_access): New function.
16700 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16702 * config/i386/i386.c (ix86_option_override_internal): Add
16703 PTA_RDRND and PTA_MOVBE for bdver4.
16705 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16706 James Greenhalgh <james.greenhalgh@arm.com>
16708 * doc/md.texi (clrsb): Document.
16709 (clz): Change reference to x into operand 1.
16711 (popcount): Likewise.
16713 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16716 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16717 move to subtarget in serial version if result is ignored.
16719 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16720 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16722 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16723 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16724 (sched_analyze_insn): Update use of try_group_insn to
16725 sched_macro_fuse_insns.
16726 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16727 arguments that are not conditional jumps.
16729 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16731 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16732 family information. Handle BTVER2 cpu with cpuid family value.
16734 2014-08-04 Tom de Vries <tom@codesourcery.com>
16736 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16737 (glibc_2_11_or_earlier): Document effective-target keywords.
16739 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16741 * ipa-devirt.c (odr_type_warn_count): Add type.
16742 (possible_polymorphic_call_targets): Set it.
16743 (ipa_devirt): Use it.
16745 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16747 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16749 * ipa-devirt.c: Include hash-map.h
16750 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16751 (clear_speculation): Break out of ...
16752 (get_class_context): ... here; speed up handling obviously useless
16754 (odr_type_warn_count, decl_warn_count): New structures.
16755 (final_warning_record): New structure.
16756 (final_warning_records): New static variable.
16757 (possible_polymorphic_call_targets): Cleanup handling of
16758 speculative info; do not build speculation when user do not care;
16759 record info about warnings when asked for.
16760 (add_decl_warning): New function.
16761 (type_warning_cmp): New function.
16762 (decl_warning_cmp): New function.
16763 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16764 (gate): Enable pass when warnings are requested.
16765 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16768 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16770 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16772 (hash_map::remove): New method.
16773 (hash_map::traverse): New method.
16774 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16775 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16776 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16777 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16778 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16779 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16782 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16784 * hash-set.h: new File.
16785 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16786 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16787 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16788 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16789 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16790 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16791 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16792 varpool.c: Use hash_set instead of pointer_set.
16794 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16796 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16798 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16800 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16801 for frame access when strict_p is false.
16803 2014-08-01 Renlin Li <renlin.li@arm.com>
16804 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16806 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16807 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16808 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16810 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16812 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16813 aarch64_mem_pair_offset.
16815 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16817 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16819 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16820 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16822 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16824 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16826 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16828 PR regression/61510
16829 * cgraphunit.c (analyze_functions): Use get_create rather than get
16830 for decls which are clones of abstract functions.
16832 2014-08-01 Martin Liska <mliska@suse.cz>
16834 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16835 * ipa-prop.h (count_formal_params): Global function created from static.
16836 * ipa-prop.c (count_formal_params): Likewise.
16837 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16838 profiles for semantically equivalent functions.
16839 * passes.c (do_per_function): If we load body of a function
16840 during WPA, this condition should behave same.
16841 * varpool.c (ctor_for_folding): More tolerant assert for variable
16842 aliases created during WPA.
16844 2014-08-01 Martin Liska <mliska@suse.cz>
16846 * doc/invoke.texi (Options That Control Optimization): Documentation
16847 for -foptimize-strlen introduced. Optimization levels default options
16850 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16852 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16853 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16854 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16856 * stor-layout.h (min_align_of_type): New prototype.
16857 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16858 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16860 * ubsan.c: Include builtins.h.
16861 (ubsan_expand_bounds_ifn): Change return type to bool,
16862 always return true.
16863 (ubsan_expand_null_ifn): Change return type to bool, change
16864 argument to gimple_stmt_iterator *. Handle both null and alignment
16865 sanitization, take type from ckind argument's type rather than
16867 (instrument_member_call): Removed.
16868 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16869 Handle both null and alignment sanitization, don't say whole
16870 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16871 call instead of 2 argument.
16872 (instrument_null): Adjust instrument_mem_ref caller. Don't
16873 instrument calls here.
16874 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16875 like SANITIZE_NULL.
16876 * stor-layout.c (min_align_of_type): New function.
16877 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16878 Or it into SANITIZE_UNDEFINED.
16879 * doc/invoke.texi (-fsanitize=alignment): Document.
16881 2014-07-31 Andi Kleen <ak@linux.intel.com>
16883 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16885 2014-07-31 Andi Kleen <ak@linux.intel.com>
16887 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16889 (vn_reference_compute_hash): Dito.
16890 (vn_nary_op_compute_hash): Dito.
16891 (vn_phi_compute_hash): Dito.
16892 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16894 2014-07-31 Andi Kleen <ak@linux.intel.com>
16896 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16897 Rename to inchash:add_expr_commutative. Convert to inchash.
16898 (iterative_hash_hashable_expr): Rename to
16899 inchash:add_hashable_expr. Convert to inchash.
16900 (avail_expr_hash): Dito.
16902 2014-07-31 Andi Kleen <ak@linux.intel.com>
16904 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16905 Convert to inchash.
16907 2014-07-31 Andi Kleen <ak@linux.intel.com>
16909 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16911 2014-07-31 Andi Kleen <ak@linux.intel.com>
16913 * Makefile.in (OBJS): Add rtlhash.o
16914 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16915 (loc_checksum): Dito.
16916 (loc_checksum_ordered): Dito.
16917 (hash_loc_operands): Dito.
16919 (hash_loc_list): Dito.
16920 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16921 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16922 * rtlhash.c: New file.
16923 * rtlhash.h: New file.
16925 2014-07-31 Andi Kleen <ak@linux.intel.com>
16927 * inchash.h (inchash): Change inchash class to namespace.
16928 (class hash): ... Rename from inchash.
16929 (add_object): Move from macro to class template.
16930 * lto-streamer-out.c (hash_tree): Change inchash
16932 * tree.c (build_type_attribute_qual_variant): Dito.
16933 (type_hash_list): Dito.
16934 (attribute_hash_list): Dito.
16935 (iterative_hstate_expr): Rename to inchash::add_expr
16936 (build_range_type_1): Change inchash to inchash::hash
16937 and use hash::add_expr.
16938 (build_array_type_1): Dito.
16939 (build_function_type): Dito
16940 (build_method_type_directly): Dito.
16941 (build_offset_type): Dito.
16942 (build_complex_type): Dito.
16943 (make_vector_type): Dito.
16944 * tree.h (iterative_hash_expr): Dito.
16946 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16948 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16950 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16952 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16953 correct alphabetical position.
16954 (vpaddd_f64): Rewrite using builtins.
16955 (vpaddd_s64): Move to correct alphabetical position.
16958 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16961 * config/sh/sh.c (sh_legitimate_address_p,
16962 sh_legitimize_reload_address): Handle reg+reg address modes when
16963 ALLOW_INDEXED_ADDRESS is false.
16964 * config/sh/predicates.md (general_movsrc_operand,
16965 general_movdst_operand): Likewise.
16967 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16969 * config/aarch64/aarch64-builtins.c
16970 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16973 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16975 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16976 the generated mask based on BYTES_BIG_ENDIAN.
16977 (aarch64_simd_check_vect_par_cnst_half): New.
16978 * config/aarch64/aarch64-protos.h
16979 (aarch64_simd_check_vect_par_cnst_half): New.
16980 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16981 the check out to aarch64_simd_check_vect_par_cnst_half.
16982 (vect_par_cnst_lo_half): Likewise.
16983 * config/aarch64/aarch64-simd.md
16984 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16985 (move_hi_quad_<mode>): Always generate a low mask.
16987 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16989 * doc/invoke.texi (AVR Options): Add documentation about
16990 __AVR_DEVICE_NAME__ built-in macro.
16992 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16995 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16996 constraints are satisfied.
16997 (<shift>di3_neon): Likewise.
16999 2014-07-31 Richard Biener <rguenther@suse.de>
17001 PR tree-optimization/61964
17002 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17003 by structural equality.
17005 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17007 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17008 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17009 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17011 * gcc.c (sanitize_spec_function): Support new option.
17012 (SANITIZER_SPEC): Remove now redundant check.
17013 * opts.c (common_handle_option): Support new option.
17014 (finish_options): Check for incompatibilities.
17015 * toplev.c (process_options): Split userspace-specific checks.
17017 2014-07-31 Richard Biener <rguenther@suse.de>
17019 * lto-streamer.h (struct output_block): Remove global.
17020 (struct data_in): Remove labels, num_named_labels and
17021 num_unnamed_labels.
17022 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17023 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17025 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17028 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17029 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17030 (isolate_path): New argument to avoid inserting a trap.
17031 (find_implicit_erroneous_behaviour): Handle returning the address
17032 of a local variable.
17033 (find_explicit_erroneous_behaviour): Likewise.
17035 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17038 * toplev.c (init_random_seed): Move piece of code never called to
17040 (set_random_seed): see above.
17042 2014-07-31 Tom de Vries <tom@codesourcery.com>
17044 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17046 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17048 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17049 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17051 2014-07-31 Richard Biener <rguenther@suse.de>
17053 * data-streamer.h (streamer_write_data_stream): Declare here,
17055 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17056 * lto-cgraph.c (lto_output_node): Adjust.
17057 (lto_output_varpool_node): Likewise.
17058 * data-streamer-out.c (streamer_string_index): Likewise.
17059 (streamer_write_data_stream, lto_append_block): Move from ...
17060 * lto-section-out.c (lto_output_data_stream,
17061 lto_append_block): ... here.
17063 2014-07-30 Mike Stump <mikestump@comcast.net>
17065 * configure.ac: Also check for popen.
17066 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17067 * configure: Regenerate.
17068 * config.in: Regenerate.
17070 2014-07-30 Martin Jambor <mjambor@suse.cz>
17072 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17073 parameter to gimple.
17075 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17077 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17078 address as second parameter to __tpf_eh_return routine.
17080 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17082 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17085 2014-07-30 Tom Tromey <tromey@redhat.com>
17088 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17089 * doc/extend.texi (Type Attributes): Document designated_init
17092 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17094 * graphite-isl-ast-to-gimple.c:
17095 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17096 (gcc_expression_from_isl_expression): Pass type to
17097 gcc_expression_from_isl_ast_expr_id.
17099 2014-07-30 Richard Biener <rguenther@suse.de>
17101 * lto-streamer.h (lto_write_data): New function.
17102 * langhooks.c (lhd_append_data): Do not free block.
17103 * lto-section-out.c (lto_write_data): New function writing
17104 raw data to the current section.
17105 (lto_write_stream): Adjust for langhook semantic change.
17106 (lto_destroy_simple_output_block): Write header directly.
17107 * lto-opts.c (lto_write_options): Write options directly.
17108 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17109 (lto_output_toplevel_asms): Likewise.
17110 (copy_function_or_variable): Copy data directly.
17111 (write_global_references): Output index table directly.
17112 (lto_output_decl_state_refs): Likewise.
17113 (write_symbol): Write data directly.
17114 (produce_symtab): Adjust.
17115 (produce_asm_for_decls): Output header and refs directly.
17117 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17119 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17120 to speculative_targets
17121 (get_class_context): Fix handling of contextes without outer type;
17122 avoid matching non-polymorphic types in LTO.
17123 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17124 parameter to speculative_targetsp; handle speculation.
17125 (dump_possible_polymorphic_call_targets): Update dumping.
17127 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17129 * common.opt (Wodr): Enable by default.
17131 2014-07-29 Olivier Hainque <hainque@adacore.com>
17133 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17135 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17138 * gengtype.c (strtoken): New function.
17139 (create_user_defined_type): Replace strtok with strtoken.
17141 2014-07-29 Nathan Sidwell <nathan@acm.org>
17143 * gcov-io.c (gcov_var): Make hidden.
17144 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17145 (gcov_do_dump): Declare.
17146 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17148 2014-07-29 Martin Jambor <mjambor@suse.cz>
17150 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17151 parameter to gimple.
17152 (sra_modify_assign): Likewise.
17154 2014-07-29 Richard Biener <rguenther@suse.de>
17156 PR middle-end/52478
17157 * expr.c (expand_expr_real_2): Revert last change.
17159 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17161 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17162 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17163 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17165 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17166 (contains_type_p): Forward declare.
17167 (polymorphic_call_target_hasher::hash): Hash speculative info.
17168 (polymorphic_call_target_hasher::equal): Compare speculative info.
17169 (get_class_context): Handle speuclation.
17170 (contains_type_p): Update.
17171 (get_polymorphic_call_info_for_decl): Update.
17172 (walk_ssa_copies): Break out from ...
17173 (get_polymorphic_call_info): ... here; set speculative context
17175 * ipa-prop.c (ipa_write_indirect_edge_info,
17176 ipa_read_indirect_edge_info): Stream speculative context.
17177 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17178 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17179 SPECULATIVE_MAYBE_DERIVED_TYPE).
17180 (possible_polymorphic_call_targets overriders): Update.
17181 (dump_possible_polymorphic_call_targets overriders): Update.
17182 (dump_possible_polymorphic_call_target_p overriders): Update.
17184 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17186 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17187 ipa-devirt path; fix thinko there.
17189 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17191 * config/i386/i386.c (ix86_return_in_memory): Replace one
17192 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17194 2014-07-28 Marek Polacek <polacek@redhat.com>
17196 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17198 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17200 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17201 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17202 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17203 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17204 (USE_LD_AS_NEEDED): Likewise.
17205 (ASM_APP_ON): Likewise.
17206 (ASM_APP_OFF): Likewise.
17207 (TARGET_POSIX_IO): Likewise.
17208 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17209 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17210 (USE_LD_AS_NEEDED): Likewise.
17211 (ASM_APP_ON): Likewise.
17212 (ASM_APP_OFF): Likewise.
17213 (TARGET_POSIX_IO): Likewise.
17215 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17217 PR middle-end/61734
17218 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17219 operators other than the equality operators.
17221 2014-07-28 Richard Biener <rguenther@suse.de>
17223 PR middle-end/52478
17224 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17225 sure to register SImode ones, not only >= word_mode ones.
17226 * expr.c (expand_expr_real_2): When expanding -ftrapv
17227 binops do not use OPTAB_LIB_WIDEN.
17229 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17231 PR middle-end/61919
17232 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17233 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17234 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17235 inserting them in the insn stream.
17237 2014-07-28 Marek Polacek <polacek@redhat.com>
17239 PR middle-end/61913
17240 * common.opt (Wodr): Add Var.
17242 2014-07-28 Richard Biener <rguenther@suse.de>
17244 PR tree-optimization/61921
17245 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17246 if there is a varpool node before dereferencing it.
17248 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17250 * graphite-sese-to-poly.c:
17251 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17252 id of the pbb), which contains pointer to the pbb1.
17254 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17256 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17258 * graphite-isl-ast-to-gimple.c:
17259 (graphite_create_new_guard): New function.
17260 (translate_isl_ast_node_if): New function.
17261 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17263 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17265 2014-07-27 Anthony Green <green@moxielogic.com>
17267 * config.gcc: Add moxie-*-moxiebox* configuration.
17268 * config/moxie/moxiebox.h: New file.
17270 2014-07-26 Andrew Pinski <apinski@cavium.com>
17272 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17273 from the read only register.
17275 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17277 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17278 as the allocation class if it isn't likely to be spilled.
17280 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17282 * rtl.h (tls_referenced_p): Declare.
17283 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17284 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17285 (mips_cannot_force_const_mem): Use tls_referenced_p.
17286 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17287 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17288 instead of pa_tls_referenced_p.
17289 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17290 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17291 (pa_legitimate_constant_p): Likewise.
17292 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17293 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17294 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17295 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17296 rs6000_tls_referenced_p.
17297 (rs6000_tls_symbol_ref_1): Delete.
17299 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17302 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17303 Optimize inverse of a VEC_CONCAT.
17305 2014-07-25 Xinliang David Li <davidxl@google.com>
17307 * params.def: New parameter.
17308 * coverage.c (get_coverage_counts): Check new flag.
17309 (coverage_compute_profile_id): Check new flag.
17310 (coverage_begin_function): Check new flag.
17311 (coverage_end_function): Check new flag.
17312 * value-prof.c (coverage_node_map_initialized_p): New function.
17313 (init_node_map): Populate map with all functions.
17314 * doc/invoke.texi: Document new parameter.
17316 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17317 Richard Biener <rguenther@suse.de>
17319 * lto-streamer-out.c (struct sccs): Turn to ...
17320 (class DFS): ... this one; refactor the DFS walk so it can
17321 be re-done on per-SCC basis.
17322 (DFS::DFS): New constructor.
17323 (DFS::~DFS): New destructor.
17324 (hash_tree): Add new MAP argument holding in-SCC hash values;
17325 remove POINTER_TYPE hashing hack.
17326 (scc_entry_compare): Rename to ...
17327 (DFS::scc_entry_compare): ... this one.
17328 (hash_scc): Rename to ...
17329 (DFS::hash_scc): ... this one; pass output_block instead
17330 of streamer_cache; work harder to get unique and stable SCC
17332 (DFS_write_tree): Rename to ...
17333 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17334 (lto_output_tree): Update.
17336 2014-07-25 Andi Kleen <ak@linux.intel.com>
17338 * lto-streamer-out.c (hash_tree): Convert to inchash.
17340 2014-07-25 Andi Kleen <ak@linux.intel.com>
17342 * tree.c (build_type_attribute_qual_variant): Use inchash.
17343 (type_hash_list): Dito.
17344 (attribute_hash_list): Dito
17345 (iterative_hstate_expr): Dito.
17346 (iterative_hash_expr): Dito.
17347 (build_range_type_1): Dito.
17348 (build_array_type_1): Dito.
17349 (build_function_type): Dito.
17350 (build_method_type_directly): Dito.
17351 (build_offset_type): Dito.
17352 (build_complex_type): Dito.
17353 (make_vector_type): Dito.
17354 * tree.h (iterative_hash_expr): Add compat wrapper.
17355 (iterative_hstate_expr): Add.
17357 2014-07-25 Andi Kleen <ak@linux.intel.com>
17359 * Makefile.in (OBJS): Add inchash.o.
17360 (PLUGIN_HEADERS): Add inchash.h.
17361 * ipa-devirt.c: Include inchash.h.
17362 * lto-streamer-out.c: Dito.
17363 * tree-ssa-dom.c: Dito.
17364 * tree-ssa-pre.c: Dito.
17365 * tree-ssa-sccvn.c: Dito.
17366 * tree-ssa-tail-merge.c: Dito.
17368 * tree.c (iterative_hash_hashval_t): Move to ...
17369 (iterative_hash_host_wide_int): Move to ...
17370 * inchash.c: Here. New file.
17371 * tree.h (iterative_hash_hashval_t): Move to ...
17372 (iterative_hash_host_wide_int): Move to ...
17373 * inchash.h: Here. New file.
17375 2014-07-25 Richard Biener <rguenther@suse.de>
17377 PR middle-end/61762
17378 PR middle-end/61894
17379 * fold-const.c (native_encode_int): Add and handle offset
17380 parameter to do partial encodings of expr.
17381 (native_encode_fixed): Likewise.
17382 (native_encode_real): Likewise.
17383 (native_encode_complex): Likewise.
17384 (native_encode_vector): Likewise.
17385 (native_encode_string): Likewise.
17386 (native_encode_expr): Likewise.
17387 * fold-const.c (native_encode_expr): Add offset parameter
17389 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17390 (fold_ctor_reference): Handle all reads from tcc_constant
17393 2014-07-25 Richard Biener <rguenther@suse.de>
17395 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17396 as possibly unused.
17398 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17400 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17402 2014-07-24 Kyle McMartin <kyle@redhat.com>
17404 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17406 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17408 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17410 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17412 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17413 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17414 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17416 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17418 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17419 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17420 aggregate types. Instead, *all* aggregate types, except for single-
17421 element or homogeneous float/vector aggregates, are quadword-aligned
17422 if required by their type alignment. Issue -Wpsabi note when a type
17423 is now treated differently than before.
17425 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17427 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17428 does not fit fully into floating-point registers, and there is still
17429 space in the register parameter area, use GPRs to pass those parts
17430 of the argument. Issue -Wpsabi note if any parameter is now treated
17431 differently than before.
17432 (rs6000_arg_partial_bytes): Update.
17434 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17436 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17438 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17440 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17441 * toplev.c (initialize_rtl): Don't use it. Move previously
17442 "language-dependent" calls to...
17443 (backend_init): ...here.
17444 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17445 Assert that RTL initialization hasn't happend yet.
17447 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17449 PR rtl-optimization/61629
17450 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17451 they have already been initialized.
17453 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17455 PR middle-end/61268
17456 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17457 DECL_INCOMING_RTL and entry_parm.
17458 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17459 * calls.c (load_register_parameters): Likewise argument values.
17460 (emit_library_call_value_1, store_one_arg): Likewise argument
17462 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17464 * explow.c (validize_mem): Modify the argument in-place.
17466 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17468 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17469 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17471 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17473 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17474 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17476 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17478 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17479 (aarch64_save_callee_saves): New parameter "skip_wb".
17480 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17482 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17484 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17486 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17488 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17490 * graphite-isl-ast-to-gimple.c:
17491 (graphite_create_new_loop): Add calling of isl_id_free to properly
17492 decrement reference counts.
17494 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17496 2014-07-24 Martin Liska <mliska@suse.cz>
17497 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17499 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17500 (rs6000_code_end): Likewise.
17502 2014-07-24 Martin Liska <mliska@suse.cz>
17504 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17505 symtab_node funtion used.
17506 (rs6000_xcoff_declare_object_name): Likewise.
17508 2014-07-24 Martin Liska <mliska@suse.cz>
17510 * cgraphunit.c (compile): Correct function used.
17512 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17514 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17517 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17520 * varasm.c (bss_initializer_p): Handle offlined ctors.
17521 (align_variable, get_variable_align): Likewise.
17522 (make_decl_one_only): Likewise.
17523 (default_binds_local_p_1): Likewise.
17524 (decl_binds_to_current_def_p): Likewise.
17525 (get_variable_section): Get constructor if it is offlined.
17526 (assemble_variable_contents): Sanity check that the caller
17527 streamed in the ctor in LTO.
17529 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17531 * graphite-isl-ast-to-gimple.c:
17532 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17533 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17534 isl_ast_op_pdiv_r to the different case.
17536 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17538 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17540 PR middle-end/61876
17541 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17542 when flag_errno_math is on.
17544 2014-07-24 Martin Liska <mliska@suse.cz>
17546 * cgraph.h (varpool_node):
17547 (availability get_availability (void)):
17548 created from cgraph_variable_initializer_availability
17549 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17550 created from: cgraph_variable_initializer_availability
17551 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17552 (void finalize_named_section_flags (void)):
17553 created from varpool_finalize_named_section_flags
17554 (bool assemble_decl (void)): created from varpool_assemble_decl
17555 (void analyze (void)): created from varpool_analyze_node
17556 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17557 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17558 (void remove_initializer (void)): created from varpool_remove_initializer
17559 (tree get_constructor (void)): created from varpool_get_constructor
17560 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17561 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17562 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17563 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17564 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17565 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17566 (static bool output_variables (void)): created from varpool_output_variables
17567 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17568 created from varpool_extra_name_alias
17569 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17570 (static void dump_varpool (FILE *f)): created from dump_varpool
17571 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17572 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17573 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17574 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17575 (void assemble_aliases (void)): created from assemble_aliases
17577 2014-07-24 Martin Liska <mliska@suse.cz>
17579 * cgraph.h (symtab_node):
17580 (void register_symbol (void)): created from symtab_register_node
17581 (void remove (void)): created from symtab_remove_node
17582 (void dump (FILE *f)): created from dump_symtab_node
17583 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17584 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17585 (struct ipa_ref *add_reference (symtab_node *referred_node,
17586 enum ipa_ref_use use_type)): created from add_reference
17587 (struct ipa_ref *add_reference (symtab_node *referred_node,
17588 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17589 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17590 gimple stmt)): created from maybe_add_reference
17591 (bool semantically_equivalent_p (symtab_node *target)): created from
17592 symtab_semantically_equivalent_p
17593 (void remove_from_same_comdat_group (void)): created from
17594 remove_from_same_comdat_group
17595 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17596 symtab_add_to_same_comdat_group
17597 (void dissolve_same_comdat_group_list (void)): created from
17598 symtab_dissolve_same_comdat_group_list
17599 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17600 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17601 created from symtab_alias_ultimate_target
17602 (inline symtab_node *next_defined_symbol (void)): created from
17603 symtab_next_defined_symbol
17604 (bool resolve_alias (symtab_node *target)): created from
17605 symtab_resolve_alias
17606 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17607 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17608 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17609 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17610 (void set_section (const char *section)): created from set_section_1
17611 (enum availability get_availability (void)): created from symtab_node_availability
17612 (void make_decl_local (void)): created from symtab_make_decl_local
17613 (bool real_symbol_p (void)): created from symtab_read_node
17614 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17615 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17616 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17617 symtab_in_same_comdat_p;
17618 (bool address_taken_from_non_vtable_p (void)): created from
17619 address_taken_from_non_vtable_p
17620 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17621 (static void dump_table (FILE *)): created from dump_symtab
17622 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17623 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17624 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17625 symtab_used_from_object_file_p
17626 (void dump_base (FILE *)): created from dump_symtab_base
17627 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17628 (void unregister (void)): created from symtab_unregister_node
17629 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17630 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17631 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17632 symtab_nonoverwritable_alias_1
17633 * cgraph.h (cgraph_node):
17634 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17635 created from cgraph_remove_node_and_inline_clones
17636 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17637 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17638 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17639 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17640 created from cgraph_function_node
17641 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17642 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17643 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17644 created from cgraph_create_clone
17645 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17646 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17647 created from cgraph_create_virtual_clone
17648 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17649 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17650 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17651 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17652 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17653 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17654 created from cgraph_function_version_info
17655 (struct cgraph_function_version_info *insert_new_function_version (void)):
17656 created from insert_new_cgraph_node_version
17657 (struct cgraph_function_version_info *function_version (void)): created from
17658 get_cgraph_node_version
17659 (void analyze (void)): created from analyze_function
17660 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17661 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17662 tree real_alias) cgraph_add_thunk
17663 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17664 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17665 created from cgraph_function_or_thunk_node
17666 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17667 created from expand_thunk
17668 (void reset (void)): created from cgraph_reset_node
17669 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17670 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17671 (void remove (void)): created from cgraph_remove_node
17672 (void dump (FILE *f)): created from dump_cgraph_node
17673 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17674 (bool get_body (void)): created from cgraph_get_body
17675 (void release_body (void)): created from cgraph_release_function_body
17676 (void unnest (void)): created from cgraph_unnest_node
17677 (void make_local (void)): created from cgraph_make_node_local
17678 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17679 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17680 gcov_type count, int freq)): created from cgraph_create_edge
17681 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17682 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17683 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17684 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17685 created from cgraph_create_edge_including_clones
17686 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17687 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17688 (void remove_callers (void)): created from cgraph_node_remove_callers
17689 (void remove_callees (void)): created from cgraph_node_remove_callees
17690 (enum availability get_availability (void)): created from cgraph_function_body_availability
17691 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17692 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17693 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17694 (void call_duplication_hooks (cgraph_node *node2)): created from
17695 cgraph_call_node_duplication_hooks
17696 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17697 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17698 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17699 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17700 (void call_function_insertion_hooks (void)):
17701 created from cgraph_call_function_insertion_hooks
17702 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17703 (bool local_p (void)): created from cgraph_local_node
17704 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17705 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17706 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17707 (inline bool only_called_directly_or_aliased_p (void)):
17708 created from cgraph_only_called_directly_or_aliased_p
17709 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17710 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17711 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17712 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17713 (bool can_remove_if_no_direct_calls_p (void)):
17714 created from cgraph_can_remove_if_no_direct_calls_p
17715 (inline bool has_gimple_body_p (void)):
17716 created from cgraph_function_with_gimple_body_p
17717 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17718 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17719 (static inline void debug_cgraph (void)): created from debug_cgraph
17720 (static void record_function_versions (tree decl1, tree decl2)):
17721 created from record_function_versions
17722 (static void delete_function_version (tree decl)):
17723 created from delete_function_version
17724 (static void add_new_function (tree fndecl, bool lowered)):
17725 created from cgraph_add_new_function
17726 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17727 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17728 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17729 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17730 (static cgraph_node *get_for_asmname (tree asmname)):
17731 created from cgraph_node_for_asm
17732 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17733 created from cgraph_same_body_alias
17734 (static bool used_from_object_file_p_worker (cgraph_node *node,
17735 void *): new function
17736 (static bool non_local_p (cgraph_node *node, void *)):
17737 created from cgraph_non_local_node_p_1
17738 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17739 created from verify_cgraph
17740 (static bool make_local (cgraph_node *node, void *)):
17741 created from cgraph_make_node_local
17742 (static cgraph_node *create_alias (tree alias, tree target)):
17743 created from cgraph_create_function_alias
17744 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17745 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17746 created from cgraph_create_edge_1
17747 * cgraph.h (varpool_node):
17748 (void remove (void)): created from varpool_remove_node
17749 (void dump (FILE *f)): created from dump_varpool_node
17751 2014-07-24 Richard Biener <rguenther@suse.de>
17754 * tree-ssa-structalias.c (create_variable_info_for_1):
17755 Use varpool_get_constructor.
17756 (create_variable_info_for): Likewise.
17758 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17760 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17761 subtract outgoing area size when restoring stack_pointer_rtx.
17763 2014-07-24 Nick Clifton <nickc@redhat.com>
17765 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17766 that operations are taking place in parallel.
17767 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17769 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17771 * omp-low.c (extract_omp_for_data): Add missing break statement.
17773 2014-07-24 Richard Biener <rguenther@suse.de>
17775 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17776 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17777 and adjust MOVE_RATIO query accordingly.
17778 (estimate_num_insns): Adjust callers.
17779 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17780 * ipa-cp.c (gather_context_independent_values,
17781 estimate_local_effects): Likewise.
17782 * ipa-split.c (consider_split): Likewise.
17784 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17786 * config/i386/driver-i386.c: Remove names of unused arguments and
17787 unnecessary unused attributes.
17788 * config/i386/host-mingw32.c: Likewise.
17789 * config/i386/i386.c: Likewise.
17790 * config/i386/winnt-stubs.c: Likewise.
17791 * config/i386/winnt.c: Likewise.
17793 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17795 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17796 (aarch64_gen_loadwb_pair): New helper function.
17797 (aarch64_expand_epilogue): Simplify code using new helper functions.
17798 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17800 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17802 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17803 (aarch64_gen_storewb_pair): New helper function.
17804 (aarch64_expand_prologue): Simplify code using new helper functions.
17805 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17807 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17809 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17810 Rename to aarch64_save_callee_saves, remove restore code.
17811 (aarch64_restore_callee_saves): New function.
17813 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17815 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17816 (aarch64_save_callee_saves): New function to handle reg save
17817 for both core and vectore regs.
17819 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17821 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17822 (aarch64_gen_store_pair): New helper function.
17823 (aarch64_save_or_restore_callee_save_registers)
17824 (aarch64_save_or_restore_fprs): Use new helper functions.
17826 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17828 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17829 (aarch64_save_or_restore_callee_save_registers)
17830 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17832 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17834 * config/aarch64/aarch64.c
17835 (aarch64_save_or_restore_callee_save_registers)
17836 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17838 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17840 * config/aarch64/aarch64.c
17841 (aarch64_save_or_restore_callee_save_registers)
17842 (aarch64_save_or_restore_fprs): Remove 'increment'.
17844 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17846 * config/aarch64/aarch64.c
17847 (aarch64_save_or_restore_callee_save_registers)
17848 (aarch64_save_or_restore_fprs): Use register offset in
17849 cfun->machine->frame.reg_offset.
17851 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17853 * config/aarch64/aarch64.c
17854 (aarch64_save_or_restore_callee_save_registers)
17855 (aarch64_save_or_restore_fprs): Remove base_rtx.
17857 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17859 * config/aarch64/aarch64.c
17860 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17861 to 'start_offset'. Remove local variable 'start_offset'.
17863 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17865 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17866 type to HOST_WIDE_INT.
17868 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17870 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17871 (aarch64_save_or_restore_fprs)
17872 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17874 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17876 * config/arm/t-rtems-eabi: Add
17877 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17878 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17879 mbig-endian/mthumb/march=armv7-r, and
17880 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17883 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17884 Chris Johns <chrisj@rtems.org>
17885 Joel Sherrill <joel.sherrill@oarcorp.com>
17887 * config.gcc: Add nios2-*-rtems*.
17888 * config/nios2/rtems.h: New file.
17889 * gcc/config/nios2/t-rtems: New file.
17891 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17894 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17895 constant numbers, not general constants.
17896 (rs6000_expand_vector_init): Ditto.
17898 2014-07-23 Nathan Sidwell <nathan@acm.org>
17900 * gcov-tool.c (gcov_list): Declare here.
17901 (set_gcov_list): Remove.
17902 (gcov_output_files): Set gcov_list directly.
17904 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17906 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17908 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17910 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17911 callee-saved registers are available for padding purpose
17912 and r3 is not mandatory, then prefer use those callee-saved
17915 2014-07-23 Richard Biener <rguenther@suse.de>
17917 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17918 * combine.c: Include statistics.h and params.h.
17919 (combine_instructions): Guard three and four insn combines
17920 with max-combine-insns value. Record statistics for combines
17922 * doc/invoke.texi (max-combine-insns): Document new param.
17924 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17926 * graphite-isl-ast-to-gimple.c:
17927 (translate_isl_ast_node_block): New function.
17928 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17930 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17931 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17933 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17935 * graphite-isl-ast-to-gimple.c:
17936 (get_max_schedule_dimensions): New function.
17937 (extend_schedule): Likewise.
17938 (generate_isl_schedule): Add calling of extend_schedule and
17939 get_max_schedule_dimensions.
17941 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17943 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17944 (case UNSPEC): Handle UNSPEC_RBIT.
17946 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17948 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17949 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17951 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17953 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17955 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17957 * graphite-isl-ast-to-gimple.c:
17958 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17959 (ivs_params_clear):
17960 (build_iv_mapping): New function.
17961 (translate_isl_ast_node_user): Likewise.
17962 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17964 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17965 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17966 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17968 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17971 * config/arm/arm.md (setmem): New pattern.
17972 * config/arm/arm-protos.h (struct tune_params): New fields.
17973 (arm_gen_setmem): New prototype.
17974 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17975 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17976 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17977 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17978 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17979 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17980 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17981 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17982 (arm_const_inline_cost): New function.
17983 (arm_block_set_max_insns): New function.
17984 (arm_block_set_non_vect_profit_p): New function.
17985 (arm_block_set_vect_profit_p): New function.
17986 (arm_block_set_unaligned_vect): New function.
17987 (arm_block_set_aligned_vect): New function.
17988 (arm_block_set_unaligned_non_vect): New function.
17989 (arm_block_set_aligned_non_vect): New function.
17990 (arm_block_set_vect, arm_gen_setmem): New functions.
17992 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17994 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17996 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17999 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18000 out of #ifdef __OPTIMIZE__.
18002 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18004 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18005 different trapping status if -fnon-call-exceptions is enabled.
18007 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18009 * expr.c (store_field): Handle VOIDmode for calls that return values
18010 in multiple locations.
18012 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18014 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18015 (altivec_vsldoi_<mode>): Likewise.
18017 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18019 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18020 to the number of characters in the line.
18022 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18024 * graphite-isl-ast-to-gimple.c: Add using of
18025 build_nonstandard_integer_type instead of int128_integer_type_node.
18027 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18029 * toplev.c (output_stack_usage): Adjust the location of the warning.
18031 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18033 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18034 (*membar_storeload): Disable for LEON3.
18036 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18038 PR rtl-optimization/61461
18039 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18041 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18044 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18045 Fix instruction constraint.
18046 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18048 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18050 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18052 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18054 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18055 GNU coding standards.
18056 (nds32_register_move_cost): Likewise.
18057 (nds32_memory_move_cost): Likewise.
18058 (nds32_address_cost): Likewise.
18060 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18062 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18064 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18066 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18067 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18068 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18069 (HAVE_sync_compare_and_swapqi): Define.
18070 (HAVE_sync_compare_and_swaphi): Likewise.
18071 (HAVE_sync_compare_and_swapsi): Likewise.
18073 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18075 * config/mips/p5600.md: Add missing cpu tests.
18077 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18079 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18080 (vmla_f64): Likewise.
18081 (vfms_f64): Likewise.
18082 (vmls_f64): Likewise.
18084 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18086 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18087 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18089 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18091 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18092 (vmlal_high_lane_s32): Likewise.
18093 (vmlal_high_lane_u16): Likewise.
18094 (vmlal_high_lane_u32): Likewise.
18095 (vmlsl_high_lane_s16): Likewise.
18096 (vmlsl_high_lane_s32): Likewise.
18097 (vmlsl_high_lane_u16): Likewise.
18098 (vmlsl_high_lane_u32): Likewise.
18100 2014-07-17 Terry Guo <terry.guo@arm.com>
18102 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18103 (alus_reg): Renamed to alus_sreg.
18104 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18105 from alu_reg to alu_sreg. Change type of dsp instructions from
18106 alu_reg to alu_dsp_reg.
18107 * config/arm/thumb1.md: Likewise.
18108 * config/arm/thumb2.md: Likewise.
18109 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18110 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18111 with alu_sreg and alus_sreg.
18112 * config/arm/arm1026ejs.md (alu_op): Likewise.
18113 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18114 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18115 * config/arm/fa526.md (526_alu_op): Likewise.
18116 * config/arm/fa606te.md (606te_alu_op): Likewise.
18117 * config/arm/fa626te.md (626te_alu_op): Likewise.
18118 * config/arm/fa726te.md (726te_alu_op): Likewise.
18119 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18120 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18121 alu_sreg, alu_dsp_reg and alus_sreg.
18122 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18123 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18124 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18125 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18126 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18127 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18128 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18129 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18130 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18131 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18132 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18133 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18134 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18135 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18136 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18137 alus_reg to alus_sreg.
18139 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18141 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18144 2014-07-17 Richard Biener <rguenther@suse.de>
18146 PR rtl-optimization/61801
18147 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18148 don't set reg_pending_barrier if it appears in a debug-insn.
18150 2014-07-16 DJ Delorie <dj@redhat.com>
18152 * config/rx/rx.c (rx_option_override): Fix alignment values.
18153 (rx_align_for_label): Likewise.
18155 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18158 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18159 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18160 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18162 (cris_print_index, cris_print_operand, cris_constant_index_p)
18163 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18164 (cris_address_cost): Ditto last CONSTANT_P.
18165 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18166 callers changed. Yield cris_offsettable_symbol for non-PIC
18167 constant symbolic expressions including labels. Yield cris_unspec
18169 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18170 target to pic_offset_table_rtx for calls that will likely go
18171 through PLT, const0_rtx when they can't. All callers changed.
18172 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18173 symbolic expressions to be PICified. Remove second, redundant,
18174 assert on can_create_pseudo_p returning non-zero. Use
18175 replace_equiv_address_nv, not replace_equiv_address, for final
18177 * config/cris/cris.md ("movsi"): Move variable t to pattern
18178 toplevel. Adjust assert for new cris_symbol_type member. Use
18179 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18180 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18182 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18183 ("call", "call_value"): Use second incoming operand as a marker
18184 for pic-offset-table-register being used.
18185 ("*expanded_call_non_v32", "*expanded_call_v32")
18186 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18187 second incoming operand to CALL, match cris_call_type_marker.
18188 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18189 ("*expanded_call_side"): Ditto. Fix typo in comment.
18190 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18192 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18193 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18194 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18195 users changed. Add members cris_offsettable_symbol and cris_unspec.
18196 (cris_symbol_type): Rename from cris_pic_symbol_type.
18197 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18199 * config/cris/cris-protos.h (cris_symbol_type_of,
18200 cris_expand_pic_call_address): Adjust prototypes.
18201 (cris_legitimate_constant_p): New prototype.
18203 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18204 an existing tmake_file. Don't add t-slibgcc and t-linux.
18206 2014-07-17 Jason Merrill <jason@redhat.com>
18209 * symtab.c (symtab_remove_from_same_comdat_group): Also
18210 set_comdat_group to NULL_TREE.
18211 (verify_symtab): Fix diagnostic.
18213 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18216 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18218 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18220 Support location tracking for built-in macro tokens
18221 * input.h (is_location_from_builtin_token): New function declaration.
18222 * input.c (is_location_from_builtin_token): New function definition.
18223 * toplev.c (general_init): Tell libcpp what the pre-defined
18224 spelling location for built-in tokens is.
18226 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18228 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18229 on the FUNCTION_DECL.
18231 2014-07-16 Richard Biener <rguenther@suse.de>
18234 * doc/extend.texi (always_inline): Clarify.
18236 2014-07-15 Eric Christopher <echristo@gmail.com>
18238 * doc/invoke.texi (Link Options): Document -z option.
18240 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18242 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18243 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18245 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18247 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18249 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18251 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18252 varpool_assemble_decl.
18253 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18256 2014-07-15 Michael Matz <matz@suse.de>
18258 PR rtl-optimization/61772
18259 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18261 2014-07-15 Richard Biener <rguenther@suse.de>
18263 * opts.c (default_options_table): Disable bit-ccp at -Og.
18265 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18267 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18269 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18271 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18272 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18273 call langhook for unknown declaration.
18274 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18275 * tree.h (DECL_ARGUMENTS): Update.
18276 * print-tree.c (print_node): Update.
18277 * tree-core.h (tree_decl_non_common): Remove arguments.
18278 (tree_function_decl): Add arguments.
18280 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18282 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18284 2014-07-14 Richard Biener <rguenther@suse.de>
18286 PR tree-optimization/61779
18287 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18288 simplifying a condition.
18290 2014-07-14 Richard Biener <rguenther@suse.de>
18292 * builtins.c (c_strlen): Make only_value == 2 really only
18293 affect warning generation.
18295 2014-07-14 Richard Biener <rguenther@suse.de>
18297 PR tree-optimization/61757
18298 PR tree-optimization/61783
18299 PR tree-optimization/61787
18300 * tree-ssa-dom.c (record_equality): Revert canonicalization
18301 change and add comment.
18302 (propagate_rhs_into_lhs): Revert previous fix, removing
18303 loop depth restriction again.
18305 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18307 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18308 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18309 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18310 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18311 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18312 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18313 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18315 2014-07-14 Richard Biener <rguenther@suse.de>
18317 * cgraph.h (decl_in_symtab_p): Make inline.
18319 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18321 PR middle-end/61294
18322 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18325 * config/i386/i386.c (classify_argument): Don't merge classes above
18328 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18330 * cgraph.h (symtab_node): Add nonzero_address.
18331 (decl_in_symtab_p): Break out from ...
18332 (symtab_get_node): ... here.
18333 * fold-const.c: Include cgraph.h
18334 (tree_single_nonzero_warnv_p): Use symtab to determine
18335 if symbol is non-zero.
18336 * symtab.c (symtab_node::nonzero_address): New method.
18338 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18340 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18341 forgotten in previous commit.
18343 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18345 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18347 * ipa-devirt.c: Include stor-layout.h and intl.h
18348 (odr_subtypes_equivalent_p): New function.
18349 (warn_odr): New function.
18350 (warn_type_mismatch): New function.
18351 (odr_types_equivalent_p): New function.
18352 (add_type_duplicate): Use it.
18353 * common.opt (Wodr): New flag.
18354 * doc/invoke.texi (Wodr): Document new warning.
18356 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18358 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18359 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18360 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18361 (varpool_get_constructor): Push CTORS_IN timevar.
18362 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18364 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18366 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18367 Remove VOID_FTYPE_PUSHORT.
18368 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18369 Change code to USHORT_FTYPE_VOID.
18370 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18371 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18372 (ix86_atomic_assign_expand_fenv): Update for
18373 __builtin_ia32_fnstsw changes.
18374 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18375 (fnstsw): Change operand 0 to nonimmediate operand.
18377 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18379 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18380 (varpool_get_constructor): New function.
18381 (varpool_ctor_useable_for_folding_p): Break out from ...
18382 (ctor_for_folding): ... here; use varpool_get_constructor.
18383 (varpool_assemble_decl): Likewise.
18384 * lto-streamer.h (struct output_block): Turn cgraph_node
18386 (lto_input_variable_constructor): Declare.
18387 * ipa-visibility.c (function_and_variable_visibility): Use
18388 varpool_get_constructor.
18389 * cgraph.h (varpool_get_constructor): Declare.
18390 (varpool_ctor_useable_for_folding_p): New function.
18391 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18392 parameter; return error_mark_node for non-trivial constructors.
18393 (lto_write_tree_1, DFS_write_tree): Update use of
18394 get_symbol_initial_value.
18395 (output_function): Update initialization of symbol.
18396 (output_constructor): New function.
18397 (copy_function): Rename to ..
18398 (copy_function_or_variable): ... this one; handle vars too.
18399 (lto_output): Output variable sections.
18400 * lto-streamer-in.c (input_constructor): New function.
18401 (lto_read_body): Rename from ...
18402 (lto_read_body_or_constructor): ... this one; handle vars too.
18403 (lto_input_variable_constructor): New function.
18404 * ipa-prop.c (ipa_prop_write_jump_functions,
18405 ipa_prop_write_all_agg_replacement): Update.
18406 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18407 (output_cgraph_opt_summary): Set symbol to NULL.
18409 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18411 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18412 non-polymorphic types.
18413 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18414 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18415 of types is not polymorphic.
18417 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18419 * lra-constraints.c (remove_inheritance_pseudos): Process
18420 destination pseudo too.
18422 2014-07-11 Rong Xu <xur@google.com>
18424 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18427 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18429 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18430 * config/avr/avr-devices.c (AVR_MCU): Same.
18431 (avr_mcu_types): add text start value to end of device list.
18432 * config/avr/avr-mcus.def: Add text section start for all devices.
18433 (ata5782): Add new avr5 device.
18435 * config/avr/avr-tables.opt: Regenerate.
18436 * config/avr/avr.h: Add declaration for text section start handler.
18437 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18439 (LINK_SPEC): Include text section start handler to linker spec.
18440 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18441 pass -Ttext option to linker if the text section start for the device
18443 * config/avr/t-multilib: Regenerate.
18444 * doc/avr-mmcu.texi: Regenerate.
18446 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18448 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18449 * config/rs6000/aix52.h (LINK_SPEC): Same.
18450 * config/rs6000/aix53.h (LINK_SPEC): Same.
18451 * config/rs6000/aix61.h (LINK_SPEC): Same.
18452 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18454 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18456 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18457 (graphite_verify): New function.
18458 (ivs_params_clear): New function.
18459 (gcc_expression_from_isl_ast_expr_id): New function.
18460 (gcc_expression_from_isl_expr_int): New function.
18461 (binary_op_to_tree): New function.
18462 (ternary_op_to_tree): New function.
18463 (unary_op_to_tree): New function.
18464 (nary_op_to_tree): New function.
18465 (gcc_expression_from_isl_expr_op): New function.
18466 (gcc_expression_from_isl_expression): New function.
18467 (graphite_create_new_loop): New function.
18468 (translate_isl_ast_for_loop): New function.
18469 (get_upper_bound): New function.
18470 (graphite_create_new_loop_guard): New function.
18471 (translate_isl_ast_node_for): New function.
18472 (translate_isl_ast): New function.
18473 (add_parameters_to_ivs_params): New function.
18474 (scop_to_isl_ast): New parameter ip.
18475 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18477 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18479 * config/xtensa/predicates.md (call expander): Update for
18480 DECL_SECTION_NAME being string.
18482 2014-07-11 Richard Biener <rguenther@suse.de>
18484 PR middle-end/61473
18485 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18486 can be implemented with a single load followed by a single store.
18487 (c_strlen): Only warn when only_value is not 2.
18489 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18491 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18493 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18496 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18497 (*movhi_bytes): Likewise.
18498 (*arm_movqi_insn): Likewise.
18500 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18503 * config/alpha/alpha.c: Include tree-pass.h, context.h
18504 and pass_manager.h.
18505 (pass_data_handle_trap_shadows): New pass.
18506 (pass_handle_trap_shadows::gate): New pass gate function.
18507 (make_pass_handle_trap_shadows): New function.
18508 (rest_of_handle_trap_shadows): Ditto.
18510 (alpha_align_insns_1): Rename from alpha_align_insns.
18511 (pass_data_align_insns): New pass.
18512 (pass_align_insns::gate): New pass gate function.
18513 (make_pass_aling_insns): New function.
18514 (rest_of_align_insns): Ditto.
18515 (alpha_align_insns): Ditto.
18517 (alpha_option_override): Declare handle_trap_shadows info
18518 and align_insns_info. Register handle_trap_shadows and align_insns
18520 (alpha_reorg): Do not call alpha_trap_shadows and
18521 alpha_align_insn from here.
18523 (alpha_pad_function_end): Do not skip BARRIERs.
18525 2014-07-10 Rong Xu <xur@google.com>
18527 Add gcov-tool: an offline gcda profile processing tool support.
18528 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18529 (gcov_is_error): Ditto.
18530 (gcov_read_string): Ditto.
18531 (gcov_read_sync): Ditto.
18532 * gcov-io.h: Move counter defines to gcov-counter.def.
18533 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18534 * coverage.c: Ditto.
18535 * gcov-tool.c: Offline gcda profile processing tool.
18536 (unlink_gcda_file): Remove one gcda file.
18537 (unlink_profile_dir): Remove gcda files from the profile path.
18538 (gcov_output_files): Output gcda files to an output dir.
18539 (profile_merge): Merge two profiles in directory.
18540 (print_merge_usage_message): Print merge usage.
18541 (merge_usage): Print merge usage and exit.
18542 (do_merge): Driver for profile merge sub-command.
18543 (profile_rewrite): Rewrite profile.
18544 (print_rewrite_usage_message): Print rewrite usage.
18545 (rewrite_usage): Print rewrite usage and exit.
18546 (do_rewrite): Driver for profile rewrite sub-command.
18547 (print_usage): Print gcov-info usage and exit.
18548 (print_version): Print gcov-info version.
18549 (process_args): Process arguments.
18550 (main): Main routine for gcov-tool.
18551 * Makefile.in: Build and install gcov-tool.
18552 * gcov-counter.def: New file split from gcov-io.h.
18553 * doc/gcc.texi: Include gcov-tool.texi.
18554 * doc/gcov-tool.texi: Document for gcov-tool.
18556 2014-07-10 Richard Biener <rguenther@suse.de>
18558 PR tree-optimization/61757
18559 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18560 (propagate_rhs_into_lhs): Revert part of last change.
18562 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18564 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18567 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18569 PR middle-end/53590
18570 * function.c (allocate_struct_function): Revert r188667 change.
18572 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18574 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18576 * doc/install.texi: Remove links to defunct package providers for
18579 2014-07-09 Tom de Vries <tom@codesourcery.com>
18581 * final.c (get_call_fndecl): Declare.
18582 (self_recursive_call_p): New function.
18583 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18585 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18587 * ipa-devirt.c (record_node): Walk through aliases.
18589 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18591 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18593 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18596 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18598 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18600 * ipa-visibility.c (function_and_variable_visibility): Remove
18601 temporary hack disabling local aliases on AIX.
18603 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18605 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18606 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18608 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18610 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18611 * rs6000/rs6000.c: Inline output of .set instruction.
18612 (declare_alias_data): New struct.
18613 (rs6000_declare_alias): New function.
18614 (rs6000_xcoff_declare_function_name): Use it.
18615 (rs6000_xcoff_declare_object_name): New function.
18616 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18617 (ASM_OUTPUT_DEF): Turn to empty definition.
18619 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18622 * hash-table.h: use hash_table::value_type instead of
18623 Descriptor::value_type in the return types of several methods.
18625 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18627 * tree-pass.h (pass_data): Remove has_execute member.
18628 * passes.c (execute_one_pass): Don't check pass->has_execute.
18629 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18630 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18631 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18632 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18633 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18634 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18635 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18636 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18637 gimple-low.c, gimple-ssa-isolate-paths.c,
18638 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18639 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18640 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18641 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18642 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18643 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18644 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18645 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18646 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18647 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18648 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18649 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18650 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18651 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18652 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18653 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18654 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18655 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18656 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18657 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18658 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18659 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18660 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18661 web.c: Remove initializer for pass_data::has_execute.
18663 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18665 * graphite-htab.h: Use hash_map instead of hash_table.
18666 * graphite-clast-to-gimple.c: Adjust.
18667 * passes.c: Use hash_map instead of hash_table.
18668 * sese.c: Likewise.
18669 * sese.h: Remove now unused code.
18671 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18674 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18677 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18679 PR rtl-optimization/61673
18680 * combine.c (simplify_comparison): Test just mode's sign bit
18681 in tmode rather than the sign bit and any bits above it.
18683 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18685 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18686 Add __isl_give to the declaration.
18687 (generate_isl_schedule): Likewise.
18688 (scop_to_isl_ast): Likewise.
18690 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18692 * config/arm/arm.c (cortexa5_extra_costs): New table.
18693 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18695 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18697 PR tree-optimization/61725
18698 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18699 range, use range_includes_zerop_p instead of integer_zerop on
18700 vr0->min, only use log2 of max if min is not negative.
18702 2014-07-08 Richard Biener <rguenther@suse.de>
18704 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18705 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18706 restriction on loop depth difference.
18707 (record_equality): Likewise.
18708 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18709 (loop_depth_of_name): Remove.
18710 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18711 restriction on loop depth difference.
18712 (init_copy_prop): Likewise.
18714 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18716 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18718 (walk_aliased_vdefs): Likewise.
18719 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18720 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18721 (detect_type_change_from_memory_writes): Check if entry was reached.
18723 2014-07-08 Richard Biener <rguenther@suse.de>
18725 PR tree-optimization/61681
18726 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18727 NONLOCAL inside ESCAPED.
18729 2014-07-08 Richard Biener <rguenther@suse.de>
18731 PR tree-optimization/61680
18732 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18733 Handle properly all read-write dependences with group accesses.
18735 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18737 PR tree-optimization/61576
18738 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18739 block containing reduction statement is predecessor of phi basi block.
18741 2014-07-08 Marek Polacek <polacek@redhat.com>
18744 * fold-const.c (round_up_loc): Change the parameter type.
18746 * fold-const.h (round_up_loc): Adjust declaration.
18747 * stor-layout.c (finalize_record_size): Check for too large types.
18749 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18751 * symtab.c: Include calls.h.
18752 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18754 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18756 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18757 little-endian code generation.
18758 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18759 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18760 (spe_evmergehilo): Rename to...
18761 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18762 (spe_evmergelo): Rename to...
18763 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18764 (spe_evmergelohi): Rename to...
18765 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18766 (spe_evmergehi, spe_evmergehilo): New expanders.
18767 (spe_evmergelo, spe_evmergelohi): Likewise.
18768 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18769 (*frob_tf_ti): Likewise.
18770 (*frob_<mode>_di_2): Likewise.
18771 (*frob_tf_di_8_2): Likewise.
18772 (*frob_di_<mode>): Likewise.
18773 (*frob_ti_tf): Likewise.
18774 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18775 (*frob_ti_<mode>_8_2): Likewise.
18776 (*frob_ti_tf_2): Likewise.
18777 (mov_si<mode>_e500_subreg0): Rename to...
18778 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18780 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18781 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18782 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18783 the big endianness only.
18784 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18785 (*mov_si<mode>_e500_subreg0_2): Rename to...
18786 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18787 big big endianness only.
18788 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18789 (*mov_si<mode>_e500_subreg4): Rename to...
18790 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18792 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18793 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18794 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18795 the big endianness only.
18796 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18798 (*mov_si<mode>_e500_subreg4_2): Rename to...
18799 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18801 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18802 (*mov_sitf_e500_subreg8): Rename to...
18803 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18805 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18806 (*mov_sitf_e500_subreg8_2): Rename to...
18807 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18809 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18810 (*mov_sitf_e500_subreg12): Rename to...
18811 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18813 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18814 (*mov_sitf_e500_subreg12_2): Rename to...
18815 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18817 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18819 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18821 * asan.c (instrument_strlen_call): Do not instrument first byte
18822 in strlen if already instrumented.
18824 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18826 * config/arm/arm.opt (mwords-little-endian): Delete.
18827 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18828 of TARGET_LITTLE_WORDS.
18829 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18830 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18832 * doc/invoke.texi: Remove references to -mwords-little-endian.
18834 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18836 * expmed.c (struct init_expmed_rtl): Change all fields but
18837 pow2 and cint from struct rtx_def to rtx.
18838 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18839 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18842 2014-07-06 Marek Polacek <polacek@redhat.com>
18845 * doc/invoke.texi: Document -Wsizeof-array-argument.
18847 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18849 * wide-int.h (wide_int_storage): Change declaration from struct
18852 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18854 * cgraph.c (cgraph_create_indirect_edge): Update call of
18855 get_polymorphic_call_info.
18856 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18857 (possible_polymorphic_call_targets): Add parameter call.
18858 (decl_maybe_in_construction_p): New predicate.
18859 (get_polymorphic_call_info): Add parameter call;
18860 use decl_maybe_in_construction_p.
18861 * gimple-fold.c (fold_gimple_assign): Update use of
18862 possible_polymorphic_call_targets.
18863 (gimple_fold_call): Likewise.
18864 * ipa-prop.c: Inlcude calls.h
18865 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18866 (param_type_may_change_p): New predicate.
18867 (detect_type_change_from_memory_writes): Break out from ...
18868 (detect_type_change): ... this one; use param_type_may_change_p.
18869 (detect_type_change_ssa): Use param_type_may_change_p.
18870 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18872 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18875 * config/arm/arm-protos.h (arm_legitimate_address_p,
18876 arm_is_constant_pool_ref): Add prototypes.
18877 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18878 (arm_is_constant_pool_ref) New function.
18879 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18880 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18881 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18882 operand. Remove pool_range and neg_pool_range attributes.
18883 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18884 pool_range and neg_pool_range attributes.
18885 * config/arm/constraints.md (Uh): New constraint.
18886 (Uq): Don't allow constant pool references.
18888 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18890 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18891 (move_lo_quad_internal_be_<mode>): Likewise.
18892 (move_lo_quad_<mode>): Convert to define_expand.
18893 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18894 (aarch64_simd_move_hi_quad_be_<mode>): New.
18895 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18896 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18897 (aarch64_combinez_be<mode>): New.
18898 (aarch64_combine<mode>): Convert to define_expand.
18899 (aarch64_combine_internal<mode>): New.
18900 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18902 2014-07-04 Tom de Vries <tom@codesourcery.com>
18904 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18905 combination of earlyclobber and read/write modifiers.
18907 2014-07-04 Tom de Vries <tom@codesourcery.com>
18909 * config/aarch64/aarch64-simd.md
18910 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18912 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18915 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18917 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18919 PR middle-end/61654
18920 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18922 PR tree-optimization/61684
18923 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18924 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18926 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18927 Kito Cheng <kito@0xlab.org>
18928 Monk Chiang <sh.chiang04@gmail.com>
18930 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18931 (nds32_symbol_load_store_p): Move to ...
18932 (nds32_fp_as_gp_check_available): Move to ...
18933 * config/nds32/nds32-fp-as-gp.c: ... here.
18934 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18935 extern declaration.
18937 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18938 Kito Cheng <kito@0xlab.org>
18939 Monk Chiang <sh.chiang04@gmail.com>
18941 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18942 (nds32_expand_store_multiple): Move to ...
18943 (nds32_expand_movmemqi): Move to ...
18944 * config/nds32/nds32-memory-manipulation.c: ... here.
18946 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18947 Kito Cheng <kito@0xlab.org>
18948 Monk Chiang <sh.chiang04@gmail.com>
18950 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18951 (nds32_output_casesi_pc_relative): Move to ...
18952 (nds32_output_casesi): Move to ...
18953 (nds32_mem_format): Move to ...
18954 (nds32_output_16bit_store): Move to ...
18955 (nds32_output_16bit_load): Move to ...
18956 (nds32_output_32bit_store): Move to ...
18957 (nds32_output_32bit_load): Move to ...
18958 (nds32_output_32bit_load_s): Move to ...
18959 (nds32_output_stack_push): Move to ...
18960 (nds32_output_stack_pop): Move to ...
18961 * config/nds32/nds32-md-auxiliary.c: ... here.
18963 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18964 Ling-Hua Tseng <uranus@tinlans.org>
18966 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18967 the purpose of this file.
18969 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18970 Kito Cheng <kito@0xlab.org>
18971 Monk Chiang <sh.chiang04@gmail.com>
18973 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18974 (nds32_address_cost): Move implementation to ...
18975 * config/nds32/nds32-cost.c: ... here.
18976 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18977 (nds32_address_cost_impl): Declare.
18979 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18980 Kito Cheng <kito@0xlab.org>
18981 Monk Chiang <sh.chiang04@gmail.com>
18983 * config/nds32/nds32.c
18984 (nds32_consecutive_registers_load_store_p): Move to ...
18985 (nds32_valid_multiple_load_store): Move to ...
18986 (nds32_valid_stack_push_pop): Move to ...
18987 (nds32_can_use_bclr_p): Move to ...
18988 (nds32_can_use_bset_p): Move to ...
18989 (nds32_can_use_btgl_p): Move to ...
18990 (nds32_can_use_bitci_p): Move to ...
18991 * config/nds32/nds32-predicates.c: ... here.
18993 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18994 Kito Cheng <kito@0xlab.org>
18995 Monk Chiang <sh.chiang04@gmail.com>
18997 * config/nds32/nds32.c
18998 (nds32_expand_builtin_null_ftype_reg): Move to ...
18999 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19000 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19001 (nds32_init_builtins): Move implementation to ...
19002 (nds32_expand_builtin): Move implementation to ...
19003 * config/nds32/nds32-intrinsic.c: ... here.
19004 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19005 (nds32_expand_builtin_impl): Declare.
19007 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19008 Kito Cheng <kito@0xlab.org>
19009 Monk Chiang <sh.chiang04@gmail.com>
19011 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19012 (nds32_emit_section_tail_template): Move to ...
19013 (nds32_emit_isr_jmptbl_section): Move to ...
19014 (nds32_emit_isr_vector_section): Move to ...
19015 (nds32_emit_isr_reset_conten): Move to ...
19016 (nds32_check_isr_attrs_conflict): Move to ...
19017 (nds32_construct_isr_vectors_information): Move to ...
19018 (nds32_asm_file_start): Move implementation to ...
19019 (nds32_asm_file_end): Move implementation to ...
19020 * config/nds32/nds32-isr.c: ... here.
19021 * config/nds32/nds32-protos.h
19022 (nds32_check_isr_attrs_conflict): Declare.
19023 (nds32_construct_isr_vectors_information): Declare.
19024 (nds32_asm_file_start_for_isr): Declare.
19025 (nds32_asm_file_end_for_isr): Declare.
19027 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19028 Kito Cheng <kito@0xlab.org>
19029 Monk Chiang <sh.chiang04@gmail.com>
19031 * config.gcc (nds32*): Add new modules to extra_objs.
19032 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19033 (nds32be-*-*): Likewise.
19034 * config/nds32/nds32-cost.c: New file.
19035 * config/nds32/nds32-fp-as-gp.c: New file.
19036 * config/nds32/nds32-intrinsic.c: New file.
19037 * config/nds32/nds32-isr.c: New file.
19038 * config/nds32/nds32-md-auxiliary.c: New file.
19039 * config/nds32/nds32-memory-manipulation.c: New file.
19040 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19041 * config/nds32/nds32-predicates.c: New file.
19042 * config/nds32/t-nds32: New file.
19044 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19046 PR tree-optimization/61682
19047 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19048 using cases and when one of the operands is equal to 1.
19050 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19052 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19053 ashr<mode>3): Correct mode of operands[2].
19054 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19055 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19056 Correct mode of operands[2]. Fix split condition.
19058 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19060 * arm.md (arch): Add armv6_or_vfpv3.
19061 (arch_enabled): Add test for the above.
19062 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19064 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19066 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19068 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19069 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19070 HWI 1 and negate the unsigned value.
19071 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19072 use AND instead of shift.
19073 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19075 2014-07-03 Marek Polacek <polacek@redhat.com>
19077 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19078 (-fsanitize=float-divide-by-zero): Move to the table with
19079 -fsanitize=undefined suboptions.
19080 (-fsanitize=float-cast-overflow): Likewise.
19082 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19084 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19085 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19088 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19090 * loop-invariant.c (struct invariant): Add a new member: eqno;
19091 (find_identical_invariants): Update eqno;
19092 (create_new_invariant): Init eqno;
19093 (get_inv_cost): Compute comp_cost with eqno;
19095 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19097 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19098 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19099 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19100 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19101 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19103 2014-07-02 Christian Bruel <christian.bruel@st.com>
19107 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19108 (make_preds_opaque): Delete.
19109 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19110 (commit_mode_sets): New function.
19111 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19112 Process all modes at once.
19113 * basic-block.h (pre_edge_lcm_avs): Declare.
19114 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19115 Call clear_aux_for_edges. Fix comments.
19116 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19117 (pre_edge_rev_lcm): Idem.
19118 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19120 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19121 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19123 * config/i386/i386.c (x96_emit_mode_set): Idem.
19124 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19125 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19126 (fpscr_toggle) Disallow from delay slot.
19127 * target.def (emit_mode_set): Add prev_mode parameter.
19128 * doc/tm.texi: Regenerate.
19130 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19132 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19135 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19137 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19138 vtable_pointer_value_to_vtable): Constify.
19139 (contains_polymorphic_type_p): Declare.
19140 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19141 vtable_pointer_value_to_vtable): Constify.
19142 (contains_polymorphic_type_p): New predicate.
19143 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19145 (ipa_set_ancestor_jf): Likewise.
19146 (detect_type_change): Return false in easy cases.
19147 (compute_complex_assign_jump_func): Require type to contain
19149 (compute_known_type_jump_func): Likewise.
19151 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19153 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19155 (type_in_anonymous_namespace_p): Constify argument.
19156 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19157 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19158 (main_odr_variant): New function.
19159 (hash_type_name): Make static; update assert; do not ICE on
19161 (types_same_for_odr): Bring here from tree.c; simplify and remove
19162 old structural comparing code that doesn't work for templates.
19163 (odr_hasher::equal): Update assert.
19164 (add_type_duplicate): Return true when bases should be computed;
19165 replace incomplete loader by complete; do not output duplicated
19166 warnings; do not ICE on non-records; set odr_violated flag.
19167 (get_odr_type): Be ready to replace incomplete type by complete
19168 one; work on ODR variants instead of main variants; reorder item
19169 in array so bases have still smaller indexes.
19170 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19171 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19173 2014-07-01 Cary Coutant <ccoutant@google.com>
19175 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19177 (resolve_addr_in_expr): When replacing the rtx in a location list
19178 entry, get a new address table entry.
19179 (dwarf2out_finish): Call index_location_lists even if there are no
19180 addr_index_table entries yet.
19182 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19184 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19185 change for not being obvious.
19187 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19189 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19192 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19194 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19195 (vcagt_f64): Likewise.
19196 (vcale_f64): Likewise.
19197 (vcaled_f64): Likewise.
19198 (vcales_f32): Likewise.
19199 (vcalt_f64): Likewise.
19200 (vcaltd_f64): Likewise.
19201 (vcalts_f32): Likewise.
19203 2014-07-01 Marek Polacek <polacek@redhat.com>
19205 * doc/invoke.texi: Document -Wint-conversion.
19207 2014-07-01 Marek Polacek <polacek@redhat.com>
19210 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19212 2014-07-01 Martin Liska <mliska@suse.cz>
19214 IPA REF alias refactoring
19215 * cgraph.h (iterate_direct_aliases): New function.
19216 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19217 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19218 FOR_EACH_ALIAS added.
19219 (cgraph_for_node_and_aliases): Likewise.
19220 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19221 * ipa-inline.c (reset_edge_caches): Likewise.
19222 (update_caller_keys): Likewise.
19223 * trans-mem.c (ipa_tm_execute): Likewise.
19224 *varpool.c (varpool_analyze_node): Likewise.
19225 (varpool_for_node_and_aliases): Likewise.
19226 * ipa-ref.h (first_alias): New function.
19227 (last_alias): Likewise.
19228 (has_aliases_p): Likewise.
19229 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19230 is sensitive to IPA_REF_ALIASes.
19231 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19232 are put at the beginning of the list.
19233 (symtab_node::iterate_direct_aliases): New function.
19235 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19238 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19240 (write_ts_type_common_tree_pointers): Do not stream fields not set
19241 for incomplete types; do not stream duplicated fields for variants;
19242 sanity check that variant and type match.
19243 (write_ts_type_non_common_tree_pointers): Likewise.
19244 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19245 TYPE_SIZE whether type is complete.
19246 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19247 write_ts_type_common_tree_pointers
19248 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19250 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19252 * var-tracking.c (add_stores): Return instead of asserting if old
19253 and new values for conditional store are the same.
19255 2014-06-30 Richard Henderson <rth@redhat.com>
19259 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19260 the cfg if there were any changes.
19261 * passes.def: Revert move of peephole2 after reorder_blocks;
19262 move duplicate_computed_gotos before peephole2.
19264 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19266 * except.c (emit_note_eh_region_end): New helper function.
19267 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19268 emit EH_REGION_END note.
19269 * jump.c (cleanup_barriers): Do not split a call and its
19270 corresponding CALL_ARG_LOCATION note.
19272 2014-06-30 Jeff Law <law@redhat.com>
19274 PR tree-optimization/61607
19275 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19276 deeper into the SSA_NAME_VALUE chain.
19278 2014-06-30 Marek Polacek <polacek@redhat.com>
19280 * convert.c (convert_to_integer): Don't instrument conversions if the
19281 function has no_sanitize_undefined attribute.
19282 * ubsan.c: Don't run the ubsan pass if the function has
19283 no_sanitize_undefined attribute.
19285 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19287 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19288 -fsanitize=undefined suboptions.
19290 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19292 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19293 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19294 against bigendian and adjust indices.
19296 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19298 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19300 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19303 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19304 Add alternative; make early clobber. Adjust both split patterns
19305 to use operand 0 as the working register.
19307 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19309 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19310 as ira_object_id_map might be NULL, or 1.
19312 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19314 * loop-invariant.c (get_inv_cost): Handle register class.
19315 (gain_for_invariant): Check the register pressure of the inv
19316 and its overlapped register class, other than all.
19318 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19320 * doc/invoke.texi (Optimize Options): Fix descriptions of
19321 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19323 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19325 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19328 2014-06-29 Tobias Grosser <tobias@grosser.es>
19331 * graphite-isl-ast-to-gimple.c: Add missing guards.
19333 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19335 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19336 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19337 * flag-types.h: Add new enum fgraphite_generator.
19338 * graphite-isl-ast-to-gimple.c: New.
19339 * graphite-isl-ast-to-gimple.h: New.
19340 * graphite.c (graphite_transform_loops): Add choice of Graphite
19341 code generator, which depends on flag_graphite_code_gen.
19343 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19345 * graphite-dependences.c (subtract_commutative_associative_deps):
19346 Add NULL checking of the following variables: must_raw_no_source,
19347 may_raw_no_source, must_war_no_source, may_war_no_source,
19348 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19349 must_war, may_war, must_waw, may_waw.
19351 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19353 * graphite-clast-to-gimple.c: gloog is renamed to
19354 graphite_regenerate_ast_cloog. gloog_error is renamed to
19355 graphite_regenerate_error.
19356 * graphite-clast-to-gimple.h: The definition of the struct
19357 bb_pbb_def is moved to graphite-htab.h.
19358 Add inclusion of the hash-table.h.
19359 * graphite-htab.h: The declaration of the function gloog is moved
19360 to graphite-clast-to-gimple.h and renamed to
19361 graphite_regenerate_ast_cloog.
19362 * graphite.c (graphite_transform_loops): gloog is renamed
19363 to graphite_regenerate_ast_cloog.
19365 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19367 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19369 (write_ts_type_common_tree_pointers): Do not stream fields not set
19370 for incomplete types; do not stream duplicated fields for variants;
19371 sanity check that variant and type match.
19372 (write_ts_type_non_common_tree_pointers): Likewise.
19373 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19374 TYPE_SIZE whether type is complete.
19375 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19376 write_ts_type_common_tree_pointers
19377 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19379 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19381 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19383 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19385 * tree-inline.c (remap_type_1): Do not duplicate fields
19386 that are shared in between type and its main variant.
19388 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19390 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19392 (ipa_set_ancestor_jf) Likewise.
19393 (check_stmt_for_type_change): Check that we work on main variant.
19394 (detect_type_change): Look into main variant.
19395 (compute_known_type_jump_func): Check that main variant has BINFO.
19397 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19399 * ipa-devirt.c (set_type_binfo): New function.
19400 (add_type_duplicate): Use it.
19401 (get_odr_type): Sanity check that binfos points to main variants.
19402 (get_class_context): Be sure the context's outer_type is main variant.
19403 (contains_type_p): Walk main variant.
19404 (get_polymorphic_call_info_for_decl): Set outer_type to be
19406 (get_polymorphic_call_info): Likewise.
19407 (possible_polymorphic_call_targets): Sanity check that we operate
19410 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19412 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19414 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19416 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19417 accidental change due to wide-int branch merge.
19419 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19421 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19422 compressed debug support.
19423 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19424 * configure: Regenerate.
19425 * config.in: Regenerate.
19426 * common.opt (compressed_debug_sections): New enum.
19427 (gz, gz=): New options.
19428 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19429 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19430 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19431 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19432 LINK_COMPRESS_DEBUG_SPEC.
19433 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19434 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19435 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19436 (Debugging Options): Document -gz[=type].
19438 2014-06-27 Martin Jambor <mjambor@suse.cz>
19441 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19442 args_to_skip, use those from node instead. Copy args_to_skip and
19443 combined_args_to_skip from node to the new thunk.
19444 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19445 (cgraph_create_virtual_clone): Moved computation of
19446 combined_args_to_skip...
19447 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19449 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19451 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19452 redundant diagnostic machinary.
19454 2014-06-27 Richard Biener <rguenther@suse.de>
19456 * tree-ssa-math-opts.c (bswap_replace): Fix
19457 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19459 2014-06-27 Martin Liska <mliska@suse.cz>
19461 * gimple.h (gimple_location_safe): New function introduced.
19462 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19463 of gimple_location_safe replaces gimple_location.
19464 (gimple_fold_call): Likewise.
19465 * ipa-devirt.c (ipa_devirt): Likewise.
19466 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19467 * ipa.c (walk_polymorphic_call_targets): Likewise.
19468 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19470 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19472 PR tree-optimization/57233
19473 PR tree-optimization/61299
19474 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19476 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19477 would be lowered to scalar shifts, check if corresponding
19478 shifts and vector BIT_IOR_EXPR are supported and don't lower
19479 or lower just to narrower vector type in that case.
19480 * expmed.c (expand_shift_1): Fix up handling of vector
19481 shifts and rotates.
19483 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19486 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19488 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19490 * doc/invoke.texi (-fsemantic-interposition): Document.
19491 * common.opt (fsemantic-interposition): New flag.
19492 * varasm.c (decl_replaceable_p): Use it.
19494 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19497 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19498 extraction other than index 3.
19500 2014-06-26 Teresa Johnson <tejohnson@google.com>
19502 * doc/invoke.texi: Fix typo.
19503 * dumpfile.c: Add support for documented -fdump-* options
19504 optimized/missed/note/optall.
19506 2014-06-26 Martin Jambor <mjambor@suse.cz>
19508 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19509 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19510 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19511 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19512 * opts.c (default_options_optimization): Set
19513 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19514 * doc/invoke.texi (allow-load-data-races)
19515 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19516 (allow-store-data-races): Document the new default.
19518 2014-06-26 Martin Jambor <mjambor@suse.cz>
19520 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19521 renamed to ipa_impossible_devirt_target. Fix typo.
19522 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19523 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19524 ipa_impossible_devirt_target.
19526 2014-06-26 Richard Biener <rguenther@suse.de>
19528 PR tree-optimization/61607
19529 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19530 explaining why we restrict copies on loop depth.
19531 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19533 (record_equivalences_from_phis): Instead add it here.
19535 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19537 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19538 (LTO_WRAPPER_OBJS): New variable.
19539 (lto-wrapper$(exeext)): Use it.
19540 * collect2.c: Include "collect-utils.h".
19541 (verbose, debug): Remove variables.
19542 (at_file_supplied): No longer static.
19543 (tool_name): New variable.
19544 (do_wait, fork_execute, maybe_unlink): Don't declare.
19545 (tool_cleanup): No longer static.
19546 (notice): Remove function.
19547 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19548 fork_execute calls.
19549 (collect_wait, do_wait, collect_execute): Remove functions.
19550 (maybe_unlink): No longer static.
19551 * collect2.h (verbose, debug): Don't declare.
19552 (at_file_supplied): Declare.
19553 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19555 (collect_execute): Replace with implementation from collect2, plus a
19556 new arg use_atfile. All callers changed.
19557 (collect_wait): Replace with implementation from collect2.
19558 (maybe_unlink_file): Remove function.
19559 (fork_execute): Replace with implementation from collect2, plus a
19560 new arg use_atfile. All callers changed.
19561 (do_wait): Add call to utils_cleanup to the error path.
19562 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19563 (tool_cleanup): Adjust declarations.
19564 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19565 * tlink.c: Include "collect-utils.h".
19566 (tlink_execute): New arg use_atfile. All callers changed.
19567 (tlink_init, tlink_execute): Remove declarations.
19569 * collect-utils.c (save_temps): New variable.
19570 (do_wait): Use it instead of debug. Use fatal_error.
19571 * collect-utils.h (save_temps): Declare.
19572 * collect2.c (verbose): Rename from vflag. All uses changed.
19573 (tool_cleanup): New function, copied from collect_atexit.
19574 (collect_atexit, handler): Just call it.
19575 * collect2.h (verbose): Declaration renamed from vflag.
19576 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19579 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19580 (lto-wrapper$(exeext)): Link with collect-utils.o.
19581 * collect-utils.c: New file.
19582 * collect-utils.h: New file.
19583 * lto-wrapper.c: Include "collect-utils.h".
19584 (args_name): Delete variable.
19585 (tool_name): New variable.
19586 (tool_cleanup): New function.
19587 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19588 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19589 (fork_execute): Remove functions.
19591 2014-06-26 Nick Clifton <nickc@redhat.com>
19593 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19595 * doc/extend.texi (Function Attributes): Fix typo in description
19596 of RX vector attribute.
19598 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19600 * config.gcc (supported_defaults): Error when passing either
19601 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19603 2014-06-26 Richard Biener <rguenther@suse.de>
19605 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19606 propagating volatile pointers.
19608 2014-06-26 Richard Biener <rguenther@suse.de>
19610 PR tree-optimization/61607
19611 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19612 loop if we redirected its latch edge.
19613 (thread_block_1): Do not cancel loops prematurely.
19615 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19617 * toplev.c (backend_init_target): Move init_emit_regs and
19619 (backend_init) ... here; skip ira_init_once and backend_init_target.
19620 (target_reinit) ... and here; clear
19621 this_target_rtl->lang_dependent_initialized.
19622 (lang_dependent_init_target): Clear
19623 this_target_rtl->lang_dependent_initialized;
19624 break out rtl initialization to ...
19625 (initialize_rtl): ... here; call also backend_init_target
19627 * toplev.h (initialize_rtl): New function.
19628 * function.c: Include toplev.h
19629 (init_function_start): Call initialize_rtl.
19630 * rtl.h (target_rtl): Add target_specific_initialized,
19631 lang_dependent_initialized.
19633 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19634 Jakub Jelinek <jakub@redhat.com>
19636 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19638 2014-06-25 Tom de Vries <tom@codesourcery.com>
19640 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19642 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19644 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19645 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19646 Issue a strict overflow warning if appropriate.
19648 2014-06-25 Martin Liska <mliska@suse.cz>
19650 IPA REF refactoring
19651 * Makefile.in: Removed header file (ipa-ref-inline.h).
19652 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19654 (cgraph_speculative_call_info): Likewise.
19655 (cgraph_for_node_thunks_and_aliases): Likewise.
19656 (cgraph_for_node_and_aliases): Likewise.
19657 (verify_cgraph_node): Likewise.
19658 * cgraph.h: Batch of IPA REF functions become member functions of
19659 symtab_node: add_reference, maybe_add_reference, clone_references,
19660 clone_referring, clone_reference, find_reference,
19661 remove_stmt_references, remove_all_references,
19662 remove_all_referring, dump_references, dump_referring,
19663 has_alias_p, iterate_reference, iterate_referring.
19664 * cgraphbuild.c (record_reference): New IPA REF function used.
19665 (record_type_list): Likewise.
19666 (record_eh_tables): Likewise.
19667 (mark_address): Likewise.
19668 (mark_load): Likewise.
19669 (mark_store): Likewise.
19670 (pass_build_cgraph_edges): Likewise.
19671 (rebuild_cgraph_edge): Likewise.
19672 (cgraph_rebuild_references): Likewise.
19673 (pass_remove_cgraph_callee_edges): Likewise.
19674 * cgraphclones.c (cgraph_clone_node): Likewise.
19675 (cgraph_create_virtual_clone): Likewise.
19676 (cgraph_materialize_clone): Likewise.
19677 (cgraph_materialize_all_clones): Likewise.
19678 * cgraphunit.c (cgraph_reset_node): Likewise.
19679 (cgraph_reset_node): Likewise.
19680 (analyze_function): Likewise.
19681 (assemble_thunks_and_aliases): Likewise.
19682 (expand_function): Likewise.
19683 * ipa-comdats.c (propagate_comdat_group): Likewise.
19684 (enqueue_references): Likewise.
19685 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19686 (create_specialized_node): Likewise.
19687 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19688 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19689 * ipa-inline.c (reset_edge_caches): Likewise.
19690 (update_caller_keys): Likewise.
19691 (execute): Likewise.
19692 * ipa-prop.c (remove_described_reference): Likewise.
19693 (propagate_controlled_uses): Likewise.
19694 (ipa_edge_duplication_hook): Likewise.
19695 (ipa_modify_call_arguments): Likewise.
19696 * ipa-pure-const.c (propagate_pure_const): Likewise.
19697 * ipa-ref-inline.h: Header file removed, functions moved
19698 to symtab_node class.
19699 * ipa-ref.c (remove_reference): New class member function.
19700 (cannot_lead_to_return): New class member function.
19701 (referring_ref_list): Likewise.
19702 (referred_ref_list): Likewise.
19703 Rest of functions moved to symtab_node class.
19704 * ipa-ref.h: New member functions remove_reference,
19705 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19707 ipa_ref_list class has new member functions: first_reference,
19708 first_referring, clear, nreferences.
19709 * ipa-reference.c (analyze_function): New IPA REF function used.
19710 (write_node_summary_p): Likewise.
19711 (ipa_reference_write_optimization_summary): Likewise.
19712 * ipa-split.c (split_function): Likewise.
19713 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19714 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19715 (function_and_variable_visibility): Likewise.
19716 * ipa.c (has_addr_references_p): Likewise.
19717 (process_references): Argument type changed.
19718 (symtab_remove_unreachable_nodes): New IPA REF function used.
19719 (process_references): Likewise.
19720 (set_writeonly_bit): Likewise.
19721 * lto-cgraph.c: Implementation of new symtab_node member functions
19722 that uses new IPA REF functions.
19723 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19725 * lto-streamer-out.c (output_symbol_p): Likewise.
19726 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19728 * symtab.c: Implementation of new IPA REF API.
19729 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19730 (ipa_tm_create_version): Likewise.
19731 (ipa_tm_execute): Likewise.
19732 * tree-emutls.c (gen_emutls_addr): Likewise.
19733 * tree-inline.c (copy_bb): Likewise.
19734 (delete_unreachable_blocks_update_callgraph): Likewise.
19735 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19736 (varpool_for_node_and_aliases): Likewise.
19738 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19740 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19742 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19745 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19746 tree_node * instead of tree_node *.
19748 (print_fold_checksum): Likewise.
19749 (fold_check_failed): Likewise.
19750 (debug_fold_checksum): Likewise.
19751 (fold_build1_stat_loc): Likewise.
19752 (fold_build2_stat_loc): Likewise.
19753 (fold_build3_stat_loc): Likewise.
19754 (fold_build_call_array_loc): Likewise.
19756 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19758 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19759 implementation with call to...
19760 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19762 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19765 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19767 PR tree-optimization/57742
19768 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19769 after replacing the statement.
19771 2014-06-25 Nick Clifton <nickc@redhat.com>
19773 * config/v850/v850.c (GHS_default_section_names): Change to const
19775 (GHS_current_section_names): Likewise.
19776 (v850_insert_attributes): Do not build strings, just assign the
19777 names directly. Change the type of 'chosen_section' to const
19779 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19780 directly to the array entry.
19781 * config/v850/v850.h (GHS_default_section_names): Change to const
19783 (GHS_current_section_names): Likewise.
19785 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19787 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19788 (LANG_HOOKS_DECLS): Add it.
19789 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19791 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19792 * langhooks.h (struct lang_hooks_for_decls): Add
19793 omp_clause_linear_ctor hook.
19794 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19795 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19796 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19797 combined simd loop use omp_clause_linear_ctor hook.
19799 2014-06-24 Cong Hou <congh@google.com>
19801 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19802 pattern recognition.
19803 (type_conversion_p): PROMOTION is true if it's a type promotion
19804 conversion, and false otherwise. Return true if the given expression
19805 is a type conversion one.
19806 * tree-vectorizer.h: Adjust the number of patterns.
19807 * tree.def: Add SAD_EXPR.
19808 * optabs.def: Add sad_optab.
19809 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19810 * expr.c (expand_expr_real_2): Likewise.
19811 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19812 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19813 * optabs.c (optab_for_tree_code): Likewise.
19814 * tree-cfg.c (estimate_operator_cost): Likewise.
19815 * tree-ssa-operands.c (get_expr_operands): Likewise.
19816 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19817 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19818 * doc/generic.texi: Add document for SAD_EXPR.
19819 * doc/md.texi: Add document for ssad and usad.
19821 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19823 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19824 qualification in cast.
19826 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19828 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19829 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19830 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19831 (tree_function_decl): ... here.
19832 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19833 streaming of vindex to ...
19834 (write_ts_function_decl_tree_pointers): ... here.
19835 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19836 Do not stream DECL_VINDEX.
19837 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19839 2014-06-24 Catherine Moore <clm@codesourcery.com>
19840 Sandra Loosemore <sandra@codesourcery.com>
19842 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19843 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19844 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19846 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19848 * doc/invoke.texi (Warning Options): Remove duplicated
19849 -Wmaybe-uninitialized.
19851 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19853 PR tree-optimization/57742
19854 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19855 (handle_builtin_malloc, handle_builtin_memset): New functions.
19856 (strlen_optimize_stmt): Call them.
19857 * passes.def: Move strlen after loop+dom but before vrp.
19859 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19862 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19863 model family 6 CPU with has_longmode never use a CPU without
19866 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19869 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19872 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19874 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19875 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19877 * hash-map.h: New file.
19878 * ipa-comdats.c: Use hash_map instead of pointer_map.
19880 * lto-section-out.c: Adjust.
19881 * lto-streamer.h: Replace pointer_map with hash_map.
19882 * symtab.c (verify_symtab): Likewise.
19883 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19884 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19885 * tree-streamer.h: Likewise.
19886 * tree-streamer.c: Adjust.
19887 * pointer-set.h: Remove pointer_map.
19889 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19891 * hash-table.h: Add a template arg to choose between storing values
19892 and storing pointers to values, and then provide partial
19893 specializations for both.
19894 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19895 should store, not the type values should point to.
19896 * tree-into-ssa.c (var_info_hasher): Likewise.
19897 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19898 * tree-complex.c: Adjust.
19899 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19900 table instead of int_tree_map *.
19901 * tree-parloops.c: Adjust.
19902 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19903 type is being stored.
19904 * tree-vectorizer.c: Adjust.
19906 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19908 * hash-table.h: Remove a layer of indirection from hash_table so that
19909 it contains the hash table's data instead of a pointer to the data.
19910 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19911 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19912 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19913 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19914 fold-const.c, gcse.c, ggc-common.c,
19915 gimple-ssa-strength-reduction.c, gimplify.c,
19916 graphite-clast-to-gimple.c, graphite-dependences.c,
19917 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19918 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19919 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19920 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19921 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19922 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19923 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19924 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19925 tree-ssa-live.c, tree-ssa-loop-im.c,
19926 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19927 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19928 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19929 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19930 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19931 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19932 vtable-verify.c, vtable-verify.h: Adjust.
19934 2014-06-24 Richard Biener <rguenther@suse.de>
19936 PR tree-optimization/61572
19937 * tree-ssa-sink.c (statement_sink_location): Do not sink
19938 loads from hard registers.
19940 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19942 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19943 not mentioned in clauses use private clause if the iterator is
19944 declared in #pragma omp for simd, and when adding lastprivate
19945 instead, add it to the outer #pragma omp for too. Diagnose
19946 if the variable is private in outer context. For simd collapse > 1
19947 loops, replace all iterators with temporaries.
19948 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19949 same even in collapse > 1 loops.
19951 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19952 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19954 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19955 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19957 (gimplify_adjust_omp_clauses): Likewise.
19958 * omp-low.c (lower_rec_simd_input_clauses,
19959 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19960 safelen the same as safelen(1).
19961 * tree-nested.c (convert_nonlocal_omp_clauses,
19962 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19963 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19964 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19965 Fixup handling of GIMPLE_OMP_TARGET.
19966 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19969 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19971 PR tree-optimization/61554
19972 * tree-ssa-propagate.c: Include "bitmap.h".
19973 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19974 properly update constructor/destructor.
19975 (substitute_and_fold_dom_walker::before_dom_children):
19976 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19977 need_eh_cleaup instead.
19978 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19981 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19983 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19984 * tree-pass.h (make_pass_ipa_single_use): New pass.
19985 * cgraph.h (used_by_single_function): New flag.
19986 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19988 * passes.def (pass_ipa_single_use): Scedule.
19989 * ipa.c (BOTTOM): New macro.
19990 (meet): New function
19991 (propagate_single_user): New function.
19992 (ipa_single_use): New function.
19993 (pass_data_ipa_single_use): New pass.
19994 (pass_ipa_single_use): New pass.
19995 (pass_ipa_single_use::gate): New gate.
19996 (make_pass_ipa_single_use): New function.
19998 2014-06-23 Kai Tietz <ktietz@redhat.com>
20001 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20002 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20004 2014-06-23 Richard Biener <rguenther@suse.de>
20006 * tree-ssa-loop.c (gate_loop): New function.
20007 (pass_tree_loop::gate): Call it.
20008 (pass_data_tree_no_loop, pass_tree_no_loop,
20009 make_pass_tree_no_loop): New.
20010 * tree-vectorizer.c: Include tree-scalar-evolution.c
20011 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20013 (pass_slp_vectorize::clone): New method.
20014 * timevar.def (TV_TREE_NOLOOP): New.
20015 * tree-pass.h (make_pass_tree_no_loop): Declare.
20016 * passes.def (pass_tree_no_loop): New pass group with
20019 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20022 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20023 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20025 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20027 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20028 "yes" where needed.
20030 2014-06-23 Alan Modra <amodra@gmail.com>
20033 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20034 to zero on debug statements.
20036 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20039 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20040 Ignore third operand if present by marking qualifier_internal.
20042 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20044 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20046 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20047 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20048 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20049 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20050 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20051 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20052 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20053 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20054 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20055 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20056 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20057 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20058 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20059 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20060 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20061 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20062 logic in GCC vector extensions
20064 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20065 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20066 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20067 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20068 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20069 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20070 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20071 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20072 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20073 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20075 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20077 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20080 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20081 (vget_low_s64): Use __GET_LOW macro.
20082 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20083 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20084 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20085 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20086 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20088 (vcombine_s64): Use GCC vector extensions; remove cast.
20089 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20090 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20091 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20092 Fix type signature; remove cast.
20094 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20097 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20099 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20101 (BUILTIN_VD1): New.
20102 (BUILTIN_VD_RE): Remove.
20103 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20104 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20105 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20106 variant but not df.
20107 (vreinterpretv1df*, vreinterpret*v1df): New.
20108 (vreinterpretdf*, vreinterpret*df): Remove.
20109 * config/aarch64/aarch64-simd.md (aarch64_create,
20110 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20111 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20113 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20114 (vcreate_f64): Remove cast, use v1df builtin.
20115 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20116 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20117 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20118 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20119 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20120 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20121 add range check using __builtin_aarch64_im_lane_boundsi.
20122 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20123 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20124 type signature, use gcc vector extensions.
20125 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20126 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20127 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20128 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20129 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20130 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20131 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20132 vreinterpret_u64_f64): Use v1df builtin not df.
20134 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20136 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20139 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20141 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20144 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20146 * loop-invariant.c (pre_check_invariant_p): New function.
20147 (find_invariant_insn): Call pre_check_invariant_p.
20149 2014-06-22 Richard Henderson <rth@redhat.com>
20152 * compare-elim.c (struct comparison): Add eh_note.
20153 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20154 a redundant comparison in a different EH region. Purge EH edges if
20157 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20159 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20160 (var_shift): Use it.
20161 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20162 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20163 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20164 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20165 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20166 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20167 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20168 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20169 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20170 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20171 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20172 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20173 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20174 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20175 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20176 *rotldi3_internal15be): Use the new attribute. Merge register and
20177 integer alternatives.
20179 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20181 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20182 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20183 split, *ashrdi3_internal3 and split): Delete, merge into...
20184 (ashr<mode>3): New expander.
20185 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20186 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20188 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20190 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20191 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20192 *rotldi3_internal3 and split): Delete, merge into...
20193 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20194 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20195 Use "rotlw" extended mnemonic.
20197 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20199 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20200 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20201 and split, *ashldi3_internal3 and split): Delete, merge into...
20202 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20203 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20205 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20207 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20208 (lshrsi3, two anonymous define_insns and define_splits,
20209 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20210 *lshrdi3_internal3 and split): Delete, merge into...
20211 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20212 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20214 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20216 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20217 Remove "O" alternative.
20219 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20221 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20222 (mips_move_from_gpr_cost): Likewise.
20223 (mips_register_move_cost): Update accordingly.
20224 (mips_secondary_reload_class): Remove name of in_p.
20226 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20229 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20230 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20232 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20234 * config/nios2/nios2.c: Include "builtins.h".
20236 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20238 * cgraph.h (tls_model_names): New variable.
20239 * print-tree.c (print_node): Simplify.
20240 * varpool.c (tls_model_names): New variable.
20241 (dump_varpool_node): Output tls model.
20243 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20245 * ipa-visibility.c (function_and_variable_visibility): Disable
20246 temporarily local aliases for some targets.
20248 2014-06-20 Marek Polacek <polacek@redhat.com>
20250 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20251 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20252 into SANITIZE_UNDEFINED.
20253 * doc/invoke.texi: Describe -fsanitize=bounds.
20254 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20255 functions created in the FEs.
20256 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20257 (expand_UBSAN_BOUNDS): New function.
20258 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20259 * internal-fn.h: Don't define internal functions here.
20260 * opts.c (common_handle_option): Add -fsanitize=bounds.
20261 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20262 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20263 * tree-core.h: Define internal functions here.
20264 (struct tree_base): Add ifn field.
20265 * tree-pretty-print.c: Include "internal-fn.h".
20266 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20267 * tree.c (get_callee_fndecl): Likewise.
20268 (build_call_expr_internal_loc): New function.
20269 * tree.def (CALL_EXPR): Update description.
20270 * tree.h (CALL_EXPR_IFN): Define.
20271 (build_call_expr_internal_loc): Declare.
20272 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20274 (ubsan_type_descriptor): Change bool parameter to enum
20275 ubsan_print_style. Adjust the code. Add handling of
20277 (ubsan_expand_bounds_ifn): New function.
20278 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20279 (ubsan_build_overflow_builtin): Likewise.
20280 (instrument_bool_enum_load): Likewise.
20281 (ubsan_instrument_float_cast): Likewise.
20282 * ubsan.h (enum ubsan_print_style): New enum.
20283 (ubsan_expand_bounds_ifn): Declare.
20284 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20286 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20288 * config/rs6000/rs6000.md: Append `DONE' to preparation
20289 statements of `bswap' pattern splitters.
20291 2014-06-20 Tom de Vries <tom@codesourcery.com>
20293 * target.def (call_fusage_contains_non_callee_clobbers): Update
20295 * doc/tm.texi: Regenerate.
20297 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20298 Max Ostapenko <m.ostapenko@partner.samsung.com>
20301 * asan.c (instrument_strlen_call): Fixed instrumentation of
20304 2014-06-20 Martin Jambor <mjambor@suse.cz>
20307 * ipa-prop.c (impossible_devirt_target): New function.
20308 (try_make_edge_direct_virtual_call): Use it, also instead of
20311 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20312 Max Ostapenko <m.ostapenko@partner.samsung.com>
20315 * asan.c (build_check_stmt): Add condition.
20317 2014-06-20 Martin Jambor <mjambor@suse.cz>
20320 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20323 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20325 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20327 (VCONQ): Make comment more helpful.
20329 * config/aarch64/aarch64-simd.md
20330 (aarch64_sqdmulh_lane<mode>):
20331 Use VCOND for operands 2. Update lane checking and flipping logic.
20332 (aarch64_sqrdmulh_lane<mode>): Likewise.
20333 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20334 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20335 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20336 attribute of operand 3 to VCOND.
20337 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20338 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20339 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20340 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20341 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20342 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20344 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20345 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20346 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20347 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20348 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20349 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20350 operand to VCOND. Update lane flipping and bounds checking logic.
20351 (aarch64_sqdmlal2_lane<mode>): Likewise.
20352 (aarch64_sqdmlsl_lane<mode>): Likewise.
20353 (aarch64_sqdmull_lane<mode>): Likewise.
20354 (aarch64_sqdmull2_lane<mode>): Likewise.
20355 (aarch64_sqdmlal_laneq<mode>):
20356 Replace VCON usage with VCONQ.
20357 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20358 (aarch64_sqdmlal2_laneq<mode>): Emit
20359 aarch64_sqdmlal2_laneq<mode>_internal insn.
20360 Replace VCON with VCONQ.
20361 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20362 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20363 (aarch64_sqdmull_laneq<mode>): Emit
20364 aarch64_sqdmull_laneq<mode>_internal insn.
20365 Replace VCON with VCONQ.
20366 (aarch64_sqdmull2_laneq<mode>): Emit
20367 aarch64_sqdmull2_laneq<mode>_internal insn.
20368 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20369 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20370 of 3rd argument to int16x4_t.
20371 (vqdmlalh_lane_s16): Likewise.
20372 (vqdmlslh_lane_s16): Likewise.
20373 (vqdmull_high_lane_s16): Likewise.
20374 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20375 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20376 (vqdmlsl_lane_s16): Likewise.
20377 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20378 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20379 (vqdmlals_lane_s32): Likewise.
20380 (vqdmlsls_lane_s32): Likewise.
20381 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20382 (vqdmulls_lane_s32): Likewise.
20383 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20384 (vqdmlsl_lane_s32): Likewise.
20385 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20386 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20387 (vqrdmulhh_lane_s16): Likewise.
20388 (vqdmlsl_high_lane_s16): Likewise.
20389 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20390 (vqdmlsl_high_lane_s32): Likewise.
20391 (vqrdmulhs_lane_s32): Likewise.
20393 2014-06-20 Tom de Vries <tom@codesourcery.com>
20395 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20396 get_call_reg_set_usage.
20398 2014-06-20 Tom de Vries <tom@codesourcery.com>
20400 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20401 it contains all call_used_regs.
20403 2014-06-20 Tom de Vries <tom@codesourcery.com>
20405 * final.c (collect_fn_hard_reg_usage): Add and use variable
20406 function_used_regs.
20408 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20410 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20411 (set_init_priority, get_init_priority, set_fini_priority,
20412 get_fini_priority): New methods.
20413 * tree.c (init_priority_for_decl): Remove.
20414 (init_ttree): Do not initialize init priority.
20415 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20416 (decl_priority_info): Remove.
20417 (decl_init_priority_insert): Rewrite.
20418 (decl_fini_priority_insert): Rewrite.
20419 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20420 tree_priority_map_marked_p): Remove.
20421 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20422 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20423 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20424 not output priorities.
20425 (pack_ts_function_decl_value_fields): Likewise.
20426 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20427 not input priorities.
20428 (unpack_ts_function_decl_value_fields): Likewise.
20429 * symtab.c (symbol_priority_map): Declare.
20430 (init_priority_hash): Declare.
20431 (symtab_unregister_node): Unregister from priority hash, too.
20432 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20434 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20435 (symbol_priority_info): New function.
20436 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20438 * tree-core.h (tree_priority_map): Remove.
20440 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20442 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20443 0xff to uint64_t before shifting it up.
20445 2014-06-20 Julian Brown <julian@codesourcery.com>
20446 Chung-Lin Tang <cltang@codesourcery.com>
20448 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20449 TARGET_THUMB1_ONLY. Add comments.
20451 2014-06-19 Tom de Vries <tom@codesourcery.com>
20453 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20454 return type to void.
20455 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20457 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20459 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20460 as "move", from depends_on.
20462 2014-06-19 Terry Guo <terry.guo@arm.com>
20464 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20467 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20469 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20471 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20473 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20476 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20477 addresses here if reload in progress or completed.
20479 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20481 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20482 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20483 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20484 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20485 (mips_register_priority): New function that implements the target
20486 hook TARGET_REGISTER_PRIORITY.
20487 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20488 (mips_lra_p): Likewise for TARGET_LRA_P.
20489 (TARGET_REGISTER_PRIORITY): Define macro.
20490 (TARGET_SPILL_CLASS): Likewise.
20491 (TARGET_LRA_P): Likewise.
20492 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20494 (REG_CLASS_NAMES): Likewise.
20495 (REG_CLASS_CONTENTS): Likewise.
20496 (BASE_REG_CLASS): Use M16_SP_REGS.
20497 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20498 New set attribute to enable alternatives depending on the register
20500 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20501 (*lea64): Disable pattern for MIPS16.
20502 * config/mips/mips.opt (mlra): New option.
20504 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20506 * lra-constraints.c (base_to_reg): New function.
20507 (process_address): Use new function.
20509 2014-06-18 Tom de Vries <tom@codesourcery.com>
20511 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20512 * config/aarch64/aarch64.c
20513 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20514 (aarch64_emit_call_insn): New function.
20515 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20517 * config/aarch64/aarch64.md (define_expand "call_internal")
20518 (define_expand "call_value_internal", define_expand "sibcall_internal")
20519 (define_expand "sibcall_value_internal"): New.
20520 (define_expand "call", define_expand "call_value")
20521 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20522 expand variant and aarch64_emit_call_insn.
20524 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20525 Tom de Vries <tom@codesourcery.com>
20527 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20528 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20530 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20531 clobbers to CALL_INSN_FUNCTION_USAGE.
20532 (define_expand "sibcall_internal")
20533 (define_expand "sibcall_value_internal"): New.
20534 (define_expand "call", define_expand "call_value"): Add argument to
20535 arm_emit_call_insn.
20536 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20537 (define_expand "sibcall_value"): Use sibcall_value_internal and
20538 arm_emit_call_insn.
20540 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20542 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20544 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20546 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20549 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20551 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20552 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20553 annotations. Fix DWARF information.
20555 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20557 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20558 __udivmoddi4, and fixups for negative operands.
20560 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20562 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20564 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20566 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20569 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20571 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20574 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20576 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20577 describing register usage on function entry and exit.
20579 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20581 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20582 (__aeabi_ldivmod): Fix whitespace.
20584 2014-06-18 Andreas Schwab <schwab@suse.de>
20586 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20587 Remove blank line after @item.
20589 2014-06-18 Richard Henderson <rth@redhat.com>
20592 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20594 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20596 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20597 POST_MODIFY for neon loads and stores.
20598 (arm_print_operand): Output post-index register for neon loads and
20601 2014-06-18 Richard Biener <rguenther@suse.de>
20603 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20605 2014-06-18 Richard Biener <rguenther@suse.de>
20607 * tree-pass.h (make_pass_dce_loop): Remove.
20608 * passes.def: Replace pass_dce_loop with pass_dce.
20609 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20610 changed free niter estimates and reset the scev cache.
20611 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20612 make_pass_dce_loop): Remove.
20613 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20614 (fini_copy_prop): Return whether something changed. Always
20615 let substitute_and_fold perform DCE and free niter estimates
20616 and reset the scev cache if so.
20617 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20618 (pass_data_copy_prop): Do not unconditionally schedule
20619 cleanup-cfg or update-ssa.
20621 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20623 PR tree-optimization/61518
20624 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20625 reduction var is used in reduction stmt or phi-function only.
20627 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20629 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20631 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20633 PR tree-optimization/61517
20634 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20635 whose rhs's first tree is the source expression instead of the
20637 (find_bswap_or_nop): Likewise.
20638 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20639 gimple stmt whose rhs's first tree is the source. In the memory source
20640 case, move the stmt to be replaced close to one of the original load to
20641 avoid the problem of a store between the load and the stmt's original
20643 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20646 2014-06-18 Andreas Schwab <schwab@suse.de>
20648 PR rtl-optimization/54555
20649 * postreload.c (move2add_use_add2_insn): Substitute
20650 STRICT_LOW_PART only if it is cheaper.
20652 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20654 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20655 Do not use unspec as call operand. Use memory_operand instead of
20656 memory_nox32_operand and add "m" operand constraint. Disable
20657 pattern for TARGET_X32.
20658 (*sibcall_pop_memory): Ditto.
20659 (*sibcall_value_memory): Ditto.
20660 (*sibcall_value_pop_memory): Ditto.
20661 (sibcall peepholes): Merge SImode and DImode patterns using
20662 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20663 Disable pattern for TARGET_X32. Check if eliminated register is
20664 really dead after call insn. Generate call RTX without unspec operand.
20665 (sibcall_value peepholes): Ditto.
20666 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20667 instead of memory_nox32_operand. Check if eliminated register is
20668 really dead after call insn. Generate call RTX without unspec operand.
20669 (sibcall_value_pop peepholes): Ditto.
20670 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20672 2014-06-18 Terry Guo <terry.guo@arm.com>
20675 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20678 2014-06-18 Olivier Hainque <hainque@adacore.com>
20680 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20681 memorization of the end of block source location.
20682 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20683 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20684 end source location info we have on the block entry/exit code we
20687 2014-06-18 Richard Biener <rguenther@suse.de>
20689 * common.opt (fssa-phiopt): New option.
20690 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20692 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20693 * doc/invoke.texi (-fssa-phiopt): Document.
20695 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20697 * genattrtab.c (n_bypassed): New variable.
20698 (process_bypasses): Initialise n_bypassed.
20699 Count number of bypassed reservations.
20700 (make_automaton_attrs): Allocate space for bypassed reservations
20701 rather than number of bypasses.
20703 2014-06-18 Richard Biener <rguenther@suse.de>
20705 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20706 we propagated anything.
20707 (substitute_and_fold_dom_walker::before_dom_children): Something
20708 changed if we propagated into PHI arguments.
20709 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20712 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20714 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20716 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20717 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20718 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20719 Introduces alternative way of loads group permutaions.
20720 (vect_transform_grouped_load): Try alternative way of permutations.
20722 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20724 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20725 changed in ORT_TARGET region, don't jump to do_outer.
20726 (struct gimplify_adjust_omp_clauses_data): New type.
20727 (gimplify_adjust_omp_clauses_1): Adjust for data being
20728 a struct gimplify_adjust_omp_clauses_data pointer instead
20729 of tree *. Pass pre_p as a new argument to
20730 lang_hooks.decls.omp_finish_clause hook.
20731 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20732 splay_tree_foreach to pass both list_p and pre_p.
20733 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20734 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20735 gimplify_adjust_omp_clauses callers.
20736 * langhooks.c (lhd_omp_finish_clause): New function.
20737 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20738 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20739 * langhooks.h (struct lang_hooks_for_decls): Add a new
20740 gimple_seq * argument to omp_finish_clause hook.
20741 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20742 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20743 (scan_omp_parallel, lower_omp_for): When adding
20744 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20745 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20746 * tree-nested.c (convert_nonlocal_omp_clauses,
20747 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20748 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20750 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20752 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20753 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20755 2014-06-17 Xinliang David Li <davidxl@google.com>
20757 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20758 * passes.c (pass_init_dump_file): Do not set initialize
20759 flag to false unconditionally.
20761 2014-06-17 Richard Biener <rguenther@suse.de>
20763 * genopinit.c (main): Use vec<>::qsort method.
20764 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20766 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20768 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20770 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20771 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20772 (mips_move_to_gpr_cost): Remove ST_REGS case.
20773 (mips_move_from_gpr_cost): Likewise.
20774 (mips_register_move_cost): Likewise.
20775 (mips_secondary_reload_class): Likewise.
20777 2014-06-17 Richard Biener <rguenther@suse.de>
20779 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20780 (pass_all_optimizations): Move 3rd copy-prop pass from after
20781 fre to before ifcombine/phiopt.
20783 2014-06-17 Richard Biener <rguenther@suse.de>
20785 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20786 and allow all blocks to be forwarders.
20788 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20791 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20792 variable 'size'; calculate 'size' right in the front; use
20793 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20794 pcum->aapcs_stack_words.
20796 2014-06-17 Nick Clifton <nickc@redhat.com>
20798 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20799 (umulhi3, mulsidi3, umulsidi3): Likewise.
20801 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20803 PR middle-end/61508
20804 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20805 check for section name.
20807 2014-06-17 Richard Biener <rguenther@suse.de>
20809 * tree-ssa-propagate.c: Include domwalk.h.
20810 (substitute_and_fold): Outline main worker into a domwalker ...
20811 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20812 Schedule stmts we can fully propagate for removal. Remove
20814 (substitute_and_fold): Apply a dominator walk to perform
20815 substitution. Process stmts scheduled for removal here.
20817 2014-06-17 Richard Biener <rguenther@suse.de>
20819 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20820 of PHI node moving.
20822 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20824 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20825 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20826 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20827 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20828 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20830 (get_fpscr) : Likewise.
20832 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20834 PR rtl-optimization/61325
20835 * lra-constraints.c (valid_address_p): Add forward declaration.
20836 (simplify_operand_subreg): Check address validity before and after
20837 alter_reg of memory subreg.
20839 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20841 * config/i386/i386.c (decide_alg): Correctly handle
20842 maximum size of stringop algorithm.
20844 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20846 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20848 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20850 PR rtl-optimization/61522
20851 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20853 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20856 * symtab.c (symtab_node::reset_section): New method.
20857 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20859 * cgraph.h (reset_section): Declare.
20860 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20861 do not consider comdat locals.
20862 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20864 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20865 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20866 reset sections of symbols dragged out of the comdats.
20867 (function_and_variable_visibility): Reset sections of
20870 2014-06-16 Richard Biener <rguenther@suse.de>
20872 PR tree-optimization/61482
20873 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20874 [-INF(OVF), +INF(OVF)] range.
20876 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20878 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20879 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20880 handling 32-bit multiplication.
20882 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20884 PR middle-end/61430
20885 * lra-lives.c (process_bb_lives): Skip creating copy during
20886 insn scan when src/dest has constrained to same regno.
20888 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20890 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20891 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20893 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20895 * asan.c (check_func): New function.
20896 (maybe_create_ssa_name): Likewise.
20897 (build_check_stmt_with_calls): Likewise.
20898 (use_calls_p): Likewise.
20899 (report_error_func): Change interface.
20900 (build_check_stmt): Allow non-integer lengths; add support
20902 (asan_instrument): Likewise.
20903 (instrument_mem_region_access): Moved code to build_check_stmt.
20904 (instrument_derefs): Likewise.
20905 (instrument_strlen_call): Likewise.
20906 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20907 * doc/invoke.texi: Describe new parameter.
20908 * params.def: Define new parameter.
20909 * params.h: Likewise.
20910 * sanitizer.def: Describe new builtins.
20912 2014-06-16 Richard Biener <rguenther@suse.de>
20914 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20915 Make all defs available at the end.
20916 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20918 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20921 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20923 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20926 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20927 initialization. Replace remaining use of uid.
20929 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20931 * c-family/c-common.c (handle_tls_model_attribute): Use
20932 set_decl_tls_model.
20933 * c-family/c-common.c (handle_tls_model_attribute): Use
20934 set_decl_tls_model.
20935 * cgraph.h (struct varpool_node): Add tls_model.
20936 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20937 * tree.h (DECL_TLS_MODEL): Update.
20938 (DECL_THREAD_LOCAL_P): Check that variable is static.
20939 (decl_tls_model): Declare.
20940 (set_decl_tls_model): Declare.
20941 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20942 set symbol prorperties.
20943 (get_emutls_init_templ_addr): Cleanup.
20944 (new_emutls_decl): Update.
20945 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20946 (lto_input_varpool_node): Likewise.
20947 * lto-streamer-out.c (hash_tree): Likewise.
20948 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20949 not stream DECL_TLS_MODEL.
20950 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20951 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20953 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20955 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20957 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20959 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20960 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20962 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20963 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20964 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20965 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20966 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20967 (df_get_artificial_defs, df_get_artificial_uses)
20968 (df_single_def, df_single_use): Update accordingly.
20969 (df_refs_chain_dump): Take the first element in a linked list as
20970 parameter, rather than a pointer to an array of pointers.
20971 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20972 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20973 (df_chain_create_bb_process_use): Likewise.
20974 (df_md_bb_local_compute_process_def): Likewise.
20975 * fwprop.c (process_defs, process_uses): Likewise.
20976 (register_active_defs, update_uses): Likewise.
20977 (forward_propagate_asm): Update for new df_ref linking.
20978 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20979 (df_null_ref_rec, df_null_mw_rec): Likewise.
20980 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20982 (df_scan_free_bb_info): Remove check for null artificial_defs.
20983 (df_install_ref_incremental): Adjust for new df_ref linking.
20984 Use a single-element insertion rather than a full sort.
20985 (df_ref_chain_delete_du_chain): Take the first element
20986 in a linked list as parameter, rather than a pointer to an array of
20988 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20989 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20990 (df_insn_info_delete): Remove check for null defs and call to
20991 df_scan_free_mws_vec.
20992 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20993 null rather than df_null_*_rec.
20994 (df_insn_rescan_debug_internal): Likewise, and update null
20995 checks in the same way. Remove check for null defs.
20996 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20997 Move a single element rather doing a full sort.
20998 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21000 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21001 Initialize df_ref and df_mw_hardreg lists to null rather than
21003 (df_ref_compare): Take df_refs as parameter, transferring the
21004 old interface to...
21005 (df_ref_ptr_compare): ...this new function.
21006 (df_sort_and_compress_refs): Update accordingly.
21007 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21008 old interface to...
21009 (df_mw_ptr_compare): ...this new function.
21010 (df_sort_and_compress_mws): Update accordingly.
21011 (df_install_refs, df_install_mws): Return a linked list rather than
21012 an array of pointers.
21013 (df_refs_add_to_chains): Assert that old lists are empty rather
21015 (df_insn_refs_verify): Don't handle null defs speciailly.
21016 * web.c (union_match_dups): Update for new df_ref linking.
21018 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21020 * df.h (df_ref_create, df_ref_remove): Delete.
21021 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21022 (df_ref_remove): Likewise.
21024 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21026 * df.h (df_single_def, df_single_use): New functions.
21027 * ira.c (find_moveable_pseudos): Use them.
21029 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21031 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21032 * df-problems.c (df_note_bb_compute): Use it.
21033 * regstat.c (regstat_bb_compute_ri): Likewise.
21035 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21037 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21038 * cse.c (cse_extended_basic_block): Use them.
21039 * dce.c (mark_artificial_use): Likewise.
21040 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21041 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21042 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21043 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21044 (df_simulate_initialize_backwards): Likewise.
21045 (df_simulate_finalize_backwards): Likewise.
21046 (df_simulate_initialize_forwards): Likewise.
21047 (df_md_simulate_artificial_defs_at_top): Likewise.
21048 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21049 * regrename.c (init_rename_info): Likewise.
21050 * regstat.c (regstat_bb_compute_ri): Likewise.
21051 (regstat_bb_compute_calls_crossed): Likewise.
21053 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21055 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21056 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21057 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21058 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21059 * combine.c (create_log_links): Likewise.
21060 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21061 (try_eliminate_compare): Likewise.
21062 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21063 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21064 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21065 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21066 (word_dce_process_block, dce_process_block): Likewise.
21067 * ddg.c (def_has_ccmode_p): Likewise.
21068 * df-core.c (df_bb_regno_first_def_find): Likewise.
21069 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21070 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21071 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21072 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21073 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21074 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21075 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21076 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21077 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21078 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21079 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21080 * fwprop.c (local_ref_killed_between_p): Likewise.
21081 (all_uses_available_at, free_load_extend): Likewise.
21082 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21083 * hw-doloop.c (scan_loop): Likewise.
21084 * ifcvt.c (dead_or_predicable): Likewise.
21085 * init-regs.c (initialize_uninitialized_regs): Likewise.
21086 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21087 (process_bb_node_lives): Likewise.
21088 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21089 (find_moveable_pseudos): Likewise.
21090 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21091 * recog.c (peep2_find_free_register): Likewise.
21092 * ree.c (get_defs): Likewise.
21093 * regstat.c (regstat_bb_compute_ri): Likewise.
21094 (regstat_bb_compute_calls_crossed): Likewise.
21095 * sched-deps.c (find_inc, find_mem): Likewise.
21096 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21097 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21098 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21099 (prepare_shrink_wrap): Likewise.
21100 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21101 * web.c (union_defs, pass_web::execute): Likewise.
21102 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21103 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21105 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21107 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21108 to inheritance pseudos.
21109 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21111 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21114 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21115 (BU_MISC_2): Rename to ...
21116 (BU_LDBL128_2): ... this.
21117 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21118 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21119 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21120 RS6000_BTM_LDBL128.
21121 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21122 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21123 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21124 (unpacktf_1): Likewise.
21125 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21126 (__builtin_longdouble_dw1): Likewise.
21127 * doc/sourcebuild.texi (longdouble128): Document.
21129 2014-06-13 Jeff Law <law@redhat.com>
21131 PR rtl-optimization/61094
21132 PR rtl-optimization/61446
21133 * ree.c (combine_reaching_defs): Get the mode for the copy from
21134 the extension insn rather than the defining insn.
21136 2014-06-13 Dehao Chen <dehao@google.com>
21138 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21140 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21142 * doc/install.texi (--enable-linker-plugin-configure-flags)
21143 (--enable-linker-plugin-flags): Document new flags.
21145 2014-06-13 Martin Jambor <mjambor@suse.cz>
21148 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21149 cache_token if returning early.
21151 2014-06-13 Nick Clifton <nickc@redhat.com>
21153 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21154 requested alignment is active.
21155 (LABEL_ALIGN): Likewise.
21156 (LOOP_ALIGN): Likewise.
21158 2014-06-13 Richard Biener <rguenther@suse.de>
21160 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21161 Rewrite to propagate the VN result into all uses where
21162 possible and to remove stmts becoming dead because of that.
21163 (eliminate): Generalize stmt removal handling, remove in
21164 reverse dominator order to support proper debug stmt
21165 generation. Update stmts before removing stmts.
21166 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21168 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21170 PR tree-optimization/61375
21171 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21172 symbolic number cannot be represented in an uint64_t.
21173 (find_bswap_or_nop_1): Likewise.
21175 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21177 * symtab.c (symtab_node::reset_section): New method.
21178 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21180 * cgraph.h (reset_section): Declare.
21181 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21182 do not consider comdat locals.
21183 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21185 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21186 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21187 reset sections of symbols dragged out of the comdats.
21188 (function_and_variable_visibility): Reset sections of
21191 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21193 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21194 to use symtab and decl_binds_to_current_def_p
21195 * tree-vectorizer.c (increase_alignment): Increase alignment
21196 of alias target, too.
21198 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21200 PR middle-end/61486
21201 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21202 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21203 if outer combined construct is distribute.
21204 (gimplify_omp_for): For OMP_DISTRIBUTE set
21205 gimplify_omp_ctxp->distribute.
21206 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21207 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21208 mapping into decl map.
21210 2014-06-12 Jason Merrill <jason@redhat.com>
21212 * common.opt (fabi-version): Change default to 0.
21214 2014-06-12 Jason Merrill <jason@redhat.com>
21216 * toplev.c (process_options): Reject -fabi-version=1.
21218 2014-06-12 Jeff Law <law@redhat.com>
21220 PR tree-optimization/61009
21221 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21222 value when we stop processing a block due to problematic PHIs.
21224 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21226 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21227 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21228 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21229 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21230 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21231 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21232 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21233 are not in the spec.
21235 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21238 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21239 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21242 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21244 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21246 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21249 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21250 loading from address spaces.
21252 2014-06-12 Martin Liska <mliska@suse.cz>
21255 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21256 statement is reachable.
21258 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21260 * symtab.c (section_hash): New hash.
21261 (symtab_unregister_node): Clear section before freeing.
21262 (hash_section_hash_entry): New haser.
21263 (eq_sections): New function.
21264 (symtab_node::set_section_for_node): New method.
21265 (set_section_1): Update.
21266 (symtab_node::set_section): Take string instead of tree as parameter.
21267 (symtab_resolve_alias): Update.
21268 * cgraph.h (section_hash_entry_d): New structure.
21269 (section_hash_entry): New typedef.
21270 (cgraph_node): Change comdat_group_ to x_comdat_group,
21271 change section_ to x_section and turn into section_hash_entry;
21272 update accestors; put set_section_for_node offline.
21273 * tree.c (decl_section_name): Turn into string.
21274 (set_decl_section_name): Change parameter to be string.
21275 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21276 * sdbout.c (sdbout_one_type): Update.
21277 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21278 * varasm.c (IN_NAMED_SECTION, get_named_section,
21279 resolve_unique_section, hot_function_section, get_named_text_section,
21280 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21281 make_decl_rtl, default_unique_section): Update.
21282 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21283 (c6x_elf_unique_section): Update.
21284 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21285 * config/pa/pa.c (pa_function_section): Update.
21286 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21287 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21288 * config/arc/arc.c (arc_in_small_data_p): Update.
21289 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21290 * config/mcore/mcore.c (mcore_unique_section): Update.
21291 * config/mips/mips.c (mips16_build_function_stub): Update.
21292 (mips16_build_call_stub): Update.
21293 (mips_function_rodata_section): Update.
21294 (mips_in_small_data_p): Update.
21295 * config/score/score.c (score_in_small_data_p): Update.
21296 * config/rx/rx.c (rx_in_small_data): Update.
21297 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21298 (rs6000_xcoff_asm_named_section): Update.
21299 (rs6000_xcoff_unique_section): Update.
21300 * config/frv/frv.c (frv_string_begins_with): Update.
21301 (frv_in_small_data_p): Update.
21302 * config/v850/v850.c (v850_encode_data_area): Update.
21303 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21304 (bfin_handle_l1_data_attribute): Update.
21305 (bfin_handle_l2_attribute): Update.
21306 * config/mep/mep.c (mep_unique_section): Update.
21307 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21309 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21310 (h8300_handle_tiny_data_attribute): Update.
21311 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21312 (m32r_in_small_data_p): Update.
21313 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21314 * config/i386/i386.c (ix86_in_large_data_p): Update.
21315 * config/i386/winnt.c (i386_pe_unique_section): Update.
21316 * config/darwin.c (darwin_function_section): Update.
21317 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21318 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21319 (new_emutls_decl): Update.
21320 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21321 input_varpool_node): Update.
21322 (ead_string_cst): Turn to ...
21323 (read_string): ... this one.
21324 * dwarf2out.c (secname_for_decl): Update.
21325 * asan.c (asan_protect_global): Update.
21327 2014-06-11 DJ Delorie <dj@redhat.com>
21329 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21331 * config/rx/rx.c (rx_option_override): Likewise.
21332 (rx_align_for_label): Likewise.
21334 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21336 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21338 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21341 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21343 * common.md: New file.
21344 * doc/md.texi: Update description of generic, machine-independent
21346 * config/s390/constraints.md (e): Delete.
21347 * Makefile.in (md_file): Include common.md.
21348 * config/m32c/t-m32c (md_file): Likewise.
21349 * genpreds.c (general_mem): New array.
21350 (generic_constraint_letters): Remove constraints now defined by
21352 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21353 Allow the first character to be '<' or '>' as well.
21354 * genoutput.c (general_mem): New array.
21355 (indep_constraints): Remove constraints now defined by common.md.
21356 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21357 Remove special handling of 'm'.
21358 * ira-costs.c (record_reg_classes): Remove special handling of
21359 constraints now defined by common.md.
21360 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21361 * ira-lives.c (single_reg_class): Likewise.
21362 (ira_implicitly_set_insn_hard_regs): Likewise.
21363 * lra-constraints.c (reg_class_from_constraints): Likewise.
21364 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21365 * postreload.c (reload_cse_simplify_operands): Likewise.
21366 * reload.c (push_secondary_reload, scratch_reload_class)
21367 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21368 * reload1.c (maybe_fix_stack_asms): Likewise.
21369 * targhooks.c (default_secondary_reload): Likewise.
21370 * stmt.c (parse_output_constraint): Likewise.
21371 * recog.c (preprocess_constraints): Likewise.
21372 (constrain_operands, peep2_find_free_register): Likewise.
21373 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21374 must be handled specially.
21376 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21378 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21379 * genpreds.c (have_const_dbl_constraints): Delete.
21380 (add_constraint): Don't set it.
21381 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21382 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21383 constraints using the lookup_constraint logic.
21384 * ira-lives.c (single_reg_class): Likewise.
21385 * ira.c (ira_setup_alts): Likewise.
21386 * lra-constraints.c (process_alt_operands): Likewise.
21387 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21388 * reload.c (find_reloads): Likewise.
21390 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21392 * genpreds.c (const_int_start, const_int_end): New variables.
21393 (choose_enum_order): Output CONST_INT constraints before memory
21395 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21397 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21398 * ira.c (ira_setup_alts): Likewise.
21399 * lra-constraints.c (process_alt_operands): Likewise.
21400 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21401 * reload.c (find_reloads): Likewise.
21403 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21405 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21406 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21407 * recog.c (preprocess_constraints): Update accordingly.
21409 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21411 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21412 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21413 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21414 * genpreds.c (print_type_tree): New function.
21415 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21416 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21417 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21418 Write out enum constraint_type and get_constraint_type.
21419 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21420 constraint_num rather than a constraint string.
21421 (satisfies_address_constraint_p): Likewise.
21422 (reg_class_from_constraints): Avoid old constraint macros.
21423 (process_alt_operands, process_address_1): Likewise.
21424 (curr_insn_transform): Likewise.
21425 * ira-costs.c (record_reg_classes): Likewise.
21426 (record_operand_costs): Likewise.
21427 * ira-lives.c (single_reg_class): Likewise.
21428 (ira_implicitly_set_insn_hard_regs): Likewise.
21429 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21430 * postreload.c (reload_cse_simplify_operands): Likewise.
21431 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21432 (constrain_operands, peep2_find_free_register): Likewise.
21433 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21434 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21435 * reload1.c (maybe_fix_stack_asms): Likewise.
21436 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21437 * targhooks.c (default_secondary_reload): Likewise.
21438 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21439 to EXTRA_CONSTRAINT_STR.
21440 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21442 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21444 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21445 (write_constraint_satisfied_p_array): ...this new function.
21446 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21448 (write_insn_preds_c): Update accordingly.
21450 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21452 * genpreds.c (write_lookup_constraint): Rename to...
21453 (write_lookup_constraint_1): ...this.
21454 (write_lookup_constraint_array): New function.
21455 (write_tm_preds_h): Define lookup_constraint as an inline function
21456 that uses write_lookup_constraint_array where possible.
21457 (write_insn_preds_c): Update for the changes above.
21459 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21461 * doc/md.texi (regclass_for_constraint): Rename to...
21462 (reg_class_for_constraint): ...this.
21463 * genpreds.c (num_constraints, enum_order, register_start)
21464 (register_end, satisfied_start, memory_start, memory_end)
21465 (address_start, address_end): New variables.
21466 (add_constraint): Count the number of constraints.
21467 (choose_enum_order): New function.
21468 (write_enum_constraint_num): Iterate over enum_order.
21469 (write_regclass_for_constraint): Rename to...
21470 (write_reg_class_for_constraint_1): ...this and update output
21472 (write_constraint_satisfied_p): Rename to...
21473 (write_constraint_satisfied_p_1): ...this and update output
21474 accordingly. Do nothing if all extra constraints are register
21476 (write_insn_extra_memory_constraint): Delete.
21477 (write_insn_extra_address_constraint): Delete.
21478 (write_range_function): New function.
21479 (write_tm_preds_h): Define constraint_satisfied_p and
21480 reg_class_for_constraint as inline functions that do a range check
21481 before calling the out-of-line function. Use write_range_function
21482 to implement insn_extra_{register,memory,address}_constraint,
21483 the first of which is new.
21484 (write_insn_preds_c): Update after above changes to write_* functions.
21485 (main): Call choose_enum_order.
21487 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21489 PR tree-optimization/61306
21490 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21491 expression instead of its size.
21492 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21493 false to prevent optimization when the result is unpredictable due to
21494 arithmetic right shift of signed type with highest byte is set.
21495 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21496 (init_symbolic_number): Likewise.
21497 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21498 when the result is unpredictable due to sign extension.
21500 2014-06-11 Terry Guo <terry.guo@arm.com>
21502 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21503 (*thumb1_addsi3): Ditto.
21504 (*thumb_subdi3): Ditto.
21505 (thumb1_subsi3_insn): Ditto.
21506 (*thumb_mulsi3): Ditto.
21507 (*thumb_mulsi3_v6): Ditto.
21508 (*thumb1_andsi3_insn): Ditto.
21509 (thumb1_bicsi3): Ditto.
21510 (*thumb1_iorsi3_insn): Ditto.
21511 (*thumb1_xorsi3_insn): Ditto.
21512 (*thumb1_ashlsi3): Ditto.
21513 (*thumb1_ashrsi3): Ditto.
21514 (*thumb1_lshrsi3): Ditto.
21515 (*thumb1_rotrsi3): Ditto.
21516 (*thumb1_negdi2): Ditto.
21517 (*thumb1_negsi2): Ditto.
21518 (*thumb1_abssi2): Ditto.
21519 (*thumb1_neg_abssi2): Ditto.
21520 (*thumb1_one_cmplsi2): Ditto.
21521 (*thumb1_zero_extendhisi2): Ditto.
21522 (*thumb1_zero_extendqisi2): Ditto.
21523 (*thumb1_zero_extendqisi2_v6): Ditto.
21524 (thumb1_extendhisi2): Ditto.
21525 (thumb1_extendqisi2): Ditto.
21526 (*thumb1_movdi_insn): Ditto.
21527 (*thumb1_movsi_insn): Ditto.
21528 (*thumb1_movhi_insn): Ditto.
21529 (thumb_movhi_clobber): Ditto.
21530 (*thumb1_movqi_insn): Ditto.
21531 (*thumb1_movhf): Ditto.
21532 (*thumb1_movsf_insn): Ditto.
21533 (*thumb_movdf_insn): Ditto.
21534 (movmem12b): Ditto.
21536 (cbranchqi4): Ditto.
21537 (cbranchsi4_insn): Ditto.
21538 (cbranchsi4_scratch): Ditto.
21539 (*negated_cbranchsi4): Ditto.
21540 (*tbit_cbranch): Ditto.
21541 (*tlobits_cbranch): Ditto.
21542 (*tstsi3_cbranch): Ditto.
21543 (*cbranchne_decr1): Ditto.
21544 (*addsi3_cbranch): Ditto.
21545 (*addsi3_cbranch_scratch): Ditto.
21546 (*thumb_cmpdi_zero): Ditto.
21547 (cstoresi_eq0_thumb1): Ditto.
21548 (cstoresi_ne0_thumb1): Ditto.
21549 (*cstoresi_eq0_thumb1_insn): Ditto.
21550 (*cstoresi_ne0_thumb1_insn): Ditto.
21551 (cstoresi_nltu_thumb1): Ditto.
21552 (cstoresi_ltu_thumb1): Ditto.
21553 (thumb1_addsi3_addgeu): Ditto.
21554 (*thumb_jump): Ditto.
21555 (*call_reg_thumb1_v5): Ditto.
21556 (*call_reg_thumb1): Ditto.
21557 (*call_value_reg_thumb1_v5): Ditto.
21558 (*call_value_reg_thumb1): Ditto.
21559 (*call_insn): Ditto.
21560 (*call_value_insn): Ditto.
21561 (thumb1_casesi_internal_pic): Ditto.
21562 (thumb1_casesi_dispatch): Ditto.
21563 (*thumb1_indirect_jump): Ditto.
21564 (prologue_thumb1_interwork): Ditto.
21565 (*epilogue_insns): Ditto.
21566 (consttable_1): Ditto.
21567 (consttable_2): Ditto.
21568 (tablejump): Ditto.
21569 (*thumb1_tablejump): Ditto.
21570 (thumb_eh_return): Ditto.
21571 (define_peephole2): Two of them are thumb1 only and got moved into
21572 new file thumb1.md.
21573 (define_split): Six of them are thumb1 only and got moved into new
21575 * config/arm/thumb1.md: New file comprised of above thumb1 only
21578 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21580 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21581 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21583 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21584 (aarch64_crc_builtin_datum): New struct.
21585 (aarch64_crc_builtin_data): New.
21586 (aarch64_init_crc32_builtins): New function.
21587 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21588 (aarch64_crc32_expand_builtin): New.
21589 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21590 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21591 __ARM_FEATURE_CRC32 when appropriate.
21592 (TARGET_CRC32): Define.
21593 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21594 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21595 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21596 (aarch64_<crc_variant>): New pattern.
21597 * config/aarch64/arm_acle.h: New file.
21598 * config/aarch64/iterators.md (CRC): New int iterator.
21599 (crc_variant, crc_mode): New int attributes.
21600 * doc/aarch64-acle-intrinsics.texi: New file.
21601 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21602 Include aarch64-acle-intrinsics.texi.
21604 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21606 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21607 check for stores group of length 3.
21608 (vect_permute_store_chain): New permutations for stores group of
21610 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21611 of vec_perm_shuffle for the new permutations.
21613 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21615 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21616 table rewriting temporarily on targets not supporting ONE_ONLY.
21618 2014-06-11 Richard Biener <rguenther@suse.de>
21620 PR middle-end/61437
21622 2014-06-04 Richard Biener <rguenther@suse.de>
21624 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21625 TREE_PUBLIC and DECL_EXTERNAL decls.
21627 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21629 * varasm.c (set_implicit_section): New function.
21630 (resolve_unique_section): Use it to set implicit section
21632 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21633 (default_function_section): Likewise.
21634 (decl_binds_to_current_def_p): Constify argument.
21635 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21636 * asan.c (asan_protect_global): Use
21637 symtab_get_node (decl)->implicit_section.
21638 * symtab.c (dump_symtab_base): Dump implicit sections.
21639 (verify_symtab_base): Verify sanity of sectoins and comdats.
21640 (symtab_resolve_alias): Alias share the section of its target.
21641 (set_section_1): New function.
21642 (symtab_node::set_section): Move here, recurse to aliases.
21643 (verify_symtab): Check for duplicated symtab lists.
21644 * tree-core.h (implicit_section_name_p): Remove.
21645 * tree-vect-data-refs.c: Include varasm.h.
21646 (vect_can_force_dr_alignment_p): Fix conditional on when
21647 decl bints to current definition; use
21648 symtab_get_node (decl)->implicit_section.
21649 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21650 * cgraph.h (struct symtab_node): Add implicit_section.
21651 (set_section): Rename to ...
21652 (set_section_for_node): ... this one.
21653 (set_section): Declare.
21654 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21655 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21656 input_overwrite_node, input_varpool_node): Stream implicit_section.
21657 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21658 removal; it will fail in LTO.
21660 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21662 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21663 Change second alternative type to f_mcr.
21664 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21665 and 12th alternatives' types to f_mcr and f_mrc.
21666 (*movdi_aarch64): Same for 12th and 13th alternatives.
21667 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21668 (aarch64_movtilow_tilow): Change type to fmov.
21670 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21672 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21673 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21675 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21677 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21679 (aarch64_sqrdmulh_lane<mode>): Likewise.
21680 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21681 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21682 (aarch64_sqdmulh_laneq<mode>): New expander.
21683 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21684 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21685 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21686 (aarch64_sqdmulh_lane<mode>): New expander.
21687 (aarch64_sqrdmulh_lane<mode>): Likewise.
21688 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21689 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21690 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21691 (aarch64_sqdmlal_laneq<mode>): Likewise.
21692 (aarch64_sqdmlsl_lane<mode>): Likewise.
21693 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21694 (aarch64_sqdmlal2_lane<mode>): Likewise.
21695 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21696 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21697 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21698 (aarch64_sqdmull_lane<mode>): Likewise.
21699 (aarch64_sqdmull_laneq<mode>): Likewise.
21700 (aarch64_sqdmull2_lane<mode>): Likewise.
21701 (aarch64_sqdmull2_laneq<mode>): Likewise.
21703 2014-06-10 Richard Biener <rguenther@suse.de>
21705 PR tree-optimization/61438
21706 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21707 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21708 insertion of IVs if running PRE.
21709 (eliminate): Adjust.
21710 (pass_pre::execute): Likewise.
21711 (pass_fre::execute): Likewise.
21713 2014-06-10 Richard Biener <rguenther@suse.de>
21715 PR middle-end/61456
21716 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21717 Do not use the main variant for the type comparison.
21718 (ncr_compar): Likewise.
21719 (nonoverlapping_component_refs_p): Likewise.
21721 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21723 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21724 REG_CFA_RESTORE mode.
21726 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21728 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21729 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21730 expand_vec_perm_pblendv.
21732 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21734 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21736 Simplify description of __crc32d and __crc32cd intrinsics.
21737 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21740 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21743 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21744 * config.in: Regenerate.
21745 * configure: Likewise.
21747 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21749 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21751 (intersect_static_var_sets): Remove.
21752 (propagate): Do not prune local statics.
21754 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21757 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21758 Set lastprivate_firstprivate even if omp_private_outer_ref
21759 langhook returns true.
21760 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21761 langhook, call unshare_expr on new_var and call
21762 build_outer_var_ref to get the last argument.
21764 2014-06-10 Marek Polacek <polacek@redhat.com>
21767 * doc/extend.texi: Add cindex for transparent_union.
21769 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21771 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21772 init_symbolic_number ().
21774 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21776 PR middle-end/61141
21777 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21778 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21779 (verify_rtl_sharing): Likewise.
21781 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21784 * tree.c (build_qualified_type): Use a canonical type for
21787 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21789 * config/arm/arm-modes.def: Remove XFmode.
21791 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21794 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21795 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21796 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21797 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21798 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21799 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21800 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21801 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21802 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21804 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21806 * tree-core.h (tree_decl_with_vis): Remove section_name.
21808 2014-06-09 Kito Cheng <kito@0xlab.org>
21810 * ira.c (ira): Don't call init_caller_save if LRA enabled
21811 since LRA use its own infrastructure to handle that.
21813 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21815 * symtab.c (dump_symtab_base): Update dumping.
21816 (symtab_make_decl_local): Clear only DECL_COMDAT.
21817 * tree-vect-data-refs.c (Check that variable is static before
21818 tampering with sections.
21819 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21820 (cgraph_create_virtual_clone): Likewise.
21821 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21822 (decl_section_name, set_decl_section_name): New accessors.
21823 (find_decls_types_r): Do not walk section name
21824 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21825 (decl_comdat_group, decl_comdat_group_id): Constify.
21826 (decl_section_name, set_decl_section_name): Update.
21827 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21828 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21829 (cgraph_make_node_local_1): Clear section and comdat group.
21830 * cgraph.h (set_comdat_group): Sanity check.
21831 (get_section, set_section): New.
21832 * ipa-comdats.c (ipa_comdats): Use get_section.
21833 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21834 * lto-streamer-out.c: Do not follow section names.
21835 * c-family/c-common.c (handle_section_attribute): Update.
21836 * lto-cgraph.c (lto_output_node): Output section.
21837 (lto_output_varpool_node): Likewise.
21838 (read_comdat_group): Rename to ...
21839 (read_identifier): ... this one.
21840 (read_string_cst): New function.
21841 (input_node, input_varpool_node): Input section names.
21842 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21843 (new_emutls_decl): Update.
21844 (secname_for_decl): Check section names only of static vars.
21845 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21846 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21847 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21848 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21849 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21850 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21851 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21852 * config/v850/v850.c (v850_insert_attributes): Likewise.
21853 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21855 (h8300_handle_tiny_data_attribute): Likewise.
21856 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21857 (bfin_handle_l2_attribute): Likewise.
21859 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21861 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21862 remove static initializer.
21864 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21866 * varasm.c (use_blocks_for_decl_p): Check symbol table
21867 instead of alias attribute.
21868 (place_block_symbol): Recurse on aliases.
21870 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21872 * ipa-visibility.c: Include varasm.h
21873 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21875 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21877 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21878 outputting aliases.
21880 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21882 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21883 from test_insn into GGC space escape via SET_SRC.
21885 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21887 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21888 call statement, if any.
21889 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21890 statements, if any. Tidy up.
21892 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21895 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21896 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21897 handles swapping the two 64-bit double words on little endian
21898 systems. Include V1TImode and optionally TImode in VSX_LE so that
21899 these types are properly swapped. Change all of the insns and
21900 splits that do the 64-bit swaps to use VSX_LE.
21901 (vsx_le_perm_load_<mode>): Likewise.
21902 (vsx_le_perm_store_<mode>): Likewise.
21903 (splitters for little endian memory operations): Likewise.
21904 (vsx_xxpermdi2_le_<mode>): Likewise.
21905 (vsx_lxvd2x2_le_<mode>): Likewise.
21906 (vsx_stxvd2x2_le_<mode>): Likewise.
21908 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21911 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21912 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21913 and corresponding splitters. Zero extend general register
21914 or memory input operand to XMM temporary. Enable for
21915 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21916 (floatunssi<mode>2): Update expander predicate.
21918 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21920 PR rtl-optimization/61325
21921 * lra-constraints.c (process_address_1): Check scale equal to one
21922 to prevent transformation: base + scale * index => base + new_reg.
21924 2014-06-06 Richard Biener <rguenther@suse.de>
21926 PR tree-optimization/59299
21927 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21929 (nearest_common_dominator_of_uses): Likewise.
21930 (statement_sink_location): Adjust. Support sinking loads.
21932 2014-06-06 Martin Jambor <mjambor@suse.cz>
21934 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21935 (build_agg_jump_func_from_list): Likewise.
21936 (determine_known_aggregate_parts): Renamed to
21937 determine_locally_known_aggregate_parts. Moved some functionality
21938 to the two functions above, removed bound checks.
21940 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21942 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21943 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21944 (aarch64_progress_pointer): Likewise.
21945 (aarch64_copy_one_part_and_move_pointers): Likewise.
21946 (aarch64_expand_movmen): Likewise.
21947 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21948 * config/aarch64/aarch64.md (movmem<mode>): New.
21950 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21952 * targhooks.c (default_add_stmt_cost): Call target specific
21953 hook instead of default one.
21955 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21957 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21958 endianness instead of host endianness.
21959 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21962 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21965 * function.c (instantiate_decls): Process the saved static chain.
21966 (expand_function_start): If not optimizing, save the static chain
21968 * tree-nested.c (convert_all_function_calls): Always create the static
21969 chain for nested functions if not optimizing.
21971 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21973 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21975 2014-06-06 Richard Biener <rguenther@suse.de>
21977 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21978 (construct_init_block): Likewise.
21979 (construct_exit_block): Likewise.
21980 (pass_expand::execute): Likewise.
21981 * graphite.c (graphite_transforms): Replace check for current_loops
21982 with a check for > 1 loops.
21983 (pass_graphite_transforms::execute): Adjust.
21984 * ipa-split.c (split_function): Remove check for current_loops.
21985 * omp-low.c (expand_parallel_call): Likewise.
21986 (expand_omp_for_init_counts): Likewise.
21987 (extract_omp_for_update_vars): Likewise.
21988 (expand_omp_for_generic): Likewise.
21989 (expand_omp_sections): Likewise.
21990 (expand_omp_target): Likewise.
21991 * tracer.c (tail_duplicate): Likewise.
21992 (pass_tracer::execute): Likewise.
21993 * trans-mem.c (expand_transaction): Likewise.
21994 * tree-complex.c (expand_complex_div_wide): Likewise.
21995 * tree-eh.c (lower_resx): Likewise.
21996 (cleanup_empty_eh_merge_phis): Likewise.
21997 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21998 current_loops with a check for > 1 loops.
21999 (pass_predcom::execute): Adjust.
22000 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22001 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22002 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22003 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22004 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22005 * tree-switch-conversion.c (process_switch): Likewise.
22006 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22007 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22008 (execute_vrp): Likewise.
22009 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22011 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22013 * rtl.h (insn_location): Declare.
22014 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22015 with UNKNOWN_LOCATION.
22016 * emit-rtl.c (insn_location): New function.
22017 * final.c (notice_source_line): Check that the instruction has a
22018 location before retrieving it and use insn_location.
22019 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22020 * print-rtl.c (print_rtx): Likewise.
22022 2014-06-06 Richard Biener <rguenther@suse.de>
22024 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22026 2014-06-06 Christian Bruel <christian.bruel@st.com>
22028 PR tree-optimization/43934
22029 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22032 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22034 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22035 return NO_REGS for extra address and memory constraints. Handle
22036 operands that match (or are equivalent to something that matches)
22037 extra constant constraints. Ignore other non-register operands.
22039 2014-06-06 Alan Modra <amodra@gmail.com>
22042 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22043 * doc/tm.texi: Regenerate.
22044 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22045 Use throughout in place of REG_PARM_STACK_SPACE.
22046 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22047 "incoming" param. Pass to rs6000_function_parms_need_stack.
22048 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22049 prototype_p when incoming. Use function decl when incoming
22050 to handle K&R style functions.
22051 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22052 (INCOMING_REG_PARM_STACK_SPACE): Define.
22054 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22057 * cfgexpand.c (expand_debug_expr): Use address space of nested
22058 TREE_TYPE for ADDR_EXPR and MEM_REF.
22060 2014-06-05 Jeff Law <law@redhat.com>
22062 PR tree-optimization/61289
22063 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22064 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22065 looking for those which match LHS. All callers changed.
22066 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22067 parameters and code which manipulated them. All callers changed.
22068 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22069 and DST_MAP parameters. Simplify invalidation code by just calling
22070 invalidate_equivalences. All callers changed.
22071 (thread_across_edge): Simplify now that we don't need to maintain
22072 the map of equivalences to invalidate.
22074 2014-06-05 Kai Tietz <ktietz@redhat.com>
22075 Richard Henderson <rth@redhat.com>
22078 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22079 checking for !TARGET_X32.
22080 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22081 (sibcall_intern): New define_insn, plus required peepholes.
22082 (sibcall_pop_intern): Likewise.
22083 (sibcall_value_intern): Likewise.
22084 (sibcall_value_pop_intern): Likewise.
22086 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22088 * tree-inline.c (tree_function_versioning): Check DF info existence
22089 before accessing it.
22091 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22093 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22095 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22096 aarch64_frame hard_fp_offset and frame_size.
22097 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22098 frame_size; remove original_frame_size.
22099 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22100 (aarch64_initial_elimination_offset): Remove frame_size and
22101 offset. Use aarch64_frame frame_size.
22103 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22104 Jiong Wang <jiong.wang@arm.com>
22105 Renlin <renlin.li@arm.com>
22107 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22108 initialization of R30 offset. Update offset. Iterate core
22109 regisers upto X30. Remove X29, X30 specific code.
22111 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22112 Jiong Wang <jiong.wang@arm.com>
22114 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22115 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22116 (aarch64_register_saved_on_entry): Adjust test.
22118 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22120 * config/aarch64/aarch64.h (machine_function): Move
22121 saved_varargs_size from here...
22122 (aarch64_frame): ... to here.
22124 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22125 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22126 (aarch64_initial_elimination_offset)
22127 (aarch64_setup_incoming_varargs): Adjust location of
22128 saved_varargs_size.
22130 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22132 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22135 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22136 Prachi Godbole <Prachi.Godbole@imgtec.com>
22138 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22139 mips32r5 entry to use PROCESSOR_P5600.
22140 * config/mips/mips-tables.opt: Regenerate.
22141 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22142 * config/mips/mips.c (mips_fmadd_bypass): New function.
22143 (mips_rtx_cost_data): Add costs for p5600.
22144 (mips_issue_rate): Add support for p5600.
22145 (mips_multipass_dfa_lookahead): Likewise.
22146 * config/mips/mips.h (TUNE_P5600): New define.
22147 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22148 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22149 * config/mips/mips.md: Include p5600.md.
22150 (processor): Add p5600.
22151 * config/mips/p5600.md: New file.
22153 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22155 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22156 * config/i386/predicates.md (palignr_operand): New.
22157 Indicates if permutation is suitable for palignr instruction.
22159 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22161 PR tree-optimization/61319
22162 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22163 stmt belongs to loop.
22165 2014-06-05 Richard Biener <rguenther@suse.de>
22167 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22168 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22169 (lookup_tmp_var): Adjust.
22170 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22172 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22174 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22176 2014-06-05 Marek Polacek <polacek@redhat.com>
22179 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22181 2014-06-04 Tom de Vries <tom@codesourcery.com>
22183 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22186 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22188 PR tree-optimization/61385
22189 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22191 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22193 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22194 changed to use fatal_error.
22195 (main): Ensure lto_wrapper_cleanup is run atexit.
22197 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22199 * lra-constraints.c (valid_address_p): Move earlier in file.
22200 (address_eliminator): New structure.
22201 (satisfies_memory_constraint_p): New function.
22202 (satisfies_address_constraint_p): Likewise.
22203 (process_alt_operands, process_address, curr_insn_transform): Use them.
22205 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22207 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22209 (target_lra_int, default_target_lra_int, this_target_lra_int)
22210 (op_alt_data): Delete.
22211 * lra.h (lra_init): Delete.
22212 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22213 (init_insn_code_data_once): Remove op_alt_data handling.
22214 (finish_insn_code_data_once): Likewise.
22215 (init_op_alt_data): Delete.
22216 (get_static_insn_data): Initialize operand_alternative to null.
22217 (free_insn_recog_data): Cast operand_alternative before freeing it.
22218 (setup_operand_alternative): Take the operand_alternative as
22219 parameter and assume it isn't already cached in the static
22221 (lra_set_insn_recog_data): Update accordingly.
22222 (lra_init): Delete.
22223 * ira.c (ira_init): Don't call lra_init.
22224 * target-globals.h (this_target_lra_int): Declare.
22225 (target_globals): Remove lra_int.
22226 (restore_target_globals): Update accordingly.
22227 * target-globals.c: Don't include lra-int.h.
22228 (default_target_globals, save_target_globals): Remove lra_int.
22230 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22232 * recog.h (operand_alternative): Convert reg_class, reject,
22233 matched and matches into bitfields.
22234 (preprocess_constraints): New overload.
22235 (preprocess_insn_constraints): New function.
22236 (preprocess_constraints): Take the insn as parameter.
22237 (recog_op_alt): Change into a pointer.
22238 (target_recog): Add x_op_alt.
22239 * recog.c (asm_op_alt): New variable.
22240 (recog_op_alt): Change into a pointer.
22241 (preprocess_constraints): New overload, replacing the old function
22242 definition with one that doesn't use global state.
22243 (preprocess_insn_constraints): New function.
22244 (preprocess_constraints): Use them. Take the insn as parameter.
22245 Use asm_op_alt for asms.
22246 (recog_init): Free existing x_op_alt entries.
22247 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22249 (make_early_clobber_and_input_conflicts): Likewise.
22250 (process_bb_node_lives): Pass the insn to process_constraints.
22251 * reg-stack.c (check_asm_stack_operands): Likewise.
22252 (subst_asm_stack_regs): Likewise.
22253 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22254 * regrename.c (build_def_use): Likewise.
22255 * sched-deps.c (sched_analyze_insn): Likewise.
22256 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22257 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22258 (note_invalid_constants): Likewise.
22259 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22260 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22263 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22265 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22266 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22268 (make_early_clobber_and_input_conflicts): Likewise.
22269 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22271 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22273 * recog.h (alternative_class): New function.
22274 (which_op_alt): Return a const recog_op_alt.
22275 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22276 (subst_asm_stack_regs): Likewise.
22277 * config/arm/arm.c (note_invalid_constants): Likewise.
22278 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22279 the operand_alternative; use alternative class instead.
22280 * sel-sched.c (get_reg_class): Likewise.
22281 * regrename.c (build_def_use): Likewise.
22282 (hide_operands, restore_operands, record_out_operands): Update type
22285 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22287 * recog.h (recog_op_alt): Convert to a flat array.
22288 (which_op_alt): New function.
22289 * recog.c (recog_op_alt): Convert to a flat array.
22290 (preprocess_constraints): Update accordingly, grouping all
22291 operands of the same alternative together, rather than the
22293 * ira-lives.c (check_and_make_def_conflict): Likewise.
22294 (make_early_clobber_and_input_conflicts): Likewise.
22295 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22296 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22297 (subst_asm_stack_regs): Likewise.
22298 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22299 * regrename.c (hide_operands, record_out_operands): Likewise.
22300 (build_def_use): Likewise.
22301 * sel-sched.c (get_reg_class): Likewise.
22302 * config/arm/arm.c (note_invalid_constants): Likewise.
22304 2014-06-04 Jason Merrill <jason@redhat.com>
22308 * gimplify.c (gimplify_arg): Non-static.
22309 * gimplify.h: Declare it.
22311 2014-06-04 Richard Biener <rguenther@suse.de>
22313 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22314 TREE_PUBLIC and DECL_EXTERNAL decls.
22316 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22318 * regcprop.c (copyprop_hardreg_forward_1): Account for
22319 HARD_REGNO_CALL_PART_CLOBBERED.
22321 2014-06-04 Richard Biener <rguenther@suse.de>
22323 * configure.ac: Check whether the underlying type of int64_t
22324 is long or long long.
22325 * configure: Regenerate.
22326 * config.in: Likewise.
22327 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22328 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22330 2014-06-04 Richard Biener <rguenther@suse.de>
22332 PR tree-optimization/60098
22333 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22335 (dse_optimize_stmt): Simplify, now that we found a kill
22338 2014-06-04 Richard Biener <rguenther@suse.de>
22340 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22341 of accesses with non-invariant address.
22343 2014-06-04 Martin Liska <mliska@suse.cz>
22345 * cgraph.h (cgraph_make_wrapper): New function introduced.
22346 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22347 * ipa-inline.h (inline_analyze_function): The function is global.
22348 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22350 2014-06-04 Martin Liska <mliska@suse.cz>
22352 * tree.h (private_lookup_attribute_starting): New function.
22353 (lookup_attribute_starting): Likewise.
22354 * tree.c (private_lookup_attribute_starting): Likewise.
22356 2014-06-04 Martin Liska <mliska@suse.cz>
22358 * cgraph.h (expand_thunk): New argument added.
22359 (address_taken_from_non_vtable_p): New global function.
22360 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22361 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22362 * cgraphunit.c (analyze_function): Likewise.
22363 (assemble_thunks_and_aliases): Argument added to call.
22364 (expand_thunk): New argument forces to produce GIMPLE thunk.
22366 2014-06-04 Martin Liska <mliska@suse.cz>
22368 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22369 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22370 * profile.c (branch_prob): Likewise.
22372 2014-06-04 Martin Jambor <mjambor@suse.cz>
22375 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22376 handler for switch on an ipa_ref_use enum.
22377 * ipa-reference.c (analyze_function): Likewise.
22379 2014-06-04 Kai Tietz <ktietz@redhat.com>
22381 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22382 from old call-instruction.
22384 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22386 * config/aarch64/aarch64.c (aarch64_classify_address)
22387 (aarch64_legitimize_reload_address): Support full addressing modes
22389 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22390 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22392 2014-06-03 Andrew Pinski <apinski@cavium.com>
22394 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22397 2014-06-03 Andrew Pinski <apinski@cavium.com>
22399 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22400 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22402 2014-06-03 Kai Tietz <ktietz@redhat.com>
22404 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22407 2014-06-03 Dehao Chen <dehao@google.com>
22409 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22412 2014-06-03 Marek Polacek <polacek@redhat.com>
22415 * doc/invoke.texi: Document -Wswitch-bool.
22416 * function.c (stack_protect_epilogue): Cast controlling expression of
22418 * gengtype.c (walk_type): Generate switch expression with its
22419 controlling expression cast to int.
22421 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22423 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22425 * config/avr/avr-tables.opt: Regenerate.
22426 * config/avr/t-multilib: Regenerate.
22427 * doc/avr-mmcu.texi: Regenerate.
22429 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22430 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22432 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22433 (ata6617c, ata664251): Add new avr35 devices.
22434 (ata6612c): Add new avr4 device.
22435 (ata6613c, ata6614q): Add new avr5 devices.
22436 * config/avr/avr-tables.opt: Regenerate.
22437 * config/avr/t-multilib: Regenerate.
22438 * doc/avr-mmcu.texi: Regenerate.
22440 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22442 * gcc/config/aarch64/aarch64-builtins.c
22443 (aarch64_types_binop_ssu_qualifiers): New static data.
22444 (TYPES_BINOP_SSU): Define.
22445 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22446 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22447 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22448 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22449 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22450 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22451 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22452 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22453 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22454 suffix to builtin function name, remove cast.
22455 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22456 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22457 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22459 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22461 * gcc/config/aarch64/aarch64-builtins.c
22462 (aarch64_types_binop_uus_qualifiers,
22463 aarch64_types_shift_to_unsigned_qualifiers,
22464 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22465 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22466 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22467 sqshlu_n, uqshl_n): Update qualifiers.
22468 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22469 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22470 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22471 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22472 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22473 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22474 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22475 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22476 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22477 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22478 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22479 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22480 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22481 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22482 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22483 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22484 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22485 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22486 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22487 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22488 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22489 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22490 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22491 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22492 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22493 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22494 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22496 2014-06-03 Teresa Johnson <tejohnson@google.com>
22498 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22500 2014-06-02 Jason Merrill <jason@redhat.com>
22503 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22505 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22507 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22510 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22512 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22514 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22515 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22516 * config/aarch64/iterators.md (REVERSE): New iterator.
22517 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22518 (rev_op): New int_attribute.
22519 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22520 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22521 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22522 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22523 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22524 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22525 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22526 Replace temporary __asm__ with __builtin_shuffle.
22528 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22530 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22532 * config/mips/mips-tables.opt: Regenerate.
22533 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22534 to use mips_isa_rev rather than ISA_MIPS32R2.
22535 * config/mips/mips.h (ISA_MIPS32R3): New define.
22536 (ISA_MIPS32R5): New define.
22537 (ISA_MIPS64R3): New define.
22538 (ISA_MIPS64R5): New define.
22539 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22540 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22541 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22543 (MIPS_ISA_SYNCI_SPEC): Likewise.
22544 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22545 (LINK_SPEC): Added mips32r3 and mips32r5.
22546 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22547 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22548 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22549 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22550 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22551 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22552 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22554 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22556 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22558 * config/mips/mips.opt (mxpa): New option.
22559 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22562 2014-06-03 Martin Jambor <mjambor@suse.cz>
22565 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22568 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22570 PR tree-optimization/61328
22571 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22572 initialization from find_bswap_or_nop_1.
22573 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22574 in source_expr2 before using the size value the function sets. Also
22575 make use of init_symbolic_number () in both the old place and
22576 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22577 doing recursion in the GIMPLE_BINARY_RHS case.
22579 2014-06-03 Richard Biener <rguenther@suse.de>
22581 PR tree-optimization/61383
22582 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22585 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22587 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22588 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22589 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22590 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22592 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22593 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22594 * system.h: ...here and make it unconditional.
22595 * target.def (conditional_register_usage): Mention
22596 define_register_constraint instead of old-style constraint macros.
22597 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22598 * doc/tm.texi: Regenerate.
22599 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22600 protected by !USE_MD_CONSTRAINTS.
22601 * config/frv/frv.md: Remove quote from old version of documentation.
22602 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22603 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22604 CONST_DOUBLE_OK_FOR_LETTER.
22605 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22607 2014-06-02 Andrew Pinski <apinski@cavium.com>
22609 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22610 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22611 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22612 file whose name depends on -mabi= and -mbig-endian.
22613 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22614 Handle LP64 better and handle ilp32 too.
22615 (MULTILIB_OPTIONS): Delete.
22616 (MULTILIB_DIRNAMES): Delete.
22618 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22620 * expr.h: Remove prototypes of functions defined in builtins.c.
22621 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22622 Remove prototypes of functions defined in builtins.c.
22623 * builtins.h: Update prototype list to include all exported functions.
22624 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22625 no_c99_libc_has_function): Move to targhooks.c
22626 (build_string_literal, build_call_expr_loc_array,
22627 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22629 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22630 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22631 no_c99_libc_has_function): Relocate from builtins.c.
22632 * tree.c: Include builtins.h.
22633 (build_call_expr_loc_array, build_call_expr_loc_vec,
22634 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22636 * fold-const.h (fold_fma): Move prototype to builtins.h.
22637 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22638 * asan.c: Include builtins.h.
22639 * cfgexpand.c: Likewise.
22640 * convert.c: Likewise.
22641 * emit-rtl.c: Likewise.
22642 * except.c: Likewise.
22643 * expr.c: Likewise.
22644 * fold-const.c: Likewise.
22645 * gimple-fold.c: Likewise.
22646 * gimple-ssa-strength-reduction.c: Likewise.
22647 * gimplify.c: Likewise.
22648 * ipa-inline.c: Likewise.
22649 * ipa-prop.c: Likewise.
22650 * lto-streamer-out.c: Likewise.
22651 * stmt.c: Likewise.
22652 * tree-inline.c: Likewise.
22653 * tree-object-size.c: Likewise.
22654 * tree-sra.c: Likewise.
22655 * tree-ssa-ccp.c: Likewise.
22656 * tree-ssa-forwprop.c: Likewise.
22657 * tree-ssa-loop-ivcanon.c: Likewise.
22658 * tree-ssa-loop-ivopts.c: Likewise.
22659 * tree-ssa-math-opts.c: Likewise.
22660 * tree-ssa-reassoc.c: Likewise.
22661 * tree-ssa-threadedge.c: Likewise.
22662 * tree-streamer-in.c: Likewise.
22663 * tree-vect-data-refs.c: Likewise.
22664 * tree-vect-patterns.c: Likewise.
22665 * tree-vect-stmts.c: Likewise.
22666 * config/aarch64/aarch64.c: Likewise.
22667 * config/alpha/alpha.c: Likewise.
22668 * config/arc/arc.c: Likewise.
22669 * config/arm/arm.c: Likewise.
22670 * config/avr/avr.c: Likewise.
22671 * config/bfin/bfin.c: Likewise.
22672 * config/c6x/c6x.c: Likewise.
22673 * config/cr16/cr16.c: Likewise.
22674 * config/cris/cris.c: Likewise.
22675 * config/epiphany/epiphany.c: Likewise.
22676 * config/fr30/fr30.c: Likewise.
22677 * config/frv/frv.c: Likewise.
22678 * config/h8300/h8300.c: Likewise.
22679 * config/i386/i386.c: Likewise.
22680 * config/i386/winnt.c: Likewise.
22681 * config/ia64/ia64.c: Likewise.
22682 * config/iq2000/iq2000.c: Likewise.
22683 * config/lm32/lm32.c: Likewise.
22684 * config/m32c/m32c.c: Likewise.
22685 * config/m32r/m32r.c: Likewise.
22686 * config/m68k/m68k.c: Likewise.
22687 * config/mcore/mcore.c: Likewise.
22688 * config/mep/mep.c: Likewise.
22689 * config/microblaze/microblaze.c: Likewise.
22690 * config/mips/mips.c: Likewise.
22691 * config/mmix/mmix.c: Likewise.
22692 * config/mn10300/mn10300.c: Likewise.
22693 * config/moxie/moxie.c: Likewise.
22694 * config/msp430/msp430.c: Likewise.
22695 * config/nds32/nds32.c: Likewise.
22696 * config/pa/pa.c: Likewise.
22697 * config/pdp11/pdp11.c: Likewise.
22698 * config/picochip/picochip.c: Likewise.
22699 * config/rl78/rl78.c: Likewise.
22700 * config/rs6000/rs6000.c: Likewise.
22701 * config/rx/rx.c: Likewise.
22702 * config/s390/s390.c: Likewise.
22703 * config/score/score.c: Likewise.
22704 * config/sh/sh.c: Likewise.
22705 * config/sparc/sparc.c: Likewise.
22706 * config/spu/spu.c: Likewise.
22707 * config/stormy16/stormy16.c: Likewise.
22708 * config/tilegx/tilegx.c: Likewise.
22709 * config/tilepro/tilepro.c: Likewise.
22710 * config/v850/v850.c: Likewise.
22711 * config/vax/vax.c: Likewise.
22712 * config/xtensa/xtensa.c: Likewise.
22714 2014-06-02 Jeff Law <law@redhat.com>
22716 PR rtl-optimization/61094
22717 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22718 was marked as do_no_reextend. If a copy is needed to eliminate
22719 an extension, then mark it as do_not_reextend.
22721 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22723 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22725 2014-06-02 Richard Henderson <rth@redhat.com>
22728 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22729 addresses inside asms. Use output_operand_lossage instead of
22732 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22735 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22736 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22738 2014-06-02 Tom de Vries <tom@codesourcery.com>
22740 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22741 case that x has VOIDmode.
22743 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22745 * varasm.c (copy_constant): Delete function.
22746 (build_constant_desc): Don't call it.
22748 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22751 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22752 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22753 with immediate_operand.
22755 2014-06-02 Andreas Schwab <schwab@suse.de>
22757 * config/ia64/ia64.c
22758 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22759 pending_data_specs first.
22761 2014-06-02 Richard Biener <rguenther@suse.de>
22763 PR tree-optimization/61378
22764 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22765 valueized_anything.
22767 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22769 * config/i386/constraints.md (Bw): Rename from 'w'.
22770 (Bz): Rename from 'z'.
22771 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22773 2014-06-01 Kai Tietz <ktietz@redhat.com>
22776 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22777 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22778 instead of m constraint.
22780 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22782 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22783 a separate alternative where the scratch operand 2 is marked as
22786 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22788 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22789 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22790 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22791 and __builtins_arm_get_fpscr.
22792 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22793 __builtins_arm_get_fpscr.
22794 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22795 __builtins_arm_ldfpscr.
22796 (arm_atomic_assign_expand_fenv): New function.
22797 * config/arm/vfp.md (set_fpscr): New pattern.
22798 (get_fpscr) : Likewise.
22799 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22801 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22802 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22804 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22806 * asan.c (report_error_func): Add SLOW_P argument, use
22807 BUILT_IN_ASAN_*_N if set.
22808 (build_check_stmt): Likewise.
22809 (instrument_derefs): If T has insufficient alignment,
22810 force same handling as for odd sizes.
22812 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22813 BUILT_IN_ASAN_REPORT_STORE_N): New.
22814 * asan.c (struct asan_mem_ref): Change access_size type to
22816 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22817 update_mem_ref_hash_table): Likewise.
22818 (asan_mem_ref_hasher::hash): Hash in a HWI.
22819 (report_error_func): Change size_in_bytes argument to HWI.
22820 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22822 (build_shadow_mem_access): New function.
22823 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22824 Handle size_in_bytes not power of two or larger than 16.
22825 (instrument_derefs): Don't give up if size_in_bytes is not
22826 power of two or is larger than 16.
22828 2014-05-30 Kai Tietz <ktietz@redhat.com>
22831 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22832 for sibling-tail-calls.
22833 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22835 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22836 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22838 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22840 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22841 * config/avr/avr-tables.opt: Regenerate.
22842 * config/avr/t-multilib: Regenerate.
22843 * doc/avr-mmcu.texi: Regenerate.
22845 2014-05-30 Ian Lance Taylor <iant@google.com>
22847 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22850 2014-05-30 Tom de Vries <tom@codesourcery.com>
22852 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22855 2014-05-30 Tom de Vries <tom@codesourcery.com>
22857 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22858 * lra.c (initialize_lra_reg_info_element): Add init of
22859 actual_call_used_reg_set field.
22860 (lra): Call lra_create_live_ranges before lra_inheritance for
22862 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22864 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22865 instead of call_used_reg_set for -fuse-caller-save.
22866 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22868 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22870 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22872 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22874 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22876 * ira.c (ira_get_dup_out_num): Check for output operands at
22877 the start of the loop. Handle cases where an included alternative
22878 follows an excluded one.
22880 2014-05-29 Mike Stump <mikestump@comcast.net>
22883 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22884 post ld passes when lto is used.
22886 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22888 PR rtl-optimization/61325
22889 * lra-constraints.c (process_address): Rename to process_address_1.
22890 (process_address): New function.
22892 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22894 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22895 TYPES_BINOPV): New static data.
22896 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22898 * config/aarch64/aarch64-simd.md (aarch64_ext,
22899 aarch64_im_lane_boundsi): New patterns.
22900 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22902 (aarch64_evpc_ext): New function.
22904 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22906 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22907 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22908 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22909 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22910 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22912 2014-05-29 Tom de Vries <tom@codesourcery.com>
22914 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22916 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22917 Richard Sandiford <rdsandiford@googlemail.com>
22919 * arm/iterators.md (shiftable_ops): New code iterator.
22920 (t2_binop0, arith_shift_insn): New code attributes.
22921 * arm/predicates.md (shift_nomul_operator): New predicate.
22922 * arm/arm.md (insn_enabled): Delete.
22923 (enabled): Remove insn_enabled test.
22924 (*arith_shiftsi): Delete. Replace with ...
22925 (*<arith_shift_insn>_multsi): ... new pattern.
22926 (*<arith_shift_insn>_shiftsi): ... new pattern.
22927 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22929 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22930 Tom de Vries <tom@codesourcery.com>
22932 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22933 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22935 (mips_split_call): Use POST_CALL_TMP_REG.
22936 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22938 2014-05-29 Tom de Vries <tom@codesourcery.com>
22940 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22941 with #ifdef STACK_REGS.
22943 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22945 * varasm.c (get_variable_section): Walk aliases.
22946 (place_block_symbol): Walk aliases.
22948 2014-05-28 Tom de Vries <tom@codesourcery.com>
22951 2014-05-28 Tom de Vries <tom@codesourcery.com>
22953 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22954 * lra.c (initialize_lra_reg_info_element): Add init of
22955 actual_call_used_reg_set field.
22956 (lra): Call lra_create_live_ranges before lra_inheritance for
22958 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22960 * lra-constraints.c (need_for_call_save_p): Use
22961 actual_call_used_reg_set instead of call_used_reg_set for
22963 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22965 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22967 * doc/md.texi: Document that the % constraint character must
22968 be at the beginning of the string.
22969 * genoutput.c (validate_insn_alternatives): Check that '=',
22970 '+' and '%' only appear at the beginning of a constraint.
22971 * ira.c (commutative_constraint_p): Delete.
22972 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22973 at the start of the string.
22974 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22976 * config/arm/neon.md (bicdi3_neon): Likewise.
22977 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22978 (slt_si, sltu_si): Likewise.
22979 * config/vax/vax.md (sbcdi3): Likewise.
22980 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22981 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22982 (mul64): Move '%' to beginning of constraint.
22983 * config/arm/arm.md (*xordi3_insn): Likewise.
22984 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22985 (xorsi3): Likewise.
22987 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22989 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22991 2014-05-28 Jason Merrill <jason@redhat.com>
22994 * cgraph.h (symtab_node::get_comdat_group_id): New.
22995 * cgraphunit.c (analyze_functions): Call it.
22996 * symtab.c (dump_symtab_node): Likewise.
22997 * tree.c (decl_comdat_group_id): New.
22998 * tree.h: Declare it.
22999 * lto-streamer-out.c (write_symbol): Use it.
23000 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23002 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23004 PR bootstrap/PR61146
23005 * wide-int.cc: Do not include longlong.h when compiling with clang.
23007 2014-05-28 Richard Biener <rguenther@suse.de>
23009 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23010 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23011 (vrp_visit_assignment_or_call): Print less vertical space.
23012 (vrp_visit_stmt): Likewise.
23013 (vrp_visit_phi_node): Likewise. For a PHI argument with
23014 VR_VARYING range consider recording it as copy.
23016 2014-05-28 Richard Biener <rguenther@suse.de>
23019 2014-05-28 Richard Biener <rguenther@suse.de>
23021 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23023 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23025 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23026 sufficiently aligned and an offset is used at the same time.
23027 (expand_expr_real_1): Likewise.
23029 2014-05-28 Richard Biener <rguenther@suse.de>
23031 PR middle-end/61045
23032 * fold-const.c (fold_comparison): When folding
23033 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23034 the sign of the remaining constant operand stays the same.
23036 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23038 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23039 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23040 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23042 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23043 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23044 (m32bit-doubles) Likewise.
23045 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23046 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23049 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23051 * configure.ac ($gcc_cv_ld_clearcap): New test.
23052 * configure: Regenerate.
23053 * config.in: Regenerate.
23054 * config/sol2.opt (mclear-hwcap): New option.
23055 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23056 * config/sol2-clearcap.map: Moved here from
23057 testsuite/gcc.target/i386/clearcap.map.
23058 * config/sol2-clearcapv2.map: Move here from
23059 gcc.target/i386/clearcapv2.map.
23060 * config/t-sol2 (install): Depend on install-clearcap-map.
23061 (install-clearcap-map): New target.
23062 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23065 2014-05-28 Richard Biener <rguenther@suse.de>
23067 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23068 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23069 ... here and remove the rest.
23070 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23072 2014-05-28 Richard Biener <rguenther@suse.de>
23074 PR tree-optimization/61335
23075 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23076 new range fails, drop to varying.
23078 2014-05-28 Olivier Hainque <hainque@adacore.com>
23080 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23081 (CPP_SPEC): Add entry for -mcpu=8548.
23082 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23083 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23085 2014-05-28 Tom de Vries <tom@codesourcery.com>
23087 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23088 * lra.c (initialize_lra_reg_info_element): Add init of
23089 actual_call_used_reg_set field.
23090 (lra): Call lra_create_live_ranges before lra_inheritance for
23092 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23094 * lra-constraints.c (need_for_call_save_p): Use
23095 actual_call_used_reg_set instead of call_used_reg_set for
23097 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23099 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23100 Tom de Vries <tom@codesourcery.com>
23102 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23104 (@item -fuse-caller-save): New item.
23106 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23107 Tom de Vries <tom@codesourcery.com>
23109 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23110 OPT_fuse_caller_save.
23112 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23113 Tom de Vries <tom@codesourcery.com>
23115 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23116 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23117 get_call_reg_set_usage.
23118 * resource.c (mark_set_resources, mark_target_live_regs): Use
23119 get_call_reg_set_usage.
23120 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23122 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23123 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23124 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23125 * ira-build.c (ira_create_allocno): Init
23126 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23127 (create_cap_allocno, propagate_allocno_info)
23128 (propagate_some_info_from_allocno)
23129 (copy_info_to_removed_store_destinations): Handle
23130 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23131 * ira-costs.c (ira_tune_allocno_costs): Use
23132 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23134 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23135 Tom de Vries <tom@codesourcery.com>
23137 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23138 and function_used_regs_valid fields.
23139 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23140 find_all_hard_reg_sets.
23141 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23142 (get_call_reg_set_usage): New function.
23143 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23144 * regs.h (get_call_reg_set_usage): Declare.
23146 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23149 * config/dbx.h (License): Add Runtime Library Exception.
23150 * config/newlib-stdint.h (License): Same.
23151 * config/rtems.h (License): Same
23152 * config/initfini-array.h (License): Same
23153 * config/v850/v850.h (License): Same.
23154 * config/v850/v850-opts.h (License): Same
23155 * config/v850/rtems.h (License): Same.
23157 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23160 * doc/extend.texi (Local Labels): Note that label differences are
23161 not supported for AVR.
23163 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23164 Olivier Hainque <hainque@adacore.com>
23166 * rtl.h (set_for_reg_notes): Declare.
23167 * emit-rtl.c (set_for_reg_notes): New function.
23168 (set_unique_reg_note): Use it.
23169 * optabs.c (add_equal_note): Likewise
23171 2014-05-27 Andrew Pinski <apinski@cavium.com>
23173 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23174 Use <w> for the register in assembly template.
23175 (stack_protect_test): Use the mode of operands[0] for the result.
23176 (stack_protect_test_<mode>): Use <w> for the register
23177 in assembly template.
23179 2014-05-27 DJ Delorie <dj@redhat.com>
23181 * config/rx/rx.c (add_vector_labels): New.
23182 (rx_output_function_prologue): Call it.
23183 (rx_handle_func_attribute): Don't require empty arguments.
23184 (rx_handle_vector_attribute): New.
23185 (rx_attribute_table): Add "vector" attribute.
23186 * doc/extend.texi (interrupt, vector): Document new/changed
23187 RX-specific attributes.
23189 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23191 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23193 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23194 predicate to detect a negative quotient.
23196 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23198 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23199 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23200 Add X - Y CMP 0 to X CMP Y transformation.
23201 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23203 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23205 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23208 2014-05-27 Steve Ellcey <sellcey@mips.com>
23210 * config/mips/mips.c: Add include of cgraph.h.
23212 2014-05-27 Richard Biener <rguenther@suse.de>
23214 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23216 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23219 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23220 * config/arm/arm-cores.def (License): Same.
23221 * config/arm/arm-opts.h (License): Same.
23222 * config/arm/aout.h (License): Same.
23223 * config/arm/bpabi.h (License): Same.
23224 * config/arm/elf.h (License): Same.
23225 * config/arm/linux-elf.h (License): Same.
23226 * config/arm/linux-gas.h (License): Same.
23227 * config/arm/netbsd-elf.h (License): Same.
23228 * config/arm/uclinux-eabi.h (License): Same.
23229 * config/arm/uclinux-elf.h (License): Same.
23230 * config/arm/vxworks.h (License): Same.
23232 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23234 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23235 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23236 (arm_init_neon_builtins): Handle NEON_BSWAP.
23237 Define required type nodes.
23238 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23239 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23240 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23241 * config/arm/iterators.md (VDQHSD): New mode iterator.
23243 2014-05-27 Richard Biener <rguenther@suse.de>
23245 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23246 Try using literal operands when comparing value-ranges failed.
23248 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23250 * ira.c (commutative_operand): Adjust for change to recog_data.
23251 [Missing from previous commit.]
23253 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23255 * system.h (TEST_BIT): New macro.
23256 * recog.h (alternative_mask): New type.
23257 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23258 (recog_data_d): Replace alternative_enabled_p array with
23259 enabled_alternatives.
23260 (target_recog): New structure.
23261 (default_target_recog, this_target_recog): Declare.
23262 (get_enabled_alternatives, recog_init): Likewise.
23263 * recog.c (default_target_recog, this_target_recog): New variables.
23264 (get_enabled_alternatives): New function.
23265 (extract_insn): Use it.
23266 (recog_init): New function.
23267 (preprocess_constraints, constrain_operands): Adjust for change to
23269 * postreload.c (reload_cse_simplify_operands): Likewise.
23270 * reload.c (find_reloads): Likewise.
23271 * ira-costs.c (record_reg_classes): Likewise.
23272 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23273 all alternatives after a disabled one would be skipped.
23274 (ira_implicitly_set_insn_hard_regs): Likewise.
23275 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23276 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23277 with enabled_alternatives.
23278 * lra.c (free_insn_recog_data): Update accordingly.
23279 (lra_update_insn_recog_data): Likewise.
23280 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23281 * lra-constraints.c (process_alt_operands): Likewise. Handle
23282 only_alternative as part of the enabled mask.
23283 * target-globals.h (this_target_recog): Declare.
23284 (target_globals): Add a recog field.
23285 (restore_target_globals): Restore this_target_recog.
23286 * target-globals.c: Include recog.h.
23287 (default_target_globals): Initialize recog field.
23288 (save_target_globals): Likewise.
23289 * reginfo.c (reinit_regs): Call recog_init.
23290 * toplev.c (backend_init_target): Likewise.
23292 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23294 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23295 rather than any named insn's code.
23297 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23300 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23301 * config/arm/arm-cores.def (License): Same.
23303 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23305 * tree.h (decl_comdat_group): Declare.
23306 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23307 * tree.c (decl_comdat_group): Here.
23309 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23311 PR rtl-optimization/61222
23312 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23313 the shift, truncate the PLUS operand to the result mode.
23315 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23318 * config/i386/i386.c (ix86_rtx_costs)
23319 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23322 2014-05-26 Martin Jambor <mjambor@suse.cz>
23324 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23327 2014-05-26 Richard Biener <rguenther@suse.de>
23329 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23330 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23331 Provide specializations.
23332 (wi::int_traits <HOST_WIDE_INT>,
23333 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23335 2014-05-26 Alan Modra <amodra@gmail.com>
23338 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23339 params and return a bool. Remove dead code. Update comment.
23340 Assert we have a const_int source. Remove bogus code from
23341 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23342 handling of constants > 2G and reg_equal note, from..
23343 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23344 return value. Update comment. If we can, use a new pseudo
23345 for intermediate calculations.
23346 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23348 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23349 call to rs6000_emit_set_const in splitter.
23350 (movdi_internal64+2, +3): Likewise.
23352 2014-05-26 Richard Biener <rguenther@suse.de>
23354 * system.h: Define __STDC_FORMAT_MACROS before
23355 including inttypes.h.
23356 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23357 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23358 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23359 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23360 HOST_WIDEST_INT_C): Remove.
23361 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23362 if C99 inttypes.h is not available.
23363 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23364 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23365 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23366 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23367 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23368 (struct output_info): Likewise.
23369 (print_statistics): Adjust.
23370 (dump_bitmap_statistics): Likewise.
23371 * bt-load.c (migrate_btr_defs): Print with PRId64.
23372 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23373 (MAX_SAFE_MULTIPLIER): Adjust.
23374 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23375 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23376 dump_cgraph_node): Likewise.
23377 * final.c (dump_basic_block_info): Likewise.
23378 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23379 * gcov.c (format_gcov): Likewise.
23380 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23382 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23383 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23384 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23385 Use PRId64 for dumping.
23386 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23387 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23388 (add_allocno_hard_regs): Adjust.
23389 * loop-doloop.c (doloop_modify): Print using PRId64.
23390 * loop-iv.c (inverse): Compute in uint64_t.
23391 (determine_max_iter, iv_number_of_iterations): Likewise.
23392 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23393 Print using PRId64.
23394 * lto-streamer-out.c (write_symbol): Use uint64_t.
23395 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23396 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23397 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23398 * modulo-sched.c (const_iteration_count): Use int64_t.
23399 (sms_schedule): Dump using PRId64.
23400 * predict.c (dump_prediction): Likewise.
23401 * pretty-print.h (pp_widest_integer): Remove.
23402 * profile.c (get_working_sets, is_edge_inconsistent,
23403 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23404 * tree-pretty-print.c (pp_double_int): Remove case handling
23405 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23406 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23408 (pass_optimize_bswap::execute): Remove restriction on hosts.
23409 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23410 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23411 * tree.c (widest_int_cst_value): Remove.
23412 * tree.h (widest_int_cst_value): Likewise.
23413 * value-prof.c (dump_histogram_value): Print using PRId64.
23414 * gengtype.c (main): Also inject int64_t.
23415 * ggc-page.c (struct max_alignment): Use int64_t.
23416 * alloc-pool.c (struct allocation_object_def): Likewise.
23417 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23419 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23420 * doc/tm.texi: Regenerated.
23421 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23422 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23423 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23424 mmix_output_register_setting): Use [u]int64_t in prototypes.
23425 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23426 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23427 mmix_output_octa, mmix_output_shifted_value): Adjust.
23428 (mmix_intval): Adjust. Remove unreachable case.
23429 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23431 2014-05-26 Richard Biener <rguenther@suse.de>
23433 * configure.ac: Drop __int64 type check. Insist that we
23434 found uint64_t and int64_t.
23435 * hwint.h (HOST_BITS_PER___INT64): Remove.
23436 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23437 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23438 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23439 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23440 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23441 for dst_q_src_df_rms_cdt.
23442 * configure: Regenerate.
23443 * config.in: Likewise.
23445 2014-05-26 Michael Tautschnig <mt@debian.org>
23448 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23449 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23451 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23453 PR rtl-optimization/61278
23454 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23456 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23458 PR rtl-optimization/61220
23459 Part of PR rtl-optimization/61225
23460 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23461 insn; skip split_edge for a block with only one successor.
23463 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23465 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23468 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23470 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23471 (update_vtable_references): New function.
23472 (function_and_variable_visibility): Rewrite also vtable initializers.
23473 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23475 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23477 * ggc.h (ggc_grow): New function.
23478 * ggc-none.c (ggc_grow): New function.
23479 * ggc-page.c (ggc_grow): Likewise.
23481 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23483 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23484 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23485 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23486 varpool_externally_visible_p, can_replace_by_local_alias,
23487 update_visibility_by_resolution_info, function_and_variable_visibility,
23488 pass_data_ipa_function_and_variable_visibility,
23489 make_pass_ipa_function_and_variable_visibility,
23490 whole_program_function_and_variable_visibility,
23491 pass_data_ipa_whole_program_visibility,
23492 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23493 * cgraph.h (cgraph_local_node_p): Declare.
23494 * ipa-visibility.c: New file.
23495 * Makefile.in (OBJS): Add ipa-visiblity.o
23497 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23499 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23500 that var decl is available.
23502 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23504 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23505 symtab_node pointer.
23506 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23507 (find_decls_types_r): Do not walk COMDAT_GROUP.
23508 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23509 * varasm.c (make_decl_one_only): Use set_comdat_group;
23510 create node if needed.
23511 * ipa-inline-transform.c (save_inline_function_body): Update
23512 way we decl->symtab mapping.
23513 * symtab.c (symtab_hash, hash_node, eq_node
23514 symtab_insert_node_to_hashtable): Remove.
23515 (symtab_register_node): Update.
23516 (symtab_unregister_node): Update.
23517 (symtab_get_node): Reimplement as inline function.
23518 (symtab_add_to_same_comdat_group): Update.
23519 (symtab_dissolve_same_comdat_group_list): Update.
23520 (dump_symtab_base): Update.
23521 (verify_symtab_base): Update.
23522 (symtab_make_decl_local): Update.
23523 (fixup_same_cpp_alias_visibility): Update.
23524 (symtab_nonoverwritable_alias): Update.
23525 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23526 * ipa.c (update_visibility_by_resolution_info): UPdate.
23527 * bb-reorder.c: Include cgraph.h
23528 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23529 with comdat groups.
23530 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23531 * cgraph.c (cgraph_get_create_node): Update.
23532 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23534 (symtab_get_node): Make inline.
23535 (symtab_insert_node_to_hashtable): Remove.
23536 (symtab_can_be_discarded): Update.
23537 (decl_comdat_group): New function.
23538 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23540 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23542 (read_comdat_group): New function.
23543 (input_node, input_varpool_node): Use it.
23544 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23546 * mips.c (mips_start_unique_function): Likewise.
23547 (ix86_code_end): Likewise.
23548 (rs6000_code_end): Likweise.
23549 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23551 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23553 * gengtype-state.c (fatal_reading_state): Bring offline.
23554 * optabs.c (widening_optab_handler): Bring offline.
23555 * optabs.h (widening_optab_handler): Likewise.
23556 * final.c (get_attr_length_1): Likewise.
23558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23560 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23562 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23564 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23565 (ppc440-compare): Include shift with dot.
23566 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23567 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23569 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23571 (e6500_sfx2): Include it.
23572 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23573 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23574 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23575 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23576 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23577 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23578 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23579 *lshiftrt_internal1le, *lshiftrt_internal1be,
23580 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23581 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23582 *rotldi3_internal10le, *rotldi3_internal10be,
23583 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23584 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23585 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23586 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23587 define_insns): Use type "shift" in the appropriate alternatives.
23589 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23591 * config/rs6000/rs6000.md (type): Add "logical". Delete
23593 (dot): Adjust comment.
23594 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23595 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23596 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23597 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23598 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23599 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23600 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23601 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23603 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23604 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23605 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23606 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23607 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23608 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23609 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23610 * config/rs6000/8540.md (ppc8540_su): Adjust.
23611 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23612 cell-cmp-microcoded): Adjust.
23613 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23614 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23615 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23616 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23617 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23618 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23619 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23620 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23621 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23623 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23624 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23625 Adjust. Adjust comment.
23626 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23627 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23629 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23631 * config/rs6000/rs6000.md (type): Add "add".
23632 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23633 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23634 define_insns): Use it.
23635 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23637 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23638 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23639 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23640 * config/rs6000/601.md (ppc601-integer): Adjust.
23641 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23642 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23643 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23644 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23645 * config/rs6000/8540.md (ppc8540_su): Adjust.
23646 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23647 cell-cmp-microcoded): Adjust.
23648 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23649 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23650 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23651 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23652 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23653 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23654 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23655 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23656 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23658 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23659 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23660 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23661 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23663 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23665 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23666 "delayed_compare", "var_delayed_compare".
23667 (var_shift): New attribute.
23668 (cell_micro): Adjust.
23669 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23670 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23671 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23672 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23673 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23674 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23675 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23676 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23677 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23678 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23679 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23680 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23681 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23682 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23683 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23684 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23685 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23686 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23687 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23688 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23689 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23690 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23691 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23692 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23693 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23695 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23696 * config/rs6000/440.md (ppc440-integer): Adjust.
23697 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23698 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23699 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23700 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23701 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23702 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23703 * config/rs6000/8540.md (ppc8540_su): Adjust.
23704 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23705 cell-cmp-microcoded): Adjust.
23706 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23707 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23708 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23709 e500mc64_delayed): Adjust.
23710 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23711 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23712 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23713 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23714 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23715 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23716 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23717 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23718 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23720 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23721 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23723 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23725 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23726 (bits): New mode_attr.
23727 (idiv_ldiv): Delete mode_attr.
23728 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23729 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23730 rs6000_adjust_priority, is_nonpipeline_insn,
23731 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23733 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23734 * config/rs6000/440.md (ppc440-idiv): Adjust.
23735 * config/rs6000/476.md (ppc476-idiv): Adjust.
23736 * config/rs6000/601.md (ppc601-idiv): Adjust.
23737 * config/rs6000/603.md (ppc603-idiv): Adjust.
23738 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23739 ppc620-ldiv): Adjust.
23740 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23741 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23742 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23743 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23744 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23745 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23746 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23747 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23748 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23749 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23750 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23751 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23752 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23753 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23754 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23755 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23756 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23757 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23759 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23761 * config/rs6000/rs6000.md (type): Delete "insert_word",
23762 "insert_dword". Add "insert".
23763 (size): Update comment.
23764 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23765 insn_must_be_first_in_group): Adjust.
23766 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23767 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23768 *insvsi_internal6, insvdi_internal): Adjust.
23770 * config/rs6000/40x.md (ppc403-integer): Adjust.
23771 * config/rs6000/440.md (ppc440-integer): Adjust.
23772 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23773 * config/rs6000/601.md (ppc601-integer): Adjust.
23774 * config/rs6000/603.md (ppc603-integer): Adjust.
23775 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23776 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23777 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23778 * config/rs6000/8540.md (ppc8540_su): Adjust.
23779 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23780 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23781 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23782 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23783 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23784 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23785 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23786 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23787 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23788 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23789 * config/rs6000/power7.md (power7-integer): Adjust.
23790 * config/rs6000/power8.md (power8-1cyc): Adjust.
23791 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23792 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23794 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23796 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23797 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23798 (size): New attribute.
23799 (dot): New attribute.
23800 (cell_micro): Adjust.
23801 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23802 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23803 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23804 umuldi3_highpart): Adjust.
23805 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23806 rs6000_adjust_priority, is_nonpipeline_insn,
23807 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23809 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23810 ppc405-imul3): Adjust.
23811 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23812 * config/rs6000/476.md (ppc476-imul): Adjust.
23813 * config/rs6000/601.md (ppc601-imul): Adjust.
23814 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23815 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23816 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23817 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23818 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23820 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23821 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23822 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23823 cell-imul): Adjust.
23824 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23825 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23826 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23827 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23828 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23829 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23830 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23831 power4-lmul, power4-imul, power4-imul3): Adjust.
23832 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23833 power5-lmul, power5-imul, power5-imul3): Adjust.
23834 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23835 power6-lmul, power6-imul, power6-imul3): Adjust.
23836 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23837 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23839 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23840 rs64a-lmul): Adjust.
23841 * config/rs6000/titan.md (titan_imul): Adjust.
23843 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23845 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23846 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23847 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23848 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23849 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23850 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23851 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23852 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23853 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23854 * config/rs6000/titan.md: Delete nonsensical comment.
23855 (titan_imul): Add type imul3.
23856 (titan_mulhw): Remove type imul3; add type halfmul.
23858 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23860 * config/rs6000/rs6000.md (type): Reorder, reformat.
23862 2014-05-23 Martin Jambor <mjambor@suse.cz>
23864 PR tree-optimization/53787
23865 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23866 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23867 analysis_done, update all uses.
23868 * ipa-prop.c: Include domwalk.h
23869 (param_analysis_info): Removed.
23870 (param_aa_status): New type.
23871 (ipa_bb_info): Likewise.
23872 (func_body_info): Likewise.
23873 (ipa_get_bb_info): New function.
23874 (aa_overwalked): Likewise.
23875 (find_dominating_aa_status): Likewise.
23876 (parm_bb_aa_status_for_bb): Likewise.
23877 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23878 (load_from_unmodified_param): Accept func_body_info as a parameter
23879 instead of parms_ainfo.
23880 (parm_ref_data_preserved_p): Changed to use new param AA info.
23881 (parm_ref_data_pass_through_p): Likewise.
23882 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23883 (compute_complex_assign_jump_func): Changed to use new param AA info.
23884 (compute_complex_ancestor_jump_func): Likewise.
23885 (ipa_compute_jump_functions_for_edge): Likewise.
23886 (ipa_compute_jump_functions): Removed.
23887 (ipa_compute_jump_functions_for_bb): New function.
23888 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23890 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23891 and info, moved variable declarations down.
23892 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23894 (ipa_analyze_stmt_uses): Likewise.
23895 (ipa_analyze_params_uses): Removed.
23896 (ipa_analyze_params_uses_in_bb): New function.
23897 (ipa_analyze_controlled_uses): Likewise.
23898 (free_ipa_bb_info): Likewise.
23899 (analysis_dom_walker): New class.
23900 (ipa_analyze_node): Handle node-specific forbidden analysis,
23901 initialize and free func_body_info, use dominator walker.
23902 (ipcp_modif_dom_walker): New class.
23903 (ipcp_transform_function): Create and free func_body_info, use
23904 ipcp_modif_dom_walker, moved a lot of functionality there.
23906 2014-05-23 Marek Polacek <polacek@redhat.com>
23907 Jakub Jelinek <jakub@redhat.com>
23909 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23910 * gcc.c (sanitize_spec_function): Likewise.
23911 * convert.c (convert_to_integer): Include "ubsan.h". Add
23912 floating-point to integer instrumentation.
23913 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23914 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23915 SANITIZE_NONDEFAULT.
23916 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23917 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23918 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23919 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23920 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23921 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23922 float/double/long double.
23923 (ubsan_instrument_float_cast): New function.
23924 * ubsan.h (ubsan_instrument_float_cast): Declare.
23926 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23928 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23930 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23931 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23932 Adjust for tailcalling through registers.
23933 * config/aarch64/aarch64.h (enum reg_class): New caller save
23935 (REG_CLASS_NAMES): Likewise.
23936 (REG_CLASS_CONTENTS): Likewise.
23937 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23938 Allow tailcalling without decls.
23940 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23942 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23943 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23945 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23946 gsi, and variables v_* to v*.
23948 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23950 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23952 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23954 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23955 * omp-low.c: Update accordingly.
23957 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23958 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23959 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23960 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23961 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23962 GF_OMP_TARGET_KIND_UPDATE.
23964 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23965 Explicitly enumerate the expected region types.
23967 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23970 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23971 documentation; the old documentation didn't clearly state the
23972 constraints on the contents of the pointed-to storage.
23974 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23976 Fix bootstrap error on ia64
23977 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23978 Return default value.
23980 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23982 PR tree-optimization/54733
23983 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23985 (find_bswap_or_nop_load): New.
23986 (find_bswap_1): Renamed to ...
23987 (find_bswap_or_nop_1): This. Also add support for memory source.
23988 (find_bswap): Renamed to ...
23989 (find_bswap_or_nop): This. Also add support for memory source and
23990 detection of bitwise operations equivalent to load in target
23992 (execute_optimize_bswap): Likewise. Also move its leading comment back
23993 in place and split statement transformation into ...
23994 (bswap_replace): This.
23996 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23998 PR rtl-optimization/61215
23999 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24000 simplify_gen_subreg until final substitution.
24002 2014-05-23 Alan Modra <amodra@gmail.com>
24005 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24006 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24007 Use "Y" constraint rather than "m".
24009 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24011 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24013 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24014 New function declaration.
24015 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24016 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24017 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24018 (aarch64_init_builtins) : Initialize builtins
24019 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24020 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24021 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24022 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24023 and __builtins_aarch64_set_fpsr.
24024 (aarch64_atomic_assign_expand_fenv): New function.
24025 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24026 (get_fpcr) : Likewise.
24027 (set_fpsr) : Likewise.
24028 (get_fpsr) : Likewise.
24029 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24030 and UNSPECV_SET_FPSR.
24031 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24032 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24033 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24035 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24037 PR rtl-optimization/60969
24038 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24039 constraints. Set up mem cost for NO_REGS case.
24041 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24043 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24045 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24047 * config/darwin.c: Include "lto-section-names.h".
24048 (LTO_SEGMENT_NAME): Don't define.
24049 * config/i386/winnt.c: Include "lto-section-names.h".
24050 * lto-streamer.c: Include "lto-section-names.h".
24051 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24052 * lto-wrapper.c: Include "lto-section-names.h".
24053 (LTO_SECTION_NAME_PREFIX): Don't define.
24054 * lto-section-names.h: New file.
24055 * cgraphunit.c: Include "lto-section-names.h".
24057 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24059 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24061 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24064 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24066 2014-05-22 Nick Clifton <nickc@redhat.com>
24068 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24070 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24072 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24073 -> (T)A transformation to integer types.
24075 2014-05-22 Teresa Johnson <tejohnson@google.com>
24077 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24078 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24079 (gcov_rewrite): Use gcov_nonruntime_assert.
24080 (gcov_open): Ditto.
24081 (gcov_write_words): Ditto.
24082 (gcov_write_length): Ditto.
24083 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24084 gcc_assert from IN_LIBGCOV code.
24085 (gcov_read_summary): Use gcov_error to flag profile corruption.
24086 (gcov_sync): Use gcov_nonruntime_assert.
24087 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24088 (gcov_histo_index): Use gcov_nonruntime_assert.
24089 (static void gcov_histogram_merge): Ditto.
24090 (compute_working_sets): Ditto.
24091 * gcov-io.h (gcov_nonruntime_assert): Define.
24092 (gcov_error): Define for !IN_LIBGCOV
24094 2014-05-22 Richard Biener <rguenther@suse.de>
24096 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24097 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24098 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24099 and deallocation site.
24100 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24101 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24102 passing through the incoming points-to set.
24103 (handle_lhs_call): Use flags argument instead of recomputing it.
24104 (find_func_aliases_for_call): Call handle_lhs_call with proper
24107 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24109 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24110 all padding bits in REAL_VALUE_TYPE are cleared.
24112 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24114 Cleanup and improve multipass_dfa_lookahead_guard
24115 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24116 (core2i7_first_cycle_multipass_begin,)
24117 (core2i7_first_cycle_multipass_issue,)
24118 (core2i7_first_cycle_multipass_backtrack): Update signature.
24119 * config/ia64/ia64.c
24120 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24121 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24122 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24124 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24125 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24127 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24129 * doc/tm.texi: Regenerate.
24131 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24132 * haifa-sched.c (ready_try): Make signed to allow negative values.
24133 (rebug_ready_list_1): Update.
24134 (choose_ready): Simplify.
24135 (sched_extend_ready_list): Update.
24137 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24139 Remove IA64 speculation tweaking flags
24140 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24141 speculation tuning flags.
24142 (msched-prefer-non-data-spec-insns,)
24143 (msched-prefer-non-control-spec-insns): Obsolete options.
24144 * haifa-sched.c (choose_ready): Remove handling of
24145 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24146 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24147 and PREFER_NON_DATA_SPEC.
24148 * sel-sched.c (process_spec_exprs): Remove handling of
24149 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24151 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24153 Improve scheduling debug output
24154 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24155 (advance_one_cycle): Update.
24156 (schedule_insn, queue_to_ready): Add debug printouts.
24157 (debug_ready_list_1): New static function.
24158 (debug_ready_list): Update.
24159 (max_issue): Add debug printouts.
24160 (dump_insn_stream): New static function.
24161 (schedule_block): Use it. Also better indent printouts.
24163 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24165 Fix sched_insn debug counter
24166 * haifa-sched.c (schedule_insn): Update.
24167 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24168 (save_backtrack_point, restore_backtrack_point): Update.
24169 (first_nonscheduled_insn): New static function.
24170 (queue_to_ready, choose_ready): Use it.
24171 (schedule_block): Init nonscheduled_insns_begin.
24172 (sched_emit_insn): Update.
24175 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24177 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24179 (aarch64_secondary_reload) : LikeWise.
24180 (aarch64_class_max_nregs) : Remove CORE_REGS.
24181 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24182 (REG_CLASS_NAMES) : Likewise.
24183 (REG_CLASS_CONTENTS) : LikeWise.
24184 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24186 2014-05-21 Guozhi Wei <carrot@google.com>
24189 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24191 (vqdmulhq_n_s16): Likewise.
24193 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24195 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24197 2014-05-21 Marek Polacek <polacek@redhat.com>
24200 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24202 2014-05-21 Martin Jambor <mjambor@suse.cz>
24204 * doc/invoke.texi (Optimize Options): Document parameters
24205 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24206 ipa-cp-array-index-hint-bonus.
24208 2014-05-21 Mark Wielaard <mjw@redhat.com>
24211 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24212 version >= 3 or not strict DWARF.
24213 * langhooks.h (struct lang_hooks_for_types): Add
24214 enum_underlying_base_type.
24215 * langhooks.c (lhd_enum_underlying_base_type): New function.
24216 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24217 enum_underlying_base_type.
24218 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24219 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24220 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24222 2014-05-21 Richard Biener <rguenther@suse.de>
24224 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24226 2014-05-21 John Marino <gnugcc@marino.st>
24228 * config.gcc (*-*-dragonfly*): New target.
24229 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24230 * configure: Regenerate.
24231 * config/dragonfly-stdint.h: New.
24232 * config/dragonfly.h: New.
24233 * config/dragonfly.opt: New.
24234 * config/i386/dragonfly.h: New.
24235 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24237 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24239 * tree.def (VOID_CST): New.
24240 * tree-core.h (TI_VOID): New.
24241 * tree.h (void_node): New.
24242 * tree.c (tree_node_structure_for_code, tree_code_size)
24243 (iterative_hash_expr): Handle VOID_CST.
24244 (build_common_tree_nodes): Initialize void_node.
24246 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24248 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24250 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24252 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24255 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24256 flag_reorder_blocks_and_partition.
24257 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24259 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24262 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24264 (*addc_r_t): Add new insn_and_split.
24266 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24268 PR middle-end/61252
24269 * omp-low.c (handle_simd_reference): New function.
24270 (lower_rec_input_clauses): Use it. Defer adding reference
24271 initialization even for reduction without placeholder if in simd,
24272 handle it properly later on.
24274 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24276 PR tree-optimization/60899
24277 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24278 assume all static symbols will have definition wile parsing and
24279 check the do have definition later in compilation; check that
24280 variable referring symbol will be output before concluding that
24281 reference is safe; be conservative for referring local statics;
24282 be more precise about when comdat is output in other partition.
24284 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24287 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24289 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24290 (ipa_inline): Loop inline_to_all_callers until no more aliases
24293 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24295 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24296 set writeonly flag only for vars actually written to.
24298 2014-05-20 Dehao Chen <dehao@google.com>
24300 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24301 and callee count to get clone count.
24302 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24303 count in copy_body.
24305 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24307 PR rtl-optimization/61243
24308 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24310 2014-05-20 Xinliang David Li <davidxl@google.com>
24312 * cgraphunit.c (walk_polymorphic_call_targets): Add
24313 dbgcnt and fopt-info support.
24314 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24315 * ipa-devirt.c (ipa_devirt): Ditto.
24316 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24317 * ipa.c (walk_polymorphic_call_targets): Ditto.
24318 * gimple-fold.c (fold_gimple_assign): Ditto.
24319 (gimple_fold_call): Ditto.
24320 * dbgcnt.def: New counter.
24322 2014-05-20 DJ Delorie <dj@redhat.com>
24324 * config/msp430/msp430.md (split): Don't allow subregs when
24325 splitting SImode adds.
24326 (andneghi): Fix subtraction logic.
24327 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24329 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24331 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24333 * except.c (switch_to_exception_section, resolve_unique_section,
24334 get_named_text_section, default_function_rodata_section,
24335 align_variable, get_block_for_decl, default_section_type_flags):
24336 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24337 * symtab.c (symtab_add_to_same_comdat_group,
24338 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24339 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24341 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24342 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24343 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24344 (c6x_function_in_section_p): Likewise.
24345 * config/darwin.c (machopic_select_section): Likewise.
24346 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24347 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24348 * config/mep/mep.c (mep_select_section): LIkewise.
24349 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24351 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24353 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24354 EH region of calls to pure functions that can throw an exception.
24355 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24356 (copy_reference_ops_from_call): Also copy the EH region of the call if
24357 it can throw an exception.
24359 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24361 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24362 nested VEC_SELECTs that are inverses of each other.
24364 2014-05-20 Richard Biener <rguenther@suse.de>
24366 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24367 (extract_and_process_scc_for_name): not here.
24368 (cond_dom_walker::before_dom_children): Only process
24369 stmts that end the BB in interesting ways.
24370 (run_scc_vn): Mark param uses as visited.
24372 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24374 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24377 2014-05-20 Nick Clifton <nickc@redhat.com>
24379 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24380 (msp430_gimplify_va_arg_expr): New function.
24381 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24383 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24384 operand 0 in order to prevent confusion about the number of
24385 registers involved.
24387 2014-05-20 Richard Biener <rguenther@suse.de>
24389 PR tree-optimization/61221
24390 * tree-ssa-pre.c (el_to_update): Remove.
24391 (eliminate_dom_walker::before_dom_children): Handle released
24392 VDEFs by value-numbering them to the associated VUSE. Update
24393 stmt immediately for substituted call address.
24394 (eliminate): Remove delayed stmt updating code.
24395 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24396 possibly late re-numbered vuses.
24397 (vn_reference_lookup_2): Adjust.
24398 (vn_reference_lookup_pieces): Likewise.
24399 (vn_reference_lookup): Likewise.
24401 2014-05-20 Richard Biener <rguenther@suse.de>
24403 * config.gcc: Remove need_64bit_hwint.
24404 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24405 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24407 * config.in: Regenerate.
24408 * configure: Likewise.
24410 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24412 * doc/extend.texi: Create Label Attributes section,
24413 move all label attributes into it and reference it.
24415 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24417 * arm.c (thumb1_reorg): When scanning backwards skip anything
24418 that's not a proper insn.
24420 2014-05-19 Richard Biener <rguenther@suse.de>
24422 PR tree-optimization/61221
24423 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24424 Do nothing for unreachable blocks.
24425 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24426 Improve unreachability detection.
24428 2014-05-19 Richard Biener <rguenther@suse.de>
24430 PR tree-optimization/61209
24431 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24433 2014-05-19 Nick Clifton <nickc@redhat.com>
24435 * except.c (init_eh): Fix computation of builtin setjmp buffer
24436 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24438 2014-05-19 Richard Biener <rguenther@suse.de>
24440 PR tree-optimization/61184
24441 * tree-vrp.c (is_negative_overflow_infinity): Use
24442 TREE_OVERFLOW_P and do that check first.
24443 (is_positive_overflow_infinity): Likewise.
24444 (is_overflow_infinity): Likewise.
24445 (vrp_operand_equal_p): Properly treat operands with
24446 differing overflow as not equal.
24448 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24450 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24451 shift simplification where it was intended.
24453 2014-05-19 Christian Bruel <christian.bruel@st.com>
24456 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24458 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24461 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24464 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24466 * reg-notes.def (CROSSING_JUMP): Likewise.
24467 * rtl.h (rtx_def): Update comment for jump flag.
24468 (CROSSING_JUMP_P): Define.
24469 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24470 of a REG_CROSSING_JUMP note.
24471 * cfghooks.c (tidy_fallthru_edges): Likewise.
24472 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24473 * emit-rtl.c (try_split): Likewise.
24474 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24475 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24476 * jump.c (redirect_jump_2): Likewise.
24477 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24478 (relax_delay_slots): Likewise.
24479 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24480 (bbit_di): Likewise.
24481 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24482 * config/sh/sh.md (jump_compact): Likewise.
24483 * bb-reorder.c (rotate_loop): Likewise.
24484 (pass_duplicate_computed_gotos::execute): Likewise.
24485 (add_reg_crossing_jump_notes): Rename to...
24486 (update_crossing_jump_flags): ...this.
24487 (pass_partition_blocks::execute): Update accordingly.
24489 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24491 * tree.h: Remove extraneous template <>.
24493 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24495 * ipa.c (symtab_remove_unreachable_nodes): Remove
24496 symbol from comdat group if its body was eliminated.
24497 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24498 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24499 (symtab_unregister_node): ... this one.
24500 (verify_symtab_base): More strict checking of comdats.
24501 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24503 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24505 * tree-pass.h (make_pass_ipa_comdats): New pass.
24506 * timevar.def (TV_IPA_COMDATS): New timevar.
24507 * passes.def (pass_ipa_comdats): Add.
24508 * Makefile.in (OBJS): Add ipa-comdats.o
24509 * ipa-comdats.c: New file.
24511 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24513 * ipa.c (update_visibility_by_resolution_info): New function.
24514 (function_and_variable_visibility): Use it.
24516 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24518 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24520 (FOR_EACH_DEFINED_SYMBOL): New macro.
24521 (varpool_first_static_initializer, varpool_next_static_initializer,
24522 varpool_first_defined_variable, varpool_next_defined_variable):
24524 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24526 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24528 * ggc-page.c (ggc_handle_finalizers): Add comment.
24530 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24532 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24533 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24534 (ggc_internal_cleared_alloc): Likewise.
24535 * ggc-page.c (finalizer): New class.
24536 (vec_finalizer): Likewise.
24537 (globals::finalizers): New member.
24538 (globals::vec_finalizers): Likewise.
24539 (ggc_internal_alloc): Record the finalizer if any for the block being
24541 (ggc_handle_finalizers): New function.
24542 (ggc_collect): Call ggc_handle_finalizers.
24543 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24545 (ggc_internal_cleared_alloc): Likewise.
24546 (finalize): New function.
24547 (need_finalization_p): Likewise.
24548 (ggc_alloc): Install the type's destructor as the finalizer if it
24549 might do something.
24550 (ggc_cleared_alloc): Likewise.
24551 (ggc_vec_alloc): Likewise.
24552 (ggc_cleared_vec_alloc): Likewise.
24554 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24556 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24558 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24560 * alias.c (record_alias_subset): Adjust.
24561 * bitmap.c (bitmap_element_allocate): Likewise.
24562 (bitmap_gc_alloc_stat): Likewise.
24563 * cfg.c (init_flow): Likewise.
24564 (alloc_block): Likewise.
24565 (unchecked_make_edge): Likewise.
24566 * cfgloop.c (alloc_loop): Likewise.
24567 (flow_loops_find): Likewise.
24568 (rescan_loop_exit): Likewise.
24569 * cfgrtl.c (init_rtl_bb_info): Likewise.
24570 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24571 (cgraph_allocate_node): Likewise.
24572 (cgraph_create_edge_1): Likewise.
24573 (cgraph_allocate_init_indirect_info): Likewise.
24574 * cgraphclones.c (cgraph_clone_edge): Likewise.
24575 * cgraphunit.c (add_asm_node): Likewise.
24576 (init_lowered_empty_function): Likewise.
24577 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24578 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24579 (alpha_use_linkage): Likewise.
24580 * config/arc/arc.c (arc_init_machine_status): Likewise.
24581 * config/arm/arm.c (arm_init_machine_status): Likewise.
24582 * config/avr/avr.c (avr_init_machine_status): Likewise.
24583 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24584 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24585 * config/cris/cris.c (cris_init_machine_status): Likewise.
24586 * config/darwin.c (machopic_indirection_name): Likewise.
24587 (darwin_build_constant_cfstring): Likewise.
24588 (darwin_enter_string_into_cfstring_table): Likewise.
24589 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24590 * config/frv/frv.c (frv_init_machine_status): Likewise.
24591 * config/i386/i386.c (get_dllimport_decl): Likewise.
24592 (ix86_init_machine_status): Likewise.
24593 (assign_386_stack_local): Likewise.
24594 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24595 (i386_pe_maybe_record_exported_symbol): Likewise.
24596 (i386_pe_record_stub): Likewise.
24597 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24598 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24599 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24600 (m32c_note_pragma_address): Likewise.
24601 * config/mep/mep.c (mep_init_machine_status): Likewise.
24602 (mep_note_pragma_flag): Likewise.
24603 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24604 (mips16_local_alias): Likewise.
24605 (mips_init_machine_status): Likewise.
24606 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24607 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24608 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24609 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24610 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24611 * config/pa/pa.c (pa_init_machine_status): Likewise.
24612 (pa_get_deferred_plabel): Likewise.
24613 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24614 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24615 (rs6000_init_machine_status): Likewise.
24616 (output_toc): Likewise.
24617 * config/s390/s390.c (s390_init_machine_status): Likewise.
24618 * config/score/score.c (score_output_external): Likewise.
24619 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24620 * config/spu/spu.c (spu_init_machine_status): Likewise.
24621 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24622 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24623 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24624 * coverage.c (coverage_end_function): Likewise.
24625 * dbxout.c (dbxout_init): Likewise.
24626 * doc/gty.texi: Don't mention variable_size attribute.
24627 * dwarf2cfi.c (new_cfi): Adjust.
24628 (new_cfi_row): Likewise.
24629 (copy_cfi_row): Likewise.
24630 (create_cie_data): Likewise.
24631 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24632 (new_loc_descr): Likewise.
24633 (find_AT_string_in_table): Likewise.
24634 (add_addr_table_entry): Likewise.
24635 (new_die): Likewise.
24636 (add_var_loc_to_decl): Likewise.
24637 (clone_die): Likewise.
24638 (clone_as_declaration): Likewise.
24639 (break_out_comdat_types): Likewise.
24640 (new_loc_list): Likewise.
24641 (add_loc_descr_to_each): Likewise.
24642 (add_location_or_const_value_attribute): Likewise.
24643 (add_linkage_name): Likewise.
24644 (lookup_filename): Likewise.
24645 (dwarf2out_var_location): Likewise.
24646 (new_line_info_table): Likewise.
24647 (dwarf2out_init): Likewise.
24648 (mem_loc_descriptor): Likewise.
24649 (loc_descriptor): Likewise.
24650 (add_const_value_attribute): Likewise.
24651 (tree_add_const_value_attribute): Likewise.
24652 (comp_dir_string): Likewise.
24653 (dwarf2out_vms_debug_main_pointer): Likewise.
24654 (string_cst_pool_decl): Likewise.
24655 * emit-rtl.c (set_mem_attrs): Likewise.
24656 (get_reg_attrs): Likewise.
24657 (start_sequence): Likewise.
24658 (init_emit): Likewise.
24659 (init_emit_regs): Likewise.
24660 * except.c (init_eh_for_function): Likewise.
24661 (gen_eh_region): Likewise.
24662 (gen_eh_region_catch): Likewise.
24663 (gen_eh_landing_pad): Likewise.
24664 (add_call_site): Likewise.
24665 * function.c (add_frame_space): Likewise.
24666 (insert_temp_slot_address): Likewise.
24667 (assign_stack_temp_for_type): Likewise.
24668 (get_hard_reg_initial_val): Likewise.
24669 (allocate_struct_function): Likewise.
24670 (prepare_function_start): Likewise.
24671 (types_used_by_var_decl_insert): Likewise.
24672 * gengtype.c (variable_size_p): Remove function.
24673 (enum alloc_quantity): Remove enum.
24674 (write_typed_alloc_def): Remove function.
24675 (write_typed_struct_alloc_def): Likewise.
24676 (write_typed_typedef_alloc_def): Likewise.
24677 (write_typed_alloc_defns): Likewise.
24679 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24680 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24681 * ggc.h (ggc_alloc): new function.
24682 (ggc_cleared_alloc): Likewise.
24683 (ggc_vec_alloc): Template on type of vector element, and remove
24684 element size argument.
24685 (ggc_cleared_vec_alloc): Likewise.
24686 * gimple.c (gimple_build_omp_for): Adjust.
24687 (gimple_copy): Likewise.
24688 * ipa-cp.c (get_replacement_map): Likewise.
24689 (find_aggregate_values_for_callers_subset): Likewise.
24690 (known_aggs_to_agg_replacement_list): Likewise.
24691 * ipa-devirt.c (get_odr_type): Likewise.
24692 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24693 (read_agg_replacement_chain): Likewise.
24694 * loop-iv.c (get_simple_loop_desc): Likewise.
24695 * lto-cgraph.c (input_node_opt_summary): Likewise.
24696 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24697 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24698 (input_eh_region): Likewise.
24699 (input_eh_lp): Likewise.
24700 (input_cfg): Likewise.
24701 * optabs.c (set_optab_libfunc): Likewise.
24702 (init_tree_optimization_optabs): Likewise.
24703 (set_conv_libfunc): Likewise.
24704 * passes.c (do_per_function_toporder): Likewise.
24705 * rtl.h: Don't use variable_size gty attribute.
24706 * sese.c (if_region_set_false_region): Adjust.
24707 * stringpool.c (gt_pch_save_stringpool): Likewise.
24708 * target-globals.c (save_target_globals): Likewise.
24709 * toplev.c (general_init): Likewise.
24710 * trans-mem.c (record_tm_replacement): Likewise.
24711 (split_bb_make_tm_edge): Likewise.
24712 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24713 * tree-data-ref.h (lambda_vector_new): Likewise.
24714 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24715 * tree-iterator.c (tsi_link_before): Likewise.
24716 (tsi_link_after): Likewise.
24717 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24718 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24719 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24720 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24721 * tree-ssa.c (init_tree_ssa): Adjust.
24722 * tree-ssanames.c (set_range_info): Likewise.
24723 (get_ptr_info): Likewise.
24724 (duplicate_ssa_name_ptr_info): Likewise.
24725 (duplicate_ssa_name_range_info): Likewise.
24726 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24727 (unpack_ts_fixed_cst_value_fields): Likewise.
24728 * tree.c (build_fixed): Likewise.
24729 (build_real): Likewise.
24730 (build_string): Likewise.
24731 (decl_priority_info): Likewise.
24732 (decl_debug_expr_insert): Likewise.
24733 (decl_value_expr_insert): Likewise.
24734 (decl_debug_args_insert): Likewise.
24735 (type_hash_add): Likewise.
24736 (build_omp_clause): Likewise.
24737 * ubsan.c (decl_for_type_insert): Likewise.
24738 * varasm.c (get_unnamed_section): Likewise.
24739 (get_noswitch_section): Likewise.
24740 (get_section): Likewise.
24741 (get_block_for_section): Likewise.
24742 (create_block_symbol): Likewise.
24743 (build_constant_desc): Likewise.
24744 (create_constant_pool): Likewise.
24745 (force_const_mem): Likewise.
24746 (record_tm_clone_pair): Likewise.
24747 * varpool.c (varpool_create_empty_node): Likewise.
24749 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24751 * dwarf2out.c (tree_add_const_value_attribute): Call
24752 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24753 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24754 instead of ggc_internal_<x>alloc_stat.
24755 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24756 (ggc_realloc): Likewise.
24757 * ggc-none.c (ggc_internal_alloc): Likewise.
24758 (ggc_internal_cleared_alloc): Likewise.
24759 * ggc-page.c: Likewise.
24760 * ggc.h (ggc_internal_alloc_stat): Likewise.
24761 (ggc_internal_alloc): Remove macro.
24762 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24763 (ggc_internal_cleared_alloc): Remove macro.
24764 (GGC_RESIZEVEC): Adjust.
24765 (ggc_resizevar): Remove macro.
24766 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24767 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24768 (ggc_internal_vec_cleared_alloc): Remove macro.
24769 (ggc_alloc_atomic_stat): Drop _stat suffix.
24770 (ggc_alloc_atomic): Remove macro.
24771 (ggc_alloc_cleared_atomic): Remove macro.
24772 (ggc_alloc_string_stat): Drop _stat suffix.
24773 (ggc_alloc_string): Remove macro.
24774 (ggc_alloc_rtx_def_stat): Adjust.
24775 (ggc_alloc_tree_node_stat): Likewise.
24776 (ggc_alloc_cleared_tree_node_stat): Likewise.
24777 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24778 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24779 * gimple.c (gimple_build_omp_for): Likewise.
24780 (gimple_copy): Likewise.
24781 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24782 * toplev.c (realloc_for_line_map): Adjust.
24783 * tree-data-ref.h (lambda_vector_new): Likewise.
24784 * tree-phinodes.c (allocate_phi_node): Likewise.
24785 * tree.c (grow_tree_vec_stat): Likewise.
24786 * vec.h (va_gc::reserve): Adjust.
24788 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24790 * config/microblaze/microblaze.c (break_handler): New Declaration.
24791 (microblaze_break_function_p,microblaze_is_break_handler): New.
24792 (compute_frame_size): Use microblaze_break_function_p.
24793 Add the test of break_handler.
24794 (microblaze_function_prologue) : Add the test of variable
24795 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24796 (microblaze_function_epilogue) : Add the test of break_handler.
24797 (microblaze_globalize_label) : Add the test of break_handler.
24798 Check the name by BREAK_HANDLER_NAME.
24800 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24802 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24803 microblaze_is_break_handler test.
24804 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24805 Use SYMBOL_REF_DECL.
24807 * config/microblaze/microblaze-protos.h
24808 (microblaze_break_function_p,microblaze_is_break_handler):
24811 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24812 new MicroBlaze break_handler functions.
24814 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24816 * doc/extend.texi (Size of an asm): Move node text according
24817 to its @menu entry position.
24819 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24821 PR tree-optimization/61140
24822 PR tree-optimization/61150
24823 PR tree-optimization/61197
24824 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24826 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24828 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24830 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24832 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24833 __SIZEOF_INT128__ is defined.
24835 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24837 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24838 (rs6000_delegitimize_address): Use it.
24840 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24842 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24843 inplace argument. Store the new address in the original MEM when true.
24844 * emit-rtl.c (change_address_1): Likewise.
24845 (adjust_address_1, adjust_automodify_address_1, offset_address):
24846 Update accordingly.
24847 * rtl.h (plus_constant): Add an inplace argument.
24848 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24849 when true. Avoid generating (plus X (const_int 0)).
24850 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24851 in-place. Pass true to plus_constant.
24852 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24854 2014-05-16 Dehao Chen <dehao@google.com>
24856 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24858 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24861 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24863 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24865 2014-05-16 Dehao Chen <dehao@google.com>
24867 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24868 optimize_function_for_size_p.
24869 * regs.h (REG_FREQ_FROM_BB): Likewise.
24871 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24874 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24875 negt_reg_operand cases.
24876 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24878 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24880 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24882 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24885 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24888 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24890 * tree-cfg.c (dump_function_to_file): Dump the return type of
24891 functions, in a line to itself before the function body, mimicking
24892 the layout of a C function.
24894 2014-05-16 Dehao Chen <dehao@google.com>
24896 * cfghooks.c (make_forwarder_block): Use direct computation to
24897 get fall-through edge's count and frequency.
24899 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24901 * config/arc/arc.c (arc_init): Fix typo in error message.
24902 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24903 (split_stack_prologue_scratch_regno): Likewise.
24904 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24905 word from error message.
24907 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24909 * ira-costs.c: Fix typo in comment.
24911 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24913 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24915 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24917 * varpool.c (dump_varpool_node): Dump write-only flag.
24918 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24920 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24921 write-only variables.
24922 * ipa.c (process_references): New function.
24923 (set_readonly_bit): New function.
24924 (set_writeonly_bit): New function.
24925 (clear_addressable_bit): New function.
24926 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24927 fix handling of aliases.
24928 * cgraph.h (struct varpool_node): Add writeonly flag.
24930 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24932 PR rtl-optimization/60969
24933 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24934 Calculate costs for this case.
24936 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24938 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24939 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24941 2014-05-16 Richard Biener <rguenther@suse.de>
24943 PR tree-optimization/61194
24944 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24945 bool patterns ending in a COND_EXPR.
24947 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24949 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24951 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24953 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24954 where we were unable to cost an RTX.
24956 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24961 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24962 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24964 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24967 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24970 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24972 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24973 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24975 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24978 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24979 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24981 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24984 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24985 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24987 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24988 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24990 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24991 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24993 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24994 rotates and shifts.
24996 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24997 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24999 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25000 ZERO_EXTEND and SIGN_EXTEND better.
25002 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25003 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25006 logical operations.
25008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25012 costs when costing loads and stores to memory.
25014 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25015 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25017 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25020 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25024 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25025 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25027 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25029 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25031 (aarch64_rtx_mult_cost): New.
25032 (aarch64_rtx_costs): Use it, refactor as appropriate.
25034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25035 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25037 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25038 emit instructions, return number of instructions which would
25040 (aarch64_add_constant): Update call to aarch64_build_constant.
25041 (aarch64_output_mi_thunk): Likewise.
25042 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25045 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25047 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25048 (TARGET_RTX_COSTS): Call it.
25050 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25052 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25053 (cortexa57_vector_cost): Likewise.
25054 (cortexa57_tunings): Use them.
25056 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25058 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25059 (cpu_addrcost_table): Use it.
25060 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25061 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25064 2014-05-16 Richard Biener <rguenther@suse.de>
25066 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25067 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25068 (visit_phi): Ignore edges marked as not executable.
25069 (class cond_dom_walker): New.
25070 (cond_dom_walker::before_dom_children): Value-number
25071 control statements and mark successor edges as not
25072 executable if possible.
25073 (run_scc_vn): First walk all control statements in
25074 dominator order, marking edges as not executable.
25075 * tree-inline.c (copy_edges_for_bb): Be not confused
25076 about random edge flags.
25078 2014-05-16 Richard Biener <rguenther@suse.de>
25080 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25082 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25085 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25086 (__TM_simple_begin): Use it.
25087 (__TM_begin): Likewise.
25089 2014-05-15 Martin Jambor <mjambor@suse.cz>
25092 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25093 type_preserved flag when the indirect edge is polymorphic.
25095 2014-05-15 Martin Jambor <mjambor@suse.cz>
25097 PR tree-optimization/61090
25098 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25099 build_ref_for_model.
25101 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25103 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25104 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25106 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25108 PR tree-optimization/61158
25109 * fold-const.c (fold_binary_loc): If X is zero-extended and
25110 shiftc >= prec, make sure zerobits is all ones instead of
25111 invoking undefined behavior.
25113 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25115 * regcprop.h: New file.
25116 * regcprop.c (skip_debug_insn_p): New decl.
25117 (replace_oldest_value_reg): Check skip_debug_insn_p.
25118 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25119 * shrink-wrap.c: Include regcprop.h.
25120 (prepare_shrink_wrap): Call
25121 copyprop_hardreg_forward_bb_without_debug_insn.
25123 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25125 * shrink-wrap.h: Update comment.
25126 * shrink-wrap.c: Update comment.
25127 (next_block_for_reg): Rename to live_edge_for_reg.
25128 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25129 (move_insn_for_shrink_wrap): Split live_edge.
25130 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25132 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25134 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25136 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25137 * config/sparc/sparc.md (fptype_ut699): New attribute.
25138 (in_branch_delay): Return false if -mfix-ut699 is specified and
25139 fptype_ut699 is set to single.
25140 (truncdfsf2): Add fptype_ut699 attribute.
25141 (fix_truncdfsi2): Likewise.
25142 (floatsisf2): Change fptype attribute.
25143 (fix_truncsfsi2): Likewise.
25144 (negtf2_notv9): Delete.
25145 (negtf2_v9): Likewise.
25146 (negtf2_hq): New instruction.
25147 (negtf2): New instruction and splitter.
25148 (negdf2_notv9): Rewrite.
25149 (abstf2_notv9): Delete.
25150 (abstf2_hq_v9): Likewise.
25151 (abstf2_v9): Likewise.
25152 (abstf2_hq): New instruction.
25153 (abstf2): New instruction and splitter.
25154 (absdf2_notv9): Rewrite.
25156 2014-05-14 Cary Coutant <ccoutant@google.com>
25159 * opts.c (common_handle_option): Don't special-case "-g".
25160 (set_debug_level): Default to at least level 2 with "-g".
25162 2014-05-14 DJ Delorie <dj@redhat.com>
25164 * config/msp430/msp430.c (msp430_builtin): Add
25165 MSP430_BUILTIN_DELAY_CYCLES.
25166 (msp430_init_builtins): Register void __delay_cycles(long long).
25167 (msp430_builtin_decl): Add it.
25168 (cg_magic_constant): New.
25169 (msp430_expand_delay_cycles): New.
25170 (msp430_expand_builtin): Call it.
25171 (msp430_print_operand_raw): Change integer printing from "int" to
25173 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25174 (delay_cycles_start): New.
25175 (delay_cycles_end): New.
25176 (delay_cycles_32): New.
25177 (delay_cycles_32x): New.
25178 (delay_cycles_16): New.
25179 (delay_cycles_16x): New.
25180 (delay_cycles_2): New.
25181 (delay_cycles_1): New.
25182 * doc/extend.texi: Document __delay_cycles().
25184 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25186 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25187 length attribute computation.
25189 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25192 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25194 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25197 * config/sparc/sparc.md: Fix types of low and high in DI constant
25198 splitter. Use gen_int_mode in some other splitters.
25200 2014-05-14 Martin Jambor <mjambor@suse.cz>
25203 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25205 2014-05-14 James Norris <jnorris@codesourcery.com>
25207 * omp-low.c (expand_parallel_call): Remove shadow variable.
25208 (expand_omp_taskreg): Likewise.
25210 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25212 * common/config/i386/i386-common.c
25213 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25214 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25215 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25216 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25217 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25218 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25219 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25220 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25221 xsavecintrin.h, xsavesintrin.h.
25222 (x86_64-*-*): Ditto.
25223 * config/i386/clflushoptintrin.h: New.
25224 * config/i386/xsavecintrin.h: Ditto.
25225 * config/i386/xsavesintrin.h: Ditto.
25226 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25227 (bit_XSAVES): Ditto.
25228 (bit_XSAVES): Ditto.
25229 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25230 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25232 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25233 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25234 OPTION_MASK_ISA_XSAVES.
25235 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25236 -mxsavec, -mxsaves.
25237 (PTA_CLFLUSHOPT) Define.
25238 (PTA_XSAVEC): Ditto.
25239 (PTA_XSAVES): Ditto.
25240 (ix86_option_override_internal): Handle new options.
25241 (ix86_valid_target_attribute_inner_p): Ditto.
25242 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25243 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25244 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25245 (bdesc_special_args): Add __builtin_ia32_xsaves,
25246 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25247 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25248 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25249 (ix86_expand_builtin): Handle new builtins.
25250 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25251 (TARGET_CLFLUSHOPT_P): Ditto.
25252 (TARGET_XSAVEC): Ditto.
25253 (TARGET_XSAVEC_P): Ditto.
25254 (TARGET_XSAVES): Ditto.
25255 (TARGET_XSAVES_P): Ditto.
25256 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25257 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25258 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25260 (ANY_XRSTOR64): Ditto.
25262 (xrstor): Change into <xrstor>.
25263 (xrstor_rex64): Change into <xrstor>_rex64.
25264 (xrstor64): Change into <xrstor>64
25266 * config/i386/i386.opt (mclflushopt): New.
25269 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25271 * doc/invoke.texi: Document new options.
25273 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25275 PR rtl-optimization/60866
25276 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25277 Default it to -1. Pass it down to init_simplejump_data.
25278 (init_simplejump_data): New parameter old_seqno. Pass it down
25279 to get_seqno_for_a_jump.
25280 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25281 initializing new jump seqno as a last resort. Add comment.
25282 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25283 jump and pass it down to sel_init_new_insn.
25284 (sel_redirect_edge_and_branch_force): Likewise.
25286 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25288 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25289 shifted values to avoid build warning.
25291 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25293 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25294 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25295 (cfg_layout_merge_blocks): Likewise.
25296 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25298 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25300 PR rtl-optimization/60901
25301 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25302 bb predecessor belongs to the same scheduling region. Adjust comment.
25304 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25306 * doc/sourcebuild.texi: (dfp_hw): Document.
25307 (p8vector_hw): Likewise.
25308 (powerpc_eabi_ok): Likewise.
25309 (powerpc_elfv2): Likewise.
25310 (powerpc_htm_ok): Likewise.
25311 (ppc_recip_hw): Likewise.
25312 (vsx_hw): Likewise.
25314 2014-05-13 Cary Coutant <ccoutant@google.com>
25316 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25318 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25320 * gengtype-parse.c (require3): Eliminate in favor of...
25322 (require_template_declaration): Update to support optional single *
25325 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25326 (create_user_defined_type): Handle a single level of explicit
25327 pointerness within template arguments.
25328 (struct write_types_data): Add field "kind".
25329 (filter_type_name): Handle "*" character.
25330 (write_user_func_for_structure_ptr): Require a write_types_data
25331 rather than just a prefix string, so that we can look up the kind
25332 of the wtd and use it as an index into wrote_user_func_for_ptr,
25333 ensuring that such functions are written at most once. Support
25334 subclasses by invoking the marking function of the ultimate base class.
25335 (write_user_func_for_structure_body): Require a write_types_data
25336 rather than just a prefix string, so that we can pass this to
25337 write_user_func_for_structure_ptr.
25338 (write_func_for_structure): Likewise.
25339 (ggc_wtd): Add initializer of new "kind" field.
25340 (pch_wtd): Likewise.
25342 * gengtype.h (enum write_types_kinds): New.
25343 (struct type): Add field wrote_user_func_for_ptr to the "s"
25346 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25348 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25349 instead of const_binop.
25350 (fold_binary_loc): Likewise.
25352 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25354 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25355 calculation to match get_ref_base_and_extent.
25357 2014-05-13 Catherine Moore <clm@codesourcery.com>
25358 Sandra Loosemore <sandra@codesourcery.com>
25360 * configure.ac: Fix assembly for explicit JALR relocation check.
25361 * configure: Regenerate.
25363 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25365 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25366 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25367 Remove associated type declarations and initialisations.
25368 (arm_expand_neon_builtin): Likewise.
25369 (neon_emit_pair_result_insn): Delete.
25370 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25371 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25372 (neon_vzip<mode>): Likewise.
25373 (neon_vuzp<mode>): Likewise.
25375 2014-05-13 Richard Biener <rguenther@suse.de>
25378 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25379 it needs revisiting whether the call still may be tail-called.
25381 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25383 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25384 * rtl.h (block_symbol): Reduce number of fields to 2.
25385 (rtx_def): Add u2.symbol_ref_flags.
25386 (SYMBOL_REF_FLAGS): Use it.
25387 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25388 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25389 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25390 Lower index of SYMBOL_REF_DATA.
25391 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25392 Print SYMBOL_REF_FLAGS at the same time.
25393 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25395 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25397 * rtl.def (VAR_LOCATION): Remove "i" field.
25398 * rtl.h (rtx_def): Add u2.var_location_status.
25399 (PAT_VAR_LOCATION_STATUS): Use it.
25400 (gen_rtx_VAR_LOCATION): Declare.
25401 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25402 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25403 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25405 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25407 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25408 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25410 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25412 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25413 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25414 * rtl.h (rtx_def): Add insn_uid to u2 field.
25415 (RTX_FLAG_CHECK8): Delete in favor of...
25416 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25417 (INSN_DELETED_P): Update accordingly.
25418 (INSN_UID): Use u2.insn_uid.
25419 (INSN_CHAIN_CODE_P): Define.
25420 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25421 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25422 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25423 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25424 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25425 indices accordingly.
25426 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25427 Update indices for insn-chain rtxes.
25428 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25429 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25430 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25431 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25432 * combine.c (try_combine): Likewise.
25433 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25435 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25437 * rtl.def (REG): Remove middle field.
25438 * rtl.h (rtx_def): Add orignal_regno to u2.
25439 (ORIGINAL_REGNO): Use it instead of field 1.
25440 (REG_ATTRS): Lower field index accordingly.
25441 * gengtype.c (adjust_field_rtx_def): Remove handling of
25442 ORIGINAL_REGNO. Move REG_ATTRS index down.
25443 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25444 code that prints the REGNO.
25446 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25448 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25451 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25453 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25455 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25457 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25458 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25460 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25462 * config/aarch64/aarch64-protos.h
25463 (aarch64_hard_regno_caller_save_mode): New prototype.
25464 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25466 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25468 2014-05-13 Christian Bruel <christian.bruel@st.com>
25470 * target.def (mode_switching): New hook vector.
25471 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25472 (mode_exit, modepriority_to_mode): Likewise.
25473 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25474 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25475 * target.h: Include tm.h and hard-reg-set.h.
25476 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25477 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25478 * doc/tm.texi Regenerate.
25479 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25480 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25481 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25482 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25483 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25484 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25485 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25486 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25487 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25488 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25489 (ix86_emit_mode_set): Hookify.
25490 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25492 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25493 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25494 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25495 (epiphany_mode_priority_to_mode): Remove declaration.
25496 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25497 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25498 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25500 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25501 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25502 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25504 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25507 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25508 is const0_rtx, return immediately. Don't test count == 0 when
25511 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25513 * Makefile.in: add shrink-wrap.o.
25514 * config/i386/i386.c: include "shrink-wrap.h"
25515 * function.c: Likewise.
25516 (requires_stack_frame_p, next_block_for_reg,
25517 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25518 dup_block_and_redirect): Move to shrink-wrap.c
25519 (thread_prologue_and_epilogue_insns): Extract three code segments
25520 as functions in shrink-wrap.c
25521 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25523 * shrink-wrap.c: New file.
25524 * shrink-wrap.h: New file.
25526 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25528 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25529 reference to Solaris.
25531 2014-05-12 Mike Stump <mikestump@comcast.net>
25534 * genattrtab.c (filename): Add.
25535 (convert_set_attr_alternative): Improve error message.
25536 (check_defs): Restore read_md_filename for error messages.
25537 (gen_insn): Save filename.
25539 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25541 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25542 -fno-local-ivars and -fivar-visibility.
25543 * c-family/c.opt: Make -Wshadow also implicitly enable
25546 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25548 * doc/tm.texi: Remove reference to deleted macro.
25549 * doc/tm.texi.in: Likewise.
25551 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25554 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25557 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25560 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25561 * config/arm/aout.h (License): Same.
25562 * config/arm/bpabi.h (License): Same.
25563 * config/arm/elf.h (License): Same.
25564 * config/arm/linux-elf.h (License): Same.
25565 * config/arm/linux-gas.h (License): Same.
25566 * config/arm/netbsd-elf.h (License): Same.
25567 * config/arm/uclinux-eabi.h (License): Same.
25568 * config/arm/uclinux-elf.h (License): Same.
25569 * config/arm/vxworks.h (License): Same.
25571 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25573 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25574 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25575 number of operands to 3.
25576 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25577 * tree-nested.c (convert_nonlocal_omp_clauses,
25578 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25579 * gimplify.c (gimplify_scan_omp_clauses): Handle
25580 OMP_CLAUSE_LINEAR_STMT.
25581 * omp-low.c (lower_rec_input_clauses): Fix typo.
25582 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25583 cast between Fortran boolean_type_node and C _Bool if
25586 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25588 PR tree-optimization/61136
25589 * wide-int.h (multiple_of_p): Define a version that doesn't return
25591 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25592 integer_zerop/const_binop pair.
25593 (multiple_of_p): Likewise, converting both operands to widest_int
25596 2014-05-09 Teresa Johnson <tejohnson@google.com>
25598 * cgraphunit.c (analyze_functions): Use correct dump file.
25600 2014-05-09 Florian Weimer <fweimer@redhat.com>
25602 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25604 (stack_protect_return_slot_p): New function.
25605 (expand_used_vars): Call stack_protect_decl_p and
25606 stack_protect_return_slot_p for -fstack-protector-strong.
25608 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25609 Andrew Haley <aph@redhat.com>
25610 Richard Sandiford <rdsandiford@googlemail.com>
25612 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25615 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25617 PR middle-end/61111
25618 * fold-const.c (fold_binary_loc): Changed width of mask.
25620 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25622 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25623 unsigned int initializers for regno_in, regno_out.
25625 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25628 * config/avr/avr.md (cc): Add new attribute set_vzn.
25629 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25630 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25631 with INC, DEC or NEG.
25632 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25633 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25634 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25636 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25639 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25641 * wide-int.cc (UTItype): Define.
25642 (UDWtype): Define for appropriate W_TYPE_SIZE.
25644 2014-05-09 Richard Biener <rguenther@suse.de>
25646 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25647 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25648 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25649 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25650 ssa_propagate): Adjust.
25652 2014-05-08 Jeff Law <law@redhat.com>
25654 PR tree-optimization/61009
25655 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25656 tri-state rather than a boolean. When a block is too big to
25657 thread through, inform caller via negative return value.
25658 (thread_across_edge): If a block was too big for normal threading,
25659 then it's too big for a joiner too, so remove temporary equivalences
25660 and return immediately.
25662 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25663 Matthias Klose <doko@ubuntu.com>
25666 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25668 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25671 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25673 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25676 * config/alpha/alpha.c: Include gimple-iterator.h.
25677 (alpha_gimple_fold_builtin): New function. Move
25678 ALPHA_BUILTIN_UMULH folding from ...
25679 (alpha_fold_builtin): ... here.
25680 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25682 2014-05-08 Wei Mi <wmi@google.com>
25685 * config/i386/i386.c (ix86_compute_frame_layout): Update
25686 preferred_stack_boundary for call, expanded from tls descriptor.
25687 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25688 to depend on SP register.
25689 (*tls_local_dynamic_base_32_gnu): Ditto.
25690 (*tls_local_dynamic_32_once): Ditto.
25691 (tls_global_dynamic_64_<mode>): Set
25692 ix86_tls_descriptor_calls_expanded_in_cfun.
25693 (tls_local_dynamic_base_64_<mode>): Ditto.
25694 (tls_global_dynamic_32): Set
25695 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25696 to depend on SP register.
25697 (tls_local_dynamic_base_32): Ditto.
25699 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25701 * config/arm/arm_neon.h: Update comment.
25702 * config/arm/neon-docgen.ml: Delete.
25703 * config/arm/neon-gen.ml: Delete.
25704 * doc/arm-neon-intrinsics.texi: Update comment.
25706 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25708 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25710 (vand, vorr, veor, vorn, vbic): Remove.
25711 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25713 (neon_vsub_unspec): Likewise.
25714 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25716 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25718 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25719 (vadd_s16): Likewise.
25720 (vadd_s32): Likewise.
25721 (vadd_f32): Likewise.
25722 (vadd_u8): Likewise.
25723 (vadd_u16): Likewise.
25724 (vadd_u32): Likewise.
25725 (vadd_s64): Likewise.
25726 (vadd_u64): Likewise.
25727 (vaddq_s8): Likewise.
25728 (vaddq_s16): Likewise.
25729 (vaddq_s32): Likewise.
25730 (vaddq_s64): Likewise.
25731 (vaddq_f32): Likewise.
25732 (vaddq_u8): Likewise.
25733 (vaddq_u16): Likewise.
25734 (vaddq_u32): Likewise.
25735 (vaddq_u64): Likewise.
25736 (vmul_s8): Likewise.
25737 (vmul_s16): Likewise.
25738 (vmul_s32): Likewise.
25739 (vmul_f32): Likewise.
25740 (vmul_u8): Likewise.
25741 (vmul_u16): Likewise.
25742 (vmul_u32): Likewise.
25743 (vmul_p8): Likewise.
25744 (vmulq_s8): Likewise.
25745 (vmulq_s16): Likewise.
25746 (vmulq_s32): Likewise.
25747 (vmulq_f32): Likewise.
25748 (vmulq_u8): Likewise.
25749 (vmulq_u16): Likewise.
25750 (vmulq_u32): Likewise.
25751 (vsub_s8): Likewise.
25752 (vsub_s16): Likewise.
25753 (vsub_s32): Likewise.
25754 (vsub_f32): Likewise.
25755 (vsub_u8): Likewise.
25756 (vsub_u16): Likewise.
25757 (vsub_u32): Likewise.
25758 (vsub_s64): Likewise.
25759 (vsub_u64): Likewise.
25760 (vsubq_s8): Likewise.
25761 (vsubq_s16): Likewise.
25762 (vsubq_s32): Likewise.
25763 (vsubq_s64): Likewise.
25764 (vsubq_f32): Likewise.
25765 (vsubq_u8): Likewise.
25766 (vsubq_u16): Likewise.
25767 (vsubq_u32): Likewise.
25768 (vsubq_u64): Likewise.
25769 (vand_s8): Likewise.
25770 (vand_s16): Likewise.
25771 (vand_s32): Likewise.
25772 (vand_u8): Likewise.
25773 (vand_u16): Likewise.
25774 (vand_u32): Likewise.
25775 (vand_s64): Likewise.
25776 (vand_u64): Likewise.
25777 (vandq_s8): Likewise.
25778 (vandq_s16): Likewise.
25779 (vandq_s32): Likewise.
25780 (vandq_s64): Likewise.
25781 (vandq_u8): Likewise.
25782 (vandq_u16): Likewise.
25783 (vandq_u32): Likewise.
25784 (vandq_u64): Likewise.
25785 (vorr_s8): Likewise.
25786 (vorr_s16): Likewise.
25787 (vorr_s32): Likewise.
25788 (vorr_u8): Likewise.
25789 (vorr_u16): Likewise.
25790 (vorr_u32): Likewise.
25791 (vorr_s64): Likewise.
25792 (vorr_u64): Likewise.
25793 (vorrq_s8): Likewise.
25794 (vorrq_s16): Likewise.
25795 (vorrq_s32): Likewise.
25796 (vorrq_s64): Likewise.
25797 (vorrq_u8): Likewise.
25798 (vorrq_u16): Likewise.
25799 (vorrq_u32): Likewise.
25800 (vorrq_u64): Likewise.
25801 (veor_s8): Likewise.
25802 (veor_s16): Likewise.
25803 (veor_s32): Likewise.
25804 (veor_u8): Likewise.
25805 (veor_u16): Likewise.
25806 (veor_u32): Likewise.
25807 (veor_s64): Likewise.
25808 (veor_u64): Likewise.
25809 (veorq_s8): Likewise.
25810 (veorq_s16): Likewise.
25811 (veorq_s32): Likewise.
25812 (veorq_s64): Likewise.
25813 (veorq_u8): Likewise.
25814 (veorq_u16): Likewise.
25815 (veorq_u32): Likewise.
25816 (veorq_u64): Likewise.
25817 (vbic_s8): Likewise.
25818 (vbic_s16): Likewise.
25819 (vbic_s32): Likewise.
25820 (vbic_u8): Likewise.
25821 (vbic_u16): Likewise.
25822 (vbic_u32): Likewise.
25823 (vbic_s64): Likewise.
25824 (vbic_u64): Likewise.
25825 (vbicq_s8): Likewise.
25826 (vbicq_s16): Likewise.
25827 (vbicq_s32): Likewise.
25828 (vbicq_s64): Likewise.
25829 (vbicq_u8): Likewise.
25830 (vbicq_u16): Likewise.
25831 (vbicq_u32): Likewise.
25832 (vbicq_u64): Likewise.
25833 (vorn_s8): Likewise.
25834 (vorn_s16): Likewise.
25835 (vorn_s32): Likewise.
25836 (vorn_u8): Likewise.
25837 (vorn_u16): Likewise.
25838 (vorn_u32): Likewise.
25839 (vorn_s64): Likewise.
25840 (vorn_u64): Likewise.
25841 (vornq_s8): Likewise.
25842 (vornq_s16): Likewise.
25843 (vornq_s32): Likewise.
25844 (vornq_s64): Likewise.
25845 (vornq_u8): Likewise.
25846 (vornq_u16): Likewise.
25847 (vornq_u32): Likewise.
25848 (vornq_u64): Likewise.
25850 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25852 * wide-int.cc (UTItype): Define.
25853 (UDWtype): Define for appropriate W_TYPE_SIZE.
25855 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25857 PR tree-optimization/59100
25858 * tree-ssa-phiopt.c: Include tree-inline.h.
25859 (neutral_element_p, absorbing_element_p): New functions.
25860 (value_replacement): Handle conditional binary operations with a
25861 neutral or absorbing element.
25863 2014-05-08 Richard Biener <rguenther@suse.de>
25865 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25866 folding the expression.
25867 (valueize_expr): Remove.
25868 (visit_reference_op_load): Do not valueize the result of
25870 (simplify_binary_expression): Likewise.
25871 (simplify_unary_expression): Likewise.
25873 2014-05-08 Richard Biener <rguenther@suse.de>
25875 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25876 looking at TYPE_ARG_TYPES.
25878 2014-05-08 Richard Biener <rguenther@suse.de>
25880 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25881 pointer propagation special-case.
25883 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25885 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25886 core part of address expressions.
25888 2014-05-08 Alan Modra <amodra@gmail.com>
25891 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25892 loads and stores when -mno-strict-align at any alignment.
25893 (expand_block_clear): Similarly. Also correct calculation of
25896 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25898 PR middle-end/39246
25899 * tree-complex.c (expand_complex_move): Keep line info when expanding
25901 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25902 of complex expression. Use new argument to display correct location
25903 for values coming from phi statement.
25904 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25905 (warn_uninitialized_phi): Pass location of phi argument to
25907 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25908 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25910 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25912 * config/rs6000/predicates.md (indexed_address_mem): New.
25913 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25914 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25915 fpstore_ux, fpstore_u.
25916 (sign_extend, indexed, update): New.
25917 (cell_micro): Adjust.
25918 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25919 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25920 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25921 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25922 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25923 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25924 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25925 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25926 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25927 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25928 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25929 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25930 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25931 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25932 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25934 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25935 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25936 *vsx_extract_<mode>_store): Adjust.
25937 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25938 is_cracked_insn, insn_must_be_first_in_group,
25939 insn_must_be_last_in_group): Adjust.
25941 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25943 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25944 ppc440-fpstore): Adjust.
25945 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25946 ppc476-fpstore): Adjust.
25947 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25948 ppc601-fpstore): Adjust.
25949 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25951 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25953 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25954 ppc7450-fpstore): Adjust.
25955 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25956 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25957 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25959 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25960 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25961 cell-fpstore, cell-fpstore-update): Adjust.
25962 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25963 ppce300c3_store, ppce300c3_fpstore): Adjust.
25964 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25965 e500mc_fpstore): Adjust.
25966 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25967 e500mc64_store, e500mc64_fpstore): Adjust.
25968 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25969 e5500_fpstore): Adjust.
25970 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25971 e6500_fpstore): Adjust.
25972 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25974 * config/rs6000/power4.md (power4-load, power4-load-ext,
25975 power4-load-ext-update, power4-load-ext-update-indexed,
25976 power4-load-update-indexed, power4-load-update, power4-fpload,
25977 power4-fpload-update, power4-store, power4-store-update,
25978 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25980 * config/rs6000/power5.md (power5-load, power5-load-ext,
25981 power5-load-ext-update, power5-load-ext-update-indexed,
25982 power5-load-update-indexed, power5-load-update, power5-fpload,
25983 power5-fpload-update, power5-store, power5-store-update,
25984 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25986 * config/rs6000/power6.md (power6-load, power6-load-ext,
25987 power6-load-update, power6-load-update-indexed,
25988 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25989 power6-fpload-update, power6-store, power6-store-update,
25990 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25992 * config/rs6000/power7.md (power7-load, power7-load-ext,
25993 power7-load-update, power7-load-update-indexed,
25994 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25995 power7-fpload-update, power7-store, power7-store-update,
25996 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25998 * config/rs6000/power8.md (power8-load, power8-load-update,
25999 power8-load-ext, power8-load-ext-update, power8-fpload,
26000 power8-fpload-update, power8-store, power8-store-update-indexed,
26001 power8-fpstore, power8-fpstore-update): Adjust.
26002 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26004 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26005 titan_lsu_store, titan_lsu_fpstore): Adjust.
26006 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26008 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26011 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26012 unrolled byte insns. Emit address increments after move insns.
26014 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26016 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26017 const_gimple, rather than a gimple.
26018 (gimple_call_builtin_p): Likewise, for the three variants.
26020 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26021 (gimple_call_builtin_p): Likewise, for the three variants.
26023 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26025 PR tree-optimization/61095
26026 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26028 2014-05-07 Richard Biener <rguenther@suse.de>
26030 PR tree-optimization/61034
26031 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26032 (maybe_skip_until): Use translate to take into account
26033 lattices when trying to do disambiguations.
26034 (get_continuation_for_phi_1): Likewise.
26035 (get_continuation_for_phi): Adjust for added translate arguments.
26036 (walk_non_aliased_vuses): Likewise.
26037 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26038 (walk_non_aliased_vuses): Likewise.
26039 (call_may_clobber_ref_p_1): Declare.
26040 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26041 calls. Stop early if we are only supposed to disambiguate.
26042 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26044 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26046 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26047 Emit an error when the function has arguments.
26049 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26051 * cfgloop.h (unswitch_loops): Remove.
26052 * doc/passes.texi: Remove references to loop-unswitch.c
26053 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26055 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26057 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26058 check for loads group of length 3.
26059 (vect_permute_load_chain): New permutations for loads group of
26061 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26062 of vec_perm_shuffle for the new permutations.
26064 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26066 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26067 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26068 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26069 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26070 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26071 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26072 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26073 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26075 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26077 * loop-unswitch.c: Delete.
26079 2014-05-07 Richard Biener <rguenther@suse.de>
26081 * config.gcc: Always set need_64bit_hwint to yes.
26083 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26085 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26086 of using optimize_size.
26088 2014-05-06 Mike Stump <mikestump@comcast.net>
26090 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26092 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26094 * config/i386/sse.md (*mov<mode>_internal)
26095 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26096 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26097 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26098 (*<code><mode>3, *andnot<mode>3<mask_name>)
26099 (<mask_codefor><code><mode>3<mask_name>): Only consider
26100 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26102 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26105 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26107 * lra-constraints.c (valid_address_p): Move earlier in file.
26108 Add a constraint argument to the address_info version.
26109 (satisfies_memory_constraint_p): New function.
26110 (satisfies_address_constraint_p): Likewise.
26111 (process_alt_operands, curr_insn_transform): Use them.
26112 (process_address): Pass the constraint to valid_address_p when
26113 checking address operands.
26115 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26117 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26118 to their respective blocks. Fix inadvertent use of "node".
26120 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26122 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26124 (init_emit_once): ...here.
26125 * rtl.h (init_derived_machine_modes): Declare.
26126 * toplev.c (do_compile): Call it even if no_backend.
26128 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26129 Mike Stump <mikestump@comcast.net>
26130 Richard Sandiford <rdsandiford@googlemail.com>
26131 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26133 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26134 (rtx_equal_for_memref_p): Update comment.
26135 (adjust_offset_for_component_ref): Use wide-int interfaces.
26136 * builtins.c (get_object_alignment_2): Likewise.
26137 (c_readstr): Likewise.
26138 (target_char_cast): Add comment.
26139 (determine_block_size): Use wide-int interfaces.
26140 (expand_builtin_signbit): Likewise.
26141 (fold_builtin_int_roundingfn): Likewise.
26142 (fold_builtin_bitop): Likewise.
26143 (fold_builtin_bswap): Likewise.
26144 (fold_builtin_logarithm): Use signop.
26145 (fold_builtin_pow): Likewise.
26146 (fold_builtin_memory_op): Use wide-int interfaces.
26147 (fold_builtin_object_size): Likewise.
26148 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26149 nb_iterations_estimate.
26150 (record_niter_bound): Use wide-int interfaces.
26151 (get_estimated_loop_iterations_int): Likewise.
26152 (get_estimated_loop_iterations): Likewise.
26153 (get_max_loop_iterations): Likewise.
26154 * cfgloop.h: Include wide-int.h.
26155 (struct nb_iter_bound): Change bound to widest_int.
26156 (struct loop): Change nb_iterations_upper_bound and
26157 nb_iterations_estimate to widest_int.
26158 (record_niter_bound): Switch to use widest_int.
26159 (get_estimated_loop_iterations): Likewise.
26160 (get_max_loop_iterations): Likewise.
26161 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26162 update for wide-int.
26163 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26164 * combine.c (try_combine): Likewise.
26165 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26166 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26168 (aarch64_float_const_representable_p): Likewise.
26169 * config/arc/arc.c: Include wide-int.h.
26170 (arc_can_use_doloop_p): Use wide-int interfaces.
26171 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26172 (vfp3_const_double_index): Likewise.
26173 * config/avr/avr.c (avr_out_round): Likewise.
26174 (avr_fold_builtin): Likewise.
26175 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26176 (bfin_can_use_doloop_p): Likewise.
26177 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26178 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26179 * config/i386/i386.c: Include wide-int.h.
26180 (ix86_data_alignment): Use wide-int interfaces.
26181 (ix86_local_alignment): Likewise.
26182 (ix86_emit_swsqrtsf): Update real_from_integer.
26183 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26184 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26185 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26186 (zero_constant): Likewise.
26187 (input_operand): Likewise.
26188 (splat_input_operand): Likewise.
26189 (non_logical_cint_operand): Change const_double to const_wide_int.
26190 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26191 (easy_altivec_constant): Remove comment.
26192 (paired_expand_vector_init): Use CONSTANT_P.
26193 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26194 (rs6000_emit_move): Update checks.
26195 (rs6000_aggregate_candidate): Use wide-int interfaces.
26196 (rs6000_expand_ternop_builtin): Likewise.
26197 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26198 (rs6000_assemble_integer): Likewise.
26199 (rs6000_hash_constant): Likewise.
26200 (output_toc): Likewise.
26201 (rs6000_rtx_costs): Likewise.
26202 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26203 * config/rs6000/rs6000-c.c: Include wide-int.h.
26204 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26205 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26206 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26207 Handle CONST_WIDE_INT.
26208 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26209 Use tree_fits_uhwi_p.
26210 * config/sparc/sparc.c: Include wide-int.h.
26211 (sparc_fold_builtin): Use wide-int interfaces.
26212 * config/vax/vax.c: Include wide-int.h.
26213 (vax_float_literal): Use real_from_integer.
26214 * coretypes.h (struct hwivec_def): New.
26216 (const_hwivec): New.
26217 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26218 (equiv_constant): Handle CONST_WIDE_INT.
26219 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26220 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26221 * dbxout.c (stabstr_U): Use wide-int interfaces.
26222 (dbxout_type): Update to use cst_fits_shwi_p.
26223 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26224 (TARGET_SUPPORTS_WIDE_INT): Add default.
26225 * dfp.c: Include wide-int.h.
26226 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26227 decimal_real_to_integer.
26228 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26229 decimal_real_to_integer.
26230 * doc/generic.texi (Constant expressions): Update for wide_int.
26231 * doc/rtl.texi (const_double): Likewise.
26232 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26233 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26234 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26235 (REAL_VALUE_FROM_INT): Remove.
26236 (TARGET_SUPPORTS_WIDE_INT): New.
26237 * doc/tm.texi: Regenerate.
26238 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26239 * double-int.h: Include wide-int.h.
26240 (struct wi::int_traits): New.
26241 * dwarf2out.c (get_full_len): New.
26242 (dw_val_equal_p): Add case dw_val_class_wide_int.
26243 (size_of_loc_descr): Likewise.
26244 (output_loc_operands): Likewise.
26245 (insert_double): Remove.
26246 (insert_wide_int): New.
26247 (add_AT_wide): New.
26248 (print_die): Add case dw_val_class_wide_int.
26249 (attr_checksum): Likewise.
26250 (attr_checksum_ordered): Likewise.
26251 (same_dw_val_p): Likewise.
26252 (size_of_die): Likewise.
26253 (value_format): Likewise.
26254 (output_die): Likewise.
26255 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26257 (clz_loc_descriptor): Use wide-int interfaces.
26258 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26259 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26260 (round_up_to_align): Use wide-int interfaces.
26261 (field_byte_offset): Likewise.
26262 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26263 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26264 CONST_DOUBLE handling. Use wide-int interfaces.
26265 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26266 (gen_enumeration_type_die): Use add_AT_wide.
26267 (hash_loc_operands): Add case dw_val_class_wide_int.
26268 (compare_loc_operands): Likewise.
26269 * dwarf2out.h: Include wide-int.h.
26270 (wide_int_ptr): New.
26271 (enum dw_val_class): Add dw_val_class_wide_int.
26272 (struct dw_val_struct): Add val_wide.
26273 * emit-rtl.c (const_wide_int_htab): New.
26274 (const_wide_int_htab_hash): New.
26275 (const_wide_int_htab_eq): New.
26276 (lookup_const_wide_int): New.
26277 (const_double_htab_hash): Use wide-int interfaces.
26278 (const_double_htab_eq): Likewise.
26279 (rtx_to_double_int): Conditionally compile for wide-int.
26280 (immed_double_int_const): Rename to immed_wide_int_const and
26281 update for wide-int.
26282 (immed_double_const): Conditionally compile for wide-int.
26283 (init_emit_once): Use wide-int interfaces.
26284 * explow.c (plus_constant): Likewise.
26285 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26286 (lshift_value): Use wide-int interfaces.
26287 (expand_mult): Likewise.
26288 (choose_multiplier): Likewise.
26289 (expand_smod_pow2): Likewise.
26290 (make_tree): Likewise.
26291 * expr.c (convert_modes): Consolidate handling of constants.
26292 Use wide-int interfaces.
26293 (emit_group_load_1): Add note.
26294 (store_expr): Update comment.
26295 (get_inner_reference): Use wide-int interfaces.
26296 (expand_constructor): Update comment.
26297 (expand_expr_real_2): Use wide-int interfaces.
26298 (expand_expr_real_1): Likewise.
26299 (reduce_to_bit_field_precision): Likewise.
26300 (const_vector_from_tree): Likewise.
26301 * final.c: Include wide-int-print.h.
26302 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26303 * fixed-value.c: Include wide-int.h.
26304 (fixed_from_string): Use wide-int interfaces.
26305 (fixed_to_decimal): Likewise.
26306 (fixed_convert_from_real): Likewise.
26307 (real_convert_from_fixed): Likewise.
26308 * fold-const.h (mem_ref_offset): Return an offset_int.
26309 (div_if_zero_remainder): Remove code parameter.
26310 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26311 Use wide-int interfaces.
26312 (may_negate_without_overflow_p): Use wide-int interfaces.
26313 (negate_expr_p): Likewise.
26314 (fold_negate_expr): Likewise.
26315 (int_const_binop_1): Likewise.
26316 (const_binop): Likewise.
26317 (fold_convert_const_int_from_int): Likewise.
26318 (fold_convert_const_int_from_real): Likewise.
26319 (fold_convert_const_int_from_fixed): Likewise.
26320 (fold_convert_const_fixed_from_int): Likewise.
26321 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26322 (sign_bit_p): Use wide-int interfaces.
26323 (make_range_step): Likewise.
26324 (build_range_check): Likewise. Pass an integer of the correct type
26325 instead of using integer_one_node.
26326 (range_predecessor): Pass an integer of the correct type instead
26327 of using integer_one_node.
26328 (range_successor): Likewise.
26329 (merge_ranges): Likewise.
26330 (unextend): Use wide-int interfaces.
26331 (extract_muldiv_1): Likewise.
26332 (fold_div_compare): Likewise.
26333 (fold_single_bit_test): Likewise.
26334 (fold_sign_changed_comparison): Likewise.
26335 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26336 (fold_plusminus_mult_expr): Use wide-int interfaces.
26337 (native_encode_int): Likewise.
26338 (native_interpret_int): Likewise.
26339 (fold_unary_loc): Likewise.
26340 (pointer_may_wrap_p): Likewise.
26341 (size_low_cst): Likewise.
26342 (mask_with_tz): Likewise.
26343 (fold_binary_loc): Likewise.
26344 (fold_ternary_loc): Likewise.
26345 (multiple_of_p): Likewise.
26346 (tree_call_nonnegative_warnv_p): Update calls to
26347 tree_int_cst_min_precision and real_from_integer.
26348 (fold_negate_const): Use wide-int interfaces.
26349 (fold_abs_const): Likewise.
26350 (fold_relational_const): Use tree_int_cst_lt.
26351 (round_up_loc): Use wide-int interfaces.
26352 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26353 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26354 * gengtype.c: Remove include of double-int.h.
26355 (do_typedef): Use wide-int interfaces.
26356 (open_base_files): Add wide-int.h.
26357 (main): Add offset_int and widest_int typedefs.
26358 * gengtype-lex.l: Handle "^".
26359 (CXX_KEYWORD): Add "static".
26360 * gengtype-parse.c (require3): New.
26361 (require_template_declaration): Handle constant template arguments
26362 and nested templates.
26363 * gengtype-state.c: Don't include "double-int.h".
26364 * genpreds.c (write_one_predicate_function): Update comment.
26365 (write_tm_constrs_h): Add check for hval and lval use in
26367 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26368 (add_to_sequence): Likewise.
26369 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26370 and const_double_operand.
26371 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26373 * gimple-fold.c (get_base_constructor): Likewise.
26374 (fold_array_ctor_reference): Likewise.
26375 (fold_nonarray_ctor_reference): Likewise.
26376 (fold_const_aggregate_ref_1): Likewise.
26377 (gimple_val_nonnegative_real_p): Likewise.
26378 (gimple_fold_indirect_ref): Likewise.
26379 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26380 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26381 (struct slsr_cand_d): Change index to be widest_int.
26382 (struct incr_info_d): Change incr to be widest_int.
26383 (alloc_cand_and_find_basis): Use wide-int interfaces.
26384 (slsr_process_phi): Likewise.
26385 (backtrace_base_for_ref): Likewise. Return a widest_int.
26386 (restructure_reference): Take a widest_int instead of a double_int.
26387 (slsr_process_ref): Use wide-int interfaces.
26388 (create_mul_ssa_cand): Likewise.
26389 (create_mul_imm_cand): Likewise.
26390 (create_add_ssa_cand): Likewise.
26391 (create_add_imm_cand): Take a widest_int instead of a double_int.
26392 (slsr_process_add): Use wide-int interfaces.
26393 (slsr_process_cast): Likewise.
26394 (slsr_process_copy): Likewise.
26395 (dump_candidate): Likewise.
26396 (dump_incr_vec): Likewise.
26397 (replace_ref): Likewise.
26398 (cand_increment): Likewise. Return a widest_int.
26399 (cand_abs_increment): Likewise.
26400 (replace_mult_candidate): Take a widest_int instead of a double_int.
26401 (replace_unconditional_candidate): Use wide-int interfaces.
26402 (incr_vec_index): Take a widest_int instead of a double_int.
26403 (create_add_on_incoming_edge): Likewise.
26404 (create_phi_basis): Use wide-int interfaces.
26405 (replace_conditional_candidate): Likewise.
26406 (record_increment): Take a widest_int instead of a double_int.
26407 (record_phi_increments): Use wide-int interfaces.
26408 (phi_incr_cost): Take a widest_int instead of a double_int.
26409 (lowest_cost_path): Likewise.
26410 (total_savings): Likewise.
26411 (analyze_increments): Use wide-int interfaces.
26412 (ncd_with_phi): Take a widest_int instead of a double_int.
26413 (ncd_of_cand_and_phis): Likewise.
26414 (nearest_common_dominator_for_cands): Likewise.
26415 (insert_initializers): Use wide-int interfaces.
26416 (all_phi_incrs_profitable): Likewise.
26417 (replace_one_candidate): Likewise.
26418 (replace_profitable_candidates): Likewise.
26419 * godump.c: Include wide-int-print.h.
26420 (go_output_typedef): Use wide-int interfaces.
26421 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26422 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26423 (build_loop_iteration_domains): Likewise.
26424 * hooks.h: Include wide-int.h rather than double-int.h.
26425 (hook_bool_dint_dint_uint_bool_true): Delete.
26426 (hook_bool_wint_wint_uint_bool_true): Declare.
26427 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26428 (hook_bool_wint_wint_uint_bool_true): New.
26429 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26431 (ubsan_expand_si_overflow_mul_check): Likewise.
26432 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26433 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26434 (get_ancestor_addr_info): Likewise.
26435 (ipa_modify_call_arguments): Likewise.
26436 * loop-doloop.c (doloop_modify): Likewise.
26437 (doloop_optimize): Likewise.
26438 * loop-iv.c (iv_number_of_iterations): Likewise.
26439 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26440 (unroll_loop_constant_iterations): Likewise.
26441 (decide_unroll_runtime_iterations): Likewise.
26442 (unroll_loop_runtime_iterations): Likewise.
26443 (decide_peel_simple): Likewise.
26444 (decide_unroll_stupid): Likewise.
26445 * lto-streamer-in.c (streamer_read_wi): Add.
26446 (input_cfg): Use wide-int interfaces.
26447 (lto_input_tree_1): Likewise.
26448 * lto-streamer-out.c (streamer_write_wi): Add.
26449 (hash_tree): Use wide-int interfaces.
26450 (output_cfg): Likewise.
26451 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26452 (GTFILES): Add wide-int.h and signop.h.
26453 (TAGS): Look for .cc files too.
26454 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26455 * optabs.c (expand_subword_shift): Likewise.
26456 (expand_doubleword_shift): Likewise.
26457 (expand_absneg_bit): Likewise.
26458 (expand_copysign_absneg): Likewise.
26459 (expand_copysign_bit): Likewise.
26460 * postreload.c (reload_cse_simplify_set): Likewise.
26461 * predict.c (predict_iv_comparison): Likewise.
26462 * pretty-print.h: Include wide-int-print.h.
26464 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26465 * print-tree.c: Include wide-int-print.h.
26466 (print_node_brief): Use wide-int interfaces.
26467 (print_node): Likewise.
26468 * read-rtl.c (validate_const_wide_int): New.
26469 (read_rtx_code): Add CONST_WIDE_INT case.
26470 * real.c: Include wide-int.h.
26471 (real_to_integer2): Delete.
26472 (real_to_integer): New function, returning a wide_int.
26473 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26474 (ten_to_ptwo): Update call to real_from_integer.
26475 (real_digit): Likewise.
26476 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26477 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26478 (REAL_VALUE_TO_INT): Delete.
26479 (real_to_integer): Declare a wide-int form.
26480 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26481 * recog.c (const_int_operand): Improve comment.
26482 (const_scalar_int_operand): New.
26483 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26484 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26485 (split_double): Likewise.
26486 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26487 (rtx_size): Likewise.
26488 (rtx_alloc_stat_v): New.
26489 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26490 (cwi_output_hex): New.
26491 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26492 (cwi_check_failed_bounds): New.
26493 * rtl.def (CONST_WIDE_INT): New.
26494 * rtl.h: Include <utility> and wide-int.h.
26495 (struct hwivec_def): New.
26496 (CWI_GET_NUM_ELEM): New.
26497 (CWI_PUT_NUM_ELEM): New.
26498 (struct rtx_def): Add num_elem and hwiv.
26499 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26500 (CASE_CONST_UNIQUE): Likewise.
26501 (CASE_CONST_ANY): Likewise.
26502 (CONST_SCALAR_INT_P): Likewise.
26503 (CONST_WIDE_INT_P): New.
26505 (HWIVEC_CHECK): New.
26506 (cwi_check_failed_bounds): New.
26508 (HWIVEC_CHECK): New.
26509 (CONST_WIDE_INT_VEC) New.
26510 (CONST_WIDE_INT_NUNITS) New.
26511 (CONST_WIDE_INT_ELT) New.
26512 (rtx_mode_t): New type.
26513 (wi::int_traits <rtx_mode_t>): New.
26515 (wi::min_value): New.
26516 (wi::max_value): New.
26518 (const_wide_int_alloc): New.
26519 (immed_wide_int_const): New.
26520 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26521 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26522 * signop.h: New file.
26523 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26524 (simplify_const_unary_operation): Use wide-int interfaces.
26525 (simplify_binary_operation_1): Likewise.
26526 (simplify_const_binary_operation): Likewise.
26527 (simplify_const_relational_operation): Likewise.
26528 (simplify_immed_subreg): Likewise.
26529 * stmt.c (expand_case): Likewise.
26530 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26531 signop rather than a bool.
26532 * stor-layout.c (layout_type): Use wide-int interfaces.
26533 (initialize_sizetypes): Update calls to
26534 set_min_and_max_values_for_integral_type.
26535 (set_min_and_max_values_for_integral_type): Take a signop rather
26536 than a bool. Use wide-int interfaces.
26537 (fixup_signed_type): Update accordingly. Remove
26538 HOST_BITS_PER_DOUBLE_INT limit.
26539 (fixup_unsigned_type): Likewise.
26540 * system.h (STATIC_CONSTANT_P): New.
26541 (STATIC_ASSERT): New.
26542 * target.def (can_use_doloop_p): Take widest_ints rather than
26544 * target.h: Include wide-int.h rather than double-int.h.
26545 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26547 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26548 rather than INT_CST_LT_UNSIGNED.
26549 (can_use_doloop_if_innermost): Take widest_ints rather than
26551 * tree-affine.c: Include wide-int-print.h.
26552 (double_int_ext_for_comb): Delete.
26553 (wide_int_ext_for_comb): New.
26554 (aff_combination_zero): Use wide-int interfaces.
26555 (aff_combination_const): Take a widest_int instead of a double_int.
26556 (aff_combination_elt): Use wide-int interfaces.
26557 (aff_combination_scale): Take a widest_int instead of a double_int.
26558 (aff_combination_add_elt): Likewise.
26559 (aff_combination_add_cst): Likewise.
26560 (aff_combination_add): Use wide-int interfaces.
26561 (aff_combination_convert): Likewise.
26562 (tree_to_aff_combination): Likewise.
26563 (add_elt_to_tree): Take a widest_int instead of a double_int.
26564 (aff_combination_to_tree): Use wide-int interfaces.
26565 (aff_combination_remove_elt): Likewise.
26566 (aff_combination_add_product): Take a widest_int instead of
26568 (aff_combination_mult): Use wide-int interfaces.
26569 (aff_combination_expand): Likewise.
26570 (double_int_constant_multiple_p): Delete.
26571 (wide_int_constant_multiple_p): New.
26572 (aff_combination_constant_multiple_p): Take a widest_int pointer
26573 instead of a double_int pointer.
26574 (print_aff): Use wide-int interfaces.
26575 (get_inner_reference_aff): Take a widest_int pointer
26576 instead of a double_int pointer.
26577 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26578 * tree-affine.h: Include wide-int.h.
26579 (struct aff_comb_elt): Change type of coef to widest_int.
26580 (struct affine_tree_combination): Change type of offset to widest_int.
26581 (double_int_ext_for_comb): Delete.
26582 (wide_int_ext_for_comb): New.
26583 (aff_combination_const): Use widest_int instead of double_int.
26584 (aff_combination_scale): Likewise.
26585 (aff_combination_add_elt): Likewise.
26586 (aff_combination_constant_multiple_p): Likewise.
26587 (get_inner_reference_aff): Likewise.
26588 (aff_comb_cannot_overlap_p): Likewise.
26589 (aff_combination_zero_p): Use wide-int interfaces.
26590 * tree.c: Include tree.h.
26591 (init_ttree): Use make_int_cst.
26592 (tree_code_size): Removed code for INTEGER_CST case.
26593 (tree_size): Add INTEGER_CST case.
26594 (make_node_stat): Update comment.
26595 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26596 (build_int_cst_type): Use wide-int interfaces.
26597 (double_int_to_tree): Likewise.
26598 (double_int_fits_to_tree_p): Delete.
26599 (force_fit_type_double): Delete.
26600 (force_fit_type): New.
26601 (int_cst_hash_hash): Use wide-int interfaces.
26602 (int_cst_hash_eq): Likewise.
26603 (build_int_cst_wide): Delete.
26604 (wide_int_to_tree): New.
26605 (cache_integer_cst): Use wide-int interfaces.
26606 (build_low_bits_mask): Likewise.
26607 (cst_and_fits_in_hwi): Likewise.
26608 (real_value_from_int_cst): Likewise.
26609 (make_int_cst_stat): New.
26610 (integer_zerop): Use wide_int interfaces.
26611 (integer_onep): Likewise.
26612 (integer_all_onesp): Likewise.
26613 (integer_pow2p): Likewise.
26614 (integer_nonzerop): Likewise.
26615 (tree_log2): Likewise.
26616 (tree_floor_log2): Likewise.
26617 (tree_ctz): Likewise.
26618 (int_size_in_bytes): Likewise.
26619 (mem_ref_offset): Return an offset_int rather than a double_int.
26620 (build_type_attribute_qual_variant): Use wide_int interfaces.
26621 (type_hash_eq): Likewise
26622 (tree_int_cst_equal): Likewise.
26623 (tree_int_cst_lt): Delete.
26624 (tree_int_cst_compare): Likewise.
26625 (tree_fits_shwi_p): Use wide_int interfaces.
26626 (tree_fits_uhwi_p): Likewise.
26627 (tree_int_cst_sign_bit): Likewise.
26628 (tree_int_cst_sgn): Likewise.
26629 (tree_int_cst_min_precision): Take a signop rather than a bool.
26630 (simple_cst_equal): Use wide_int interfaces.
26631 (compare_tree_int): Likewise.
26632 (iterative_hash_expr): Likewise.
26633 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26635 (get_type_static_bounds): Use wide_int interfaces.
26636 (tree_int_cst_elt_check_failed): New.
26637 (build_common_tree_nodes): Reordered to set prec before filling in
26639 (int_cst_value): Check cst_and_fits_in_hwi.
26640 (widest_int_cst_value): Use wide_int interfaces.
26641 (upper_bound_in_type): Likewise.
26642 (lower_bound_in_type): Likewise.
26643 (num_ending_zeros): Likewise.
26644 (drop_tree_overflow): Likewise.
26645 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26646 (gen_conditions_for_pow_cst_base): Likewise.
26647 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26648 (group_case_labels_stmt): Use wide-int interfaces.
26649 (verify_gimple_assign_binary): Likewise.
26650 (print_loop): Likewise.
26651 * tree-chrec.c (tree_fold_binomial): Likewise.
26652 * tree-core.h (struct tree_base): Add int_length.
26653 (struct tree_int_cst): Change rep of value.
26654 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26655 (dr_may_alias_p): Likewise.
26656 (max_stmt_executions_tree): Likewise.
26657 * tree.def (INTEGER_CST): Update comment.
26658 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26659 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26660 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26661 (dequeue_and_dump): Use wide-int interfaces.
26662 * tree.h: Include wide-int.h.
26663 (NULL_TREE): Moved to earlier loc in file.
26664 (TREE_INT_CST_ELT_CHECK): New.
26665 (tree_int_cst_elt_check_failed): New.
26667 (TREE_INT_CST): Delete.
26668 (TREE_INT_CST_LOW): Use wide-int interfaces.
26669 (TREE_INT_CST_HIGH): Delete.
26670 (TREE_INT_CST_NUNITS): New.
26671 (TREE_INT_CST_EXT_NUNITS): Likewise.
26672 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26673 (TREE_INT_CST_ELT): Likewise.
26674 (INT_CST_LT): Delete.
26675 (tree_int_cst_elt_check): New (two forms).
26676 (type_code_size): Update comment.
26677 (make_int_cst_stat, make_int_cst): New.
26678 (tree_to_double_int): Delete.
26679 (double_int_fits_to_tree_p): Delete.
26680 (force_fit_type_double): Delete.
26681 (build_int_cstu): Replace with out-of-line function.
26682 (build_int_cst_wide): Delete.
26683 (tree_int_cst_lt): Define inline.
26684 (tree_int_cst_le): New.
26685 (tree_int_cst_compare): Define inline.
26686 (tree_int_cst_min_precision): Take a signop rather than a bool.
26687 (wi::int_traits <const_tree>): New.
26688 (wi::int_traits <tree>): New.
26689 (wi::extended_tree): New.
26690 (wi::int_traits <wi::extended_tree>): New.
26691 (wi::to_widest): New.
26692 (wi::to_offset): New.
26693 (wi::fits_to_tree_p): New.
26694 (wi::min_value): New.
26695 (wi::max_value): New.
26696 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26697 (copy_tree_body_r): Likewise.
26698 * tree-object-size.c (compute_object_offset): Likewise.
26699 (addr_object_size): Likewise.
26700 * tree-predcom.c: Include wide-int-print.h.
26701 (struct dref_d): Change type of offset to widest_int.
26702 (dump_dref): Call wide-int printer.
26703 (aff_combination_dr_offset): Use wide-int interfaces.
26704 (determine_offset): Take a widest_int pointer rather than a
26705 double_int pointer.
26706 (split_data_refs_to_components): Use wide-int interfaces.
26707 (suitable_component_p): Likewise.
26708 (order_drefs): Likewise.
26709 (add_ref_to_chain): Likewise.
26710 (valid_initializer_p): Likewise.
26711 (determine_roots_comp): Likewise.
26712 * tree-pretty-print.c: Include wide-int-print.h.
26713 (dump_generic_node): Use wide-int interfaces.
26714 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26715 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26716 (move_fixed_address_to_symbol): Likewise.
26717 (move_hint_to_base): Likewise.
26718 (move_pointer_to_base): Likewise.
26719 (move_variant_to_index): Likewise.
26720 (most_expensive_mult_to_index): Likewise.
26721 (addr_to_parts): Likewise.
26722 (copy_ref_info): Likewise.
26723 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26724 (indirect_refs_may_alias_p): Likewise.
26725 (stmt_kills_ref_p_1): Likewise.
26726 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26727 * tree-ssa-ccp.c: Update comment at top of file. Include
26729 (struct prop_value_d): Change type of mask to widest_int.
26730 (extend_mask): New function.
26731 (dump_lattice_value): Use wide-int interfaces.
26732 (get_default_value): Likewise.
26733 (set_constant_value): Likewise.
26734 (set_value_varying): Likewise.
26735 (valid_lattice_transition): Likewise.
26736 (set_lattice_value): Likewise.
26737 (value_to_double_int): Delete.
26738 (value_to_wide_int): New.
26739 (get_value_from_alignment): Use wide-int interfaces.
26740 (get_value_for_expr): Likewise.
26741 (do_dbg_cnt): Likewise.
26742 (ccp_finalize): Likewise.
26743 (ccp_lattice_meet): Likewise.
26744 (bit_value_unop_1): Use widest_ints rather than double_ints.
26745 (bit_value_binop_1): Likewise.
26746 (bit_value_unop): Use wide-int interfaces.
26747 (bit_value_binop): Likewise.
26748 (bit_value_assume_aligned): Likewise.
26749 (evaluate_stmt): Likewise.
26750 (ccp_fold_stmt): Likewise.
26751 (visit_cond_stmt): Likewise.
26752 (ccp_visit_stmt): Likewise.
26753 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26754 (constant_pointer_difference): Likewise.
26755 (associate_pointerplus): Likewise.
26756 (combine_conversions): Likewise.
26757 * tree-ssa-loop.h: Include wide-int.h.
26758 (struct tree_niter_desc): Change type of max to widest_int.
26759 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26760 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26761 (remove_redundant_iv_tests): Likewise.
26762 (canonicalize_loop_induction_variables): Likewise.
26763 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26764 (constant_multiple_of): Take a widest_int pointer instead of
26765 a double_int pointer.
26766 (get_computation_aff): Use wide-int interfaces.
26767 (ptr_difference_cost): Likewise.
26768 (difference_cost): Likewise.
26769 (get_loop_invariant_expr_id): Likewise.
26770 (get_computation_cost_at): Likewise.
26771 (iv_elimination_compare_lt): Likewise.
26772 (may_eliminate_iv): Likewise.
26773 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26774 instead of double_int.
26775 (max_loop_iterations): Likewise.
26776 (max_stmt_executions): Likewise.
26777 (estimated_stmt_executions): Likewise.
26778 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26779 (split_to_var_and_offset): Use wide-int interfaces.
26780 (determine_value_range): Likewise.
26781 (bound_difference_of_offsetted_base): Likewise.
26782 (bounds_add): Take a widest_int instead of a double_int.
26783 (number_of_iterations_ne_max): Use wide-int interfaces.
26784 (number_of_iterations_ne): Likewise.
26785 (number_of_iterations_lt_to_ne): Likewise.
26786 (assert_loop_rolls_lt): Likewise.
26787 (number_of_iterations_lt): Likewise.
26788 (number_of_iterations_le): Likewise.
26789 (number_of_iterations_cond): Likewise.
26790 (number_of_iterations_exit): Likewise.
26791 (finite_loop_p): Likewise.
26792 (derive_constant_upper_bound_assign): Likewise.
26793 (derive_constant_upper_bound): Return a widest_int.
26794 (derive_constant_upper_bound_ops): Likewise.
26795 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26796 (record_estimate): Take a widest_int rather than a double_int.
26797 (record_nonwrapping_iv): Use wide-int interfaces.
26798 (double_int_cmp): Delete.
26799 (wide_int_cmp): New.
26800 (bound_index): Take a widest_int rather than a double_int.
26801 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26802 (maybe_lower_iteration_bound): Likewise.
26803 (estimate_numbers_of_iterations_loop): Likewise.
26804 (estimated_loop_iterations): Take a widest_int pointer than than
26805 a double_int pointer.
26806 (estimated_loop_iterations_int): Use wide-int interfaces.
26807 (max_loop_iterations): Take a widest_int pointer than than
26808 a double_int pointer.
26809 (max_loop_iterations_int): Use wide-int interfaces.
26810 (max_stmt_executions): Take a widest_int pointer than than
26811 a double_int pointer.
26812 (estimated_stmt_executions): Likewise.
26813 (n_of_executions_at_most): Use wide-int interfaces.
26814 (scev_probably_wraps_p): Likewise.
26815 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26816 to real_to_integer.
26817 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26819 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26820 double_ints. Adjust for trailing_wide_ints <3> representation.
26821 (set_nonzero_bits): Likewise.
26822 (get_range_info): Return wide_ints rather than double_ints.
26823 Adjust for trailing_wide_ints <3> representation.
26824 (get_nonzero_bits): Likewise.
26825 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26827 * tree-ssanames.h (struct range_info_def): Replace min, max and
26828 nonzero_bits with a trailing_wide_ints <3>.
26829 (set_range_info): Use wide_int_refs rather than double_ints.
26830 (set_nonzero_bits): Likewise.
26831 (get_range_info): Return wide_ints rather than double_ints.
26832 (get_nonzero_bits): Likewise.
26833 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26834 * tree-ssa-pre.c (phi_translate_1): Likewise.
26835 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26836 (acceptable_pow_call): Likewise.
26837 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26839 (vn_reference_fold_indirect): Likewise.
26840 (vn_reference_maybe_forwprop_address): Likewise.
26841 (valueize_refs_1): Likewise.
26842 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26843 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26844 tree_int_cst_lt and tree_int_cst_le.
26845 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26847 (streamer_alloc_tree): Likewise.
26848 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26849 (streamer_write_tree_header): Likewise.
26850 (streamer_write_integer_cst): Likewise.
26851 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26852 (build_constructors): Likewise.
26853 (array_value_type): Likewise.
26854 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26855 (vect_check_gather): Likewise.
26856 * tree-vect-generic.c (build_replicated_const): Likewise.
26857 (expand_vector_divmod): Likewise.
26858 * tree-vect-loop.c (vect_transform_loop): Likewise.
26859 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26860 (vect_do_peeling_for_alignment): Likewise.
26861 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26862 * tree-vrp.c: Include wide-int.h.
26863 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26864 (extract_range_from_assert): Use wide-int interfaces.
26865 (vrp_int_const_binop): Likewise.
26866 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26867 double_int pointers.
26868 (ranges_from_anti_range): Use wide-int interfaces.
26869 (quad_int_cmp): Delete.
26870 (quad_int_pair_sort): Likewise.
26871 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26872 (extract_range_from_unary_expr_1): Likewise.
26873 (adjust_range_with_scev): Likewise.
26874 (masked_increment): Take and return wide_ints rather than double_ints.
26875 (register_edge_assert_for_2): Use wide-int interfaces.
26876 (check_array_ref): Likewise.
26877 (search_for_addr_array): Likewise.
26878 (maybe_set_nonzero_bits): Likewise.
26879 (union_ranges): Pass an integer of the correct type instead of
26880 using integer_one_node.
26881 (intersect_ranges): Likewise.
26882 (simplify_truth_ops_using_ranges): Likewise.
26883 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26884 (range_fits_type_p): Likewise.
26885 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26887 (simplify_conversion_using_ranges): Use wide-int interfaces.
26888 (simplify_float_conversion_using_ranges): Likewise.
26889 (vrp_finalize): Likewise.
26890 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26891 (gimple_stringops_transform): Likewise.
26892 * varasm.c (decode_addr_const): Likewise.
26893 (const_hash_1): Likewise.
26894 (const_rtx_hash_1): Likewise
26895 (output_constant): Likewise.
26896 (array_size_for_constructor): Likewise.
26897 (output_constructor_regular_field): Likewise.
26898 (output_constructor_bitfield): Likewise.
26899 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26900 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26902 * gencheck.c: Define BITS_PER_UNIT.
26903 * wide-int.cc: New.
26905 * wide-int-print.cc: New.
26906 * wide-int-print.h: New.
26908 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26910 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26912 2014-05-06 Richard Biener <rguenther@suse.de>
26914 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26915 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26916 (TODO_verify_all): Adjust.
26917 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26918 TODO_verify_stmts and TODO_verify_rtl_sharing.
26919 * bb-reorder.c: Likewise.
26920 * cfgexpand.c: Likewise.
26921 * cprop.c: Likewise.
26923 * function.c: Likewise.
26924 * fwprop.c: Likewise.
26925 * gcse.c: Likewise.
26926 * gimple-ssa-isolate-paths.c: Likewise.
26927 * gimple-ssa-strength-reduction.c: Likewise.
26928 * ipa-split.c: Likewise.
26929 * loop-init.c: Likewise.
26930 * loop-unroll.c: Likewise.
26931 * lower-subreg.c: Likewise.
26932 * modulo-sched.c: Likewise.
26933 * postreload-gcse.c: Likewise.
26934 * predict.c: Likewise.
26935 * recog.c: Likewise.
26936 * sched-rgn.c: Likewise.
26937 * store-motion.c: Likewise.
26938 * tracer.c: Likewise.
26939 * trans-mem.c: Likewise.
26940 * tree-call-cdce.c: Likewise.
26941 * tree-cfg.c: Likewise.
26942 * tree-cfgcleanup.c: Likewise.
26943 * tree-complex.c: Likewise.
26944 * tree-eh.c: Likewise.
26945 * tree-emutls.c: Likewise.
26946 * tree-if-conv.c: Likewise.
26947 * tree-into-ssa.c: Likewise.
26948 * tree-loop-distribution.c: Likewise.
26949 * tree-object-size.c: Likewise.
26950 * tree-parloops.c: Likewise.
26951 * tree-pass.h: Likewise.
26952 * tree-sra.c: Likewise.
26953 * tree-ssa-ccp.c: Likewise.
26954 * tree-ssa-copy.c: Likewise.
26955 * tree-ssa-copyrename.c: Likewise.
26956 * tree-ssa-dce.c: Likewise.
26957 * tree-ssa-dom.c: Likewise.
26958 * tree-ssa-dse.c: Likewise.
26959 * tree-ssa-forwprop.c: Likewise.
26960 * tree-ssa-ifcombine.c: Likewise.
26961 * tree-ssa-loop-ch.c: Likewise.
26962 * tree-ssa-loop-ivcanon.c: Likewise.
26963 * tree-ssa-loop.c: Likewise.
26964 * tree-ssa-math-opts.c: Likewise.
26965 * tree-ssa-phiopt.c: Likewise.
26966 * tree-ssa-phiprop.c: Likewise.
26967 * tree-ssa-pre.c: Likewise.
26968 * tree-ssa-reassoc.c: Likewise.
26969 * tree-ssa-sink.c: Likewise.
26970 * tree-ssa-strlen.c: Likewise.
26971 * tree-ssa-tail-merge.c: Likewise.
26972 * tree-ssa-uncprop.c: Likewise.
26973 * tree-switch-conversion.c: Likewise.
26974 * tree-tailcall.c: Likewise.
26975 * tree-vect-generic.c: Likewise.
26976 * tree-vectorizer.c: Likewise.
26977 * tree-vrp.c: Likewise.
26978 * tsan.c: Likewise.
26979 * var-tracking.c: Likewise.
26980 * bt-load.c: Likewise.
26981 * cfgcleanup.c: Likewise.
26982 * combine-stack-adj.c: Likewise.
26983 * combine.c: Likewise.
26984 * compare-elim.c: Likewise.
26985 * config/epiphany/resolve-sw-modes.c: Likewise.
26986 * config/i386/i386.c: Likewise.
26987 * config/mips/mips.c: Likewise.
26988 * config/s390/s390.c: Likewise.
26989 * config/sh/sh_treg_combine.cc: Likewise.
26990 * config/sparc/sparc.c: Likewise.
26993 * final.c: Likewise.
26994 * ifcvt.c: Likewise.
26995 * mode-switching.c: Likewise.
26996 * passes.c: Likewise.
26997 * postreload.c: Likewise.
26999 * reg-stack.c: Likewise.
27000 * regcprop.c: Likewise.
27001 * regrename.c: Likewise.
27004 2014-05-06 Richard Biener <rguenther@suse.de>
27006 PR middle-end/61070
27007 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27008 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27010 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27013 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27015 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27016 Tom de Vries <tom@codesourcery.com>
27018 * target.def (call_fusage_contains_non_callee_clobbers): New
27020 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27022 (@node Miscellaneous Register Hooks): New node.
27023 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27024 * doc/tm.texi: Regenerate.
27026 2014-05-05 Marek Polacek <polacek@redhat.com>
27029 * opts.c (common_handle_option): Call error_at instead of warning_at.
27031 2014-05-05 Richard Biener <rguenther@suse.de>
27033 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27034 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27035 under the TODO_verify_il umbrella.
27037 2014-05-05 Richard Biener <rguenther@suse.de>
27039 * passes.c (execute_function_todo): Move TODO_verify_flow under
27040 the TODO_verify_ul umbrella.
27042 2014-05-05 Richard Biener <rguenther@suse.de>
27044 PR middle-end/61010
27045 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27046 X & CST away from a CST that is the mask of a mode.
27048 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27050 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27051 int argument to enum machine_mode.
27052 (picochip_class_max_nregs): Ditto.
27053 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27054 (picochip_class_max_nregs): Ditto.
27056 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27058 * target.def: Add new target hook.
27059 * doc/tm.texi: Regenerate.
27060 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27061 * targhooks.c (default_keep_leaf_when_profiled): New function.
27063 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27064 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27066 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27068 PR tree-optimization/60363
27069 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27070 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27071 (update_destination_phis): New parameter.
27072 (create_edge_and_update_destination_phis): Ditto.
27073 (ssa_fix_duplicate_block_edges): Pass new arguments.
27074 (thread_single_edge): Ditto.
27076 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27078 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27079 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27080 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27081 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27082 Use RS6000_BTM_HARD_FLOAT.
27083 (BU_MISC_2): Likewise.
27084 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27085 RS6000_BTM_HARD_FLOAT.
27086 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27087 is explicitly used.
27088 (rs6000_invalid_builtin): Add hard floating builtin support.
27089 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27090 hard float builtins.
27091 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27093 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27095 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27096 Add missing function* argument.
27098 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27100 * lra-constraints.c (valid_address_p): Move earlier in file.
27101 Add a constraint argument to the address_info version.
27102 (satisfies_memory_constraint_p): New function.
27103 (satisfies_address_constraint_p): Likewise.
27104 (process_alt_operands, curr_insn_transform): Use them.
27105 (process_address): Pass the constraint to valid_address_p when
27106 checking address operands.
27108 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27110 * config/mips/mips.c (mips_isa_rev): New variable.
27111 (mips_set_architecture): Set it.
27112 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27114 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27115 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27116 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27117 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27118 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27119 conditions in terms of mips_isa_rev.
27120 (mips_isa_rev): Declare.
27122 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27124 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27125 (prob_unlikely, prob_likely): Make variables const.
27127 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27129 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27131 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27133 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27135 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27137 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27138 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27139 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27141 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27142 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27144 Replace usage of ROUND_REG with sh_round_reg.
27145 Use CEIL instead of ROUND_ADVANCE.
27147 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27150 * config/sh/sh.c: Include stdlib headers before everything else.
27152 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27154 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27155 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27156 (gimplify_adjust_omp_clauses): Simd region is never
27157 directly nested in combined parallel. Instead, for linear
27158 with copyin/copyout, if in combined for simd loop, make decl
27159 firstprivate/lastprivate on OMP_FOR.
27160 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27161 expand_omp_for_static_chunk): When setting endvar, also set
27162 fd->loop.v to the same value.
27164 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27166 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27168 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27170 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27173 2014-05-02 Marek Polacek <polacek@redhat.com>
27175 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27177 2014-05-02 Kito Cheng <kito@0xlab.org>
27179 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27180 to a C expression marco.
27181 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27182 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27183 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27184 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27185 HONOR_REG_ALLOC_ORDER.
27186 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27188 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27190 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27192 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27194 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27196 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27198 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27199 (convert_scalar_cond_reduction): Likewise.
27200 (predicate_scalar_phi): Add recognition and transformation
27201 of simple conditioanl reduction to be vectorizable.
27203 2014-05-01 Marek Polacek <polacek@redhat.com>
27206 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27208 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27210 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27211 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27212 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27213 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27214 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27215 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27216 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27217 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27219 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27221 * config/arc/arc.opt (mlra): Move comment above option name
27222 to avoid mis-parsing as language options.
27224 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27226 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27227 * config/sol2.h: ... here.
27228 * config/sol2-10.h: Remove.
27230 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27231 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27232 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27233 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27234 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27235 * config/sol2.h: ... here.
27236 (SECTION_NAME_FORMAT): Don't redefine.
27237 (STARTFILE_ARCH32_SPEC): Rename to ...
27238 (STARTFILE_ARCH_SPEC): ... this.
27239 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27240 * config/sparc/sol2.h: ... here.
27241 (SECTION_NAME_FORMAT): Don't undef.
27242 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27243 (SUBTARGET_EXTRA_SPECS): Remove.
27244 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27246 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27247 (MD_STARTFILE_PREFIX): Remove.
27248 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27249 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27250 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27251 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27252 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27253 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27254 * config/i386/sol2.h: ... here.
27255 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27256 * config/i386/sol2-bi.h: Remove.
27257 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27258 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27260 * config/i386/t-sol2-64: Rename to ...
27261 * config/i386/t-sol2: ... this.
27262 * config/sparc/t-sol2-64: Rename to ...
27263 * config/sparc/t-sol2: ... this.
27265 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27266 sol2_tm_file_head, sol2_tm_file_tail.
27267 Include ${cpu_type}/sol2.h before sol2.h.
27269 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27270 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27271 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27272 Reflect i386/t-sol2-64 renaming.
27273 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27274 Reflect sparc/t-sol2-64 renaming.
27276 2014-04-30 Richard Biener <rguenther@suse.de>
27278 * passes.c (execute_function_todo): Move TODO_verify_stmts
27279 and TODO_verify_ssa under the TODO_verify_il umbrella.
27280 * tree-ssa.h (verify_ssa): Adjust prototype.
27281 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27282 we should verify SSA operands.
27283 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27284 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27285 whether we should verify whether not throwing stmts have EH info.
27286 * graphite-scop-detection.c (create_sese_edges): Adjust.
27287 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27288 * tree-eh.c (lower_try_finally_switch): Do not add the
27289 default case label twice.
27291 2014-04-30 Marek Polacek <polacek@redhat.com>
27293 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27294 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27295 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27296 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27298 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27300 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27301 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27302 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27303 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27304 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27305 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27306 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27307 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27309 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27311 * tree-cfg.c (dump_function_to_file): Dump the return type of
27312 functions, in a line to itself before the function body, mimicking
27313 the layout of a C function.
27315 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27317 PR tree-optimization/60971
27318 * tree-tailcall.c (process_assignment): Reject conversions which
27321 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27323 * calls.c (initialize_argument_information): Always treat
27324 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27325 (expand_call): Likewise.
27326 (emit_library_call_calue_1): Likewise.
27327 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27328 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27331 2014-04-29 Nick Clifton <nickc@redhat.com>
27333 * config/msp430/msp430.md (umulsidi): Fix typo.
27334 (mulhisi3): Enable even inside interrupt handlers.
27335 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27336 bigger return address pushed in large mode.
27338 2014-04-29 Nick Clifton <nickc@redhat.com>
27340 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27341 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27343 * config/m32r/m32r.c (init_reg_tables): Likewise.
27344 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27345 enum to hold the modes.
27347 2014-04-29 Richard Biener <rguenther@suse.de>
27349 * dominance.c (free_dominance_info): Add overload with
27350 function parameter.
27351 (dom_info_state): Likewise.
27352 (dom_info_available_p): Likewise.
27353 * basic-block.h (free_dominance_info, dom_info_state,
27354 dom_info_available_p): Declare overloads.
27355 * passes.c (execute_function_todo): Verify that verifiers
27356 don't change dominator info state. Drop dominator info
27357 for IPA pass invocations.
27358 * cgraph.c (release_function_body): Restore asserts that
27359 dominator information is released.
27361 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27363 * doc/invoke.texi: Fix typo.
27364 * tree-vrp.c: Fix typos.
27365 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27367 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27369 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27371 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27373 * config/aarch64/aarch64-builtins.c
27374 (aarch64_types_storestruct_lane_qualifiers): New.
27375 (TYPES_STORESTRUCT_LANE): Likewise.
27376 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27377 (st3_lane): Likewise.
27378 (st4_lane): Likewise.
27379 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27380 (vec_store_lanesci_lane<mode>): Likewise.
27381 (vec_store_lanesxi_lane<mode>): Likewise.
27382 (aarch64_st2_lane<VQ:mode>): Likewise.
27383 (aarch64_st3_lane<VQ:mode>): Likewise.
27384 (aarch64_st4_lane<VQ:mode>): Likewise.
27385 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27386 * config/aarch64/arm_neon.h
27387 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27388 use new macro arguments.
27389 (__ST3_LANE_FUNC): Likewise.
27390 (__ST4_LANE_FUNC): Likewise.
27391 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27392 (V_THREE_ELEM): Likewise.
27393 (V_FOUR_ELEM): Likewise.
27395 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27397 * doc/gimple.texi: Replace the description of the now-defunct
27398 union gimple_statement_d with a diagram showing the
27399 gimple_statement_base class hierarchy and its relationships to
27400 the GSS_ and GIMPLE_ enums.
27402 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27404 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27405 * config/aarch64/aarch64.c
27406 (aarch64_cannot_change_mode_class): Weaken conditions.
27407 (aarch64_modes_tieable_p): New.
27408 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27410 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27412 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27413 (loadsync_<mode>): Change mode.
27414 (load_quadpti, store_quadpti): New.
27415 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27416 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27418 2014-04-28 Martin Jambor <mjambor@suse.cz>
27420 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27421 same alias type as the original statement.
27422 (subreplacement_assignment_data): New type.
27423 (handle_unscalarized_data_in_subtree): New type of parameter,
27424 generate new memory accesses with same alias type as the original
27426 (load_assign_lhs_subreplacements): Likewise.
27427 (sra_modify_constructor_assign): Generate new memory accesses with
27428 same alias type as the original statement.
27430 2014-04-28 Richard Biener <rguenther@suse.de>
27432 * tree-pass.h (TODO_verify_il): Define.
27433 (TODO_verify_all): Complete properly.
27434 * passes.c (execute_function_todo): Move existing loop-closed
27435 SSA verification under TODO_verify_il.
27436 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27437 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27438 Fix tree sharing issue.
27440 2014-04-28 Richard Biener <rguenther@suse.de>
27442 PR middle-end/60092
27443 * builtins.def (DEF_C11_BUILTIN): Add.
27444 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27445 * coretypes.h (enum function_class): Add function_c11_misc.
27446 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27447 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27448 (call_may_clobber_ref_p_1): Likewise.
27449 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27450 (mark_all_reaching_defs_necessary_1): Likewise.
27451 (propagate_necessity): Likewise.
27452 (eliminate_unnecessary_stmts): Likewise.
27453 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27455 2014-04-28 Richard Biener <rguenther@suse.de>
27457 * tree-vrp.c (vrp_var_may_overflow): Remove.
27458 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27459 with overflow immediately bump to one before that value and
27460 let iteration figure out overflow status.
27462 2014-04-28 Richard Biener <rguenther@suse.de>
27464 * configure.ac: Do valgrind header checks unconditionally.
27465 Add --enable-valgrind-annotations.
27466 * system.h: Guard valgrind header inclusion with
27467 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27468 * alloc-pool.c (pool_alloc, pool_free): Use
27469 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27470 to guard possibly dead code.
27471 * config.in: Regenerated.
27472 * configure: Likewise.
27474 2014-04-28 Jeff Law <law@redhat.com>
27476 PR tree-optimization/60902
27477 * tree-ssa-threadedge.c
27478 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27479 over real defs when invalidating outputs from statements that do not
27480 produce useful outputs for threading.
27482 2014-04-28 Richard Biener <rguenther@suse.de>
27484 PR tree-optimization/60979
27485 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27486 SCOPs that end in a block with a successor with abnormal
27489 2014-04-28 Richard Biener <rguenther@suse.de>
27491 * tree-pass.h (execute_pass_list): Adjust prototype.
27492 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27493 (do_per_function): Change callback signature, push all actual
27494 work to the callbals.
27495 (do_per_function_toporder): Likewise.
27496 (execute_function_dump): Adjust.
27497 (execute_function_todo): Likewise.
27498 (clear_last_verified): Likewise.
27499 (verify_curr_properties): Likewise.
27500 (update_properties_after_pass): Likewise.
27501 (execute_pass_list_1): Split out from ...
27502 (execute_pass_list): ... here. Adjust.
27503 (execute_ipa_pass_list): Likewise.
27504 * cgraphunit.c (cgraph_add_new_function): Adjust.
27505 (analyze_function): Likewise.
27506 (expand_function): Likewise.
27507 * cgraph.c (release_function_body): Free dominance info
27508 here instead of asserting it was magically freed elsewhere.
27510 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27512 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27513 * configure: Regenerate.
27514 * config/sparc/sparc.opt (muser-mode): New option.
27515 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27517 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27518 * doc/invoke.texi (SPARC options): Document -muser-mode.
27520 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27522 * cselib.c (find_slot_memmode): Delete.
27523 (cselib_hasher): Change compare_type to a struct.
27524 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27526 (preserve_constants_and_equivs): Adjust for new compare_type.
27527 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27528 (wrap_constant): Delete.
27529 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27531 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27533 * doc/install.texi (Building with profile feedback): Remove
27536 2014-04-26 Tom de Vries <tom@codesourcery.com>
27538 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27541 2014-04-25 Cary Coutant <ccoutant@google.com>
27544 * dwarf2out.c (should_move_die_to_comdat): A type definition
27545 can contain a subprogram definition, but don't move it to a
27547 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27548 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27550 (clone_tree_hash): Rename to...
27551 (clone_tree_partial): ...this; change callers. Copy
27552 DW_TAG_subprogram DIEs as declarations.
27553 (copy_decls_walk): Don't copy children of a declaration into a
27556 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27559 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27562 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27564 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27565 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27567 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27570 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27572 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27574 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27576 PR tree-optimization/60930
27577 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27578 creating a multiply candidate by folding two constant
27579 multiplicands when the result overflows.
27581 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27583 PR tree-optimization/60960
27584 * tree-vect-generic.c (expand_vector_operation): Only call
27585 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27587 2014-04-25 Tom de Vries <tom@codesourcery.com>
27589 * expr.c (clobber_reg_mode): New function.
27590 * expr.h (clobber_reg): New function.
27592 2014-04-25 Tom de Vries <tom@codesourcery.com>
27594 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27597 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27598 Tom de Vries <tom@codesourcery.com>
27600 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27602 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27603 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27604 new argument to find_all_hard_reg_sets call.
27606 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27608 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27609 Use HOST_WIDE_INT_C for mask literal.
27610 (aarch_rev16_shleft_mask_imm_p): Likewise.
27612 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27615 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27617 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27619 PR preprocessor/56540
27620 * config/i386/i386-c.c (ix86_target_macros): Define
27621 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27623 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27625 * configure.ac (tga_func): Remove.
27626 (LIB_TLS_SPEC): Remove.
27627 * configure: Regenerate.
27628 * config.in: Regenerate.
27629 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27631 2014-04-25 Richard Biener <rguenther@suse.de>
27634 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27635 call stmt use/clobber sets during stmt walk instead of
27636 walking the possibly incomplete set of caller edges.
27638 2014-04-25 Richard Biener <rguenther@suse.de>
27641 * passes.c (apply_ipa_transforms): Inline into only caller ...
27642 (execute_one_pass): ... here. Properly bring in function
27643 bodies for nodes we want to apply IPA transforms to.
27645 2014-04-24 Cong Hou <congh@google.com>
27647 PR tree-optimization/60896
27648 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27649 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27650 (vect_mark_pattern_stmts): Set the def type of all statements in
27651 PATTERN_DEF_SEQ as vect_internal_def.
27653 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27655 * doc/extend.texi (PowerPC Built-in Functions): Document new
27656 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27657 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27659 * config/rs6000/predicates.md (const_0_to_3_operand): New
27660 predicate to match 0..3 integer constants.
27662 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27663 to support adding miscellaneous builtin functions.
27664 (BU_DFP_MISC_2): Likewise.
27665 (BU_P7_MISC_1): Likewise.
27666 (BU_P7_MISC_2): Likewise.
27667 (BU_P8V_MISC_3): Likewise.
27668 (BU_MISC_1): Likewise.
27669 (BU_MISC_2): Likewise.
27670 (DIVWE): Add extended divide builtin functions.
27671 (DIVWEO): Likewise.
27672 (DIVWEU): Likewise.
27673 (DIVWEUO): Likewise.
27675 (DIVDEO): Likewise.
27676 (DIVDEU): Likewise.
27677 (DIVDEUO): Likewise.
27678 (DXEX): Add decimal floating-point builtin functions.
27680 (DDEDPD): Likewise.
27681 (DDEDPDQ): Likewise.
27682 (DENBCD): Likewise.
27683 (DENBCDQ): Likewise.
27687 (DSCLIQ): Likewise.
27689 (DSCRIQ): Likewise.
27690 (CDTBCD): Add new BCD builtin functions.
27691 (CBCDTD): Likewise.
27692 (ADDG6S): Likewise.
27693 (BCDADD): Likewise.
27694 (BCDADD_LT): Likewise.
27695 (BCDADD_EQ): Likewise.
27696 (BCDADD_GT): Likewise.
27697 (BCDADD_OV): Likewise.
27698 (BCDSUB): Likewise.
27699 (BCDSUB_LT): Likewise.
27700 (BCDSUB_EQ): Likewise.
27701 (BCDSUB_GT): Likewise.
27702 (BCDSUB_OV): Likewise.
27703 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27704 (UNPACK_TD): Likewise.
27705 (PACK_TF): Likewise.
27706 (UNPACK_TF): Likewise.
27707 (UNPACK_TF_0): Likewise.
27708 (UNPACK_TF_1): Likewise.
27709 (PACK_V1TI): Likewise.
27710 (UNPACK_V1TI): Likewise.
27712 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27713 support for decimal floating point builtin functions.
27714 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27715 functions that take constant arguments.
27716 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27717 (rs6000_init_builtins): Setup long double, _Decimal64, and
27718 _Decimal128 types for new builtin functions.
27719 (builtin_function_type): Set the unsigned flags appropriately for
27720 the new builtin functions.
27721 (rs6000_opt_masks): Add support for decimal floating point builtin
27724 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27725 floating point builtin functions.
27726 (RS6000_BTM_COMMON): Likewise.
27727 (RS6000_BTI_long_double): Likewise.
27728 (RS6000_BTI_dfloat64): Likewise.
27729 (RS6000_BTI_dfloat128): Likewise.
27730 (long_double_type_internal_node): Likewise.
27731 (dfloat64_type_internal_node): Likewise.
27732 (dfloat128_type_internal_node): Likewise.
27734 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27735 2.07 bcd arithmetic instructions.
27736 (UNSPEC_BCDSUB): Likewise.
27737 (UNSPEC_BCD_OVERFLOW): Likewise.
27738 (UNSPEC_BCD_ADD_SUB): Likewise.
27739 (bcd_add_sub): Likewise.
27740 (BCD_TEST): Likewise.
27741 (bcd<bcd_add_sub>): Likewise.
27742 (bcd<bcd_add_sub>_test): Likewise.
27743 (bcd<bcd_add_sub>_test2): Likewise.
27744 (bcd<bcd_add_sub>_<code>): Likewise.
27745 (peephole2 for combined bcd ops): Likewise.
27747 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27748 decimal floating point builtin functions.
27749 (UNSPEC_DENBCD): Likewise.
27750 (UNSPEC_DXEX): Likewise.
27751 (UNSPEC_DIEX): Likewise.
27752 (UNSPEC_DSCLI): Likewise.
27753 (UNSPEC_DSCRI): Likewise.
27754 (D64_D128): Likewise.
27755 (dfp_suffix): Likewise.
27756 (dfp_ddedpd_<mode>): Likewise.
27757 (dfp_denbcd_<mode>): Likewise.
27758 (dfp_dxex_<mode>): Likewise.
27759 (dfp_diex_<mode>): Likewise.
27760 (dfp_dscli_<mode>): Likewise.
27761 (dfp_dscri_<mode>): Likewise.
27763 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27765 (UNSPEC_CDTBCD): Likewise.
27766 (UNSPEC_CBCDTD): Likewise.
27767 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27768 (UNSPEC_DIVEO): Likewise.
27769 (UNSPEC_DIVEU): Likewise.
27770 (UNSPEC_DIVEUO): Likewise.
27771 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27772 pack/unpack 128-bit types.
27773 (UNSPEC_PACK_128BIT): Likewise.
27774 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27775 (udiv<mode>3): Use idiv_ldiv mode attribute.
27776 (div<mode>3): Likewise.
27777 (addg6s): Add new BCD builtin functions.
27778 (cdtbcd): Likewise.
27779 (cbcdtd): Likewise.
27780 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27781 (div_extend): Likewise.
27782 (div<div_extend>_<mode>"): Likewise.
27783 (FP128_64): Add support for new builtin functions to pack/unpack
27785 (unpack<mode>): Likewise.
27786 (unpacktf_0): Likewise.
27787 (unpacktf_1): Likewise.
27788 (unpack<mode>_dm): Likewise.
27789 (unpack<mode>_nodm): Likewise.
27790 (pack<mode>): Likewise.
27791 (unpackv1ti): Likewise.
27792 (packv1ti): Likewise.
27794 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27796 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27799 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27801 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27802 * gimplify.c (omp_is_private): Change last argument's type to int.
27803 Only diagnose lastprivate if the simd argument is 1, only diagnose
27804 linear if the simd argument is 2.
27805 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27806 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27807 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27808 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27809 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27810 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27811 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27812 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27813 * tree-nested.c (convert_nonlocal_omp_clauses,
27814 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27816 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27819 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27822 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27824 * flag-types.h (enum ivar_visibility): Add.
27826 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27828 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27829 function * argument.
27831 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27833 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27835 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27836 Tom de Vries <tom@codesourcery.com>
27838 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27839 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27841 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27842 * emit-rtl.c (try_split): Same.
27844 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27845 Tom de Vries <tom@codesourcery.com>
27847 * common.opt (fuse-caller-save): New option.
27849 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27851 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27852 elements for big-endian.
27854 2014-04-24 Richard Biener <rguenther@suse.de>
27856 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27857 during TER and instead use the sepops interface for expanding
27858 non-GIMPLE_SINGLE_RHS.
27860 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27862 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27863 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27865 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27867 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27868 assembler 64-bit option.
27869 * configure: Regenerate.
27871 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27873 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27874 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27875 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27876 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27877 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27879 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27881 * config/aarch64/aarch64-builtins.c
27882 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27883 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27884 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27885 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27887 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27888 (Vrevsuff): New mode attribute.
27890 2014-04-24 Terry Guo <terry.guo@arm.com>
27892 * config/arm/arm.h (machine_function): Define variable
27893 after_arm_reorg here.
27894 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27895 (arm_split_constant): Update the way to access variable
27897 (arm_reorg): Ditto.
27898 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27900 2014-04-23 Tom de Vries <tom@codesourcery.com>
27902 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27904 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27906 * is-a.h: Update comments to reflect the following changes to the
27907 "pointerness" of the API, making the template parameter match the
27908 return type, allowing use of is-a.h with typedefs of pointers.
27909 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27910 that the return type matches the parameter to the is_a_helper.
27912 (dyn_cast): Likewise.
27914 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27915 pointer from the is-a.h API.
27917 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27918 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27920 (is_a_helper <varpool_node>::test): Likewise, convert to...
27921 (is_a_helper <varpool_node *>::test): ...this.
27923 (varpool_first_variable): Update for removal of implicit pointer
27924 from the is-a.h API.
27925 (varpool_next_variable): Likewise.
27926 (varpool_first_static_initializer): Likewise.
27927 (varpool_next_static_initializer): Likewise.
27928 (varpool_first_defined_variable): Likewise.
27929 (varpool_next_defined_variable): Likewise.
27930 (cgraph_first_defined_function): Likewise.
27931 (cgraph_next_defined_function): Likewise.
27932 (cgraph_first_function): Likewise.
27933 (cgraph_next_function): Likewise.
27934 (cgraph_first_function_with_gimple_body): Likewise.
27935 (cgraph_next_function_with_gimple_body): Likewise.
27936 (cgraph_alias_target): Likewise.
27937 (varpool_alias_target): Likewise.
27938 (cgraph_function_or_thunk_node): Likewise.
27939 (varpool_variable_node): Likewise.
27940 (symtab_real_symbol_p): Likewise.
27941 * cgraphunit.c (referred_to_p): Likewise.
27942 (analyze_functions): Likewise.
27943 (handle_alias_pairs): Likewise.
27944 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27945 * gimple-ssa.h (gimple_vuse_op): Likewise.
27946 (gimple_vdef_op): Likewise.
27947 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27948 * gimple.c (gimple_build_asm_1): Likewise.
27949 (gimple_build_try): Likewise.
27950 (gimple_build_resx): Likewise.
27951 (gimple_build_eh_dispatch): Likewise.
27952 (gimple_build_omp_for): Likewise.
27953 (gimple_omp_for_set_clauses): Likewise.
27955 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27956 (is_a_helper <gimple_statement_asm *>::test): ...this.
27957 (is_a_helper <gimple_statement_bind>::test): Convert to...
27958 (is_a_helper <gimple_statement_bind *>::test): ...this.
27959 (is_a_helper <gimple_statement_call>::test): Convert to...
27960 (is_a_helper <gimple_statement_call *>::test): ...this.
27961 (is_a_helper <gimple_statement_catch>::test): Convert to...
27962 (is_a_helper <gimple_statement_catch *>::test): ...this.
27963 (is_a_helper <gimple_statement_resx>::test): Convert to...
27964 (is_a_helper <gimple_statement_resx *>::test): ...this.
27965 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27966 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27967 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27968 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27969 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27970 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27971 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27972 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27973 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27974 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27975 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27976 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27977 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27978 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27979 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27980 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27981 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27982 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27983 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27984 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27985 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27986 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27987 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27988 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27989 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27990 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27991 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27992 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27993 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27994 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27995 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27996 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27997 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27998 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27999 (is_a_helper <gimple_statement_phi>::test): Convert to...
28000 (is_a_helper <gimple_statement_phi *>::test): ...this.
28001 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28002 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28003 (is_a_helper <gimple_statement_try>::test): Convert to...
28004 (is_a_helper <gimple_statement_try *>::test): ...this.
28005 (is_a_helper <gimple_statement_wce>::test): Convert to...
28006 (is_a_helper <gimple_statement_wce *>::test): ...this.
28007 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28008 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28009 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28010 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28011 (is_a_helper <const gimple_statement_call>::test): Convert to...
28012 (is_a_helper <const gimple_statement_call *>::test): ...this.
28013 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28014 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28015 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28016 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28017 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28018 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28019 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28020 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28021 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28023 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28025 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28027 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28029 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28030 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28031 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28033 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28034 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28036 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28037 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28038 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28039 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28040 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28041 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28043 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28044 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28045 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28046 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28048 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28049 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28050 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28051 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28052 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28053 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28054 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28055 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28056 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28057 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28058 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28059 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28060 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28061 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28062 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28063 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28065 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28067 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28068 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28070 (gimple_use_ops): Update for removal of implicit pointer from the
28072 (gimple_set_use_ops): Likewise.
28073 (gimple_vuse): Likewise.
28074 (gimple_vdef): Likewise.
28075 (gimple_vuse_ptr): Likewise.
28076 (gimple_vdef_ptr): Likewise.
28077 (gimple_set_vuse): Likewise.
28078 (gimple_set_vdef): Likewise.
28079 (gimple_omp_return_set_lhs): Likewise.
28080 (gimple_omp_return_lhs): Likewise.
28081 (gimple_omp_return_lhs_ptr): Likewise.
28082 (gimple_call_fntype): Likewise.
28083 (gimple_call_set_fntype): Likewise.
28084 (gimple_call_set_internal_fn): Likewise.
28085 (gimple_call_use_set): Likewise.
28086 (gimple_call_clobber_set): Likewise.
28087 (gimple_bind_vars): Likewise.
28088 (gimple_bind_set_vars): Likewise.
28089 (gimple_bind_body_ptr): Likewise.
28090 (gimple_bind_set_body): Likewise.
28091 (gimple_bind_add_stmt): Likewise.
28092 (gimple_bind_block): Likewise.
28093 (gimple_bind_set_block): Likewise.
28094 (gimple_asm_ninputs): Likewise.
28095 (gimple_asm_noutputs): Likewise.
28096 (gimple_asm_nclobbers): Likewise.
28097 (gimple_asm_nlabels): Likewise.
28098 (gimple_asm_input_op): Likewise.
28099 (gimple_asm_input_op_ptr): Likewise.
28100 (gimple_asm_output_op): Likewise.
28101 (gimple_asm_output_op_ptr): Likewise.
28102 (gimple_asm_set_output_op): Likewise.
28103 (gimple_asm_clobber_op): Likewise.
28104 (gimple_asm_set_clobber_op): Likewise.
28105 (gimple_asm_label_op): Likewise.
28106 (gimple_asm_set_label_op): Likewise.
28107 (gimple_asm_string): Likewise.
28108 (gimple_catch_types): Likewise.
28109 (gimple_catch_types_ptr): Likewise.
28110 (gimple_catch_handler_ptr): Likewise.
28111 (gimple_catch_set_types): Likewise.
28112 (gimple_catch_set_handler): Likewise.
28113 (gimple_eh_filter_types): Likewise.
28114 (gimple_eh_filter_types_ptr): Likewise.
28115 (gimple_eh_filter_failure_ptr): Likewise.
28116 (gimple_eh_filter_set_types): Likewise.
28117 (gimple_eh_filter_set_failure): Likewise.
28118 (gimple_eh_must_not_throw_fndecl): Likewise.
28119 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28120 (gimple_eh_else_n_body_ptr): Likewise.
28121 (gimple_eh_else_e_body_ptr): Likewise.
28122 (gimple_eh_else_set_n_body): Likewise.
28123 (gimple_eh_else_set_e_body): Likewise.
28124 (gimple_try_eval_ptr): Likewise.
28125 (gimple_try_cleanup_ptr): Likewise.
28126 (gimple_try_set_eval): Likewise.
28127 (gimple_try_set_cleanup): Likewise.
28128 (gimple_wce_cleanup_ptr): Likewise.
28129 (gimple_wce_set_cleanup): Likewise.
28130 (gimple_phi_capacity): Likewise.
28131 (gimple_phi_num_args): Likewise.
28132 (gimple_phi_result): Likewise.
28133 (gimple_phi_result_ptr): Likewise.
28134 (gimple_phi_set_result): Likewise.
28135 (gimple_phi_arg): Likewise.
28136 (gimple_phi_set_arg): Likewise.
28137 (gimple_resx_region): Likewise.
28138 (gimple_resx_set_region): Likewise.
28139 (gimple_eh_dispatch_region): Likewise.
28140 (gimple_eh_dispatch_set_region): Likewise.
28141 (gimple_omp_critical_name): Likewise.
28142 (gimple_omp_critical_name_ptr): Likewise.
28143 (gimple_omp_critical_set_name): Likewise.
28144 (gimple_omp_for_clauses): Likewise.
28145 (gimple_omp_for_clauses_ptr): Likewise.
28146 (gimple_omp_for_set_clauses): Likewise.
28147 (gimple_omp_for_collapse): Likewise.
28148 (gimple_omp_for_index): Likewise.
28149 (gimple_omp_for_index_ptr): Likewise.
28150 (gimple_omp_for_set_index): Likewise.
28151 (gimple_omp_for_initial): Likewise.
28152 (gimple_omp_for_initial_ptr): Likewise.
28153 (gimple_omp_for_set_initial): Likewise.
28154 (gimple_omp_for_final): Likewise.
28155 (gimple_omp_for_final_ptr): Likewise.
28156 (gimple_omp_for_set_final): Likewise.
28157 (gimple_omp_for_incr): Likewise.
28158 (gimple_omp_for_incr_ptr): Likewise.
28159 (gimple_omp_for_set_incr): Likewise.
28160 (gimple_omp_for_pre_body_ptr): Likewise.
28161 (gimple_omp_for_set_pre_body): Likewise.
28162 (gimple_omp_parallel_clauses): Likewise.
28163 (gimple_omp_parallel_clauses_ptr): Likewise.
28164 (gimple_omp_parallel_set_clauses): Likewise.
28165 (gimple_omp_parallel_child_fn): Likewise.
28166 (gimple_omp_parallel_child_fn_ptr): Likewise.
28167 (gimple_omp_parallel_set_child_fn): Likewise.
28168 (gimple_omp_parallel_data_arg): Likewise.
28169 (gimple_omp_parallel_data_arg_ptr): Likewise.
28170 (gimple_omp_parallel_set_data_arg): Likewise.
28171 (gimple_omp_task_clauses): Likewise.
28172 (gimple_omp_task_clauses_ptr): Likewise.
28173 (gimple_omp_task_set_clauses): Likewise.
28174 (gimple_omp_task_child_fn): Likewise.
28175 (gimple_omp_task_child_fn_ptr): Likewise.
28176 (gimple_omp_task_set_child_fn): Likewise.
28177 (gimple_omp_task_data_arg): Likewise.
28178 (gimple_omp_task_data_arg_ptr): Likewise.
28179 (gimple_omp_task_set_data_arg): Likewise.
28180 (gimple_omp_taskreg_clauses): Likewise.
28181 (gimple_omp_taskreg_clauses_ptr): Likewise.
28182 (gimple_omp_taskreg_set_clauses): Likewise.
28183 (gimple_omp_taskreg_child_fn): Likewise.
28184 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28185 (gimple_omp_taskreg_set_child_fn): Likewise.
28186 (gimple_omp_taskreg_data_arg): Likewise.
28187 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28188 (gimple_omp_taskreg_set_data_arg): Likewise.
28189 (gimple_omp_task_copy_fn): Likewise.
28190 (gimple_omp_task_copy_fn_ptr): Likewise.
28191 (gimple_omp_task_set_copy_fn): Likewise.
28192 (gimple_omp_task_arg_size): Likewise.
28193 (gimple_omp_task_arg_size_ptr): Likewise.
28194 (gimple_omp_task_set_arg_size): Likewise.
28195 (gimple_omp_task_arg_align): Likewise.
28196 (gimple_omp_task_arg_align_ptr): Likewise.
28197 (gimple_omp_task_set_arg_align): Likewise.
28198 (gimple_omp_single_clauses): Likewise.
28199 (gimple_omp_single_clauses_ptr): Likewise.
28200 (gimple_omp_single_set_clauses): Likewise.
28201 (gimple_omp_target_clauses): Likewise.
28202 (gimple_omp_target_clauses_ptr): Likewise.
28203 (gimple_omp_target_set_clauses): Likewise.
28204 (gimple_omp_target_child_fn): Likewise.
28205 (gimple_omp_target_child_fn_ptr): Likewise.
28206 (gimple_omp_target_set_child_fn): Likewise.
28207 (gimple_omp_target_data_arg): Likewise.
28208 (gimple_omp_target_data_arg_ptr): Likewise.
28209 (gimple_omp_target_set_data_arg): Likewise.
28210 (gimple_omp_teams_clauses): Likewise.
28211 (gimple_omp_teams_clauses_ptr): Likewise.
28212 (gimple_omp_teams_set_clauses): Likewise.
28213 (gimple_omp_sections_clauses): Likewise.
28214 (gimple_omp_sections_clauses_ptr): Likewise.
28215 (gimple_omp_sections_set_clauses): Likewise.
28216 (gimple_omp_sections_control): Likewise.
28217 (gimple_omp_sections_control_ptr): Likewise.
28218 (gimple_omp_sections_set_control): Likewise.
28219 (gimple_omp_for_set_cond): Likewise.
28220 (gimple_omp_for_cond): Likewise.
28221 (gimple_omp_atomic_store_set_val): Likewise.
28222 (gimple_omp_atomic_store_val): Likewise.
28223 (gimple_omp_atomic_store_val_ptr): Likewise.
28224 (gimple_omp_atomic_load_set_lhs): Likewise.
28225 (gimple_omp_atomic_load_lhs): Likewise.
28226 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28227 (gimple_omp_atomic_load_set_rhs): Likewise.
28228 (gimple_omp_atomic_load_rhs): Likewise.
28229 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28230 (gimple_omp_continue_control_def): Likewise.
28231 (gimple_omp_continue_control_def_ptr): Likewise.
28232 (gimple_omp_continue_set_control_def): Likewise.
28233 (gimple_omp_continue_control_use): Likewise.
28234 (gimple_omp_continue_control_use_ptr): Likewise.
28235 (gimple_omp_continue_set_control_use): Likewise.
28236 (gimple_transaction_body_ptr): Likewise.
28237 (gimple_transaction_label): Likewise.
28238 (gimple_transaction_label_ptr): Likewise.
28239 (gimple_transaction_set_body): Likewise.
28240 (gimple_transaction_set_label): Likewise.
28242 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28243 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28244 * ipa-ref.c (ipa_record_reference): Likewise.
28245 * ipa-reference.c (analyze_function): Likewise.
28246 (ipa_reference_write_optimization_summary): Likewise.
28247 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28248 (address_taken_from_non_vtable_p): Likewise.
28249 (comdat_can_be_unshared_p_1): Likewise.
28250 * lto-cgraph.c (lto_output_ref): Likewise.
28251 (add_references): Likewise.
28252 (compute_ltrans_boundary): Likewise.
28253 (output_symtab): Likewise.
28254 (input_ref): Likewise.
28255 (input_cgraph_1): Likewise.
28256 (output_cgraph_opt_summary): Likewise.
28257 * lto-streamer-out.c (lto_output): Likewise.
28258 (output_symbol_p): Likewise.
28259 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28260 (lsei_start_function_in_partition): Likewise.
28261 (lsei_next_variable_in_partition): Likewise.
28262 (lsei_start_variable_in_partition): Likewise.
28263 * symtab.c (insert_to_assembler_name_hash): Likewise.
28264 (unlink_from_assembler_name_hash): Likewise.
28265 (symtab_unregister_node): Likewise.
28266 (symtab_remove_node): Likewise.
28267 (dump_symtab_node): Likewise.
28268 (verify_symtab_base): Likewise.
28269 (verify_symtab_node): Likewise.
28270 (symtab_make_decl_local): Likewise.
28271 (symtab_alias_ultimate_target): Likewise.
28272 (symtab_resolve_alias): Likewise.
28273 (symtab_get_symbol_partitioning_class): Likewise.
28274 * tree-phinodes.c (allocate_phi_node): Likewise.
28275 (reserve_phi_args_for_new_edge): Likewise.
28276 (remove_phi_args): Likewise.
28277 * varpool.c (varpool_node_for_asm): Likewise.
28278 (varpool_remove_unreferenced_decls): Likewise.
28280 2014-04-23 Jeff Law <law@redhat.com>
28282 PR tree-optimization/60902
28283 * tree-ssa-threadedge.c
28284 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28285 invalidate outputs from statements that do not produce useful
28286 outputs for threading.
28288 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28290 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28291 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28292 machine descriptions for Stack Smashing Protector.
28294 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28296 * aarch64.md (<optab>_rol<mode>3): New pattern.
28297 (<optab>_rolsi3_uxtw): Likewise.
28298 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28300 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28302 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28303 (arm_cortex_a12_tune): Likewise.
28305 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28307 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28309 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28311 * config/arm/arm.md (arm_rev16si2): New pattern.
28312 (arm_rev16si2_alt): Likewise.
28313 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28315 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28317 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28318 (rev16<mode>2_alt): Likewise.
28319 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28320 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28321 (aarch_rev16_shleft_mask_imm_p): Likewise.
28322 (aarch_rev16_p_1): Likewise.
28323 (aarch_rev16_p): Likewise.
28324 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28325 (aarch_rev16_shright_mask_imm_p): Likewise.
28326 (aarch_rev16_shleft_mask_imm_p): Likewise.
28328 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28330 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28331 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28333 (cortex_a53_extra_costs): Likewise.
28334 (cortex_a57_extra_costs): Likewise.
28335 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28336 (cortexa7_extra_costs): Likewise.
28337 (cortexa8_extra_costs): Likewise.
28338 (cortexa12_extra_costs): Likewise.
28339 (cortexa15_extra_costs): Likewise.
28340 (v7m_extra_costs): Likewise.
28341 (arm_new_rtx_costs): Handle BSWAP.
28343 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28345 * config/arm/arm.c (cortexa8_extra_costs): New table.
28346 (arm_cortex_a8_tune): New tuning struct.
28347 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28349 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28351 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28353 2014-04-23 Richard Biener <rguenther@suse.de>
28355 * Makefile.in (OBJS): Remove loop-unswitch.o.
28356 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28357 * passes.def (pass_rtl_unswitch): Likewise.
28358 * loop-init.c (gate_rtl_unswitch): Likewise.
28359 (rtl_unswitch): Likewise.
28360 (pass_data_rtl_unswitch): Likewise.
28361 (pass_rtl_unswitch): Likewise.
28362 (make_pass_rtl_unswitch): Likewise.
28363 * rtl.h (reversed_condition): Likewise.
28364 (compare_and_jump_seq): Likewise.
28365 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28367 * loop-unroll.c (compare_and_jump_seq): Likewise.
28369 2014-04-23 Richard Biener <rguenther@suse.de>
28371 PR tree-optimization/60903
28372 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28373 commented code block.
28374 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28375 loop flags to newly created BBs and edges.
28377 2014-04-23 Nick Clifton <nickc@redhat.com>
28379 * config/msp430/msp430.c (msp430_handle_option): Move function
28381 (msp430_option_override): Simplify mcu and mcpu option handling.
28382 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28383 support for -mhwmult command line option.
28384 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28385 -mhwmult command line option.
28386 (msp430_hwmult_enabled): Delete.
28387 (msp43o_output_labelref): Add support for -mhwmult command line option.
28388 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28389 (umulsidi3): Likewise.
28390 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28391 (mcpu, mlarge, msmall): Likewise.
28392 (mhwmult): New option.
28393 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28395 (msp430_is_f5_mcu): Remove prototype.
28396 (msp430_use_f5_series_hwmult): Add prototype.
28397 * config/msp430/msp430-opts.h: New file.
28398 * common/config/msp430: New directory.
28399 * common/config/msp430/msp430-common.c: New file.
28400 * config.gcc (msp430): Remove target_has_targetm_common.
28401 * doc/invoke.texi: Document -mhwmult command line option.
28403 2014-04-23 Nick Clifton <nickc@redhat.com>
28405 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28406 default-manifest.o if it can be found in the search path.
28407 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28409 2014-04-23 Terry Guo <terry.guo@arm.com>
28411 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28413 2014-04-23 Richard Biener <rguenther@suse.de>
28415 PR middle-end/60895
28416 * tree-inline.c (declare_return_variable): Use mark_addressable.
28418 2014-04-23 Richard Biener <rguenther@suse.de>
28420 PR middle-end/60891
28421 * loop-init.c (loop_optimizer_init): Make sure to apply
28422 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28424 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28427 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28429 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28430 if flag_sanitize_undefined_trap_on_error.
28431 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28432 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28433 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28434 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28435 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28436 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28437 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28438 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28439 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28440 * ubsan.c (ubsan_instrument_unreachable): Return
28441 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28442 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28443 if flag_sanitize_undefined_trap_on_error and
28444 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28445 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28446 instrument_bool_enum_load): Emit __builtin_trap () if
28447 flag_sanitize_undefined_trap_on_error and
28448 __builtin_handle_*_abort () if !flag_sanitize_recover.
28449 * doc/invoke.texi (-fsanitize-recover,
28450 -fsanitize-undefined-trap-on-error): Document.
28452 2014-04-22 Christian Bruel <christian.bruel@st.com>
28454 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28455 Force immediates to SImode.
28457 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28459 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28460 (lroundsfsi2): New.
28461 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28462 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28463 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28464 (nios2_fpu_insn): Add entry for round.
28465 (N2FPU_NO_ERRNO_P): Define.
28466 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28468 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28470 2014-04-22 Richard Henderson <rth@redhat.com>
28472 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28473 (add<GPI>3_compare0): Remove leading * from name.
28474 (add<GPI>3_carryin): Likewise.
28475 (sub<GPI>3_compare0): Likewise.
28476 (sub<GPI>3_carryin): Likewise.
28477 (<su_optab>mulditi3): New expander.
28478 (multi3): New expander.
28479 (madd<GPI>): Remove leading * from name.
28481 2014-04-22 Martin Jambor <mjambor@suse.cz>
28483 * cgraphclones.c (cgraph_function_versioning): Copy
28484 ipa_transforms_to_apply instead of asserting it is empty.
28486 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28489 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28490 on count_exp to get mode.
28492 2014-04-22 Andrew Pinski <apinski@cavium.com>
28494 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28495 Handle TLS for ILP32.
28496 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28497 (tlsie_small_<mode>): this and handle PTR.
28498 (tlsie_small_sidi): New pattern.
28499 (tlsle_small): Change to an expand to handle ILP32.
28500 (tlsle_small_<mode>): New pattern.
28501 (tlsdesc_small): Rename to ...
28502 (tlsdesc_small_<mode>): this and handle PTR.
28504 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28506 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28508 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28510 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28511 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28512 (aarch64_types_signed_poly_qualifiers): Likewise.
28513 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28514 (aarch64_types_poly_signed_qualifiers): Likewise.
28515 (TYPES_REINTERP_SS): Type macro added.
28516 (TYPES_REINTERP_SU): Likewise.
28517 (TYPES_REINTERP_SP): Likewise.
28518 (TYPES_REINTERP_US): Likewise.
28519 (TYPES_REINTERP_PS): Likewise.
28520 (aarch64_fold_builtin): New expression folding added.
28521 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28522 Declarations removed.
28523 (REINTERP_SS): Declarations added.
28524 (REINTERP_US): Likewise.
28525 (REINTERP_PS): Likewise.
28526 (REINTERP_SU): Likewise.
28527 (REINTERP_SP): Likewise.
28528 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28529 (vreinterpretq_p8_f64): Likewise.
28530 (vreinterpret_p16_f64): Likewise.
28531 (vreinterpretq_p16_f64): Likewise.
28532 (vreinterpret_f32_f64): Likewise.
28533 (vreinterpretq_f32_f64): Likewise.
28534 (vreinterpret_f64_f32): Likewise.
28535 (vreinterpret_f64_p8): Likewise.
28536 (vreinterpret_f64_p16): Likewise.
28537 (vreinterpret_f64_s8): Likewise.
28538 (vreinterpret_f64_s16): Likewise.
28539 (vreinterpret_f64_s32): Likewise.
28540 (vreinterpret_f64_s64): Likewise.
28541 (vreinterpret_f64_u8): Likewise.
28542 (vreinterpret_f64_u16): Likewise.
28543 (vreinterpret_f64_u32): Likewise.
28544 (vreinterpret_f64_u64): Likewise.
28545 (vreinterpretq_f64_f32): Likewise.
28546 (vreinterpretq_f64_p8): Likewise.
28547 (vreinterpretq_f64_p16): Likewise.
28548 (vreinterpretq_f64_s8): Likewise.
28549 (vreinterpretq_f64_s16): Likewise.
28550 (vreinterpretq_f64_s32): Likewise.
28551 (vreinterpretq_f64_s64): Likewise.
28552 (vreinterpretq_f64_u8): Likewise.
28553 (vreinterpretq_f64_u16): Likewise.
28554 (vreinterpretq_f64_u32): Likewise.
28555 (vreinterpretq_f64_u64): Likewise.
28556 (vreinterpret_s64_f64): Likewise.
28557 (vreinterpretq_s64_f64): Likewise.
28558 (vreinterpret_u64_f64): Likewise.
28559 (vreinterpretq_u64_f64): Likewise.
28560 (vreinterpret_s8_f64): Likewise.
28561 (vreinterpretq_s8_f64): Likewise.
28562 (vreinterpret_s16_f64): Likewise.
28563 (vreinterpretq_s16_f64): Likewise.
28564 (vreinterpret_s32_f64): Likewise.
28565 (vreinterpretq_s32_f64): Likewise.
28566 (vreinterpret_u8_f64): Likewise.
28567 (vreinterpretq_u8_f64): Likewise.
28568 (vreinterpret_u16_f64): Likewise.
28569 (vreinterpretq_u16_f64): Likewise.
28570 (vreinterpret_u32_f64): Likewise.
28571 (vreinterpretq_u32_f64): Likewise.
28573 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28575 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28576 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28577 (vreinterpret_p8_s8): Likewise.
28578 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28579 (vreinterpret_p8_s16): Likewise.
28580 (vreinterpret_p8_s32): Likewise.
28581 (vreinterpret_p8_s64): Likewise.
28582 (vreinterpret_p8_f32): Likewise.
28583 (vreinterpret_p8_u8): Likewise.
28584 (vreinterpret_p8_u16): Likewise.
28585 (vreinterpret_p8_u32): Likewise.
28586 (vreinterpret_p8_u64): Likewise.
28587 (vreinterpret_p8_p16): Likewise.
28588 (vreinterpretq_p8_s8): Likewise.
28589 (vreinterpretq_p8_s16): Likewise.
28590 (vreinterpretq_p8_s32): Likewise.
28591 (vreinterpretq_p8_s64): Likewise.
28592 (vreinterpretq_p8_f32): Likewise.
28593 (vreinterpretq_p8_u8): Likewise.
28594 (vreinterpretq_p8_u16): Likewise.
28595 (vreinterpretq_p8_u32): Likewise.
28596 (vreinterpretq_p8_u64): Likewise.
28597 (vreinterpretq_p8_p16): Likewise.
28598 (vreinterpret_p16_s8): Likewise.
28599 (vreinterpret_p16_s16): Likewise.
28600 (vreinterpret_p16_s32): Likewise.
28601 (vreinterpret_p16_s64): Likewise.
28602 (vreinterpret_p16_f32): Likewise.
28603 (vreinterpret_p16_u8): Likewise.
28604 (vreinterpret_p16_u16): Likewise.
28605 (vreinterpret_p16_u32): Likewise.
28606 (vreinterpret_p16_u64): Likewise.
28607 (vreinterpret_p16_p8): Likewise.
28608 (vreinterpretq_p16_s8): Likewise.
28609 (vreinterpretq_p16_s16): Likewise.
28610 (vreinterpretq_p16_s32): Likewise.
28611 (vreinterpretq_p16_s64): Likewise.
28612 (vreinterpretq_p16_f32): Likewise.
28613 (vreinterpretq_p16_u8): Likewise.
28614 (vreinterpretq_p16_u16): Likewise.
28615 (vreinterpretq_p16_u32): Likewise.
28616 (vreinterpretq_p16_u64): Likewise.
28617 (vreinterpretq_p16_p8): Likewise.
28618 (vreinterpret_f32_s8): Likewise.
28619 (vreinterpret_f32_s16): Likewise.
28620 (vreinterpret_f32_s32): Likewise.
28621 (vreinterpret_f32_s64): Likewise.
28622 (vreinterpret_f32_u8): Likewise.
28623 (vreinterpret_f32_u16): Likewise.
28624 (vreinterpret_f32_u32): Likewise.
28625 (vreinterpret_f32_u64): Likewise.
28626 (vreinterpret_f32_p8): Likewise.
28627 (vreinterpret_f32_p16): Likewise.
28628 (vreinterpretq_f32_s8): Likewise.
28629 (vreinterpretq_f32_s16): Likewise.
28630 (vreinterpretq_f32_s32): Likewise.
28631 (vreinterpretq_f32_s64): Likewise.
28632 (vreinterpretq_f32_u8): Likewise.
28633 (vreinterpretq_f32_u16): Likewise.
28634 (vreinterpretq_f32_u32): Likewise.
28635 (vreinterpretq_f32_u64): Likewise.
28636 (vreinterpretq_f32_p8): Likewise.
28637 (vreinterpretq_f32_p16): Likewise.
28638 (vreinterpret_s64_s8): Likewise.
28639 (vreinterpret_s64_s16): Likewise.
28640 (vreinterpret_s64_s32): Likewise.
28641 (vreinterpret_s64_f32): Likewise.
28642 (vreinterpret_s64_u8): Likewise.
28643 (vreinterpret_s64_u16): Likewise.
28644 (vreinterpret_s64_u32): Likewise.
28645 (vreinterpret_s64_u64): Likewise.
28646 (vreinterpret_s64_p8): Likewise.
28647 (vreinterpret_s64_p16): Likewise.
28648 (vreinterpretq_s64_s8): Likewise.
28649 (vreinterpretq_s64_s16): Likewise.
28650 (vreinterpretq_s64_s32): Likewise.
28651 (vreinterpretq_s64_f32): Likewise.
28652 (vreinterpretq_s64_u8): Likewise.
28653 (vreinterpretq_s64_u16): Likewise.
28654 (vreinterpretq_s64_u32): Likewise.
28655 (vreinterpretq_s64_u64): Likewise.
28656 (vreinterpretq_s64_p8): Likewise.
28657 (vreinterpretq_s64_p16): Likewise.
28658 (vreinterpret_u64_s8): Likewise.
28659 (vreinterpret_u64_s16): Likewise.
28660 (vreinterpret_u64_s32): Likewise.
28661 (vreinterpret_u64_s64): Likewise.
28662 (vreinterpret_u64_f32): Likewise.
28663 (vreinterpret_u64_u8): Likewise.
28664 (vreinterpret_u64_u16): Likewise.
28665 (vreinterpret_u64_u32): Likewise.
28666 (vreinterpret_u64_p8): Likewise.
28667 (vreinterpret_u64_p16): Likewise.
28668 (vreinterpretq_u64_s8): Likewise.
28669 (vreinterpretq_u64_s16): Likewise.
28670 (vreinterpretq_u64_s32): Likewise.
28671 (vreinterpretq_u64_s64): Likewise.
28672 (vreinterpretq_u64_f32): Likewise.
28673 (vreinterpretq_u64_u8): Likewise.
28674 (vreinterpretq_u64_u16): Likewise.
28675 (vreinterpretq_u64_u32): Likewise.
28676 (vreinterpretq_u64_p8): Likewise.
28677 (vreinterpretq_u64_p16): Likewise.
28678 (vreinterpret_s8_s16): Likewise.
28679 (vreinterpret_s8_s32): Likewise.
28680 (vreinterpret_s8_s64): Likewise.
28681 (vreinterpret_s8_f32): Likewise.
28682 (vreinterpret_s8_u8): Likewise.
28683 (vreinterpret_s8_u16): Likewise.
28684 (vreinterpret_s8_u32): Likewise.
28685 (vreinterpret_s8_u64): Likewise.
28686 (vreinterpret_s8_p8): Likewise.
28687 (vreinterpret_s8_p16): Likewise.
28688 (vreinterpretq_s8_s16): Likewise.
28689 (vreinterpretq_s8_s32): Likewise.
28690 (vreinterpretq_s8_s64): Likewise.
28691 (vreinterpretq_s8_f32): Likewise.
28692 (vreinterpretq_s8_u8): Likewise.
28693 (vreinterpretq_s8_u16): Likewise.
28694 (vreinterpretq_s8_u32): Likewise.
28695 (vreinterpretq_s8_u64): Likewise.
28696 (vreinterpretq_s8_p8): Likewise.
28697 (vreinterpretq_s8_p16): Likewise.
28698 (vreinterpret_s16_s8): Likewise.
28699 (vreinterpret_s16_s32): Likewise.
28700 (vreinterpret_s16_s64): Likewise.
28701 (vreinterpret_s16_f32): Likewise.
28702 (vreinterpret_s16_u8): Likewise.
28703 (vreinterpret_s16_u16): Likewise.
28704 (vreinterpret_s16_u32): Likewise.
28705 (vreinterpret_s16_u64): Likewise.
28706 (vreinterpret_s16_p8): Likewise.
28707 (vreinterpret_s16_p16): Likewise.
28708 (vreinterpretq_s16_s8): Likewise.
28709 (vreinterpretq_s16_s32): Likewise.
28710 (vreinterpretq_s16_s64): Likewise.
28711 (vreinterpretq_s16_f32): Likewise.
28712 (vreinterpretq_s16_u8): Likewise.
28713 (vreinterpretq_s16_u16): Likewise.
28714 (vreinterpretq_s16_u32): Likewise.
28715 (vreinterpretq_s16_u64): Likewise.
28716 (vreinterpretq_s16_p8): Likewise.
28717 (vreinterpretq_s16_p16): Likewise.
28718 (vreinterpret_s32_s8): Likewise.
28719 (vreinterpret_s32_s16): Likewise.
28720 (vreinterpret_s32_s64): Likewise.
28721 (vreinterpret_s32_f32): Likewise.
28722 (vreinterpret_s32_u8): Likewise.
28723 (vreinterpret_s32_u16): Likewise.
28724 (vreinterpret_s32_u32): Likewise.
28725 (vreinterpret_s32_u64): Likewise.
28726 (vreinterpret_s32_p8): Likewise.
28727 (vreinterpret_s32_p16): Likewise.
28728 (vreinterpretq_s32_s8): Likewise.
28729 (vreinterpretq_s32_s16): Likewise.
28730 (vreinterpretq_s32_s64): Likewise.
28731 (vreinterpretq_s32_f32): Likewise.
28732 (vreinterpretq_s32_u8): Likewise.
28733 (vreinterpretq_s32_u16): Likewise.
28734 (vreinterpretq_s32_u32): Likewise.
28735 (vreinterpretq_s32_u64): Likewise.
28736 (vreinterpretq_s32_p8): Likewise.
28737 (vreinterpretq_s32_p16): Likewise.
28738 (vreinterpret_u8_s8): Likewise.
28739 (vreinterpret_u8_s16): Likewise.
28740 (vreinterpret_u8_s32): Likewise.
28741 (vreinterpret_u8_s64): Likewise.
28742 (vreinterpret_u8_f32): Likewise.
28743 (vreinterpret_u8_u16): Likewise.
28744 (vreinterpret_u8_u32): Likewise.
28745 (vreinterpret_u8_u64): Likewise.
28746 (vreinterpret_u8_p8): Likewise.
28747 (vreinterpret_u8_p16): Likewise.
28748 (vreinterpretq_u8_s8): Likewise.
28749 (vreinterpretq_u8_s16): Likewise.
28750 (vreinterpretq_u8_s32): Likewise.
28751 (vreinterpretq_u8_s64): Likewise.
28752 (vreinterpretq_u8_f32): Likewise.
28753 (vreinterpretq_u8_u16): Likewise.
28754 (vreinterpretq_u8_u32): Likewise.
28755 (vreinterpretq_u8_u64): Likewise.
28756 (vreinterpretq_u8_p8): Likewise.
28757 (vreinterpretq_u8_p16): Likewise.
28758 (vreinterpret_u16_s8): Likewise.
28759 (vreinterpret_u16_s16): Likewise.
28760 (vreinterpret_u16_s32): Likewise.
28761 (vreinterpret_u16_s64): Likewise.
28762 (vreinterpret_u16_f32): Likewise.
28763 (vreinterpret_u16_u8): Likewise.
28764 (vreinterpret_u16_u32): Likewise.
28765 (vreinterpret_u16_u64): Likewise.
28766 (vreinterpret_u16_p8): Likewise.
28767 (vreinterpret_u16_p16): Likewise.
28768 (vreinterpretq_u16_s8): Likewise.
28769 (vreinterpretq_u16_s16): Likewise.
28770 (vreinterpretq_u16_s32): Likewise.
28771 (vreinterpretq_u16_s64): Likewise.
28772 (vreinterpretq_u16_f32): Likewise.
28773 (vreinterpretq_u16_u8): Likewise.
28774 (vreinterpretq_u16_u32): Likewise.
28775 (vreinterpretq_u16_u64): Likewise.
28776 (vreinterpretq_u16_p8): Likewise.
28777 (vreinterpretq_u16_p16): Likewise.
28778 (vreinterpret_u32_s8): Likewise.
28779 (vreinterpret_u32_s16): Likewise.
28780 (vreinterpret_u32_s32): Likewise.
28781 (vreinterpret_u32_s64): Likewise.
28782 (vreinterpret_u32_f32): Likewise.
28783 (vreinterpret_u32_u8): Likewise.
28784 (vreinterpret_u32_u16): Likewise.
28785 (vreinterpret_u32_u64): Likewise.
28786 (vreinterpret_u32_p8): Likewise.
28787 (vreinterpret_u32_p16): Likewise.
28788 (vreinterpretq_u32_s8): Likewise.
28789 (vreinterpretq_u32_s16): Likewise.
28790 (vreinterpretq_u32_s32): Likewise.
28791 (vreinterpretq_u32_s64): Likewise.
28792 (vreinterpretq_u32_f32): Likewise.
28793 (vreinterpretq_u32_u8): Likewise.
28794 (vreinterpretq_u32_u16): Likewise.
28795 (vreinterpretq_u32_u64): Likewise.
28796 (vreinterpretq_u32_p8): Likewise.
28797 (vreinterpretq_u32_p16): Likewise.
28799 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28801 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28803 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28805 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28806 (vqnegd_s64): Likewise.
28807 (vqabs_s64): Likewise.
28808 (vqabsd_s64): Likewise.
28810 2014-04-22 Richard Henderson <rth@redhat.com>
28812 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28813 computation to the top of the loop.
28815 2014-04-22 Renlin <renlin.li@arm.com>
28816 Jiong Wang <jiong.wang@arm.com>
28818 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28819 * config/aarch64/aarch64.c (aarch64_layout_frame)
28820 (aarch64_initial_elimination_offset): Likewise.
28822 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28824 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28827 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28829 * machmode.h (bitwise_mode_for_mode): Declare.
28830 * stor-layout.h (bitwise_type_for_mode): Likewise.
28831 * stor-layout.c (bitwise_mode_for_mode): New function.
28832 (bitwise_type_for_mode): Likewise.
28833 * builtins.c (fold_builtin_memory_op): Use it instead of
28834 int_mode_for_mode and build_nonstandard_integer_type.
28836 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28838 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28839 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28840 (*-*-solaris2*): Simplify.
28841 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28842 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28843 *-*-solaris2.9* handling.
28845 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28847 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28848 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28849 handling, simplify.
28850 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28851 * configure: Regenerate.
28853 * config/i386/sol2-9.h: Remove.
28855 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28856 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28857 Remove Solaris 9 references.
28859 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28861 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28862 (floatuns<GPI:mode><GPF:mode>2): Remove.
28863 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28864 and floatuns conversions.
28865 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28866 and floatuns conversions.
28867 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28868 (w1,w2): New mode attributes for inequal width conversions.
28870 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28872 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28873 the output asm format.
28875 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28877 * config/aarch64/aarch64-simd.md
28878 (aarch64_cm<optab>di): Always split.
28879 (*aarch64_cm<optab>di): New.
28880 (aarch64_cmtstdi): Always split.
28881 (*aarch64_cmtstdi): New.
28883 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28885 PR tree-optimization/60823
28886 * omp-low.c (ipa_simd_modify_function_body): Go through
28887 all SSA_NAMEs and for those refering to vector arguments
28888 which are going to be replaced adjust SSA_NAME_VAR and,
28889 if it is a default definition, change it into a non-default
28890 definition assigned at the beginning of function from new_decl.
28891 (ipa_simd_modify_stmt_ops): Rewritten.
28892 * tree-dfa.c (set_ssa_default_def): When removing default def,
28893 check for NULL loc instead of NULL *loc.
28895 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28897 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28898 restrictions on core registers for DImode values in Thumb2.
28900 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28902 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28903 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28905 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28907 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28908 (*iordi_notzesidi_di): Likewise.
28909 (*iordi_notsesidi_di): Likewise.
28911 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28913 * config/arm/arm-protos.h (tune_params): New struct members.
28914 * config/arm/arm.c: Initialise tune_params per processor.
28915 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28916 for speed, based on new tune_params.
28918 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28920 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28921 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28922 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28923 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28924 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28925 (vrnda_f64): Likewise.
28926 (vrndi_f64): Likewise.
28927 (vrndm_f64): Likewise.
28928 (vrndn_f64): Likewise.
28929 (vrndp_f64): Likewise.
28930 (vrndx_f64): Likewise.
28932 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28934 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28935 GET_MODE_SIZE argument is enum machine_mode.
28937 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28940 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28941 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28943 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28945 PR middle-end/60281
28946 * asan.c (asan_emit_stack_protection): Force the base to align to
28947 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28948 appropriate bits if STRICT_ALIGNMENT.
28949 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28951 (expand_used_vars): Leave a space in the stack frame for alignment
28952 if STRICT_ALIGNMENT.
28954 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28956 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28958 (gimple_store_p): Likewise.
28959 (gimple_assign_load_p): Likewise.
28960 (gimple_assign_cast_p): Likewise.
28961 (gimple_clobber_p): Likewise.
28963 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28964 rather than a gimple.
28965 (gimple_assign_cast_p): Likewise.
28967 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28970 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28971 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28973 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28974 more debug information for E500 if -mdebug=reg.
28976 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28979 * config/i386/i386.c (ix86_expand_builtin)
28980 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28981 register for target RTX.
28982 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28984 2014-04-18 Cong Hou <congh@google.com>
28986 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28987 the widen-mult pattern by handling two operands with different sizes,
28988 and operands whose size is smaller than half of the result type.
28990 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28992 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28993 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28994 (do_estimate_edge_time): Compute it.
28995 * ipa-inline.c (want_inline_small_function_p): Bypass
28996 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28998 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29000 * ipa-inline.c (spec_rem): New static variable.
29001 (dump_overall_stats): New function.
29002 (dump_inline_stats): New function.
29004 2014-04-18 Richard Henderson <rth@redhat.com>
29006 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29007 to GET_MODE_SIZE, not a reg_class_t.
29009 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29011 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29012 (vsx_xxmrglw_<mode>): Likewise.
29014 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29017 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29018 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29019 (rs6000_init_hard_regno_mode_ok): Likewise.
29021 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29023 * ipa-inline.c (inline_small_functions): Account only non-cold
29025 * doc/invoke.texi (inline-unit-growth): Update documentation.
29027 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29029 * config/rs6000/rs6000.md (addti3, subti3): New.
29031 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29034 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29035 comment. Check optimize_insn_for_size_p instead of
29036 optimize_insn_for_speed_p.
29038 2014-04-17 Martin Jambor <mjambor@suse.cz>
29040 * gimple-iterator.c (gsi_start_edge): New function.
29041 * gimple-iterator.h (gsi_start_edge): Declare.
29042 * tree-sra.c (single_non_eh_succ): New function.
29043 (disqualify_ops_if_throwing_stmt): Renamed to
29044 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29045 having one non-EH successor BB.
29046 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29047 generate loads into replacements.
29048 (sra_modify_assign): Likewise and and also use the simple path for
29050 (sra_modify_function_body): Commit statements on edges.
29052 2014-04-17 Richard Biener <rguenther@suse.de>
29054 PR middle-end/60849
29055 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29056 comparison results and add clarifying comment.
29058 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29060 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29061 (blank_mode): Initialize it.
29062 (emit_mode_size_inline, emit_mode_nunits_inline,
29063 emit_mode_inner_inline): New functions.
29064 (emit_insn_modes_h): Call them and surround their output with
29065 #if GCC_VERSION >= 4001 ... #endif.
29066 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29067 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29068 mode_* arrays if the argument is __builtin_constant_p.
29069 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29070 is enum machine_mode.
29072 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29074 * passes.c (opt_pass::execute): Adjust.
29075 (pass_manager::execute_pass_mode_switching): Likewise.
29076 (early_local_passes::execute): Likewise.
29077 (execute_one_pass): Pass cfun to the pass's execute method.
29078 * tree-pass.h (opt_pass::execute): Add function * argument.
29079 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29080 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29081 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29082 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29083 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29084 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29085 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29086 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29087 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29088 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29089 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29090 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29091 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29092 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29093 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29094 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29095 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29096 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29097 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29098 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29099 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29100 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29101 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29102 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29103 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29104 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29105 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29106 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29107 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29110 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29112 * passes.c (opt_pass::gate): Take function * argument.
29113 (gate_all_early_local_passes): Merge into
29114 (early_local_passes::gate): this.
29115 (gate_all_early_optimizations): Merge into
29116 (all_early_optimizations::gate): this.
29117 (gate_all_optimizations): Mege into
29118 (all_optimizations::gate): this.
29119 (gate_all_optimizations_g): Merge into
29120 (all_optimizations_g::gate): this.
29121 (gate_rest_of_compilation): Mege into
29122 (rest_of_compilation::gate): this.
29123 (gate_postreload): Merge into
29124 (postreload::gate): this.
29125 (dump_one_pass): Pass cfun to the pass's gate method.
29126 (execute_ipa_summary_passes): Likewise.
29127 (execute_one_pass): Likewise.
29128 (ipa_write_summaries_2): Likewise.
29129 (ipa_write_optimization_summaries_1): Likewise.
29130 (ipa_read_summaries_1): Likewise.
29131 (ipa_read_optimization_summaries_1): Likewise.
29132 (execute_ipa_stmt_fixups): Likewise.
29133 * tree-pass.h (opt_pass::gate): Add function * argument.
29134 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29135 combine-stack-adj.c, combine.c, compare-elim.c,
29136 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29137 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29138 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29139 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29140 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29141 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29142 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29143 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29144 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29145 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29146 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29147 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29148 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29149 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29150 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29151 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29152 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29153 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29154 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29155 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29156 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29157 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29158 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29159 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29160 var-tracking.c, vtable-verify.c, web.c: Adjust.
29162 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29164 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29165 * configure: Regenerate.
29167 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29169 * passes.c (dump_one_pass): don't check pass->has_gate.
29170 (execute_ipa_summary_passes): Likewise.
29171 (execute_one_pass): Likewise.
29172 (ipa_write_summaries_2): Likewise.
29173 (ipa_write_optimization_summaries_1): Likewise.
29174 (ipa_read_optimization_summaries_1): Likewise.
29175 (execute_ipa_stmt_fixups): Likewise.
29176 * tree-pass.h (pass_data::has_gate): Remove.
29177 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29178 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29179 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29180 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29181 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29182 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29183 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29184 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29185 gimple-low.c, gimple-ssa-isolate-paths.c,
29186 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29187 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29188 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29189 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29190 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29191 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29192 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29193 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29194 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29195 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29196 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29197 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29198 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29199 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29200 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29201 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29202 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29203 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29204 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29205 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29206 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29207 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29210 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29212 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29214 * passes.c (pass_manager::register_dump_files_1): Merge into
29215 (pass_manager::register_dump_files): this, and remove its handling of
29216 properties since the pass always has the properties anyway.
29217 (pass_manager::pass_manager): Adjust.
29219 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29221 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29222 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29223 dealing with properties.
29224 (pass_manager::register_dump_files): Adjust.
29226 2014-03-20 Mark Wielaard <mjw@redhat.com>
29228 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29229 then represent the bound as normal constant value.
29231 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29234 Forward port from 4.8 branch
29235 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29237 * config/i386/bmiintrin.h (_blsi_u32): New.
29238 (_blsi_u64): Ditto.
29239 (_blsr_u32): Ditto.
29240 (_blsr_u64): Ditto.
29241 (_blsmsk_u32): Ditto.
29242 (_blsmsk_u64): Ditto.
29243 (_tzcnt_u32): Ditto.
29244 (_tzcnt_u64): Ditto.
29246 2014-04-17 Kito Cheng <kito@0xlab.org>
29248 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29250 2014-04-17 Richard Biener <rguenther@suse.de>
29252 PR middle-end/60849
29253 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29254 boolean results for comparisons.
29256 2014-04-17 Richard Biener <rguenther@suse.de>
29258 PR tree-optimization/60836
29259 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29260 initial PHI args to be gimple values.
29262 2014-04-17 Richard Biener <rguenther@suse.de>
29264 PR tree-optimization/60841
29265 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29266 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29267 of stmts to SLP build.
29268 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29269 (vect_analyze_slp): Likewise.
29270 (vect_analyze_slp_instance): Likewise.
29271 (vect_build_slp_tree): Limit overall SLP tree growth.
29272 * tree-vectorizer.h (vect_analyze_data_refs,
29273 vect_analyze_slp): Adjust prototypes.
29275 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29277 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29280 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29282 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29283 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29284 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29285 for TARGET_SLOW_PSHUFB
29287 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29289 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29290 * config/i386/i386.c (intel_cost): Ditto.
29292 2014-04-17 Joey Ye <joey.ye@arm.com>
29294 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29296 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29298 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29299 with -fuse-profile.
29301 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29303 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29304 (type_all_derivations_known_p): New predicate.
29305 (type_all_ctors_visible_p): New predicate.
29306 (type_possibly_instantiated_p): New predicate.
29307 (get_odr_type): Compute all_derivations_known.
29308 (dump_odr_type): Dump the flag.
29309 (maybe_record_type): Cleanup.
29310 (record_target_from_binfo): Add bases_to_consider array;
29311 record bases for types w/o instances and skip CXX destructor.
29312 (possible_polymorphic_call_targets_1): Add bases_to_consider
29313 and consider_construction parameters; check if type may have instance.
29314 (get_polymorphic_call_info): Set maybe_in_construction to true
29315 when we know nothing.
29316 (record_targets_from_bases): Skip CXX destructors; they are
29317 never called for types in construction.
29318 (possible_polymorphic_call_targets): Do not record target when
29319 type may not have instance.
29321 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29324 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29325 external aliases alive, too.
29327 2014-04-16 Andrew Pinski <apinski@cavium.com>
29329 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29332 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29334 * final.c (compute_alignments): Do not apply loop alignment to a block
29335 falling through to the exit.
29337 2014-04-16 Catherine Moore <clm@codesourcery.com>
29339 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29340 Adjust constraints for microMIPS store patterns.
29342 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29344 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29346 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29348 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29349 (append_use): Run at -O0.
29350 (append_vdef): Likewise.
29351 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29352 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29354 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29356 PR tree-optimization/60844
29357 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29358 (propagate_op_to_single_use, remove_visited_stmt_chain,
29359 linearize_expr, repropagate_negates, reassociate_bb): Use it
29360 instead of gsi_remove.
29362 2014-04-16 Martin Jambor <mjambor@suse.cz>
29364 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29365 ipa_transforms_to_apply.
29366 (cgraph_function_versioning): Assert that old_node has empty
29367 ipa_transforms_to_apply.
29368 * trans-mem.c (ipa_tm_create_version): Likewise.
29369 * tree-inline.c (tree_function_versioning): Do not duplicate
29370 ipa_transforms_to_apply.
29372 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29375 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29377 Pass necessary as flags on 64-bit Solaris/x86.
29378 Use lowercase relocs for x86_64-*-*.
29379 * configure: Regenerate.
29381 2014-04-15 Jan Hubicka <jh@suse.cz>
29383 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29384 (maybe_record_node, likely_target_p): Use it.
29386 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29389 Revert following patch
29391 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29394 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29395 software floating point or no floating point registers, do not
29396 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29397 in GPRs that occurs after we tested for GPRs that would never be
29400 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29401 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29402 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29403 specifically allow DDmode, since that does not use the SPE SIMD
29406 2014-03-21 Mark Wielaard <mjw@redhat.com>
29408 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29409 as unsigned or int depending on type and value used.
29411 2014-04-15 Richard Biener <rguenther@suse.de>
29413 PR rtl-optimization/56965
29414 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29415 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29417 * alias.c (true_dependence_1): Do not call
29418 nonoverlapping_component_refs_p.
29419 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29420 nonoverlapping_component_refs_p.
29421 (indirect_refs_may_alias_p): Likewise.
29423 2014-04-15 Teresa Johnson <tejohnson@google.com>
29425 * cfg.c (dump_bb_info): Fix flags check.
29426 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29428 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29430 PR rtl-optimization/60663
29431 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29434 2014-04-15 Richard Biener <rguenther@suse.de>
29436 * lto-streamer.h (LTO_major_version): Bump to 4.
29438 2014-04-15 Richard Biener <rguenther@suse.de>
29440 * common.opt (lto_partition_model): New enum.
29441 (flto-partition=): Merge separate options with a single with argument,
29442 add -flto-partition=one support.
29443 * flag-types.h (enum lto_partition_model): Declare.
29444 * opts.c (finish_options): Remove duplicate -flto-partition=
29446 * lto-wrapper.c (run_gcc): Adjust.
29448 2014-04-15 Richard Biener <rguenther@suse.de>
29450 * alias.c (ncr_compar): New function.
29451 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29453 2014-04-15 Richard Biener <rguenther@suse.de>
29455 * alias.c (record_component_aliases): Do not walk BINFOs.
29457 2014-04-15 Richard Biener <rguenther@suse.de>
29459 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29460 Add struct function argument and adjust.
29461 (find_func_aliases_for_call): Likewise.
29462 (find_func_aliases): Likewise.
29463 (find_func_clobbers): Likewise.
29464 (intra_create_variable_infos): Likewise.
29465 (compute_points_to_sets): Likewise.
29466 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29468 2014-04-15 Richard Biener <rguenther@suse.de>
29470 * tree.c (iterative_hash_expr): Use enum tree_code_class
29471 to store TREE_CODE_CLASS.
29472 (tree_block): Likewise.
29473 (tree_set_block): Likewise.
29474 * tree.h (fold_build_pointer_plus_loc): Use
29475 convert_to_ptrofftype_loc.
29477 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29480 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29483 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29485 * cfgloop.h (struct loop): Move force_vectorize down.
29486 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29487 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29488 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29489 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29490 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29491 * tree-core.h (enum annot_expr_kind): Add new kind values.
29492 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29493 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29495 * tree.def (ANNOTATE_EXPR): Tweak comment.
29497 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29499 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29502 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29504 * tree.h (TYPE_IDENTIFIER): Declare.
29505 * tree.c (subrange_type_for_debug_p): Use it.
29506 * godump.c (go_format_type): Likewise.
29507 * dwarf2out.c (is_cxx_auto, modified_type_die,
29508 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29509 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29511 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29514 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29516 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29518 * config/i386/i386.c (examine_argument): Return bool. Return true if
29519 parameter should be passed in memory.
29520 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29521 (construct_container): Update calls to examine_argument.
29522 (function_arg_advance_64): Ditto.
29523 (return_in_memory_32): Merge with ix86_return_in_memory.
29524 (return_in_memory_64): Ditto.
29525 (return_in_memory_ms_64): Ditto.
29527 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29529 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29530 * coverage.c (coverage_compute_profile_id): Handle externally visible
29533 2014-04-14 Martin Jambor <mjambor@suse.cz>
29535 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29536 DECL_DISREGARD_INLINE_LIMITS functions.
29538 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29541 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29543 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29546 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29547 optimize_insn_for_speed_p instead of
29548 optimize_function_for_speed_p.
29550 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29552 * doc/invoke.texi (free): Document AArch64.
29554 2014-04-14 Richard Biener <rguenther@suse.de>
29556 PR tree-optimization/60042
29557 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29558 (insert_into_preds_of_block): Do not prevent PHI insertion
29559 for REFERENCE exprs here ...
29560 (eliminate_dom_walker::before_dom_children): ... but prevent
29561 their use here under similar conditions when applied to the
29562 IL after PRE optimizations.
29564 2014-04-14 Richard Biener <rguenther@suse.de>
29566 * passes.def: Move early points-to after early SRA.
29568 2014-04-14 Richard Biener <rguenther@suse.de>
29570 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29571 check for which sign-changes we allow when forwarding
29572 a converted value into a switch.
29574 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29576 * stor-layout.c (place_field): Finalize non-constant offset for the
29579 2014-04-14 Richard Biener <rguenther@suse.de>
29581 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29583 (expand_switch_using_bit_tests_p): Likewise.
29584 (process_switch): Compute and pass on speed_p based on the
29586 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29587 optimize_bb_for_speed_p.
29589 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29591 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29592 * function.h (struct function): Rename has_force_vect_loops into
29593 has_force_vectorize_loops.
29594 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29595 (input_struct_function_base): Likewise.
29596 * lto-streamer-out.c (output_cfg): Likewise.
29597 (output_struct_function_base): Likewise.
29598 * omp-low.c (expand_omp_simd): Likewise.
29599 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29600 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29601 (version_loop_for_if_conversion): Likewise.
29602 (tree_if_conversion): Likewise.
29603 (main_tree_if_conversion): Likewise.
29604 (gate_tree_if_conversion): Likewise.
29605 * tree-inline.c (copy_loops): Likewise.
29606 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29607 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29608 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29609 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29610 * tree-vectorizer.c (vectorize_loops): Likewise.
29611 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29613 2014-04-14 Richard Biener <rguenther@suse.de>
29616 * lto-streamer-out.c (wrap_refs): New function.
29617 (lto_output): Wrap symbol references in global initializes in
29618 type-preserving MEM_REFs.
29620 2014-04-14 Christian Bruel <christian.bruel@st.com>
29622 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29624 2014-04-14 Christian Bruel <christian.bruel@st.com>
29626 * config/sh/sh.md (setmemqi): New expand pattern.
29627 * config/sh/sh.h (CLEAR_RATIO): Define.
29628 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29629 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29631 2014-04-14 Richard Biener <rguenther@suse.de>
29633 PR middle-end/55022
29634 * fold-const.c (negate_expr_p): Don't negate directional rounding
29636 (fold_negate_expr): Likewise.
29638 2014-04-14 Richard Biener <rguenther@suse.de>
29640 PR tree-optimization/59817
29641 PR tree-optimization/60453
29642 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29643 recursion to catch all CHRECs in the scalar evolution and restrict
29644 the predicate for the remains appropriately.
29646 2014-04-12 Catherine Moore <clm@codesourcery.com>
29648 * config/mips/constraints.md: Add new register constraint "kb".
29649 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29650 (*movhi_internal): Likewise.
29651 (*movqi_internal): Likewise.
29652 * config/mips/mips.h (M16_STORE_REGS): New register class.
29653 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29654 (REG_CLASS_CONTENTS): Likewise.
29655 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29657 2014-04-11 Tobias Burnus <burnus@net-b.de>
29660 * doc/invoke.texi (-Wformat-signedness): Document it.
29661 (Wformat=2): Mention that this enables -Wformat-signedness.
29663 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29665 * common/config/epiphany/epiphany-common.c
29666 (epiphany_option_optimization_table): Enable section anchors by
29667 default at -O1 or higher.
29668 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29669 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29670 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29671 carries no extra cost.
29672 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29673 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29674 * config/epiphany/predicates.md (memclob_operand): New predicate.
29675 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29676 Use memclob_operand predicate and X constraint for operand 3.
29678 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29680 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29681 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29684 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29686 PR rtl-optimization/60651
29687 * mode-switching.c (optimize_mode_switching): Make sure to emit
29688 sets of a lower numbered entity before sets of a higher numbered
29689 entity to a mode of the same or lower priority.
29690 When creating a seginfo for a basic block that starts with a code
29691 label, move the insertion point past the code label.
29692 (new_seginfo): Document and enforce requirement that
29693 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29694 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29695 * doc/tm.texi: Regenerate.
29697 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29700 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29702 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29704 * BASE-VER: Set to 4.10.0.
29706 2014-04-11 Tobias Burnus <burnus@net-b.de>
29709 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29710 * doc/gcc.texi (Service): Update description in the @menu
29711 * doc/invoke.texi (Option Summary): Remove misplaced and
29714 2014-04-11 Steve Ellcey <sellcey@mips.com>
29715 Jakub Jelinek <jakub@redhat.com>
29717 PR middle-end/60556
29718 * expr.c (convert_move): Use emit_store_flag_force instead of
29719 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29722 2014-04-11 Richard Biener <rguenther@suse.de>
29724 PR middle-end/60797
29725 * varasm.c (assemble_alias): Avoid endless error reporting
29726 recursion by setting TREE_ASM_WRITTEN.
29728 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29730 * config/s390/s390.md: Add a splitter for NOT rtx.
29732 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29734 PR rtl-optimization/60663
29735 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29737 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29738 Jakub Jelinek <jakub@redhat.com>
29741 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29742 flag from decl_node to node.
29744 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29747 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29748 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29749 ameliorating the cases where it can be.
29751 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29754 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29756 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29757 (loadsync_<mode>): Change mode.
29758 (load_quadpti, store_quadpti): New.
29759 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29760 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29761 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29763 2014-04-09 Cong Hou <congh@google.com>
29766 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29769 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29771 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29772 instead of vnor to exploit possible fusion opportunity in the
29774 (altivec_expand_vec_perm_const_le): Likewise.
29776 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29778 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29779 (loadsync_<mode>): Change mode.
29780 (load_quadpti, store_quadpti): New.
29781 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29782 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29784 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29787 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29788 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29789 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29791 2014-04-08 Richard Biener <rguenther@suse.de>
29793 PR middle-end/60706
29794 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29795 a 64bit widest int print double-int similar to on HWI64 hosts.
29797 2014-04-08 Richard Biener <rguenther@suse.de>
29799 PR tree-optimization/60785
29800 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29801 default defs properly.
29803 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29805 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29806 (Weffc++): Likewise.
29808 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29810 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29811 set completep to false rather than true.
29813 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29816 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29817 ARM_TARGET2_DWARF_FORMAT.
29819 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29822 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29823 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29826 2014-04-07 Richard Biener <rguenther@suse.de>
29828 PR tree-optimization/60766
29829 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29830 (may_eliminate_iv): Convert cand_value_at result to desired type.
29832 2014-04-07 Jason Merrill <jason@redhat.com>
29835 * common.opt (-fno-gnu-unique): Add.
29836 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29838 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29840 * haifa-sched.c: Fix outdated function reference and minor
29841 grammar errors in introductory comment.
29843 2014-04-07 Richard Biener <rguenther@suse.de>
29845 PR middle-end/60750
29846 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29847 for noreturn calls.
29848 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29850 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29853 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29854 size accounting for thunks.
29855 (pa_asm_output_mi_thunk): Use final_start_function() and
29856 final_end_function() to output function start and end directives.
29858 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29860 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29861 device specific ISA/ feature information. Remove short_sp and
29862 errata_skip ds. Add avr_device_specific_features enum to have device
29864 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29865 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29866 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29867 updated device specific info.
29868 * config/avr/avr-mcus.def: Merge device specific details to
29869 dev_attribute field.
29870 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29872 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29873 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29874 assembler if RMW isa supported by current device.
29875 * config/avr/genmultilib.awk: Update as device info structure changed.
29876 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29878 2014-04-04 Cong Hou <congh@google.com>
29880 PR tree-optimization/60656
29881 * tree-vect-stmts.c (supportable_widening_operation):
29882 Fix a bug that elements in a vector with vect_used_by_reduction
29883 property are incorrectly reordered when the operation on it is not
29884 consistant with the one in reduction operation.
29886 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29888 PR rtl-optimization/60155
29889 * gcse.c (record_set_data): New function.
29890 (single_set_gcse): New function.
29891 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29892 (hoist_code): Likewise.
29893 (get_pressure_class_and_nregs): Likewise.
29895 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29897 * explow.c (probe_stack_range): Emit a final optimization blockage.
29899 2014-04-04 Anthony Green <green@moxielogic.com>
29901 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29904 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29907 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29908 flags are set only during streaming.
29909 * ipa.c (process_references, walk_polymorphic_call_targets,
29910 symtab_remove_unreachable_nodes): Drop bodies of always inline
29911 after early inlining.
29912 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29914 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29915 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29918 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29921 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29924 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29926 (cortex_a53_fdivd): Likewise.
29928 2014-04-04 Martin Jambor <mjambor@suse.cz>
29931 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29932 Adjust all callers.
29933 * cgraph.c (clone_of_p): Also return true if thunks match.
29934 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29935 cgraph_function_or_thunk_node and an obsolete comment.
29936 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29938 (build_function_decl_skip_args): Likewise.
29939 (set_new_clone_decl_and_node_flags): New function.
29940 (duplicate_thunk_for_node): Likewise.
29941 (redirect_edge_duplicating_thunks): Likewise.
29942 (cgraph_clone_node): New parameter args_to_skip, pass it to
29943 redirect_edge_duplicating_thunks which is called instead of
29944 cgraph_redirect_edge_callee.
29945 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29946 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29948 2014-04-04 Jeff Law <law@redhat.com>
29951 * config/arm/predicates.md (const_int_I_operand): New predicate.
29952 (const_int_M_operand): Similarly.
29953 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29955 (insv_t2, extv_reg, extzv_t2): Likewise.
29956 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29957 (pop_multiple_with_writeback_and_return): Likewise.
29958 (vfp_pop_multiple_with_writeback): Likewise
29960 2014-04-04 Richard Biener <rguenther@suse.de>
29963 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29964 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29966 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29967 * gimplify.c (gimple_add_tmp_var_fn): New function.
29968 * gimple-expr.h (create_tmp_reg_fn): Declare.
29969 * gimple-expr.c (create_tmp_reg_fn): New function.
29970 * gimple-low.c (record_vars_into): Don't change cfun.
29971 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29972 code generation without cfun.
29974 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29977 * Makefile.in (install-driver): Fix shell scripting.
29979 2014-04-03 Cong Hou <congh@google.com>
29981 PR tree-optimization/60505
29982 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29983 threshold of number of iterations below which no vectorization
29985 * tree-vect-loop.c (new_loop_vec_info):
29986 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29987 * tree-vect-loop.c (vect_analyze_loop_operations):
29988 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29989 * tree-vect-loop.c (vect_transform_loop):
29990 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29991 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29992 of iterations of the loop and see if we should build the epilogue.
29994 2014-04-03 Richard Biener <rguenther@suse.de>
29996 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29997 (streamer_tree_cache_create): Adjust.
29998 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29999 to allow optional nodes array.
30000 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30001 (streamer_tree_cache_append): Likewise.
30002 (streamer_tree_cache_create): Create nodes array optionally
30003 as specified by parameter.
30004 * lto-streamer-out.c (create_output_block): Avoid maintaining
30005 the node array in the writer cache.
30006 (DFS_write_tree): Remove assertion.
30007 (produce_asm_for_decls): Free the out decl state hash table early.
30008 * lto-streamer-in.c (lto_data_in_create): Adjust for
30009 streamer_tree_cache_create prototype change.
30011 2014-04-03 Richard Biener <rguenther@suse.de>
30013 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30014 set TREE_CHAIN to NULL_TREE.
30016 2014-04-03 Richard Biener <rguenther@suse.de>
30018 PR tree-optimization/60740
30019 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30020 over all GIMPLE_COND operands.
30022 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30024 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30025 (Weffc++): Remove Scott's numbering, merge lists and reference
30028 2014-04-03 Nick Clifton <nickc@redhat.com>
30030 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30033 2014-04-03 Martin Jambor <mjambor@suse.cz>
30035 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30036 mention gcc_unreachable before failing.
30037 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30040 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30043 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30044 inconsistent code and instead mark the context inconsistent.
30045 (possible_polymorphic_call_targets): For inconsistent contexts
30046 return empty complete list.
30048 2014-04-02 Anthony Green <green@moxielogic.com>
30050 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30051 (extendqisi2, extendhisi2): Define.
30052 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30053 (WCHAR_TYPE): Change to unsigned int.
30055 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30057 PR tree-optimization/60733
30058 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30059 insertion point for PHI candidates to be the end of the feeding
30060 block for the PHI argument.
30062 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30064 PR rtl-optimization/60650
30065 * lra-constraints.c (process_alt_operands): Decrease reject for
30066 earlyclobber matching.
30068 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30070 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30072 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30074 * config/spu/spu.c (pad_bb): Do not crash when the last
30075 insn is CODE_FOR_blockage.
30077 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30079 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30080 lies outside the target mode.
30082 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30085 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30086 software floating point or no floating point registers, do not
30087 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30088 in GPRs that occurs after we tested for GPRs that would never be
30091 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30092 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30093 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30094 specifically allow DDmode, since that does not use the SPE SIMD
30097 2014-04-02 Richard Biener <rguenther@suse.de>
30099 PR middle-end/60729
30100 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30101 MODE_INTs. Properly use negv_optab.
30102 (expand_abs): Likewise.
30104 2014-04-02 Richard Biener <rguenther@suse.de>
30107 * Makefile.in (install-driver): Guard extra installs with special
30110 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30112 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30113 Document vec_vgbbd.
30115 2014-04-01 Richard Henderson <rth@redhat.com>
30118 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30119 alternative enabled before register allocation.
30121 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30123 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30124 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30126 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30127 (nios2_got_address): Update nios2_large_got_address call site.
30128 (nios2_delegitimize_address): New function.
30129 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30130 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30131 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30133 2014-04-01 Martin Husemann <martin@duskware.de>
30135 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30138 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30140 PR rtl-optimization/60604
30141 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30142 check from register_operand.
30143 (register_operand): Redefine in terms of general_operand.
30144 (nonmemory_operand): Use register_operand for the non-constant cases.
30146 2014-04-01 Richard Biener <rguenther@suse.de>
30148 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30150 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30152 * doc/invoke.texi (mapp-regs): Clarify.
30154 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30156 * config/i386/avx512fintrin.h (__v32hi): Define type.
30157 (__v64qi): Likewise.
30158 (_mm512_set1_epi8): Define.
30159 (_mm512_set1_epi16): Define.
30160 (_mm512_set4_epi32): Define.
30161 (_mm512_set4_epi64): Define.
30162 (_mm512_set4_pd): Define.
30163 (_mm512_set4_ps): Define.
30164 (_mm512_setr4_epi64): Define.
30165 (_mm512_setr4_epi32): Define.
30166 (_mm512_setr4_pd): Define.
30167 (_mm512_setr4_ps): Define.
30168 (_mm512_setzero_epi32): Define.
30170 2014-03-31 Martin Jambor <mjambor@suse.cz>
30172 PR middle-end/60647
30173 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30174 callsite_arguments_match_p. Updated all callers. Also check types of
30175 corresponding formal parameters and actual arguments.
30176 (not_all_callers_have_enough_arguments_p) Renamed to
30177 some_callers_have_mismatched_arguments_p.
30179 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30181 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30183 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30186 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30189 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30191 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30192 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30194 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30195 Use FMAMODE_NOVF512 mode iterator.
30196 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30197 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30198 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30199 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30201 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30202 Use VF_128_256 mode iterator.
30203 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30206 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30208 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30209 static chain if needed.
30211 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30214 * lra-constraints.c (index_part_to_reg): New.
30215 (process_address): Use it.
30217 2014-03-27 Jeff Law <law@redhat.com>
30218 Jakub Jelinek <jakub@redhat.com>
30221 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30222 gen_rtx_{PLUS,MULT} to build up the address expression.
30224 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30225 creating non-canonical RTL.
30227 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30230 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30231 functions; reorganize to make cheap checks first.
30232 (inline_small_functions): Do not estimate growth when dumping;
30234 * ipa-inline.h (inline_summary): Add min_size.
30235 (growth_likely_positive): New function.
30236 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30237 (set_cond_stmt_execution_predicate): Cleanup.
30238 (estimate_edge_size_and_time): Compute min_size.
30239 (estimate_calls_size_and_time): Likewise.
30240 (estimate_node_size_and_time): Likewise.
30241 (inline_update_overall_summary): Update min_size.
30242 (do_estimate_edge_time): Likewise.
30243 (do_estimate_edge_size): Update.
30244 (do_estimate_edge_hints): Update.
30245 (growth_likely_positive): New function.
30247 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30250 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30251 also if addr has VOIDmode.
30253 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30255 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30256 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30258 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30259 instructions as well as AdvancedSIMD loads.
30261 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30263 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30264 Use crypto_aese type.
30265 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30266 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30267 crypto_aese, crypto_aesmc. Move to types.md.
30268 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30270 * config/arm/iterators.md (crypto_type): Likewise.
30272 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30274 * cgraph.c: Include expr.h and tree-dfa.h.
30275 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30278 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30281 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30282 regs from checking multi-reg pseudos.
30284 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30286 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30288 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30290 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30291 if it would clobber the stack pointer, even temporarily.
30293 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30295 * mode-switching.c: Make small adjustments to the top comment.
30297 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30299 * config/rs6000/constraints.md (wD constraint): New constraint to
30300 match the constant integer to get the top DImode/DFmode out of a
30301 vector in a VSX register.
30303 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30304 match the constant integer to get the top DImode/DFmode out of a
30305 vector in a VSX register.
30307 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30310 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30314 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30316 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30317 Optimize vec_extract of 64-bit values, where the value being
30318 extracted is in the top word, where we can use scalar
30319 instructions. Add direct move and store support. Combine the big
30320 endian/little endian vector select load support into a single insn.
30321 (vsx_extract_<mode>_internal1): Likewise.
30322 (vsx_extract_<mode>_internal2): Likewise.
30323 (vsx_extract_<mode>_load): Likewise.
30324 (vsx_extract_<mode>_store): Likewise.
30325 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30326 combined into vsx_extract_<mode>_load.
30327 (vsx_extract_<mode>_one_le): Likewise.
30329 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30330 define the top 64-bit vector element.
30332 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30335 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30336 Document vec_vbpermq builtin.
30339 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30340 enable use of xxsldwi and xxpermdi builtin functions.
30341 (vec_xxpermdi): Likewise.
30343 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30344 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30346 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30348 PR rtl-optimization/60650
30349 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30351 (find_spills_for): New.
30352 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30353 Spill all pseudos on the second iteration.
30355 2014-03-27 Marek Polacek <polacek@redhat.com>
30358 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30361 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30363 * config/s390/s390.c (s390_can_use_return_insn): Check for
30364 call-saved FPRs on 31 bit.
30366 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30368 PR middle-end/60682
30369 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30370 if they need regimplification, just drop them instead of
30371 calling gimple_regimplify_operands on them.
30373 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30376 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30377 (aarch64_frame_pointer_required): Adjust logic.
30378 (aarch64_can_eliminate): Adjust logic.
30379 (aarch64_override_options_after_change): Adjust logic.
30381 2014-03-27 Dehao Chen <dehao@google.com>
30383 * ipa-inline.c (early_inliner): Update node's inline info.
30385 2014-03-26 Dehao Chen <dehao@google.com>
30387 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30388 compiler inserted conditional jumps for NAN float check.
30390 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30392 * ubsan.h (ubsan_create_data): Change second argument's type
30393 to const location_t *.
30394 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30396 (ubsan_create_data): Change second argument to const location_t *PLOC.
30397 Create Loc field whenever PLOC is non-NULL.
30398 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30399 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30403 * real.c (real_to_integer2): Change type of low to UHWI.
30405 2014-03-26 Tobias Burnus <burnus@net-b.de>
30407 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30408 (CILK_SELF_SPECS): New define.
30409 (driver_self_specs): Use it.
30411 2014-03-26 Richard Biener <rguenther@suse.de>
30413 * tree-pretty-print.c (percent_K_format): Implement special
30414 case for LTO and its stripped down BLOCK tree.
30416 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30419 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30421 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30422 one range is range_int_cst_p, but not both, at least optimize
30423 addition/subtraction of 0 and multiplication by 0 or 1.
30424 * gimple-fold.c (gimple_fold_call): Fold
30425 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30426 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30427 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30429 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30431 PR rtl-optimization/60452
30432 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30433 <case REG>: Return 1 for invalid offsets from the frame pointer.
30435 2014-03-26 Marek Polacek <polacek@redhat.com>
30438 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30441 2014-03-26 Marek Polacek <polacek@redhat.com>
30444 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30447 2014-03-26 Marek Polacek <polacek@redhat.com>
30450 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30451 multiplication in unsigned type.
30453 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30455 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30457 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30459 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30461 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30464 * cif-code.def (UNREACHABLE) New code.
30465 * ipa-inline.c (inline_small_functions): Skip edges to
30466 __builtlin_unreachable.
30467 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30468 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30469 predicate to __bulitin_unreachable.
30470 (set_cond_stmt_execution_predicate): Fix issue when
30471 invert_tree_comparison returns ERROR_MARK.
30472 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30473 propagate to inline clones.
30474 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30476 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30477 * cgraphclones.c (cgraph_clone_node): If call destination is already
30478 ureachable, do not redirect it back.
30479 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30482 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30484 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30485 Do not modify inline clones.
30487 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30489 * config/i386/i386.md (general_sext_operand): New mode attr.
30490 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30491 don't generate (sign_extend (const_int)).
30492 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30493 operands[2]. Use We constraint instead of <i> and
30494 <general_sext_operand> predicate instead of <general_operand>.
30495 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30496 * config/i386/constraints.md (We): New constraint.
30497 * config/i386/predicates.md (x86_64_sext_operand,
30498 sext_operand): New predicates.
30500 2014-03-25 Martin Jambor <mjambor@suse.cz>
30503 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30504 inconsistent devirtualizations to __builtin_unreachable.
30506 2014-03-25 Marek Polacek <polacek@redhat.com>
30509 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30511 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30513 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30514 order of elements for big-endian.
30516 2014-03-25 Richard Biener <rguenther@suse.de>
30518 PR middle-end/60635
30519 * gimplify-me.c (gimple_regimplify_operands): Update the
30522 2014-03-25 Martin Jambor <mjambor@suse.cz>
30525 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30526 (lto_output_varpool_node): Likewise.
30527 (input_overwrite_node): Likewise.
30528 (input_varpool_node): Likewise.
30530 2014-03-25 Richard Biener <rguenther@suse.de>
30532 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30533 (run_gcc): Likewise.
30535 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30537 * combine.c (simplify_compare_const): Add MODE argument.
30538 Handle mode_width 0 as very large mode_width.
30539 (try_combine, simplify_comparison): Adjust callers.
30541 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30542 type to avoid signed integer overflow.
30543 * explow.c (plus_constant): Likewise.
30545 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30547 * doc/generic.texi: Correct typos.
30549 2014-03-24 Tobias Burnus <burnus@net-b.de>
30551 * doc/invoke.texi (-flto): Expand section about
30552 using static libraries with LTO.
30554 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30556 PR rtl-optimization/60501
30557 * optabs.def (addptr3_optab): New optab.
30558 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30559 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30560 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30562 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30564 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30566 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30568 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30571 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30572 (_mm256_undefined_ps): Define.
30573 (_mm256_undefined_pd): Define.
30574 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30575 (_mm_undefined_pd): Define.
30576 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30577 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30578 (_mm512_undefined_ps): Define.
30579 (_mm512_undefined_pd): Define.
30580 Use _mm*_undefined_*.
30581 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30583 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30585 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30586 (lshr_simd): DI mode added.
30587 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30588 (aarch64_ushr_simddi): Likewise.
30589 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30590 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30591 (vshrd_n_u64): Likewise.
30593 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30595 * Makefile.in (s-macro_list): Depend on cc1.
30597 2014-03-23 Teresa Johnson <tejohnson@google.com>
30599 * ipa-utils.c (ipa_print_order): Use specified dump file.
30601 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30603 PR rtl-optimization/60601
30604 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30606 * gcc.c (eval_spec_function): Initialize save_growing_value.
30608 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30611 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30612 code == MINUS_EXPR, never swap op0 with op1.
30614 * toplev.c (init_local_tick): Avoid signed integer multiplication
30616 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30617 shift by first operand's bitsize.
30619 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30622 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30623 redefine to 1 or 0.
30624 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30625 TARGET_ISA_64BIT_P(x).
30627 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30629 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30630 pattern for vector nor instead of subtract from splat(-1).
30631 (altivec_expand_vec_perm_const_le): Likewise.
30633 2014-03-21 Richard Henderson <rth@twiddle.net>
30636 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30637 related insns after epilogue_completed.
30639 2014-03-21 Martin Jambor <mjambor@suse.cz>
30642 * cgraph.h (symtab_node): New flag body_removed.
30643 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30644 when removing bodies.
30645 * symtab.c (dump_symtab_base): Dump body_removed flag.
30646 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30647 had their bodies removed.
30649 2014-03-21 Martin Jambor <mjambor@suse.cz>
30652 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30655 2014-03-21 Richard Biener <rguenther@suse.de>
30657 PR tree-optimization/60577
30658 * tree-core.h (struct tree_base): Document nothrow_flag use
30659 in DECL_NONALIASED.
30660 * tree.h (DECL_NONALIASED): New.
30661 (may_be_aliased): Adjust.
30662 * coverage.c (build_var): Set DECL_NONALIASED.
30664 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30666 * expr.c (expand_expr_real_1): Remove outdated comment.
30668 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30670 PR middle-end/60597
30671 * ira.c (adjust_cleared_regs): Call copy_rtx on
30672 *reg_equiv[REGNO (loc)].src_p before passing it to
30673 simplify_replace_fn_rtx.
30676 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30677 into CONST, put pic register as first operand of PLUS. Use
30678 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30680 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30682 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30684 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30686 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30687 around for store forwarding issue in the FPU on the UT699.
30688 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30689 loads and operations if -mfix-ut699 is specified.
30690 (divtf3_hq): Tweak attribute.
30691 (sqrttf2_hq): Likewise.
30693 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30695 * calls.c (store_one_arg): Remove incorrect const qualification on the
30696 type of the temporary.
30697 * cfgexpand.c (expand_return): Likewise.
30698 * expr.c (expand_constructor): Likewise.
30699 (expand_expr_real_1): Likewise.
30701 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30703 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30706 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30709 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30711 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30713 * config/arm/aarch-common-protos.h
30714 (alu_cost_table): Fix spelling of "extend".
30715 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30717 2014-03-19 Richard Biener <rguenther@suse.de>
30719 PR middle-end/60553
30720 * tree-core.h (tree_type_common): Re-order pointer members
30721 to reduce recursion depth during GC walks.
30723 2014-03-19 Marek Polacek <polacek@redhat.com>
30726 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30727 before accessing it.
30729 2014-03-19 Richard Biener <rguenther@suse.de>
30732 * lto-streamer-in.c (input_function): In WPA stage do not drop
30735 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30737 PR tree-optimization/60559
30738 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30739 with build_zero_cst assignment.
30741 2014-03-18 Kai Tietz <ktietz@redhat.com>
30743 PR rtl-optimization/56356
30744 * sdbout.c (sdbout_parms): Verify that parms'
30745 incoming argument is valid.
30746 (sdbout_reg_parms): Likewise.
30748 2014-03-18 Richard Henderson <rth@redhat.com>
30751 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30752 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30753 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30755 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30757 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30758 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30759 Italicize plugin event names in description. Explain that
30760 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30761 Remind that no GCC functions should be called after PLUGIN_FINISH.
30762 Explain what pragmas with expansion are.
30764 2014-03-18 Martin Liska <mliska@suse.cz>
30766 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30767 gimple call statement is update.
30768 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30769 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30771 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30774 * ubsan.c (ubsan_instrument_unreachable): Call
30775 initialize_sanitizer_builtins.
30776 (ubsan_pass): Likewise.
30779 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30780 varpool_finalize_decl instead of rest_of_decl_compilation.
30782 2014-03-18 Richard Biener <rguenther@suse.de>
30784 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30785 by using bitmap_and_compl instead of bitmap_and_compl_into.
30786 (df_rd_transfer_function): Likewise.
30788 2014-03-18 Richard Biener <rguenther@suse.de>
30790 * doc/lto.texi (fresolution): Fix typo.
30792 2014-03-18 Richard Biener <rguenther@suse.de>
30794 * doc/invoke.texi (flto): Update for changes in 4.9.
30796 2014-03-18 Richard Biener <rguenther@suse.de>
30798 * doc/loop.texi: Remove section on the removed lambda framework.
30799 Update loop docs with recent changes in preserving loop structure.
30801 2014-03-18 Richard Biener <rguenther@suse.de>
30803 * doc/lto.texi (-fresolution): Document.
30805 2014-03-18 Richard Biener <rguenther@suse.de>
30807 * doc/contrib.texi: Adjust my name.
30809 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30812 * internal-fn.c: Include diagnostic-core.h.
30813 (expand_BUILTIN_EXPECT): New function.
30814 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30815 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30816 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30817 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30818 IFN_BUILTIN_EXPECT.
30819 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30820 Revert 3 argument __builtin_expect code.
30821 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30822 * gimple-fold.c (gimple_fold_call): Likewise.
30823 * tree.h (fold_builtin_expect): New prototype.
30824 * builtins.c (build_builtin_expect_predicate): Add predictor
30825 argument, if non-NULL, create 3 argument __builtin_expect.
30826 (fold_builtin_expect): No longer static. Add ARG2 argument,
30827 pass it through to build_builtin_expect_predicate.
30828 (fold_builtin_2): Adjust caller.
30829 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30830 * internal-fn.def (BUILTIN_EXPECT): New.
30832 2014-03-18 Tobias Burnus <burnus@net-b.de>
30835 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30836 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30837 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30839 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30842 * predict.c (combine_predictions_for_bb): Fix up formatting.
30843 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30844 fill what it points to if non-NULL.
30845 (tree_predict_by_opcode): Adjust caller, use the predictor.
30846 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30848 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30850 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30851 proper constant for the store mode.
30853 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30855 * symtab.c (change_decl_assembler_name): Fix transparent alias
30856 chain construction.
30858 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30860 * config/aarch64/aarch64.c: Correct the comments about the
30861 aarch64 stack layout.
30863 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30865 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30866 check for GF_OMP_FOR_KIND_FOR.
30868 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30870 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30871 ymm and zmm register names.
30873 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30876 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30877 note creation for the 2010-08-31 changes.
30879 2014-03-17 Marek Polacek <polacek@redhat.com>
30881 PR middle-end/60534
30882 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30883 as -fno-tree-loop-vectorize.
30884 (expand_omp_simd): Likewise.
30886 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30888 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30889 (eligible_for_call_delay): New prototype.
30890 * config/sparc/sparc.c (tls_call_delay): Rename into...
30891 (eligible_for_call_delay): ...this. Return false if the instruction
30892 cannot be put in the delay slot of a branch.
30893 (eligible_for_restore_insn): Simplify.
30894 (eligible_for_return_delay): Return false if the instruction cannot be
30895 put in the delay slot of a branch and simplify.
30896 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30897 put in the delay slot of a branch.
30898 * config/sparc/sparc.md (fix_ut699): New attribute.
30899 (tls_call_delay): Delete.
30900 (in_call_delay): Reimplement.
30901 (eligible_for_sibcall_delay): Rename into...
30902 (in_sibcall_delay): ...this.
30903 (eligible_for_return_delay): Rename into...
30904 (in_return_delay): ...this.
30905 (in_branch_delay): Reimplement.
30906 (in_uncond_branch_delay): Delete.
30907 (in_annul_branch_delay): Delete.
30909 2014-03-14 Richard Henderson <rth@redhat.com>
30912 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30913 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30914 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30915 (floathi splitters): Remove.
30916 (float<SWI48x>xf2): New pattern.
30917 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30918 code that tried to handle DImode for 32-bit, but which was excluded
30919 by the pattern's condition. Drop allocation of stack temporary.
30920 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30921 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30922 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30923 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30924 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30925 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30926 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30927 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30928 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30929 (*float<SWI48x><X87MODEF>2_i387): Remove.
30930 (all float _with_temp splitters): Remove.
30931 (*float<SWI48x><MODEF>2_i387): New pattern.
30932 (*float<SWI48><MODEF>2_sse): New pattern.
30933 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30934 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30936 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30937 Marek Polacek <polacek@redhat.com>
30939 PR middle-end/60484
30940 * common.opt (dump_base_name_prefixed): New Variable.
30941 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30942 if x_dump_base_name_prefixed is already set, set it at the end.
30944 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30946 PR rtl-optimization/60508
30947 * lra-constraints.c (get_reload_reg): Add new parameter
30949 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30950 Pass the new parameter values.
30952 2014-03-14 Richard Biener <rguenther@suse.de>
30954 * common.opt: Revert unintented changes from r205065.
30955 * opts.c: Likewise.
30957 2014-03-14 Richard Biener <rguenther@suse.de>
30959 PR middle-end/60518
30960 * cfghooks.c (split_block): Properly adjust all loops the
30961 block was a latch of.
30963 2014-03-14 Martin Jambor <mjambor@suse.cz>
30966 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30969 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30972 * config/avr/avr.c (avr_set_current_function): Pass function name
30973 through default_strip_name_encoding before sanity checking instead
30974 of skipping the first char of the assembler name.
30976 2014-03-13 Richard Henderson <rth@redhat.com>
30979 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30980 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30981 * config/i386/i386-protos.h: Likewise.
30982 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30983 in the expander instead of a splitter.
30984 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30985 any possibility of requiring a memory.
30986 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30987 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30988 (fp branch splitters): Update for ix86_split_fp_branch.
30989 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30990 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30991 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30992 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30993 (*fop_<MODEF>_3_i387): Likewise.
30994 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30995 (splitters for the fop_* register patterns): Remove.
30996 (fscalexf4_i387): Rename from *fscalexf4_i387.
30997 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30999 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31001 PR tree-optimization/59779
31002 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31003 type for bitsize and maxsize instead of HOST_WIDE_INT.
31005 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31007 PR rtl-optimization/57320
31008 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31009 the CFG after thread_prologue_and_epilogue_insns.
31011 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31013 PR rtl-optimization/57189
31014 * lra-constraints.c (process_alt_operands): Disfavor spilling
31017 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31019 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31021 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31023 PR tree-optimization/59025
31024 PR middle-end/60418
31025 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31026 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31028 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31031 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31032 calls of avr_out_plus_1.
31034 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31036 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31037 BB's single pred and update the father loop's latch info later.
31039 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31041 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31045 (VEC_base): Likewise.
31046 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31047 registers, we need to swap double words in little endian mode.
31049 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31050 to be a container mode for 128-bit integer operations added in ISA
31051 2.07. Unlike TImode and PTImode, the preferred register set is
31052 the Altivec/VMX registers for the 128-bit operations.
31054 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31056 (rs6000_split_128bit_ok_p): Likewise.
31058 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31059 macros for creating ISA 2.07 normal and overloaded builtin
31060 functions with 3 arguments.
31061 (BU_P8V_OVERLOAD_3): Likewise.
31062 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31063 for use as overloaded functions.
31064 (VPERM_1TI_UNS): Likewise.
31065 (VSEL_1TI): Likewise.
31066 (VSEL_1TI_UNS): Likewise.
31067 (ST_INTERNAL_1ti): Likewise.
31068 (LD_INTERNAL_1ti): Likewise.
31069 (XXSEL_1TI): Likewise.
31070 (XXSEL_1TI_UNS): Likewise.
31071 (VPERM_1TI): Likewise.
31072 (VPERM_1TI_UNS): Likewise.
31073 (XXPERMDI_1TI): Likewise.
31074 (SET_1TI): Likewise.
31075 (LXVD2X_V1TI): Likewise.
31076 (STXVD2X_V1TI): Likewise.
31077 (VEC_INIT_V1TI): Likewise.
31078 (VEC_SET_V1TI): Likewise.
31079 (VEC_EXT_V1TI): Likewise.
31080 (EQV_V1TI): Likewise.
31081 (NAND_V1TI): Likewise.
31082 (ORC_V1TI): Likewise.
31083 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31084 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31085 overloaded builtin.
31086 (VADDUQM): Likewise.
31087 (VSUBCUQ): Likewise.
31088 (VADDEUQM): Likewise.
31089 (VADDECUQ): Likewise.
31090 (VSUBEUQM): Likewise.
31091 (VSUBECUQ): Likewise.
31093 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31094 __int128_t and __uint128_t types.
31095 (__uint128_type): Likewise.
31096 (altivec_categorize_keyword): Add support for vector __int128_t,
31097 vector __uint128_t, vector __int128, and vector unsigned __int128
31098 as a container type for TImode operations that need to be done in
31099 VSX/Altivec registers.
31100 (rs6000_macro_to_expand): Likewise.
31101 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31102 to support 128-bit integer instructions vaddcuq, vadduqm,
31103 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31104 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31106 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31107 for V1TImode, and set up preferences to use VSX/Altivec registers.
31108 Setup VSX reload handlers.
31109 (rs6000_debug_reg_global): Likewise.
31110 (rs6000_init_hard_regno_mode_ok): Likewise.
31111 (rs6000_preferred_simd_mode): Likewise.
31112 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31113 (easy_altivec_constant): Likewise.
31114 (output_vec_const_move): Likewise.
31115 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31117 (rs6000_expand_vector_extract): Likewise.
31118 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31120 (rs6000_const_vec): Add support for V1TImode.
31121 (rs6000_emit_le_vsx_load): Swap double words when loading or
31122 storing TImode/V1TImode.
31123 (rs6000_emit_le_vsx_store): Likewise.
31124 (rs6000_emit_le_vsx_move): Likewise.
31125 (rs6000_emit_move): Add support for V1TImode.
31126 (altivec_expand_ld_builtin): Likewise.
31127 (altivec_expand_st_builtin): Likewise.
31128 (altivec_expand_vec_init_builtin): Likewise.
31129 (altivec_expand_builtin): Likewise.
31130 (rs6000_init_builtins): Add support for V1TImode type. Add
31131 support for ISA 2.07 128-bit integer builtins. Define type names
31132 for the VSX/Altivec vector types.
31133 (altivec_init_builtins): Add support for overloaded vector
31134 functions with V1TImode type.
31135 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31136 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31138 (rs6000_split_128bit_ok_p): Likewise.
31139 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31140 __int128_t and vector __uint128_t.
31142 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31143 and mode attributes.
31145 (VSX_M2): Likewise.
31150 (VS_scalar): Likewise.
31151 (VS_double): Likewise.
31152 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31154 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31155 we support the ISA 2.07 128-bit integer arithmetic instructions.
31156 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31157 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31158 and TImode types for use with the builtin functions.
31159 (V1TI_type_node): Likewise.
31160 (unsigned_V1TI_type_node): Likewise.
31161 (intTI_type_internal_node): Likewise.
31162 (uintTI_type_internal_node): Likewise.
31164 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31165 128-bit builtin functions.
31166 (UNSPEC_VADDEUQM): Likewise.
31167 (UNSPEC_VADDECUQ): Likewise.
31168 (UNSPEC_VSUBCUQ): Likewise.
31169 (UNSPEC_VSUBEUQM): Likewise.
31170 (UNSPEC_VSUBECUQ): Likewise.
31171 (VM): Add V1TImode to vector mode iterators.
31173 (VI_unit): Likewise.
31174 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31175 (altivec_vaddcuq): Likewise.
31176 (altivec_vsubuqm): Likewise.
31177 (altivec_vsubcuq): Likewise.
31178 (altivec_vaddeuqm): Likewise.
31179 (altivec_vaddecuq): Likewise.
31180 (altivec_vsubeuqm): Likewise.
31181 (altivec_vsubecuq): Likewise.
31183 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31185 (BOOL_128): Likewise.
31186 (BOOL_REGS_OUTPUT): Likewise.
31187 (BOOL_REGS_OP1): Likewise.
31188 (BOOL_REGS_OP2): Likewise.
31189 (BOOL_REGS_UNARY): Likewise.
31190 (BOOL_REGS_AND_CR0): Likewise.
31192 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31193 128-bit integer builtin support.
31194 (vec_vadduqm): Likewise.
31195 (vec_vaddecuq): Likewise.
31196 (vec_vaddeuqm): Likewise.
31197 (vec_vsubecuq): Likewise.
31198 (vec_vsubeuqm): Likewise.
31199 (vec_vsubcuq): Likewise.
31200 (vec_vsubuqm): Likewise.
31202 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31203 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31204 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31205 128-bit integer add/subtract to ISA 2.07.
31207 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31209 * config/arc/arc.c (arc_predicate_delay_insns):
31210 Fix third argument passed to conditionalize_nonjump.
31212 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31214 * config/aarch64/aarch64-builtins.c
31215 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31216 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31217 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31218 instead of __builtin_lfloor.
31219 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31221 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31223 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31224 (tree_ssa_ifcombine_bb_1): New function.
31225 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31226 is an empty forwarder block to then_bb or vice versa and then_bb
31227 and else_bb are effectively swapped.
31229 2014-03-12 Christian Bruel <christian.bruel@st.com>
31232 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31233 REG_CFA_DEF_CFA note.
31234 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31235 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31237 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31239 PR tree-optimization/60454
31240 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31242 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31244 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31245 Do not define target_cpu_default2 to generic.
31246 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31247 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31248 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31250 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31251 Marc Glisse <marc.glisse@inria.fr>
31253 PR tree-optimization/60502
31254 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31255 instead of build_low_bits_mask.
31257 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31259 PR middle-end/60482
31260 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31261 if there are multiple uses, but op doesn't live on E edge.
31262 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31263 clobber stmts before __builtin_unreachable.
31265 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31267 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31268 hard_frame_pointer_rtx.
31269 * cse.c (cse_insn): Remove volatile check.
31270 * cselib.c (cselib_process_insn): Likewise.
31271 * dse.c (scan_insn): Likewise.
31273 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31275 * config/arc/arc.c (conditionalize_nonjump): New function,
31277 (arc_ifcvt): ... this.
31278 (arc_predicate_delay_insns): Use it.
31280 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31282 * config/arc/predicates.md (extend_operand): During/after reload,
31283 allow const_int_operand.
31284 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31285 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31286 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31288 (umulsi3_highpart_i): Likewise.
31290 2014-03-11 Richard Biener <rguenther@suse.de>
31292 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31293 Add asserts to guard possible wrong-code bugs.
31295 2014-03-11 Richard Biener <rguenther@suse.de>
31297 PR tree-optimization/60429
31298 PR tree-optimization/60485
31299 * tree-ssa-structalias.c (set_union_with_increment): Properly
31300 take into account all fields that overlap the shifted vars.
31301 (do_sd_constraint): Likewise.
31302 (do_ds_constraint): Likewise.
31303 (get_constraint_for_ptr_offset): Likewise.
31305 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31307 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31308 (nios2_compute_frame_layout):
31309 Add calculation of cfun->machine->fp_save_offset.
31310 (nios2_expand_prologue): Correct setting of frame pointer register
31312 (nios2_expand_epilogue): Update recovery of stack pointer from
31313 frame pointer accordingly.
31314 (nios2_initial_elimination_offset): Update calculation of offset
31315 for eliminating to HARD_FRAME_POINTER_REGNUM.
31317 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31320 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31321 cgraph_get_create_node on VAR_DECLs.
31323 2014-03-10 Richard Biener <rguenther@suse.de>
31325 PR middle-end/60474
31326 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31328 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31330 * config/vms/vms.opt (vms_float_format): New variable.
31332 2014-03-08 Tobias Burnus <burnus@net-b.de>
31334 * doc/invoke.texi (-fcilkplus): Update implementation status.
31336 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31337 Richard Biener <rguenther@suse.de>
31339 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31340 consistently accross all TUs.
31341 (run_gcc): Enable -fshort-double automatically at link at link-time
31342 and disallow override.
31344 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31347 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31348 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31349 if they can't be used.
31351 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31353 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31354 for Solaris 11/x86 ld.
31355 * configure: Regenerate.
31357 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31359 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31360 (LIB_TLS_SPEC): Save as ld_tls_libs.
31361 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31362 (HAVE_AS_IX86_TLSLDM): New test.
31363 * configure, config.in: Regenerate.
31364 * config/i386/i386.c (legitimize_tls_address): Fall back to
31365 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31366 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31367 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31368 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31370 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31372 * common.opt (fira-loop-pressure): Mark as optimization.
31374 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31376 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31377 an OpenMP mappable type.
31379 2014-03-06 Matthias Klose <doko@ubuntu.com>
31381 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31382 MULTILIB_OSDIRNAMES is not defined.
31384 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31385 Meador Inge <meadori@codesourcery.com>
31388 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31389 (arm_legitimize_address): Call legitimize_tls_address for any
31390 arm_tls_referenced_p expression, handle constant addend. Call it
31391 before testing for !TARGET_ARM.
31392 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31394 2014-03-06 Richard Biener <rguenther@suse.de>
31396 PR middle-end/60445
31400 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31402 * tree-streamer.c (record_common_node): Assert we don't record
31403 nodes with type double.
31404 (preload_common_node): Skip type double, complex double and double
31405 pointer since it is now frontend dependent due to fshort-double option.
31407 2014-03-06 Richard Biener <rguenther@suse.de>
31409 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31410 or -fno-lto is specified and the linker has full plugin support.
31411 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31412 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31413 * lto-wrapper.c (merge_and_complain): Merge compile-time
31414 optimization levels.
31415 (run_gcc): And pass it through to the link options.
31417 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31421 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31423 * cselib.c (remove_useless_values): Skip to avoid quadratic
31424 behavior if the condition moved from...
31425 (cselib_process_insn): ... here holds.
31427 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31430 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31431 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31434 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31435 (TM_H): Add x86-tune.def.
31437 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31439 * config/aarch64/aarch64.c (generic_tunings):
31440 Use cortexa57_extra_costs.
31442 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31445 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31446 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31447 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31450 2014-03-04 Heiher <r@hev.cc>
31452 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31453 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31455 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31457 * config/i386/predicates.md (const2356_operand): Change to ...
31458 (const2367_operand): ... this.
31459 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31461 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31462 (*avx512pf_scatterpf<mode>sf): Ditto.
31463 (avx512pf_scatterpf<mode>df): Ditto.
31464 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31465 (*avx512pf_scatterpf<mode>df): Ditto.
31466 * config/i386/i386.c (ix86_expand_builtin): Update
31467 incorrect hint operand error message.
31469 2014-03-04 Richard Biener <rguenther@suse.de>
31471 * lto-section-in.c (lto_get_section_data): Fix const cast.
31473 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31475 * tree-streamer.c (record_common_node): Assert we don't record
31476 nodes with type double.
31477 (preload_common_node): Skip type double, complex double and double
31478 pointer since it is now frontend dependent due to fshort-double option.
31480 2014-03-04 Richard Biener <rguenther@suse.de>
31483 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31484 (lto_input_toplevel_asms): Likewise.
31485 * lto-section-in.c (lto_get_section_data): Instead do it here
31488 2014-03-04 Richard Biener <rguenther@suse.de>
31490 PR tree-optimization/60382
31491 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31492 dead PHIs a reduction.
31494 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31496 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31498 (_mm_prefetch): Move out of GCC target("sse") pragma.
31499 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31500 GCC target("prfchw") pragma.
31501 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31503 * config/i386/i386.c (ix86_option_override_internal): Enable
31504 -mprfchw with -mprefetchwt1.
31506 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31508 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31511 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31513 * opts.h (CL_PCH_IGNORE): Define.
31514 * targhooks.c (option_affects_pch_p):
31515 Return false for options that have CL_PCH_IGNORE set.
31516 * opt-functions.awk: Process PchIgnore.
31517 * doc/options.texi: Document PchIgnore.
31519 * config/arc/arc.opt (misize): Add PchIgnore property.
31521 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31523 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31524 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31525 constraint on constants to permit them being loaded into
31526 GENERAL_REGS or BASE_REGS.
31528 2014-03-03 Nick Clifton <nickc@redhat.com>
31530 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31531 anti-cacnonical alternatives.
31532 (negandhi3_real): New pattern.
31533 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31535 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31537 * config/avr/avr-mcus.def: Remove atxmega16x1.
31538 * config/avr/avr-tables.opt: Regenerate.
31539 * config/avr/t-multilib: Regenerate.
31540 * doc/avr-mmcu.texi: Regenerate.
31542 2014-03-03 Tobias Grosser <tobias@grosser.es>
31543 Mircea Namolaru <mircea.namolaru@inria.fr>
31545 PR tree-optimization/58028
31546 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31549 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31551 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31552 not handled by recognizers.
31554 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31556 PR middle-end/60175
31557 * function.c (expand_function_end): Don't emit
31558 clobber_return_register sequence if clobber_after is a BARRIER.
31559 * cfgexpand.c (construct_exit_block): Append instructions before
31560 return_label to prev_bb.
31562 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31564 * config/rs6000/constraints.md: Document reserved use of "wc".
31566 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31569 * ipa.c (function_and_variable_visibility): When dissolving comdat
31570 group, also set all symbols to local.
31572 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31577 2013-12-14 Jan Hubicka <jh@suse.cz>
31578 PR middle-end/58477
31579 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31581 2014-03-02 Jon Beniston <jon@beniston.com>
31587 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31588 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31589 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31590 (simple_return, *simple_return): New patterns
31591 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31592 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31594 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31596 * dwarf2out.c (gen_subprogram_die): Tidy.
31598 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31601 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31602 (*mov_t_msb_neg_negc): ... this new insn.
31604 2014-02-28 Jason Merrill <jason@redhat.com>
31607 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31610 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31613 * dwarf2out.c (decltype_auto_die): New static.
31614 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31615 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31616 (is_cxx_auto): Likewise.
31618 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31620 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31621 we are not using general regs only.
31623 2014-02-28 Richard Biener <rguenther@suse.de>
31626 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31627 previous fix and only allow to remove trivial pre-headers
31628 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31629 (remove_forwarder_block): Properly update the latch of a loop.
31631 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31634 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31635 (cselib_preserved_hash_table): New.
31636 (preserve_constants_and_equivs): Move preserved vals to it.
31637 (cselib_find_slot): Look it up first.
31638 (cselib_init): Initialize it.
31639 (cselib_finish): Release it.
31640 (dump_cselib_table): Dump it.
31642 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31645 * cselib.c (remove_useless_values): Skip to avoid quadratic
31646 behavior if the condition moved from...
31647 (cselib_process_insn): ... here holds.
31649 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31652 * var-tracking.c (vt_initialize): Apply the same condition to
31653 preserve the CFA base value.
31655 2014-02-28 Joey Ye <joey.ye@arm.com>
31658 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31659 if reload in progress or completed.
31661 2014-02-28 Tobias Burnus <burnus@net-b.de>
31663 PR middle-end/60147
31664 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31667 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31669 * doc/tm.texi.in (Condition Code Status): Update documention for
31670 relative locations of cc0-setter and cc0-user.
31672 2014-02-27 Jeff Law <law@redhat.com>
31674 PR rtl-optimization/52714
31675 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31676 into two independent simple sets, if I3 is a jump, ensure the
31677 pattern we place into I3 is a (set (pc) ...).
31679 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31680 Jeff Law <law@redhat.com>
31682 PR rtl-optimization/49847
31683 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31684 are in different blocks.
31685 * doc/tm.texi (Condition Code Status): Update documention for
31686 relative locations of cc0-setter and cc0-user.
31688 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31691 * lra.c (lra_emit_add): Check SUBREG too.
31693 2014-02-27 Andreas Schwab <schwab@suse.de>
31695 * config/m68k/m68k.c (m68k_option_override): Disable
31696 -flive-range-shrinkage for classic m68k.
31697 (m68k_override_options_after_change): Likewise.
31699 2014-02-27 Marek Polacek <polacek@redhat.com>
31701 PR middle-end/59223
31702 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31703 -Wmaybe-uninitialized.
31705 2014-02-27 Alan Modra <amodra@gmail.com>
31708 * reload1.c (emit_input_reload_insns): When reload_override_in,
31709 set old to rl->in_reg when rl->in_reg is a subreg.
31711 2014-02-26 Richard Biener <rguenther@suse.de>
31714 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31716 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31718 * common/config/i386/predicates.md (const1256_operand): Remove.
31719 (const2356_operand): New.
31720 (const_1_to_2_operand): Remove.
31721 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31722 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31723 (*avx512pf_gatherpf<mode>sf): Ditto.
31724 (avx512pf_gatherpf<mode>df): Ditto.
31725 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31726 (*avx512pf_gatherpf<mode>df): Ditto.
31727 (avx512pf_scatterpf<mode>sf): Ditto.
31728 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31729 (*avx512pf_scatterpf<mode>sf): Ditto.
31730 (avx512pf_scatterpf<mode>df): Ditto.
31731 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31732 (*avx512pf_scatterpf<mode>df): Ditto.
31733 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31735 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31737 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31738 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31739 (_mm512_mask_testn_epi64_mask): Move to ...
31740 * config/i386/avx512cdintrin.h: Here.
31741 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31742 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31743 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31744 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31745 TARGET_AVX512F from TARGET_AVX512CD.
31747 2014-02-26 Richard Biener <rguenther@suse.de>
31750 * ipa.c (walk_polymorphic_call_targets): Properly guard
31751 call to inline_update_overall_summary.
31753 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31756 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31757 and latches only if requested. Fix latch if it is removed.
31758 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31759 LOOPS_HAVE_PREHEADERS.
31761 2014-02-25 Andrew Pinski <apinski@cavium.com>
31763 * builtins.c (expand_builtin_thread_pointer): Create a new target
31764 when the target is NULL.
31766 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31768 PR rtl-optimization/60317
31769 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31770 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31771 * lra-assigns.c: Include params.h.
31772 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31773 other reload pseudos considerations.
31775 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31777 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31778 to use canonical form for nor<mode>3.
31780 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31783 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31786 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31788 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31789 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31790 (ix86_handle_option): Handle OPT_mprefetchwt1.
31791 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31792 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31794 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31795 OPTION_MASK_ISA_PREFETCHWT1.
31796 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31797 (PTA_PREFETCHWT1): New.
31798 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31799 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31800 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31801 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31802 (*prefetch_avx512pf_<mode>_: Change into ...
31803 (*prefetch_prefetchwt1_<mode>: This.
31804 * config/i386/i386.opt (mprefetchwt1): New.
31805 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31806 (_mm_prefetch): Handle intent to write.
31807 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31809 2014-02-25 Richard Biener <rguenther@suse.de>
31811 PR middle-end/60291
31812 * emit-rtl.c (mem_attrs_htab): Remove.
31813 (mem_attrs_htab_hash): Likewise.
31814 (mem_attrs_htab_eq): Likewise.
31815 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31816 (init_emit_once): Do not allocate mem_attrs_htab.
31818 2014-02-25 Richard Biener <rguenther@suse.de>
31821 * lto-opts.c (lto_write_options): Output non-explicit conservative
31822 -fwrapv, -fno-trapv and -fno-strict-overflow.
31823 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31824 (run_gcc): And pass them through.
31826 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31828 * sel-sched.c (calculate_new_fences): New parameter ptime.
31829 Calculate it as a maximum over all fence cycles.
31830 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31831 Print the final schedule timing when sched_verbose.
31833 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31835 PR rtl-optimization/60292
31836 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31837 bit fot the fence instruction.
31839 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31841 * calls.h: Fix typo in comment.
31843 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31845 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31846 adjusting offsetable addresses.
31848 2014-02-24 Guozhi Wei <carrot@google.com>
31850 * sparseset.h (sparseset_pop): Fix the wrong index.
31852 2014-02-24 Walter Lee <walt@tilera.com>
31854 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31855 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31857 * common/config/tilegx/tilegx-common.c
31858 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31859 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31860 (LINK_SPEC): Ditto.
31861 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31862 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31863 (tilegx_gimplify_va_arg_expr): Handle big endian.
31864 (tilegx_expand_unaligned_load): Ditto.
31865 (tilegx_expand_unaligned_store): Ditto.
31866 (TARGET_RETURN_IN_MSB): New.
31867 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31868 (TARGET_ENDIAN_DEFAULT): New.
31869 (TARGET_BIG_ENDIAN): Handle big endian.
31870 (BYTES_BIG_ENDIAN): Ditto.
31871 (WORDS_BIG_ENDIAN): Ditto.
31872 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31873 (ENDIAN_SPEC): New.
31874 (EXTRA_SPECS): New.
31875 * config/tilegx/tilegx.md (extv): Handle big endian.
31877 (insn_st<n>): Ditto.
31878 (insn_st<n>_add<bitsuffix>): Ditto.
31879 (insn_stnt<n>): Ditto.
31880 (insn_stnt<n>_add<bitsuffix>):Ditto.
31881 (vec_interleave_highv8qi): Handle big endian.
31882 (vec_interleave_highv8qi_be): New.
31883 (vec_interleave_highv8qi_le): New.
31884 (insn_v1int_h): Handle big endian.
31885 (vec_interleave_lowv8qi): Handle big endian.
31886 (vec_interleave_lowv8qi_be): New.
31887 (vec_interleave_lowv8qi_le): New.
31888 (insn_v1int_l): Handle big endian.
31889 (vec_interleave_highv4hi): Handle big endian.
31890 (vec_interleave_highv4hi_be): New.
31891 (vec_interleave_highv4hi_le): New.
31892 (insn_v2int_h): Handle big endian.
31893 (vec_interleave_lowv4hi): Handle big endian.
31894 (vec_interleave_lowv4hi_be): New.
31895 (vec_interleave_lowv4hi_le): New.
31896 (insn_v2int_l): Handle big endian.
31897 (vec_interleave_highv2si): Handle big endian.
31898 (vec_interleave_highv2si_be): New.
31899 (vec_interleave_highv2si_le): New.
31900 (insn_v4int_h): Handle big endian.
31901 (vec_interleave_lowv2si): Handle big endian.
31902 (vec_interleave_lowv2si_be): New.
31903 (vec_interleave_lowv2si_le): New.
31904 (insn_v4int_l): Handle big endian.
31905 * config/tilegx/tilegx.opt (mbig-endian): New option.
31906 (mlittle-endian): New option.
31907 * doc/install.texi: Document tilegxbe-linux.
31908 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31910 2014-02-24 Martin Jambor <mjambor@suse.cz>
31913 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31914 there are no parameter descriptors.
31916 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31918 PR rtl-optimization/60268
31919 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31920 initialization to ...
31921 (sched_rgn_init): ... here.
31922 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31924 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31926 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31929 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31931 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31934 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31936 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31937 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31939 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31941 * config/microblaze/predicates.md: Add cmp_op predicate.
31942 * config/microblaze/microblaze.md: Add branch_compare instruction
31943 which uses cmp_op predicate and emits cmp insn before branch.
31944 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31945 to microblaze_expand_conditional_branch and consolidate logic.
31946 (microblaze_expand_conditional_branch): emit branch_compare
31947 insn instead of handling cmp op separate from branch insn.
31949 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31951 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31954 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31956 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31957 define_insn with define_expand and new define_insn
31958 *altivec_lve<VI_char>x_internal.
31959 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31960 and new define_insn *altivec_stve<VI_char>x_internal.
31961 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31963 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31965 (altivec_expand_stvex_be): New function.
31967 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31969 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31970 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31971 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31972 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31974 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31977 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31978 instead of emit_move_insn.
31980 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31982 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31983 vspltw with vsldoi.
31984 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31985 gen_altivec_vsumsws.
31987 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31989 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31990 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31991 (altivec_lvxl_<mode>): New define_expand incorporating
31992 -maltivec=be semantics where needed.
31993 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31994 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31995 semantics where needed.
31996 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31997 (altivec_stvx_<mode>): New define_expand incorporating
31998 -maltivec=be semantics where needed.
31999 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32000 VM2 iterator instead of V4SI.
32001 (altivec_stvxl_<mode>): New define_expand incorporating
32002 -maltivec=be semantics where needed.
32003 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32004 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32005 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32006 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32007 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32008 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32009 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32010 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32011 ALTIVEC_BUILTIN_STVXL.
32012 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32013 (altivec_expand_stvx_be): Likewise.
32014 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32015 (altivec_expand_lvx_be): Likewise.
32016 (altivec_expand_stvx_be): Likewise.
32017 (altivec_expand_builtin): Add cases for
32018 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32019 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32020 (altivec_init_builtins): Add definitions for
32021 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32022 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32024 2014-02-21 Catherine Moore <clm@codesourcery.com>
32026 * doc/invoke.texi (mvirt, mno-virt): Document.
32027 * config/mips/mips.opt (mvirt): New option.
32028 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32030 2014-02-21 Richard Biener <rguenther@suse.de>
32032 PR tree-optimization/60276
32033 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32034 (STMT_VINFO_MIN_NEG_DIST): New macro.
32035 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32036 STMT_VINFO_MIN_NEG_DIST.
32037 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32038 made for negative dependence distances still hold.
32040 2014-02-21 Richard Biener <rguenther@suse.de>
32042 PR middle-end/60291
32043 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32044 DECL_INITIAL for globals not in the current function context.
32046 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32048 PR tree-optimization/56490
32049 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32050 * tree-ssa-uninit.c: Include params.h.
32051 (compute_control_dep_chain): Add num_calls argument, return false
32052 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32053 num_calls to recursive call.
32054 (find_predicates): Change dep_chain into normal array,
32055 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32056 variable and adjust compute_control_dep_chain caller.
32057 (find_def_preds): Likewise.
32059 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32061 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32062 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32064 2014-02-21 Nick Clifton <nickc@redhat.com>
32066 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32067 (pushhi1): Likewise.
32068 (popqi1): Add mode to pre_dec.
32069 (pophi1): Likewise.
32071 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32073 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32074 mode for mask of V8SFmode permutation.
32076 2014-02-20 Richard Henderson <rth@redhat.com>
32079 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32080 a new pseudo for OLDVAL.
32082 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32085 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32086 gen_reg_rtx if d->testing_p.
32087 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32088 if d->testing_p and we will certainly return true.
32089 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32092 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32094 * emit-rtl.c (gen_reg_rtx): Assert that
32095 crtl->emit.regno_pointer_align_length is non-zero.
32097 2014-02-20 Richard Henderson <rth@redhat.com>
32100 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32101 on failure the store back into EXPECT.
32103 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32104 Sandra Loosemore <sandra@codesourcery.com>
32106 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32107 * config/nios2/nios2.c (nios2_function_profiler): Add
32108 -fPIC (flag_pic == 2) support.
32109 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32110 (nios2_large_offset_p): New function.
32111 (nios2_unspec_reloc_p): Move up position, update to use
32112 nios2_large_offset_p.
32113 (nios2_unspec_address): Remove function.
32114 (nios2_unspec_offset): New function.
32115 (nios2_large_got_address): New function.
32116 (nios2_got_address): Add large offset support.
32117 (nios2_legitimize_tls_address): Update usage of removed and new
32119 (nios2_symbol_binds_local_p): New function.
32120 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32121 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32122 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32123 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32124 processing for (const (unspec ...)).
32125 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32127 2014-02-20 Richard Biener <rguenther@suse.de>
32129 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32130 doing the substitution.
32131 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32133 2014-02-20 Martin Jambor <mjambor@suse.cz>
32136 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32137 info when checking whether lattices are bottom.
32139 2014-02-20 Richard Biener <rguenther@suse.de>
32141 PR middle-end/60221
32142 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32145 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32148 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32149 parameter specifying the scaling.
32150 (inline_call): Update.
32151 (want_inline_recursively): Guard division by zero.
32152 (recursive_inlining): Update.
32153 * ipa-inline.h (clone_inlined_nodes): Update.
32155 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32158 * config/i386/i386.c (classify_argument): Pass structures of size
32159 64 bytes or less in register.
32161 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32162 Kirill Yukhin <kirill.yukhin@intel.com>
32164 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32165 (_mm_rcp28_round_ss): Ditto.
32166 (_mm_rsqrt28_round_sd): Ditto.
32167 (_mm_rsqrt28_round_ss): Ditto.
32168 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32169 (_mm_rcp14_round_ss): Ditto.
32170 (_mm_rsqrt14_round_sd): Ditto.
32171 (_mm_rsqrt14_round_ss): Ditto.
32172 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32173 the first input operand, get rid of match_dup.
32174 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32176 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32178 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32179 operand as the first input operand, set type attribute.
32180 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32181 Set type attribute.
32182 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32183 operand as the first input operand, set type attribute.
32185 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32187 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32190 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32193 * config/i386/i386.c (construct_container): Remove TFmode check
32194 for X86_64_INTEGER_CLASS.
32196 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32199 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32200 only when -Wpsabi is enabled.
32202 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32205 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32206 passing arrays in registers are the same as for structs, so remove the
32207 special case for them.
32209 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32211 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32212 destination type, extract only the valid bits if the source type is not
32213 integral and has a different mode.
32215 2014-02-19 Richard Biener <rguenther@suse.de>
32218 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32221 2014-02-19 Richard Biener <rguenther@suse.de>
32224 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32225 (ipa_modify_call_arguments): Emit an argument load explicitely and
32226 preserve virtual SSA form there and for the replacement call.
32227 Do not update SSA form nor free dominance info.
32229 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32231 * ipa.c (function_and_variable_visibility): Also clear WEAK
32232 flag when disolving COMDAT_GROUP.
32234 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32236 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32237 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32238 not devirtualizing.
32239 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32240 do more sanity checks.
32241 (detect_type_change): Return true when giving up early.
32242 (compute_complex_assign_jump_func): Fix type parameter of
32243 ipa_set_ancestor_jf.
32244 (compute_complex_ancestor_jump_func): Likewise.
32245 (update_jump_functions_after_inlining): Fix updating of
32247 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32249 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32251 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32252 inline clones when edge disappears.
32254 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32257 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32258 Split 64-bit moves into 2 patterns. Do not allow the use of
32259 direct move for TDmode in little endian, since the decimal value
32260 has little endian bytes within a word, but the 64-bit pieces are
32261 ordered in a big endian fashion, and normal subreg's of TDmode are
32263 (mov<mode>_64bit_dm): Likewise.
32264 (movtd_64bit_nodm): Likewise.
32266 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32268 PR tree-optimization/60174
32269 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32270 statement of an SSA_NAME that occurs in an abnormal PHI node.
32272 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32275 * final.c (SEEN_BB): Remove.
32276 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32277 (final_scan_insn): Don't force_source_line on second
32278 NOTE_INSN_BASIC_BLOCK.
32280 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32283 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32284 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32285 (type_natural_mode): Warn ABI change when %zmm register is not
32286 available for AVX512F vector value passing.
32288 2014-02-18 Kai Tietz <ktietz@redhat.com>
32291 * config/i386/i386.c (ix86_expand_prologue): Use value in
32292 rax register as displacement when restoring %r10 or %rax.
32293 Fix wrong offset when restoring both registers.
32295 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32297 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32298 assertion with conditional return.
32300 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32301 Uros Bizjak <ubizjak@gmail.com>
32304 * config/i386/driver-i386.c (host_detect_local_cpu): If
32305 YMM state is not saved by the OS, also clear has_f16c. Move
32306 CPUID 0x80000001 handling before YMM state saving checking.
32308 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32310 PR rtl-optimization/58960
32311 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32312 factored out from ...
32313 (sched_init): ... here.
32314 (free_global_sched_pressure_data): New, factored out from ...
32315 (sched_finish): ... here.
32316 * sched-int.h (free_global_sched_pressure_data): Declare.
32317 * sched-rgn.c (nr_regions_initial): New static global.
32318 (haifa_find_rgns): Initialize it.
32319 (schedule_region): Disable sched-pressure for the newly
32322 2014-02-17 Richard Biener <rguenther@suse.de>
32324 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32325 release SSA defs of pattern stmts.
32327 2014-02-17 Richard Biener <rguenther@suse.de>
32329 * tree-inline.c (expand_call_inline): Release the virtual
32330 operand defined by the call we are about to inline.
32332 2014-02-17 Richard Biener <rguenther@suse.de>
32334 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32336 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32337 Ilya Tocar <ilya.tocar@intel.com>
32339 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32340 arguments order in builtin.
32341 (_mm512_permutexvar_epi64): Ditto.
32342 (_mm512_mask_permutexvar_epi64): Ditto
32343 (_mm512_maskz_permutexvar_epi32): Ditto
32344 (_mm512_permutexvar_epi32): Ditto
32345 (_mm512_mask_permutexvar_epi32): Ditto
32347 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32349 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32350 (p8_vmrgow): Likewise.
32352 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32354 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32357 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32360 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32361 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32362 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32363 using direct move instructions on ISA 2.07. Also adjust
32364 instruction length for 64-bit.
32365 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32366 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32368 2014-02-15 Alan Modra <amodra@gmail.com>
32372 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32373 find_replacement on parts of insn rtl that might be reloaded.
32375 2014-02-15 Richard Biener <rguenther@suse.de>
32377 PR tree-optimization/60183
32378 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32379 (tree_ssa_phiprop): Calculate and free post-dominators.
32381 2014-02-14 Jeff Law <law@redhat.com>
32383 PR rtl-optimization/60131
32384 * ree.c (get_extended_src_reg): New function.
32385 (combine_reaching_defs): Use it rather than assuming location of REG.
32386 (find_and_remove_re): Verify first operand of extension is
32387 a REG before adding the insns to the copy list.
32389 2014-02-14 Roland McGrath <mcgrathr@google.com>
32391 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32392 * configure: Regenerated.
32393 * config.in: Regenerated.
32394 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32395 instead of ASM_SHORT.
32397 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32398 Richard Earnshaw <rearnsha@arm.com>
32400 PR rtl-optimization/59535
32401 * lra-constraints.c (process_alt_operands): Encourage alternative
32402 when unassigned pseudo class is superset of the alternative class.
32403 (inherit_reload_reg): Don't inherit when optimizing for code size.
32404 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32405 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32406 modes not less than 4 for Thumb1.
32408 2014-02-14 Kyle McMartin <kyle@redhat.com>
32411 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32413 2014-02-14 Richard Biener <rguenther@suse.de>
32415 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32416 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32417 Do not strip INDIRECT_REFs.
32419 2014-02-14 Richard Biener <rguenther@suse.de>
32422 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32423 DECL_FUNCTION_SPECIFIC_TARGET.
32424 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32425 * tree-streamer-out.c (pack_ts_target_option): Remove.
32426 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32427 (write_ts_function_decl_tree_pointers): Do not stream
32428 DECL_FUNCTION_SPECIFIC_TARGET.
32429 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32430 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32431 (lto_input_ts_function_decl_tree_pointers): Do not stream
32432 DECL_FUNCTION_SPECIFIC_TARGET.
32434 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32436 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32437 (get_initial_def_for_induction, vectorizable_induction): Ignore
32438 debug stmts when looking for exit_phi.
32439 (vectorizable_live_operation): Fix up condition.
32441 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32443 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32444 nreverse() because it changes the content of original tree list.
32446 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32448 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32449 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32451 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32453 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32454 GNU coding standards.
32456 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32459 * dwarf2out.c (gen_subprogram_die): Don't call
32460 add_calling_convention_attribute if subr_die is old_die.
32462 2014-02-13 Sharad Singhai <singhai@google.com>
32464 * doc/optinfo.texi: Fix order of nodes.
32466 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32468 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32469 operands[2], not operands[3].
32471 2014-02-13 Richard Biener <rguenther@suse.de>
32474 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32475 mention the possibility of an in-tree build.
32476 (CLooG): Update recommended version to 0.18.1, mention the
32477 possibility of an in-tree build and clarify that the ISL
32478 bundled with CLooG does not work.
32480 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32483 * expr.c (compress_float_constant): If x is a hard register,
32484 extend into a pseudo and then move to x.
32486 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32488 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32489 caused by bad second argument to warning_at() with -mhotpatch and
32490 nested functions (e.g. with gfortran).
32492 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32494 * opts.c (option_name): Remove "enabled by default" rider.
32496 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32498 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32500 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32501 Uros Bizjak <ubizjak@gmail.com>
32504 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32505 * configure: Regenerated.
32507 2014-02-12 Richard Biener <rguenther@suse.de>
32509 * vec.c (vec_prefix::calculate_allocation): Move as
32510 inline variant to vec.h.
32511 (vec_prefix::calculate_allocation_1): New out-of-line version.
32512 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32513 (vec_prefix::m_has_auto_buf): Rename to ...
32514 (vec_prefix::m_using_auto_storage): ... this.
32515 (vec_prefix::calculate_allocation): Inline the easy cases
32516 and dispatch to calculate_allocation_1 which doesn't need the
32518 (va_heap::reserve): Use gcc_checking_assert.
32519 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32520 m_using_auto_storage.
32521 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32523 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32524 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32525 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32527 2014-02-12 Richard Biener <rguenther@suse.de>
32529 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32530 when we found a dependence.
32532 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32534 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32536 (maybe_fold_stmt): ... into this new function.
32537 * omp-low.c (lower_omp): Update comment.
32539 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32542 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32545 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32547 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32548 identifiers in comments.
32549 (cortexa53_extra_costs): Likewise.
32550 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32551 (cortexa7_extra_costs): Likewise.
32552 (cortexa12_extra_costs): Likewise.
32553 (cortexa15_extra_costs): Likewise.
32554 (v7m_extra_costs): Likewise.
32556 2014-02-12 Richard Biener <rguenther@suse.de>
32558 PR middle-end/60092
32559 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32560 of posix_memalign being successful.
32561 (lower_stmt): Restrict lowering of posix_memalign to when
32562 -ftree-bit-ccp is enabled.
32564 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32566 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32568 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32570 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32572 PR rtl-optimization/60116
32573 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32574 other_insn once the combination has been validated.
32576 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32579 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32581 * ipa-devirt.c: Include demangle.h
32582 (odr_violation_reported): New static variable.
32583 (add_type_duplicate): Update odr_violations.
32584 (maybe_record_node): Add completep parameter; update it.
32585 (record_target_from_binfo): Add COMPLETEP parameter;
32586 update it as needed.
32587 (possible_polymorphic_call_targets_1): Likewise.
32588 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32589 rename FINAL to COMPLETE.
32590 (record_targets_from_bases): Sanity check we found the binfo;
32591 fix COMPLETEP updating.
32592 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32593 parameter, fix computing of COMPLETEP.
32594 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32595 at LTO time do demangling.
32596 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32597 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32599 (gimple_get_virt_method_for_binfo): Likewise.
32600 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32601 gimple_get_virt_method_for_vtable): Update prototypes.
32603 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32606 * genautomata.c (add_presence_absence): Fix typo with
32607 {final_}presence_list.
32609 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32612 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32613 for VSX/Altivec vectors that land in GPR registers.
32615 2014-02-11 Richard Henderson <rth@redhat.com>
32616 Jakub Jelinek <jakub@redhat.com>
32619 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32620 around drhs if type conversion to lacc->type is not useless.
32622 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32624 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32626 (cortex-a57.cortex-a53): Likewise.
32627 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32629 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32631 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32634 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32636 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32637 add_options_for_arm_vfp3.
32639 2014-02-11 Jeff Law <law@redhat.com>
32641 PR middle-end/54041
32642 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32643 object with an undesirable mode.
32645 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32648 * config/i386/sol2-9.h: New file.
32649 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32650 *-*-solaris2.9*): Use it.
32652 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32654 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32655 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32657 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32659 * config/microblaze/microblaze.c: Extend mcpu version format
32661 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32663 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32665 2014-02-10 Richard Henderson <rth@redhat.com>
32668 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32669 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32670 ms-abi vs -mno-accumulate-outgoing-args.
32671 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32672 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32675 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32677 PR middle-end/60080
32678 * cfgexpand.c (expand_asm_operands): Attach source location to
32679 ASM_INPUT rtx objects.
32680 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32682 2014-02-10 Nick Clifton <nickc@redhat.com>
32684 * config/mn10300/mn10300.c (popcount): New function.
32685 (mn10300_expand_prologue): Include saved registers in stack usage
32688 2014-02-10 Jeff Law <law@redhat.com>
32690 PR middle-end/52306
32691 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32692 when changing the SET_DEST of a prior insn to avoid an input reload.
32694 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32696 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32697 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32698 -mcall-openbsd, or -mcall-linux.
32699 (CC1_ENDIAN_BIG_SPEC): Remove.
32700 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32701 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32702 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32703 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32704 and %cc1_endian_default.
32705 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32707 2014-02-10 Richard Biener <rguenther@suse.de>
32709 PR tree-optimization/60115
32710 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32711 MEM_REF handling. Properly verify that the accesses are not
32712 out of the objects bound.
32714 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32716 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32719 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32721 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32722 proper constants and fix formatting.
32723 (possible_polymorphic_call_targets): Fix formatting.
32725 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32726 Ilya Tocar <ilya.tocar@intel.com>
32728 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32729 (_mm512_loadu_epi32): Renamed into...
32730 (_mm512_loadu_si512): This.
32731 (_mm512_storeu_epi32): Renamed into...
32732 (_mm512_storeu_si512): This.
32733 (_mm512_maskz_ceil_ps): Removed.
32734 (_mm512_maskz_ceil_pd): Ditto.
32735 (_mm512_maskz_floor_ps): Ditto.
32736 (_mm512_maskz_floor_pd): Ditto.
32737 (_mm512_floor_round_ps): Ditto.
32738 (_mm512_floor_round_pd): Ditto.
32739 (_mm512_ceil_round_ps): Ditto.
32740 (_mm512_ceil_round_pd): Ditto.
32741 (_mm512_mask_floor_round_ps): Ditto.
32742 (_mm512_mask_floor_round_pd): Ditto.
32743 (_mm512_mask_ceil_round_ps): Ditto.
32744 (_mm512_mask_ceil_round_pd): Ditto.
32745 (_mm512_maskz_floor_round_ps): Ditto.
32746 (_mm512_maskz_floor_round_pd): Ditto.
32747 (_mm512_maskz_ceil_round_ps): Ditto.
32748 (_mm512_maskz_ceil_round_pd): Ditto.
32749 (_mm512_expand_pd): Ditto.
32750 (_mm512_expand_ps): Ditto.
32751 * config/i386/i386.c (ix86_builtins): Remove
32752 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32753 (bdesc_args): Ditto.
32754 * config/i386/predicates.md (const1256_operand): New.
32755 (const_1_to_2_operand): Ditto.
32756 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32757 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32758 (*avx512pf_gatherpf<mode>sf): Ditto.
32759 (avx512pf_gatherpf<mode>df): Ditto.
32760 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32761 (*avx512pf_gatherpf<mode>df): Ditto.
32762 (avx512pf_scatterpf<mode>sf): Ditto.
32763 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32764 (*avx512pf_scatterpf<mode>sf): Ditto.
32765 (avx512pf_scatterpf<mode>df): Ditto.
32766 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32767 (*avx512pf_scatterpf<mode>df): Ditto.
32768 (avx512f_expand<mode>): Removed.
32769 (<shift_insn><mode>3<mask_name>): Change predicate type.
32771 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32773 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32774 not at the end of datarefs vector use ordered_remove to avoid
32775 reordering datarefs vector.
32778 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32779 mark local addressable non-static vars as GOVD_PRIVATE
32780 instead of GOVD_LOCAL.
32781 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32782 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32785 PR middle-end/60092
32786 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32787 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32788 assume_aligned or alloc_align attributes.
32789 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32790 arguments. Handle also assume_aligned and alloc_align attributes.
32791 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32792 calls to functions with assume_aligned or alloc_align attributes.
32793 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32795 2014-02-08 Terry Guo <terry.guo@arm.com>
32797 * doc/invoke.texi: Document ARM -march=armv7e-m.
32799 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32801 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32802 flag on __cilkrts_rethrow builtin.
32805 * ipa-cp.c (determine_versionability): Fail at -O0
32806 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32807 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32810 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32813 * tree-inline.c (copy_forbidden): Fail for
32814 __attribute__((optimize (0))) functions.
32816 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32818 * varpool.c: Include pointer-set.h.
32819 (varpool_remove_unreferenced_decls): Variables in other partitions
32820 will not be output; be however careful to not lose information
32821 about partitioning.
32823 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32825 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32826 lookup in the vtable constructor.
32828 2014-02-07 Jeff Law <law@redhat.com>
32831 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32832 define_insn_and_split.
32834 * ipa-inline.c (inline_small_functions): Fix typos.
32836 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32838 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32839 (s390_can_use_return_insn): Declare.
32840 * config/s390/s390.h (EPILOGUE_USES): Define.
32841 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32843 (s390_chunkify_start): Handle return JUMP_LABELs.
32844 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32845 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32846 (s390_can_use_return_insn): New functions.
32847 (s390_fix_long_loop_prediction): Handle conditional returns.
32848 (TARGET_SET_UP_BY_PROLOGUE): Define.
32849 * config/s390/s390.md (ANY_RETURN): New code iterator.
32850 (*creturn, *csimple_return, return, simple_return): New patterns.
32852 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32854 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32855 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32856 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32857 REG_CFA_RESTORE list when deciding not to restore a register.
32859 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32861 * config/s390/s390.c: Include tree-pass.h and context.h.
32862 (s390_early_mach): New function, split out from...
32863 (s390_emit_prologue): ...here.
32864 (pass_data_s390_early_mach): New pass structure.
32865 (pass_s390_early_mach): New class.
32866 (s390_option_override): Create and register early_mach pass.
32867 Move to end of file.
32869 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32871 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32872 to match for the exit block.
32874 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32876 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32877 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32878 Reject misaligned operands.
32880 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32882 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32884 2014-02-07 Richard Biener <rguenther@suse.de>
32886 PR middle-end/60092
32887 * gimple-low.c (lower_builtin_posix_memalign): New function.
32888 (lower_stmt): Call it to lower posix_memalign in a way
32889 to make alignment info accessible.
32891 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32894 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32895 __builtin_setjmp_receiver.
32897 2014-02-07 Richard Biener <rguenther@suse.de>
32899 PR middle-end/60092
32900 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32901 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32902 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32903 Handle BUILT_IN_POSIX_MEMALIGN.
32904 (find_func_clobbers): Likewise.
32905 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32906 (call_may_clobber_ref_p_1): Likewise.
32908 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32911 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32914 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32917 * lto-cgraph.c (lto_output_node): Use
32918 symtab_get_symbol_partitioning_class.
32919 (lto_output_varpool_node): likewise.
32920 (symtab_get_symbol_partitioning_class): Move here from
32921 lto/lto-partition.c
32922 * cgraph.h (symbol_partitioning_class): Likewise.
32923 (symtab_get_symbol_partitioning_class): Declare.
32925 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32927 * ggc.h (ggc_internal_cleared_alloc): New macro.
32928 * vec.h (vec_safe_copy): Handle memory stats.
32929 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32930 * target-globals.c (save_target_globals): Likewise.
32932 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32935 * expr.c (emit_move_resolve_push): Export; be bit more selective
32936 on when to clear alias set.
32937 * expr.h (emit_move_resolve_push): Declare.
32938 * function.h (struct function): Add tail_call_marked.
32939 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32940 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32941 * config/i386/i386.md (TImode move expander): De not call
32943 (FP push expanders): Preserve memory attributes.
32944 * config/i386/sse.md (push<mode>1): Remove.
32945 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32946 (ix86_expand_push): Remove.
32947 * config/i386/mmx.md (push<mode>1): Remove.
32949 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32951 PR rtl-optimization/60030
32952 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32953 lopart with paradoxical subreg before shifting it up by hprec.
32955 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32957 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32958 Remove extra newline at end of file.
32959 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32960 (arm_issue_rate): Handle cortexa57.
32961 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32962 (cortex-a57.cortex-a53): Likewise.
32964 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32967 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32968 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32970 (arm_expand_prologue): Adjust all callers.
32971 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32972 info, registers also at the lowest numbered registers side. Use
32973 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32977 * var-tracking.c (adjust_mems): Before adding a SET to
32978 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32980 2014-02-06 Alan Modra <amodra@gmail.com>
32983 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32984 change SDmode to DDmode when lra_in_progress.
32986 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32988 PR middle-end/59150
32989 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32990 free_data_ref on the dr first, and before goto again also set dr
32991 to the next dr. For simd_lane_access, free old datarefs[i] before
32992 overwriting it. For get_vectype_for_scalar_type failure, don't
32993 free_data_ref if simd_lane_access.
32995 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32998 * tree.h (opts_for_fn): New inline function.
32999 (opt_for_fn): Define.
33000 * config/i386/i386.c (ix86_function_regparm): Use
33001 opt_for_fn (decl, optimize) instead of optimize.
33003 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33005 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33006 for SYMBOL_REF in large memory model.
33008 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33010 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33011 and crypto support.
33012 (cortex-a57): Likewise.
33013 (cortex-a57.cortex-a53): Likewise.
33015 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33016 Kugan Vivekanandarajah <kuganv@linaro.org>
33018 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33020 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33022 2014-02-06 Richard Biener <rguenther@suse.de>
33024 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33025 set_loop_copy and initialize_original_copy_tables.
33027 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33029 * config/aarch64/aarch64-simd.md
33030 (aarch64_ashr_simddi): Change QI to SI.
33032 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33033 Jakub Jelinek <jakub@redhat.com>
33035 PR middle-end/60013
33036 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33039 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33041 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33042 CODE_FOR_altivec_vpku[hw]um to
33043 CODE_FOR_altivec_vpku[hw]um_direct.
33044 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33045 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33046 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33047 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33049 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33051 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33052 generation for -maltivec=be.
33053 (altivec_vsumsws): Simplify redundant test.
33055 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33057 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33058 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33059 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33060 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33061 gen_altivec_vpkuwum.
33062 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33064 (altivec_vpks<VI_char>ss): Likewise.
33065 (altivec_vpks<VI_char>us): Likewise.
33066 (altivec_vpku<VI_char>us): Likewise.
33067 (altivec_vpku<VI_char>um): Likewise.
33068 (altivec_vpku<VI_char>um_direct): New (copy of
33069 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33071 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33072 target is little endian and -maltivec=be is not specified.
33073 (*altivec_vupkhs<VU_char>_direct): New (copy of
33074 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33075 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33076 target is little endian and -maltivec=be is not specified.
33077 (*altivec_vupkls<VU_char>_direct): New (copy of
33078 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33079 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33080 little endian and -maltivec=be is not specified.
33081 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33082 little endian and -maltivec=be is not specified.
33084 2014-02-05 Richard Henderson <rth@redhat.com>
33087 * combine-stack-adj.c: Revert r206943.
33088 * sched-int.h (struct deps_desc): Add last_args_size.
33089 * sched-deps.c (init_deps): Initialize it.
33090 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33091 contain REG_ARGS_SIZE notes.
33093 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33095 * lto-cgraph.c (asm_nodes_output): Make global.
33096 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33097 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33098 (driver_handle_option): Handle OPT_fwpa.
33100 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33103 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33104 a comment typo and formatting issue. If odr_hash hasn't been
33105 created, return vNULL and set *completep to false.
33107 PR middle-end/57499
33108 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33109 bb with no successors.
33111 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33114 * doc/invoke.texi (-march): Clarify documentation for ARM.
33115 (-mtune): Likewise.
33118 2014-02-05 Richard Biener <rguenther@suse.de>
33120 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33121 when not vectorizing because of too many alias checks.
33122 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33123 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33125 2014-02-05 Nick Clifton <nickc@redhat.com>
33127 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33128 accept extended registers in any mode when compiling for the MN10300.
33130 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33132 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33133 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33134 sanitization attributes.
33135 (can_inline_edge_p): Likewise.
33136 (sanitize_attrs_match_for_inline_p): New function.
33138 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33140 * ipa-prop.c (detect_type_change): Shor circuit testing of
33141 type changes on THIS pointer.
33143 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33146 * config/pa/pa.c (legitimize_tls_address): Return original address
33147 if not passed a SYMBOL_REF rtx.
33148 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33150 (pa_emit_move_sequence): Simplify TLS source operands.
33151 (pa_legitimate_constant_p): Reject all TLS constants.
33152 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33153 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33155 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33157 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33158 groups when we know they are controlled by LTO.
33159 * varasm.c (default_binds_local_p_1): If object is in other partition,
33160 it will be resolved locally.
33162 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33164 * config/host-linux.c (linux_gt_pch_use_address): Don't
33165 use SSIZE_MAX because it is not always defined.
33167 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33170 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33171 threshold for pseudo splitting.
33172 (update_ebb_live_info): Process call argument hard registers and
33173 hard registers from insn definition too.
33174 (max_small_class_regs_num): New constant.
33175 (inherit_in_ebb): Update live hard regs through EBBs. Update
33176 reloads_num only for small register classes. Don't split for
33179 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33182 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33185 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33187 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33188 visibility is safe.
33190 2014-02-04 Marek Polacek <polacek@redhat.com>
33192 * gdbinit.in (pel): Define.
33194 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33196 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33199 2014-02-04 Richard Biener <rguenther@suse.de>
33202 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33203 in function context local.
33204 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33205 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33206 similar to LTO_imported_decl_ref.
33208 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33210 PR tree-optimization/60002
33211 * cgraphclones.c (build_function_decl_skip_args): Clear
33212 DECL_LANG_SPECIFIC.
33214 PR tree-optimization/60023
33215 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33216 false to gsi_replace.
33217 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33218 has been in some EH region and vec_stmt could throw, add
33219 vec_stmt into the same EH region.
33220 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33221 has no lhs, ignore it.
33222 * internal-fn.c (expand_MASK_LOAD): Likewise.
33225 * tree-inline.c (copy_forbidden): Fail for
33226 __attribute__((optimize (0))) functions.
33229 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33230 is set, copy one less argument.
33231 (expand_simd_clones): Don't subtract clone_info->inbranch
33232 from simd_clone_struct_alloc argument.
33234 PR rtl-optimization/57915
33235 * recog.c (simplify_while_replacing): If all unary/binary/relational
33236 operation arguments are constant, attempt to simplify those.
33238 PR middle-end/59261
33239 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33240 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33242 2014-02-04 Richard Biener <rguenther@suse.de>
33244 PR tree-optimization/60012
33245 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33246 TBAA disambiguation to all DDRs.
33248 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33251 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33252 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33254 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33257 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33259 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33261 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33262 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33264 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33267 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33268 to figure out targets of polymorphic calls with known decl.
33269 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33270 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33271 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33272 (get_polymorphic_call_info): ... here.
33273 (get_polymorphic_call_info_from_invariant): New function.
33275 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33277 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33278 lookup via vtable pointer; check for type consistency
33279 and turn inconsitent facts into UNREACHABLE.
33280 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33281 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33282 type inconsistent querries; return UNREACHABLE instead.
33284 2014-02-03 Richard Henderson <rth@twiddle.net>
33287 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33288 already processed this node.
33289 (normalize_one_pred_1): Pass along mark_set.
33290 (normalize_one_pred): Create and destroy a pointer_set_t.
33291 (normalize_one_pred_chain): Likewise.
33293 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33295 PR gcov-profile/58602
33296 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33298 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33301 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33302 -fno-devirtualize; try to devirtualize by the knowledge of
33303 virtual table pointer given by aggregate propagation.
33304 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33305 (ipa_print_node_jump_functions): Dump also offset that
33306 is relevant for polymorphic calls.
33307 (determine_known_aggregate_parts): Add arg_type parameter; use it
33308 instead of determining the type from pointer type.
33309 (ipa_compute_jump_functions_for_edge): Update call of
33310 determine_known_aggregate_parts.
33311 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33312 (gimple_get_virt_method_for_binfo): ... here; simplify using
33313 vtable_pointer_value_to_vtable.
33314 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33315 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33316 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33317 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33319 (vtable_pointer_value_to_binfo): ... here.
33320 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33322 2014-02-03 Teresa Johnson <tejohnson@google.com>
33324 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33325 redef of outer loop index variable.
33327 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33331 * doc/extend.texi (Function Attributes): Typo.
33333 2014-02-03 Cong Hou <congh@google.com>
33335 PR tree-optimization/60000
33336 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33337 if the vectorized statement is a store. A store statement can only
33338 appear at the end of pattern statements.
33340 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33342 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33343 (ix86_option_override_internal): Default long double to 64-bit for
33344 32-bit Bionic and to 128-bit for 64-bit Bionic.
33346 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33347 TARGET_LONG_DOUBLE_128 is true.
33348 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33350 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33351 (mlong-double-64): Negate -mlong-double-128.
33352 (mlong-double-128): New option.
33354 * config/i386/i386-c.c (ix86_target_macros): Define
33355 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33357 * doc/invoke.texi: Document -mlong-double-128.
33359 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33361 PR rtl-optimization/60024
33362 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33364 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33366 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33368 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33370 PR rtl-optimization/57662
33371 * sel-sched.c (code_motion_path_driver): Do not mark already not
33372 existing blocks in the visiting bitmap.
33374 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33376 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33377 on the insn being emitted.
33379 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33380 Will Deacon <will.deacon@arm.com>
33382 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33384 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33386 * config/arm/arm-tables.opt: Regenerate.
33388 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33390 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33391 for vector types other than V16QImode.
33392 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33393 define_expand, and call altivec_expand_vec_perm_le when producing
33394 code with little endian element order.
33395 (*altivec_vperm_<mode>_internal): New insn having previous
33396 behavior of altivec_vperm_<mode>.
33397 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33398 altivec_expand_vec_perm_le when producing code with little endian
33400 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33401 behavior of altivec_vperm_<mode>_uns.
33403 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33405 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33406 (altivec_vsumsws): Add handling for -maltivec=be with a little
33408 (altivec_vsumsws_direct): New.
33409 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33410 gen_altivec_vsumsws.
33412 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33414 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33415 vtable_pointer_value_to_binfo): New functions.
33416 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33417 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33419 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33421 * config/nios2/nios2.md (load_got_register): Initialize GOT
33422 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33423 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33425 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33427 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33428 preserverd by passthrough, do not propagate the type.
33430 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33432 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33433 (mips_atomic_assign_expand_fenv): New function.
33434 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33436 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33438 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33439 (__builtin_mips_set_fcsr): Likewise.
33440 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33441 MIPS_USI_FTYPE_VOID.
33442 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33443 (mips16_expand_set_fcsr): Likewise.
33444 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33445 (mips16_set_fcsr_stub): Likewise.
33446 (mips16_get_fcsr_one_only_stub): New class.
33447 (mips16_set_fcsr_one_only_stub): Likewise.
33448 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33449 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33450 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33451 (hard_float): New availability predicate.
33452 (mips_builtins): Add get_fcsr and set_fcsr.
33453 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33454 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33455 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33456 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33457 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33460 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33462 * config/mips/mips.c (mips_one_only_stub): New class.
33463 (mips_need_mips16_rdhwr_p): Replace with...
33464 (mips16_rdhwr_stub): ...this new variable.
33465 (mips16_stub_call_address): New function.
33466 (mips16_rdhwr_one_only_stub): New class.
33467 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33468 (mips_output_mips16_rdhwr): Delete.
33469 (mips_finish_stub): New function.
33470 (mips_code_end): Use it to handle rdhwr stubs.
33472 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33475 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33476 when calculating size of integer atomic types.
33478 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33480 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33482 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33484 PR tree-optimization/60003
33485 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33486 * profile.c (branch_prob): Use gimple_call_builtin_p
33487 to check for BUILT_IN_SETJMP_RECEIVER.
33488 * tree-inline.c (copy_bb): Call notice_special_calls.
33490 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33493 * lra-constraints.c (process_alt_operands): Update reload_sum only
33496 2014-01-31 Richard Henderson <rth@redhat.com>
33498 PR middle-end/60004
33499 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33500 until after else_eh is processed.
33502 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33504 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33505 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33506 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33507 in smmintrin.h, remove them.
33508 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33509 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33510 * config/i386/i386.md (ROUND_SAE): Fix value.
33511 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33512 (const48_operand): New.
33513 * config/i386/subst.md (round), (round_expand): Use
33514 const_4_or_8_to_11_operand.
33515 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33517 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33519 * config/i386/constraints.md (Yk): Swap meaning with k.
33520 * config/i386/i386.md (movhi_internal): Change Yk to k.
33521 (movqi_internal): Ditto.
33522 (*k<logic><mode>): Ditto.
33525 (kandn<mode>): Ditto.
33526 (*<code>hi_1): Ditto.
33527 (*<code>qi_1): Ditto.
33528 (kxnor<mode>): Ditto.
33529 (kortestzhi): Ditto.
33530 (kortestchi): Ditto.
33532 (*one_cmplhi2_1): Ditto.
33533 (*one_cmplqi2_1): Ditto.
33534 * config/i386/sse.md (): Change k to Yk.
33535 (avx512f_load<mode>_mask): Ditto.
33536 (avx512f_blendm<mode>): Ditto.
33537 (avx512f_store<mode>_mask): Ditto.
33538 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33539 (avx512f_storedqu<mode>_mask): Ditto.
33540 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33542 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33543 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33544 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33545 (avx512f_maskcmp<mode>3): Ditto.
33546 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33547 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33548 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33549 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33550 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33551 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33552 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33553 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33554 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33555 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33556 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33557 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33558 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33559 (vec_extract_lo_<mode>_maskm): Ditto.
33560 (vec_extract_hi_<mode>_maskm): Ditto.
33561 (avx512f_vternlog<mode>_mask): Ditto.
33562 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33563 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33564 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33565 (avx512f_<code>v8div16qi2_mask): Ditto.
33566 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33567 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33568 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33569 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33570 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33571 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33572 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33573 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33574 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33575 (avx512cd_maskb_vec_dupv8di): Ditto.
33576 (avx512cd_maskw_vec_dupv16si): Ditto.
33577 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33578 (avx512f_vpermi2var<mode>3_mask): Ditto.
33579 (avx512f_vpermi2var<mode>3_mask): Ditto.
33580 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33581 (*avx512f_gathersi<mode>): Ditto.
33582 (*avx512f_gathersi<mode>_2): Ditto.
33583 (*avx512f_gatherdi<mode>): Ditto.
33584 (*avx512f_gatherdi<mode>_2): Ditto.
33585 (*avx512f_scattersi<mode>): Ditto.
33586 (*avx512f_scatterdi<mode>): Ditto.
33587 (avx512f_compress<mode>_mask): Ditto.
33588 (avx512f_compressstore<mode>_mask): Ditto.
33589 (avx512f_expand<mode>_mask): Ditto.
33590 * config/i386/subst.md (mask): Change k to Yk.
33591 (mask_scalar_merge): Ditto.
33594 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33596 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33598 2014-01-31 Richard Biener <rguenther@suse.de>
33600 PR middle-end/59990
33601 * builtins.c (fold_builtin_memory_op): Make sure to not
33602 use a floating-point mode or a boolean or enumeral type for
33603 the copy operation.
33605 2014-01-30 DJ Delorie <dj@redhat.com>
33607 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33608 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33609 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33610 whenever main() has an epilogue.
33612 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33614 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33615 unused variable "field".
33616 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33617 (vsx_mergeh_<mode>): Likewise.
33618 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33619 (altivec_vmrghh): Likewise.
33620 (altivec_vmrghw): Likewise.
33621 (altivec_vmrglb): Likewise.
33622 (altivec_vmrglh): Likewise.
33623 (altivec_vmrglw): Likewise.
33624 (altivec_vspltb): Add missing uses.
33625 (altivec_vsplth): Likewise.
33626 (altivec_vspltw): Likewise.
33627 (altivec_vspltsf): Likewise.
33629 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33632 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33633 frame related instructions.
33635 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33637 PR rtl-optimization/59959
33638 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33639 any reload of register whose subreg is invalid.
33641 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33643 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33644 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33645 Add missing return type - void.
33647 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33649 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33650 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33651 remove element index adjustment for endian (now handled in vsx.md
33653 (altivec_expand_vec_perm_const): Use
33654 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33655 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33656 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33657 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33658 define_expand and a new define_insn *altivec_vspltb_internal;
33659 adjust for -maltivec=be on a little endian target.
33660 (altivec_vspltb_direct): New.
33661 (altivec_vsplth): Divide into a define_expand and a new
33662 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33663 little endian target.
33664 (altivec_vsplth_direct): New.
33665 (altivec_vspltw): Divide into a define_expand and a new
33666 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33667 little endian target.
33668 (altivec_vspltw_direct): New.
33669 (altivec_vspltsf): Divide into a define_expand and a new
33670 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33671 a little endian target.
33673 2014-01-30 Richard Biener <rguenther@suse.de>
33675 PR tree-optimization/59993
33676 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33677 can propagate form the earlier stmt and avoid the transform
33678 when the intermediate result is needed.
33680 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33682 * README.Portability: Fix typo.
33684 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33686 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33687 comparison_operator with ordered_comparison_operator.
33689 2014-01-30 Nick Clifton <nickc@redhat.com>
33691 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33692 Rename to mn10300_store_multiple_regs.
33693 * config/mn10300/mn10300.c: Likewise.
33694 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33695 store_multiple_regs.
33696 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33697 Call mn10300_store_multiple_regs.
33699 2014-01-30 Nick Clifton <nickc@redhat.com>
33700 DJ Delorie <dj@redhat.com>
33702 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33703 %fp 2 to keep registers after it properly word-aligned.
33704 (rl78_alloc_physical_registers_umul): Handle the case where both
33705 input operands are the same.
33707 2014-01-30 Richard Biener <rguenther@suse.de>
33709 PR tree-optimization/59903
33710 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33713 2014-01-30 Jason Merrill <jason@redhat.com>
33716 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33719 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33721 2014-01-30 Richard Biener <rguenther@suse.de>
33723 PR tree-optimization/59951
33724 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33726 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33729 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33730 SFmode to DFmode case.
33732 2014-01-29 DJ Delorie <dj@redhat.com>
33734 * config/msp430/msp430.opt (-minrt): New.
33735 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33737 (ENDFILE_SPEC): Likewise.
33739 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33741 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33742 (estimate_function_body_sizes): Use it.
33744 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33747 * dwarf2out.c (is_cxx_auto): New.
33748 (is_base_type): Use it.
33749 (gen_type_die_with_usage): Likewise.
33751 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33753 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33754 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33755 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33756 -maltivec=be with LE targets.
33757 (vsx_mergeh_<mode>): Likewise.
33758 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33759 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33760 (altivec_vmrghb): Replace with define_expand and new
33761 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33762 (altivec_vmrghb_direct): New define_insn.
33763 (altivec_vmrghh): Replace with define_expand and new
33764 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33765 (altivec_vmrghh_direct): New define_insn.
33766 (altivec_vmrghw): Replace with define_expand and new
33767 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33768 (altivec_vmrghw_direct): New define_insn.
33769 (*altivec_vmrghsf): Adjust for endianness.
33770 (altivec_vmrglb): Replace with define_expand and new
33771 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33772 (altivec_vmrglb_direct): New define_insn.
33773 (altivec_vmrglh): Replace with define_expand and new
33774 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33775 (altivec_vmrglh_direct): New define_insn.
33776 (altivec_vmrglw): Replace with define_expand and new
33777 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33778 (altivec_vmrglw_direct): New define_insn.
33779 (*altivec_vmrglsf): Adjust for endianness.
33780 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33781 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33782 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33783 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33784 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33785 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33786 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33787 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33789 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33791 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33792 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33795 2014-01-29 Richard Biener <rguenther@suse.de>
33797 PR tree-optimization/58742
33798 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33799 associate_pointerplus_align.
33800 (associate_pointerplus_diff): New function.
33801 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33802 and associate_pointerplus_diff.
33804 2014-01-29 Richard Biener <rguenther@suse.de>
33806 * lto-streamer.h (LTO_major_version): Bump to 3.
33807 (LTO_minor_version): Reset to 0.
33809 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33811 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33812 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33813 (arm_file_start): Generate correct asm header for armv7ve.
33814 * config/arm/bpabi.h: Add multilib support for armv7ve.
33815 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33816 and cortex-a15 to armv7ve.
33817 * config/arm/t-aprofile: Add multilib support for armv7ve.
33818 * doc/invoke.texi: Document -march=armv7ve.
33820 2014-01-29 Richard Biener <rguenther@suse.de>
33822 PR tree-optimization/58742
33823 * tree-ssa-forwprop.c (associate_plusminus): Return true
33824 if we changed sth, defer EH cleanup to ...
33825 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33826 (simplify_mult): New function.
33828 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33830 PR middle-end/59917
33831 PR tree-optimization/59920
33832 * tree.c (build_common_builtin_nodes): Remove
33833 __builtin_setjmp_dispatcher initialization.
33834 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33835 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33836 instead of gsi_after_labels + manually skipping debug stmts.
33837 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33838 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33839 * tree-inline.c (copy_edges_for_bb): Remove
33840 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33841 argument. Ignore computed_goto_p stmts. Don't call
33842 make_abnormal_goto_edges. If a call might need abnormal edges
33843 for non-local gotos, see if it already has an edge to
33844 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33845 with true argument, don't do anything then, otherwise add
33846 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33847 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33849 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33850 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33851 (lower_stmt): Don't set data->calls_builtin_setjmp.
33852 (lower_builtin_setjmp): Adjust comment.
33853 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33854 * tree-cfg.c (found_computed_goto): Remove.
33855 (factor_computed_gotos): Remove.
33856 (make_goto_expr_edges): Return bool, true for computed gotos.
33857 Don't call make_abnormal_goto_edges.
33858 (build_gimple_cfg): Don't set found_computed_goto, don't call
33859 factor_computed_gotos.
33860 (computed_goto_p): No longer static.
33861 (make_blocks): Don't set found_computed_goto.
33862 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33863 (make_edges): If make_goto_expr_edges returns true, push bb
33864 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33865 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33866 vector. Record mapping between bbs and OpenMP regions if there
33867 are any, adjust make_gimple_omp_edges caller. Call
33868 handle_abnormal_edges.
33869 (make_abnormal_goto_edges): Remove.
33870 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33871 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33872 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33873 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33874 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33875 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33876 filling *region also set *region_idx to (*region)->entry->index.
33879 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33880 For REGs set ORIGINAL_REGNO.
33882 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33884 * doc/md.texi: Mention that a target shouldn't implement
33885 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33888 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33890 PR tree-optimization/59594
33891 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33892 a copy of the datarefs vector rather than the vector itself.
33894 2014-01-28 Jason Merrill <jason@redhat.com>
33897 * dwarf2out.c (auto_die): New static.
33898 (gen_type_die_with_usage): Handle C++1y 'auto'.
33899 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33902 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33905 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33906 (SPEC_X32): Likewise.
33907 (SPEC_64): Likewise.
33908 * config/i386/i386.c (ix86_option_override_internal): Turn off
33909 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33911 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33912 * config/i386/i386.h (TARGET_16BIT): New macro.
33913 (TARGET_16BIT_P): Likewise.
33914 * config/i386/i386.opt: Add m16.
33915 * doc/invoke.texi: Document -m16.
33917 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33919 PR preprocessor/59935
33920 * input.c (location_get_source_line): Bail out on when line number
33921 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33923 2014-01-28 Richard Biener <rguenther@suse.de>
33925 PR tree-optimization/58742
33926 * tree-ssa-forwprop.c (associate_plusminus): Handle
33927 pointer subtraction of the form (T)(P + A) - (T)P.
33929 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33931 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33934 2014-01-28 Richard Biener <rguenther@suse.de>
33937 2014-01-28 Richard Biener <rguenther@suse.de>
33939 PR rtl-optimization/45364
33940 PR rtl-optimization/59890
33941 * var-tracking.c (local_get_addr_clear_given_value): Handle
33942 already cleared slot.
33943 (val_reset): Handle not allocated local_get_addr_cache.
33944 (vt_find_locations): Use post-order on the inverted CFG.
33946 2014-01-28 Richard Biener <rguenther@suse.de>
33948 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33950 2014-01-28 Richard Biener <rguenther@suse.de>
33952 PR rtl-optimization/45364
33953 PR rtl-optimization/59890
33954 * var-tracking.c (local_get_addr_clear_given_value): Handle
33955 already cleared slot.
33956 (val_reset): Handle not allocated local_get_addr_cache.
33957 (vt_find_locations): Use post-order on the inverted CFG.
33959 2014-01-28 Alan Modra <amodra@gmail.com>
33961 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33962 * configure.ac <recursive call for build != host>: Define
33963 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33964 and LD_FOR_BUILD too.
33965 * configure: Regenerate.
33967 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33969 * config/i386/i386.c (get_builtin_code_for_version): Separate
33970 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33971 Broadwell from Haswell.
33973 2014-01-27 Steve Ellcey <sellcey@mips.com>
33975 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33976 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33977 * config/mips/mips.c (mips_option_override): Change setting
33979 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33980 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33981 Change from Mask to Var.
33983 2014-01-27 Jeff Law <law@redhat.com>
33985 * ipa-inline.c (inline_small_functions): Fix typo.
33987 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33989 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33990 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33991 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33992 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33993 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33994 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33995 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33996 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33997 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33998 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33999 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34000 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34001 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34002 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34003 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34004 (_mm512_storeu_epi64): Ditto.
34005 (_mm512_cmpge_epi32_mask): Ditto.
34006 (_mm512_cmpge_epu32_mask): Ditto.
34007 (_mm512_cmpge_epi64_mask): Ditto.
34008 (_mm512_cmpge_epu64_mask): Ditto.
34009 (_mm512_cmple_epi32_mask): Ditto.
34010 (_mm512_cmple_epu32_mask): Ditto.
34011 (_mm512_cmple_epi64_mask): Ditto.
34012 (_mm512_cmple_epu64_mask): Ditto.
34013 (_mm512_cmplt_epi32_mask): Ditto.
34014 (_mm512_cmplt_epu32_mask): Ditto.
34015 (_mm512_cmplt_epi64_mask): Ditto.
34016 (_mm512_cmplt_epu64_mask): Ditto.
34017 (_mm512_cmpneq_epi32_mask): Ditto.
34018 (_mm512_cmpneq_epu32_mask): Ditto.
34019 (_mm512_cmpneq_epi64_mask): Ditto.
34020 (_mm512_cmpneq_epu64_mask): Ditto.
34021 (_mm512_expand_pd): Ditto.
34022 (_mm512_expand_ps): Ditto.
34023 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34024 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34025 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34026 * config/i386/i386.c (ix86_builtins): Add
34027 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34028 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34029 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34030 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34031 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34032 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34033 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34034 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34035 IX86_BUILTIN_PMOVUSQW512_MEM.
34036 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34037 __builtin_ia32_pmovsqd512mem_mask,
34038 __builtin_ia32_pmovqd512mem_mask,
34039 __builtin_ia32_pmovusqw512mem_mask,
34040 __builtin_ia32_pmovsqw512mem_mask,
34041 __builtin_ia32_pmovqw512mem_mask,
34042 __builtin_ia32_pmovusdw512mem_mask,
34043 __builtin_ia32_pmovsdw512mem_mask,
34044 __builtin_ia32_pmovdw512mem_mask,
34045 __builtin_ia32_pmovqb512mem_mask,
34046 __builtin_ia32_pmovusqb512mem_mask,
34047 __builtin_ia32_pmovsqb512mem_mask,
34048 __builtin_ia32_pmovusdb512mem_mask,
34049 __builtin_ia32_pmovsdb512mem_mask,
34050 __builtin_ia32_pmovdb512mem_mask.
34051 (bdesc_args): Add __builtin_ia32_expanddf512,
34052 __builtin_ia32_expandsf512.
34053 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34054 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34055 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34056 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34057 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34058 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34059 (avx512f_<code>v8div16qi2_mask_store): This.
34060 (avx512f_expand<mode>): New.
34062 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34064 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34066 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34067 (_mm512_prefetch_i32scatter_pd): Ditto.
34068 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34069 (_mm512_prefetch_i64scatter_pd): Ditto.
34070 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34071 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34072 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34073 (_mm512_prefetch_i32scatter_ps): Ditto.
34074 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34075 (_mm512_prefetch_i64scatter_ps): Ditto.
34076 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34077 * config/i386/i386-builtin-types.def: Define
34078 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34079 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34080 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34081 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34082 IX86_BUILTIN_SCATTERPFQPD.
34083 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34084 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34085 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34086 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34087 __builtin_ia32_scatterpfqps.
34088 (ix86_expand_builtin): Expand new built-ins.
34089 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34090 fix memory access data type.
34091 (*avx512pf_gatherpf<mode>_mask): Ditto.
34092 (*avx512pf_gatherpf<mode>): Ditto.
34093 (avx512pf_scatterpf<mode>): Ditto.
34094 (*avx512pf_scatterpf<mode>_mask): Ditto.
34095 (*avx512pf_scatterpf<mode>): Ditto.
34096 (GATHER_SCATTER_SF_MEM_MODE): New.
34097 (avx512pf_gatherpf<mode>df): Ditto.
34098 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34099 (*avx512pf_scatterpf<mode>df): Ditto.
34101 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34104 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34105 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34108 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34110 * common/config/arm/arm-common.c
34111 (arm_rewrite_mcpu): Handle multiple names.
34113 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34115 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34117 * gimple-builder.h (create_gimple_tmp): Delete.
34119 2014-01-27 Christian Bruel <christian.bruel@st.com>
34121 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34124 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34126 * config/pa/pa.md (call): Generate indirect long calls to non-local
34127 functions when outputing 32-bit code.
34128 (call_value): Likewise except for special call to buggy powf function.
34130 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34131 portable runtime and PIC indirect calls.
34132 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34133 and PIC call sequences. Use ldo instead of blr to set return register
34134 in PIC call sequence.
34136 2014-01-25 Walter Lee <walt@tilera.com>
34138 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34139 avoid clobbering a live register.
34141 2014-01-25 Walter Lee <walt@tilera.com>
34143 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34144 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34145 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34146 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34148 2014-01-25 Walter Lee <walt@tilera.com>
34150 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34151 arguments on even registers.
34152 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34154 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34155 (BIGGEST_ALIGNMENT): Ditto.
34156 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34158 2014-01-25 Walter Lee <walt@tilera.com>
34160 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34161 insns before bundling.
34162 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34164 2014-01-25 Walter Lee <walt@tilera.com>
34166 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34167 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34168 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34170 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34172 * config/mips/constraints.md (kl): Delete.
34173 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34174 define expands, using...
34175 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34176 instructions for MIPS16.
34177 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34178 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34180 2014-01-25 Walter Lee <walt@tilera.com>
34182 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34186 2014-01-25 Walter Lee <walt@tilera.com>
34188 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34189 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34191 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34193 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34196 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34198 * print-rtl.c (in_call_function_usage): New var.
34199 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34200 EXPR_LIST mode as mode and not as reg note name.
34202 PR middle-end/59561
34203 * cfgloopmanip.c (copy_loop_info): If
34204 loop->warned_aggressive_loop_optimizations, make sure
34205 the flag is set in target loop too.
34207 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34209 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34211 * builtins.def: Likewise.
34212 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34213 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34214 * ira.c (ira_setup_eliminable_regset): Likewise.
34215 * omp-low.c (gate_expand_omp): Likewise.
34216 (execute_lower_omp): Likewise.
34217 (diagnose_sb_0): Likewise.
34218 (gate_diagnose_omp_blocks): Likewise.
34219 (simd_clone_clauses_extract): Likewise.
34222 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34224 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34225 correction for little endian...
34226 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34229 2014-01-24 Jeff Law <law@redhat.com>
34231 PR tree-optimization/59919
34232 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34233 for non-returning calls.
34235 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34237 * common/config/aarch64/aarch64-common.c
34238 (aarch64_rewrite_mcpu): Handle multiple names.
34239 * config/aarch64/aarch64.h
34240 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34242 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34244 * input.c (add_file_to_cache_tab): Handle the case where fopen
34247 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34250 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34251 from push operand if code of push isn't PRE_DEC.
34253 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34256 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34257 -mquad-memory-atomic. Update -mquad-memory documentation to say
34258 it is only used for non-atomic loads/stores.
34260 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34261 -mquad-memory or -mquad-memory-atomic switches.
34263 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34264 -mquad-memory-atomic to ISA 2.07 support.
34266 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34267 to separate support of normal quad word memory operations (ldq, stq)
34268 from the atomic quad word memory operations.
34270 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34271 support to separate non-atomic quad word operations from atomic
34272 quad word operations. Disable non-atomic quad word operations in
34273 little endian mode so that we don't have to swap words after the
34274 load and before the store.
34275 (quad_load_store_p): Add comment about atomic quad word support.
34276 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34277 options printed with -mdebug=reg.
34279 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34280 -mquad-memory-atomic as the test for whether we have quad word
34281 atomic instructions.
34282 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34283 or -mp8-vector are used, allow byte/half-word atomic operations.
34285 * config/rs6000/sync.md (load_lockedti): Insure that the address
34286 is a proper indexed or indirect address for the lqarx instruction.
34287 On little endian systems, swap the hi/lo registers after the lqarx
34289 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34290 insure the address is valid for the lqarx instruction.
34291 (store_conditionalti): Insure that the address is a proper indexed
34292 or indirect address for the stqcrx. instruction. On little endian
34293 systems, swap the hi/lo registers before doing the stqcrx.
34295 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34296 insure the address is valid for the stqcrx. instruction.
34298 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34299 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34300 type of quad memory support is available.
34302 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34304 PR regression/59915
34305 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34306 there is a danger of looping.
34308 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34310 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34311 force flag_ira_loop_pressure if set via command line.
34313 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34315 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34316 (ashr_simd): New builtin handling DI mode.
34317 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34318 (aarch64_sshr_simddi): New match pattern.
34319 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34320 (vshrd_n_s64): Likewise.
34321 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34323 2014-01-23 Nick Clifton <nickc@redhat.com>
34325 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34326 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34327 favour of mcu specific scripts.
34328 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34331 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34332 Alex Velenko <Alex.Velenko@arm.com>
34334 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34335 (vaddv_s16): Likewise.
34336 (vaddv_s32): Likewise.
34337 (vaddv_u8): Likewise.
34338 (vaddv_u16): Likewise.
34339 (vaddv_u32): Likewise.
34340 (vaddvq_s8): Likewise.
34341 (vaddvq_s16): Likewise.
34342 (vaddvq_s32): Likewise.
34343 (vaddvq_s64): Likewise.
34344 (vaddvq_u8): Likewise.
34345 (vaddvq_u16): Likewise.
34346 (vaddvq_u32): Likewise.
34347 (vaddvq_u64): Likewise.
34348 (vaddv_f32): Likewise.
34349 (vaddvq_f32): Likewise.
34350 (vaddvq_f64): Likewise.
34351 (vmaxv_f32): Likewise.
34352 (vmaxv_s8): Likewise.
34353 (vmaxv_s16): Likewise.
34354 (vmaxv_s32): Likewise.
34355 (vmaxv_u8): Likewise.
34356 (vmaxv_u16): Likewise.
34357 (vmaxv_u32): Likewise.
34358 (vmaxvq_f32): Likewise.
34359 (vmaxvq_f64): Likewise.
34360 (vmaxvq_s8): Likewise.
34361 (vmaxvq_s16): Likewise.
34362 (vmaxvq_s32): Likewise.
34363 (vmaxvq_u8): Likewise.
34364 (vmaxvq_u16): Likewise.
34365 (vmaxvq_u32): Likewise.
34366 (vmaxnmv_f32): Likewise.
34367 (vmaxnmvq_f32): Likewise.
34368 (vmaxnmvq_f64): Likewise.
34369 (vminv_f32): Likewise.
34370 (vminv_s8): Likewise.
34371 (vminv_s16): Likewise.
34372 (vminv_s32): Likewise.
34373 (vminv_u8): Likewise.
34374 (vminv_u16): Likewise.
34375 (vminv_u32): Likewise.
34376 (vminvq_f32): Likewise.
34377 (vminvq_f64): Likewise.
34378 (vminvq_s8): Likewise.
34379 (vminvq_s16): Likewise.
34380 (vminvq_s32): Likewise.
34381 (vminvq_u8): Likewise.
34382 (vminvq_u16): Likewise.
34383 (vminvq_u32): Likewise.
34384 (vminnmv_f32): Likewise.
34385 (vminnmvq_f32): Likewise.
34386 (vminnmvq_f64): Likewise.
34388 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34390 * config/aarch64/aarch64-simd.md
34391 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34392 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34393 (*aarch64_mul3_elt<mode>): Likewise.
34394 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34395 (*aarch64_mul3_elt_to_64v2df): Likewise.
34396 (*aarch64_mla_elt<mode>): Likewise.
34397 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34398 (*aarch64_mls_elt<mode>): Likewise.
34399 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34400 (*aarch64_fma4_elt<mode>): Likewise.
34401 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34402 (*aarch64_fma4_elt_to_64v2df): Likewise.
34403 (*aarch64_fnma4_elt<mode>): Likewise.
34404 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34405 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34406 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34407 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34408 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34409 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34410 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34411 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34412 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34414 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34416 * config/aarch64/aarch64-simd.md
34417 (aarch64_be_checked_get_lane<mode>): New define_expand.
34418 * config/aarch64/aarch64-simd-builtins.def
34419 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34420 New builtin definition.
34421 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34422 Use new safe be builtin.
34424 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34426 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34428 (aarch64_be_st1<mode>): Likewise.
34429 (aarch_ld1<VALL:mode>): Define_expand modified.
34430 (aarch_st1<VALL:mode>): Likewise.
34431 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34432 (UNSPEC_ST1): Likewise.
34434 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34436 * config/microblaze/microblaze.md: Add trap insn and attribute
34438 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34440 PR preprocessor/58580
34441 * input.h (location_get_source_line): Take an additional line_size
34443 (void diagnostics_file_cache_fini): Declare new function.
34444 * input.c (struct fcache): New type.
34445 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34446 New static constants.
34447 (diagnostic_file_cache_init, total_lines_num)
34448 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34449 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34450 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34451 (get_next_line, read_next_line, goto_next_line, read_line_num):
34452 New static function definitions.
34453 (diagnostic_file_cache_fini): New function.
34454 (location_get_source_line): Take an additional output line_len
34455 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34457 * diagnostic.c (diagnostic_finish): Call
34458 diagnostic_file_cache_fini.
34459 (adjust_line): Take an additional input parameter for the length
34460 of the line, rather than calculating it with strlen.
34461 (diagnostic_show_locus): Adjust the use of
34462 location_get_source_line and adjust_line with respect to their new
34463 signature. While displaying a line now, do not stop at the first
34464 null byte. Rather, display the zero byte as a space and keep
34465 going until we reach the size of the line.
34466 * Makefile.in: Add vec.o to OBJS-libcommon
34468 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34469 Ilya Tocar <ilya.tocar@intel.com>
34471 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34472 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34473 (__builtin_ia32_kmov16): Ditto.
34474 * config/i386/i386.md (UNSPEC_KMOV): New.
34477 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34479 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34480 (_mm512_storeu_si512): Ditto.
34482 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34485 * rtl.h (get_referenced_operands): Declare.
34486 * recog.c (get_referenced_operands): New function.
34487 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34488 operands have been referenced when recording LO_SUM references.
34490 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34492 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34494 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34496 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34497 Enable for generic and recent AMD targets.
34499 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34501 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34502 ARG_SIZE note when adjustment was eliminated.
34504 2014-01-22 Jeff Law <law@redhat.com>
34506 PR tree-optimization/59597
34507 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34508 in file. Accept new argument REGISTERING and use it to modify
34509 dump output appropriately.
34510 (register_jump_thread): Corresponding changes.
34511 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34512 thread paths involving joiner blocks. Add code to dump cancelled
34513 jump threading paths.
34515 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34517 PR rtl-optimization/59477
34518 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34519 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34521 2014-01-22 Tom Tromey <tromey@redhat.com>
34523 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34525 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34527 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34529 PR rtl-optimization/59896
34530 * lra-constraints.c (process_alt_operands): Check unused note for
34531 matched operands of insn with no output reloads.
34533 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34535 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34536 (mips_move_from_gpr_cost): Likewise.
34538 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34540 PR rtl-optimization/59858
34541 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34542 ira_class_hard_regs_num.
34543 (process_alt_operands): Increase reject for dying matched operand.
34545 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34548 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34549 smaller than size, perform several stores or loads and stores
34550 at dst + count - size to store or copy all of size bytes, rather
34551 than just last modesize bytes.
34553 2014-01-20 DJ Delorie <dj@redhat.com>
34555 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34556 that CLOBBERs are REGs before propogating their values.
34558 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34560 PR middle-end/59789
34561 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34562 (cgraph_inline_failed_type): New function.
34563 * cgraph.h (DEFCIFCODE): Add type.
34564 (cgraph_inline_failed_type_t): New enum.
34565 (cgraph_inline_failed_type): New prototype.
34566 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34567 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34568 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34569 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34570 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34571 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34572 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34573 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34574 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34575 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34576 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34577 OPTIMIZATION_MISMATCH.
34578 * tree-inline.c (expand_call_inline): Emit errors during
34579 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34581 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34584 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34585 mode attribute in insn output.
34587 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34589 * output.h (output_constant): Delete.
34590 * varasm.c (output_constant): Make private.
34592 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34594 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34596 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34598 PR middle-end/59860
34599 * tree.h (fold_builtin_strcat): New prototype.
34600 * builtins.c (fold_builtin_strcat): No longer static. Add len
34601 argument, if non-NULL, don't call c_strlen. Optimize
34602 directly into __builtin_memcpy instead of __builtin_strcpy.
34603 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34604 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34606 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34608 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34609 for SImode_address_operand operands, having only a REG argument.
34611 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34613 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34614 loader name using mbig-endian.
34615 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34617 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34619 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34620 (-mtune): Likewise.
34623 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34625 * config/aarch64/aarch64-protos.h
34626 (aarch64_cannot_change_mode_class_ptr): Declare.
34627 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34628 aarch64_cannot_change_mode_class_ptr): New.
34629 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34630 backend hook aarch64_cannot_change_mode_class.
34632 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34634 * common/config/aarch64/aarch64-common.c
34635 (aarch64_handle_option): Don't handle any option order logic here.
34636 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34637 selected_cpu, warn on architecture version mismatch.
34638 (aarch64_override_options): Fix parsing order for option strings.
34640 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34641 Iain Sandoe <iain@codesourcery.com>
34644 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34645 warning. Amend comment to reflect current functionality.
34647 2014-01-20 Richard Biener <rguenther@suse.de>
34649 PR middle-end/59860
34650 * builtins.c (fold_builtin_strcat): Remove case better handled
34651 by tree-ssa-strlen.c.
34653 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34655 * config/aarch64/aarch64.opt
34656 (mcpu, march, mtune): Make case-insensitive.
34658 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34661 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34662 if operands[1] is a REG or ZERO_EXTEND of a REG.
34664 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34666 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34668 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34670 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34671 long non-pic millicode calls.
34673 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34675 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34677 2014-01-19 Kito Cheng <kito@0xlab.org>
34679 * builtins.c (expand_movstr): Check movstr expand done or fail.
34681 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34682 H.J. Lu <hongjiu.lu@intel.com>
34685 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34686 to DImode for zero-extended addresses.
34688 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34690 PR rtl-optimization/57763
34691 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34692 on the new indirect jump_insn and increment LABEL_NUSES (label).
34694 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34698 * config.gcc (x86_archs): New variable.
34699 (x86_64_archs): Likewise.
34700 (x86_cpus): Likewise.
34701 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34702 --with-arch/--with-cpu= options.
34703 Support --with-arch=/--with-cpu={nehalem,westmere,
34704 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34706 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34708 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34709 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34711 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34713 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34715 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34718 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34719 clear cpp_get_options (parse_in)->warn_unused_macros for
34720 ix86_target_macros_internal with cpp_define.
34722 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34724 * jump.c (delete_related_insns): Keep (use (insn))s.
34725 * reorg.c (redundant_insn): Check for barriers too.
34727 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34729 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34731 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34733 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34734 call to $$dyncall when TARGET_LONG_CALLS is true.
34736 2014-01-17 Jeff Law <law@redhat.com>
34738 * ree.c (combine_set_extension): Temporarily disable test for
34739 changing number of hard registers.
34741 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34743 PR middle-end/58125
34744 * ipa-inline-analysis.c (inline_free_summary):
34745 Do not free summary of aliases.
34747 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34749 PR middle-end/59706
34750 * gimplify.c (gimplify_expr): Use create_tmp_var
34751 instead of create_tmp_var_raw. If cond doesn't have
34752 integral type, don't add the IFN_ANNOTATE builtin at all.
34754 2014-01-17 Martin Jambor <mjambor@suse.cz>
34757 * ipa-cp.c (prev_edge_clone): New variable.
34758 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34759 Also resize prev_edge_clone vector.
34760 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34761 (ipcp_edge_removal_hook): New function.
34762 (ipcp_driver): Register ipcp_edge_removal_hook.
34764 2014-01-17 Andrew Pinski <apinski@cavium.com>
34765 Steve Ellcey <sellcey@mips.com>
34768 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34771 2014-01-17 Jeff Law <law@redhat.com>
34773 PR middle-end/57904
34774 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34775 so that pass_ccp runs first.
34777 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34779 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34780 (ix86_adjust_cost): Use !TARGET_XXX.
34781 (do_reorder_for_imul): Likewise.
34782 (swap_top_of_ready_list): Likewise.
34783 (ix86_sched_reorder): Likewise.
34785 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34787 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34788 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34789 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34790 (intel_memset): New. Duplicate slm_memset.
34791 (intel_cost): New. Duplicate slm_cost.
34792 (m_INTEL): New macro.
34793 (processor_target_table): Add "intel".
34794 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34795 with PROCESSOR_INTEL for "intel".
34796 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34797 PROCESSOR_SILVERMONT.
34798 (ix86_issue_rate): Likewise.
34799 (ix86_adjust_cost): Likewise.
34800 (ia32_multipass_dfa_lookahead): Likewise.
34801 (swap_top_of_ready_list): Likewise.
34802 (ix86_sched_reorder): Likewise.
34803 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34804 instead of TARGET_OPT_AGU.
34805 * config/i386/i386.h (TARGET_INTEL): New.
34806 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34807 (processor_type): Add PROCESSOR_INTEL.
34808 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34809 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34811 2014-01-17 Marek Polacek <polacek@redhat.com>
34814 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34817 2014-01-17 Richard Biener <rguenther@suse.de>
34819 PR tree-optimization/46590
34820 * opts.c (default_options_table): Add entries for
34821 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34822 all enabled at -O1 but not for -Og.
34823 * common.opt (fbranch-count-reg): Remove Init(1).
34824 (fmove-loop-invariants): Likewise.
34825 (ftree-pta): Likewise.
34827 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34829 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34830 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34831 decls to at least the GCC 4.8 used alignments.
34834 * tree-nested.c (convert_nonlocal_reference_stmt,
34835 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34836 of GIMPLE_BIND stmts, adjust associated decls.
34838 2014-01-17 Richard Biener <rguenther@suse.de>
34840 PR tree-optimization/46590
34841 * vec.h (vec<>::bseach): New member function implementing
34842 binary search according to C89 bsearch.
34843 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34844 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34845 bitmap pointer again. Make accesses_in_loop a flat array.
34846 (mem_ref_obstack): New global.
34847 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34848 (mark_ref_stored): Likewise.
34849 (ref_indep_loop_p_2): Likewise.
34850 (set_ref_stored_in_loop): New helper function.
34851 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34852 (memref_free): Adjust.
34853 (record_mem_ref_loc): Simplify.
34854 (gather_mem_refs_stmt): Adjust.
34855 (sort_locs_in_loop_postorder_cmp): New function.
34856 (analyze_memory_references): Sort accesses_in_loop after
34857 loop postorder number.
34858 (find_ref_loc_in_loop_cmp): New function.
34859 (for_all_locs_in_loop): Find relevant cluster of locs in
34860 accesses_in_loop and iterate without recursion.
34861 (execute_sm): Avoid uninit warning.
34862 (struct ref_always_accessed): Simplify.
34863 (ref_always_accessed::operator ()): Likewise.
34864 (ref_always_accessed_p): Likewise.
34865 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34866 loop postorder numbers here.
34867 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34870 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34873 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34874 on decls for which assemble_alias has been called.
34876 2014-01-17 Nick Clifton <nickc@redhat.com>
34878 * config/msp430/msp430.opt: (mcpu): New option.
34879 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34880 (msp430_option_override): Parse target_cpu. If the MCU name
34881 matches a generic string, clear target_mcu.
34882 (msp430_attr): Allow numeric interrupt values up to 63.
34883 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34884 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34886 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34888 * config/msp430/msp430.md (popm): Use %J rather than %I.
34889 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34890 (addhi_cy_i): Use immediate_operand for operand 2.
34891 * doc/invoke.texi: Document -mcpu option.
34893 2014-01-17 Richard Biener <rguenther@suse.de>
34895 PR rtl-optimization/38518
34896 * df.h (df_analyze_loop): Declare.
34897 * df-core.c: Include cfgloop.h.
34898 (df_analyze_1): Split out main part of df_analyze.
34899 (df_analyze): Adjust.
34900 (loop_inverted_post_order_compute): New function.
34901 (loop_post_order_compute): Likewise.
34902 (df_analyze_loop): New function avoiding whole-function
34903 postorder computes.
34904 * loop-invariant.c (find_defs): Use df_analyze_loop.
34905 (find_invariants): Adjust.
34906 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34908 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34910 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34911 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34913 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34915 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34916 traversal when removing references.
34918 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34921 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34923 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34925 PR middle-end/56791
34926 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34927 pushing a reload for an autoinc when we had previously reloaded an
34928 inner part of the address.
34930 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34932 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34934 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34935 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34936 when not giving up or versioning for alias only because of
34938 (vect_analyze_data_ref_dependences): Set to true.
34939 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34941 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34942 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34945 PR middle-end/58344
34946 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34949 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34950 operand 0 predicate for gathers, use a new pseudo as subtarget.
34952 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34954 PR middle-end/59609
34955 * lra-constraints.c (process_alt_operands): Add printing debug info.
34956 Check absence of input/output reloads for matched operands too.
34958 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34960 PR rtl-optimization/59835
34961 * ira.c (ira_init_register_move_cost): Increase cost for
34964 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34966 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34968 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34971 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34972 non-register objects. Use gen_(high/low)part more consistently.
34975 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34978 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34979 endian support, remove tests for WORDS_BIG_ENDIAN.
34980 (p8_mfvsrd_3_<mode>): Likewise.
34981 (reload_gpr_from_vsx<mode>): Likewise.
34982 (reload_gpr_from_vsxsf): Likewise.
34983 (p8_mfvsrd_4_disf): Likewise.
34985 2014-01-16 Richard Biener <rguenther@suse.de>
34987 PR rtl-optimization/46590
34988 * lcm.c (compute_antinout_edge): Use postorder iteration.
34989 (compute_laterin): Use inverted postorder iteration.
34991 2014-01-16 Nick Clifton <nickc@redhat.com>
34993 PR middle-end/28865
34994 * varasm.c (output_constant): Return the number of bytes actually
34996 (output_constructor_array_range): Update the field size with the
34997 number of bytes emitted by output_constant.
34998 (output_constructor_regular_field): Likewise. Also do not
34999 complain if the total number of bytes emitted is now greater
35000 than the expected fieldpos.
35001 * output.h (output_constant): Update prototype and descriptive comment.
35003 2014-01-16 Marek Polacek <polacek@redhat.com>
35005 PR middle-end/59827
35006 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35007 it is error_mark_node.
35009 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35011 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35012 VALID_AVX256_REG_OR_OI_MODE.
35014 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35016 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35017 current procedure should be profiled.
35019 2014-01-15 Andrew Pinski <apinski@cavium.com>
35021 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35022 of moving from/to the STACK_REG register class.
35024 2014-01-15 Richard Henderson <rth@redhat.com>
35027 * reginfo.c (global_regs_decl): Globalize.
35028 * rtl.h (global_regs_decl): Declare.
35029 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35030 reserved via global_regs.
35032 2014-01-15 Teresa Johnson <tejohnson@google.com>
35034 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35036 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35038 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35039 and vmulosh rather than call gen_vec_widen_smult_*.
35040 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35041 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35042 (vec_widen_smult_even_v16qi): Likewise.
35043 (vec_widen_umult_even_v8hi): Likewise.
35044 (vec_widen_smult_even_v8hi): Likewise.
35045 (vec_widen_umult_odd_v16qi): Likewise.
35046 (vec_widen_smult_odd_v16qi): Likewise.
35047 (vec_widen_umult_odd_v8hi): Likewise.
35048 (vec_widen_smult_odd_v8hi): Likewise.
35049 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35050 vmuloub rather than call gen_vec_widen_umult_*.
35051 (vec_widen_umult_lo_v16qi): Likewise.
35052 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35053 vmulosb rather than call gen_vec_widen_smult_*.
35054 (vec_widen_smult_lo_v16qi): Likewise.
35055 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35056 rather than call gen_vec_widen_umult_*.
35057 (vec_widen_umult_lo_v8hi): Likewise.
35058 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35059 rather than call gen_vec_widen_smult_*.
35060 (vec_widen_smult_lo_v8hi): Likewise.
35062 2014-01-15 Jeff Law <law@redhat.com>
35064 PR tree-optimization/59747
35065 * ree.c (find_and_remove_re): Properly handle case where a second
35066 eliminated extension requires widening a copy created for elimination
35067 of a prior extension.
35068 (combine_set_extension): Ensure that the number of hard regs needed
35069 for a destination register does not change when we widen it.
35071 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35073 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35074 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35075 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35076 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35077 (avr-*-rtems*): Likewise.
35078 (bfin*-rtems*): Likewise.
35079 (moxie-*-rtems*): Likewise.
35080 (h8300-*-rtems*): Likewise.
35081 (i[34567]86-*-rtems*): Likewise.
35082 (lm32-*-rtems*): Likewise.
35083 (m32r-*-rtems*): Likewise.
35084 (m68k-*-rtems*): Likewise.
35085 (microblaze*-*-rtems*): Likewise.
35086 (mips*-*-rtems*): Likewise.
35087 (powerpc-*-rtems*): Likewise.
35088 (sh-*-rtems*): Likewise.
35089 (sparc-*-rtems*): Likewise.
35090 (sparc64-*-rtems*): Likewise.
35091 (v850-*-rtems*): Likewise.
35092 (m32c-*-rtems*): Likewise.
35094 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35096 PR rtl-optimization/59511
35097 * ira.c (ira_init_register_move_cost): Use memory costs for some
35098 cases of register move cost calculations.
35099 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35100 instead of BB frequency.
35101 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35102 * lra-assigns.c (find_hard_regno_for): Ditto.
35104 2014-01-15 Richard Biener <rguenther@suse.de>
35106 PR tree-optimization/59822
35107 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35108 (vectorizable_load): Use it to hoist defs of uses of invariant
35109 loads out of the loop.
35111 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35112 Kugan Vivekanandarajah <kuganv@linaro.org>
35115 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35118 2014-01-15 Richard Biener <rguenther@suse.de>
35120 PR rtl-optimization/59802
35121 * lcm.c (compute_available): Use inverted postorder to seed
35122 the initial worklist.
35124 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35127 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35128 ADDR_REGS for invalid symrefs in non-PIC code.
35130 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35133 * builtins.c (determine_block_size): Initialize *probable_max_size
35134 even if len_rtx is CONST_INT.
35136 2014-01-14 Andrew Pinski <apinski@cavium.com>
35138 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35139 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35140 (cortexa53_tunings): Likewise.
35141 (aarch64_sched_issue_rate): New function.
35142 (TARGET_SCHED_ISSUE_RATE): Define.
35144 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35146 * ira-costs.c (find_costs_and_classes): Add missed
35147 ira_init_register_move_cost_if_necessary.
35149 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35152 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35154 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35157 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35158 to indicate if type is used for function return value. Warn ABI
35159 change if the vector mode isn't available for function return value.
35160 (ix86_function_arg_advance): Pass false to type_natural_mode.
35161 (ix86_function_arg): Likewise.
35162 (ix86_gimplify_va_arg): Likewise.
35163 (function_arg_32): Don't warn ABI change.
35164 (ix86_function_value): Pass true to type_natural_mode.
35165 (ix86_return_in_memory): Likewise.
35166 (ix86_struct_value_rtx): Removed.
35167 (TARGET_STRUCT_VALUE_RTX): Likewise.
35169 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35171 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35172 converting a conditional jump into a conditional return.
35174 2014-01-14 Richard Biener <rguenther@suse.de>
35176 PR tree-optimization/58921
35177 PR tree-optimization/59006
35178 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35179 hoisting invariant stmts.
35180 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35181 invariant loads on the preheader edge if possible.
35183 2014-01-14 Joey Ye <joey.ye@arm.com>
35185 * doc/plugin.texi (Building GCC plugins): Update to C++.
35187 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35189 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35190 (_mm_rcp28_round_ss): Ditto.
35191 (_mm_rsqrt28_round_sd): Ditto.
35192 (_mm_rsqrt28_round_ss): Ditto.
35193 (_mm_rcp28_sd): Ditto.
35194 (_mm_rcp28_ss): Ditto.
35195 (_mm_rsqrt28_sd): Ditto.
35196 (_mm_rsqrt28_ss): Ditto.
35197 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35198 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35199 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35200 (IX86_BUILTIN_RCP28SD): Ditto.
35201 (IX86_BUILTIN_RCP28SS): Ditto.
35202 (IX86_BUILTIN_RSQRT28SD): Ditto.
35203 (IX86_BUILTIN_RSQRT28SS): Ditto.
35204 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35205 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35206 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35207 (ix86_expand_special_args_builtin): Expand new FTYPE.
35208 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35209 (srcp14<mode>): Make insn unary.
35210 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35211 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35212 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35213 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35214 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35215 Fix rounding: make it SAE only.
35216 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35218 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35220 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35221 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35222 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35223 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35224 (round_saeonly_mask_scalar_operand4): Ditto.
35225 (round_saeonly_mask_scalar_op3): Ditto.
35226 (round_saeonly_mask_scalar_op4): Ditto.
35228 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35230 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35231 Implement -maltivec=be for vec_insert and vec_extract.
35233 2014-01-10 DJ Delorie <dj@redhat.com>
35235 * config/msp430/msp430.md (call_internal): Don't allow memory
35236 references with SP as the base register.
35237 (call_value_internal): Likewise.
35238 * config/msp430/constraints.md (Yc): New. For memory references
35239 that don't use SP as a base register.
35241 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35242 "an integer without a # prefix"
35243 * config/msp430/msp430.md (epilogue_helper): Use it.
35245 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35248 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35249 AVX512F gather builtins.
35250 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35251 on gather decls with INTEGER_TYPE masktype.
35252 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35253 directly into the builtin rather than hoisting it before loop.
35255 PR tree-optimization/59387
35256 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35257 (scev_const_prop): If folded_casts and type has undefined overflow,
35258 use force_gimple_operand instead of force_gimple_operand_gsi and
35259 for each added stmt if it is assign with
35260 arith_code_with_undefined_signed_overflow, call
35261 rewrite_to_defined_overflow.
35262 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35263 gimple-fold.h instead.
35264 (arith_code_with_undefined_signed_overflow,
35265 rewrite_to_defined_overflow): Moved to ...
35266 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35267 rewrite_to_defined_overflow): ... here. No longer static.
35268 Include gimplify-me.h.
35269 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35270 rewrite_to_defined_overflow): New prototypes.
35272 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35274 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35276 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35278 * builtins.c (get_object_alignment_2): Minor tweak.
35279 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35281 2014-01-13 Christian Bruel <christian.bruel@st.com>
35283 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35284 optimized non constant lengths.
35286 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35289 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35290 load as __atomic_load_N if possible.
35292 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35294 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35296 (rs6000_expand_builtin): Adjust call.
35298 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35301 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35302 * config/rs6000/rs6000.c: Include target-globals.h.
35303 (rs6000_set_current_function): Instead of doing target_reinit
35304 unconditionally, use save_target_globals_default_opts and
35305 restore_target_globals.
35307 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35309 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35310 (rs6000_expand_builtin): Handle mffs and mtfsf.
35311 (rs6000_init_builtins): Define mffs and mtfsf.
35312 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35313 (rs6000_mffs): New pattern.
35314 (rs6000_mtfsf): New pattern.
35316 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35318 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35319 Start narrowing with START. Apply candidate-use pair
35320 and check overall cost in narrowing.
35321 (iv_ca_prune): Pass new argument.
35323 2014-01-10 Jeff Law <law@redhat.com>
35325 PR middle-end/59743
35326 * ree.c (combine_reaching_defs): Ensure the defining statement
35327 occurs before the extension when optimizing extensions with
35328 different source and destination hard registers.
35330 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35333 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35334 vtables into the type inheritance graph.
35336 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35338 PR rtl-optimization/59754
35339 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35340 modes in the REGNO != REGNO case.
35342 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35344 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35346 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35348 PR tree-optimization/59745
35349 * tree-predcom.c (tree_predictive_commoning_loop): Call
35350 free_affine_expand_cache if giving up because components is NULL.
35352 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35353 GC in payload of target_globals struct instead of allocating them on
35354 the heap and the larger structs separately using GC.
35355 * target-globals.h (struct target_globals): Make regs, hard_regs,
35356 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35357 of GTY((skip)) and change type to void *.
35358 (reset_target_globals): Cast loads from those fields to corresponding
35361 2014-01-10 Steve Ellcey <sellcey@mips.com>
35364 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35365 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35366 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35368 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35371 * aarch64-modes.def (CC_Zmode): New flags mode.
35372 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35373 represents an equality.
35374 (aarch64_get_condition_code): Handle CC_Zmode.
35375 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35377 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35379 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35380 extraction in good case.
35382 2014-01-10 Richard Biener <rguenther@suse.de>
35384 PR tree-optimization/59374
35385 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35386 checking after SLP discovery. Mark stmts not participating
35387 in any SLP instance properly.
35389 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35391 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35392 when handling a SET rtx.
35394 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35396 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35397 (cortex-a57): Likewise.
35398 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35400 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35402 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35403 non-iwmmxt builtins.
35405 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35409 * ipa-devirt.c record_target_from_binfo): Take as argument
35410 stack of binfos and lookup matching one for virtual inheritance.
35411 (possible_polymorphic_call_targets_1): Update.
35413 2014-01-10 Huacai Chen <chenhc@lemote.com>
35415 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35416 kernel strings for Loongson-2E/2F/3A.
35418 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35420 PR middle-end/59670
35421 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35422 is_gimple_call before calling gimple_call_internal_p.
35424 2014-01-09 Steve Ellcey <sellcey@mips.com>
35426 * Makefile.in (TREE_FLOW_H): Remove.
35427 (TREE_SSA_H): Add file names from tree-flow.h.
35428 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35429 * tree.h: Remove tree-flow.h reference.
35430 * hash-table.h: Remove tree-flow.h reference.
35431 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35432 reference with tree-ssa-loop.h.
35434 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35436 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35437 default element-order behavior for -maltivec.
35438 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35439 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35440 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35441 when targeting big endian, at least for now.
35442 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35444 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35446 PR middle-end/47735
35447 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35448 var satisfies use_register_for_decl, just take into account type
35449 alignment, rather than decl alignment.
35451 PR tree-optimization/59622
35452 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35453 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35454 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35455 Don't devirtualize for inplace at all. For targets.length () == 1,
35456 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35458 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35460 * config/i386/i386.md (cpu): Remove the unused btver1.
35462 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35464 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35466 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35469 * tree-core.h (struct target_globals): New forward declaration.
35470 (struct tree_target_option): Add globals field.
35471 * tree.h (TREE_TARGET_GLOBALS): Define.
35472 (prepare_target_option_nodes_for_pch): New prototype.
35473 * target-globals.h (struct target_globals): Define even if
35474 !SWITCHABLE_TARGET.
35475 * tree.c (prepare_target_option_node_for_pch,
35476 prepare_target_option_nodes_for_pch): New functions.
35477 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35478 * config/i386/i386.c: Include target-globals.h.
35479 (ix86_set_current_function): Instead of doing target_reinit
35480 unconditionally, use save_target_globals_default_opts and
35481 restore_target_globals.
35483 2014-01-09 Richard Biener <rguenther@suse.de>
35485 PR tree-optimization/59715
35486 * tree-cfg.h (split_critical_edges): Declare.
35487 * tree-cfg.c (split_critical_edges): Export.
35488 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35490 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35492 * cfgexpand.c (expand_stack_vars): Optionally disable
35493 asan stack protection.
35494 (expand_used_vars): Likewise.
35495 (partition_stack_vars): Likewise.
35496 * asan.c (asan_emit_stack_protection): Optionally disable
35497 after return stack usage.
35498 (instrument_derefs): Optionally disable memory access instrumentation.
35499 (instrument_builtin_call): Likewise.
35500 (instrument_strlen_call): Likewise.
35501 (asan_protect_global): Optionally disable global variables protection.
35502 * doc/invoke.texi: Added doc for new options.
35503 * params.def: Added new options.
35504 * params.h: Likewise.
35506 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35508 PR rtl-optimization/59724
35509 * ifcvt.c (cond_exec_process_if_block): Don't call
35510 flow_find_head_matching_sequence with 0 longest_match.
35511 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35512 non-active insns if !stop_after.
35513 (try_head_merge_bb): Revert 2014-01-07 changes.
35515 2014-01-08 Jeff Law <law@redhat.com>
35517 * ree.c (get_sub_rtx): New function, extracted from...
35518 (merge_def_and_ext): Here.
35519 (combine_reaching_defs): Use get_sub_rtx.
35521 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35523 * cgraph.h (varpool_variable_node): Do not choke on null node.
35525 2014-01-08 Catherine Moore <clm@codesourcery.com>
35527 * config/mips/mips.md (simple_return): Attempt to use JRC
35529 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35531 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35533 PR rtl-optimization/59137
35534 * reorg.c (steal_delay_list_from_target): Call update_block for
35536 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35538 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35540 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35541 two duplicate entries.
35543 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35546 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35548 * config/mips/mips.c (mips_truncated_op_cost): New function.
35549 (mips_rtx_costs): Adjust test for BADDU.
35550 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35552 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35554 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35555 (*baddu_si): ...this new pattern.
35557 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35560 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35562 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35564 PR middle-end/57748
35565 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35567 (expand_expr, expand_normal): Adjust.
35568 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35569 inner_reference_p. Use inner_reference_p to expand inner references.
35570 (store_expr): Adjust.
35571 * cfgexpand.c (expand_call_stmt): Adjust.
35573 2014-01-08 Rong Xu <xur@google.com>
35575 * gcov-io.c (gcov_var): Move from gcov-io.h.
35576 (gcov_position): Ditto.
35577 (gcov_is_error): Ditto.
35578 (gcov_rewrite): Ditto.
35579 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35580 only part to libgcc/libgcov.h.
35582 2014-01-08 Marek Polacek <polacek@redhat.com>
35584 PR middle-end/59669
35585 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35587 2014-01-08 Marek Polacek <polacek@redhat.com>
35590 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35592 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35594 PR rtl-optimization/59649
35595 * stor-layout.c (get_mode_bounds): For BImode return
35596 0 and STORE_FLAG_VALUE.
35598 2014-01-08 Richard Biener <rguenther@suse.de>
35600 PR middle-end/59630
35601 * gimple.h (is_gimple_builtin_call): Remove.
35602 (gimple_builtin_call_types_compatible_p): New.
35603 (gimple_call_builtin_p): New overload.
35604 * gimple.c (is_gimple_builtin_call): Remove.
35605 (validate_call): Rename to ...
35606 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35607 check return types.
35608 (validate_type): New static function.
35609 (gimple_call_builtin_p): New overload and adjust.
35610 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35611 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35612 (gimple_fold_stmt_to_constant_1): Likewise.
35613 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35615 2014-01-08 Richard Biener <rguenther@suse.de>
35617 PR middle-end/59471
35618 * gimplify.c (gimplify_expr): Gimplify register-register type
35619 VIEW_CONVERT_EXPRs to separate stmts.
35621 2014-01-07 Jeff Law <law@redhat.com>
35623 PR middle-end/53623
35624 * ree.c (combine_set_extension): Handle case where source
35625 and destination registers in an extension insn are different.
35626 (combine_reaching_defs): Allow source and destination registers
35627 in extension to be different under limited circumstances.
35628 (add_removable_extension): Remove restriction that the
35629 source and destination registers in the extension are the same.
35630 (find_and_remove_re): Emit a copy from the extension's
35631 destination to its source after the defining insn if
35632 the source and destination registers are different.
35634 PR middle-end/59285
35635 * ifcvt.c (merge_if_block): If we are merging a block with more than
35636 one successor with a block with no successors, remove any BARRIER
35637 after the second block.
35639 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35641 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35643 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35646 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35647 for 14-bit register offsets when INT14_OK_STRICT is false.
35649 2014-01-07 Roland Stigge <stigge@antcom.de>
35650 Michael Meissner <meissner@linux.vnet.ibm.com>
35653 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35654 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35656 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35658 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35661 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35663 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35664 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35665 rtx is const0_rtx or not.
35667 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35670 * target-globals.c (save_target_globals): Remove this_fn_optab
35672 * toplev.c: Include optabs.h.
35673 (target_reinit): Temporarily restore the global options if another
35674 set of options are in force.
35676 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35678 PR rtl-optimization/58668
35679 * cfgcleanup.c (flow_find_cross_jump): Don't count
35680 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35681 to determine what is counted.
35682 (flow_find_head_matching_sequence): Use active_insn_p to determine
35684 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35686 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35687 determine what is counted.
35689 PR tree-optimization/59643
35690 * tree-predcom.c (split_data_refs_to_components): If one dr is
35691 read and one write, determine_offset fails and the write isn't
35692 in the bad component, just put the read into the bad component.
35694 2014-01-07 Mike Stump <mikestump@comcast.net>
35695 Jakub Jelinek <jakub@redhat.com>
35698 * tree-core.h (struct tree_optimization_option): Change optabs
35699 type from unsigned char * to void *.
35700 * optabs.c (init_tree_optimization_optabs): Adjust
35701 TREE_OPTIMIZATION_OPTABS initialization.
35703 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35706 * config/i386/i386.h (struct machine_function): Add
35707 no_drap_save_restore field.
35708 * config/i386/i386.c (ix86_save_reg): Use
35709 !cfun->machine->no_drap_save_restore instead of
35710 crtl->stack_realign_needed.
35711 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35712 this function clears frame_pointer_needed. Set
35713 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35714 and DRAP reg is needed.
35716 2014-01-06 Marek Polacek <polacek@redhat.com>
35719 * doc/implement-c.texi: Mention that other integer types are
35720 permitted as bit-field types in strictly conforming mode.
35722 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35724 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35725 is newly allocated.
35727 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35729 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35731 2014-01-06 Martin Jambor <mjambor@suse.cz>
35734 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35736 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35738 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35742 * var-tracking.c (add_stores): Preserve the value of the source even if
35743 we don't record the store.
35745 2014-01-06 Terry Guo <terry.guo@arm.com>
35747 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35749 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35752 * config/darwin.c (darwin_function_section): Adjust return values to
35753 correspond to optimisation changes made in r206070.
35755 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35757 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35758 from prefetch_block tune setting.
35759 (nocona_cost): Correct size of prefetch block to 64.
35761 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35763 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35764 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35765 used to save the static chain register in the computation of the offset
35766 from which the FP registers need to be restored.
35768 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35770 PR tree-optimization/59519
35771 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35772 ICE if get_current_def (current_new_name) is already non-NULL, as long
35773 as it is a phi result of some other phi in *new_exit_bb that has
35776 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35777 or vmovdqu* for misaligned_operand.
35778 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35779 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35780 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35781 aligned_mem for AVX512F masked aligned load and store builtins and for
35782 non-temporal moves.
35784 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35786 PR tree-optimization/59651
35787 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35788 Address range for negative step should be added by TYPE_SIZE_UNIT.
35790 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35792 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35793 overlapping registers also for registers other than the stack pointer.
35795 2014-01-03 Marek Polacek <polacek@redhat.com>
35798 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35801 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35804 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35807 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35808 (push splitter): Use <P:MODE_SIZE> instead of
35809 GET_MODE_SIZE (<P:MODE>mode).
35810 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35811 (mov -1, reg peephole2): Likewise.
35812 * config/i386/sse.md (*mov<mode>_internal,
35813 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35814 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35815 *<code><mode>3, *andnot<mode>3<mask_name>,
35816 <mask_codefor><code><mode>3<mask_name>): Likewise.
35817 * config/i386/subst.md (mask_mode512bit_condition,
35818 sd_mask_mode512bit_condition): Likewise.
35820 2014-01-02 Xinliang David Li <davidxl@google.com>
35822 PR tree-optimization/59303
35823 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35824 (dump_predicates): Better output format.
35825 (pred_equal_p): New function.
35826 (is_neq_relop_p): Ditto.
35827 (is_neq_zero_form_p): Ditto.
35828 (pred_expr_equal_p): Ditto.
35829 (pred_neg_p): Ditto.
35830 (simplify_pred): Ditto.
35831 (simplify_preds_2): Ditto.
35832 (simplify_preds_3): Ditto.
35833 (simplify_preds_4): Ditto.
35834 (simplify_preds): Ditto.
35835 (push_pred): Ditto.
35836 (push_to_worklist): Ditto.
35837 (get_pred_info_from_cmp): Ditto.
35838 (is_degenerated_phi): Ditto.
35839 (normalize_one_pred_1): Ditto.
35840 (normalize_one_pred): Ditto.
35841 (normalize_one_pred_chain): Ditto.
35842 (normalize_preds): Ditto.
35843 (normalize_cond_1): Remove function.
35844 (normalize_cond): Ditto.
35845 (is_gcond_subset_of): Ditto.
35846 (is_subset_of_any): Ditto.
35847 (is_or_set_subset_of): Ditto.
35848 (is_and_set_subset_of): Ditto.
35849 (is_norm_cond_subset_of): Ditto.
35850 (pred_chain_length_cmp): Ditto.
35851 (convert_control_dep_chain_into_preds): Type change.
35852 (find_predicates): Ditto.
35853 (find_def_preds): Ditto.
35854 (destroy_predicates_vecs): Ditto.
35855 (find_matching_predicates_in_rest_chains): Ditto.
35856 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35857 (is_pred_expr_subset): Ditto.
35858 (is_pred_chain_subset_of): Ditto.
35859 (is_included_in): Ditto.
35860 (is_superset_of): Ditto.
35862 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35864 Update copyright years.
35866 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35868 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35869 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35870 config/arc/arc.md, config/arc/arc.opt,
35871 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35872 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35873 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35874 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35875 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35876 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35877 vtable-verify.c, vtable-verify.h: Use the standard form for the
35880 2014-01-02 Tobias Burnus <burnus@net-b.de>
35882 * gcc.c (process_command): Update copyright notice dates.
35883 * gcov-dump.c: Ditto.
35885 * doc/cpp.texi: Bump @copying's copyright year.
35886 * doc/cppinternals.texi: Ditto.
35887 * doc/gcc.texi: Ditto.
35888 * doc/gccint.texi: Ditto.
35889 * doc/gcov.texi: Ditto.
35890 * doc/install.texi: Ditto.
35891 * doc/invoke.texi: Ditto.
35893 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35895 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35897 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35899 * config/i386/sse.md (*mov<mode>_internal): Guard
35900 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35902 PR rtl-optimization/59647
35903 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35904 new_rtx into UNSIGNED_FLOAT rtxes.
35906 Copyright (C) 2014 Free Software Foundation, Inc.
35908 Copying and distribution of this file, with or without modification,
35909 are permitted in any medium without royalty provided the copyright
35910 notice and this notice are preserved.