1 2014-10-25 Joseph Myers <joseph@codesourcery.com>
3 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
4 not allow e500 double in registers not satisyfing
7 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
9 * dwarf2out.c (declare_in_namespace): Only emit external
10 declarations in the local scope once.
12 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
14 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
16 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
18 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
19 update uses to use new macro arguments.
20 (__LD3_LANE_FUNC): Likewise.
21 (__LD4_LANE_FUNC): Likewise.
23 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
25 * config/aarch64/aarch64-builtins.c
26 (aarch64_types_loadstruct_lane_qualifiers): Define.
27 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
28 ld4_lane): New builtins.
29 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
31 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
32 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
33 (aarch64_ld2_lane<mode>): New expand.
34 (aarch64_ld3_lane<mode>): Likewise.
35 (aarch64_ld4_lane<mode>): Likewise.
36 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
37 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
39 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
41 * avr-protos.h (avr_out_sign_extend): New.
42 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
43 (avr_out_sign_extend): New function.
44 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
45 (extendhisi2, extendpsisi2): Use it.
46 (adjust_len) [sext]: New.
48 2014-10-24 Martin Liska <mliska@suse.cz>
50 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
53 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
56 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
57 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
58 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
60 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
62 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
64 * config/aarch64/aarch64.c (is_mem_p): Delete.
65 (is_memory_op): Rename to...
66 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
67 (dep_between_memop_and_curr): Assert that the input is a SET.
68 (aarch64_madd_needs_nop): Add comment. Do not call
69 dep_between_memop_and_curr on NULL body.
70 (aarch64_final_prescan_insn): Add comment.
73 2014-10-24 Richard Biener <rguenther@suse.de>
75 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
76 to genmatch BUILD_LIBS instead.
78 2014-10-24 Richard Biener <rguenther@suse.de>
80 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
81 and build_call_expr_loc.
82 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
83 non_lvalue_loc to build it for GENERIC.
84 (decision_tree::gen_generic): Add location argument to
85 generic_simplify prototype.
86 (capture_info): New class.
87 (capture_info::capture_info): New constructor.
88 (capture_info::walk_match): New method.
89 (capture_info::walk_result): New method.
90 (capture_info::walk_c_expr): New method.
91 (dt_simplify::gen): Handle preserving side-effects for
92 GENERIC code generation.
93 (decision_tree::gen_generic): Do not reject operands
94 with TREE_SIDE_EFFECTS.
95 * generic-match.h: New file.
96 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
97 * match.pd: Add some constant folding patterns from fold-const.c.
98 * fold-const.c: Include generic-match.h.
99 (fold_unary_loc): Dispatch to generic_simplify.
100 (fold_ternary_loc): Likewise.
101 (fold_binary_loc): Likewise. Remove patterns now implemented
103 * gimple-fold.c (replace_stmt_with_simplification): New function.
104 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
105 (no_follow_ssa_edges): New function.
106 (fold_stmt): New overload with valueization hook. Use
107 no_follow_ssa_edges for the overload without hook.
108 (fold_stmt_inplace): Likewise.
109 * gimple-fold.h (no_follow_ssa_edges): Declare.
111 2014-10-24 Felix Yang <felix.yang@huawei.com>
112 Jiji Jiang <jiangjiji@huawei.com>
115 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
116 (__LD3R_FUNC): Ditto.
117 (__LD4R_FUNC): Ditto.
118 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
119 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
120 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
121 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
122 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
123 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
124 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
125 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
126 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
127 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
128 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
129 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
130 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
131 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
132 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
133 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
134 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
135 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
136 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
137 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
138 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
140 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
141 (aarch64_simd_ld3r<mode>): Likewise.
142 (aarch64_simd_ld4r<mode>): Likewise.
143 (aarch64_ld2r<mode>): New expand.
144 (aarch64_ld3r<mode>): Likewise.
145 (aarch64_ld4r<mode>): Likewise.
147 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
149 * rtlanal.c (get_base_term): Handle SCRATCH.
151 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
153 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
156 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
158 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
159 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
160 (max_issue, choose_ready, sched_init): Update.
162 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
164 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
165 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
166 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
167 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
168 (print_rank_for_schedule_stats): Print out elements of ready list that
169 ended up on their respective places due to each of the sorting
171 (ready_sort): Update.
172 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
173 (schedule_block): Update.
175 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
177 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
178 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
179 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
180 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
181 (model_start_schedule): Update.
182 (sched_pressure_start_bb): New static function. Calculate
183 sched_class_regs_num.
184 (schedule_block): Use it.
185 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
187 2014-10-24 Richard Biener <rguenther@suse.de>
189 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
190 host library and make sure to pull in the required libintl
191 and libiconv dependencies.
193 2014-10-24 Richard Biener <rguenther@suse.de>
195 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
197 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
200 * collect2.c (main): Filter out -fno-lto.
202 2014-10-24 Martin Liska <mliska@suse.cz>
204 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
205 division by zero in dumps.
206 (sem_item_optimizer::merge_classes): Ditto.
208 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
210 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
212 2014-10-23 Ian Lance Taylor <iant@google.com>
214 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
216 2014-10-23 Ian Lance Taylor <iant@google.com>
218 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
220 2014-10-23 Jakub Jelinek <jakub@redhat.com>
223 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
224 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
225 instead of only handling autoinc in dest if it is a MEM.
226 (vt_stack_adjustments): Fix up formatting.
228 2014-10-23 DJ Delorie <dj@redhat.com>
230 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
231 independend of -mlarge.
232 * config/msp430/constraints.md (Ys): Update comment.
234 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
238 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
240 * dse.c (deletable_insn_p): Likewise.
242 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
244 * config/avr/avr.c: Fix GNU coding rules and typos.
245 * config/avr/avr.h: Dito.
246 * config/avr/avr-c.c: Dito.
247 * config/avr/avr.md: Dito.
249 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
251 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
253 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
255 (define_expand "abs<mode>2"): Ditto.
257 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
259 * tree-core.h (tree_var_decl): Extend `function_code' field
260 by one bit, move `regdecl_flag' field to ...
261 (tree_decl_with_vis): Here.
262 * tree.h (DECL_STATIC_CHAIN): Update struct name.
264 2014-10-23 Richard Biener <rguenther@suse.de>
266 * Makefile.in (BUILD_CPPLIB): Add.
267 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
270 2014-10-23 Richard Biener <rguenther@suse.de>
272 * fold-const.c (fold_binary_loc): Preserve side-effects of
273 X - X when simplifying to 0.
274 * stor-layout.c (finish_bitfield_representative): Strip
275 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
277 2014-10-22 Richard Biener <rguenther@suse.de>
278 Tobias Burnus <burnus@net-b.de>
281 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
283 2014-10-22 Dehao Chen <dehao@google.com>
285 * auto-profile.c: Change order of header files.
287 2014-10-22 Guozhi Wei <carrot@google.com>
289 PR tree-optimization/63530
290 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
291 pointer alignment according to DR_MISALIGNMENT.
293 2014-10-22 David Malcolm <dmalcolm@redhat.com>
295 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
297 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
299 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
300 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
301 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
302 * dominance.h: New. Add prototypes for dominance.c.
303 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
304 * cfghooks.h: (struct profile_record) Relocate here.
305 Relocate 2 prototypes from basic-block.h.
306 * basic-block.h: Move prototypes and struct to new header files.
307 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
308 * rtl.h: Move a few prototypes to new header files.
309 * cfgcleanup.c (merge_memattrs): Make static.
310 * genopinit.c (main): Add predict.h to list of includes.
311 * predict.h: Update prototype list to match predict.c.
312 * predict.c (maybe_hot_count_p): Export.
313 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
314 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
315 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
316 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
317 * profile.h: Adjust prototypes.
318 * ifcvt.h: New. Relocate struct ce_if_block here.
319 * ifcvt.c: Include ifcvt.h.
320 * config/frv/frv.c: Include ifcvt.h.
321 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
323 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
325 * lra.c (lra): Remove call to recog_init.
326 * config/i386/i386.md (preferred_for_speed): New attribute
327 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
328 "enabled". Remove check for sched1.
330 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
332 * recog.h (recog_data_d): Remove enabled_alternatives.
333 * recog.c (extract_insn): Don't set it.
334 * reload.c (find_reloads): Call get_enabled_alternatives.
336 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
338 * recog.h (constrain_operands): Add an alternative_mask parameter.
339 (constrain_operands_cached): Likewise.
340 (get_preferred_alternatives): Declare new form.
341 * recog.c (get_preferred_alternatives): New bb-taking instance.
342 (constrain_operands): Take the set of available alternatives as
344 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
345 (extract_constrain_insn_cached): Update calls to constrain_operands.
346 * caller-save.c (reg_save_code): Likewise.
347 * ira.c (setup_prohibited_mode_move_regs): Likewise.
348 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
349 * ree.c (combine_reaching_defs): Likewise.
350 * reload.c (can_reload_into): Likewise.
351 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
352 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
353 (emit_insn_if_valid_for_reload): Likewise.
354 * reorg.c (fill_slots_from_thread): Likewise.
355 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
356 * config/pa/pa.c (pa_can_combine_p): Likewise.
357 * config/rl78/rl78.c (insn_ok_now): Likewise.
358 * config/sh/sh.md (define_peephole2): Likewise.
359 * final.c (final_scan_insn): Update call to constrain_operands_cached.
361 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
363 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
365 * genattr.c (main): Handle "preferred_for_size" and
366 "preferred_for_speed" in the same way as "enabled".
367 * recog.h (bool_attr): New enum.
368 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
369 (get_preferred_alternatives, check_bool_attrs): Declare.
370 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
371 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
373 (get_enabled_alternatives): Use get_bool_attr_mask.
374 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
375 instead of recog_data.enabled_alternatives.
376 * ira.c (ira_setup_alts): Likewise.
377 * postreload.c (reload_cse_simplify_operands): Likewise.
378 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
379 * ira-lives.c (preferred_alternatives): New variable.
380 (process_bb_node_lives): Set it.
381 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
382 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
383 of recog_data.enabled_alternatives.
384 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
385 to preferred_alternatives.
386 * lra-constraints.c (process_alt_operands): Update accordingly.
387 * lra.c (lra_set_insn_recog_data): Likewise.
388 (lra_update_insn_recog_data): Assert check_bool_attrs.
390 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
392 * recog.h (extract_constrain_insn): Declare.
393 * recog.c (extract_constrain_insn): New function.
394 * lra.c (check_rtl): Use it.
395 * postreload.c (reload_cse_simplify_operands): Likewise.
396 * reg-stack.c (check_asm_stack_operands): Likewise.
397 (subst_asm_stack_regs): Likewise.
398 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
399 * regrename.c (build_def_use): Likewise.
400 * sel-sched.c (get_reg_class): Likewise.
401 * config/arm/arm.c (note_invalid_constants): Likewise.
402 * config/s390/predicates.md (execute_operation): Likewise.
404 2014-10-22 Jakub Jelinek <jakub@redhat.com>
405 Yury Gribov <y.gribov@samsung.com>
407 * common.opt (flag_sanitize_recover): New variable.
408 (fsanitize-recover): Remove Var/Init, deprecate.
409 (fsanitize-recover=): New option.
410 * doc/invoke.texi (fsanitize-recover): Update docs.
411 * opts.c (finish_options): Use opts->x_flag_sanitize
412 instead of flag_sanitize. Prohibit -fsanitize-recover
413 for anything besides UBSan. Formatting.
414 (common_handle_option): Handle OPT_fsanitize_recover_
415 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
416 instead of flag_sanitize.
417 * asan.c (pass_sanopt::execute): Fix up formatting.
418 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
419 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
420 instrument_bool_enum_load, ubsan_instrument_float_cast,
421 instrument_nonnull_arg, instrument_nonnull_return): Check
422 bits in flag_sanitize_recover bitmask instead of
423 flag_sanitize_recover as bool flag.
425 2014-10-22 Jiong Wang <jiong.wang@arm.com>
427 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
429 2014-10-22 Renlin Li <renlin.li@arm.com>
431 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
432 __ARM_FEATURE_IDIV__.
434 2014-10-22 Richard Biener <rguenther@suse.de>
436 * Makefile.in (s-match): Adjust dependencies to only catch
439 2014-10-22 Richard Biener <rguenther@suse.de>
440 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
442 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
443 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
444 (gimple-match.c): Generate by triggering s-match.
445 (generic-match.c): Likewise.
446 (s-match): Rule to build gimple-match.c and generic-match.c
447 by running the genmatch generator program.
448 (build/hash-table.o): Dependencies to build hash-table.c for the host.
449 (build/genmatch.o): Dependencies to build genmatch.
450 (genprog): Add match.
451 (build/genmatch): Likewise.
452 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
453 * generic-match-head.c: New file.
454 * gimple-match-head.c: Likewise.
455 * gimple-match.h: Likewise.
456 * genmatch.c: Likewise.
457 * match.pd: Likewise.
458 * builtins.h (fold_builtin_n): Export.
459 * builtins.c (fold_builtin_n): Likewise.
460 * gimple-fold.h (gimple_build): Declare various overloads.
461 (gimple_simplify): Likewise.
462 (gimple_convert): Re-implement in terms of gimple_build.
463 * gimple-fold.c (gimple_convert): Remove.
464 (gimple_build): New functions.
465 * doc/match-and-simplify.texi: New file.
466 * doc/gccint.texi: Add menu item Match and Simplify and include
467 match-and-simplify.texi.
469 2014-10-22 Jakub Jelinek <jakub@redhat.com>
472 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
473 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
474 even for just TARGET_AVX2, not only for
475 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
476 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
477 otherwise build it using concatenation of 256-bit
479 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
480 avx512 broadcast patterns.
481 (vec_dup<mode>): Likewise. For avx2 use
482 v<sseintprefix>broadcast<bcstscalarsuff> instead of
483 vbroadcast<ssescalarmodesuffix>.
484 (AVX2_VEC_DUP_MODE): New mode iterator.
485 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
486 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
489 * config/i386/i386.c (ix86_pic_register_p): Also return
490 true if x is a hard register with ORIGINAL_REGNO equal to
491 pic_offset_table_rtx pseudo REGNO.
492 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
493 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
495 2014-10-22 Alan Modra <amodra@gmail.com>
497 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
498 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
499 (gcc_obstack_init): Use obstack_specify_allocation in place of
501 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
502 (regexp_representation): Likewise.
503 * godump.c (go_output_type): Likewise.
505 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
507 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
508 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
509 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
511 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
513 * doc/invoke.texi (pedantic-errors): Explain better.
515 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
516 Vidya Praveen <vidya.praveen@atmel.com>
517 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
518 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
519 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
521 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
523 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
524 (avr_nonconst_pointer_addrspace): Likewise.
525 * config/avr/avr.h (AVR_HAVE_LPM): Define.
527 Added AVRTINY architecture to avr target.
528 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
529 (base_arch_s): member added for AVRTINY architecture.
530 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
531 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
532 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
533 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
534 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
535 in callee saved register list.
536 (avr_option_override): CCP address updated for AVRTINY.
537 (avr_init_expanders): tmp and zero rtx initialized as per arch.
538 Reset avr_have_dimode if AVRTINY.
539 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
540 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
541 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
542 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
543 (expand_epilogue): Likewise.
544 (avr_print_operand): Print CCP address in case of AVRTINY also.
546 (function_arg_regno_p): Check different register list for arguments
548 (init_cumulative_args): Check for AVRTINY to update number of argument
550 (tiny_valid_direct_memory_access_range): New function. Return false if
551 direct memory access range is not in accepted range for AVRTINY.
552 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
553 indirect load (with displacement) for AVRTINY.
554 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
555 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
556 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
557 indirect load (no displacement) for AVRTINY.
558 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
559 indirect load (with displacement) for AVRTINY.
560 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
561 indirect load for pre-decrement address.
562 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
563 functions. Update instruction length for AVRTINY.
564 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
566 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
567 (out_movsi_r_mr): Likewise, for SImode.
568 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
569 indirect store (no displacement) for AVRTINY.
570 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
571 indirect store (with displacement) for AVRTINY.
572 (out_movsi_mr_r): Emit out insn for IO address store. Update store
573 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
575 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
576 indirect load (no displacement) for PSImode in AVRTINY.
577 (avr_out_load_psi_reg_disp_tiny): New function to handle register
578 indirect load (with displacement) for PSImode in AVRTINY.
579 (avr_out_load_psi): Call PSImode register indirect load functions for
580 AVRTINY. Update instruction length for AVRTINY.
581 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
582 indirect store (no displacement) for PSImode in AVRTINY.
583 (avr_out_store_psi_reg_disp_tiny): New function to handle register
584 indirect store (with displacement) for PSImode in AVRTINY.
585 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
586 register indirect store functions for AVRTINY.
587 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
588 register indirect store (with displacement) for AVRTINY.
589 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
590 register indirect store function for QImode in AVRTINY.
591 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
592 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
593 indirect store (no displacement) for HImode in AVRTINY.
594 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
595 indirect store (with displacement) for HImode in AVRTINY.
596 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
597 indirect store for post-increment address in HImode.
598 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
599 register indirect store function for HImode in AVRTINY.
600 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
602 (order_regs_for_local_alloc): Updated register allocation order for
604 (avr_conditional_register_usage): New function. It is a target hook
605 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
606 used registers list and register allocation order for AVRTINY.
607 (avr_return_in_memory): Update return value size for AVRTINY.
608 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
609 for AVRTINY arch and tiny program memory base address.
610 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
611 (avr_texinfo): Added description for AVRTINY arch.
612 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
613 STATIC_CHAIN_REGNUM for AVRTINY.
614 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
615 * config/avr/avr.md: Added constants for tmp/ zero registers in
616 AVRTINY. Attributes for AVRTINY added.
617 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
619 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
620 in AVRTINY memory access range.
621 (*mov<mode>): Likewise for HImode and SImode.
622 (*movsf): Likewise for SFmode.
623 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
625 * config/avr/avr-protos.h: Added function prototype for
626 tiny_valid_direct_memory_access_range.
627 * config/avr/avr-tables.opt: Regenerate.
628 * gcc/config/avr/t-multilib: Regenerate.
629 * doc/avr-mmcu.texi: Regenerate.
631 2014-10-21 Andrew Pinski <apinski@cavium.com>
633 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
634 available option also.
635 * config/aarch64/aarch64-cost-tables.h: New file.
636 * config/aarch64/aarch64-cores.def (thunderx): New core.
637 * config/aarch64/aarch64-tune.md: Regenerate.
638 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
639 of config/arm/aarch-cost-tables.h.
640 (thunderx_regmove_cost): New variable.
641 (thunderx_tunings): New variable.
643 2014-10-21 Dehao Chen <dehao@google.com>
645 * auto-profile.c: New file.
646 * auto-profile.h: New file.
647 * basic-block.h (maybe_hot_count_p): New export func.
648 (add_working_set): New export func.
649 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
650 (GCOV_TAG_AFDO_FUNCTION): Likewise.
651 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
652 * opts.c (enable_fdo_optimizations): New func.
653 (common_handle_option): Handle -fauto-profile flag.
654 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
655 (class pass_early_inline): Export early_inliner.
656 (early_inliner): Likewise.
657 (pass_early_inline::execute): Likewise.
658 * ipa-inline.h (early_inliner): Likewise.
659 * predict.c (maybe_hot_count_p): New export func.
660 (counts_to_freqs): AutoFDO logic.
661 (rebuild_frequencies): Likewise.
662 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
663 * profile.c (add_working_set): New func.
664 * Makefile.in (auto-profile.o): New object file.
665 * passes.def (pass_ipa_auto_profile): New pass.
666 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
667 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
668 * toplev.c (compile_file): AutoFDO logic.
669 * doc/invoke.texi (-fauto-profile): New doc.
670 * coverage.c (coverage_init): AutoFDO logic.
671 * common.opt (-fauto-profile): New flag.
672 * timevar.def (TV_IPA_AUTOFDO): New tag.
673 * value-prof.c (gimple_alloc_histogram_value): New export func.
674 (check_ic_target): Likewise.
675 * value-prof.h (gimple_alloc_histogram_value): Likewise.
676 (check_ic_target): Likewise.
678 2014-10-21 David Malcolm <dmalcolm@redhat.com>
680 * cgraph.c (cgraph_c_finalize): New function.
681 * cgraph.h (cgraph_c_finalize): New prototype.
682 (cgraphunit_c_finalize): New prototype.
683 * cgraphunit.c (first_analyzed): Move from analyze_functions
685 (first_analyzed_var): Likewise.
686 (analyze_functions): Move static variables into file-scope.
687 (cgraphunit_c_finalize): New function.
688 * diagnostic.c (diagnostic_finish): Free the memory for
689 context->classify_diagnostic and context->printer, running the
690 destructor for the latter.
691 (bt_stop): Use toplev::main.
692 * dwarf2out.c (dwarf2out_finalize): New function.
693 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
694 * gcse.c (gcse_c_finalize): New function.
695 * gcse.h (gcse_c_finalize): New prototype.
696 * ggc-page.c (init_ggc): Make idempotent.
697 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
698 * ipa-cp.c (ipa_cp_c_finalize): New function.
699 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
700 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
701 a field of class pass_ipa_pure_const.
702 (node_duplication_hook_holder): Likewise.
703 (node_removal_hook_holder): Likewise.
704 (register_hooks): Convert to method...
705 (pass_ipa_pure_const::register_hooks): ...here, converting
706 static variable init_p into...
707 (pass_ipa_pure_const::init_p): ...new field.
708 (pure_const_generate_summary): Update invocation of
709 register_hooks to invoke as a method of current_pass.
710 (pure_const_read_summary): Likewise.
711 (propagate): Convert to...
712 (pass_ipa_pure_const::execute): ...method.
713 * ipa-reference.c (ipa_init): Move static bool init_p from here
715 (ipa_init_p): New file-scope variable, so that it can be reset
716 when repeatedly invoking the compiler within one process by...
717 (ipa_reference_c_finalize): New function.
718 * ipa-reference.h (ipa_reference_c_finalize): New.
719 * main.c (main): Replace invocation of toplev_main with
720 construction of a toplev instance, and call its "main" method.
721 * params.c (global_init_params): Add an assert that
722 params_finished is false.
723 (params_c_finalize): New.
724 * params.h (params_c_finalize): New.
725 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
726 invoking generate_summary, for the benefit of pass_ipa_pure_const.
727 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
728 before calling write_summary hook.
729 (ipa_write_optimization_summaries_1): Likewise when calling
730 write_optimization_summary hook.
731 (ipa_read_summaries_1): Likewise for read_summary hook.
732 (ipa_read_optimization_summaries_1): Likewise for
733 read_optimization_summary hook.
734 (execute_ipa_stmt_fixups): Likewise.
735 * stringpool.c (init_stringpool): Clean up if we're called more
737 * timevar.c (timevar_init): Ignore repeated calls.
738 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
740 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
741 (initialize_rtl): Move static local "initialized_once"
742 into file scope, and rename to...
743 (rtl_initialized): New variable.
744 (do_compile): Move timevar initialization from here to
745 toplev::start_timevars.
746 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
747 toplev::finalize): New functions.
748 (toplev_main): Rename to...
749 (toplev::main): ...this.
750 * toplev.h (class toplev): New class.
752 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
754 * loop-doloop.c: Include loop-unroll.h.
756 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
758 * cfg.h: New. Header file for cfg.c.
759 * cfganal.h: New. Header file for cfganal.c.
760 * lcm.h: New. Header file for lcm.c.
761 * loop-unroll.h: New. Header file for loop-unroll.h.
762 * cfgloop.h: (unroll_loops): Remove prototype.
763 * basic-block.h: Move prototypes and structs to new header files.
764 Include cfg.h, cfganal.h, and lcm.h.
765 * loop-init.c: Include loop-unroll.h.
766 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
767 * modulo-sched.c: Include loop-unroll.h.
769 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
771 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
772 MARKER_BYTE_UNKNOWN markers when handling casts.
774 2014-10-21 Richard Biener <rguenther@suse.de>
776 * tree-ssa-phiopt.c (value_replacement): Properly verify we
777 are the non-singleton PHI.
779 2014-10-21 Jakub Jelinek <jakub@redhat.com>
781 PR tree-optimization/63563
782 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
783 if either dra or drb stmts are not normal loads/stores.
785 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
787 * config/i386/i386.c (expand_vec_perm_1): Fix
788 expand_vec_perm_palignr case.
789 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
792 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
794 * cfgloopanal.c (seq_cost): Delete.
795 * rtl.h (seq_cost): New prototype.
796 * rtlanal.c (seq_cost): New function.
797 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
799 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
801 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
802 * basic-block.h: Remove prototypes for cfgrtl.c.
803 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
804 prototypes to cfgrtl.h.
805 * profile.h (profile_info): Add extern export declaration.
806 * rtl.h: Remove prototypes for cfgrtl.h.
807 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
808 * ipa-inline.c: Include profile.h.
809 * loop-unroll.c: Ditto.
810 * modulo-sched.c: Ditto.
811 * postreload-gcse.c: Ditto.
813 * sched-ebb.c: Ditto.
814 * sched-rgn.c: Ditto.
816 * tree-ssa-loop-ivcanon.c: Ditto.
818 2014-10-20 Richard Biener <rguenther@suse.de>
820 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
821 operands to get a def operand kind match. Signal mismatches
822 to the parent so we can try swapping its operands.
823 (vect_build_slp_tree): Try swapping operands if they have
824 a mismatched operand kind.
826 2014-10-20 Alan Modra <amodra@gmail.com>
829 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
830 Increase "ops" array size. Correct array size tests. Init
831 n_constants in loop. Break out of innermost loop when finding
832 a trivial CONST expression.
834 2014-10-20 Martin Liska <mliska@suse.cz>
837 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
838 Gimple tempate string is compared.
840 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
842 * varasm.c (const_alias_set): Remove.
843 (init_varasm_once): Remove initialization of const_alias_set.
844 (build_constant_desc): Do not set alias set to const_alias_set.
846 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
848 * configure: Regenerate.
849 * configure.ac: Move the test for section attribute specifier "e" in GAS
850 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
851 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
852 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
853 ifdef HAVE_GAS_SECTION_EXCLUDE.
855 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
857 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
858 match_operand expression.
860 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
861 David Edelsohn <dje.gcc@gmail.com>
863 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
865 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
867 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
869 * doc/invoke.texi (Options to Request or Suppress Warnings):
870 Explain options precedence.
871 (Wtrampolines): Do not indent paragraph.
873 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
875 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
876 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
877 (pa_jump_in_call_delay): Likewise.
878 * config/pa/pa.c (pa_option_override): Remove jump in call delay
880 (pa_output_millicode_call): Remove support for jump in call delay.
881 (pa_output_call): Likewise.
882 (pa_jump_in_call_delay): Delete.
883 (pa_following_call): Likewise.
884 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
885 (uncond_branch): Remove following call check from attribute length.
887 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
890 * config/sh/sh-modes.def (PSI): Remove.
891 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
892 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
893 (sh_reorg): Remove commented out FPSCR code.
894 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
895 insn instead of move insn.
896 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
897 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
899 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
900 (sh1_builtin_p): Uncomment.
901 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
902 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
903 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
904 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
905 (general_movsrc_operand, general_movdst_operand): Disallow
907 * config/sh/sh.md (FPSCR_FR): New constant.
908 (push_fpscr): Emit sts_fpscr insn.
909 (pop_fpscr): Emit lds_fpscr_insn.
910 (movsi_ie): Disallow FPSCR operands.
911 (fpu_switch, unnamed related split, extend_psi_si,
912 truncate_si_psi): Remove insns.
913 (lds_fpscr, sts_fpscr): New insns.
914 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
916 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
918 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
919 (clone_inlined_nodes): Do not overwrite the clone if above predicate
922 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
924 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
925 (expand_vec_perm_d): Ditto.
926 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
927 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
929 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
930 (ix86_expand_sse_unpack): Handle V64QImode.
931 (expand_vec_perm_blend): Update conditions for TARGET, handle
932 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
933 (expand_vec_perm_pshufb): Handle V64QImode.
934 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
935 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
936 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
937 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
938 (ix86_expand_vecop_qihi): Handle V64QImode.
939 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
940 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
941 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
942 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
943 (mul<mode>3): Use VI1_AVX512.
944 (<sse2_avx2>_packsswb): Ditto.
945 (<sse2_avx2>_packuswb): Ditto.
946 (<ssse3_avx2>_pshufb<mode>3): Ditto.
947 (<shift_insn><mode>3): Ditto.
949 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
951 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
952 conditions to fix bootstrap.
954 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
956 gcc-plugin.h: Add tm.h and flattened includes from function.h.
958 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
959 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
960 Anna Tikhonova <anna.tikhonova@intel.com>
961 Ilya Tocar <ilya.tocar@intel.com>
962 Andrey Turetskiy <andrey.turetskiy@intel.com>
963 Ilya Verbin <ilya.verbin@intel.com>
964 Kirill Yukhin <kirill.yukhin@intel.com>
965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
967 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
968 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
969 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
970 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
971 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
972 (define_expand "vec_init<mode>"): Use VF48_I1248.
974 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
975 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
976 Anna Tikhonova <anna.tikhonova@intel.com>
977 Ilya Tocar <ilya.tocar@intel.com>
978 Andrey Turetskiy <andrey.turetskiy@intel.com>
979 Ilya Verbin <ilya.verbin@intel.com>
980 Kirill Yukhin <kirill.yukhin@intel.com>
981 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
983 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
984 expand_sse2_mulvxdi3.
986 2014-10-17 Richard Biener <rguenther@suse.de>
988 * fold-const.c (fold_comparison): Remove redundant constant
989 folding and operand swapping.
990 (fold_binary_loc): Do comparison operand swapping here.
991 (fold_ternary_loc): Canonicalize operand order for
992 commutative ternary operations.
993 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
996 2014-10-17 Jakub Jelinek <jakub@redhat.com>
998 PR tree-optimization/63464
999 * gimple.h (gimple_seq_discard): New prototype.
1000 * gimple.c: Include stringpool.h and tree-ssanames.h.
1001 (gimple_seq_discard): New function.
1002 * optabs.h (lshift_cheap_p): New prototype.
1003 * optabs.c (lshift_cheap_p): New function, moved from...
1004 * tree-switch-conversion.c (lshift_cheap_p): ... here.
1005 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1006 (reassoc_branch_fixups): New variable.
1007 (update_range_test): Add otherrangep and seq arguments.
1008 Unshare exp. If otherrange is NULL, use for other ranges
1009 array of pointers pointed by otherrangep instead.
1010 Emit seq before gimplified statements for tem.
1011 (optimize_range_tests_diff): Adjust update_range_test
1013 (optimize_range_tests_xor): Likewise. Fix up comment.
1014 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1016 (optimize_range_tests): Adjust update_range_test caller.
1017 Call optimize_range_tests_to_bit_test.
1018 (branch_fixup): New function.
1019 (execute_reassoc): Call branch_fixup.
1021 PR tree-optimization/63302
1022 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1023 optimize_range_tests_diff): Use !integer_pow2p () instead of
1026 2014-10-17 Martin Liska <mliska@suse.cz>
1028 * ipa-icf.c (sem_function::merge): Local flags are set to false
1029 to enforce equal calling convention to be used.
1030 * opts.c (common_handle_option): Indentation fix.
1032 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1034 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1036 2014-10-17 Tom de Vries <tom@codesourcery.com>
1038 PR rtl-optimization/61605
1039 * regcprop.c (copyprop_hardreg_forward_1): Use
1040 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1042 2014-10-17 Tom de Vries <tom@codesourcery.com>
1044 PR rtl-optimization/61605
1045 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1046 notice stores for noops. Don't regard noops as copies.
1048 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1051 register in a special way.
1052 (__cpuid_count): Ditto.
1053 * config/i386/driver-i386.h: Protect with
1054 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1055 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1056 is required to compile the function.
1058 2014-10-16 DJ Delorie <dj@redhat.com>
1060 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1063 * config/rs6000/rs6000-c.c (rid_int128): New.
1064 (rs6000_macro_to_expand): Use instead of RID_INT128.
1066 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1068 * function.h: Flatten file. Remove includes, adjust prototypes to
1069 reflect only what is in function.h.
1070 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1071 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1073 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1074 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1075 prototypes to predict.h.
1076 (init_varasm_status): Move prototype to varasm.h.
1077 * expr.h: Adjust include files.
1078 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1079 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1081 (locate_and_pad_parm): Move prototype to function.h.
1082 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1083 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1084 assign_temp, reposition_prologue_and_epilogue_notes,
1085 prologue_epilogue_contains, sibcall_epilogue_contains,
1086 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1087 set_return_jump_label): Move prototypes to function.h.
1088 * predict.h (optimize_function_for_size_p,
1089 optimize_function_for_speed_p): Relocate prototypes from function.h.
1090 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1091 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1093 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1094 * genattrtab.c (write_header): Add predict.h to include list.
1095 * genconditions.c (write_header): Add predict.h to include list.
1096 * genemit.c (main): Adjust header file includes.
1097 * gengtype.c (ifiles): Add flattened function.h header files.
1098 * genoutput.c (output_prologue): Add predict.h to include list.
1099 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1100 * genrecog.c (write_header): Add flattened function.h header files.
1101 * alias.c: Adjust include files.
1102 * auto-inc-dec.c: Likewise.
1103 * basic-block.h: Likewise.
1104 * bb-reorder.c: Likewise.
1105 * bt-load.c: Likewise.
1106 * builtins.c: Likewise.
1107 * caller-save.c: Likewise.
1108 * calls.c: Likewise.
1109 * cfgbuild.c: Likewise.
1110 * cfgcleanup.c: Likewise.
1111 * cfgexpand.c: Likewise.
1112 * cfgloop.c: Likewise.
1113 * cfgloop.h: Likewise.
1114 * cfgrtl.c: Likewise.
1115 * cgraph.h: Likewise.
1116 * cgraphclones.c: Likewise.
1117 * cgraphunit.c: Likewise.
1118 * combine-stack-adj.c: Likewise.
1119 * combine.c: Likewise.
1120 * coverage.c: Likewise.
1121 * cprop.c: Likewise.
1123 * cselib.c: Likewise.
1124 * dbxout.c: Likewise.
1126 * df-core.c: Likewise.
1127 * df-problems.c: Likewise.
1128 * df-scan.c: Likewise.
1129 * dojump.c: Likewise.
1130 * dwarf2cfi.c: Likewise.
1131 * dwarf2out.c: Likewise.
1132 * emit-rtl.c: Likewise.
1133 * except.c: Likewise.
1134 * explow.c: Likewise.
1136 * final.c: Likewise.
1137 * function.c: Likewise.
1139 * gimple-fold.c: Likewise.
1140 * gimple-low.c: Likewise.
1141 * gimple-streamer.h: Likewise.
1142 * haifa-sched.c: Likewise.
1143 * ifcvt.c: Likewise.
1147 * loop-invariant.c: Likewise.
1148 * lra-assigns.c: Likewise.
1149 * lra-coalesce.c: Likewise.
1150 * lra-constraints.c: Likewise.
1151 * lra-eliminations.c: Likewise.
1152 * lra-lives.c: Likewise.
1153 * lra-spills.c: Likewise.
1155 * lto-cgraph.c: Likewise.
1156 * lto-section-in.c: Likewise.
1157 * lto-section-out.c: Likewise.
1158 * lto-streamer-in.c: Likewise.
1159 * lto-streamer-out.c: Likewise.
1160 * mode-switching.c: Likewise.
1161 * modulo-sched.c: Likewise.
1162 * omp-low.c: Likewise.
1163 * optabs.c: Likewise.
1164 * passes.c: Likewise.
1165 * postreload-gcse.c: Likewise.
1166 * postreload.c: Likewise.
1167 * predict.c: Likewise.
1168 * profile.c: Likewise.
1169 * recog.c: Likewise.
1171 * reg-stack.c: Likewise.
1172 * regcprop.c: Likewise.
1173 * reginfo.c: Likewise.
1174 * regrename.c: Likewise.
1175 * reload.c: Likewise.
1176 * reload1.c: Likewise.
1177 * reorg.c: Likewise.
1178 * resource.c: Likewise.
1179 * rtlanal.c: Likewise.
1180 * sched-deps.c: Likewise.
1181 * sched-ebb.c: Likewise.
1182 * sched-rgn.c: Likewise.
1183 * sel-sched-dump.c: Likewise.
1184 * sel-sched-ir.c: Likewise.
1185 * sel-sched.c: Likewise.
1186 * shrink-wrap.c: Likewise.
1187 * simplify-rtx.c: Likewise.
1188 * statistics.c: Likewise.
1190 * stor-layout.c: Likewise.
1191 * store-motion.c: Likewise.
1192 * symtab.c: Likewise.
1193 * targhooks.c: Likewise.
1194 * toplev.c: Likewise.
1195 * trans-mem.c: Likewise.
1196 * tree-cfg.c: Likewise.
1197 * tree-cfgcleanup.c: Likewise.
1198 * tree-dfa.c: Likewise.
1199 * tree-eh.c: Likewise.
1200 * tree-inline.c: Likewise.
1201 * tree-into-ssa.c: Likewise.
1202 * tree-nested.c: Likewise.
1203 * tree-nrv.c: Likewise.
1204 * tree-profile.c: Likewise.
1205 * tree-ssa-alias.c: Likewise.
1206 * tree-ssa-ccp.c: Likewise.
1207 * tree-ssa-copy.c: Likewise.
1208 * tree-ssa-copyrename.c: Likewise.
1209 * tree-ssa-dom.c: Likewise.
1210 * tree-ssa-operands.c: Likewise.
1211 * tree-ssa-propagate.c: Likewise.
1212 * tree-ssa-structalias.c: Likewise.
1213 * tree-ssa-tail-merge.c: Likewise.
1214 * tree-ssa-threadedge.c: Likewise.
1215 * tree-ssa-threadupdate.c: Likewise.
1216 * tree-ssa-uncprop.c: Likewise.
1217 * tree-ssa-uninit.c: Likewise.
1218 * tree-ssa.c: Likewise.
1219 * tree-stdarg.c: Likewise.
1220 * tree-tailcall.c: Likewise.
1223 * valtrack.c: Likewise.
1224 * varasm.c: Likewise.
1225 * vmsdbgout.c: Likewise.
1227 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1228 * config/alpha/alpha.c: Likewise.
1229 * config/arc/arc.c: Likewise.
1230 * config/arm/arm.c: Likewise.
1231 * config/avr/avr-log.c: Likewise.
1232 * config/avr/avr.c: Likewise.
1233 * config/bfin/bfin.c: Likewise.
1234 * config/c6x/c6x.c: Likewise.
1235 * config/cr16/cr16.c: Likewise.
1236 * config/cris/cris.c: Likewise.
1237 * config/darwin.c: Likewise.
1238 * config/epiphany/epiphany.c: Likewise.
1239 * config/epiphany/mode-switch-use.c: Likewise.
1240 * config/epiphany/resolve-sw-modes.c: Likewise.
1241 * config/fr30/fr30.c: Likewise.
1242 * config/frv/frv.c: Likewise.
1243 * config/h8300/h8300.c: Likewise.
1244 * config/i386/i386.c: Likewise.
1245 * config/ia64/ia64.c: Likewise.
1246 * config/iq2000/iq2000.c: Likewise.
1247 * config/lm32/lm32.c: Likewise.
1248 * config/m32c/m32c.c: Likewise.
1249 * config/m32r/m32r.c: Likewise.
1250 * config/m68k/m68k.c: Likewise.
1251 * config/mcore/mcore.c: Likewise.
1252 * config/mep/mep-pragma.c: Likewise.
1253 * config/mep/mep.c: Likewise.
1254 * config/microblaze/microblaze.c: Likewise.
1255 * config/mips/mips.c: Likewise.
1256 * config/mmix/mmix.c: Likewise.
1257 * config/mn10300/mn10300.c: Likewise.
1258 * config/moxie/moxie.c: Likewise.
1259 * config/msp430/msp430.c: Likewise.
1260 * config/nds32/nds32-cost.c: Likewise.
1261 * config/nds32/nds32-fp-as-gp.c: Likewise.
1262 * config/nds32/nds32-intrinsic.c: Likewise.
1263 * config/nds32/nds32-isr.c: Likewise.
1264 * config/nds32/nds32-md-auxiliary.c: Likewise.
1265 * config/nds32/nds32-memory-manipulation.c: Likewise.
1266 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1267 * config/nds32/nds32-predicates.c: Likewise.
1268 * config/nds32/nds32.c: Likewise.
1269 * config/nios2/nios2.c: Likewise.
1270 * config/pa/pa.c: Likewise.
1271 * config/pdp11/pdp11.c: Likewise.
1272 * config/rl78/rl78.c: Likewise.
1273 * config/rs6000/rs6000.c: Likewise.
1274 * config/rx/rx.c: Likewise.
1275 * config/s390/s390.c: Likewise.
1276 * config/score/score.c: Likewise.
1277 * config/sh/sh.c: Likewise.
1278 * config/sparc/sparc.c: Likewise.
1279 * config/spu/spu.c: Likewise.
1280 * config/stormy16/stormy16.c: Likewise.
1281 * config/tilegx/tilegx.c: Likewise.
1282 * config/tilepro/tilepro.c: Likewise.
1283 * config/v850/v850.c: Likewise.
1284 * config/vax/vax.c: Likewise.
1285 * config/xtensa/xtensa.c: Likewise.
1287 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1289 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1290 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1292 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1294 * config/sh/sh-protos.h (fldi_ok): Remove.
1295 * config/sh/sh.c (fldi_ok): Likewise.
1296 (sh_secondary_reload): Don't use fldi_ok.
1297 * config/sh/constraints.md (G constraint, H constraint): Don't use
1300 2014-10-16 Martin Liska <mliska@suse.cz>
1302 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1303 Cast to unsigned long.
1304 (sem_item_optimizer::dump_cong_classes): Likewise.
1306 2014-10-16 Tom de Vries <tom@codesourcery.com>
1308 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1309 with SSA_NAME_IN_FREELIST.
1311 2014-10-16 Richard Biener <rguenther@suse.de>
1314 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1315 (fold_builtin_strncat_chk): Move ...
1316 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1317 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1319 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1322 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1325 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1326 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1327 Anna Tikhonova <anna.tikhonova@intel.com>
1328 Ilya Tocar <ilya.tocar@intel.com>
1329 Andrey Turetskiy <andrey.turetskiy@intel.com>
1330 Ilya Verbin <ilya.verbin@intel.com>
1331 Kirill Yukhin <kirill.yukhin@intel.com>
1332 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1334 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1337 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1338 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1339 Anna Tikhonova <anna.tikhonova@intel.com>
1340 Ilya Tocar <ilya.tocar@intel.com>
1341 Andrey Turetskiy <andrey.turetskiy@intel.com>
1342 Ilya Verbin <ilya.verbin@intel.com>
1343 Kirill Yukhin <kirill.yukhin@intel.com>
1344 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1346 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1347 V16SI, V32HI, V64QI modes.
1349 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1352 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1353 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1355 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1356 to match fp insn patterns.
1357 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1359 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1360 expand_df_unop, expand_df_binop): Remove.
1361 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1362 FPSCR_STAT_REG as not call clobbered.
1363 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1364 invoking fpscr_set_from_mem.
1366 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1367 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1369 (REGISTER_NAMES): Adjust.
1370 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1371 (FIRST_PSEUDO_REGISTER): Increase to 156.
1372 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1373 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1375 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1376 FPSCR_MODES_REG and FPSCR_STAT_REG.
1377 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1379 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1380 FPSCR_SZ): Add new constants.
1381 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1383 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1384 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1385 Use TARGET_FPU_ANY condition.
1386 (fpu_switch peephole2): Remove.
1387 (fpu_switch split): Use simple_mem_operand to capture the mem and
1388 adjust split implementation.
1389 (extend_psi_si, truncate_si_psi): New insns.
1390 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1391 set of FPSCR_MODES_REG.
1393 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1394 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1395 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1396 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1397 call_value_compact, call_value_compact_rettramp, call,
1398 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1399 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1400 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1401 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1402 call_value_pop_compact_rettramp, various unnamed splits):
1403 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1406 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1407 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1408 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1409 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1410 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1412 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1413 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1414 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1415 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1416 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1417 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1418 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1420 2014-10-16 Martin Liska <mliska@suse.cz>
1421 Jan Hubicka <hubicka@ucw.cz>
1423 * Makefile.in: New object files included.
1424 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1426 (verify_edge_corresponds_to_fndecl): More sensitive verification
1427 of nodes that are merged by IPA ICF.
1428 * cgraph.h (cgraph_node::num_references): New function.
1429 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1430 * common.opt: New options ipa-icf, ipa-icf-functions and
1431 ipa-icf-variables introduced.
1432 * doc/invoke.texi: Documentation of new options introduced.
1433 * ipa-icf-gimple.c: New file.
1434 * ipa-icf-gimple.h: New file.
1435 * ipa-icf.c: New file.
1436 * ipa-icf.h: New file.
1437 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1438 (input_overwrite_node): Likewise.
1439 * lto-section-in.c: New icf section added.
1440 * lto-streamer.h (enum lto_section_type): Likewise.
1441 * opts.c (common_handle_option): New option added.
1442 * passes.def: New pass included.
1443 * timevar.def: Time variable for IPA ICF added.
1444 * tree-pass.h: New IPA ICF pass entry point added.
1446 2014-10-16 Richard Biener <rguenther@suse.de>
1448 PR tree-optimization/63168
1449 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1450 latches if after merging they are no longer simple.
1451 * cfghooks.c (merge_blocks): Handle merging a latch block
1454 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1456 Anna Tikhonova <anna.tikhonova@intel.com>
1457 Ilya Tocar <ilya.tocar@intel.com>
1458 Andrey Turetskiy <andrey.turetskiy@intel.com>
1459 Ilya Verbin <ilya.verbin@intel.com>
1460 Kirill Yukhin <kirill.yukhin@intel.com>
1461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1463 * config/i386/sse.md
1464 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1465 support AVX-512VL instructions.
1467 2014-10-16 DJ Delorie <dj@redhat.com>
1469 * tree-core.h: Fix comment to not assume pointers are multiples of
1472 2014-10-15 Tom Tromey <tromey@redhat.com>
1474 * timevar.h (class auto_timevar): New class.
1476 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1479 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1480 Remove the second alternative.
1481 (regprefix): Remove mode attribute.
1482 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1483 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1486 2013-11-05 Ian Lance Taylor <iant@google.com>
1488 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1489 If possible, add .cfi directives to record change to bx.
1490 * config/i386/i386.c (ix86_emit_cfi): New function.
1491 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1493 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1496 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1498 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1501 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1503 PR rtl-optimization/63448
1504 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1505 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1506 (LRA_MAX_INHERITANCE_PASSES): Use it.
1507 (lra_constraint_iter_after_spill): Remove.
1508 (lra_assignment_iter): New.
1509 (lra_assignment_iter_after_spill): New.
1510 * lra-assigns.c (lra_assignment_iter): New.
1511 (lra_assignment_iter_after_spill): New.
1512 (former_reload_pseudo_spill_p): New.
1513 (spill_for): Set up former_reload_pseudo_spill_p.
1514 (setup_live_pseudos_and_spill_after_risky): Ditto.
1515 (assign_by_spills): Ditto.
1516 (lra_assign): Increment lra_assignment_iter. Print the iteration
1517 number. Reset former_reload_pseudo_spill_p. Check
1518 lra_assignment_iter_after_spill.
1519 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1520 lra_assignment_iter and lra_assignment_iter_after_spill.
1521 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1522 (lra_constraints): Remove code with
1523 lra_assignment_iter_after_spill.
1525 2014-10-15 Teresa Johnson <tejohnson@google.com>
1528 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1531 2014-10-15 Renlin Li <renlin.li@arm.com>
1533 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1534 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1535 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1536 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1538 2014-10-15 Richard Biener <rguenther@suse.de>
1540 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1541 SSA form up-to-date when devirtualizing a call to
1542 __builtin_unreachable and avoid fixing up EH info here.
1544 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1545 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1546 Anna Tikhonova <anna.tikhonova@intel.com>
1547 Ilya Tocar <ilya.tocar@intel.com>
1548 Andrey Turetskiy <andrey.turetskiy@intel.com>
1549 Ilya Verbin <ilya.verbin@intel.com>
1550 Kirill Yukhin <kirill.yukhin@intel.com>
1551 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1553 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1554 to support AVX-512BW.
1555 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1556 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1557 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1558 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1559 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1560 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1561 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1562 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1563 (define_insn "*andnot<mode>3"): Ditto.
1564 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1565 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1566 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1567 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1568 (define_insn "*abs<mode>2"): Remove masking support.
1569 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1570 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1571 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1573 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1574 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1575 Anna Tikhonova <anna.tikhonova@intel.com>
1576 Ilya Tocar <ilya.tocar@intel.com>
1577 Andrey Turetskiy <andrey.turetskiy@intel.com>
1578 Ilya Verbin <ilya.verbin@intel.com>
1579 Kirill Yukhin <kirill.yukhin@intel.com>
1580 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1582 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1583 * config/i386/sse.md
1584 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1585 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1586 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1587 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1588 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1589 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1590 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1592 2014-10-15 Renlin Li <renlin.li@arm.com>
1594 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1596 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1598 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1599 MINUS_EXPR in unsigned type to avoid undefined behavior.
1601 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1603 * stor-layout.c (self_referential_size): Do not promote arguments.
1605 2014-10-15 Marek Polacek <polacek@redhat.com>
1607 * doc/invoke.texi: Update to reflect that GNU11 is the default
1609 * c-common.h (c_language_kind): Update comment.
1611 2014-10-15 Richard Biener <rguenther@suse.de>
1613 * hash-table.c: Include bconfig.h if building for the host.
1614 * hash-table.h: Do not include ggc.h on the host but just declare
1615 a few ggc allocation templates.
1617 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1618 Jeff Law <law@redhat.com>
1620 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1621 multiple hard registers, use smaller mode derived from MODE.
1623 2014-10-15 Andreas Schwab <schwab@suse.de>
1625 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1626 as ATTRIBUTE_UNUSED.
1628 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1630 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1631 (decide_unrolling): ... this one.
1632 (peel_loops_completely): Remove.
1633 (decide_peel_simple): Remove.
1634 (decide_peel_once_rolling): Remove.
1635 (decide_peel_completely): Remove.
1636 (peel_loop_simple): Remove.
1637 (peel_loop_completely): Remove.
1638 (unroll_and_peel_loops): Rename to ...
1639 (unroll_loops): ... this one; handle only unrolling.
1640 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1643 (unroll_and_peel_loops): Remove.
1644 (unroll_loops): New.
1645 * passes.def: Replace
1646 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1647 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1648 rtl_unroll_and_peel_loops): Rename to ...
1649 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1650 (pass_rtl_unroll_and_peel_loops): Rename to ...
1651 (pass_rtl_unroll_loops): ... this one.
1652 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1653 (make_pass_rtl_unroll_loops): New.
1654 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1655 (canonicalize_loop_induction_variables): Update.
1657 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1659 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1660 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1661 !TARGET_HARD_FLOAT_POSTINC.
1662 (*lsip, *ssip): new instructions.
1664 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1666 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1669 2014-10-14 Andrew Pinski <apinski@cavium.com>
1671 * explow.c (convert_memory_address_addr_space): Rename to ...
1672 (convert_memory_address_addr_space_1): This. Add in_const argument.
1673 Inside a CONST RTL, permute the conversion and addition of constant
1674 for zero and sign extended pointers.
1675 (convert_memory_address_addr_space): New function.
1677 2014-10-14 Andrew Pinski <apinski@cavium.com>
1680 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1683 * explow.c (convert_memory_address_addr_space): Also permute the
1684 conversion and addition of constant for zero-extend.
1686 2014-10-14 DJ Delorie <dj@redhat.com>
1688 * config/msp430/msp430-modes.def (PSI): Add.
1690 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1691 (msp430_hard_regno_nregs_with_padding): New.
1692 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1693 (msp430_hard_regno_nregs_has_padding): New.
1694 (msp430_hard_regno_nregs_with_padding): New.
1695 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1696 (msp430_addr_space_legitimate_address_p): New.
1697 (msp430_asm_integer): New.
1698 (msp430_init_dwarf_reg_sizes_extra): New.
1699 (msp430_print_operand): Use X suffix for PSImode even in small model.
1700 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1701 (PTR_SIZE): ...but 4 bytes for EH.
1702 (SIZE_TYPE): Use __int20.
1703 (PTRDIFF_TYPE): Likewise.
1704 (INCOMING_FRAME_SP_OFFSET): Adjust.
1705 * config/msp430/msp430.md (movqi_topbyte): New.
1706 (movpsi): Use fixed suffixes.
1707 (movsipsi2): Enable for 430X, not large model.
1708 (extendhipsi2): Likewise.
1709 (zero_extendhisi2): Likewise.
1710 (zero_extendhisipsi2): Likewise.
1711 (extend_and_shift1_hipsi2): Likewise.
1712 (extendpsisi2): Likewise.
1713 (*bitbranch<mode>4_z): Fix suffix logic.
1715 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1718 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1719 do not choke on null node.
1720 <VAR_DECL>: Likewise.
1722 2014-10-14 DJ Delorie <dj@redhat.com>
1724 * machmode.h (int_n_data_t): New.
1725 (int_n_enabled_p): New.
1727 * tree.c (int_n_enabled_p): New.
1729 (make_or_reuse_type): Check for all __intN types, not just
1731 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1733 * tree.h (int128_integer_type_node): Remove.
1734 (int128_unsigned_type_node): Remove.
1735 (int_n_trees_t): New.
1736 (int_n_enabled_p): New.
1738 * toplev.c (standard_type_bitsize): New.
1739 (do_compile): Check which __intN types are enabled for the current
1741 * builtin-types.def (BT_INT128): Remove.
1742 (BT_UINT128): Remove.
1743 * machmode.def: Add macro to create __int128 for all targets.
1744 * stor-layout.c (mode_for_size): Support __intN types.
1745 (smallest_mode_for_size): Likewise.
1746 (initialize_sizetypes): Support __intN types.
1747 * genmodes.c (struct mode_data): Add int_n field.
1748 (blank_mode): Likewise.
1751 (emit_insn_modes_h): Count __intN entries and define
1753 (emit_mode_int_n): New.
1754 (emit_insn_modes_c): Call it.
1755 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1756 types, not just __int128.
1757 * tree-core.h (integer_type_kind): Remove __int128-specific
1758 entries, reserve spots for __intN entries.
1760 * config/msp430/msp430-modes.def (PSI): Add.
1762 2014-10-14 Kito Cheng <kito@0xlab.org>
1764 * ira.c: Fix typo in comment.
1766 * ira-build.c: Ditto.
1767 * ira-color.c: Ditto.
1768 * ira-emit.c: Ditto.
1770 * ira-lives.c: Ditto.
1772 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1774 PR rtl-optimization/63475
1775 * alias.c (true_dependence_1): Always use get_addr to extract
1776 true address operands from x_addr and mem_addr. Use extracted
1777 address operands to check for references with alignment ANDs.
1778 Use extracted address operands with find_base_term and
1779 base_alias_check. For noncanonicalized operands call canon_rtx with
1780 extracted address operand.
1781 (write_dependence_1): Ditto.
1782 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1784 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1787 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1790 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1791 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1792 Anna Tikhonova <anna.tikhonova@intel.com>
1793 Ilya Tocar <ilya.tocar@intel.com>
1794 Andrey Turetskiy <andrey.turetskiy@intel.com>
1795 Ilya Verbin <ilya.verbin@intel.com>
1796 Kirill Yukhin <kirill.yukhin@intel.com>
1797 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1799 * config/i386/i386.c
1800 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1801 (ix86_expand_int_vcond): Ditto.
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/i386.c
1813 (emit_reduc_half): Handle V64QI and V32HI mode.
1814 * config/i386/sse.md
1815 (define_mode_iterator VI_AVX512BW): New.
1816 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1818 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1820 Anna Tikhonova <anna.tikhonova@intel.com>
1821 Ilya Tocar <ilya.tocar@intel.com>
1822 Andrey Turetskiy <andrey.turetskiy@intel.com>
1823 Ilya Verbin <ilya.verbin@intel.com>
1824 Kirill Yukhin <kirill.yukhin@intel.com>
1825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1827 * config/i386/sse.md
1828 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1830 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1832 Anna Tikhonova <anna.tikhonova@intel.com>
1833 Ilya Tocar <ilya.tocar@intel.com>
1834 Andrey Turetskiy <andrey.turetskiy@intel.com>
1835 Ilya Verbin <ilya.verbin@intel.com>
1836 Kirill Yukhin <kirill.yukhin@intel.com>
1837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1839 * config/i386/i386.c
1840 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1841 * config/i386/sse.md
1842 (define_mode_iterator VI): Add V64QI and V32HI modes.
1844 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1846 Anna Tikhonova <anna.tikhonova@intel.com>
1847 Ilya Tocar <ilya.tocar@intel.com>
1848 Andrey Turetskiy <andrey.turetskiy@intel.com>
1849 Ilya Verbin <ilya.verbin@intel.com>
1850 Kirill Yukhin <kirill.yukhin@intel.com>
1851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1853 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1855 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1857 Anna Tikhonova <anna.tikhonova@intel.com>
1858 Ilya Tocar <ilya.tocar@intel.com>
1859 Andrey Turetskiy <andrey.turetskiy@intel.com>
1860 Ilya Verbin <ilya.verbin@intel.com>
1861 Kirill Yukhin <kirill.yukhin@intel.com>
1862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1864 * config/i386/sse.md
1865 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1866 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1868 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1870 Anna Tikhonova <anna.tikhonova@intel.com>
1871 Ilya Tocar <ilya.tocar@intel.com>
1872 Andrey Turetskiy <andrey.turetskiy@intel.com>
1873 Ilya Verbin <ilya.verbin@intel.com>
1874 Kirill Yukhin <kirill.yukhin@intel.com>
1875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1877 * config/i386/sse.md
1878 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1879 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1881 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1883 Anna Tikhonova <anna.tikhonova@intel.com>
1884 Ilya Tocar <ilya.tocar@intel.com>
1885 Andrey Turetskiy <andrey.turetskiy@intel.com>
1886 Ilya Verbin <ilya.verbin@intel.com>
1887 Kirill Yukhin <kirill.yukhin@intel.com>
1888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1890 * config/i386/sse.md
1891 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1892 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1893 (define_expand "mul<mode>3<mask_name>"): Add masking.
1894 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1895 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1896 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1897 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1898 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1899 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1900 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1901 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1902 (define_insn "avx2_packusdw"): Delete.
1903 (define_insn "sse4_1_packusdw"): Ditto.
1904 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1906 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1908 Anna Tikhonova <anna.tikhonova@intel.com>
1909 Ilya Tocar <ilya.tocar@intel.com>
1910 Andrey Turetskiy <andrey.turetskiy@intel.com>
1911 Ilya Verbin <ilya.verbin@intel.com>
1912 Kirill Yukhin <kirill.yukhin@intel.com>
1913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1915 * config/i386/sse.md
1916 (define_insn "vec_dup<mode>"): Update constraints.
1918 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1920 Anna Tikhonova <anna.tikhonova@intel.com>
1921 Ilya Tocar <ilya.tocar@intel.com>
1922 Andrey Turetskiy <andrey.turetskiy@intel.com>
1923 Ilya Verbin <ilya.verbin@intel.com>
1924 Kirill Yukhin <kirill.yukhin@intel.com>
1925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1927 * config/i386/sse.md
1928 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1929 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1930 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1932 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1933 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1934 Anna Tikhonova <anna.tikhonova@intel.com>
1935 Ilya Tocar <ilya.tocar@intel.com>
1936 Andrey Turetskiy <andrey.turetskiy@intel.com>
1937 Ilya Verbin <ilya.verbin@intel.com>
1938 Kirill Yukhin <kirill.yukhin@intel.com>
1939 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1941 * config/i386/sse.md
1942 (define_expand "mul<mode>3<mask_name>"): Add masking.
1944 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1946 Anna Tikhonova <anna.tikhonova@intel.com>
1947 Ilya Tocar <ilya.tocar@intel.com>
1948 Andrey Turetskiy <andrey.turetskiy@intel.com>
1949 Ilya Verbin <ilya.verbin@intel.com>
1950 Kirill Yukhin <kirill.yukhin@intel.com>
1951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1953 * config/i386/sse.md
1954 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1955 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
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_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1968 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1969 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1972 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1974 Anna Tikhonova <anna.tikhonova@intel.com>
1975 Ilya Tocar <ilya.tocar@intel.com>
1976 Andrey Turetskiy <andrey.turetskiy@intel.com>
1977 Ilya Verbin <ilya.verbin@intel.com>
1978 Kirill Yukhin <kirill.yukhin@intel.com>
1979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1981 * config/i386/sse.md
1982 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1983 use VF_128_256 mode iterator and update assembler emit code.
1984 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1985 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1986 Add masking, use VF_128_256 mode iterator.
1987 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1988 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1989 Add masking, use VF_128_256 mode iterator and update assembler emit
1991 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1992 (define_mode_attr avx512flogicsuff): Delete.
1993 (define_insn "avx512f_<logic><mode>"): Ditto.
1994 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1996 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
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/sse.md
2008 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2009 (define_expand "vashr<mode>3<mask_name>"): Add masking,
2010 use VI12_128 mode iterator.
2011 (define_expand "ashrv2di3<mask_name>"): New.
2013 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2015 Anna Tikhonova <anna.tikhonova@intel.com>
2016 Ilya Tocar <ilya.tocar@intel.com>
2017 Andrey Turetskiy <andrey.turetskiy@intel.com>
2018 Ilya Verbin <ilya.verbin@intel.com>
2019 Kirill Yukhin <kirill.yukhin@intel.com>
2020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2022 * config/i386/i386.c
2023 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2024 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2025 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2026 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2027 CODE_FOR_avx512vl_ucmpv4si3_mask.
2028 * config/i386/sse.md
2029 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2030 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2032 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2033 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2034 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2035 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2036 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2037 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2039 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2041 Anna Tikhonova <anna.tikhonova@intel.com>
2042 Ilya Tocar <ilya.tocar@intel.com>
2043 Andrey Turetskiy <andrey.turetskiy@intel.com>
2044 Ilya Verbin <ilya.verbin@intel.com>
2045 Kirill Yukhin <kirill.yukhin@intel.com>
2046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2048 * config/i386/sse.md
2049 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2050 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2051 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2052 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2053 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2054 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2055 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2056 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2057 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2059 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2060 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2061 Anna Tikhonova <anna.tikhonova@intel.com>
2062 Ilya Tocar <ilya.tocar@intel.com>
2063 Andrey Turetskiy <andrey.turetskiy@intel.com>
2064 Ilya Verbin <ilya.verbin@intel.com>
2065 Kirill Yukhin <kirill.yukhin@intel.com>
2066 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2068 * config/i386/sse.md
2069 (define_insn "avx512f_blendm<mode>"): Delete.
2070 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2071 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2072 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2073 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2075 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2078 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2081 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2083 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2084 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2085 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2086 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2089 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2092 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2094 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2097 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2100 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2103 2014-10-14 Richard Biener <rguenther@suse.de>
2105 PR tree-optimization/63512
2106 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2109 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2112 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2113 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2115 (negsf2_i): Rename to *negsf2_i.
2116 (abssf2_i): Rename to *abssf2_i.
2117 (negdf2_i): Rename to *negdf2_i.
2118 (absdf2_i): Rename to *absdf2_i.
2120 2014-10-14 Felix Yang <felix.yang@huawei.com>
2121 Jeff Law <law@redhat.com>
2123 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2124 "replace" into boolean bitfields; turn member "loop_depth" into a short
2125 integer; add new member "no_equiv" and "reserved".
2126 (no_equiv): Set no_equiv of struct equivalence if register is marked
2127 as having no known equivalence.
2128 (update_equiv_regs): Check all definitions for a multiple-set
2129 register to make sure that the RHS have the same value.
2131 2014-10-13 Richard Henderson <rth@redhat.com>
2133 * combine-stack-adj.c (no_unhandled_cfa): New.
2134 (maybe_merge_cfa_adjust): New.
2135 (combine_stack_adjustments_for_block): Use them.
2137 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2139 * Makefile.in (TAGS): Tag ../include files.
2141 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2143 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2144 to rs6000_dbx_register_number.
2145 (DWARF_FRAME_REGNUM): Redefine as identity map.
2146 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2147 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2148 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2149 argument to handle .debug_frame and .eh_frame directly. Always
2150 translate SPE high register numbers. Add special treatment for CR,
2151 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2153 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2154 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2155 (RS6000_USE_DWARF_NUMBERING): Define.
2156 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2157 (RS6000_USE_DWARF_NUMBERING): Define.
2158 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2159 (RS6000_USE_DWARF_NUMBERING): Define.
2160 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2161 (RS6000_USE_DWARF_NUMBERING): Define.
2162 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2163 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2165 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2167 * config/i386/i386.c (ix86_address_cost): Lower cost for
2168 when address contains GOT register.
2170 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2171 Vladimir Makarov <vmakarov@redhat.com>
2175 PR rtl-optimization/55458
2176 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2177 (ix86_init_pic_reg): New.
2178 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2179 (ix86_save_reg): Likewise.
2180 (ix86_expand_prologue): Remove PIC register initialization
2181 now performed in ix86_init_pic_reg.
2182 (ix86_output_function_epilogue): Add check on pseudo register.
2183 (set_pic_reg_ever_alive): New.
2184 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2185 set_pic_reg_ever_alive.
2186 (legitimize_tls_address): Likewise.
2187 (ix86_pic_register_p): New check.
2188 (ix86_delegitimize_address): Add check on pseudo register.
2189 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2190 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2191 (TARGET_INIT_PIC_REG): New.
2192 (TARGET_USE_PSEUDO_PIC_REG): New.
2193 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2194 if pic_offset_table_rtx exists.
2195 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2197 * doc/tm.texi: Regenerate.
2198 * function.c (assign_parms): Generate pseudo register for PIC.
2199 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2201 * ira-color.c (color_pass): Add check on pseudo register.
2202 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2204 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2206 (ira): Add target specific PIC register initialization.
2207 (do_reload): Keep PIC pseudo register.
2208 * lra-assigns.c (spill_for): Add checks on pseudo register.
2209 * lra-constraints.c (contains_symbol_ref_p): New.
2210 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2212 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2213 * target.def (use_pseudo_pic_reg): New.
2214 (init_pic_reg): New.
2216 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2218 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2219 Remove m_SILVERMONT and m_INTEL from the tune.
2221 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2224 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2225 when _HPUX_SOURCE is defined.
2227 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2229 PR tree-optimization/62127
2230 * tree.c (remap_type_1): When remapping array, remap
2233 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2235 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2236 longer impact parallelization.
2238 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2241 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2243 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2245 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2247 2014-10-13 Richard Biener <rguenther@suse.de>
2249 PR tree-optimization/63419
2250 * gimple-fold.h (gimple_convert): New function.
2251 * gimple-fold.c (gimple_convert): Likewise.
2252 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2253 to split out required conversions early.
2255 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2257 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2258 Add the parts of an insn in reverse order, with the pattern at
2259 the top of the queue. Detect when we're iterating over a SEQUENCE
2260 pattern and in that case just consider patterns of subinstructions.
2262 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2265 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2267 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2269 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2270 address. Use def chains to handle GBR clobbering call insns.
2272 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2274 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2275 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2276 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2277 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2278 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2279 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2280 * doc/gty.texi (for_user): Document new option.
2281 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2283 (walk_type): Don't error out on for_user option.
2284 (write_func_for_structure): Emit user marking routines if requested by
2286 (write_local_func_for_structure): Likewise.
2287 (main): Mark types with for_user option as used.
2288 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2289 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2290 * hash-table.h (ggc_hasher): New struct.
2291 (hash_table::create_ggc): New function.
2292 (gt_pch_nx): New overload for hash_table.
2294 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2296 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2297 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2298 * config/sh/sh.c: Likewise.
2299 * config/sh/sh-mem.cc: Likewise.
2300 * config/sh/sh.md: Likewise.
2301 * config/sh/predicates.md: Likewise.
2302 * config/sh/sync.md: Likewise.
2304 2014-10-11 Martin Liska <mliska@suse.cz>
2307 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2308 for call_cgraph_insertion_hooks added.
2310 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2313 * stor-layout.c (min_align_of_type): Don't decrease alignment
2314 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2315 TYPE_USER_ALIGN is set.
2317 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2319 PR rtl-optimization/63483
2320 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2321 references when alignment ANDs are involved.
2322 (write_dependence_p): Ditto.
2323 (may_alias_p): Ditto.
2325 2014-10-10 Marek Polacek <polacek@redhat.com>
2327 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2328 * doc/invoke.texi: Document -fsanitize=object-size.
2329 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2330 or it into SANITIZE_UNDEFINED.
2331 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2332 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2333 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2334 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2335 * ubsan.c: Include tree-object-size.h.
2336 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2337 (ubsan_expand_bounds_ifn): Use false instead of 0.
2338 (ubsan_expand_objsize_ifn): New function.
2339 (instrument_object_size): New function.
2340 (pass_ubsan::execute): Add object size instrumentation.
2341 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2343 2014-10-10 Richard Henderson <rth@redhat.com>
2346 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2347 Restrict the set of expressions we're willing to move.
2349 2014-10-10 Jeff Law <law@redhat.com>
2351 * ira.c (struct equivalence): Promote INIT_INSNs field to
2352 an rtx_insn_list. Add comments.
2353 (no_equiv): Promote LIST to an rtx_insn_list. Update
2354 testing for and creating the special marker. Use methods
2355 to extract the insn and next pointers. Promote INSN to an
2357 (update_equiv_regs): Update test for special marker in the
2360 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2362 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2363 * configure: Regenerate.
2364 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2365 TARGET_FIX_ERR_A53_835769_DEFAULT.
2366 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2368 * doc/install.texi (aarch64*-*-*): Document
2369 new --enable-fix-cortex-a53-835769 option.
2371 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2372 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2374 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2375 (ADJUST_INSN_LENGTH): Define.
2376 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2377 * config/aarch64/aarch64.c (is_mem_p): New function.
2378 (is_memory_op): Likewise.
2379 (aarch64_prev_real_insn): Likewise.
2380 (is_madd_op): Likewise.
2381 (dep_between_memop_and_curr): Likewise.
2382 (aarch64_madd_needs_nop): Likewise.
2383 (aarch64_final_prescan_insn): Likewise.
2384 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2385 and -mno-fix-cortex-a53-835769 options.
2387 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2389 PR tree-optimization/63464
2390 * tree-switch-conversion.c (struct case_bit_test): Remove
2391 hi and lo fields, add wide_int mask field.
2392 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2393 hi/lo fields into wide_int mask operations, optimize by pretending
2394 minval to be 0 if maxval is small enough.
2395 (process_switch): Adjust caller.
2397 2014-10-10 Richard Biener <rguenther@suse.de>
2399 PR tree-optimization/63379
2400 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2401 a neutral operand for min/max when it is not a reduction chain.
2403 2014-10-10 Richard Biener <rguenther@suse.de>
2405 PR tree-optimization/63476
2406 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2407 (BB_LIVE_VOP_ON_EXIT): New define.
2408 (create_expression_by_pieces): Assign VUSEs to stmts.
2409 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2410 (pass_pre::execute): Assert virtual SSA form is up-to-date
2413 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2415 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2417 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2419 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2422 2014-10-09 Richard Biener <rguenther@suse.de>
2424 PR tree-optimization/63380
2425 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2428 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2430 * config/avr/avr.opt (mmcu=): Change to have a string value.
2431 (mn-flash=, mskip-bug, march=, mrmw): New options.
2432 (HeaderInclude): New.
2433 (mmcu=): Remove Var / Init clauses.
2434 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2436 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2437 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2438 (SYMBOL_FLAG_IO_LOW): Define.
2439 (avr_device_to_as, avr_device_to_ld): Don't declare.
2440 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2441 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2442 (EXTRA_SPEC_FUNCTIONS): Don't define.
2443 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2444 (LINK_SPEC): Translate -arch= option to -m= option.
2445 Don't use device_to_ld / device_to_data_start.
2446 (STARTFILE_SPEC): Now empty.
2447 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2448 * config/avr/gen-avr-mmcu-specs.c: New file.
2449 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2450 (s-device-specs): Likewise.
2451 (GCC_PASSES): Add s-device-specs.
2452 (install-driver): Depend on install-device-specs.
2453 (install-device-specs): New rule.
2454 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2455 avr_arch_index and provide fallback initialization for avr_n_flash.
2456 (varasm.h): #include.
2457 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2458 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2459 (avr_attribute_table): Add "io", "address" and "io_low".
2460 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2461 Add special handling for symbols with "io" and/or "address" attributes.
2462 (avr_asm_asm_output_aligned_bss): New function.
2463 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2464 as appropriate. Handle io_low attribute.
2465 (avr_out_sbxx_branch): Handle symbolic io addresses.
2466 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2467 avr_n_flash instead of avr_current_device->n_flash.
2468 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2469 (avr_emit_movmemhi): Likewise.
2470 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2471 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2472 Don't define avr_current_device->macro (that's the specfile's job).
2473 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2474 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2475 * config/avr/avr.md (*cpse.ne): Likewise.
2476 (mov<mode>): Use avr_eval_addr_attrib.
2477 (cbi): Change constraint for low_io_address_operand operand to "i".
2478 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2479 * config/avr/predicates.md (io_address_operand):
2480 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2481 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2482 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2484 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2485 * config/avr/genmultilib.awk: Use -march=.
2486 Remove Multilib matches processing.
2487 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2488 * config/avr/avr-arch.h: Add double include guard.
2489 (avr_mcu_t) <library_name>: Update comment.
2490 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2491 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2492 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2493 (avr_device_to_sp8): Likewise.
2494 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2496 * doc/extend.texi (io, address): Document new AVR variable attributes.
2499 2014-10-09 Marek Polacek <polacek@redhat.com>
2501 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2503 2014-10-08 Richard Biener <rguenther@suse.de>
2505 PR tree-optimization/61969
2506 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2509 2014-10-09 Richard Biener <rguenther@suse.de>
2511 PR tree-optimization/63445
2512 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2513 overflow for non-equality compares.
2515 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2517 PR rtl-optimization/57003
2518 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2519 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2520 killing regs_invalidated_by_call.
2522 2014-10-08 Teresa Johnson <tejohnson@google.com>
2525 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2526 (ssa_fix_duplicate_block_edges): Invoke it.
2527 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2529 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2532 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2533 atomic_fetch_<fetchop_name>si_hard,
2534 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2535 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2536 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2537 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2539 2014-10-08 Rong Xu <xur@google.com>
2541 * gcov-tool.c (profile_overlap): New driver function
2542 to compute profile overlap.
2543 (print_overlap_usage_message): New.
2544 (overlap_usage): New.
2546 (print_usage): Add calls to overlap function.
2548 * doc/gcov-tool.texi: Add documentation.
2550 2014-10-08 Steve Ellcey <sellcey@mips.com>
2552 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2553 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2555 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2557 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2558 pattern matching of MEM_REF.
2559 (check_stmt_for_type_change): Update.
2561 2014-10-08 Steve Ellcey <sellcey@mips.com>
2563 * config/mips/linux64.h: Remove.
2564 * config/mips/gnu-user64.h: Remove.
2565 * gcc.config (mips*-*-*): Remove references to linux64.h and
2567 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2568 with modified version from gnu-user64.h.
2569 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2570 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2571 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2573 (GNU_USER_LINK_EMULATION64): Ditto.
2574 (GNU_USER_LINK_EMULATIONN32): Ditto.
2575 (GLIBC_DYNAMIC_LINKER32): Ditto.
2576 (GLIBC_DYNAMIC_LINKER64): Ditto.
2577 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2578 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2579 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2580 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2581 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2582 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2583 (GLIBC_DYNAMIC_LINKER): Delete.
2584 (UCLIBC_DYNAMIC_LINKER): Delete.
2586 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2587 Richard Biener <rguenther@suse.de>
2589 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2590 Get address space from operand 0 (BASE).
2592 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2595 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2597 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2599 * dwarf2out.c: Remove current_function_has_inlines.
2600 (gen_subprogram_die): Same.
2601 (gen_inlined_subroutine_die): Same.
2603 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2605 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2607 (_addcarry_u64): Ditto.
2608 (_addcarryx_u64): Ditto.
2610 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2612 * cgraph.h (cgraph_node::get_fun): Declare.
2613 * cgraph.c (cgraph_node::get_fun): New method.
2614 * ipa-inline.c (can_inline_edge_p): Use it.
2616 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2618 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2619 and -ftrapping-math.
2620 * lto-wrapper.c (merge_and_complain): Likewise.
2621 (run_gcc): Likewise.
2623 2014-10-06 Rong Xu <xur@google.com>
2625 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2626 * tree-profile.c: (params.h): New include.
2627 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2628 and __gcov_indirect_call_topn_counters for
2629 indirect_call_topn_profile.
2630 (gimple_init_edge_profiler): New decls for
2631 __gcov_indirect_call_topn_profiler.
2632 (gimple_gen_ic_profiler): Generate the correct profiler call.
2633 (gimple_gen_ic_func_profiler): Fix format.
2634 * value-prof.c (params.h): New include.
2635 (dump_histogram_value): Hanlde indirect_call_topn counters.
2636 (stream_in_histogram_value): Ditto.
2637 (gimple_indirect_call_to_profile): Use indirect_call_topn
2638 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2639 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2641 * value-prof.h (enum hist_type): Histrogram type for
2642 indirect_call_topn counters.
2643 * profile.c (instrument_values): Instrument
2644 indirect_call_topn counters.
2646 2014-10-06 Rong Xu <xur@google.com>
2648 * Makefile.in: Fix dependence.
2649 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2650 indirect call topn profiler.
2653 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2655 * calls.c (expand_call): Do not use the target as the return slot if
2656 it is not sufficiently aligned.
2658 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2660 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2661 discussion of permutes and why we don't handle them.
2663 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2665 * config/sparc/predicates.md (int_register_operand): Delete.
2667 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2669 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2671 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2673 * ubsan.h (ubsan_get_source_location): New prototype.
2674 * ubsan.c (ubsan_source_location_type): New variable.
2675 Function renamed to ...
2676 (ubsan_get_source_location_type): ... this. Cache
2677 return value in ubsan_source_location_type variable.
2678 (ubsan_source_location, ubsan_create_data): Use
2679 ubsan_get_source_location_type instead of
2680 ubsan_source_location_type.
2681 * asan.c (asan_protect_global): Don't protect globals
2682 with ubsan_get_source_location_type () type.
2683 (asan_add_global): Provide global decl location info
2686 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2688 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2691 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2693 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2695 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2697 (ipa_polymorphic_call_context::dump): Fix formating.
2698 (walk_ssa_copies): Add logic avoiding loops; update uses.
2699 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2701 2014-10-02 Mark Wielaard <mjw@redhat.com>
2704 * dwarf2out.c (gen_subprogram_die): When a member function is
2705 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2706 * langhooks.h (struct lang_hooks_for_decls): Add
2707 function_decl_deleted_p langhook.
2708 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2709 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2711 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2713 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2714 NULL pointer checks.
2715 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2716 if type doesn't change.
2717 * cgraph.h (cgraph_indirect_call_info): New flag.
2718 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2719 (cgraph_node::dump): Dump it.
2720 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2721 of context.get_dynamic_type.
2722 (ipa_make_edge_direct_to_target): Do not speculate
2723 edge that is already speuclative.
2724 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2725 speculate to __builtin_unreachable
2726 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2728 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2730 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2732 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2733 get_dynamic_type; drop TODO.
2734 * ipa-polymorphic-call.c
2735 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2736 for otr_type to be unknown.
2738 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2740 * common/config/score/score-common.c: Remove.
2741 * config.gcc: Remove support for score-*.
2742 * config/score/constraints.md: Remove.
2743 * config/score/elf.h: Remove.
2744 * config/score/predicates.md: Remove.
2745 * config/score/score-conv.h: Remove.
2746 * config/score/score-generic.md: Remove.
2747 * config/score/score-modes.def: Remove.
2748 * config/score/score-protos.h: Remove.
2749 * config/score/score.c: Remove.
2750 * config/score/score.h: Remove.
2751 * config/score/score.md: Remove.
2752 * config/score/score.opt: Remove.
2753 * doc/md.texi: Don't document score-*.
2755 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2758 * genconditions.c: Directly include ggc.h before rtl.h.
2760 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2762 * ipa-polymorphic-call.c
2763 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2764 code determining speculative type.
2765 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2767 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2769 * altivec.md (altivec_lvsl): New define_expand.
2770 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2771 (altivec_lvsr): New define_expand.
2772 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2773 * rs6000.c (rs6000_expand_builtin): Change to use
2774 altivec_lvs[lr]_direct; remove commented-out code.
2776 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2779 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2780 little endian target.
2782 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2784 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2786 * tree-pretty-print.h (dump_location): Declare.
2787 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2788 (pp_gimple_stmt_1): Likewise.
2789 (dump_implicit_edges): Likewise.
2790 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2794 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2796 * gcc.c (driver::global_initializations): Remove "const" so
2797 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2798 and decoded_options_count.
2800 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2802 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2804 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2805 TARGET_E500_DOUBLE case here.
2807 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2812 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2814 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2816 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2817 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2818 in_polymorphic_cdtor
2819 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2820 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2821 * cgraphclones.c (cgraph_edge::clone): Likewise.
2822 * ipa-prop.c (update_jump_functions_after_inlining,
2823 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2824 to possible_dynamic_type_change.
2825 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2826 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2827 IN_POLY_CDOTR argument.
2829 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2830 for BASE and OUTER_TYPE being NULL.
2831 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2832 in_poly_cdtor parameter.
2834 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2836 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2837 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2839 (expand_vec_perm_1): Likewise.
2841 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2842 Uros Bizjak <ubizjak@gmail.com>
2844 PR tree-optimization/61403
2845 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2846 error in comment. Also optimize 256-bit vectors for AVX2
2847 or AVX (floating vectors only), provided the first permutation
2848 can be performed in one insn.
2850 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2852 * gcc.c (class driver): New class.
2853 (main): Reimplement in terms of driver::main, moving most of the
2854 locals to be locals within individual methods of class driver.
2855 The remaining locals "explicit_link_files", "decoded_options" and
2856 "decoded_options_count" are used by multiple driver:: methods, and
2857 so become member data. Doing so isolates the argc/argv reads and
2858 writes. Replace "goto out" with a special exit code from
2859 new method driver::prepare_infiles. Split out the old
2860 implementation of main into the following...
2861 (driver::main): New function, corresponding to the old "main"
2863 (driver::set_progname): New function, taken from the old
2864 "main" implementation.
2865 (driver::expand_at_files): Likewise.
2866 (driver::decode_argv): Likewise.
2867 (driver::global_initializations): Likewise.
2868 (driver::build_multilib_strings): Likewise.
2869 (driver::set_up_specs): Likewise.
2870 (driver::putenv_COLLECT_GCC): Likewise.
2871 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2872 (driver::handle_unrecognized_options): Likewise.
2873 (driver::maybe_print_and_exit): Likewise.
2874 (driver::prepare_infiles): Likewise.
2875 (driver::do_spec_on_infiles): Likewise.
2876 (driver::maybe_run_linker): Likewise.
2877 (driver::final_actions): Likewise.
2878 (driver::get_exit_code): Likewise.
2880 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2882 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2883 don't emit empty ctors.
2885 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2887 * convert.c (convert_to_integer): Do not introduce useless conversions
2888 between integral types.
2890 2014-10-03 David Sherwood <david.sherwood@arm.com>
2892 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2894 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2896 * lra-constraints.c (inherit_in_ebb): Handle calls with
2897 multiple return values.
2898 * caller-save.c (save_call_clobbered_regs): Likewise.
2900 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2902 * tree-vect-data-refs.c (vect_permute_load_chain,
2903 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2904 suffle3 to shuffle3.
2907 * omp-low.c (taskreg_contexts): New variable.
2908 (scan_omp_parallel): Push newly created context into taskreg_contexts
2909 vector and move record layout code to finish_taskreg_scan.
2910 (scan_omp_task): Likewise.
2911 (finish_taskreg_scan): New function.
2912 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2913 vector elements and release it.
2916 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2917 of palignr arguments can't be used due to min 0 or max - min
2918 too high, try also op0, op1 order of palignr arguments.
2920 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2922 * cgraph.h (ipa_polymorphic_call_context):
2923 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2924 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2925 * ipa-polymorphic-call.c
2926 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2927 past end of dynamic types.
2928 (ipa_polymorphic_call_context::stream_out,
2929 speculative_outer_type): Stream dynamic flag.
2930 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2931 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2933 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2935 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2936 * ipa-prop.c (update_jump_functions_after_inlining,
2937 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2939 2014-10-02 Teresa Johnson <tejohnson@google.com>
2941 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2942 up when synthesizing counts to avoid rounding errors.
2944 2014-10-02 Teresa Johnson <tejohnson@google.com>
2947 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2948 asserts to handle incoming insanities.
2950 2014-10-02 Martin Jambor <mjambor@suse.cz>
2952 PR tree-optimization/63375
2953 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2956 2014-10-02 Olivier Hainque <hainque@adacore.com>
2958 * Makefile.in (CROSS): Define, to @CROSS.
2960 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2963 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2964 if it expands to a single insn only.
2965 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2966 fail unless in_order is true. Add forward declaration.
2967 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2968 is useful for one_operand_p.
2969 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2971 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2973 * cgraphclones.c (build_function_type_skip_args): Do not make new
2974 type variant of old.
2976 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2978 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2979 when speculation is added.
2980 (ipa_edge_args): Add polymorphic_call_contexts.
2981 (ipa_get_ith_polymorhic_call_context): New accesor.
2982 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2983 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2984 (ipa_compute_jump_functions_for_edge): Compute contexts.
2985 (update_jump_functions_after_inlining): Update contexts.
2986 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2987 update dumping; add speculative edge creation.
2988 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2990 (update_indirect_edges_after_inlining): Pass down context.
2991 (ipa_edge_duplication_hook): Duplicate contexts.
2992 (ipa_write_node_info): Stream out contexts.
2993 (ipa_read_node_info): Stream in contexts.
2994 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2996 (try_speculative_devirtualization): New function.
2997 * ipa-utils.h (try_speculative_devirtualization): Declare.
2999 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3001 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3004 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3006 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3009 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3011 * ipa-polymorphic-call.c
3012 (ipa_polymorphic_call_context::restrict_to_inner_class):
3013 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3014 use speculation_consistent_p to do so; Add CONSDER_BASES
3015 and CONSIDER_PLACEMENT_NEW parameters.
3016 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3017 short circuit obvious cases.
3018 (ipa_polymorphic_call_context::dump): Improve formatting.
3019 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3020 combine_speculation_with to record speculations; Do not ICE when
3021 object is located in pointer type decl; do not ICE for methods
3022 of UNION_TYPE; do not record nonpolymorphic types.
3023 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3024 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3025 (ipa_polymorphic_call_context::combine_with): New method.
3026 (ipa_polymorphic_call_context::make_speculative): Move here; use
3027 combine speculation.
3028 * cgraph.h (ipa_polymorphic_call_context): Update
3029 restrict_to_inner_class prototype; add offset_by, make_speculative,
3030 combine_with, useless_p, combine_speculation_with and
3031 speculation_consistent_p methods.
3032 (ipa_polymorphic_call_context::offset_by): New method.
3033 (ipa_polymorphic_call_context::useless_p): New method.
3035 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3037 PR rtl-optimization/62151
3038 * combine.c (can_combine_p): Allow the destination register of INSN
3039 to be clobbered in I3.
3040 (subst): Do not substitute into clobbers of registers.
3042 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3045 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3046 offset, TARGET_MEM_REF and SSA_NAME.
3048 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3049 256-bit vectors for TARGET_AVX2.
3051 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3055 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3056 argument to avx2_permv2ti.
3058 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3060 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3062 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3064 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3065 (fmod<mode>3): Ditto.
3066 (fpremxf4_i387): Ditto.
3067 (reminderxf3): Ditto.
3068 (reminder<mode>3): Ditto.
3069 (fprem1xf4_i387): Ditto.
3071 2014-09-30 Teresa Johnson <tejohnson@google.com>
3073 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3074 duplicate_blocks bitmap.
3075 (remove_ctrl_stmt_and_useless_edges): Ditto.
3076 (create_block_for_threading): Ditto.
3077 (compute_path_counts): New function.
3078 (update_profile): Ditto.
3079 (recompute_probabilities): Ditto.
3080 (update_joiner_offpath_counts): Ditto.
3081 (freqs_to_counts_path): Ditto.
3082 (clear_counts_path): Ditto.
3083 (ssa_fix_duplicate_block_edges): Update profile info.
3084 (ssa_create_duplicates): Pass new parameter.
3085 (ssa_redirect_edges): Remove old profile update.
3086 (thread_block_1): New duplicate_blocks bitmap,
3087 remove old profile update.
3088 (thread_single_edge): Pass new parameter.
3090 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3093 * varasm.c (decode_reg_name_and_count): Check availability for
3094 registers from ADDITIONAL_REGISTER_NAMES.
3096 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3099 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3100 (PLUGIN_HEADERS): Add pass-instances.def.
3102 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3104 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3106 * config/aarch64/aarch64-simd.md
3107 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3108 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3109 (vqdmulls_lane_s32): Fix return type.
3110 (vqdmulls_laneq_s32): New.
3112 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3115 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3116 or invert_jump_1 if jump isn't any_condjump_p.
3118 2014-09-30 Terry Guo <terry.guo@arm.com>
3120 * config/arm/arm-cores.def (cortex-m7): New core name.
3121 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3123 * config/arm/arm-tables.opt: Regenerated.
3124 * config/arm/arm-tune.md: Regenerated.
3125 * config/arm/arm.h (TARGET_VFP5): New macro.
3126 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3127 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3128 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3129 * doc/invoke.texi: Document new cpu and fpu names.
3131 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3133 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3134 before sinking insn.
3136 2014-09-30 David Sherwood <david.sherwood@arm.com>
3138 * ira-int.h (ira_allocno): Add "wmode" field.
3139 * ira-build.c (create_insn_allocnos): Add new "parent" function
3141 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3142 that cannot be accessed in wmode.
3144 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3146 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3149 2014-09-29 Andi Kleen <ak@linux.intel.com>
3151 * opts.c (print_filtered_help): Print --param min/max/default
3154 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3156 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3158 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3160 * tree-vrp.c (get_single_symbol): New function.
3161 (build_symbolic_expr): Likewise.
3162 (symbolic_range_based_on_p): New predicate.
3163 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3164 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3165 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3166 operand is symbolic and based on the other operand.
3168 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3170 * config/microblaze/microblaze.md (call_internal1): Use VOID
3171 instead of SI to fix "((void (*)(void)) 0)()" issue
3173 2014-09-29 Nick Clifton <nickc@redhat.com>
3175 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3176 CLOBBER rtx for naked functions.
3177 (msp430_expand_epilogue): Likewise.
3178 (msp430_use_f5_series_hwmult): Cache result.
3179 (use_32bit_hwmult): Cache result.
3180 (msp430_no_hwmult): New function.
3181 (msp430_output_labelref): Use it.
3183 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3186 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3187 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3188 use the alignment of avar rather than ovar.
3190 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3192 * config/pa/pa.c (pa_output_function_epilogue): Only update
3193 last_address when a nonnote insn is found.
3195 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3198 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3200 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3203 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3204 fix pasto in checking array size.
3206 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3209 * passes.def (pass_tracer): Move before last dominator pass.
3211 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3213 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3215 (run_attempt): Handle errors of "pex_run" invocation.
3217 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3219 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3221 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3222 (TARGET_ASAN_SHADOW_OFFSET): Define.
3224 2014-09-26 Martin Liska <mliska@suse.cz>
3226 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3228 * cgraph.h: Likewise.
3229 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3230 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3231 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3232 * tree-ssa-alias.h: Likewise.
3234 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3235 Max Ostapenko <m.ostapenko@partner.samsung.com>
3237 * common.opt: New option.
3238 * doc/invoke.texi: Describe new option.
3239 * gcc.c (execute): Don't free first string early, but at the end
3240 of the function. Call retry_ice if compiler exited with
3242 (main): Factor out common code.
3243 (print_configuration): New function.
3244 (files_equal_p): Likewise.
3245 (check_repro): Likewise.
3246 (run_attempt): Likewise.
3247 (do_report_bug): Likewise.
3248 (append_text): Likewise.
3249 (try_generate_repro): Likewise
3251 2014-09-25 Andi Kleen <ak@linux.intel.com>
3253 * config/i386/i386.c (x86_print_call_or_nop): New function.
3254 (x86_function_profiler): Support -mnop-mcount and
3256 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3257 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3259 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3261 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3262 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3263 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3266 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3268 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3269 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3270 types_odr_comparable): Declare.
3271 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3272 * ipa-polymorphic-call.c: New file.
3273 (contains_polymorphic_type_p, possible_placement_new,
3274 ipa_polymorphic_call_context::restrict_to_inner_class,
3275 contains_type_p, decl_maybe_in_construction_p,
3276 ipa_polymorphic_call_context::stream_out,
3277 ipa_polymorphic_call_context::debug,
3278 ipa_polymorphic_call_context::stream_in,
3279 ipa_polymorphic_call_context::set_by_decl,
3280 ipa_polymorphic_call_context::set_by_invariant,
3282 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3283 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3284 extr_type_from_vtbl_ptr_store, record_known_type
3285 check_stmt_for_type_change,
3286 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3288 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3289 and streamer-hooks.h
3290 (contains_polymorphic_type_p, possible_placement_new,
3291 ipa_polymorphic_call_context::restrict_to_inner_class,
3292 contains_type_p, decl_maybe_in_construction_p,
3293 ipa_polymorphic_call_context::stream_out,
3294 ipa_polymorphic_call_context::debug,
3295 ipa_polymorphic_call_context::stream_in,
3296 ipa_polymorphic_call_context::set_by_decl,
3297 ipa_polymorphic_call_context::set_by_invariant,
3299 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3300 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3301 extr_type_from_vtbl_ptr_store, record_known_type
3302 check_stmt_for_type_change,
3303 ipa_polymorphic_call_context::get_dynamic_type): Move to
3304 ipa-polymorphic-call.c
3305 (type_all_derivations_known_p, types_odr_comparable,
3306 types_must_be_same_for_odr): Export.
3307 (type_known_to_have_no_deriavations_p): New function.
3308 * Makefile.in: Add ipa-polymorphic-call.c
3310 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3312 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3314 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3315 (possible_polymorphic_call_targets): Instead of computing both
3316 speculative and non-speculative answers, do just one at a time.
3317 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3318 (dump_targets): Break out from ...
3319 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3320 and non-speculative lists.
3321 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3322 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3324 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3326 PR rtl-optimization/63348
3327 * emit-rtl.c (try_split): Do not emit extra barrier.
3329 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3331 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3332 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3334 (aarch64_<sur>shll2_n<mode>): Likewise.
3335 (aarch64_<sur>shr_n<mode>): Likewise.
3336 (aarch64_<sur>sra_n<mode>: Likewise.
3337 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3338 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3339 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3340 * config/aarch64/iterators.md (ve_mode): New.
3341 (offsetlr): Remap to infix text for use in new predicates.
3342 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3343 (aarch64_simd_shift_imm_hi): Likewise.
3344 (aarch64_simd_shift_imm_si): Likewise.
3345 (aarch64_simd_shift_imm_di): Likewise.
3346 (aarch64_simd_shift_imm_offset_qi): Likewise.
3347 (aarch64_simd_shift_imm_offset_hi): Likewise.
3348 (aarch64_simd_shift_imm_offset_si): Likewise.
3349 (aarch64_simd_shift_imm_offset_di): Likewise.
3350 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3351 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3352 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3353 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3355 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3357 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3358 new created BB as the intersection of live-in from "old_dest" and
3361 2014-09-25 Felix Yang <felix.yang@huawei.com>
3363 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3364 * genautomata.c (merge_states): Ditto.
3366 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3369 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3370 in instruction sequence.
3372 2014-09-25 Nick Clifton <nickc@redhat.com>
3375 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3376 in instruction sequence.
3378 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3381 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3382 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3384 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3385 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3386 Anna Tikhonova <anna.tikhonova@intel.com>
3387 Ilya Tocar <ilya.tocar@intel.com>
3388 Andrey Turetskiy <andrey.turetskiy@intel.com>
3389 Ilya Verbin <ilya.verbin@intel.com>
3390 Kirill Yukhin <kirill.yukhin@intel.com>
3391 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3393 * config/i386/sse.md
3394 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3395 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3396 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3397 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3398 Use VI8F_256_512 mode iterator.
3399 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3400 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3402 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3404 Anna Tikhonova <anna.tikhonova@intel.com>
3405 Ilya Tocar <ilya.tocar@intel.com>
3406 Andrey Turetskiy <andrey.turetskiy@intel.com>
3407 Ilya Verbin <ilya.verbin@intel.com>
3408 Kirill Yukhin <kirill.yukhin@intel.com>
3409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3411 * config/i386/sse.md
3412 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3413 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3414 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3415 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3416 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3417 (define_insn "*vec_concatv2df"): Add EVEX version.
3419 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3420 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3421 Anna Tikhonova <anna.tikhonova@intel.com>
3422 Ilya Tocar <ilya.tocar@intel.com>
3423 Andrey Turetskiy <andrey.turetskiy@intel.com>
3424 Ilya Verbin <ilya.verbin@intel.com>
3425 Kirill Yukhin <kirill.yukhin@intel.com>
3426 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3428 * config/i386/sse.md
3429 (define_insn "vec_set<mode>_0"): Add EVEX version.
3431 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3432 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3433 Anna Tikhonova <anna.tikhonova@intel.com>
3434 Ilya Tocar <ilya.tocar@intel.com>
3435 Andrey Turetskiy <andrey.turetskiy@intel.com>
3436 Ilya Verbin <ilya.verbin@intel.com>
3437 Kirill Yukhin <kirill.yukhin@intel.com>
3438 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3440 * config/i386/sse.md
3442 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3444 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3445 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3446 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3447 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3448 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3449 (define_expand "sse2_cvtpd2ps_mask): New.
3450 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3451 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3453 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3454 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3455 Anna Tikhonova <anna.tikhonova@intel.com>
3456 Ilya Tocar <ilya.tocar@intel.com>
3457 Andrey Turetskiy <andrey.turetskiy@intel.com>
3458 Ilya Verbin <ilya.verbin@intel.com>
3459 Kirill Yukhin <kirill.yukhin@intel.com>
3460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3462 * config/i386/i386.c
3463 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3464 (ufix_notruncv8dfv8si2_mask_round): ... this.
3465 * config/i386/sse.md
3466 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3467 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3468 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3469 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3470 (define_expand "sse2_cvtpd2dq"): Delete.
3471 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3472 make 2nd operand const0 vector.
3473 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3475 (define_mode_attr pd2udqsuff): New.
3477 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3478 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3479 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3480 (define_expand "sse2_cvttpd2dq"): Ditto.
3481 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3482 make 2nd operand const0 vector.
3484 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3486 PR tree-optimization/63341
3487 * tree-vectorizer.h (vect_create_data_ref_ptr,
3488 vect_create_addr_base_for_vector_ref): Add another tree argument
3489 defaulting to NULL_TREE.
3490 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3491 argument, pass it down to vect_create_addr_base_for_vector_ref.
3492 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3493 add that to base_offset too if non-NULL.
3494 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3495 for dr_explicit_realign_optimized set it to vector byte size
3496 - 1 instead of setting offset, pass byte_offset down to
3497 vect_create_data_ref_ptr.
3499 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3501 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3502 forgotten debug output; canonicalize querries more wtih LTO.
3504 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3506 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3507 ipa-utils.h; add stream_int and stream_out methods.
3508 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3509 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3510 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3512 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3513 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3514 ipa_polymorphic_call_context::clear_speculation,
3515 ipa_polymorphic_call_context::clear_outer_type): Move here from
3517 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3518 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3519 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3520 ipa_polymorphic_call_context::clear_speculation,
3521 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3522 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3524 (ipa_polymorphic_call_context::stream_out): New method.
3525 (ipa_polymorphic_call_context::stream_in): New method.
3526 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3527 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3529 (ipa_analyze_call_uses): Simplify.
3530 (update_indirect_edges_after_inlining): Do not care about outer_type.
3531 (ipa_write_indirect_edge_info): Update.
3532 (ipa_write_indirect_edge_info): Likewise.
3533 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3534 (dump_edge_flags): Break out from ...
3535 (cgraph_node::dump): ... here; dump indirect edges.
3537 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3539 * ipa-utils.h (polymorphic_call_context): Add
3540 metdhos dump, debug and clear_outer_type.
3541 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3542 (ipa_polymorphic_call_context::clear_outer_type): New method.
3543 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3544 * ipa-devirt.c (types_odr_comparable): New function.
3545 (types_must_be_same_for_odr): New function.
3546 (odr_subtypes_equivalent_p): Simplify.
3547 (possible_placement_new): Break out from ...
3548 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3549 be more cuatious about returning false in cases the context may be
3550 valid in derived type or via placement new.
3551 (contains_type_p): Clear maybe_derived_type
3552 (ipa_polymorphic_call_context::dump): New method.
3553 (ipa_polymorphic_call_context::debug): New method.
3554 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3555 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3556 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3557 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3558 to suceed on all valid cases; remove confused sanity check.
3559 (dump_possible_polymorphic_call_targets): Simplify.
3561 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3563 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3564 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3565 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3566 varpool.c: Rename all instances of DECL_ABSTRACT to
3569 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3571 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3572 special handling for stores whose SET_SRC is an UNSPEC (such as
3575 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3577 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3578 !REG_P (src) to release more instruction sink opportunities.
3580 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3582 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3583 move costs for 128-bit types.
3585 2014-09-24 Martin Jambor <mjambor@suse.cz>
3587 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3588 when duplicating a PASS_THROUGH jump function when creating a
3591 2014-09-24 Marek Polacek <polacek@redhat.com>
3595 * asan.c (maybe_instrument_call): Add default case.
3596 * ipa-pure-const.c (special_builtin_state): Likewise.
3597 * predict.c (expr_expected_value_1): Likewise.
3598 * lto-streamer-out.c (write_symbol): Initialize variable.
3600 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3602 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3604 (vmuld_laneq_f64): Likewise.
3605 (vmuls_lane_f32): Likewise.
3606 (vmuls_laneq_f32): Likewise.
3608 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3611 * varpool.c (varpool_node::add): Pass decl attributes
3612 to lookup_attribute.
3614 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3617 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3619 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3621 PR tree-optimization/63266
3622 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3623 marker for unknown byte value.
3624 (MARKER_MASK): New macro.
3625 (MARKER_BYTE_UNKNOWN): New macro.
3626 (HEAD_MARKER): New macro.
3627 (do_shift_rotate): Mark bytes with unknown values due to sign
3628 extension when doing an arithmetic right shift. Replace hardcoded
3629 mask for marker by new MARKER_MASK macro.
3630 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3631 numbers accordingly.
3633 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3634 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3635 Anna Tikhonova <anna.tikhonova@intel.com>
3636 Ilya Tocar <ilya.tocar@intel.com>
3637 Andrey Turetskiy <andrey.turetskiy@intel.com>
3638 Ilya Verbin <ilya.verbin@intel.com>
3639 Kirill Yukhin <kirill.yukhin@intel.com>
3640 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3642 * config/i386/sse.md
3644 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3646 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3647 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3649 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3651 Anna Tikhonova <anna.tikhonova@intel.com>
3652 Ilya Tocar <ilya.tocar@intel.com>
3653 Andrey Turetskiy <andrey.turetskiy@intel.com>
3654 Ilya Verbin <ilya.verbin@intel.com>
3655 Kirill Yukhin <kirill.yukhin@intel.com>
3656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3658 * config/i386/sse.md
3659 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3660 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3661 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3662 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3663 (define_expand "avx512vl_pshuflw_mask"): New.
3664 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3665 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3666 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3667 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3668 (define_expand "avx512vl_pshufhw_mask"): New.
3669 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3671 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3672 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3673 Anna Tikhonova <anna.tikhonova@intel.com>
3674 Ilya Tocar <ilya.tocar@intel.com>
3675 Andrey Turetskiy <andrey.turetskiy@intel.com>
3676 Ilya Verbin <ilya.verbin@intel.com>
3677 Kirill Yukhin <kirill.yukhin@intel.com>
3678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3680 * config/i386/i386.c
3681 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3682 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3683 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3684 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3685 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3686 * config/i386/sse.md
3687 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3689 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3690 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3692 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3693 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3694 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3695 (define_expand "avx512vl_pshufd_mask"): New.
3696 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3698 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3699 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3700 Anna Tikhonova <anna.tikhonova@intel.com>
3701 Ilya Tocar <ilya.tocar@intel.com>
3702 Andrey Turetskiy <andrey.turetskiy@intel.com>
3703 Ilya Verbin <ilya.verbin@intel.com>
3704 Kirill Yukhin <kirill.yukhin@intel.com>
3705 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3707 * config/i386/i386.c
3708 (CODE_FOR_avx2_extracti128): Rename to ...
3709 (CODE_FOR_avx_vextractf128v4di): this.
3710 (CODE_FOR_avx2_inserti128): Rename to ...
3711 (CODE_FOR_avx_vinsertf128v4di): this.
3712 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3713 CODE_FOR_avx_vextractf128v4di.
3714 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3715 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3716 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3717 CODE_FOR_avx512vl_vinsertv8si.
3718 * config/i386/sse.md
3720 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3721 AVX512_VEC mode iterator.
3723 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3726 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3727 AVX512_VEC_2 mode iterator.
3728 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3729 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3730 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3731 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3732 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3733 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3734 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3735 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3736 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3737 (define_expand "avx2_extracti128"): Delete.
3738 (define_expand "avx2_inserti128"): Ditto.
3740 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3742 Anna Tikhonova <anna.tikhonova@intel.com>
3743 Ilya Tocar <ilya.tocar@intel.com>
3744 Andrey Turetskiy <andrey.turetskiy@intel.com>
3745 Ilya Verbin <ilya.verbin@intel.com>
3746 Kirill Yukhin <kirill.yukhin@intel.com>
3747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3749 * config/i386/sse.md
3750 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3751 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3752 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3753 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3754 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3755 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3756 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3757 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3758 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3759 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3760 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3761 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3762 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3764 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3766 PR rtl-optimization/63210
3767 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3768 HARD_REGNO is not available for CONFLICT_A.
3770 2014-09-23 Andi Kleen <ak@linux.intel.com>
3772 * cgraph.h (symtab_node): Add no_reorder attribute.
3773 (symbol_table::output_asm_statements): Remove.
3774 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3775 (cgraph_node::create_version_clone): Dito.
3776 (symbol_table::output_asm_statements): Remove.
3777 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3778 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3779 (output_in_order): Add no_reorder flag. Only handle no_reorder
3781 (symbol_table::compile): Add separate pass for no_reorder nodes.
3782 (process_common_attributes): Set no_reorder flag in symtab node.
3784 (process_function_and_variable_attributes): Pass symtab nodes to
3785 process_common_attributes.
3786 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3787 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3788 (lto_output_varpool_node): Dito.
3789 (input_overwrite_node): Dito.
3790 (input_varpool_node): Dito.
3791 * varpool.c (varpool_node::add): Set no_reorder attribute.
3792 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3793 (symbol_table::output_variables): Dito.
3794 * symtab.c (symtab_node::dump_base): Print no_reorder.
3796 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3798 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3801 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3803 * configure: Regenerate.
3805 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3807 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3808 when result_mode == shift_mode.
3810 2014-09-23 Kostya Serebryany <kcc@google.com>
3812 Update to match the changed asan API.
3813 * asan.c (asan_global_struct): Update the __asan_global definition
3814 to match the new API.
3815 (asan_add_global): Ditto.
3816 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3819 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3821 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3822 refine the constraints used on 32/64-bit floating point moves.
3824 (f64_vsx): Likewise.
3827 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3828 (BOOL_REGS_OP1): Likewise.
3829 (BOOL_REGS_OP2): Likewise.
3830 (BOOL_REGS_UNARY): Likewise.
3831 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3832 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3833 for moves involving VSX registers. Do not use constraints that
3834 target VSX registers for decimal types.
3835 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3836 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3838 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3840 * tree.h (int_bit_position): Turn into inline function;
3841 implement using wide int.
3842 * tree.c (int_bit_position): Remove.
3844 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3847 * target-globals.c (target_globals::~target_globals): Fix location
3848 of ira_int destruction.
3850 2014-09-23 Renlin Li <renlin.li@arm.com>
3852 * config/aarch64/aarch64.md (return): New.
3853 (simple_return): Likewise.
3854 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3855 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3857 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3859 * common/config/aarch64/aarch64-common.c:
3860 (default_options aarch_option_optimization_table):
3861 Default to -fsched-pressure.
3863 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3865 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3866 with LABEL_PRESERVE_P flag set.
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_shufpd256<mask_expand4_name>"): Add masking.
3879 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3880 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3881 (define_insn "sse2_shufpd_v2df_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_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3894 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3895 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3896 (define_insn "sse_shufps_v4sf_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_unpckhps256<mask_name>"): Add masking.
3909 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3910 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3911 (define_insn "unpcklps128_mask"): New.
3913 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3915 Anna Tikhonova <anna.tikhonova@intel.com>
3916 Ilya Tocar <ilya.tocar@intel.com>
3917 Andrey Turetskiy <andrey.turetskiy@intel.com>
3918 Ilya Verbin <ilya.verbin@intel.com>
3919 Kirill Yukhin <kirill.yukhin@intel.com>
3920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3922 * config/i386/sse.md
3923 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3924 (define_insn "avx512vl_unpckhpd128_mask"): New.
3925 (define_expand "avx_movddup256<mask_name>"): Add masking.
3926 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3927 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3928 (define_insn "avx512vl_unpcklpd128_mask"): New.
3930 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3932 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3933 * doc/tm.texi: Regenerate.
3934 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3935 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3936 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3938 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3939 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3940 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3941 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3942 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3944 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3945 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3946 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3947 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3948 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3949 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3950 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3951 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3952 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3953 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3954 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3957 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3959 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3960 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3961 * ipa-prop.c (struct type_change_info): Rename to ...
3962 (prop_type_change_info): ... this; update uses.
3963 * ggc-page.c (globals): Rename to ...
3964 (static struct ggc_globals): ... this; update uses.
3965 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3966 (im_mem_ref): ... this; update uses.
3967 * ggc-common.c (loc_descriptor): Rename to ...
3968 (ggc_loc_descriptor): ... this; update uses.
3969 * lra-eliminations.c (elim_table): Rename to ...
3970 (lra_elim_table): ... this; update uses.
3971 * bitmap.c (output_info): Rename to ...
3972 (bitmap_output_info): ... this; update uses.
3973 * gcse.c (expr): Rename to ...
3974 (gcse_expr) ... this; update uses.
3975 (occr): Rename to ...
3976 (gcse_occr): .. this; update uses.
3977 * tree-ssa-copy.c (prop_value_d): Rename to ...
3978 (prop_value_t): ... this.
3979 * predict.c (block_info_def): Rename to ...
3980 (block_info): ... this; update uses.
3981 (edge_info_def): Rename to ...
3982 (edge_info): ... this; update uses.
3983 * profile.c (bb_info): Rename to ...
3984 (bb_profile_info): ... this; update uses.
3985 * alloc-pool.c (output_info): Rename to ...
3986 (pool_output_info): ... this; update uses.
3987 * ipa-cp.c (topo_info): Rename to ..
3988 (ipa_topo_info): ... this; update uses.
3989 * tree-nrv.c (nrv_data): Rename to ...
3990 (nrv_data_t): ... this; update uses.
3991 * ipa-split.c (bb_info): Rename to ...
3992 (split_bb_info): ... this one.
3993 * profile.h (edge_info): Rename to ...
3994 (edge_profile_info): ... this one; update uses.
3995 * dse.c (bb_info): Rename to ...
3996 (dse_bb_info): ... this one; update uses.
3997 * cprop.c (occr): Rename to ...
3998 (cprop_occr): ... this one; update uses.
3999 (expr): Rename to ...
4000 (cprop_expr): ... this one; update uses.
4002 2014-09-22 Jason Merrill <jason@redhat.com>
4004 * Makefile.in (check-parallel-%): Add @.
4006 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4008 * config/aarch64/geniterators.sh: New.
4009 * config/aarch64/iterators.md (VDQF_DF): New.
4010 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4011 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4013 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4015 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4016 -lnosys when -msim absent.
4018 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4020 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4022 2014-09-22 Richard Biener <rguenther@suse.de>
4024 * gimplify.c (gimplify_init_constructor): Do not leave
4025 non-GIMPLE vector constructors around.
4026 * tree-cfg.c (verify_gimple_assign_single): Verify that
4027 CONSTRUCTORs have gimple elements.
4029 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4032 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4033 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4034 instead of a normal gimple assignment stmt.
4036 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4038 * config/bfin/bfin.md: Fix use of constraints in define_split.
4040 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4042 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4043 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4045 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4047 * hard-reg-set.h: Include hash-table.h.
4048 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4050 * target-globals.c (target_globals::~target_globals): Call
4051 hard_regs->finalize.
4052 * rtl.h (subreg_shape): New structure.
4053 (shape_of_subreg): New function.
4054 (simplifiable_subregs): Declare.
4055 * reginfo.c (simplifiable_subreg): New structure.
4056 (simplifiable_subregs_hasher): Likewise.
4057 (simplifiable_subregs): New function.
4058 (invalid_mode_changes): Delete.
4059 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4060 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4061 Record valid mode changes in valid_mode_changes.
4062 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4063 Update calls to record_subregs_of_mode.
4064 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4065 handling. Initialize new variables. Update call to
4066 find_subregs_of_mode.
4067 (invalid_mode_change_p): Check new variables instead of
4068 invalid_mode_changes.
4069 (finish_subregs_of_mode): Finalize new variables instead of
4070 invalid_mode_changes.
4071 (target_hard_regs::finalize): New function.
4072 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4073 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4075 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4077 * combine.c (subst): Use simplify_subreg_regno rather than
4078 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4080 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4082 * rtl.h (subreg_info): Expand commentary
4083 * rtlanal.c (subreg_get_info): Likewise.
4085 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4087 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4088 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4089 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4091 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4093 * config/arm/arm.c: #include "tm-constrs.h"
4094 (thumb1_size_rtx_costs): Adjust rtx costs.
4096 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4098 * configure.ac (target_header_dir): Move block defining
4099 this to before the block setting inhibit_libc.
4100 (inhibit_libc): When considering $with_headers, just
4101 check it it's explicitly "no". If not, also check if
4102 $target_header_dir/stdio.h is present. If not, set
4104 * configure: Regenerate.
4106 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4108 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4110 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4112 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4113 insn for divides by integer powers of two.
4114 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4115 (mod<mode>3): Fix formatting.
4116 (three anonymous define_insn and two define_split): Delete.
4118 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4120 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4121 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4122 (floatdisf2_internal2): Ditto.
4123 (ashrdi3_no_power): Ditto. Fix formatting.
4125 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4127 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4128 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4131 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4133 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4134 constant, use addsi3 directly.
4135 (three anonymous define_insn, two define_split): Delete.
4136 (sub<mode>3): Move. Do not allow constant second operand.
4137 Generate different insn for constant first operand.
4138 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4139 (subf<mode>3_imm): New.
4140 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4141 (*plus_ltu<mode>): Only handle registers.
4142 (*plus_ltu<mode>_1): New. Handle integer third operand.
4143 (*plus_gtu<mode>): Only handle registers.
4144 (*plus_gtu<mode>_1): New. Handle integer third operand.
4146 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4148 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4149 (iorxor): New code_attr.
4150 (IORXOR): New code_attr.
4151 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4152 (ior<mode>3, xor<mode>3): Delete.
4153 (<iorxor><mode>3): New.
4154 (splitter for "big" integer ior, xor): New.
4155 (*bool<mode>3): Move. Also handle AND.
4156 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4157 (splitter for "big" integer ior, xor): Delete.
4159 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4161 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4162 (two anonymous define_insn and two define_split): Delete.
4163 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4165 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4167 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4168 (two anonymous define_insn and two define_split): Delete.
4169 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4171 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4173 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4175 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4177 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4178 (input_operand): Do not allow ca_operand.
4179 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4180 carry bit, allow SImode and Pmode.
4181 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4183 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4185 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4186 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4187 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4188 (*call_rex64_ms_sysv): Remove.
4189 (*call_value_rex64_ms_sysv): Ditto.
4190 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4192 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4194 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4197 2014-09-20 Andreas Schwab <schwab@suse.de>
4199 * config/ia64/ia64.md: Remove constraints from define_split
4202 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4204 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4205 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4206 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4207 (get_dynamic_type): Remove.
4208 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4209 (clear_speculation): Bring to ipa-deivrt.h
4210 (get_class_context): Rename to ...
4211 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4212 (contains_type_p): Update.
4213 (get_dynamic_type): Rename to ...
4214 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4215 (possible_polymorphic_call_targets): UPdate.
4216 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4217 * ipa-prop.c (ipa_analyze_call_uses): Update.
4219 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4221 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4222 privatize dynamic TLS variables.
4224 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4226 * diagnostic.c (warning_n): New function.
4227 * diagnostic-core.h (warning_n): Declare.
4228 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4229 output dynamic counts when available.
4231 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4233 PR tree-optimization/63255
4234 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4235 issue in setting body_removed flag.
4237 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4240 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4241 that visibility change is possible
4242 (handle_weakref_attribute): Likewise.
4243 * cgraph.h (symtab_node): Add method get_create and
4244 field refuse_visibility_changes.
4245 (symtab_node::get_create): New method.
4246 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4247 * varasm.c (mark_weak): Verify that visibility change is
4250 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4252 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4253 for base_reg_operand to be common between LO_SUM and PLUS.
4254 (fusion_gpr_mem_combo): New predicate to match a fused address
4255 that combines the addis and memory offset address.
4257 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4259 (emit_fusion_gpr_load): Likewise.
4261 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4262 signature to pass each argument separately, rather than
4263 using an operands array. Rewrite the insns found by peephole2 to
4264 be a single insn, rather than hoping the insns will still be
4265 together when the peephole pass is done. Drop being called via a
4267 (emit_fusion_gpr_load): Change calling signature to be called from
4268 the fusion_gpr_load_<mode> insns with a combined memory address
4269 instead of the peephole pass passing the addis and offset
4272 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4274 (power8 fusion peephole): Drop support for doing power8 via a
4275 normal peephole that was created by the peephole2 pass.
4276 (power8 fusion peephole2): Create a new insn with the fused
4277 address, so that the fused operation is kept together after
4278 register allocation is done.
4279 (fusion_gpr_load_<mode>): Likewise.
4281 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4284 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4286 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4288 * recog.c (scratch_operand): Do not simply allow all hard registers:
4289 only allow those that are allocatable.
4291 2014-09-19 Felix Yang <felix.yang@huawei.com>
4293 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4294 comments and fix spacing to conform to coding style.
4296 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4298 * genrecog.c (validate_pattern): Allow empty constraints in
4301 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4303 * dwarf2out.c (decl_ultimate_origin): Update comment.
4304 * tree.c (block_ultimate_origin): Same.
4306 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4308 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4309 Update GCC version name to GCC 5.
4310 (rs6000_function_arg_boundary): Likewise.
4311 (rs6000_function_arg): Likewise.
4313 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4315 * config/sh/sh.md: Fix use of constraints in define_split.
4317 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4320 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4322 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4324 * doc/md.texi (Modifiers): Consistently use "read/write"
4325 nomenclature rather than "input/output".
4326 * genrecog.c (constraints_supported_in_insn_p): New.
4327 (validate_pattern): If needed, also check constraints on
4328 MATCH_SCRATCH operands.
4329 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4330 operands with no '=' or '+' modifier.
4332 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4334 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4335 scratch register as written.
4337 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4339 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4342 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4344 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4347 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4350 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4351 address load optimization force s390_optimize_prologue to leave it
4352 that way. Only do the optimization if we already decided to push
4353 r14 into a stack slot.
4355 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4357 * asan.c (build_check_stmt): Alignment arg was added.
4358 (asan_expand_check_ifn): Optimization for alignment >= 8.
4360 2014-09-19 Olivier Hainque <hainque@adacore.com>
4362 * config/i386/vxworksae.h: Remove obsolete definitions.
4363 (STACK_CHECK_PROTECT): Define.
4364 * config/i386/vx-common.h: Remove. Merge contents within
4365 config/i386/vxworks.h.
4366 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4369 2014-09-19 Olivier Hainque <hainque@adacore.com>
4371 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4372 * config/rs6000/t-vxworksmils: New file.
4373 * config/rs6000/vxworksmils.h: New file.
4375 2014-09-19 Olivier Hainque <hainque@adacore.com>
4377 * varasm.c (default_section_type_flags): Flag .persistent.bss
4378 sections as SECTION_BSS.
4380 2014-09-19 Nick Clifton <nickc@redhat.com>
4382 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4383 pop'ed registers so that DCE does not eliminate them.
4385 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4388 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4390 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4392 * system.h (LIBGCC2_TF_CEXT): Poison.
4393 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4394 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4395 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4396 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4397 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4398 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4399 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4400 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4401 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4403 2014-09-19 Kito Cheng <kito@0xlab.org>
4405 * except.h: Fix header guard.
4406 * addresses.h: Add missing header guard.
4407 * cfghooks.h: Likewise.
4408 * collect-utils.h: Likewise.
4409 * collect2-aix.h: Likewise.
4410 * conditions.h: Likewise.
4411 * cselib.h: Likewise.
4412 * dwarf2asm.h: Likewise.
4413 * graphds.h: Likewise.
4414 * graphite-scop-detection.h: Likewise.
4415 * gsyms.h: Likewise.
4416 * hw-doloop.h: Likewise.
4417 * incpath.h: Likewise.
4418 * ipa-inline.h: Likewise.
4419 * ipa-ref.h: Likewise.
4420 * ira-int.h: Likewise.
4422 * lra-int.h: Likewise.
4424 * lto-section-names.h: Likewise.
4425 * read-md.h: Likewise.
4426 * reload.h: Likewise.
4427 * rtl-error.h: Likewise.
4428 * sdbout.h: Likewise.
4429 * targhooks.h: Likewise.
4430 * tree-affine.h: Likewise.
4431 * xcoff.h: Likewise.
4432 * xcoffout.h: Likewise.
4434 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4437 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4440 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4443 * lra.c (lra): Call recog_init.
4445 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4448 * asan.c (transform_statements): Don't instrument clobber statements.
4450 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4452 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4453 to neon_load1_1reg<q>.
4455 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4458 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4459 if there are only debug stmts after the noreturn call, instead
4460 remove the debug stmts.
4462 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4464 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4465 (odr_types_equivalent_p): Use pair hash.
4466 (odr_subtypes_equivalent_p): Likewise, do structural compare
4467 on ODR types that may be mismatched.
4468 (warn_odr): Support warning when only one field is given.
4469 (odr_types_equivalent_p): Strenghten comparsions made;
4471 (add_type_duplicate): Update VISITED hash set.
4473 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4475 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4476 Enable selection of 'posix' or no thread model.
4478 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4480 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4481 when architecture is older than ARMv7.
4483 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4486 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4487 that fit exactly in a word or double word.
4489 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4491 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4494 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4495 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4496 Anna Tikhonova <anna.tikhonova@intel.com>
4497 Ilya Tocar <ilya.tocar@intel.com>
4498 Andrey Turetskiy <andrey.turetskiy@intel.com>
4499 Ilya Verbin <ilya.verbin@intel.com>
4500 Kirill Yukhin <kirill.yukhin@intel.com>
4501 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4503 * config/i386/i386.c
4504 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4505 * config/i386/sse.md
4506 (define_mode_iterator VI48F_256): New.
4507 (define_mode_attr extract_type): Ditto.
4508 (define_mode_attr extract_suf): Ditto.
4509 (define_mode_iterator AVX512_VEC): Ditto.
4511 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4513 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4515 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4517 (define_mode_attr extract_type_2): Ditto.
4518 (define_mode_attr extract_suf_2): Ditto.
4519 (define_mode_iterator AVX512_VEC_2): Ditto.
4521 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4522 AVX512_VEC_2 mode iterator.
4523 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4524 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4525 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4526 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4527 (define_split for V16FI mode): Ditto.
4528 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4529 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4530 (define_split for VI8F_256 mode): Ditto.
4531 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4532 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4533 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4534 (define_split for VI4F_256 mode): Ditto.
4535 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4536 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4537 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4538 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4539 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4540 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4541 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4542 Update `type' attribute, remove explicit `memory' attribute calculation.
4544 2014-09-16 Kito Cheng <kito@0xlab.org>
4546 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4547 ira_spilled_reg_stack_slots_num if using lra.
4548 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4549 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4550 make sure not using lra.
4551 (ira_reuse_stack_slot): Likewise.
4552 (ira_mark_new_stack_slot): Likewise.
4554 2014-09-15 Andi Kleen <ak@linux.intel.com>
4556 * function.c (allocate_struct_function): Force
4557 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4558 profiling is disabled.
4560 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4562 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4563 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4564 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4565 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4566 macro with statically checked member functions.
4567 * rtl.h (rtx_insn::deleted): New method.
4568 (rtx_insn::set_deleted): Likewise.
4569 (rtx_insn::set_undeleted): Likewise.
4570 (INSN_DELETED_P): Remove.
4572 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4574 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4575 result of emit_jump_insn_before to a new variable.
4576 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4577 (mark_jump_label_1): Likewise.
4578 (mark_jump_label_asm): Likewise.
4579 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4580 * rtl.h (mark_jump_label): Adjust.
4582 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4584 * Makefile.in (dg_target_exps): Remove.
4585 (check_gcc_parallelize): Change to just an upper bound number.
4586 (check-%-subtargets): Always print the non-parallelized goals.
4587 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4588 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4589 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4590 check_p_numbers6): New variables.
4591 (check_p_numbers): Set to sequence from 1 to 9999.
4592 (check_p_subdirs): Set to sequence from 1 to minimum of
4593 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4595 (check-%, check-parallel-%): Rewritten so that for parallelized
4596 testing each job runs all the *.exp files, with
4597 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4599 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4601 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4603 (arc_sets_cc_p): Likewise.
4604 * config/arc/arc.c (arc_print_operand): Use methods of
4605 "final_sequence" for clarity, and to enable strengthening of
4606 locals "jump" and "delay" from rtx to rtx_insn *.
4607 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4608 rtx_insn *; use method of rtx_sequence for typesafety.
4609 (arc_get_insn_variants): Use insn method of rtx_sequence for
4611 (arc_pad_return): Likewise.
4612 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4613 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4614 dyn_cast to rtx_sequence *, using insn method for typesafety.
4615 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4616 rtx_sequence * and use insn method when invoking get_attr_length.
4617 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4618 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4619 rtx_sequence *, introducing a local "seq", using its insn method
4620 from typesafety and clarity.
4621 (add_sched_insns_for_speculation): Strengthen local "next" from
4623 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4624 (predicate_insn): Likewise.
4625 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4627 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4628 * config/epiphany/epiphany-protos.h
4629 (extern void epiphany_insert_mode_switch_use): Likewise for param
4631 (get_attr_sched_use_fpu): Likewise for param.
4632 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4633 Likewise for param "insn".
4634 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4635 param "insn" of "target_insert_mode_switch_use" callback.
4636 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4637 (frv_issues_to_branch_unit_p): Likewise.
4638 (frv_pack_insn_p): Likewise.
4639 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4640 const rtx * (i.e. mutable rtx_def * const *) to
4642 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4643 Strengthen first param from rtx to rtx_insn *.
4644 (output_fix_trunc): Likewise.
4645 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4646 (output_fix_trunc): Likewise.
4647 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4649 (min_insn_size): Likewise for param "insn".
4650 (get_mem_group): Likewise.
4652 (get_insn_path): Likewise.
4653 (get_insn_group): Likewise.
4654 (count_num_restricted): Likewise.
4655 (fits_dispatch_window): Likewise.
4656 (add_insn_window): Likewise.
4657 (add_to_dispatch_window): Likewise.
4658 (debug_insn_dispatch_info_file): Likewise.
4659 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4661 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4662 "cmp" and local "prev".
4663 (m32c_output_compare): Likewise for param "insn".
4664 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4665 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4666 (define_predicate "large_insn_p"): Likewise.
4667 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4668 param from rtx to rtx_insn *.
4669 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4670 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4671 (m68k_sched_attr_size): Likewise.
4672 (sched_get_opxy_mem_type): Likewise for param "insn".
4673 (m68k_sched_attr_op_mem): Likewise.
4674 (sched_mem_operand_p): Likewise.
4675 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4676 * config/mep/mep.c (mep_multi_slot): Likewise.
4677 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4679 (mips_sync_loop_insns): Likewise.
4680 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4681 method of "final_sequence" for typesafety.
4682 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4684 (mips_output_sync_loop): Likewise.
4685 (mips_sync_loop_insns): Likewise.
4686 (mips_74k_agen_init): Likewise.
4687 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4689 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4690 Strengthen param "insn" from rtx to rtx_insn *.
4691 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4693 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4695 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4696 "insn". Use method of rtx_sequence for typesafety.
4697 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4699 (branch_needs_nop_p): Likewise.
4700 (use_skip_p): Likewise.
4701 (pa_insn_refs_are_delayed): Likewise.
4702 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4703 for locals "insn", "ninsn".
4704 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4706 (is_cracked_insn): Likewise.
4707 (is_branch_slot_insn): Likewise.
4708 (is_nonpipeline_insn): Likewise.
4709 (insn_terminates_group_p): Likewise.
4710 (insn_must_be_first_in_group): Likewise.
4711 (insn_must_be_last_in_group): Likewise.
4712 (force_new_group): Likewise for param "next_insn".
4713 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4715 (s390_sched_score): Likewise.
4716 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4717 (rtx sfunc_uses_reg): Likewise for sole param.
4718 * config/sh/sh.c (sh_print_operand): Use insn method of
4719 final_sequence for typesafety.
4720 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4721 Use insn method of final_sequence for typesafety.
4722 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4723 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4725 (eligible_for_return_delay): Likewise.
4726 (eligible_for_sibcall_delay): Likewise.
4727 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4728 (eligible_for_return_delay): Likewise.
4729 (eligible_for_sibcall_delay): Likewise.
4730 * config/stormy16/stormy16-protos.h
4731 (xstormy16_output_cbranch_hi): Likewise for final param.
4732 (xstormy16_output_cbranch_si): Likewise.
4733 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4734 (xstormy16_output_cbranch_si): Likewise.
4735 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4736 * config/v850/v850.c (notice_update_cc): Likewise.
4738 * final.c (get_attr_length_1): Strengthen param "insn" and param
4739 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4740 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4741 (get_attr_min_length): Likewise.
4742 (shorten_branches): Likewise for signature of locals "length_fun"
4743 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4744 from a checked cast and use its methods for clarity and to enable
4745 strengthening local "inner_insn" from rtx to rtx_insn *.
4746 * genattr.c (gen_attr): When writing out the prototypes of the
4747 various generated "get_attr_" functions, strengthen the params of
4748 the non-const functions from rtx to rtx_insn *.
4749 Similarly, strengthen the params of insn_default_length,
4750 insn_min_length, insn_variable_length_p, insn_current_length.
4751 (main): Similarly, strengthen the param of num_delay_slots,
4752 internal_dfa_insn_code, insn_default_latency, bypass_p,
4753 insn_latency, min_issue_delay, print_reservation,
4754 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4755 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4756 to hook_int_rtx_insn_unreachable.
4757 * genattrtab.c (write_attr_get): When writing out the generated
4758 "get_attr_" functions, strengthen the param "insn" from rtx to
4759 rtx_insn *, eliminating a checked cast.
4760 (make_automaton_attrs): When writing out prototypes of
4761 "internal_dfa_insn_code_", "insn_default_latency_" functions
4762 and the "internal_dfa_insn_code" and "insn_default_latency"
4763 callbacks, strengthen their params from rtx to rtx_insn *
4764 * genautomata.c (output_internal_insn_code_evaluation): When
4765 writing out code, add a checked cast from rtx to rtx_insn * when
4766 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4767 (output_dfa_insn_code_func): Strengthen param of generated
4768 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4769 (output_trans_func): Likewise for generated function
4771 (output_internal_insn_latency_func): When writing out generated
4772 function "internal_insn_latency", rename params from "insn" and
4773 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4774 locals "insn" and "insn2" as rtx_insn * with checked casts once
4775 we've proven that we're not dealing with const0_rtx.
4776 (output_insn_latency_func): Strengthen param of generated
4777 function "insn_latency" from rtx to rtx_insn *.
4778 (output_print_reservation_func): Likewise for generated function
4779 "print_reservation".
4780 (output_insn_has_dfa_reservation_p): Likewise for generated
4781 function "insn_has_dfa_reservation_p".
4782 * hooks.c (hook_int_rtx_unreachable): Rename to...
4783 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4784 from rtx to rtx_insn *.
4785 * hooks.h (hook_int_rtx_unreachable): Likewise.
4786 (extern int hook_int_rtx_insn_unreachable): Likewise.
4787 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4788 (get_attr_min_length): Likewise.
4789 * recog.c (get_enabled_alternatives): Likewise.
4790 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4791 * reorg.c (find_end_label): Introduce local rtx "pat" and
4792 strengthen local "insn" from rtx to rtx_insn *.
4793 (redundant_insn): Use insn method of "seq" rather than element for
4794 typesafety; strengthen local "control" from rtx to rtx_insn *.
4795 * resource.c (mark_referenced_resources): Add checked cast to
4796 rtx_insn * within INSN/JUMP_INSN case.
4797 (mark_set_resources): Likewise.
4798 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4801 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4803 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4804 param "label" from rtx to rtx_insn *.
4805 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4807 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4808 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4809 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4810 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4811 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4812 param from rtx to rtx_insn *.
4813 (default_loop_align_max_skip): Likewise.
4814 (default_label_align_max_skip): Likewise.
4815 (default_jump_align_max_skip): Likewise.
4816 * target.def (label_align_after_barrier_max_skip): Likewise.
4817 (loop_align_max_skip): Likewise.
4818 (label_align_max_skip): Likewise.
4819 (jump_align_max_skip): Likewise.
4820 * targhooks.h (default_label_align_after_barrier_max_skip):
4822 (default_loop_align_max_skip): Likewise.
4823 (default_label_align_max_skip): Likewise.
4824 (default_jump_align_max_skip): Likewise.
4826 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4828 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4829 from const_rtx to const rtx_insn *. Update union members from rtx
4831 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4832 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4833 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4834 strengthen both params from const_rtx to const rtx_insn *.
4835 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4836 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4837 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4839 * target.def (can_follow_jump): Strengthen both params from
4840 const_rtx to const rtx_insn *, and update default implementation
4841 from hook_bool_const_rtx_const_rtx_true to
4842 hook_bool_const_rtx_insn_const_rtx_insn_true.
4844 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4846 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4847 "insn" from rtx to rtx_insn *.
4848 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4850 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4852 Anna Tikhonova <anna.tikhonova@intel.com>
4853 Ilya Tocar <ilya.tocar@intel.com>
4854 Andrey Turetskiy <andrey.turetskiy@intel.com>
4855 Ilya Verbin <ilya.verbin@intel.com>
4856 Kirill Yukhin <kirill.yukhin@intel.com>
4857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4859 * config/i386/sse.md
4860 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4861 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4862 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4863 (define_expand "vcvtps2ph_mask"): New.
4864 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4865 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4866 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4868 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4870 Anna Tikhonova <anna.tikhonova@intel.com>
4871 Ilya Tocar <ilya.tocar@intel.com>
4872 Andrey Turetskiy <andrey.turetskiy@intel.com>
4873 Ilya Verbin <ilya.verbin@intel.com>
4874 Kirill Yukhin <kirill.yukhin@intel.com>
4875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4877 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4879 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4880 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4881 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4882 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4883 also for TARGET_AVX512VL.
4884 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4886 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4888 * doc/install.texi (Options specification): add
4889 --disable-libsanitizer item.
4891 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4892 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4895 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4897 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4898 kernel version check to avoid incrementing it after every major OS X
4900 (darwin_default_min_version): Avoid static memory buffer.
4902 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4904 * tree.c (need_assembler_name_p): Store C++ type mangling only
4907 2014-09-13 Marek Polacek <polacek@redhat.com>
4909 * tree.c (protected_set_expr_location): Don't check whether T is
4912 2014-09-12 DJ Delorie <dj@redhat.com>
4914 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4915 (extend_and_shift1_hipsi2): Likewise.
4916 (extend_and_shift2_hipsi2): Likewise.
4918 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4920 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4921 with NULL when dealing with an insn.
4922 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4923 from rtx to rtx_insn *.
4924 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4925 const_rtx to const rtx_insn *.
4926 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4928 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4930 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4933 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4935 * target.def (libgcc_floating_mode_supported_p): New hook.
4936 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4938 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4939 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4940 (LIBGCC2_HAS_TF_MODE): Remove.
4941 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4942 * doc/tm.texi: Regenerate.
4943 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4945 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4946 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4947 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4948 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4949 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4950 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4951 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4952 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4953 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4954 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4956 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4957 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4958 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4959 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4960 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4961 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4962 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4963 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4964 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4965 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4966 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4967 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4968 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4969 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4971 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4973 (ia64_libgcc_floating_mode_supported_p): New function.
4974 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4975 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4976 (IA64_NO_LIBGCC_TFMODE): Define.
4977 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4978 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4980 (pdp11_scalar_mode_supported_p): New function.
4981 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4982 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4984 2014-09-12 Richard Biener <rguenther@suse.de>
4987 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4989 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4991 * tree.c (integer_each_onep): New function.
4992 * tree.h (integer_each_onep): Declare it.
4993 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4994 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4995 (X & 1) == 0 for vector and complex.
4997 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4999 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5001 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
5002 cost to spilling from integer to FP registers.
5004 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5006 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5008 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5009 are now handled correctly.
5011 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5013 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5014 handling of CALLER_SAVE_REGS and POINTER_REGS.
5016 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5018 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5019 the number of hard registers.
5021 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5022 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5023 Anna Tikhonova <anna.tikhonova@intel.com>
5024 Ilya Tocar <ilya.tocar@intel.com>
5025 Andrey Turetskiy <andrey.turetskiy@intel.com>
5026 Ilya Verbin <ilya.verbin@intel.com>
5027 Kirill Yukhin <kirill.yukhin@intel.com>
5028 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5030 * config/i386/sse.md
5031 (define_mode_iterator VI48_AVX512VL): New.
5032 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5033 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5034 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5035 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5036 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5037 "avx512f_vternlog<mode>_mask" and update mode iterator.
5038 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5039 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5041 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5042 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5043 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5044 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5045 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5046 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5048 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5049 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5050 Anna Tikhonova <anna.tikhonova@intel.com>
5051 Ilya Tocar <ilya.tocar@intel.com>
5052 Andrey Turetskiy <andrey.turetskiy@intel.com>
5053 Ilya Verbin <ilya.verbin@intel.com>
5054 Kirill Yukhin <kirill.yukhin@intel.com>
5055 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5057 * config/i386/sse.md (VI128_256): Delete.
5058 (define_mode_iterator VI124_256): New.
5059 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5060 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5061 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5062 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5063 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5064 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5065 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5066 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5068 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5069 in presence of AVX-512.
5071 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5073 Anna Tikhonova <anna.tikhonova@intel.com>
5074 Ilya Tocar <ilya.tocar@intel.com>
5075 Andrey Turetskiy <andrey.turetskiy@intel.com>
5076 Ilya Verbin <ilya.verbin@intel.com>
5077 Kirill Yukhin <kirill.yukhin@intel.com>
5078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5080 * config/i386/sse.md
5081 (define_expand "<avx512>_gathersi<mode>"): Rename from
5082 "avx512f_gathersi<mode>".
5083 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5084 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5085 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5086 "avx512f_gatherdi<mode>".
5087 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5088 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5090 (define_expand "<avx512>_scattersi<mode>"): Rename from
5091 "avx512f_scattersi<mode>".
5092 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5093 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5094 "avx512f_scatterdi<mode>".
5095 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5097 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5099 * ira.h (ira_finish_once): Delete.
5100 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5101 (target_ira_int::free_ira_costs): Likewise.
5102 (target_ira_int::free_register_move_costs): Likewise.
5103 (ira_finish_costs_once): Delete.
5104 * ira.c (free_register_move_costs): Replace with...
5105 (target_ira_int::free_register_move_costs): ...this new function.
5106 (target_ira_int::~target_ira_int): Define.
5107 (ira_init): Call free_register_move_costs as a member function rather
5108 than a global function.
5109 (ira_finish_once): Delete.
5110 * ira-costs.c (free_ira_costs): Replace with...
5111 (target_ira_int::free_ira_costs): ...this new function.
5112 (ira_init_costs): Call free_ira_costs as a member function rather
5113 than a global function.
5114 (ira_finish_costs_once): Delete.
5115 * target-globals.c (target_globals::~target_globals): Call the
5116 target_ira_int destructor.
5117 * toplev.c: Include lra.h.
5118 (finalize): Call lra_finish_once rather than ira_finish_once.
5120 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5122 * common.opt (flto-odr-type-merging): New flag.
5123 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5124 (types_same_for_odr): Likewise.
5125 (odr_subtypes_equivalent_p): Likewise.
5126 (add_type_duplicate): Do not walk type variants.
5127 (register_odr_type): New function.
5128 * ipa-utils.h (register_odr_type): Declare.
5129 (odr_type_p): New function.
5130 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5132 * doc/invoke.texi (-flto-odr-type-merging): Document.
5133 * tree.c (need_assembler_name_p): Compute ODR names when asked
5135 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5137 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5140 * config/i386/i386.c (ix86_option_override_internal): Also turn
5141 off OPTION_MASK_ABI_X32 for -m16.
5143 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5145 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5148 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5151 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5152 Directly forward to __*_DENORM_MIN__.
5154 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5156 * rtl.h (LABEL_REF_LABEL): New macro.
5158 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5159 of XEXP (, 0), where we know that we have a LABEL_REF.
5160 * cfgbuild.c (make_edges): Likewise.
5161 (purge_dead_tablejump_edges): Likewise.
5162 * cfgexpand.c (convert_debug_memory_address): Likewise.
5163 * cfgrtl.c (patch_jump_insn): Likewise.
5164 * combine.c (distribute_notes): Likewise.
5165 * cse.c (hash_rtx_cb): Likewise.
5166 (exp_equiv_p): Likewise.
5167 (fold_rtx): Likewise.
5168 (check_for_label_ref): Likewise.
5169 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5170 (cselib_hash_rtx): Likewise.
5171 * emit-rtl.c (mark_label_nuses): Likewise.
5172 * explow.c (convert_memory_address_addr_space): Likewise.
5173 * final.c (output_asm_label): Likewise.
5174 (output_addr_const): Likewise.
5175 * gcse.c (add_label_notes): Likewise.
5176 * genconfig.c (walk_insn_part): Likewise.
5177 * genrecog.c (validate_pattern): Likewise.
5178 * ifcvt.c (cond_exec_get_condition): Likewise.
5179 (noce_emit_store_flag): Likewise.
5180 (noce_get_alt_condition): Likewise.
5181 (noce_get_condition): Likewise.
5182 * jump.c (maybe_propagate_label_ref): Likewise.
5183 (mark_jump_label_1): Likewise.
5184 (redirect_exp_1): Likewise.
5185 (rtx_renumbered_equal_p): Likewise.
5186 * lra-constraints.c (operands_match_p): Likewise.
5187 * reload.c (operands_match_p): Likewise.
5188 (find_reloads): Likewise.
5189 * reload1.c (set_label_offsets): Likewise.
5190 * reorg.c (get_branch_condition): Likewise.
5191 * rtl.c (rtx_equal_p_cb): Likewise.
5192 (rtx_equal_p): Likewise.
5193 * rtlanal.c (reg_mentioned_p): Likewise.
5194 (rtx_referenced_p): Likewise.
5195 (get_condition): Likewise.
5196 * sched-vis.c (print_value): Likewise.
5197 * varasm.c (const_hash_1): Likewise.
5198 (compare_constant): Likewise.
5199 (const_rtx_hash_1): Likewise.
5200 (output_constant_pool_1): Likewise.
5202 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5204 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5205 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5207 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5208 cr6_test_for_lt_reverse): Ditto.
5210 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5213 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5215 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5217 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5218 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5219 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5220 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5223 (aarch64_fold_builtin): Remove all reinterpret cases.
5225 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5227 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5229 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5230 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5231 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5232 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5233 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5234 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5235 aarch64_reinterpretv2df<mode>): Delete.
5237 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5239 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5240 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5241 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5242 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5243 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5244 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5245 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5246 vreinterpret_u32_f64): Use cast.
5248 * config/aarch64/iterators.md (VD_RE): Delete.
5250 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5252 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5253 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5254 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5255 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5256 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5257 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5258 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5259 Replace inline assembler with __aarch64_vset_lane_any.
5261 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5263 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5265 (vmull_high_lane_s32): Likewise.
5266 (vmull_high_lane_u16): Likewise.
5267 (vmull_high_lane_u32): Likewise.
5269 2014-09-11 Jason Merrill <jason@redhat.com>
5272 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5274 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5277 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5278 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5279 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5281 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5282 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5283 Anna Tikhonova <anna.tikhonova@intel.com>
5284 Ilya Tocar <ilya.tocar@intel.com>
5285 Andrey Turetskiy <andrey.turetskiy@intel.com>
5286 Ilya Verbin <ilya.verbin@intel.com>
5287 Kirill Yukhin <kirill.yukhin@intel.com>
5288 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5290 * config/i386/sse.md
5291 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5292 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5293 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5295 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5296 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5298 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5300 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5301 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5302 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5303 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5304 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5305 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5306 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5307 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5309 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5311 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5312 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5313 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5315 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5317 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5318 to access removed nodes.
5320 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5322 PR tree-optimization/63186
5323 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5324 (mark_nonssa_use): Likewise.
5325 (verify_non_ssa_vars): Verify all header blocks for label
5328 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5330 Anna Tikhonova <anna.tikhonova@intel.com>
5331 Ilya Tocar <ilya.tocar@intel.com>
5332 Andrey Turetskiy <andrey.turetskiy@intel.com>
5333 Ilya Verbin <ilya.verbin@intel.com>
5334 Kirill Yukhin <kirill.yukhin@intel.com>
5335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5337 * config/i386/sse.md
5338 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5339 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5340 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5341 "<avx2_avx512f>_permvar<mode><mask_name>".
5342 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5343 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5344 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5345 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5347 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5348 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5349 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5350 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5352 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5354 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5355 V2DF, V4SF, DF, and DI modes.
5356 (vsx_fmav2df2): Likewise.
5357 (vsx_float_fix_<mode>2): Likewise.
5358 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5360 2014-09-10 Xinliang David Li <davidxl@google.com>
5363 * config/arm/arm.md (movcond_addsi): Handle case where source
5364 and target operands are the same.
5366 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5368 * final.c (this_is_asm_operands): Strengthen this variable from
5369 rtx to const rtx_insn *.
5370 * output.h (this_is_asm_operands): Likewise.
5371 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5372 const_rtx to const rtx_insn *.
5373 (diagnostic_for_asm): Likewise.
5374 * rtl-error.h (error_for_asm): Likewise.
5375 (warning_for_asm): Likewise.
5377 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5379 * genextract.c (print_header): When writing out insn_extract to
5380 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5381 * recog.h (insn_extract): Strengthen the param from rtx to
5384 2014-09-10 Mike Stump <mikestump@comcast.net>
5386 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5389 2014-09-10 Martin Jambor <mjambor@suse.cz>
5391 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5392 (analyze): Do not set analyze flag if expand_thunk returns false;.
5393 (create_wrapper): Likewise.
5394 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5396 2014-09-10 Martin Jambor <mjambor@suse.cz>
5399 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5400 new decl properly. Analyze the new thunk if it is expanded.
5402 2014-09-10 Andreas Schwab <schwab@suse.de>
5404 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5405 [USED_FOR_TARGET]: Define.
5407 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5409 * config/mips/mips.c (mips_secondary_reload_class): Handle
5412 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5414 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5417 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5419 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5420 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5421 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5422 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5423 flag_delete_null_pointer_checks for them.
5424 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5425 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5426 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5427 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5428 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5430 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5431 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5432 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5433 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5434 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5435 -fsanitize=returns-nonnull-attribute): Document.
5437 * ubsan.h (struct ubsan_mismatch_data): Removed.
5438 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5439 * ubsan.c (ubsan_source_location): For unknown locations,
5440 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5441 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5442 Allow more than one location and arbitrary extra arguments passed
5443 in ... instead of through MISMATCH pointer.
5444 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5445 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5446 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5449 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5451 Anna Tikhonova <anna.tikhonova@intel.com>
5452 Ilya Tocar <ilya.tocar@intel.com>
5453 Andrey Turetskiy <andrey.turetskiy@intel.com>
5454 Ilya Verbin <ilya.verbin@intel.com>
5455 Kirill Yukhin <kirill.yukhin@intel.com>
5456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5458 * config/i386/sse.md
5459 (define_mode_iterator VI48F): New.
5460 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5461 "avx512f_compress<mode>_mask" and update mode iterator.
5462 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5463 "avx512f_compressstore<mode>_mask" and update mode iterator.
5464 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5465 "avx512f_expand<mode>_maskz" and update mode iterator.
5466 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5467 "avx512f_expand<mode>_mask" and update mode iterator.
5469 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5470 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5471 Anna Tikhonova <anna.tikhonova@intel.com>
5472 Ilya Tocar <ilya.tocar@intel.com>
5473 Andrey Turetskiy <andrey.turetskiy@intel.com>
5474 Ilya Verbin <ilya.verbin@intel.com>
5475 Kirill Yukhin <kirill.yukhin@intel.com>
5476 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5478 * config/i386/i386.c
5479 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5480 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5481 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5482 avx512dq_rangepv4sf_mask.
5483 * config/i386/sse.md
5484 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5486 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5487 (define_insn "reduces<mode>"): Ditto.
5488 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5490 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5491 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5492 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5494 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5495 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5496 Anna Tikhonova <anna.tikhonova@intel.com>
5497 Ilya Tocar <ilya.tocar@intel.com>
5498 Andrey Turetskiy <andrey.turetskiy@intel.com>
5499 Ilya Verbin <ilya.verbin@intel.com>
5500 Kirill Yukhin <kirill.yukhin@intel.com>
5501 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5503 * config/i386/i386.c
5504 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5505 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5506 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5507 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5508 avx512vl_getmantv2df_mask.
5509 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5510 avx512f_vgetmantv4sf_round.
5511 * config/i386/sse.md
5512 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5513 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5515 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5516 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5517 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5518 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5520 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5521 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5522 update mode iterator.
5524 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5525 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5528 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5529 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5530 update mode iterator.
5531 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5532 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5535 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5536 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5538 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5539 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5540 update mode iterator.
5541 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5542 "avx512f_getmant<mode><round_saeonly_name>".
5544 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5547 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5549 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5551 Anna Tikhonova <anna.tikhonova@intel.com>
5552 Ilya Tocar <ilya.tocar@intel.com>
5553 Andrey Turetskiy <andrey.turetskiy@intel.com>
5554 Ilya Verbin <ilya.verbin@intel.com>
5555 Kirill Yukhin <kirill.yukhin@intel.com>
5556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5558 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5559 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5560 (define_mode_iterator FMAMODE_AVX512): New.
5561 (define_mode_iterator FMAMODE): Remove conditions.
5562 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5563 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5564 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5566 (define_mode_iterator FMAMODE_NOVF512): Remove.
5567 (define_insn "*fma_fmadd_<mode>"): Rename from
5568 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5569 FMAMODE mode iterator.
5570 (define_mode_iterator VF_SF_AVX512VL): New.
5571 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5572 Use VF_SF_AVX512VL mode iterator.
5573 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5574 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5576 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5577 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5579 (define_insn "*fma_fmsub_<mode>"): Rename from
5580 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5581 FMAMODE mode iterator.
5582 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5583 Use VF_SF_AVX512VL mode iterator.
5584 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5585 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5587 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5588 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5590 (define_insn "*fma_fnmadd_<mode>"): Rename from
5591 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5592 use FMAMODE mode iterator.
5593 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5594 Use VF_SF_AVX512VL mode iterator.
5595 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5596 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5598 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5599 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5601 (define_insn "*fma_fnmsub_<mode>"): Rename from
5602 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5603 FMAMODE mode iterator.
5604 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5605 Use VF_SF_AVX512VL mode iterator.
5606 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5607 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5609 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5610 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5612 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5613 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5614 use VF_AVX512VL mode iterator.
5615 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5616 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5618 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5619 Use VF_SF_AVX512VL mode iterator.
5620 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5621 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5623 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5624 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5626 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5627 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5628 remove usage of subst.
5629 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5630 Use VF_SF_AVX512VL mode iterator.
5631 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5632 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5634 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5635 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5638 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5641 * calls.c (precompute_arguments): Check
5642 promoted_for_signed_and_unsigned_p and set the promoted mode.
5643 (promoted_for_signed_and_unsigned_p): New function.
5644 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5645 and set the promoted mode.
5646 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5647 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5648 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5650 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5652 * opth-gen.awk: Generate mapping from cpp message reasons to the
5653 options that enable them.
5654 * doc/options.texi (CppReason): Document.
5656 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5658 * doc/invoke.texi (Wnormalized=): Update.
5660 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5663 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5664 operands. Split off the constant operand alternative to ...
5665 (*bool<mode>3_imm): New.
5667 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5669 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5670 const rtx_insn *, and move prototype to above...
5671 (single_set): ...this. Convert this from a macro to an inline
5672 function, enforcing the requirement that the param is a const
5674 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5676 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5677 Strengthen both params from rtx to rtx_insn *.
5678 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5679 Likewise; introduce locals "producer_set", "consumer_set", using
5680 them in place of "producer" and "consumer" when dealing with SET
5682 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5683 when invoking single_set in region guarded by INSN_P.
5684 (avr_out_bitop): Likewise.
5685 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5686 region guarded by GET_CODE check, using methods to strengthen
5687 local "this_insn" from rtx to rtx_insn *, and for clarity.
5688 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5689 Strengthen local "insn" from rtx to rtx_insn *.
5690 (define_insn_and_split "xload<mode>_A"): Likewise.
5691 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5693 (find_load): Likewise for return type.
5694 (workaround_speculation): Likewise for both locals named
5696 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5698 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5700 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5702 * config/h8300/h8300.c (notice_update_cc): Likewise.
5703 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5704 "insn" and "dep_insn".
5705 (exact_store_load_dependency): Likewise for both params.
5706 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5707 since this now clashes with inline function. Instead, delay
5708 calling single_set until the point where its needed, and then
5709 assign the result to "compare_set" and rework the conditional that
5711 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5712 local "last" from rtx to rtx_insn *.
5713 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5715 (mips_store_data_bypass_p): Likewise for both params.
5716 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5718 (mips_store_data_bypass_p): Likewise for both params.
5719 (mips_orphaned_high_part_p): Likewise for param "insn".
5720 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5721 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5722 Introduce local rtx "insn2_pat".
5723 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5725 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5726 Introduce local rtx "set", using it in place of "insn" for the
5727 result of single_set. This appears to fix a bug, since the call
5728 to find_regno_note on a SET does nothing.
5729 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5730 params from rtx to rtx_insn *.
5731 (set_to_load_agen): Likewise.
5732 * config/s390/s390.c (s390_label_align): Likewise for local
5733 "prev_insn". Introduce new rtx locals "set" and "src", using
5734 them in place of "prev_insn" for the results of single_set
5735 and SET_SRC respectively.
5736 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5737 Introduce new rtx local "set" using in place of "jump" for the
5738 result of single_set. Use SET_SRC (set) rather than plain
5740 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5742 (noncall_uses_reg): Likewise.
5743 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5744 guarded by GET_CODE check, using its methods for clarity, and to
5745 enable strengthening local "this_insn" from rtx to rtx_insn *.
5746 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5747 "insn" from rtx to rtx_insn *.
5748 (define_expand "umulhisi3"): Likewise.
5749 (define_expand "smulsi3_highpart"): Likewise.
5750 (define_expand "umulsi3_highpart"): Likewise.
5751 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5752 local "after". Replace GET_CODE check with a dyn_cast,
5753 introducing new local rtx_sequence * "seq", using insn method for
5756 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5757 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5758 place of "insn" once we're dealing with patterns rather than the
5760 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5761 (scan_trace): Likewise for local "elt", updating lookups within
5762 sequence to use insn method rather than element method.
5763 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5765 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5766 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5767 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5768 invoking single_set.
5769 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5770 "insn" from rtx to rtx_insn *.
5771 (skip_usage_debug_insns): Likewise for return type, adding a
5773 (check_secondary_memory_needed_p): Likewise for local "insn".
5774 (inherit_reload_reg): Likewise.
5775 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5776 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5778 (store_data_bypass_p): Likewise for both params.
5779 (if_test_bypass_p): Likewise.
5780 * recog.h (store_data_bypass_p): Likewise for both params.
5781 (if_test_bypass_p): Likewise.
5782 * reload.c (find_equiv_reg): Likewise for local "where".
5783 * reorg.c (delete_jump): Likewise for param "insn".
5784 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5785 to const rtx_insn *.
5786 * store-motion.c (replace_store_insn): Likewise for param "del".
5787 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5788 and use its methods for clarity, and to strengthen local "del"
5789 from rtx to rtx_insn *.
5790 (build_store_vectors): Use insn method of "st" when calling
5791 replace_store_insn for typesafety and clarity.
5793 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5795 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5796 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5797 on how to make it legal in future.
5799 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5801 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5803 (restinsn): Likewise.
5804 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5806 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5808 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5810 (arc_hazard): Likewise for both params.
5811 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5812 checked casts to rtx_sequence * and uses of the insn method for
5814 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5815 (arc_adjust_insn_length): Likewise for param "insn".
5816 (struct insn_length_parameters_s): Likewise for first param of
5817 "get_variants" callback field.
5818 (arc_get_insn_variants): Likewise for first param and local
5819 "inner". Replace a check of GET_CODE with a dyn_cast to
5820 rtx_sequence *, using methods for type-safety and clarity.
5821 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5822 rtx_sequence * and uses of the insn method for type-safety when
5823 invoking arc_adjust_insn_length.
5824 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5826 (arm_address_offset_is_imm): Likewise.
5827 (struct tune_params): Likewise for params 1 and 3 of the
5828 "sched_adjust_cost" callback field.
5829 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5830 params 1 and 3 ("insn" and "dep").
5831 (xscale_sched_adjust_cost): Likewise.
5832 (fa726te_sched_adjust_cost): Likewise.
5833 (cortexa7_older_only): Likewise for param "insn".
5834 (cortexa7_younger): Likewise.
5835 (arm_attr_length_move_neon): Likewise.
5836 (arm_address_offset_is_imm): Likewise.
5837 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5838 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5839 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5840 (workaround_speculation): Likewise for local "last_condjump".
5841 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5842 (shadow_or_blockage_p): Likewise.
5843 (get_unit_reqs): Likewise.
5844 (get_unit_operand_masks): Likewise.
5845 (c6x_registers_update): Likewise.
5846 (returning_call_p): Likewise.
5847 (can_use_callp): Likewise.
5848 (convert_to_callp): Likewise.
5849 (find_last_same_clock): Likwise for local "t".
5850 (reorg_split_calls): Likewise for local "shadow".
5851 (hwloop_pattern_reg): Likewise for param "insn".
5852 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5853 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5854 (frv_extract_membar): Likewise.
5855 (frv_optimize_membar_local): Strengthen param "last_membar" from
5856 rtx * to rtx_insn **.
5857 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5859 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5861 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5862 both params from rtx to rtx_insn *.
5863 (ia64_ld_address_bypass_p): Likewise.
5864 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5866 (ia64_safe_type): Likewise.
5867 (group_barrier_needed): Likewise.
5868 (safe_group_barrier_needed): Likewise.
5869 (ia64_single_set): Likewise.
5870 (is_load_p): Likewise.
5871 (record_memory_reference): Likewise.
5872 (get_mode_no_for_insn): Likewise.
5873 (important_for_bundling_p): Likewise.
5874 (unknown_for_bundling_p): Likewise.
5875 (ia64_st_address_bypass_p): Likewise for both params.
5876 (ia64_ld_address_bypass_p): Likewise.
5877 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5878 in place of rtx "x" after the emit_insn call.
5879 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5880 Strengthen param from rtx to rtx_insn *.
5881 (ix86_agi_dependent): Likewise for both params.
5882 (ix86_attr_length_immediate_default): Likewise for param 1.
5883 (ix86_attr_length_address_default): Likewise for param.
5884 (ix86_attr_length_vex_default): Likewise for param 1.
5885 * config/i386/i386.c (ix86_attr_length_immediate_default):
5886 Likewise for param "insn".
5887 (ix86_attr_length_address_default): Likewise.
5888 (ix86_attr_length_vex_default): Likewise.
5889 (ix86_agi_dependent): Likewise for both params.
5890 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5891 (vselect_insn): Likewise for this variable.
5892 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5894 (m68k_sched_attr_opy_type): Likewise.
5895 * config/m68k/m68k.c (sched_get_operand): Likewise.
5896 (sched_attr_op_type): Likewise.
5897 (m68k_sched_attr_opx_type): Likewise.
5898 (m68k_sched_attr_opy_type): Likewise.
5899 (sched_get_reg_operand): Likewise.
5900 (sched_get_mem_operand): Likewise.
5901 (m68k_sched_address_bypass_p): Likewise for both params.
5902 (sched_get_indexed_address_scale): Likewise.
5903 (m68k_sched_indexed_address_bypass_p): Likewise.
5904 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5905 (m68k_sched_indexed_address_bypass_p): Likewise.
5906 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5907 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5909 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5910 params from rtx to rtx_insn *.
5911 (mips_fmadd_bypass): Likewise.
5912 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5913 (mips_linked_madd_p): Likewise.
5914 (mips_macc_chains_last_hilo): Likewise for this variable.
5915 (mips_macc_chains_record): Likewise for param.
5916 (vr4130_last_insn): Likewise for this variable.
5917 (vr4130_swap_insns_p): Likewise for both params.
5918 (mips_ls2_variable_issue): Likewise for param.
5919 (mips_need_noat_wrapper_p): Likewise for param "insn".
5920 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5921 in place of "x" after the emit_insn.
5922 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5923 params from rtx to rtx_insn *.
5924 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5925 (pa_combine_instructions): Introduce local "par" for result of
5926 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5928 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5929 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5930 (rl78_alloc_physical_registers_op1): Likewise.
5931 (rl78_alloc_physical_registers_op2): Likewise.
5932 (rl78_alloc_physical_registers_ro1): Likewise.
5933 (rl78_alloc_physical_registers_cmp): Likewise.
5934 (rl78_alloc_physical_registers_umul): Likewise.
5935 (rl78_alloc_address_registers_macax): Likewise.
5936 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5937 * config/s390/predicates.md (execute_operation): Likewise for
5939 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5941 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5942 (addr_generation_dependency_p): Likewise for param "insn".
5943 (s390_agen_dep_p): Likewise for both params.
5944 (s390_fpload_toreg): Likewise for param "insn".
5945 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5946 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5948 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5949 * config/sh/sh_treg_combine.cc
5950 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5952 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5953 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5954 "and_insn", "load", "shift".
5955 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5957 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5958 for XEXP (note, 0) of the REG_CC_SETTER note.
5959 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5960 rtx_insn *, eliminating a checked cast made redundant by this.
5961 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5963 * genattr.c (main): When writing out the prototype to
5964 const_num_delay_slots, strengthen the param from rtx to
5966 * genattrtab.c (write_const_num_delay_slots): Likewise when
5967 writing out the implementation of const_num_delay_slots.
5968 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5969 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5970 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5971 favor of new rtx locals "src" and "set" and new local rtx_insn *
5973 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5975 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5976 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5978 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5979 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5980 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5981 the top-level scope, replacing with new more tightly-scoped rtx
5982 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5983 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5985 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5987 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5989 (ira_setup_alts): Likewise for param "insn".
5990 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5991 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5993 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5994 new more-tightly scoped rtx locals "add3_insn", "insn",
5995 "add2_insn" and rtx_insn * "move_insn".
5996 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5997 checked cast on result of gen_move_insn when invoking
5999 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6001 (verify_changes): Add a checked cast on "object" when invoking
6003 (extract_insn_cached): Strengthen param "insn" from rtx to
6005 (extract_constrain_insn_cached): Likewise.
6006 (extract_insn): Likewise.
6007 * recog.h (insn_invalid_p): Likewise for param 1.
6008 (recog_memoized): Likewise for param.
6009 (extract_insn): Likewise.
6010 (extract_constrain_insn_cached): Likewise.
6011 (extract_insn_cached): Likewise.
6012 * reload.c (can_reload_into): Likewise for local "test_insn".
6013 * reload.h (cleanup_subreg_operands): Likewise for param.
6014 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6015 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6016 result of emit_insn. Remove a checked cast made redundant by this
6018 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6020 * sel-sched.c (get_reg_class): Likewise.
6022 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6023 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6025 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6026 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6028 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6030 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6032 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6033 const rtx_insn *, and from rtx to rtx_insn * for the other
6035 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6036 INSN_LOCATION, since we know INSN_P holds.
6037 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6038 (insn_file): Likewise.
6039 (insn_scope): Likewise.
6040 (insn_location): Likewise.
6042 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6043 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6044 for the result of gen_load_const_gp.
6045 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6046 param from rtx to rtx_insn *.
6047 * config/rs6000/rs6000.c (output_call): Likewise.
6048 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6049 introducing a checked cast to rtx_sequence * and use of the insn
6051 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6052 from rtx to rtx_insn *.
6053 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6054 (insn_line): Likewise.
6055 (insn_file): Likewise.
6056 (insn_location): Likewise.
6057 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6058 from rtx to rtx_insn *.
6059 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6060 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6061 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6063 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6064 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6066 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6068 * combine.c (try_combine): Eliminate checked cast on result of
6070 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6071 autogenerated one by strengthening the return type and params 2 and 3
6072 from rtx to rtx_insn *, and by naming the params.
6073 * gengenrtl.c (special_rtx): Add INSN to those that are
6075 * rtl.h (gen_rtx_INSN): New prototype.
6077 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6079 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6081 (no_equiv): Likewise.
6082 (update_equiv_regs): Likewise.
6083 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6084 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6085 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6087 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6088 from rtx to rtx_insn_list *.
6089 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6090 rtx_insn_list * and use methods for clarity and typesafety.
6091 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6093 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6094 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6095 an INSN_LIST, not an insn.
6096 (reverse_equiv_p): Strengthen local "insns" from rtx to
6097 rtx_insn_list * and use methods for clarity and typesafety.
6098 (contains_reloaded_insn_p): Likewise for local "list".
6100 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6102 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6103 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6104 (arm_builtin_vectorized_function): Likewise.
6105 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6106 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6108 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6110 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6111 * builtins.h (default_target_builtins): Likewise.
6112 * gcse.h (default_target_gcse): Likewise.
6113 * target-globals.h (target_globals): Add a destructor. Convert
6114 void-pointer fields back to their real type and change from
6115 GTY((atomic)) to GTY((skip)).
6116 (restore_target_globals): Remove casts accordingly.
6117 * target-globals.c (save_target_globals): Use XCNEW rather than
6118 ggc_internal_cleared_alloc to allocate non-GC structures.
6119 Use ggc_cleared_alloc to allocate the target_globals structure
6121 (target_globals::~target_globals): Define.
6123 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6125 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6126 mnemonic instead of fldmfdd.
6127 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6128 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6129 Output vpush when address register is SP.
6130 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6131 (vfp_output_vstmd): ... This.
6132 * config/arm/vfp.md (push_multi_vfp): Update call to
6135 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6137 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6139 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6141 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6142 (*sqrtdf2_vfp): Likewise.
6143 (*cmpsf_vfp): Likewise.
6144 (*cmpsf_trap_vfp): Likewise.
6145 (*cmpdf_vfp): Likewise.
6146 (*cmpdf_trap_vfp): Likewise.
6148 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6150 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6151 (*truncdfsf2_vfp): Likewise.
6152 (*truncsisf2_vfp): Likewise.
6153 (*truncsidf2_vfp): Likewise.
6154 (fixuns_truncsfsi2): Likewise.
6155 (fixuns_truncdfsi2): Likewise.
6156 (*floatsisf2_vfp): Likewise.
6157 (*floatsidf2_vfp): Likewise.
6158 (floatunssisf2): Likewise.
6159 (floatunssidf2): Likewise.
6161 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6163 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6164 (*muldf3_vfp): Likewise.
6165 (*mulsf3negsf_vfp): Likewise.
6166 (*muldf3negdf_vfp): Likewise.
6167 (*mulsf3addsf_vfp): Likewise.
6168 (*muldf3adddf_vfp): Likewise.
6169 (*mulsf3subsf_vfp): Likewise.
6170 (*muldf3subdf_vfp): Likewise.
6171 (*mulsf3negsfaddsf_vfp): Likewise.
6172 (*fmuldf3negdfadddf_vfp): Likewise.
6173 (*mulsf3negsfsubsf_vfp): Likewise.
6174 (*muldf3negdfsubdf_vfp): Likewise.
6176 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6178 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6179 (*absdf2_vfp): Likewise.
6180 (*negsf2_vfp): Likewise.
6181 (*negdf2_vfp): Likewise.
6182 (*addsf3_vfp): Likewise.
6183 (*adddf3_vfp): Likewise.
6184 (*subsf3_vfp): Likewise.
6185 (*subdf3_vfp): Likewise.
6186 (*divsf3_vfp): Likewise.
6187 (*divdf3_vfp): Likewise.
6189 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6191 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6193 (arm_print_operand): Don't convert real values to decimal
6194 representation in default case.
6195 (fp_immediate_constant): Delete.
6196 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6197 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6199 (*thumb2_movsi_vfp): Likewise.
6200 (*movdi_vfp): Likewise.
6201 (*movdi_vfp_cortexa8): Likewise.
6202 (*movhf_vfp_neon): Likewise.
6203 (*movhf_vfp): Likewise.
6204 (*movsf_vfp): Likewise.
6205 (*thumb2_movsf_vfp): Likewise.
6206 (*movdf_vfp): Likewise.
6207 (*thumb2_movdf_vfp): Likewise.
6208 (*movsfcc_vfp): Likewise.
6209 (*thumb2_movsfcc_vfp): Likewise.
6210 (*movdfcc_vfp): Likewise.
6211 (*thumb2_movdfcc_vfp): Likewise.
6213 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6215 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6219 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6222 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6223 Use qualifier_immediate for last operand. Rename to...
6224 (aarch64_types_ternop_lane_qualifiers): ... This.
6225 (TYPES_QUADOP): Rename to...
6226 (TYPES_TERNOP_LANE): ... This.
6227 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6228 error. Change return of 0 to return of NULL_RTX.
6229 (aarch64_crc32_expand_builtin): Likewise.
6230 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6231 ICE when expanding unknown builtin.
6232 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6233 TERNOP_LANE qualifiers.
6234 (sqdmlsl_lane): Likewise.
6235 (sqdmlal_laneq): Likewise.
6236 (sqdmlsl_laneq): Likewise.
6237 (sqdmlal2_lane): Likewise.
6238 (sqdmlsl2_lane): Likewise.
6239 (sqdmlal2_laneq): Likewise.
6240 (sqdmlsl2_laneq): Likewise.
6242 2014-09-09 Nick Clifton <nickc@redhat.com>
6244 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6246 (S/390 and zSeries Options): Remove superfluous word from the
6247 description of the -mhotpatch option.
6249 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6251 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6252 * ira.c: #include "shrink-wrap.h"
6253 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6254 * ifcvt.c: #include "shrink-wrap.h"
6255 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6257 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6259 * common/config/picochip/picochip-common.c: Remove.
6260 * config.gcc: Remove support for picochip.
6261 * config/picochip/constraints.md: Remove.
6262 * config/picochip/dfa_space.md: Remove.
6263 * config/picochip/dfa_speed.md: Remove.
6264 * config/picochip/picochip-protos.h: Remove.
6265 * config/picochip/picochip.c: Remove.
6266 * config/picochip/picochip.h: Remove.
6267 * config/picochip/picochip.md: Remove.
6268 * config/picochip/picochip.opt: Remove.
6269 * config/picochip/predicates.md: Remove.
6270 * config/picochip/t-picochip: Remove.
6271 * doc/md.texi: Don't document picochi.
6273 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6275 * basic-block.h (control_flow_insn_p): Strengthen param from
6276 const_rtx to const rtx_insn *.
6277 * cfgbuild.c (control_flow_insn_p): Likewise.
6279 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6281 * gcse.c (modify_mem_list): Strengthen this variable from
6282 vec<rtx> * to vec<rtx_insn *> *.
6283 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6285 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6286 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6287 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6289 (record_last_set_info): Likewise for local "last_set_insn".
6291 2014-09-08 DJ Delorie <dj@redhat.com>
6293 * doc/invoke.texi (MSP430 Options): Add -minrt.
6295 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6297 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6298 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6299 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6301 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6303 (adjust_splat): New function.
6304 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6305 (dump_swap_insn_table): Add case for SH_SPLAT.
6307 2014-09-08 Richard Biener <rguenther@suse.de>
6310 * tree-inline.c (copy_loops): The source loop header should
6312 (tree_function_versioning): If loops need fixup after removing
6313 unreachable blocks fix them.
6314 * omp-low.c (simd_clone_adjust): Do not add incr block to
6315 loop under construction.
6317 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6319 * config/aarch64/aarch64-builtins.c
6320 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6322 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6324 * config/i386/cygming.h (TF_SIZE): Remove.
6325 * config/i386/darwin.h (TF_SIZE): Remove.
6326 * config/i386/dragonfly.h (TF_SIZE): Remove.
6327 * config/i386/freebsd.h (TF_SIZE): Remove.
6328 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6329 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6330 * config/i386/sol2.h (TF_SIZE): Remove.
6331 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6332 * config/ia64/linux.h (TF_SIZE): Remove.
6333 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6334 * doc/tm.texi: Regenerate.
6335 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6337 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6339 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6341 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6343 * doc/tm.texi: Regenerate.
6344 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6346 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6347 * config/cris/cris.h (__make_dp): Remove.
6349 2014-09-08 Richard Biener <rguenther@suse.de>
6352 * cfgloop.c (mark_loop_for_removal): Track former header
6354 * cfgloop.h (struct loop): Add former_header member unconditionally.
6355 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6356 diagnostic unconditionally.
6358 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6361 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6362 constraint for operand0 and remove write only modifier from operand3.
6364 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6366 PR rtl-optimization/62208
6367 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6368 rather than const0_rtx in eq/ne-xor simplifications.
6370 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6372 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6373 (arc_output_mi_thunk): Likewise.
6375 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6376 arguments to silence bogus warning.
6378 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6381 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6383 2014-09-06 Tom de Vries <tom@codesourcery.com>
6385 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6386 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6387 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6389 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6392 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6393 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6395 2014-09-05 Easwaran Raman <eraman@google.com>
6397 PR rtl-optimization/62146
6398 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6399 hoisted instruction unconditional.
6401 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6404 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6405 Do not allow any_mask_operand for operands[2].
6406 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6408 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6410 * config/arc/arc.c (arc_print_operand): Use insn method of
6411 final_sequence for type-safety.
6412 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6413 "insn" from rtx to rtx_insn *.
6414 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6415 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6416 Likewise for locals "branch", "label".
6417 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6418 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6419 (same_cmp_following_p): Likewise for locals "i2", "i3".
6420 * config/sh/sh_optimize_sett_clrt.cc
6421 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6422 param "cbranch_insn".
6423 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6424 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6425 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6427 (condjump_p): Likewise.
6428 (condjump_in_parallel_p): Likewise.
6430 (any_uncondjump_p): Likewise.
6431 (any_condjump_p): Likewise.
6432 (condjump_label): Likewise.
6433 (returnjump_p): Strengthen param "insn" from rtx to
6435 (onlyjump_p): Strengthen param "insn" from const_rtx to
6437 (jump_to_label_p): Likewise.
6438 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6439 (invert_jump): Likewise.
6440 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6442 (get_jump_flags): Strengthen param "insn" from rtx to
6444 (get_branch_condition): Likewise.
6445 (condition_dominates_p): Likewise.
6446 (make_return_insns): Move declaration of local "pat" earlier, to
6447 after we've handled NONJUMP_INSN_P and non-sequences, using its
6448 methods to simplify the code and for type-safety.
6449 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6451 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6452 (condjump_p): Strengthen param from const_rtx to
6454 (any_condjump_p): Likewise.
6455 (any_uncondjump_p): Likewise.
6457 (condjump_label): Likewise.
6458 (simplejump_p): Likewise.
6459 (returnjump_p): Likewise.
6460 (onlyjump_p): Likewise.
6461 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6462 (invert_jump): Likewise.
6463 (condjump_in_parallel_p): Strengthen param from const_rtx to
6465 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6466 to const rtx_insn *.
6467 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6468 to const rtx_insn *.
6469 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6471 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6473 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6474 above the conditional, and convert the check on GET_CODE to a
6475 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6476 the conditional. Simplify the conditional by using methods of
6479 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6481 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6482 "link" from rtx to rtx_insn_list *, and use its methods for
6483 clarity and type-safety.
6484 (toggle_cancelled_flags): Likewise.
6485 (restore_last_backtrack_point): Likewise.
6486 (queue_to_ready): Use insn method of "link" in one place.
6487 (schedule_block): Strengthen local "link" from rtx to
6488 rtx_insn_list *, and use its methods for clarity and type-safety.
6490 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6492 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6493 param "insn" from const_rtx to const rtx_insn *.
6494 (sched_get_reverse_condition_uncached): Likewise.
6495 (sched_get_condition_with_rev): Likewise.
6496 (sched_has_condition_p): Likewise.
6497 (sched_insns_conditions_mutex_p): Likewise for both params.
6498 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6499 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6500 (setup_insn_reg_uses): Move local "list" to be more tightly
6501 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6502 its methods for clarity and type-safety.
6503 (sched_analyze_1): Strengthen local "pending" from rtx to
6504 rtx_insn_list *, and local "pending_mem" from rtx to
6505 rtx_expr_list *. Use methods of each for clarity and type-safety.
6506 (sched_analyze_2): Likewise.
6507 (sched_analyze_insn): Likewise.
6509 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6510 param from const_rtx to const rtx_insn *.
6511 (sched_insns_conditions_mutex_p): Likewise for both params.
6512 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6515 * system.h (CONST_CAST_RTX_INSN): New macro.
6517 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6519 * recog.c (peep2_attempt): Strengthen return type from rtx to
6521 (peep2_update_life): Likewise for params "last", "prev", removing
6522 a checked cast made redundant by this.
6523 (peephole2_optimize): Likewise for local "last".
6525 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6527 * basic-block.h (set_block_for_insn): Eliminate this macro in
6529 * rtl.h (set_block_for_insn): New inline function, imposing the
6530 requirement that the "insn" param is an rtx_insn *.
6532 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6534 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6536 * final.c (get_call_reg_set_usage): Likewise for first param,
6537 eliminating a checked cast.
6538 * regs.h (get_call_reg_set_usage): Likewise for first param.
6539 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6540 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6541 cast, replacing references to "x" with "call_insn" where
6543 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6544 rtx_insn *, adding a checked cast.
6546 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6548 * output.h (final_scan_insn): Strengthen first param from rtx to
6551 * final.c (final_scan_insn): Likewise, renaming it back from
6552 "uncast_insn" to "insn", eliminating the checked cast.
6554 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6555 "vec" with an rtx_sequence * "seq", taking a copy of
6556 "final_sequence", and using methods of "seq" for clarity, and for
6557 type-safety in the calls to final_scan_insn.
6558 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6559 of "final_sequence" for clarity, and for type-safety in the call to
6561 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6562 rtx_sequence * and rename from "insn" to "seq".
6564 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6566 * jump.c (delete_related_insns): Introduce a new local "table" by
6567 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6568 get_labels method of "table" to simplify access to the labels in
6571 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6573 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6574 f_minmaxs, f_minmaxd types.
6576 2014-09-05 Richard Biener <rguenther@suse.de>
6578 * cfgloop.c (mark_loop_for_removal): Record former header
6579 when ENABLE_CHECKING.
6580 * cfgloop.h (strut loop): Add former_header member when
6582 * loop-init.c (fix_loop_structure): Sanity check loops
6583 marked for removal if they re-appeared.
6585 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6587 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6588 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6590 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6591 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6592 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6593 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6594 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6595 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6596 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6597 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6598 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6599 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6600 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6601 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6602 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6603 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6604 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6605 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6606 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6607 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6608 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6609 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6610 with int{32,16,8}_t.
6612 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6614 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6615 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6616 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6617 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6618 Remove temporary __asm__ and reimplement.
6620 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6622 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6623 handling cmge, cmgt, cmeq, cmtst.
6625 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6626 cmlt, cmgeu, cmgtu, cmtst): Remove.
6628 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6629 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6630 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6631 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6633 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6635 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6637 (aarch64_fold_builtin): Update pattern for cmtst.
6639 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6642 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6644 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6645 Switch operands, separate out more cases, refactor.
6647 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6649 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6650 argument; rename old version to...
6651 (aarch64_const_vec_all_same_in_range_p): ...this.
6652 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6654 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6656 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6658 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6659 Remove qualifier_const_pointer, update comment.
6661 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6663 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6665 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6667 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6668 varargs with pointer parameter.
6669 (aarch64_simd_expand_builtin): pass pointer into previous.
6671 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6673 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6676 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6678 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6679 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6680 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6681 Replace temporary asm with call to builtin.
6682 (vrbit_p8, vrbitq_p8): New functions.
6684 2014-09-05 Richard Biener <rguenther@suse.de>
6686 * cfgloop.c (mark_loop_for_removal): New function.
6687 * cfgloop.h (mark_loop_for_removal): Declare.
6688 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6689 (merge_blocks): Likewise.
6690 (duplicate_block): Likewise.
6691 * except.c (sjlj_emit_dispatch_table): Likewise.
6692 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6693 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6694 (thread_through_loop_header): Likewise.
6696 2014-09-05 Richard Biener <rguenther@suse.de>
6699 * fold-const.c (try_move_mult_to_index): Remove.
6700 (fold_binary_loc): Do not call it.
6701 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6702 from the base object again.
6704 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6706 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6709 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6712 * config/arm/arm.md (setmem): New pattern.
6713 * config/arm/arm-protos.h (struct tune_params): New fields.
6714 (arm_gen_setmem): New prototype.
6715 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6716 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6717 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6718 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6719 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6720 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6721 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6722 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6723 (arm_const_inline_cost): New function.
6724 (arm_block_set_max_insns): New function.
6725 (arm_block_set_non_vect_profit_p): New function.
6726 (arm_block_set_vect_profit_p): New function.
6727 (arm_block_set_unaligned_vect): New function.
6728 (arm_block_set_aligned_vect): New function.
6729 (arm_block_set_unaligned_non_vect): New function.
6730 (arm_block_set_aligned_non_vect): New function.
6731 (arm_block_set_vect, arm_gen_setmem): New functions.
6733 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6735 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6737 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6739 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6741 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6743 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6745 * valtrack.h: Adjust.
6747 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6749 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6751 (emit_jump_insn_before_noloc): Likewise.
6752 (emit_call_insn_before_noloc): Likewise.
6753 (emit_label_before): Likewise.
6754 (emit_label_after): Likewise.
6755 (emit_insn_before_setloc): Likewise.
6756 (emit_jump_insn_before_setloc): Likewise.
6757 (emit_call_insn_before_setloc): Likewise.
6758 (emit_call_insn_before): Likewise.
6761 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6763 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6764 rtx_insn *, eliminating a checked cast.
6766 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6768 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6769 const_rtx to const rtx_insn *.
6770 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6773 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6775 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6776 fixup_args_size_notes.
6777 * expr.c (fixup_args_size_notes): Strengthen first two params from
6778 rtx to rtx_insn *, eliminating a checked cast.
6779 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6782 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6784 * haifa-sched.c (get_ready_element): Strengthen return type from
6786 * sched-int.h (get_ready_element): Likewise.
6788 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6791 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6792 indexed_or_indirect_operand instead of memory_operand.
6793 (floatsi<mode>2_lfiwzx_mem): Ditto.
6795 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6797 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6798 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6799 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6801 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6803 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6805 (get_last_nonnote_insn): Likewise.
6806 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6807 * resource.c (find_basic_block): Likewise.
6809 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6812 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6814 * genattr.c (main): Within the prototype of insn_latency written
6815 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6816 * genautomata.c (output_internal_maximal_insn_latency_func):
6817 Within the implementation of insn_latency written out to
6818 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6819 eliminating a pair of checked casts.
6821 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6823 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6826 * rtl.h (eh_returnjump_p): Likewise.
6828 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6830 * Makefile.in (TAGS): Handle constructs in timevar.def.
6832 2014-09-04 Guozhi Wei <carrot@google.com>
6835 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6836 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6837 it into two patterns.
6838 (move_lo_quad_internal_be_<mode>): Likewise.
6840 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6842 * doc/options.texi: Document that Var and Init are required if CPP
6844 * optc-gen.awk: Require Var and Init if CPP is given.
6845 * common.opt (Wpedantic): Use Init.
6847 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6849 * config/rs6000/rs6000.c (special_handling_values): Add
6851 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6852 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6853 as swappable with special handling SH_EXTRACT. Remove
6854 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6856 (adjust_extract): New function.
6857 (handle_special_swappables): Add default to case statement; add
6858 case for SH_EXTRACT that calls adjust_extract.
6859 (dump_swap_insn_table): Handle SH_EXTRACT.
6861 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6863 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6864 selection of 0th memory doubleword, regardless of endianness.
6866 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6868 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6870 2014-09-04 Alan Modra <amodra@gmail.com>
6873 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6876 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6878 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6879 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6880 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6881 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6882 * doc/tm.texi: Regenerate.
6883 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6884 selection logic to default_dwarf_frame_reg_mode.
6886 2014-09-03 Marek Polacek <polacek@redhat.com>
6888 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6891 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6893 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6894 the automodified register.
6896 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6898 * output.h (get_some_local_dynamic_name): Declare.
6899 * final.c (some_local_dynamic_name): New variable.
6900 (get_some_local_dynamic_name): New function.
6901 (final_end_function): Clear some_local_dynamic_name.
6902 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6903 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6904 (print_operand): Report an error if '%&' is used inappropriately.
6905 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6906 (get_some_local_dynamic_name_1): Delete.
6907 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6908 (rs6000_get_some_local_dynamic_name): Delete.
6909 (rs6000_get_some_local_dynamic_name_1): Delete.
6910 (print_operand): Report an error if '%&' is used inappropriately.
6911 * config/s390/s390.c (machine_function): Remove some_ld_name.
6912 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6913 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6914 * config/sparc/sparc.c: Include rtl-iter.h.
6915 (machine_function): Remove some_ld_name.
6916 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6917 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6919 2014-09-03 Richard Henderson <rth@redhat.com>
6921 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6922 (aarch64_popwb_pair_reg): Remove.
6923 (aarch64_set_frame_expr): Remove.
6924 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6925 the restore ops performed by the insns generated.
6926 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6927 insn. Perform the calls_eh_return addition later; do not attempt to
6928 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6929 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6930 special markup at all. Load cfun->machine->frame.hard_fp_offset
6931 into a local variable.
6932 (aarch64_frame_pointer_required): Don't check calls_alloca.
6934 2014-09-03 Richard Biener <rguenther@suse.de>
6936 * opts.c (default_options_optimization): Adjust
6937 max-combine-insns to 2 for -Og.
6939 2014-09-03 Martin Jambor <mjambor@suse.cz>
6942 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6943 pass-trough jump functions correctly.
6945 2014-09-03 Martin Jambor <mjambor@suse.cz>
6948 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6949 created replacements in ascending order of offsets.
6950 (known_aggs_to_agg_replacement_list): Likewise.
6952 2014-09-03 Martin Liska <mliska@suse.cz>
6954 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6955 is set to set uninitialized value for vnresult.
6957 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6959 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6960 for TARGET_MUST_PASS_IN_STACK.
6962 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6964 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6965 for TARGET_ARG_PARTIAL_BYTES.
6967 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6969 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6970 instructions for varargs implementation.
6971 (nds32_expand_epilogue): Emit stack adjustment instructions for
6972 varargs implementation.
6974 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6976 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6977 optimization detection.
6979 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6981 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6983 (nds32_function_arg_advance): Deal with nameless arguments.
6984 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6985 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6986 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6988 2014-09-03 Richard Biener <rguenther@suse.de>
6990 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6991 (struct bb_bitmap_sets): Remove deferred member.
6992 (BB_DEFERRED): Remove.
6993 (defer_or_phi_translate_block): Remove.
6994 (compute_antic_aux): Remove deferring of blocks, assert
6995 proper iteration order.
6996 (compute_antic): Do not set BB_DEFERRED.
6997 (eliminate): Allocate el_avail of proper size initially.
6999 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7001 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7002 according to the value of crtl->args.pretend_args_size.
7004 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7006 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7007 varargs information.
7009 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7011 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7012 implementation for TARGET_SETUP_INCOMING_VARARGS.
7013 (nds32_strict_argument_naming): Refine comment.
7014 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7015 Define for future implementation.
7017 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7019 * config/i386/adxintrin.h (_subborrow_u32): New.
7020 (_addcarry_u32): Ditto.
7021 (_subborrow_u64): Ditto.
7022 (_addcarry_u64): Ditto.
7023 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7025 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7026 __builtin_ia32_sbb_u64
7028 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7030 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7032 (nds32_function_arg_advance): Likewise.
7033 (nds32_init_cumulative_args): Likewise.
7034 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7035 (NDS32_FIRST_GPR_REGNUM): Define.
7036 (NDS32_LAST_GPR_REGNUM): Define.
7037 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7038 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7039 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7040 (machine_function): Use GRP-specific stuff.
7042 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7044 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7045 (nds32_expand_epilogue): Likewise.
7046 (nds32_expand_prologue_v3push): Likewise.
7047 (nds32_expand_epilogue_v3pop): Likewise.
7049 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7051 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7052 v3push/v3pop for variadic function.
7053 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7055 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7057 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7058 Check rtx for varargs implementation.
7059 (nds32_output_stack_pop): Likewise.
7060 * config/nds32/nds32-protos.h: Have a rtx argument for
7061 nds32_output_stack_push and nds32_output_stack_pop.
7062 * config/nds32/nds32.md: Likewise.
7064 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7066 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7067 to check if FUNC is an interrupt service routine.
7068 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7070 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7072 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7073 arguments implementation.
7075 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7077 * config/nds32/nds32-predicates.c
7078 (nds32_valid_stack_push_pop): Rename to ...
7079 (nds32_valid_stack_push_pop_p): ... this.
7080 * config/nds32/nds32-protos.h: Likewise.
7081 * config/nds32/predicates.md: Likewise.
7083 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7085 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7086 (nds32_emit_stack_v3push): ... this.
7087 (nds32_gen_stack_v3pop): Rename to ...
7088 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7091 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7093 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7094 (nds32_emit_stack_push_multiple): ... this.
7095 (nds32_gen_stack_pop_multiple): Rename to ...
7096 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7099 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7102 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7103 and add a second splitter to handle the remaining cases.
7105 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7107 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7109 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7111 * cfgexpand.c (label_rtx_for_bb): Change type to
7112 hash_map<basic_block, rtx_code_label *> *.
7113 (expand_gimple_basic_block): Adjust.
7114 (pass_expand::execute): Likewise.
7116 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7118 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7119 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7120 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7121 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7122 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7123 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7124 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7127 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7129 * alloc-pool.c: Include coretypes.h.
7130 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7131 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7132 hash_set instead of htab.
7133 * ggc-page.c (in_gc): New variable.
7134 (ggc_free): Do nothing if a collection is taking place.
7135 (ggc_collect): Set in_gc appropriately.
7136 * ggc.h (gt_ggc_mx(const char *)): New function.
7137 (gt_pch_nx(const char *)): Likewise.
7138 (gt_ggc_mx(int)): Likewise.
7139 (gt_pch_nx(int)): Likewise.
7140 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7141 (hash_map::hash_entry::pch_nx): Likewise.
7142 (hash_map::hash_entry::pch_nx_helper): Likewise.
7143 (hash_map::hash_map): Adjust.
7144 (hash_map::create_ggc): New function.
7145 (gt_ggc_mx): Likewise.
7146 (gt_pch_nx): Likewise.
7147 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7148 (default_hashset_traits::pch_nx): Likewise.
7149 (hash_set::hash_entry::ggc_mx): Likewise.
7150 (hash_set::hash_entry::pch_nx): Likewise.
7151 (hash_set::hash_entry::pch_nx_helper): Likewise.
7152 (hash_set::hash_set): Adjust.
7153 (hash_set::create_ggc): New function.
7154 (hash_set::elements): Likewise.
7155 (gt_ggc_mx): Likewise.
7156 (gt_pch_nx): Likewise.
7157 * hash-table.h (hash_table::hash_table): Adjust.
7158 (hash_table::m_ggc): New member.
7159 (hash_table::~hash_table): Adjust.
7160 (hash_table::expand): Likewise.
7161 (hash_table::empty): Likewise.
7162 (gt_ggc_mx): New function.
7163 (hashtab_entry_note_pointers): Likewise.
7164 (gt_pch_nx): Likewise.
7166 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7168 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7169 built-in definition.
7170 (XVCVUXDDP_SCALE): Likewise.
7171 (XVCVDPSXDS_SCALE): Likewise.
7172 (XVCVDPUXDS_SCALE): Likewise.
7173 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7174 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7175 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7176 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7177 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7179 * config/rs6000/rs6000.c (real.h): New include.
7180 (rs6000_scale_v2df): New function.
7181 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7182 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7183 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7184 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7185 (vsx_xvcvsxddp_scale): New define_expand.
7186 (vsx_xvcvsxddp): New define_insn.
7187 (vsx_xvcvuxddp_scale): New define_expand.
7188 (vsx_xvcvuxddp): New define_insn.
7189 (vsx_xvcvdpsxds_scale): New define_expand.
7190 (vsx_xvcvdpsxds): New define_insn.
7191 (vsx_xvcvdpuxds_scale): New define_expand.
7192 (vsx_xvcvdpuxds): New define_insn.
7193 * doc/extend.texi (vec_ctf): Add new prototypes.
7194 (vec_cts): Likewise.
7195 (vec_ctu): Likewise.
7196 (vec_splat): Likewise.
7197 (vec_div): Likewise.
7198 (vec_mul): Likewise.
7200 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7203 * config/arm/neon.md
7204 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7205 <v_cmp_result>): New pattern.
7206 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7207 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7208 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7209 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7210 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7211 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7213 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7216 * config/arm/iterators.md (FIXUORS): New code iterator.
7217 (VCVT): New int iterator.
7218 (su_optab): New code attribute.
7220 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7222 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7224 * config/aarch64/predicates.md (aarch64_comparison_operation):
7225 New special predicate.
7226 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7227 aarch64_comparison_operation instead of matching an operator.
7228 Update operand numbers.
7229 (csinc3<mode>_insn): Likewise.
7230 (*csinv3<mode>_insn): Likewise.
7231 (*csneg3<mode>_insn): Likewise.
7232 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7233 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7234 Return -1 instead of aborting on invalid condition codes.
7235 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7236 to assert that the returned condition code is valid.
7237 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7239 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7241 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7242 tree.def, and gimple.def
7244 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7245 Balaji V. Iyer <balaji.v.iyer@intel.com>
7246 Igor Zamyatin <igor.zamyatin@intel.com>
7248 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7249 (__cilkrts_cilk_for_64): Likewise.
7250 * cilk-common.c (declare_cilk_for_builtin): New function.
7251 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7252 __cilkrts_cilk_for_64 bultins.
7253 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7255 (cilk_for_32_fndecl): New define.
7256 (cilk_for_64_fndecl): Likewise.
7257 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7258 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7259 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7260 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7261 GF_OMP_FOR_COMBINED_INTO.
7262 * gimplify.c (gimplify_scan_omp_clauses): Added
7263 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7264 (gimplify_adjust_omp_clauses): Ditto.
7265 (gimplify_omp_for): Added CILK_FOR case.
7266 (gimplify_expr): Ditto.
7267 * omp-low.c: Include cilk.h.
7268 (extract_omp_for_data): Set appropriate kind for
7269 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7270 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7271 (create_omp_child_function_name): Added second argument to handle
7273 (cilk_for_check_loop_diff_type): New function.
7274 (expand_cilk_for_call): Likewise.
7275 (expand_cilk_for): Likewise.
7276 (create_omp_child_function): Set cilk_for_count; handle the cases when
7277 it is true; call create_omp_child_function_name with second argument.
7278 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7279 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7280 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7281 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7282 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7283 (convert_local_omp_clauses): Ditto.
7284 * tree-pretty-print.c (dump_omp_clause): Added
7285 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7286 (dump_generic_node): Added CILK_FOR case.
7287 * tree.c (omp_clause_num_ops): New element
7288 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7289 (omp_clause_code_name): New element _Cilk_for_count_.
7290 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7291 * tree.def: Add tree code for CILK_FOR.
7293 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7295 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7296 (ppc403-compare): Add "exts with dot" case.
7297 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7298 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7299 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7300 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7301 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7302 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7303 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7304 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7305 cell-cmp-microcoded): Similarly.
7306 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7307 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7308 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7309 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7310 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7311 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7312 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7313 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7314 (power6-compare): Add "exts with dot" case.
7315 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7316 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7317 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7319 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7320 if avoiding Cell microcode.
7321 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7322 (is_cracked_insn): Ditto.
7323 (insn_must_be_first_in_group): Ditto.
7324 * config/rs6000/rs6000.md (dot): Adjust comment.
7325 (cell_micro): Handle exts+dot.
7326 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7327 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7328 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7329 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7330 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7331 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7332 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7334 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7336 * config/rs6000/rs6000.md (QHSI): Delete.
7337 (EXTQI, EXTHI, EXTSI): New mode iterators.
7338 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7339 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7340 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7341 9 anonymous instructions, and 8 splitters): Delete.
7342 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7343 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7344 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7345 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7346 *zero_extendsi<mode>2_dot2): New.
7348 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7350 * config/rs6000/rs6000.md (any_extend): New code iterator.
7351 (u, su): New code attributes.
7352 (dmode, DMODE): New mode attributes.
7353 (<su>mul<mode>3_highpart): New.
7354 (*<su>mul<mode>3_highpart): New.
7355 (<su>mulsi3_highpart_le): New.
7356 (<su>muldi3_highpart_le): New.
7357 (<su>mulsi3_highpart_64): New.
7358 (<u>mul<mode><dmode>3): New.
7359 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7361 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7364 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7366 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7367 *mulsi3_internal2, and two splitters): Delete.
7368 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7370 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7372 2014-09-02 Richard Biener <rguenther@suse.de>
7374 PR tree-optimization/62695
7375 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7378 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7381 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7383 2014-09-01 Andi Kleen <ak@linux.intel.com>
7385 * file-find.c (add_prefix_begin): Add.
7386 (do_add_prefix): Rename from add_prefix with first argument.
7387 (add_prefix): Add new wrapper.
7388 * file-find.h (add_prefix_begin): Add.
7389 * gcc-ar.c (main): Support -B option.
7391 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7393 * genemit.c: Include dumpfile.h.
7394 (gen_split): Print name of splitter function to dump file.
7396 2014-09-01 Richard Biener <rguenther@suse.de>
7398 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7399 Use stack auto_vecs for constraint expressions.
7400 (find_func_aliases_for_call): Likewise.
7401 (find_func_aliases): Likewise.
7402 (find_func_clobbers): Likewise.
7404 2014-09-01 Richard Biener <rguenther@suse.de>
7406 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7407 operands vector in most cases. Remove redundant code.
7409 2014-09-01 Olivier Hainque <hainque@adacore.com>
7411 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7412 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7413 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7415 2014-09-01 Richard Biener <rguenther@suse.de>
7417 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7418 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7419 vn_reference_compute_hash, vn_reference_insert): Remove.
7420 (vn_reference_lookup_call): New function.
7421 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7422 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7423 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7424 (create_reference_ops_from_call): Remove.
7425 (vn_reference_lookup_3): Properly update shared_lookup_references.
7426 (vn_reference_lookup_pieces): Assert that we updated
7427 shared_lookup_references properly.
7428 (vn_reference_lookup): Likewise.
7429 (vn_reference_lookup_call): New function.
7430 (visit_reference_op_call): Use it. Avoid re-building the
7432 (visit_reference_op_load): Remove redundant lookup.
7433 (visit_reference_op_store): Perform special tail-merging work
7434 only when possibly doing tail-merging.
7435 (visit_use): Likewise.
7436 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7438 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7441 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7442 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7443 (find_inc): Revert 2014-08-13 change.
7445 2014-09-01 Marek Polacek <polacek@redhat.com>
7448 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7449 Change the type of V to unsigned HOST_WIDE_INT.
7451 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7453 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7454 the size of byte markers.
7455 (do_shift_rotate): Fix confusion between host, target and marker byte
7457 (verify_symbolic_number_p): Likewise.
7458 (find_bswap_or_nop_1): Likewise.
7459 (find_bswap_or_nop): Likewise.
7461 2014-09-01 Olivier Hainque <hainque@adacore.com>
7463 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7464 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7466 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7468 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7469 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7470 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7472 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7476 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7477 (build_check_stmt): Likewise.
7478 (instrument_strlen_call): Likewise.
7479 (asan_expand_check_ifn): Likewise and fix types.
7480 (maybe_cast_to_ptrmode): New function.
7482 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7484 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7486 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7488 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7490 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7492 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7493 prefix to function labels when generating fast indirect calls.
7495 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7499 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7500 param back from rtx_insn * to rtx. Rename param from "label" to
7501 "label_or_return", reintroducing "label" as an rtx_insn * after
7502 we've ensured it's not a RETURN.
7503 (first_active_target_insn): Likewise for return type and param;
7504 add a checked cast to rtx_insn * once we've ensured "insn" is not
7506 (steal_delay_list_from_target): Convert param "pnew_thread" back
7507 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7509 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7510 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7511 cast once we've established we're not dealing with a RETURN,
7512 renaming subsequent uses of "thread" to "thread_insn".
7513 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7515 (follow_jumps): Convert return type and param "label" from
7516 rtx_insn * back to rtx. Move initialization of "value" to after
7517 the handling for ANY_RETURN_P, adding a checked cast there to
7518 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7519 rename to "this_label_or_return", reintroducing "this_label" as
7520 an rtx_insn * once we've handled the case where it could be an
7522 (fill_slots_from_thread): Rename param "thread" to
7523 "thread_or_return", converting from an rtx_insn * back to an rtx.
7524 Reintroduce name "thread" as an rtx_insn * local with a checked
7525 cast once we've handled the case of it being an ANY_RETURN_P.
7526 Convert local "new_thread" from an rtx_insn * back to an rtx.
7527 Add a checked cast when assigning to "trial" from "new_thread".
7528 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7529 checked cast to rtx_insn * from "new_thread" when invoking
7531 (fill_eager_delay_slots): Convert locals "target_label",
7532 "insn_at_target" from rtx_insn * back to rtx.
7533 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7534 (relax_delay_slots): Convert locals "trial", "target_label" from
7535 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7536 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7537 invoking update_block.
7538 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7539 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7541 * resource.h (mark_target_live_regs): Undo erroneous conversion
7542 of second param of r214693, converting it back from rtx_insn * to
7543 rtx, since it could be a RETURN.
7545 * resource.c (find_dead_or_set_registers): Similarly, convert
7546 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7547 could be writing back a RETURN. Rename local rtx_insn * "next" to
7548 "next_insn", and introduce "lab_or_return" as a local rtx,
7549 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7550 (mark_target_live_regs): Undo erroneous conversion
7551 of second param of r214693, converting it back from rtx_insn * to
7552 rtx, since it could be a RETURN. Rename it from "target" to
7553 "target_maybe_return", reintroducing the name "target" as a local
7554 rtx_insn * with a checked cast, after we've handled the case of
7557 2014-08-29 DJ Delorie <dj@redhat.com>
7559 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7560 pointer size up to a power of two.
7561 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7562 (POINTER_SIZE_UNITS): New, rounded up value.
7563 * dwarf2asm.c (size_of_encoded_value): Use it.
7564 (dw2_output_indirect_constant_1): Likewise.
7565 * expmed.c (init_expmed_one_conv): We now know the sizes of
7567 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7568 * optabs.c (expand_float): Use precision, not size.
7569 (expand_fix): Likewise.
7570 * simplify-rtx (simplify_unary_operation_1): Likewise.
7571 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7572 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7573 (default_assemble_integer) Likewise.
7574 (dump_tm_clone_pairs): Likewise.
7575 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7576 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7577 (prepare_call_arguments): Likewise.
7578 * stor-layout.c (finalize_type_size): Preserve precision.
7579 (layout_type): Use precision, not size.
7581 * expr.c (convert_move): If the target has an explicit converter,
7584 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7586 * gdbinit.in: Skip various inline functions in rtl.h when
7589 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7592 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7594 2014-08-29 Richard Biener <rguenther@suse.de>
7596 PR tree-optimization/62291
7597 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7598 exactly the vector size needed and use quick_push.
7599 (phi_translate_1): Adjust comment.
7600 (valid_in_sets): Remove block argument and remove pointless
7602 (dependent_clean): Adjust for removal of block argument.
7604 (compute_antic_aux): Likewise.
7605 (compute_partial_antic_aux): Likewise.
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/sse.md
7617 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7618 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7619 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7620 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7622 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7624 Anna Tikhonova <anna.tikhonova@intel.com>
7625 Ilya Tocar <ilya.tocar@intel.com>
7626 Andrey Turetskiy <andrey.turetskiy@intel.com>
7627 Ilya Verbin <ilya.verbin@intel.com>
7628 Kirill Yukhin <kirill.yukhin@intel.com>
7629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7631 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7632 * config/i386/sse.md
7633 (define_mode_iterator VI4_128_8_256): New.
7634 (define_mode_iterator VI2_128_4_256): Ditto.
7635 (define_mode_iterator PMOV_DST_MODE): Rename into
7636 (define_mode_iterator PMOV_DST_MODE_1): this.
7637 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7638 Use PMOV_DST_MODE_1 mode iterator.
7639 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7641 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7643 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7644 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7645 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7646 (define_mode_iterator PMOV_DST_MODE_2): New.
7647 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7648 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7649 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7651 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7652 (define_mode_attr pmov_dst_3): Ditto.
7653 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7654 (define_mode_attr pmov_suff_3): Ditto.
7655 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7656 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7657 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7658 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7659 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7660 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7661 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7662 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7663 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7664 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7665 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7666 (define_mode_attr pmov_dst_4): Ditto.
7667 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7668 (define_mode_attr pmov_suff_4): Ditto.
7669 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7670 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7671 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7672 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7673 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7674 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7675 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7676 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7677 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7678 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7679 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7681 2014-08-29 Richard Biener <rguenther@suse.de>
7683 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7684 NON_LVALUE_EXPR in gimple.
7686 2014-08-29 Richard Biener <rguenther@suse.de>
7689 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7690 from previous refactoring.
7691 (gimple_fold_builtin_strncpy): Likewise.
7693 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7696 * function.c (assign_parm_setup_reg): Remove erroneous checked
7697 cast to rtx_insn * on result of gen_extend_insn in favor of
7698 introducing a new local rtx "pat".
7700 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7702 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7704 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7706 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7708 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7709 (next_insn): Likewise.
7710 * emit-rtl.c (next_insn): Likewise.
7711 (previous_insn): Likewise.
7712 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7713 "insn" and "next" from rtx to rtx_insn *.
7714 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7715 "insn", "insn1", "vliw_start", "prologue_end_note",
7716 "last_insn_in_packet".
7718 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7720 * shrink-wrap.h (active_insn_between): Strengthen both params from
7722 * function.c (active_insn_between): Likewise.
7724 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7726 * genattr.c (main): When writing out insn-attr.h, strengthen param
7727 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7728 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7729 writing out the definition of dfa_clear_single_insn_cache to the
7730 generated insn-automata.c
7732 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7734 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7736 (incr_ticks_for_insn): Likewise.
7737 (init_resource_info): Likewise.
7739 * resource.c (init_resource_info): Likewise.
7740 (clear_hashed_info_for_insn): Likewise.
7741 (incr_ticks_for_insn): Likewise.
7743 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7745 (steal_delay_list_from_target): Use methods of "seq".
7746 (try_merge_delay_insns): Use methods of "merged_insns".
7747 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7748 (reorg_redirect_jump): Likewise for param "jump".
7750 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7752 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7754 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7755 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7757 (s390_mainpool_finish): In three places, split out a local rtx
7758 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7759 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7760 and split another local rtx "insn" out into rtx "pat" and
7762 * config/sh/sh.c (output_branchy_insn): Rather than working
7763 directly on operands[9], introduce local rtx_code_label *
7764 variables named "lab" in two places, working on them, and then
7765 assigning them to operands[9], so that the intervening operations
7766 are known by the type system to be on insns.
7768 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7770 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7773 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7774 in invocation of INSN_HAS_LOCATION.
7776 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7778 * config/rs6000/altivec.h (vec_xl): New #define.
7779 (vec_xst): Likewise.
7780 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7781 (XXSPLTD_V2DI): Likewise.
7782 (DIV_V2DI): Likewise.
7783 (UDIV_V2DI): Likewise.
7784 (MUL_V2DI): Likewise.
7785 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7786 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7787 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7788 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7789 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7790 (UNSPEC_VSX_DIVSD): Likewise.
7791 (UNSPEC_VSX_DIVUD): Likewise.
7792 (UNSPEC_VSX_MULSD): Likewise.
7793 (vsx_mul_v2di): New insn-and-split.
7794 (vsx_div_v2di): Likewise.
7795 (vsx_udiv_v2di): Likewise.
7796 (vsx_xxspltd_<mode>): New insn.
7798 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7800 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7802 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7803 (NEXT_INSN): Likewise.
7804 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7805 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7807 (no_labels_between_p): Likewise for both params.
7809 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7810 cast when using NEXT_INSN on operands[2].
7811 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7812 "insn" from rtx to rtx_insn *, adding a checked cast.
7813 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7815 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7817 (arc_text_label): Likewise for param "insn".
7818 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7820 (arc_ccfsm_record_condition): Likewise for param "jump".
7821 (arc_text_label): Likewise for local "label".
7822 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7823 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7824 a method for typesafety. Add a checked cast.
7825 * config/arc/constraints.md (Clb): Add a checked cast when getting
7826 the CODE_LABEL from a LABEL_REF.
7827 * config/arm/arm.c (require_pic_register): Strengthen locals
7828 "seq", "insn" from rtx to rtx_insn *.
7829 (create_fix_barrier): Likewise for locals "selected", "next".
7830 (thumb1_reorg): Likewise for locals "prev", "insn".
7831 (arm_expand_prologue): Likewise for local "last".
7832 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7834 (thumb2_output_casesi): Likewise for operands[2].
7835 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7836 strengthen local "insn" from rtx to rtx_insn *.
7837 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7838 type and param "insn".
7839 (find_prev_insn_start): Likewise.
7840 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7842 (gen_one_bundle): Likewise for loal "t".
7843 (find_load): Likewise for param "insn".
7844 (workaround_speculation): Likewise for locals "insn", "next",
7845 "target", "next_tgt".
7846 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7847 and for locals "insn", "within", "last".
7848 (count_unit_reqs): Likewise for params "head", "tail" and local
7850 (try_rename_operands): Likewise for params "head", "tail".
7851 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7852 (struct c6x_sched_context): Likewise for fields
7853 "last_scheduled_insn", "last_scheduled_iter0".
7854 (init_sched_state): Replace NULL_RTX with NULL.
7855 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7857 (undo_split_delayed_nonbranch): Likewise for param and for local
7859 (conditionalize_after_sched): Likewise for local "insn".
7860 (bb_earliest_end_cycle): Likewise.
7861 (filter_insns_above): Likewise for locals "insn", "next".
7862 (hwloop_optimize): Remove redundant checked cast.
7863 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7864 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7866 (cris_simple_epilogue): Likewise.
7867 (cris_expand_prologue): Likewise.
7868 (cris_expand_epilogue): Likewise.
7869 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7870 local "insn" from rtx to rtx_insn *.
7871 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7872 (struct frv_packet_group): Likewise for the elements within array
7873 fields "insns", "sorted", and for field "nop".
7874 (frv_packet): Likewise for the elements within array field
7876 (frv_add_insn_to_packet): Likewise for param "insn".
7877 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7879 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7880 (frv_sort_insn_group_1): Likewise for local "insn".
7881 (frv_optimize_membar_local): Likewise.
7882 (frv_align_label): Likewise for locals "x", "last", "barrier",
7884 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7886 (ia64_sched_init): Likewise for local "insn".
7887 (scheduled_good_insn): Likewise for param "last".
7888 (struct _ia64_sched_context): Likewise for field
7889 "last_scheduled_insn".
7890 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7891 (struct bundle_state): Likewise for field "insn".
7892 (issue_nops_and_insn): Likewise for param "insn".
7893 (get_next_important_insn): Likewise for return type and both
7895 (ia64_add_bundle_selector_before): Likewise for param "insn".
7896 (bundling): Likewise for params "prev_head_insn", "tail" and
7897 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7898 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7899 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7900 Strengthen final param from rtx to rtx_insn *.
7901 (iq2000_move_1word): Likewise for second param.
7902 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7903 param "cur_insn" and local "next_insn".
7904 (iq2000_move_1word): Likewise for param "insn".
7905 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7906 casts when using NEXT_INSN on operands[1].
7907 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7908 "insn" from rtx to rtx_insn *.
7909 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7910 "x", introducing local rtx_insn * "insn" for when working with the
7911 CODE_LABEL of the LABEL_REF.
7912 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7914 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7916 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7918 (conditionalize_block): Likewise for return type and param.
7919 (mcore_is_dead): Likewise for param "first" and local "insn".
7920 (emit_new_cond_insn): Likewise for return type.
7921 (conditionalize_block): Likewise for return type, param, and
7922 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7924 (conditionalize_optimization): Likewise for local "insn".
7925 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7927 * config/microblaze/microblaze.md: Add checked casts when using
7929 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7930 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7931 and rtx_insn * "insn".
7932 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7933 checked cast when using NEXT_INSN on operands[2].
7934 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7935 local "insn" from rtx to rtx_insn *.
7936 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7938 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7939 Add a checked cast when using NEXT_INSN on operands[1].
7940 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7942 (pa_output_cbranch): Likewise for final param.
7943 (pa_output_lbranch): Likewise for second param.
7944 (pa_output_bb): Likewise for third param.
7945 (pa_output_bvb): Likewise.
7946 (pa_output_dbra): Likewise for second param.
7947 (pa_output_movb): Likewise.
7948 (pa_output_parallel_movb): Likewise.
7949 (pa_output_parallel_addb): Likewise.
7950 (pa_output_millicode_call): Likewise for first param.
7951 (pa_output_mul_insn): Likewise for second param.
7952 (pa_output_div_insn): Likewise for third param.
7953 (pa_output_mod_insn): Likewise for second param.
7954 (pa_jump_in_call_delay): Likewise for param.
7955 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7956 (pa_output_div_insn): Likewise.
7957 (pa_output_mod_insn): Likewise.
7958 (pa_output_cbranch): Likewise.
7959 (pa_output_lbranch): Likewise.
7960 (pa_output_bb): Likewise.
7961 (pa_output_bvb): Likewise.
7962 (pa_output_dbra): Likewise.
7963 (pa_output_movb): Likewise.
7964 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7965 to simplify and for typesafety.
7966 (pa_output_call): Use method of rtx_sequence *.
7967 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7968 (pa_jump_in_call_delay): Likewise.
7969 (pa_output_parallel_movb): Likewise.
7970 (pa_output_parallel_addb): Likewise.
7971 (pa_following_call): Likewise.
7972 (pa_combine_instructions): Likewise for locals "anchor",
7974 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7975 locals "start", "end".
7976 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7977 param "insn" and local "local_insn".
7978 (picochip_final_prescan_insn): Likewise for local "local_insn".
7979 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7981 (uses_TOC): Likewise.
7982 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7983 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7984 splitting out to more tightly-scoped locals, 3 as rtx and one as
7986 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7988 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7990 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7992 (fixup_addr_diff_vecs): Likewise.
7993 (reg_unused_after): Likewise for param 2.
7994 (sh_can_redirect_branch): Likewise for both params.
7995 (check_use_sfunc_addr): Likewise for param 1.
7996 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7997 (find_barrier): Likewise for local "last_got".
7998 (gen_block_redirect): Likewise for return type, param "jump" and
7999 locals "prev", "scan", "next", "insn".
8000 (struct far_branch): Likewise for fields "near_label",
8001 "insert_place", "far_label".
8002 (gen_far_branch): Likewise for local "jump".
8003 (fixup_addr_diff_vecs): Likewise for param "first" and locals
8005 (barrier_align): Likewise for param and for locals "prev", "x".
8006 Introduce local rtx_sequence * "prev_seq" and use insn method for
8007 typesafety and clarity.
8008 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8009 (get_dest_uid): Likewise for local "dest".
8010 (split_branches): Likewise for locals "next", "beyond", "label",
8011 "block", "far_label". Add checked casts when assigning to
8012 bp->far_label and "far_label".
8013 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8014 (sequence_insn_p): Likewise.
8015 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8016 more loop-scoped rtx "insn" when walking LABEL_REFS.
8017 (sh_can_redirect_branch): Strengthen both params from rtx to
8019 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8020 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8021 for clarity and typesafety.
8022 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8023 "insn" from rtx to rtx_insn *.
8024 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8025 when using NEXT_INSN on the CODE_LABEL in operands[2].
8026 (define_insn "casesi_worker_2"): Likewise.
8027 (define_insn "casesi_shift_media"): Likewise.
8028 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8030 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8031 Strengthen field "insn" from rtx to rtx_insn *.
8032 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8033 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8034 param "start_insn" and local "start_insn".
8035 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8037 (find_set_of_reg_bb): Likewise for param "insn".
8038 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8039 (trace_reg_uses): Likewise for param "start_insn".
8040 (sh_treg_combine::cbranch_trace): Likewise for field
8042 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8044 (sh_treg_combine::record_set_of_reg): Likewise for param
8045 "start_insn" and local "i".
8046 (sh_treg_combine::can_remove_cstore): Likewise for local
8048 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8050 (sh_treg_combine::execute): Likewise for local "i".
8051 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8053 (sparc_check_64): Likewise for second param.
8054 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8055 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8056 dyn_cast, using its insn method for typesafety and clarity.
8057 (empty_delay_slot): Strengthen param "insn" from rtx to
8059 (set_extends): Likewise.
8060 (sparc_check_64): Likewise.
8061 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8062 for locals "seq", "last_insn".
8063 (combine_bnp): Likewise for param "insn".
8064 (xstormy16_reorg): Likewise for local "insn".
8065 * config/v850/v850.c (substitute_ep_register): Likewise for params
8066 "first_insn", "last_insn" and local "insn".
8067 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8068 elements of "regs" array, and local "insn".
8069 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8070 * final.c (final_sequence): Strengthen this global from rtx to
8072 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8074 (final_scan_insn): Update assignment to "final_sequence" to be
8075 from "seq", the cast version of "body", for type-safety.
8076 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8077 "insns" from rtx to rtx_insn *.
8078 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8079 * genattr.c (main): When writing out generated insn-attr.h,
8080 strengthen params 1 and 3 of eligible_for_delay,
8081 eligible_for_annul_true, eligible_for_annul_false from rtx to
8083 * genattrtab.c (write_eligible_delay): Likewise when writing out
8084 generated insn-attrtab.c; also local "insn" the generated
8086 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8088 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8089 "start_label" from rtx to rtx_insn *.
8090 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8091 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8092 "insns" and local "insn".
8093 (validate_equiv_mem): Likewise for param "start" and local "insn".
8094 (memref_used_between_p): Likewise for params "start", "end" and
8096 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8098 * loop-doloop.c (doloop_optimize): Within region guarded by
8099 INSN_P (doloop_pat), introduce a new local rtx_insn *
8100 "doloop_insn" via a checked cast, and use it for typesafety,
8101 eventually writing the value back into doloop_pat.
8102 * output.h (final_sequence): Strengthen this global from rtx to
8104 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8105 reintroducing "insn" as an rtx_insn * via a checked cast.
8106 Strengthen param "attempt" and local "new_insn"from rtx to
8108 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8110 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8111 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8112 "p" in favor of more tightly-scoped replacements, sometimes rtx
8113 and sometimes rtx_insn *, as appropriate.
8114 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8115 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8116 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8117 local "trial" from rtx to rtx_insn *.
8118 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8119 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8120 rtx_sequence * and use methods for clarity and typesafety.
8121 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8122 rtx to rtx_insn *. Strenghten local "li" from rtx to
8123 rtx_insn_list * and use its methods for clarity and typesafety.
8124 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8126 (steal_delay_list_from_fallthrough): Likewise.
8127 (try_merge_delay_insns): Likewise for param "thread" and locals
8128 "trial", "next_trial", "delay_insn".
8129 (redundant_insn): Likewise for param "target" and local "trial".
8130 (own_thread_p): Likewise for param "thread" and locals
8131 "active_insn", "insn".
8132 (get_label_before): Likewise for param "insn".
8133 (fill_simple_delay_slots): Likewise for local "new_label"; use
8134 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8135 (label_before_next_insn): Strengthen return type and local "insn"
8136 from rtx to rtx_insn *.
8137 (relax_delay_slots): Likewise for locals "other", "tmp".
8138 (make_return_insns): Likewise for param "first" and locals "insn",
8139 "jump_insn", "prev". Move declaration of "pat" to its assignment
8140 and strengthen from rtx to rtx_sequence *. Use its methods for
8141 clarity and typesafety.
8142 * rtlanal.c (no_labels_between_p): Strengthen params from
8143 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8145 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8146 from const_rtx to const rtx_insn *.
8147 (reg_set_between_p): Rename param "from_insn" to
8148 "uncast_from_insn", and reintroduce "from_insn" as a
8149 const rtx_insn * via a checked cast.
8150 (modified_between_p): Likewise for param "start" as "uncast_start".
8151 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8152 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8153 "tmp", head" from rtx to rtx_insn *.
8154 (recompute_rev_top_order): Likewise for local "insn".
8155 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8156 * store-motion.c (build_store_vectors): Likewise for local "insn".
8157 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8158 for clarity and typesafety.
8159 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8161 (computation_cost): Likewise for local "seq".
8162 (get_address_cost): Likewise.
8164 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8166 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8168 (label_is_jump_target_p): Likewise for second param.
8170 * rtlanal.c (tablejump_p): Likewise for param "insn".
8171 (label_is_jump_target_p): Likewise for param "jump_insn".
8173 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8175 * rtl.h (find_first_parameter_load): Strengthen return type and
8176 both params from rtx to rtx_insn *.
8177 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8178 both params and locals "before", "first_set" from rtx to
8179 rtx_insn *. Remove now-redundant cast.
8180 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8182 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8184 * rtl.h (find_last_value): Delete.
8185 * rtlanal.c (find_last_value): Delete.
8187 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8189 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8190 from rtx to rtx_insn *.
8191 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8192 rtx "note" with new local rtx_insn * "new_head" when calculating
8193 head insn of new basic block.
8194 * combine.c (combine_split_insns): Strengthen return type and local
8195 "ret" from rtx to rtx_insn *.
8196 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8197 (try_combine): Eliminate local "m_split", splitting into new
8198 locals "m_split_insn" and "m_split_pat".
8199 (find_split_point): Strengthen local "seq" from rtx into
8201 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8202 locals "label", "branch".
8203 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8205 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8206 * dse.c (note_add_store_info): Likewise for fields "first",
8208 (note_add_store): Likewise for local "insn".
8209 (emit_inc_dec_insn_before): Likewise for locals "insn",
8211 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8212 (replace_read): Likewise for locals "insns", "this_insn".
8213 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8214 (notice_eh_throw): Likewise for param "insn".
8215 (before_next_cfi_note): Likewise for return type, param, and local
8217 (connect_traces): Likewise for local "note".
8218 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8219 (verify_rtl_sharing): Likewise.
8220 (unshare_all_rtl_in_chain): Likewise for param "insn".
8221 (get_first_nonnote_insn): Likewise for local "insn".
8222 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8223 "seq" and use its methods to clarify things.
8224 (next_insn): Strengthen return type from rtx to rtx_insn *.
8225 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8226 local rtx_insn * using a checked cast, dropping a checked cast
8227 made redundant by this change. Use a cast to and method of
8228 rtx_sequence to clarify the code.
8229 (previous_insn): Rename param "insn" to "uncast_insn" and
8230 reintroduce "insn" as a local rtx_insn * using a checked cast,
8231 dropping a checked cast made redundant by this change. Use a cast
8232 to and method of rtx_sequence to clarify the code.
8233 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8234 reintroduce "insn" as a local rtx_insn * using a checked cast,
8235 dropping a checked cast made redundant by this change.
8236 (next_nonnote_insn_bb): Likewise.
8237 (prev_nonnote_insn): Likewise.
8238 (prev_nonnote_insn_bb): Likewise.
8239 (next_nondebug_insn): Likewise.
8240 (prev_nondebug_insn): Likewise.
8241 (next_nonnote_nondebug_insn): Likewise.
8242 (prev_nonnote_nondebug_insn): Likewise.
8243 (next_real_insn): Likewise.
8244 (prev_real_insn): Likewise.
8245 (next_active_insn): Likewise.
8246 (prev_active_insn): Likewise.
8247 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8249 (prev_cc0_setter): Likewise.
8250 (try_split): Rename param "trial" to "uncast_trial" and
8251 reintroduce "insn" as a local rtx_insn * using a checked cast,
8252 dropping checked casts made redundant by this change.
8253 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8255 (remove_insn): Rename param "insn" to "uncast_insn" and
8256 reintroduce "insn" as a local rtx_insn * using a checked cast.
8257 (emit_pattern_after_setloc): Likewise for param "after", as
8259 (emit_pattern_after): Likewise. Strengthen local "prev" from
8261 (emit_pattern_before_setloc): Rename param "before" to
8262 "uncast_before" and reintroduce "before" as a local rtx_insn *
8263 using a checked cast. Strengthen locals "first", "last" from
8265 (emit_pattern_before): Likewise rename/cast param "before" to
8266 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8267 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8268 "first" and local "insn" from rtx to rtx_insn *.
8269 (copy_reg_eh_region_note_backward): Likewise for param "last"
8271 * expr.c (fixup_args_size_notes): Rename param "last" to
8272 "uncast_last" and reintroduce "last" as a local rtx_insn *
8273 using a checked cast. Strengthen local "insn" from rtx to
8275 * function.c (set_insn_locations): Strengthen param "insn" from
8277 (record_insns): Likewise for param "insns" and local "tmp".
8278 (active_insn_between): Rename param "tail" to
8279 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8280 using a checked cast.
8281 (thread_prologue_and_epilogue_insns): Split out top-level local
8282 rtx "seq" into three different rtx_insn * locals. Strengthen
8283 local "prologue_seq" from rtx to rtx_insn *.
8284 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8285 from rtx to rtx_insn *.
8286 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8287 (priority): Likewise for locals "prev_first", "twin".
8288 (setup_insn_max_reg_pressure): Likewise for param "after".
8289 (sched_setup_bb_reg_pressure_info): Likewise.
8290 (no_real_insns_p): Strengthen params from const_rtx to
8292 (schedule_block): Strengthen local "next_tail" from rtx to
8294 * ifcvt.c (find_active_insn_before): Strengthen return type and
8295 param "insn" from rtx to rtx_insn *.
8296 (find_active_insn_after): Likewise.
8297 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8298 (cond_exec_process_if_block): Likewise for locals "then_start",
8299 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8300 (noce_process_if_block): Likewise for local "jump".
8301 (merge_if_block): Likewise for two locals named "end".
8302 (cond_exec_find_if_block): Likewise for local "last_insn".
8303 * jump.c (delete_related_insns): Rename param "insn" to
8304 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8305 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8306 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8308 (split_reg): Likewise.
8309 * lra.c (lra_process_new_insns): Likewise.
8310 * modulo-sched.c (permute_partial_schedule): Strengthen param
8311 "last" from rtx to rtx_insn *.
8312 * optabs.c (add_equal_note): Likewise for param "insns" and local
8314 (expand_binop_directly): Add checked casts to rtx_insn * within
8315 NEXT_INSN (pat) uses.
8316 (expand_unop_direct): Likewise.
8317 (maybe_emit_unop_insn): Likewise.
8318 * recog.c (peep2_attempt): Strengthen locals "last",
8319 "before_try", "x" from rtx to rtx_insn *.
8320 * reorg.c (optimize_skip): Strengthen return type and local
8321 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8322 and locals "trial", "next_trial" from rtx to rtx_insn *.
8323 * resource.c (next_insn_no_annul): Strengthen return type and
8324 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8325 rtx_sequence to clarify the code.
8326 (mark_referenced_resources): Add a checked cast to rtx_insn *
8327 within PREV_INSN (x).
8328 (find_dead_or_set_registers): Strengthen return type, param
8329 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8330 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8332 (mark_target_live_regs): Strengthen params "insns" and "target",
8333 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8334 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8336 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8337 from rtx to rtx_insn *.
8338 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8339 from rtx to rtx_insn *.
8340 (copy_reg_eh_region_note_backward): Likewise.
8341 (unshare_all_rtl_in_chain): Likewise for sole param.
8342 (dump_rtl_slim): Strengthen second and third params from const_rtx
8343 to const rtx_insn *.
8344 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8345 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8346 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8347 "next_tail" from rtx to rtx_insn *.
8348 (begin_move_insn): Likewise for local "next".
8349 * sched-int.h (sched_free_deps): Likewise for first and second
8351 (no_real_insns_p): Strengthen both params from const_rtx to
8353 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8355 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8357 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8358 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8359 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8361 (debug_rtl_slim): Strengthen params "first" and "last" from
8362 const_rtx to const rtx_insn *.
8363 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8364 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8365 (convert_to_simple_return): Likewise for param "returnjump".
8366 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8368 (convert_to_simple_return): Likewise for param "returnjump".
8369 * valtrack.c (propagate_for_debug): Likewise for params
8371 * valtrack.h (propagate_for_debug): Likewise for second param.
8373 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8375 * output.h (insn_current_reference_address): Strengthen param
8376 from rtx to rtx_insn *.
8377 * final.c (insn_current_reference_address): Likewise.
8379 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8381 * basic-block.h (inside_basic_block_p): Strengthen param from
8382 const_rtx to const rtx_insn *.
8383 * cfgbuild.c (inside_basic_block_p): Likewise.
8385 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8387 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8389 (get_trace_info): Likewise for param "insn".
8390 (save_point_p): Likewise.
8391 (maybe_record_trace_start): Likewise for both params.
8392 (maybe_record_trace_start_abnormal): Likewise.
8393 (create_trace_edges): Likewise for sole param and for three of the
8395 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8396 to rtx_insn *, and update a call to pat->element to pat->insn.
8398 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8400 * function.h (struct expr_status): Convert field "x_forced_labels"
8401 from rtx_expr_list * to rtx_insn_list *.
8403 * cfgbuild.c (make_edges): Convert local "x" from an
8404 rtx_expr_list * to an rtx_insn_list *, replacing use of
8405 "element" method with "insn" method.
8406 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8407 * except.c (sjlj_emit_dispatch_table): Replace use of
8408 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8410 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8411 rtx_expr_list * to an rtx_insn_list *, replacing use of
8412 "element" method with "insn" method.
8413 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8414 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8415 rtx_insn *, adding a checked cast. Replace use of
8416 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8418 (expand_label): Likewise for local "label_r".
8420 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8422 * function.h (struct rtl_data): Convert field
8423 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8425 * rtl.h (remove_node_from_insn_list): New prototype.
8427 * builtins.c (expand_builtin): When prepending to
8428 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8430 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8431 to rtx_insn_list *, and use its "insn" method rather than
8433 * cfgrtl.c (delete_insn): Use new function
8434 remove_node_from_insn_list rather than
8435 remove_node_from_expr_list.
8436 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8437 to rtx_insn_list *, and use its "insn" method rather than
8439 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8440 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8441 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8442 from remove_node_from_expr_list.
8443 * stmt.c (expand_label): When prepending to
8444 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8447 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8449 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8450 and "x_naked_return_label" from rtx to rtx_code_label *.
8452 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8454 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8455 (SET_NEXT_INSN): Likewise.
8456 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8458 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8459 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8460 to split out the SEQUENCE from local "bundle", strengthening the
8461 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8462 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8463 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8464 and the type of the elements of the "slot" array from rtx to
8466 (reorg_split_calls): Likewise for locals "insn" and "next", and
8467 the type of the elements of the "slot" array.
8469 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8471 (frv_function_prologue): Likewise for locals "insn", "next",
8473 (frv_register_nop): Introduce a local "nop_insn" to be the
8474 rtx_insn * containing rtx "nop".
8476 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8477 used as an insn and sometimes as a pattern, so rename it to
8478 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8479 using it where dealing with the core insn.
8481 * config/picochip/picochip.c (reorder_var_tracking_notes):
8482 Strengthen locals "insn", "next", "last_insn", "queue",
8483 "next_queue", "prev" from rtx to rtx_insn *.
8485 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8486 the second param is an rtx_insn ** rather than an rtx **.
8487 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8488 from rtx to rtx_sequence *, and introduce local named "sequence",
8489 using methods of rtx_sequence to clarify the code.
8490 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8492 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8493 Rename param "after" to "uncast_after", reintroducing "after" as a
8494 local rtx_insn * with a checked cast.
8495 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8496 reintroducing "after" as a local rtx_insn * with a checked cast.
8497 Strengthen local "last" from rtx to rtx_insn * and remove the
8498 now-redundant checked casts.
8499 (copy_delay_slot_insn): Strengthen return type and param from rtx
8502 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8503 "last" from rtx to rtx_insn *.
8505 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8507 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8508 param from rtx to rtx_insn *.
8510 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8512 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8513 and local "insn" from rtx to rtx_insn *.
8514 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8515 (unfilled_slots_next): Likewise.
8516 (function_return_label): Strengthen from rtx to rtx_code_label *.
8517 (function_simple_return_label): Likewise.
8518 (first_active_target_insn): Strengthen return type and param from
8520 (find_end_label): Strengthen return type from rtx to
8521 rtx_code_label *; strengthen locals as appropriate.
8522 (emit_delay_sequence): Strengthen return type, param "insn" and
8523 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8524 and local "li" from rtx to rtx_insn_list *, using methods of
8525 rtx_insn_list for clarity and typesafety.
8526 (add_to_delay_list): Strengthen return type and param "insn" from
8527 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8528 rtx_insn_list * and use methods of rtx_insn_list.
8529 (delete_from_delay_slot): Strengthen return type, param "insn",
8530 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8531 Strengthen local "seq" from rtx to rtx_sequence *, and local
8532 "delay_list" from rtx to rtx_insn_list *, using methods of
8533 rtx_sequence for clarity and type-safety.
8534 (delete_scheduled_jump): Add checked cast when invoking
8535 delete_from_delay_slot. Strengthen local "trial" from rtx to
8537 (optimize_skip): Strengthen return type and local "delay_list"
8538 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8540 (steal_delay_list_from_target): Strengthen return type, param
8541 "delay_list" and local "new_delay_list" from rtx to
8542 rtx_insn_list *. Strengthen param "seq" from rtx to
8543 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8545 Split out local "temp" into multiple more-tightly scoped locals:
8546 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8547 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8548 Strengthen locals named "trial" from rtx to rtx_insn *.
8549 (steal_delay_list_from_fallthrough): Strengthen return type and
8550 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8551 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8552 Strengthen local "trial" from rtx to rtx_insn *.
8553 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8554 to rtx_insn_list * and use its methods. Strengthen local "pat"
8555 from rtx to rtx_sequence * and use its methods. Strengthen locals
8556 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8557 (get_label_before): Strengthen return type and local "label" from
8559 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8560 "next_trial", "next", prev". Strengthen local "delay_list" from
8561 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8563 (follow_jumps): Strengthen return type, param "label" and locals
8564 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8565 (fill_slots_from_thread): Strengthen return type, param
8566 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8567 "insn", "thread", "opposite_thread" and locals "new_thread",
8568 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8569 "sequence" from a checked cast to rtx_sequence so that we can call
8570 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8571 with an rtx_sequence *.
8572 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8573 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8574 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8575 (relax_delay_slots): Strengthen param "first" and locals "insn",
8576 "next", "trial", "delay_insn", "target_label" from rtx to
8577 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8578 Introduce a local "trial_seq" for PATTERN (trial) of type
8579 rtx_sequence *, in both cases using methods of rtx_sequence.
8580 (dbr_schedule): Strengthen param "first" and locals "insn",
8581 "next", "epilogue_insn" from rtx to rtx_insn *.
8583 2014-08-28 Richard Biener <rguenther@suse.de>
8585 PR tree-optimization/62283
8586 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8587 Do not peel loops for alignment where the vector loop likely
8588 doesn't run at least VF times.
8590 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8592 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8593 important_candidates. Consider all important candidates if
8594 IVS doesn't give any result. Remove check on ivs->upto.
8595 (try_add_cand_for): Call iv_ca_add_use only once.
8597 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8599 Anna Tikhonova <anna.tikhonova@intel.com>
8600 Ilya Tocar <ilya.tocar@intel.com>
8601 Andrey Turetskiy <andrey.turetskiy@intel.com>
8602 Ilya Verbin <ilya.verbin@intel.com>
8603 Kirill Yukhin <kirill.yukhin@intel.com>
8604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8606 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8607 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8609 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8610 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8611 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8612 (define_insn "*mul<mode>3"): Add EVEX version.
8614 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8616 Anna Tikhonova <anna.tikhonova@intel.com>
8617 Ilya Tocar <ilya.tocar@intel.com>
8618 Andrey Turetskiy <andrey.turetskiy@intel.com>
8619 Ilya Verbin <ilya.verbin@intel.com>
8620 Kirill Yukhin <kirill.yukhin@intel.com>
8621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8623 * config/i386/sse.md
8624 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8625 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8626 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8627 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8628 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8629 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8630 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8631 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8632 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8633 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8634 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8635 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8636 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8637 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8638 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8639 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8641 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8642 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8643 Anna Tikhonova <anna.tikhonova@intel.com>
8644 Ilya Tocar <ilya.tocar@intel.com>
8645 Andrey Turetskiy <andrey.turetskiy@intel.com>
8646 Ilya Verbin <ilya.verbin@intel.com>
8647 Kirill Yukhin <kirill.yukhin@intel.com>
8648 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8650 * config/i386/sse.md
8651 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8652 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8653 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8655 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8656 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8657 Anna Tikhonova <anna.tikhonova@intel.com>
8658 Ilya Tocar <ilya.tocar@intel.com>
8659 Andrey Turetskiy <andrey.turetskiy@intel.com>
8660 Ilya Verbin <ilya.verbin@intel.com>
8661 Kirill Yukhin <kirill.yukhin@intel.com>
8662 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8664 * config/i386/sse.md
8665 (define_mode_iterator VI128_256): New.
8666 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8668 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8670 Anna Tikhonova <anna.tikhonova@intel.com>
8671 Ilya Tocar <ilya.tocar@intel.com>
8672 Andrey Turetskiy <andrey.turetskiy@intel.com>
8673 Ilya Verbin <ilya.verbin@intel.com>
8674 Kirill Yukhin <kirill.yukhin@intel.com>
8675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8677 * config/i386/sse.md
8678 (define_mode_iterator VI8_256_512): New.
8679 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8681 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8682 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8684 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8688 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8689 pointer to the cumulative reloc value and return the value for
8691 (compute_reloc_for_rtx): Take a const_rtx. Call
8692 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8693 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8694 for_each_rtx for the CONST case.
8696 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8698 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8699 (mark_constants_in_pattern): ...this new function to iterate over
8701 (mark_constants): Update accordingly.
8703 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8705 * varasm.c: Include rtl-iter.h.
8706 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8707 Remove the pointer to the cumulative hashval_t and just return
8708 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8709 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8710 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8712 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8714 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8715 Give real type of data parameter. Remove return value.
8716 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8717 to iterate over subrtxes.
8719 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8721 * var-tracking.c (use_narrower_mode_test): Turn from being a
8722 for_each_rtx callback to being a function that examines each
8724 (adjust_mems): Update accordingly.
8726 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8728 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8729 callback to being a function that examines each subrtx itself.
8730 Remove handling of null rtxes.
8731 (add_uses): Update accordingly.
8733 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8735 * var-tracking.c: Include rtl-iter.h.
8736 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8737 to being a function that examines each subrtx itself.
8738 (use_type): Update accordingly.
8740 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8742 * store-motion.c: Include rtl-iter.h.
8743 (extract_mentioned_regs_1): Delete.
8744 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8745 for_each_rtx to iterate over subrtxes.
8747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8749 * sel-sched.c: Include rtl-iter.h
8750 (count_occurrences_1): Delete.
8751 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8752 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8754 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8756 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8757 * rtlanal.c (tls_referenced_p_1): Delete.
8758 (tls_referenced_p): Take a const_rtx rather than an rtx.
8759 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8761 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8763 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8764 (for_each_inc_dec): Take an rtx rather than an rtx *.
8765 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8766 (cselib_record_sets): Likewise.
8767 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8768 (check_for_inc_dec): Likewise.
8769 * rtlanal.c (for_each_inc_dec_ops): Delete.
8770 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8771 rather than a pointer to the memory address. Replace
8772 for_each_inc_dec_ops argument with separate function and data
8773 arguments. Abort on non-autoinc addresses.
8774 (for_each_inc_dec_find_mem): Delete.
8775 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8776 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8780 * rtl.h (find_all_hard_regs): Declare.
8781 * rtlanal.c (find_all_hard_regs): New function.
8782 (record_hard_reg_uses_1): Delete.
8783 (record_hard_reg_uses): Use find_all_hard_regs.
8785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8787 * rtl.h (replace_label_data): Delete.
8788 (replace_label): Take the old label, new label and update-nuses flag
8789 as direct arguments. Return void.
8790 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8791 * rtlanal.c (replace_label): Update interface as above. Handle
8792 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8793 iterator. Use FOR_EACH_SUBRTX_PTR.
8795 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8797 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8798 with const_rtx parameters.
8799 * varasm.c (get_pool_constant): Likewise.
8800 * rtlanal.c (rtx_referenced_p_1): Delete.
8801 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8802 Assert that the rtx we're looking for is nonnull. Allow searches
8803 for constant pool SYMBOL_REFs.
8805 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8807 * reload1.c: Include rtl-iter.h.
8808 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8809 to being a function that examines each subrtx itself.
8810 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8814 * regcprop.c (cprop_find_used_regs_1): Delete.
8815 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8819 * regcprop.c: Include rtl-iter.h.
8820 (kill_value): Take a const_rtx.
8821 (kill_autoinc_value): Turn from being a for_each_rtx callback
8822 to being a function that examines each subrtx itself.
8823 (copyprop_hardreg_forward_1): Update accordingly.
8825 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8827 * reg-stack.c: Include rtl-iter.h.
8828 (subst_stack_regs_in_debug_insn): Delete.
8829 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8830 instead of for_each_rtx.
8832 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8834 * lower-subreg.c (find_decomposable_subregs): Turn from being
8835 a for_each_rtx callback to being a function that examines each
8836 subrtx itself. Remove handling of null rtxes.
8837 (decompose_multiword_subregs): Update accordingly.
8839 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8841 * lower-subreg.c (adjust_decomposed_uses): Delete.
8842 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8843 Remove handling of null rtxes.
8845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8847 * lower-subreg.c: Include rtl-iter.h.
8848 (resolve_subreg_use): Turn from being a for_each_rtx callback
8849 to being a function that examines each subrtx itself. Remove
8850 handling of null rtxes.
8851 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8852 (decompose_multiword_subregs): Likewise.
8854 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8856 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8857 to being a function that examines each subrtx itself.
8858 (simplify_using_condition, simplify_using_initial_values): Update
8861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8863 * loop-iv.c: Include rtl-iter.h.
8864 (find_single_def_src): New function.
8865 (replace_single_def_regs): Turn from being a for_each_rtx callback
8866 to being a function that examines each subrtx itself.
8867 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8869 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8871 * jump.c (eh_returnjump_p_1): Delete.
8872 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8873 Remove handling of null rtxes.
8875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8877 * jump.c: Include rtl-iter.h.
8878 (returnjump_p_1): Delete.
8879 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8880 Remove handling of null rtxes.
8882 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8884 * ira.c: Include rtl-iter.h.
8885 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8886 to being a function that examines each subrtx itself. Remove
8887 handling of null rtxes.
8888 (update_equiv_regs): Update call accordingly.
8890 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8892 * fwprop.c: Include rtl-iter.h.
8893 (varying_mem_p): Turn from being a for_each_rtx callback to being
8894 a function that examines each subrtx itself.
8895 (propagate_rtx): Update accordingly.
8897 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8899 * function.c: Include rtl-iter.h
8900 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8901 callback to being a function that examines each subrtx itself.
8902 Return the changed flag.
8903 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8904 (instantiate_virtual_regs): Update calls accordingly.
8906 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8908 * final.c: Include rtl-iter.h.
8909 (mark_symbol_ref_as_used): Delete.
8910 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8913 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8915 * emit-rtl.c: Include rtl-iter.h.
8916 (find_auto_inc): Turn from being a for_each_rtx callback to being
8917 a function that examines each subrtx itself. Assume the first operand
8918 to an RTX_AUTOINC is the automodified register.
8919 (try_split): Update call accordingly.
8921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8923 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8924 Return a bool, inverting the result so that 0/false means "not ok".
8925 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8926 subrtxes of a CONST.
8927 (mem_loc_descriptor, add_const_value_attribute)
8928 (resolve_addr_in_expr): Update calls accordingly.
8930 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8932 * dwarf2out.c: Include rtl-iter.h.
8933 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8934 Remove unused data parameter. Return a bool, inverting the result
8935 so that 0/false means "not ok".
8936 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8937 instead of for_each_rtx.
8939 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8941 * dse.c: Include rtl-iter.h.
8942 (check_mem_read_rtx): Change void * parameter to real type.
8943 Remove return value.
8944 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8945 for_each_rtx. Don't handle null rtxes.
8947 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8949 * df-problems.c: Include rtl-iter.h.
8950 (find_memory): Turn from being a for_each_rtx callback to being
8951 a function that examines each subrtx itself. Continue to look for
8952 volatile references even after a nonvolatile one has been found.
8953 (can_move_insns_across): Update calls accordingly.
8955 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8957 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8958 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8959 to iterate over subrtxes. Return a bool rather than an int.
8961 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8963 * ddg.c: Include rtl-iter.h.
8964 (mark_mem_use_1): Rename to...
8965 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8966 instead of for_each_rtx.
8967 (mem_read_insn_p): Update accordingly.
8969 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8971 * cse.c (change_cc_mode_args): Delete.
8972 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8973 a function that examines each subrtx itself. Take the fields of
8974 change_cc_mode_args as argument and return void.
8975 (cse_change_cc_mode_insn): Update calls accordingly.
8977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8979 * cse.c (is_dead_reg): Change argument to const_rtx.
8980 (dead_debug_insn_data): Delete.
8981 (is_dead_debug_insn): Expand commentary. Turn from being a
8982 for_each_rtx callback to being a function that examines
8983 each subrtx itself. Take the fields of dead_debug_insn_data
8985 (delete_trivially_dead_insns): Update call accordingly.
8987 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8989 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8990 being a for_each_rtx callback to being a function that examines
8992 (cse_extended_basic_block): Update call accordingly.
8994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8996 * cse.c (check_dependence_data): Delete.
8997 (check_dependence): Change from being a for_each_rtx callback to being
8998 a function that examines all subrtxes itself. Don't handle null rtxes.
8999 (invalidate): Update call accordingly.
9001 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9003 * cse.c: Include rtl-iter.h.
9004 (approx_reg_cost_1): Delete.
9005 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9006 Don't handle null rtxes.
9008 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9010 * cfgcleanup.c: Include rtl-iter.h.
9011 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9012 to being a function that examines each subrtx itself.
9013 (thread_jump): Update accordingly.
9015 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9017 * combine-stack-adj.c: Include rtl-iter.h.
9018 (record_stack_refs_data): Delete.
9019 (record_stack_refs): Turn from being a for_each_rtx callback
9020 to being a function that examines each subrtx itself.
9021 Take a pointer to the reflist. Invert sense of return value
9022 so that true means success and false means failure. Don't
9024 (combine_stack_adjustments_for_block): Update accordingly.
9026 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9028 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9029 callback to a function that takes an rtx and returns a bool
9030 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9033 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9035 * combine.c: Include rtl-iter.h.
9036 (unmentioned_reg_p_1): Delete.
9037 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9038 Don't handle null rtxes.
9040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9042 * calls.c: Include rtl-iter.h.
9043 (internal_arg_pointer_based_exp_1): Delete.
9044 (internal_arg_pointer_based_exp): Take a const_rtx.
9045 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9047 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9049 * caller-save.c: Include rtl-iter.h.
9050 (add_used_regs_1): Delete.
9051 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9052 to iterate over subrtxes. Assert that any remaining pseudos
9055 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9057 * bt-load.c: Include rtl-iter.h.
9058 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9059 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9060 to iterate over subrtxes.
9061 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9062 find_btr_use rather than btr_referenced_p.
9064 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9066 * alias.c: Include rtl-iter.h.
9067 (refs_newer_value_cb): Delete.
9068 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9070 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9072 * rtl-iter.h: New file.
9073 * rtlanal.c: Include it.
9074 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9075 (generic_subrtx_iterator <T>::add_single_to_queue)
9076 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9077 (generic_subrtx_iterator <T>::free_array): New functions.
9078 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9079 (generic_subrtx_iterator <const_rtx_accessor>)
9080 (generic_subrtx_iterator <rtx_var_accessor>
9081 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9082 (setup_reg_subrtx_bounds): New function.
9083 (init_rtlanal): Call it.
9085 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9088 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9090 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9092 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9094 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9096 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9098 * rtl.h (JUMP_LABEL_AS_INSN): New.
9100 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9102 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9104 (alloc_EXPR_LIST): Strengthen return type from rtx to
9106 (remove_free_EXPR_LIST_node): Likewise for param.
9107 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9108 from rtx to rtx_expr_list *.
9109 * sched-int.h (struct deps_desc): Strengthen fields
9110 "pending_read_mems" and "pending_write_mems" from rtx to
9113 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9114 rtx to rtx_expr_list *.
9115 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9116 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9118 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9119 from rtx to rtx_expr_list *.
9120 * loop-iv.c (simplify_using_initial_values): Strengthen local
9121 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9122 "pnote_next" from rtx * to rtx_expr_list **.
9123 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9124 param "exprp" from rtx * to rtx_expr_list **.
9125 (add_insn_mem_dependence): Strengthen local "mem_list" from
9126 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9128 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9129 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9130 param "old_mems_p" from rtx * to rtx_expr_list **.
9131 * var-tracking.c (struct adjust_mem_data): Strengthen field
9132 "side_effects" from rtx to rtx_expr_list *.
9133 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9135 (prepare_call_arguments): Likewise.
9137 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9139 * function.h (struct rtl_data): Strengthen field
9140 "x_stack_slot_list" from rtx to rtx_expr_list *.
9142 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9143 when assigning to stack_slot_list.
9145 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9147 * function.h (struct rtl_data): Strengthen field
9148 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9149 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9150 rtx * to rtx_expr_list **.
9152 * cfgbuild.c (make_edges): In loop over
9153 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9154 rtx_expr_list *, and use methods of the latter class to clarify
9156 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9157 rtx_expr_list *, and use methods of the latter class to clarify
9159 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9160 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9161 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9162 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9163 to rtx_expr_list *. Use methods of the latter class to clarify
9166 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9168 * function.h (struct expr_status): Strengthen field
9169 "x_forced_labels" from rtx to rtx_expr_list *.
9171 * cfgbuild.c (make_edges): Split local "x" into two locals,
9172 strengthening one from rtx to rtx_expr_list *, and using methods
9174 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9175 loop over forced_labels, introduce strengthen it from rtx to
9176 rtx_expr_list *, using methods to clarify the code.
9177 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9178 to rtx_expr_list *, using methods of said class to clarify the
9180 * reload1.c (set_initial_label_offsets): Split local "x" into two
9181 per-loop variables, strengthening the first from rtx to
9182 rtx_expr_list * and using methods.
9184 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9186 * coretypes.h (class rtx_expr_list): Add forward declaration.
9187 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9188 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9189 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9190 invariant: GET_CODE (X) == EXPR_LIST.
9191 (is_a_helper <rtx_expr_list *>::test): New.
9192 (rtx_expr_list::next): New.
9193 (rtx_expr_list::element): New.
9194 (gen_rtx_EXPR_LIST): New.
9196 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9198 * varasm.c (mark_constants): Convert a GET_CODE check into a
9199 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9200 Use methods of rtx_sequence to clarify the code.
9202 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9204 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9205 local "seq" via a checked cast, and use methods of rtx_sequence
9206 to simplify the code.
9208 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9210 * resource.c (mark_referenced_resources): Strengthen local
9211 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9212 using methods of rtx_sequence to clarify the code.
9213 (find_dead_or_set_registers): Within the switch statement, convert
9214 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9215 the JUMP_P handling, introduce another local "seq", adding a
9216 checked cast to rtx_sequence *. In both cases, use methods of
9217 rtx_sequence to clarify the code.
9218 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9219 via a checked cast, and use methods of rtx_sequence to simplify
9222 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9224 * reorg.c (redundant_insn): In two places in the function, replace
9225 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9226 usings methods of rtx_sequence to clarify the code.
9228 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9230 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9231 local "seq" with a checked cast, and use methods of rtx_sequence
9232 to clarify the code.
9234 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9236 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9237 with a checked cast, in the region for where we know it's a
9238 SEQUENCE. Use methods of rtx_sequence.
9240 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9242 * final.c (get_attr_length_1): Replace GET_CODE check with a
9243 dyn_cast, introducing local "seq" and the use of methods of
9245 (shorten_branches): Likewise, introducing local "body_seq".
9246 Strengthen local "inner_insn" from rtx to rtx_insn *.
9247 (reemit_insn_block_notes): Replace GET_CODE check with a
9248 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9249 Use methods of rtx_sequence.
9250 (final_scan_insn): Likewise, introducing local "seq" for when
9251 "body" is known to be a SEQUENCE, using its methods.
9253 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9255 * except.c (can_throw_external): Strengthen local "seq" from rtx
9256 to rtx_sequence *. Use methods of rtx_sequence.
9257 (insn_nothrow_p): Likewise.
9259 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9261 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9262 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9263 Use methods of rtx_sequence.
9264 (scan_trace): Likewise for local "pat".
9266 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9268 * coretypes.h (class rtx_sequence): Add forward declaration.
9269 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9270 invariant: GET_CODE (X) == SEQUENCE.
9271 (is_a_helper <rtx_sequence *>::test): New.
9272 (is_a_helper <const rtx_sequence *>::test): New.
9273 (rtx_sequence::len): New.
9274 (rtx_sequence::element): New.
9275 (rtx_sequence::insn): New.
9277 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9279 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9281 (alloc_INSN_LIST): Strengthen return type from rtx to
9283 (copy_INSN_LIST): Likewise for return type and param.
9284 (concat_INSN_LIST): Likewise for both params and return type.
9285 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9286 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9287 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9288 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9290 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9291 "implicit_sets", "control_uses", "clobbers" from rtx to
9293 (struct deps_desc): Likewise for fields "pending_read_insns",
9294 "pending_write_insns", "pending_jump_insns",
9295 "last_pending_memory_flush", "last_function_call",
9296 "last_function_call_may_noreturn", "sched_before_next_call",
9297 "sched_before_next_jump".
9298 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9299 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9301 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9302 from rtx to rtx_insn_list *.
9303 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9306 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9307 to rtx_insn_list **.
9308 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9310 (queue_insn): Likewise for local "link".
9311 (struct haifa_saved_data): Strengthen field "insn_queue" from
9312 rtx * to rtx_insn_list **.
9313 (save_backtrack_point): Update allocation of save->insn_queue to
9314 reflect the strengthening of elements from rtx to rtx_insn_list *.
9315 (queue_to_ready): Strengthen local "link" from rtx to
9316 rtx_insn_list *; use methods "next" and "insn" when traversing the
9318 (early_queue_to_ready): Likewise for locals "link", "next_link",
9320 (schedule_block): Update allocation of insn_queue to reflect the
9321 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9322 local "link" from rtx to rtx_insn_list *, and use methods when
9324 (add_to_speculative_block): Strengthen locals "twins" and
9325 "next_node" from rtx to rtx_insn_list *, and use methods when
9326 working with them. Strengthen local "twin" from rtx to
9327 rtx_insn *, eliminating a checked cast.
9328 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9329 from rtx to rtx_insn_list *, and use methods when working with
9332 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9333 from rtx to rtx_insn_list *, adding a checked cast.
9334 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9336 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9337 "newlink" from rtx to rtx_insn_list *. Strengthen local
9338 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9339 from rtx to rtx_insn *.
9340 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9341 from rtx to rtx_insn_list *. Use methods of the latter class.
9342 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9343 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9344 (remove_free_INSN_LIST_node): Strengthen return type and local
9345 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9346 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9347 rtx_insn_list *, using "insn" method.
9349 * sched-deps.c (add_dependence_list): Strengthen param "list"
9350 from rtx to rtx_insn_list *, and use methods when working with it.
9351 (add_dependence_list_and_free): Strengthen param "listp" from
9352 rtx * to rtx_insn_list **.
9353 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9354 to rtx_insn_list **, and use methods when working with *listp.
9355 (remove_from_both_dependence_lists): Strengthen param "listp" from
9356 rtx * to rtx_insn_list **
9357 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9358 to rtx_insn_list **. Eliminate local "link", in favor of two new
9359 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9361 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9362 by introducing local "cond_deps".
9363 (remove_from_deps): Strengthen param "insn" from rtx to
9366 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9367 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9368 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9369 Use methods of rtx_insn_list.
9371 * store-motion.c (struct st_expr): Strengthen fields
9372 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9373 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9375 (find_moveable_store): Split out "tmp" into multiple more-tightly
9376 scoped locals. Use methods of rtx_insn_list *.
9377 (compute_store_table): Strengthen local "tmp" from rtx to
9378 rtx_insn *. Use methods of rtx_insn_list *.
9380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9382 * coretypes.h (class rtx_insn_list): Add forward declaration.
9383 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9384 (is_a_helper <rtx_insn_list *>::test): New.
9385 (rtx_insn_list::next): New.
9386 (rtx_insn_list::insn): New.
9387 (gen_rtx_INSN_LIST): Add prototype.
9388 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9389 * gengenrtl.c (special_rtx): Add INSN_LIST.
9391 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9393 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9394 "prev" from rtx to rtx_insn *.
9396 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9398 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9399 functions. Require merely an rtx for now, not an rtx_insn *.
9400 (BLOCK_FOR_INSN): Likewise.
9401 (INSN_LOCATION): Likewise.
9402 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9404 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9406 * rtl.h (PATTERN): Convert this macro into a pair of inline
9407 functions, for now, requiring const_rtx and rtx.
9409 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9411 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9413 (final_postscan_insn): Likewise.
9414 (adjust_cost): Likewise.
9415 (adjust_priority): Likewise.
9416 (variable_issue): Likewise.
9417 (macro_fusion_pair_p): Likewise.
9418 (dfa_post_cycle_insn): Likewise.
9419 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9420 (first_cycle_multipass_issue): Likewise.
9421 (dfa_new_cycle): Likewise.
9422 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9423 (speculate_insn): Likewise for param "insn".
9424 (gen_spec_check): Likewise for params "insn" and "label".
9425 (get_insn_spec_ds): Likewise for param "insn".
9426 (get_insn_checked_ds): Likewise.
9427 (dispatch_do): Likewise.
9428 (dispatch): Likewise.
9429 (cannot_copy_insn_p): Likewise.
9430 (invalid_within_doloop): Likewise.
9431 (legitimate_combined_insn): Likewise.
9435 * doc/tm.texi: Automatically updated to reflect changes to
9438 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9440 (schedule_block): Likewise.
9441 (sched_init): Likewise.
9442 (sched_speculate_insn): Strengthen param "insn" from rtx to
9444 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9446 * hooks.c (hook_bool_rtx_true): Rename to...
9447 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9449 (hook_constcharptr_const_rtx_null): Rename to...
9450 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9451 first param from const_rtx to const rtx_insn *.
9452 (hook_bool_rtx_int_false): Rename to...
9453 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9454 param from rtx to rtx_insn *.
9455 (hook_void_rtx_int): Rename to...
9456 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9459 * hooks.h (hook_bool_rtx_true): Rename to...
9460 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9462 (hook_bool_rtx_int_false): Rename to...
9463 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9464 param from rtx to rtx_insn *.
9465 (hook_void_rtx_int): Rename to...
9466 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9468 (hook_constcharptr_const_rtx_null): Rename to...
9469 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9470 first param from const_rtx to const rtx_insn *.
9472 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9473 and local "prev" from rtx to rtx_insn *.
9475 * sched-int.h (sched_speculate_insn): Strengthen first param from
9478 * sel-sched.c (create_speculation_check): Likewise for local "label".
9479 * targhooks.c (default_invalid_within_doloop): Strengthen param
9480 "insn" from const_rtx to const rtx_insn *.
9481 * targhooks.h (default_invalid_within_doloop): Strengthen param
9482 from const_rtx to const rtx_insn *.
9484 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9485 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9487 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9489 (arc_invalid_within_doloop): Likewise, with const.
9491 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9492 (arm_cannot_copy_insn_p): Likewise for param "insn".
9493 (arm_unwind_emit): Likewise.
9495 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9498 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9499 (c6x_variable_issue): Likewise. Removed now-redundant checked
9501 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9503 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9504 Likewise for param "insn".
9505 (epiphany_mode_after): Likewise.
9506 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9507 params "insn", "dep_insn".
9508 (epiphany_mode_needed): Likewise for param "insn".
9509 (epiphany_mode_after): Likewise.
9511 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9512 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9513 (ix86_avx_u128_mode_needed): Likewise.
9514 (ix86_i387_mode_needed): Likewise.
9515 (ix86_mode_needed): Likewise.
9516 (ix86_avx_u128_mode_after): Likewise.
9517 (ix86_mode_after): Likewise.
9518 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9519 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9520 (ix86_adjust_priority): Likewise for param "insn".
9521 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9522 (do_dispatch): Likewise.
9523 (has_dispatch): Likewise.
9524 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9526 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9527 reflect renaming of default hook implementation from
9528 hook_constcharptr_const_rtx_null to
9529 hook_constcharptr_const_rtx_insn_null.
9530 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9532 (ia64_variable_issue): Likewise for param "insn".
9533 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9534 (ia64_dfa_new_cycle): Likewise.
9535 (ia64_get_insn_spec_ds): Likewise.
9536 (ia64_get_insn_checked_ds): Likewise.
9537 (ia64_speculate_insn): Likewise.
9538 (ia64_gen_spec_check): Likewise for params "insn", "label".
9539 (ia64_asm_unwind_emit): Likewise for param "insn".
9541 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9543 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9545 (m68k_sched_variable_issue): Likewise for param "insn".
9547 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9550 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9551 Likewise for params "insn", "dep".
9553 * config/mips/mips.c (mips_adjust_cost): Likewise.
9554 (mips_variable_issue): Likewise for param "insn".
9555 (mips_final_postscan_insn): Likewise.
9557 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9558 for params "insn", "dep".
9560 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9562 (pa_adjust_priority): Likewise for param "insn".
9564 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9565 Likewise for params "insn", "dep_insn".
9567 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9569 (rs6000_variable_issue): Likewise.
9570 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9571 (rs6000_debug_adjust_cost): Likewise.
9572 (rs6000_adjust_priority): Likewise for param "insn".
9573 (rs6000_use_sched_lookahead_guard): Likewise.
9574 (get_next_active_insn): Likewise for return type and both params.
9575 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9576 and locals "insn", "next_insn".
9577 (pad_groups): Likewise.
9579 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9581 (s390_cannot_copy_insn_p): Likewise.
9582 (s390_sched_variable_issue): Likewise for third param, eliminating
9584 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9585 default hook implementation from hook_constcharptr_const_rtx_null
9586 to hook_constcharptr_const_rtx_insn_null.
9588 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9589 from rtx to rtx_insn *.
9590 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9591 (sh_variable_issue): Likewise for param "insn".
9592 (sh_dfa_new_cycle): Likewise.
9593 (sh_mode_needed): Likewise.
9594 (sh_mode_after): Likewise.
9596 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9597 params "insn", "dep_insn".
9598 (hypersparc_adjust_cost): Likewise.
9599 (sparc_adjust_cost): Likewise.
9601 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9602 param, eliminated checked cast.
9603 (spu_sched_adjust_cost): Likewise for first and third params.
9605 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9606 params "insn" and "dep_insn" from rtx to rtx_insn *.
9608 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9610 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9612 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9613 (set_is_load_p): ...this, updating to work on a SET pattern rather
9615 (is_store_insn): Rename to...
9616 (set_is_store_p): ...this, updating to work on a SET pattern
9617 rather than an insn.
9618 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9619 top of function to where it is needed. Rewrite the bogus
9620 condition that checks for "insn" and "dep" being PARALLEL to
9621 instead use single_set, introducing locals "insn_set" and
9622 "dep_set". Given that we only ever returned "cost" for a non-pair
9623 of SETs, bail out early if we don't have a pair of SET.
9624 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9625 use the new locals "insn_set" and "dep_set", and update calls to
9626 is_load_insn and is_store_insn to be calls to set_is_load_p and
9629 2014-08-27 Guozhi Wei <carrot@google.com>
9632 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9633 amount before using it.
9635 2014-08-27 Richard Biener <rguenther@suse.de>
9637 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9638 get_maxval_strlen inside a more useful API.
9639 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9640 (gimple_fold_builtin): ... caller.
9641 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9642 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9643 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9644 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9645 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9646 gimple_fold_builtin_sprintf): Adjust to compute maxval
9649 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9652 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9654 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9656 Anna Tikhonova <anna.tikhonova@intel.com>
9657 Ilya Tocar <ilya.tocar@intel.com>
9658 Andrey Turetskiy <andrey.turetskiy@intel.com>
9659 Ilya Verbin <ilya.verbin@intel.com>
9660 Kirill Yukhin <kirill.yukhin@intel.com>
9661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9663 * config/i386/sse.md
9664 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9665 Use `concat_tg_mode' attribute to determine asm register size.
9667 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9669 Anna Tikhonova <anna.tikhonova@intel.com>
9670 Ilya Tocar <ilya.tocar@intel.com>
9671 Andrey Turetskiy <andrey.turetskiy@intel.com>
9672 Ilya Verbin <ilya.verbin@intel.com>
9673 Kirill Yukhin <kirill.yukhin@intel.com>
9674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9676 * config/i386/sse.md
9677 (define_mode_iterator VI48_AVX512VL): New.
9678 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9679 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9680 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9681 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9682 with VI1): Change mode iterator.
9683 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9684 with VI_ULOADSTORE_BW_AVX512VL): New.
9685 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9686 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9687 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9688 with VI1): Change mode iterator.
9689 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9690 with VI_ULOADSTORE_BW_AVX512VL): New.
9691 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9692 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9693 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9694 with VI1): Change mode iterator.
9695 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9696 with VI_ULOADSTORE_BW_AVX512VL): New.
9697 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9698 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9699 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9700 (define_insn "<avx512>_storedqu<mode>_mask" with
9701 VI48_AVX512VL): New.
9702 (define_insn "<avx512>_storedqu<mode>_mask" with
9703 VI12_AVX512VL): Ditto.
9705 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9707 Anna Tikhonova <anna.tikhonova@intel.com>
9708 Ilya Tocar <ilya.tocar@intel.com>
9709 Andrey Turetskiy <andrey.turetskiy@intel.com>
9710 Ilya Verbin <ilya.verbin@intel.com>
9711 Kirill Yukhin <kirill.yukhin@intel.com>
9712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9714 * config/i386/sse.md
9715 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9716 (define_mode_iterator VI48_AVX512BW): New.
9717 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9718 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9719 with VI48_AVX2_48_AVX512F): New.
9720 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9721 with VI2_AVX512VL): Ditto.
9723 2014-08-27 Richard Biener <rguenther@suse.de>
9726 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9727 (fold_builtin_3): Do not fold strcat_chk here.
9728 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9730 (gimple_fold_builtin): Fold strcat_chk here.
9732 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9734 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9735 * dwarf2out.c (dwarf2out_decl): Make static.
9737 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9739 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9741 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9743 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9744 from rtx to rtx_insn *.
9745 (cselib_lookup_from_insn): Likewise for final param.
9746 (cselib_subst_to_values_from_insn): Likewise.
9747 (cselib_add_permanent_equiv): Likewise.
9749 * cselib.c (cselib_current_insn): Likewise for this variable.
9750 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9751 (cselib_lookup_from_insn): Likewise.
9752 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9753 "save_cselib_current_insn".
9754 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9756 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9757 from rtx to rtx_insn *.
9759 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9761 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9764 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9766 * df.h (df_dump_insn_problem_function): Strengthen first param of
9767 this callback from const_rtx to const rtx_insn *.
9768 (struct df_insn_info): Strengthen field "insn" from rtx to
9770 (DF_REF_INSN): Eliminate this function, reinstating the older
9772 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9773 (df_reg_defined): Likewise.
9774 (df_find_use): Likewise.
9775 (df_reg_used): Likewise.
9776 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9778 (df_dump_insn_bottom): Likewise.
9779 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9780 (df_insn_debug_regno): Likewise.
9781 (debug_df_insn): Likewise.
9782 (df_rd_simulate_one_insn): Likewise for param 2.
9783 (df_word_lr_simulate_defs): Likewise for param 1.
9784 (df_word_lr_simulate_uses): Likewise.
9785 (df_md_simulate_one_insn): Likewise for param 2.
9786 (df_simulate_find_noclobber_defs): Likewise for param 1.
9787 (df_simulate_find_defs): Likewise.
9788 (df_simulate_defs): Likewise.
9789 (df_simulate_uses): Likewise.
9790 (df_simulate_one_insn_backwards): Likewise for param 2.
9791 (df_simulate_one_insn_forwards): Likewise.
9792 (df_uses_create): Likewise for param 2.
9793 (df_insn_create_insn_record): Likewise for param 1.
9794 (df_insn_delete): Likewise.
9795 (df_insn_rescan): Likewise.
9796 (df_insn_rescan_debug_internal): Likewise.
9797 (df_insn_change_bb): Likewise.
9798 (df_notes_rescan): Likewise.
9799 * rtl.h (remove_death): Likewise for param 2.
9800 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9802 * sched-int.h (reemit_notes): Strengthen param from rtx to
9804 * valtrack.h (propagate_for_debug): Likewise for param 1.
9806 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9807 local "tmp_rtx" from const_rtx to const rtx_insn *.
9808 * combine.c (remove_death): Strengthen param "insn" from rtx to
9810 (move_deaths): Likewise for local "where_dead".
9811 * cse.c (delete_trivially_dead_insns): Introduce local
9812 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9813 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9815 (df_reg_defined): Likewise.
9816 (df_find_use): Likewise.
9817 (df_reg_used): Likewise.
9818 (df_dump_insn_problem_data): Strengthen param "insn" from
9819 const_rtx to const rtx_insn *.
9820 (df_dump_insn_top): Likewise.
9821 (df_dump_insn_bottom): Likewise.
9822 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9823 (df_insn_debug_regno): Likewise.
9824 (debug_df_insn): Likewise.
9825 (DF_REF_INSN): Delete.
9826 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9827 from rtx to rtx_insn *.
9828 (df_chain_insn_top_dump): Strengthen param "insn" from
9829 const_rtx to const rtx_insn *.
9830 (df_chain_insn_bottom_dump): Likewise.
9831 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9833 (df_word_lr_simulate_uses): Likewise.
9834 (df_print_note): Likewise.
9835 (df_remove_dead_and_unused_notes): Likewise.
9836 (df_set_unused_notes_for_mw): Likewise.
9837 (df_set_dead_notes_for_mw): Likewise.
9838 (df_create_unused_note): Likewise.
9839 (df_simulate_find_defs): Likewise.
9840 (df_simulate_find_uses): Likewise.
9841 (df_simulate_find_noclobber_defs): Likewise.
9842 (df_simulate_defs): Likewise.
9843 (df_simulate_uses): Likewise.
9844 (df_simulate_one_insn_backwards): Likewise.
9845 (df_simulate_one_insn_forwards): Likewise.
9846 (df_md_simulate_one_insn): Likewise.
9847 * df-scan.c (df_uses_create): Likewise.
9848 (df_insn_create_insn_record): Likewise.
9849 (df_insn_delete): Likewise.
9850 (df_insn_rescan): Likewise.
9851 (df_insn_rescan_debug_internal): Likewise.
9852 (df_insn_change_bb): Likewise.
9853 (df_notes_rescan): Likewise.
9854 (df_refs_add_to_chains): Likewise.
9855 (df_insn_refs_verify): Likewise.
9856 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9857 when invoking df_insn_delete.
9858 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9859 (set_unique_reg_note): Add checked cast.
9860 * final.c (cleanup_subreg_operands): Likewise.
9861 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9862 "insn" from rtx to rtx_insn *.
9863 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9864 "last" from rtx to rtx_insn *.
9865 * ira-emit.c (change_regs_in_insn): New function.
9866 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9867 Invoke change_regs_in_insn rather than change_regs.
9868 * ira.c (update_equiv_regs): Strengthen locals "insn",
9869 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9870 for_each_rtx_in_insn rather than for_each_rtx.
9871 * recog.c (confirm_change_group): Add checked casts.
9872 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9874 (peep2_fill_buffer): Add checked cast.
9875 * rtlanal.c (remove_note): Likewise.
9876 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9877 locals "next" "end" from rtx to rtx_insn *.
9879 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9881 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9883 (struct reg_use_data): Likewise for field "insn".
9884 (insn_cost): Likewise for param.
9885 (real_insn_for_shadow): Likewise for return type and param.
9886 (increase_insn_priority): Likewise for param 1.
9887 (debug_dependencies): Likewise for both params.
9889 * haifa-sched.c (insn_delay): Likewise for param "insn".
9890 (real_insn_for_shadow): Likewise for return type and param "insn".
9891 (update_insn_after_change): Likewise for param "insn".
9892 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9894 (insn_cost): Likewise for param "insn".
9895 (increase_insn_priority): Likewise.
9896 (calculate_reg_deaths): Likewise.
9897 (setup_insn_reg_pressure_info): Likewise.
9898 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9899 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9900 (model_recompute): Likewise.
9901 (must_restore_pattern_p): Likewise for param "next".
9902 (model_excess_cost): Likewise for param "insn".
9903 (queue_remove): Likewise.
9904 (adjust_priority): Likewise for param "prev".
9905 (update_register_pressure): Likewise for param "insn".
9906 (setup_insn_max_reg_pressure): Likewise for local "insn".
9907 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9908 (model_add_to_schedule): Likewise.
9909 (model_reset_queue_indices): Likewise for local "insn".
9910 (unschedule_insns_until): Strengthen local "recompute_vec" from
9911 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9912 "con" from rtx to rtx_insn *.
9913 (restore_last_backtrack_point): Likewise for both locals "x". Add
9915 (estimate_insn_tick): Likewise for param "insn".
9916 (commit_schedule): Likewise for params "prev_head", "tail" and
9918 (verify_shadows): Likewise for locals "i1", "i2".
9919 (dump_insn_stream): Likewise for params "head", "tail" and locals
9920 "next_tail", "insn".
9921 (schedule_block): Likewise for locals "insn", "x". Add a checked
9923 (fix_inter_tick): Likewise for params "head", "tail".
9924 (create_check_block_twin): Likewise for local "jump".
9925 (haifa_change_pattern): Likewise for param "insn".
9926 (haifa_speculate_insn): Likewise.
9927 (dump_new_block_header): Likewise for params "head", "tail".
9928 (fix_jump_move): Likewise for param "jump".
9929 (move_block_after_check): Likewise.
9930 (sched_init_insn_luid): Likewise for param "insn".
9931 (sched_init_luids): Likewise for local "insn".
9932 (insn_luid): Likewise for param "insn".
9933 (init_h_i_d): Likewise.
9934 (haifa_init_h_i_d): Likewise for local "insn".
9935 (haifa_init_insn): Likewise for param "insn".
9936 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9938 (create_insn_reg_use): Likewise for param "insn".
9939 (setup_insn_reg_uses): Likewise. Add a checked cast.
9940 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9941 "tail" from rtx to rtx_insn *.
9942 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9943 "insn", "next_tail".
9945 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9947 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9948 from rtx to rtx_insn *.
9949 (model_add_to_schedule): Likewise for locals "start", "end",
9952 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9954 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9956 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9957 "to" and locals "insn", "next", "copy". Remove now-redundant
9960 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9962 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9963 rtx_insn * and param 4 from rtx * to rtx_insn **.
9964 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9965 param 2 from rtx * to rtx_insn **.
9967 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9968 rtx_insn * and final param from rtx * to rtx_insn **.
9970 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9971 from rtx to rtx_insn *.
9972 (try_head_merge_bb): Likewise for both locals named "move_upto".
9973 * df-problems.c (can_move_insns_across): Likewise for params
9974 "from", "to", "across_from", "across_to" and locals "insn",
9975 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9977 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9978 from rtx to rtx_insn *.
9979 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9980 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9981 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9983 (noce_try_abs): Likewise.
9984 (noce_get_condition): Likewise for param "jump". Strengthen param
9985 "earliest" from rtx * to rtx_insn **.
9986 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9988 (find_cond_trap): Likewise.
9989 (dead_or_predicable): Likewise for local "earliest".
9990 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9992 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9993 and local "prev". Strengthen param "earliest" from rtx * to
9995 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9996 Strengthen param "earliest" from rtx * to rtx_insn **.
9998 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10000 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10001 "to" and local "insn" from rtx to rtx_insn *.
10003 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10005 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10006 from rtx to rtx_insn *.
10007 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10008 (code_motion_path_driver): Likewise for local "last_insn".
10009 (simplify_changed_insns): Likewise for local "insn".
10011 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10013 * rtl.h (push_to_sequence): Strengthen param from rtx to
10015 (push_to_sequence2): Likewise for both params.
10016 (delete_insns_since): Likewise for param.
10017 (reorder_insns_nobb): Likewise for all three params.
10018 (set_new_first_and_last_insn): Likewise for both params.
10020 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10021 rtx_insn *. Remove now-redundant cast.
10022 (set_last_insn): Likewise.
10024 * builtins.c (expand_builtin_return): Strengthen local
10025 "call_fusage" from rtx to rtx_insn *.
10026 * cfgrtl.c (create_basic_block_structure): Likewise for local
10028 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10029 "first", "last" and local "insn".
10030 (delete_insns_since): Likewise for param "from".
10031 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10033 (push_to_sequence): Likewise for param "first" and local "last".
10034 (push_to_sequence2): Likewise for params "first" and "last".
10035 * lra.c (emit_add3_insn): Likewise for local "last".
10036 (lra_emit_add): Likewise.
10037 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10039 (process_address_1): Likewise for locals "insn", last".
10040 * modulo-sched.c (ps_first_note): Likewise for return type.
10041 * optabs.c (expand_binop_directly): Likewise for param "last".
10043 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10045 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10047 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10051 * function.h (struct sequence_stack): Strengthen fields "first"
10052 and "last" from rtx to rtx_insn *.
10053 (struct emit_status): Likewise for fields "x_first_insn" and
10056 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10057 (set_first_insn): Add checked cast.
10058 (get_last_insn): Remove now-redundant checked cast.
10059 (set_last_insn): Add checked cast.
10061 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10062 "saved_first" and "saved_last" from rtx to rtx_insn *.
10064 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10066 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10067 (unlink_insn_chain): Strengthen both params from rtx to
10070 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10072 (unlink_insn_chain): Likewise for params "first" and "last".
10073 Remove now-redundant checked cast.
10074 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10075 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10077 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10079 (add_insn): Likewise for param "insn" and local "prev".
10080 (add_insn_after_nobb): Likewise for both params and local "next".
10081 (add_insn_before_nobb): Likewise for both params and local "prev".
10082 (add_insn_after): Rename param "after" to "uncast_after",
10083 introducing local "after" with another checked cast.
10084 (add_insn_before): Rename params "insn" and "before", giving them
10085 "uncast_" prefixes, adding the old names back using checked casts.
10086 (emit_note_after): Likewise for param "after".
10087 (emit_note_before): Likewise for param "before".
10088 (emit_label): Add a checked cast.
10090 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10092 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10093 "insn" from rtx to rtx_insn *.
10095 * cselib.c (cselib_record_sets_hook): Likewise.
10097 * var-tracking.c (add_with_sets): Likewise, renaming back from
10098 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10101 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10103 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10104 and "header_" from rtx to rtx_insn *.
10105 (struct basic_block_d): Likewise for field "head_" within "x"
10106 field of union basic_block_il_dependent.
10107 (BB_HEAD): Drop function...
10108 (SET_BB_HEAD): ...and this function in favor of...
10109 (BB_HEAD): ...reinstate macro.
10110 (BB_END): Drop function...
10111 (SET_BB_END): ...and this function in favor of...
10112 (BB_END): ...reinstate macro.
10113 (BB_HEADER): Drop function...
10114 (SET_BB_HEADER): ...and this function in favor of...
10115 (BB_HEADER): ...reinstate macro.
10117 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10118 (fix_crossing_unconditional_branches): Likewise.
10119 * caller-save.c (save_call_clobbered_regs): Likewise.
10120 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10121 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10122 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10123 (merge_blocks_move_successor_nojumps): Likewise.
10124 (outgoing_edges_match): Update use of for_each_rtx to
10125 for_each_rtx_in_insn.
10126 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10127 (expand_gimple_cond): Likewise.
10128 (expand_gimple_tailcall): Likewise.
10129 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10131 (construct_exit_block): Drop use of SET_BB_END.
10132 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10134 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10135 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10136 SET_BB_HEAD and SET_BB_END.
10137 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10139 (rtl_delete_block): Drop use of SET_BB_HEAD.
10140 (rtl_split_block): Drop use of SET_BB_END.
10141 (emit_nop_for_unique_locus_between): Likewise.
10142 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10143 (block_label): Drop use of SET_BB_HEAD.
10144 (fixup_abnormal_edges): Drop use of SET_BB_END.
10145 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10146 (relink_block_chain): Likewise.
10147 (fixup_reorder_chain): Drop use of SET_BB_END.
10148 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10149 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10150 rtx_insn **. Drop use of SET_BB_HEADER.
10151 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10153 (BB_HEAD): Delete this function.
10154 (SET_BB_HEAD): Likewise.
10155 (BB_END): Likewise.
10156 (SET_BB_END): Likewise.
10157 (BB_HEADER): Likewise.
10158 (SET_BB_HEADER): Likewise.
10159 * emit-rtl.c (add_insn_after): Rename param "insn" to
10160 "uncast_insn", adding a new local "insn" and a checked cast to
10161 rtx_insn *. Drop use of SET_BB_END.
10162 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10163 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10164 (reorder_insns): Drop use of SET_BB_END.
10165 (emit_insn_after_1): Strengthen param "first" and locals "last",
10166 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10167 (emit_pattern_after_noloc): Add checked cast.
10168 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10169 (restore_other_notes): Likewise.
10170 (move_insn): Likewise.
10171 (sched_extend_bb): Likewise.
10172 (fix_jump_move): Likewise.
10173 * ifcvt.c (noce_process_if_block): Likewise.
10174 (dead_or_predicable): Likewise.
10175 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10176 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10177 * sel-sched-ir.c (sel_move_insn): Likewise.
10178 * sel-sched.c (move_nop_to_previous_block): Likewise.
10180 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10182 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10184 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10186 * basic-block.h (create_basic_block_structure): Strengthen params
10187 1 "head" and 2 "end" from rtx to rtx_insn *.
10188 * cfgrtl.c (create_basic_block_structure): Likewise.
10189 (rtl_create_basic_block): Update casts from void * to rtx to
10190 rtx_insn *, so that we can pass them as rtx_insn * to
10191 create_basic_block_structure.
10192 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10194 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10196 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10198 (check_for_inc_dec): Strengthen param "insn" from rtx to
10201 * cselib.h (cselib_process_insn): Likewise.
10203 * cselib.c (cselib_record_sets): Likewise.
10204 (cselib_process_insn): Likewise.
10206 * dse.c (struct insn_info): Likewise for field "insn".
10207 (check_for_inc_dec_1): Likewise for local "insn".
10208 (check_for_inc_dec): Likewise for param "insn".
10209 (scan_insn): Likewise.
10210 (dse_step1): Likewise for local "insn".
10212 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10213 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10215 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10217 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10218 from rtx to rtx_insn *.
10219 (DEP_PRO): Delete this function and...
10220 (SET_DEP_PRO): ...this function in favor of...
10221 (DEP_PRO): ...reinstate this macro.
10222 (DEP_CON): Delete this function and...
10223 (SET_DEP_CON): ...this function in favor of...
10224 (DEP_CON): ...reinstate this old macro.
10225 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10226 (init_dep): Likewise.
10227 (set_priorities): Likewise for both params.
10228 (sd_copy_back_deps): Likewise for params 1 and 2.
10230 * haifa-sched.c (priority): Likewise for param "insn" and local
10232 (set_priorities): Likewise for params "head" and "tail" and local
10234 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10236 (add_to_speculative_block): Add a checked cast.
10237 (create_check_block_twin): Drop use of SET_DEP_CON.
10238 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10241 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10242 Drop use of SET_DEP_PRO
10243 (init_dep): Strengthen params "pro" and "con" from rtx to
10245 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10246 use of SET_DEP_CON.
10249 (SET_DEP_PRO): Delete.
10250 (SET_DEP_CON): Delete.
10252 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10254 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10255 from rtx to rtx_insn *.
10256 (VINSN_INSN_RTX): Eliminate rvalue function and...
10257 (SET_VINSN_INSN): ...lvalue function in favor of...
10258 (VINSN_INSN_RTX): reinstate this old macro.
10260 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10261 in favor of VINSN_INSN_RTX.
10262 (VINSN_INSN_RTX): Delete this function.
10263 (SET_VINSN_INSN_RTX): Likewise.
10265 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10267 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10268 (BND_TO): Delete this function and...
10269 (SET_BND_TO): ...this functions in favor of...
10270 (BND_TO): ...reinstating this macro.
10271 (struct _fence): Strengthen field "executing_insns" from
10272 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10273 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10274 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10275 and param "insn" from rtx to insn_t.
10276 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10279 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10281 (rtx_vec_t): Likewise.
10282 (struct sched_deps_info_def): Strengthen param of "start_insn"
10283 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10284 "note_mem_dep" callback and first param of "note_dep" callback.
10286 * haifa-sched.c (add_to_speculative_block): Strengthen param
10287 "insn" from rtx to rtx_insn *.
10288 (clear_priorities): Likewise.
10289 (calc_priorities): Likewise for local "insn".
10291 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10292 Remove redundant checked cast.
10293 (haifa_note_mem_dep): Likewise for param "pending_insn".
10294 (haifa_note_dep): Likewise for param "elem".
10295 (note_mem_dep): Likewise for param "e".
10296 (sched_analyze_1): Add checked casts.
10297 (sched_analyze_2): Likewise.
10299 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10300 from rtx to rtx_insn *.
10301 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10302 from vec<rtx> * to vec<rtx_insn *> *.
10304 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10306 (flist_add): Strengthen param "executing_insns" from
10307 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10308 (advance_deps_context): Remove now-redundant checked cast.
10309 (init_fences): Replace uses of NULL_RTX with NULL.
10310 (merge_fences): Strengthen params "last_scheduled_insn" and
10311 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10312 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10313 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10314 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10315 an instruction, rather than doing double-duty as a pattern.
10316 (return_nop_to_pool): Update for change of insn_t.
10317 (deps_init_id): Remove now-redundant checked cast.
10318 (struct sched_scan_info_def): Strengthen param of "init_insn"
10319 callback from rtx to insn_t.
10320 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10321 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10323 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10324 "end" from rtx to rtx_insn *.
10325 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10326 (rtx insn_rtx, bool force_unique_p)
10327 (BND_TO): Delete function.
10328 (SET_BND_TO): Delete function.
10330 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10332 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10333 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10335 (undo_transformations): Likewise for param "insn".
10336 (update_liveness_on_insn): Likewise.
10337 (compute_live_below_insn): Likewise for param "insn" and local
10339 (update_data_sets): Likewise for param "insn".
10340 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10341 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10342 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10344 (move_cond_jump): Likewise for param "insn".
10345 (move_cond_jump): Drop use of SET_BND_TO.
10346 (compute_av_set_on_boundaries): Likewise.
10347 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10348 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10349 from rtx to rtx_insn *.
10350 (maybe_emit_renaming_copy): Likewise for param "insn".
10351 (maybe_emit_speculative_check): Likewise.
10352 (handle_emitting_transformations): Likewise.
10353 (remove_insn_from_stream): Likewise.
10354 (code_motion_process_successors): Strengthen local "succ" from rtx
10357 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10359 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10360 ilist_t, not _xlist_t;
10361 (ILIST_INSN): Define in terms of new union field "insn".
10362 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10364 (struct _list_node): Add new field "insn" to the union, of type
10366 (ilist_add): Replace macro with an inline function, requiring an
10368 (ilist_remove): Define this macro directly in terms of
10369 _list_remove, rather than indirectly via _xlist_remove.
10370 (ilist_clear): Likewise, in terms of _list_clear rather than
10372 (ilist_is_in_p): Replace macro with an inline function, requiring
10374 (_list_iter_cond_insn): New function.
10375 (ilist_iter_remove): Define this macro directly in terms of
10376 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10377 (ilist_iterator): Define directly in terms of _list_iterator
10378 rather than indirectly through _xlist_iterator.
10379 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10380 than in terms of _FOR_EACH_X.
10381 (FOR_EACH_INSN_1): Likewise.
10383 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10387 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10388 DECL_HARD_REGISTER and return for invalid register specifications.
10389 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10390 DECL_HARD_REGISTER, call expand_one_error_var.
10391 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10392 CC_REGNUM with non-MODE_CC modes.
10393 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10395 2014-08-26 Marek Polacek <polacek@redhat.com>
10398 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10400 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10402 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10403 qi cost; add di cost.
10404 (cortexa57_addrcost_table): Likewise.
10406 2014-08-26 Marek Polacek <polacek@redhat.com>
10409 * expr.c (is_aligning_offset): Remove logical not.
10411 2014-08-26 Marek Polacek <polacek@redhat.com>
10414 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10415 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10417 2014-08-26 Richard Biener <rguenther@suse.de>
10419 PR tree-optimization/62175
10420 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10421 expand possibly trapping operations.
10423 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10425 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10426 "insn" from rtx to rtx_insn *.
10427 (permute_load): Likewise for param "insn".
10428 (permute_store): Likewise.
10429 (handle_special_swappables): Likewise for local "insn".
10430 (replace_swap_with_copy): Likewise for locals "insn" and
10432 (rs6000_analyze_swaps): Likewise for local "insn".
10434 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10436 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10441 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10442 "note_list" from rtx to rtx_insn *.
10443 (BB_NOTE_LIST): Replace this function and...
10444 (SET_BB_NOTE_LIST): ...this function with...
10445 (BB_NOTE_LIST): ...the former macro implementation.
10447 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10448 local "from_start" from rtx to rtx_insn *. Strengthen param
10449 "to_endp" from rtx * to rtx_insn **.
10451 * haifa-sched.c (concat_note_lists): Likewise.
10452 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10454 (sel_restore_notes): Likewise.
10455 (move_bb_info): Likewise.
10456 (BB_NOTE_LIST): Delete this function.
10457 (SET_BB_NOTE_LIST): Delete this function.
10458 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10459 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10461 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10463 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10464 from rtx * to rtx_insn **.
10465 (reorder2): Likewise.
10466 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10467 from rtx to rtx_insn *.
10469 * doc/tm.texi: Update mechanically for above change to target.def.
10471 * sched-int.h (note_list): Strengthen this variable from rtx to
10473 (remove_notes): Likewise for both params.
10474 (restore_other_notes): Likewise for return type and first param.
10475 (struct ready_list): Strengthen field "vec" from rtx * to
10477 (struct dep_replacement): Strenghten field "insn" from rtx to
10479 (struct deps_desc): Likewise for fields "last_debug_insn",
10481 (struct haifa_sched_info): Likewise for callback field
10482 "can_schedule_ready_p"'s param, for first param of "new_ready"
10483 callback field, for both params of "rank" callback field, for
10484 first field of "print_insn" callback field (with a const), for
10485 both params of "contributes_to_priority" callback, for param
10486 of "insn_finishes_block_p" callback, for fields "prev_head",
10487 "next_tail", "head", "tail", for first param of "add_remove_insn"
10488 callback, for first param of "begin_schedule_ready" callback, for
10489 both params of "begin_move_insn" callback, and for second param
10490 of "advance_target_bb" callback.
10491 (add_dependence): Likewise for params 1 and 2.
10492 (sched_analyze): Likewise for params 2 and 3.
10493 (deps_analyze_insn): Likewise for param 2.
10494 (ready_element): Likewise for return type.
10495 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10496 (try_ready): Strenghten param from rtx to rtx_insn *.
10497 (sched_emit_insn): Likewise for return type.
10498 (record_delay_slot_pair): Likewise for params 1 and 2.
10499 (add_delay_dependencies): Likewise for param.
10500 (contributes_to_priority): Likewise for both params.
10501 (find_modifiable_mems): Likewise.
10503 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10504 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10505 "first_older_only_insn" from rtx to rtx_insn *.
10506 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10509 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10510 "last_scheduled_iter0" from rtx to rtx_insn *.
10511 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10512 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10513 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10514 "insn" from rtx to rtx_insn *.
10515 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10517 (c6x_sched_reorder2): Strengthen param "ready" and locals
10518 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10519 "insn" from rtx to rtx_insn *.
10520 (c6x_variable_issue): Add a checked cast when assigning from insn
10521 to ss.last_scheduled_iter0.
10522 (split_delayed_branch): Strengthen param "insn" and local "i1"
10523 from rtx to rtx_insn *.
10524 (split_delayed_nonbranch): Likewise.
10525 (undo_split_delayed_nonbranch): Likewise for local "insn".
10526 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10527 "entry_after", "end_packet", "head_insn", "tail_insn",
10528 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10529 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10530 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10531 but add a checked cast on loop->start_label. Consolidate calls to
10532 avoid assigning result of gen_spkernel to "insn", now an
10535 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10536 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10538 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10539 rtx_insn **. Strengthen locals "top", "next" from rtx to
10541 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10542 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10543 (add_parameter_dependencies): Strengthen params "call", "head" and
10544 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10545 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10546 (add_dependee_for_func_arg): Likewise for param "arg" and local
10548 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10549 "tail" and locals "insn", "first_arg".
10551 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10552 for params "head", "tail" and locals "insn", "next", "next_tail".
10553 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10554 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10555 "insn", "lowest", "highest" from rtx to rtx_insn *.
10556 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10558 (ia64_sched_reorder2): Likewise.
10560 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10561 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10562 from rtx * to rtx_insn **.
10563 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10565 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10567 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10568 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10571 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10572 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10574 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10575 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10576 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10578 (vr4130_reorder): Likewise.
10579 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10581 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10583 (mips_sched_reorder): Likewise.
10584 (mips_sched_reorder2): Likewise.
10586 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10588 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10589 Strengthen local "tmp" from rtx to rtx_insn *.
10590 (rs6000_sched_reorder2): Likewise.
10592 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10593 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10594 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10595 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10597 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10598 "tmp2" from rtx to rtx_insn *.
10599 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10600 Strengthen local "insn" from rtx to rtx_insn *.
10601 (ready_reorder): Strengthen param "ready" from rtx * to
10602 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10603 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10604 (sh_reorder2): Likewise.
10606 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10607 local "insn" from rtx to rtx_insn *.
10609 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10611 (scheduled_insns): Strengthen this variable from vec<rtx> to
10613 (set_modulo_params): Likewise for locals "i1", "i2".
10614 (record_delay_slot_pair): Likewise for params "i1", "i2".
10615 (add_delay_dependencies): Likewise for param "insn".
10616 (cond_clobbered_p): Likewise.
10617 (recompute_todo_spec): Likewise for local "prev".
10618 (last_scheduled_insn): Likewise for this variable.
10619 (nonscheduled_insns_begin): Likewise.
10620 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10622 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10624 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10625 Strengthen local "insn" from rtx to rtx_insn *.
10626 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10627 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10628 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10629 (ready_remove_first): Likewise for return type and local "t".
10630 (ready_element): Likewise for return type.
10631 (ready_remove): Likewise for return type and local "t".
10632 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10633 (check_clobbered_conditions): Strengthen local "x" from rtx to
10634 rtx_insn *, adding a checked cast.
10635 (schedule_insn): Likewise for param "insn".
10636 (remove_notes): Likewise for params "head", "tail" and locals
10637 "next_tail", "insn", "next".
10638 (struct haifa_saved_data): Likewise for fields
10639 "last_scheduled_insn", "nonscheduled_insns_begin".
10640 (save_backtrack_point): Update for change to field "vec" of
10642 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10644 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10645 from rtx to rtx_insn *
10646 (resolve_dependencies): Strengthen param "insn" from rtx to
10648 (restore_other_notes): Likewise for return type, for param "head"
10649 and local "note_head".
10650 (undo_all_replacements): Likewise for local "insn".
10651 (first_nonscheduled_insn): Likewise for return type and local "insn".
10652 (queue_to_ready): Likewise for local "insn", adding checked casts.
10653 (early_queue_to_ready): Likewise for local "insn".
10654 (debug_ready_list_1): Strengthen local "p" from rtx * to
10656 (move_insn): Strengthen param "insn" and local "note" from rtx to
10658 (insn_finishes_cycle_p): Likewise for param "insn".
10659 (max_issue): Likewise for local "insn".
10660 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10662 (commit_schedule): Strengthen param "prev_head" and local "insn"
10663 from rtx to rtx_insn *
10664 (prune_ready_list): Likewise for local "insn".
10665 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10666 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10667 (set_priorities): Likewise for local "prev_head".
10668 (try_ready): Likewise for param "next".
10669 (fix_tick_ready): Likewise.
10670 (change_queue_index): Likewise.
10671 (sched_extend_ready_list): Update for change to field "vec" of
10673 (generate_recovery_code): Strengthen param "insn" from rtx to
10675 (begin_speculative_block): Likewise.
10676 (create_check_block_twin): Likewise for param "insn" and locals
10677 "label", "check", "twin". Introduce local "check_pat" to avoid
10678 "check" being used as a plain rtx before being used as an insn.
10679 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10680 extracting elements from ready_list.
10681 (sched_remove_insn): Strengthen param "insn" from rtx to
10683 (sched_emit_insn): Likewise for return type.
10684 (ready_remove_first_dispatch): Likewise for return type and local
10687 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10689 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10692 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10693 from rtx to rtx_insn *.
10694 (add_dependence_list): Likewise for param "insn". Add a checked
10696 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10697 to rtx_insn *. Strengthen param "list_p" from rtx * to
10699 (chain_to_prev_insn): Strengthen param "insn" and locals
10700 "prec_nonnote", "i" from rtx to rtx_insn *.
10701 (flush_pending_lists): Likewise for param "insn".
10702 (cur_insn): Likewise for this variable.
10703 (haifa_start_insn): Add a checked cast.
10704 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10705 (sched_analyze_reg): Likewise for param "insn".
10706 (sched_analyze_1): Likewise.
10707 (sched_analyze_2): Likewise. Add checked casts.
10708 (sched_analyze_insn): Likewise. Also for local "prev".
10709 (deps_analyze_insn): Likewise for param "insn".
10710 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10711 (add_dependence_1): Likewise for params "insn", "elem".
10712 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10713 (parse_add_or_inc): Likewise for param "insn".
10714 (find_inc): Likewise for local "inc_cand".
10715 (find_modifiable_mems): Likewise for params "head", "tail" and
10716 locals "insn", "next_tail".
10718 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10719 (begin_schedule_ready): Likewise for param "insn".
10720 (begin_move_insn): Likewise for params "insn" and "last".
10721 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10723 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10724 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10725 (ebb_add_remove_insn): Likewise for param "insn".
10726 (advance_target_bb): Likewise.
10728 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10730 (check_live): Likewise for param "insn".
10731 (init_ready_list): Likewise for local "insn".
10732 (can_schedule_ready_p): Likewise for param "insn".
10733 (begin_schedule_ready): Likewise.
10734 (new_ready): Likewise for param "next".
10735 (rgn_print_insn): Likewise for param "insn".
10736 (rgn_rank): Likewise for params "insn1", "insn2".
10737 (contributes_to_priority): Likewise for params "next", "insn".
10738 (rgn_insn_finishes_block_p): Likewise for param "insn".
10739 (add_branch_dependences): Likewise for params "head", "tail" and
10740 locals "insn", "last".
10741 (rgn_add_remove_insn): Likewise for param "insn".
10742 (advance_target_bb): Likewise.
10744 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10745 const_rtx to const rtx_insn *.
10747 * sel-sched-dump.h (sel_print_insn): Likewise.
10749 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10750 (deps_init_id): Likewise.
10752 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10753 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10756 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10758 * output.h (final_start_function): Strengthen param 1 from rtx to
10761 * final.c (final_start_function): Likewise, renaming back from
10762 "uncast_first" to "first", and dropping the checked cast from rtx
10765 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10767 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10768 * final.c (final): Likewise. Rename param back from
10769 "uncast_first" to "first" and eliminate the checked cast from rtx
10772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10774 * output.h (shorten_branches): Strengthen param from rtx to
10777 * final.c (shorten_branches): Likewise, renaming param back from
10778 "uncast_first" to "first", and dropping the checked cast from rtx
10781 * genattr.c (gen_attr): Likewise when writing out the prototype of
10784 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10786 * sched-int.h (struct haifa_sched_info): Strengthen fields
10787 "prev_head" and "next_tail" from rtx to rtx_insn *.
10789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10791 * rtl.h (rtx_jump_table_data::get_labels): New method.
10792 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10793 with use of the new rtx_jump_table_data::get_labels method.
10794 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10795 to rtx_jump_table_data *. Simplify by using get_labels method.
10796 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10797 a dyn_cast, introducing local "table", using it to replace
10798 label-lookup logic with a get_labels method call.
10799 (patch_jump_insn): Simplify using get_labels method.
10800 * dwarf2cfi.c (create_trace_edges): Likewise.
10801 * rtlanal.c (label_is_jump_target_p): Likewise.
10803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10805 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10808 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10809 (unshare_all_rtl_again): Likewise, also for local "p".
10811 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10813 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10815 * cfgrtl.c (delete_insn_and_edges): Likewise.
10817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10819 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10820 from rtx to rtx_insn *.
10822 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10826 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10827 locals "returnjump", "epilogue_end", "insn", "next".
10829 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10830 "returnjump" from rtx * to rtx_insn **.
10831 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10835 * basic-block.h (struct edge_def). Strengthen "r" within
10836 union edge_def_insns from rtx to rtx_insn *.
10838 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10839 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10841 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10842 from rtx to rtx_insn *.
10843 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10845 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10846 (reg_used_on_edge): Likewise.
10847 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10848 (gt_pch_nx): New overload for rtx_insn *&.
10849 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10850 from rtx to rtx_insn *.
10852 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10854 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10855 from rtx to rtx_insn *.
10856 (BB_FOOTER): Replace function with access macro.
10857 (SET_BB_FOOTER): Delete.
10859 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10861 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10862 (emit_barrier_after_bb): Likewise.
10863 (record_effective_endpoints): Likewise.
10864 (relink_block_chain): Likewise.
10865 (fixup_fallthru_exit_predecessor): Likewise.
10866 (cfg_layout_duplicate_bb): Likewise.
10867 (cfg_layout_split_block): Likewise.
10868 (cfg_layout_delete_block): Likewise.
10869 (cfg_layout_merge_blocks): Likewise.
10870 (BB_FOOTER): Delete function.
10871 (SET_BB_FOOTER): Delete function.
10872 * combine.c (update_cfg_for_uncondjump): Replace uses of
10873 SET_BB_FOOTER with BB_FOOTER.
10875 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10877 * except.h (struct eh_landing_pad_d): Strengthen field
10878 "landing_pad" from rtx to rtx_code_label *.
10880 * except.c (sjlj_emit_dispatch_table): Likewise for param
10882 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10886 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10887 first param from rtx to rtx_insn *.
10888 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10889 field "set_frame_ptr_insn".
10890 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10891 "csend" from rtx to rtx_code_label *.
10892 (xtensa_expand_atomic): Likewise for local "csloop".
10893 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10895 (xtensa_call_tls_desc): Likewise for return type and locals
10896 "call_insn", "insns".
10897 (xtensa_legitimize_tls_address): Likewise for local "insns".
10898 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10900 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10902 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10903 first param from rtx to rtx_insn *.
10904 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10909 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10910 Strengthen param 1 from rtx to rtx_insn *.
10911 (tilepro_output_cbranch): Likewise.
10912 (tilepro_adjust_insn_length): Likewise.
10913 (tilepro_final_prescan_insn): Likewise for sole param.
10915 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10916 Likewise for local "last".
10917 (cbranch_predicted_p): Likewise for param "insn".
10918 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10919 (tilepro_output_cbranch_with_opcode): Likewise.
10920 (tilepro_output_cbranch): Likewise.
10921 (frame_emit_load): Likewise for return type and locals "seq",
10923 (emit_sp_adjust): Likewise for return type and local "insn".
10924 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10926 (tilepro_adjust_insn_length): Likewise for param "insn".
10927 (next_insn_to_bundle): Likewise for return type and params
10929 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10930 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10932 (match_addli_pcrel): Likewise for param "insn".
10933 (replace_addli_pcrel): Likewise.
10934 (match_auli_pcrel): Likewise.
10935 (replace_auli_pcrel): Likewise.
10936 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10938 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10939 "queue", "next_queue", "prev".
10940 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10941 (tilepro_final_prescan_insn): Likewise for param "insn".
10943 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10945 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10946 Strengthen param 1 from rtx to rtx_insn *.
10947 (tilegx_output_cbranch): Likewise.
10948 (tilegx_adjust_insn_length): Likewise.
10949 (tilegx_final_prescan_insn): Likewise for sole param.
10951 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10953 (cbranch_predicted_p): Likewise for param "insn".
10954 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10955 (tilegx_output_cbranch_with_opcode): Likewise.
10956 (tilegx_output_cbranch): Likewise.
10957 (frame_emit_load): Likewise for return type.
10958 (set_frame_related_p): Likewise for locals "seq", "insn".
10959 (emit_sp_adjust): Likewise for return type, and for local "insn".
10960 Introduce local "pat" for use in place of "insn" where the latter
10961 isn't an instruction.
10962 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10963 from rtx to rtx_insn *.
10964 (tilegx_adjust_insn_length): Likewise for param "insn".
10965 (next_insn_to_bundle): Likewise for return type and params "r" and
10967 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10969 (replace_insns): Likewise for params "old_insn", "new_insns".
10970 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10972 (replace_mov_pcrel_step2): Likewise.
10973 (replace_mov_pcrel_step3): Likewise.
10974 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10976 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10977 "queue", "next_queue", "prev".
10978 (tilegx_output_mi_thunk): Likewise for local "insn".
10979 (tilegx_final_prescan_insn): Likewise for param "insn".
10981 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10983 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10985 (frame_emit_load): Likewise.
10986 (frame_emit_add_imm): Likewise, also for local "insn".
10987 (spu_expand_prologue): Likewise for local "insn".
10988 (struct spu_bb_info): Likewise for field "prop_jump".
10989 (emit_nop_for_insn): Likewise for param "insn" and local
10991 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10993 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10994 locals "hint", "insn".
10995 (get_branch_target): Likewise for param "branch".
10996 (insn_clobbers_hbr): Likewise for param "insn".
10997 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10998 locals "insn", "before_4", "before_16".
10999 (insert_hbrp): Likewise for local "insn".
11000 (spu_machine_dependent_reorg): Likewise for locals "branch",
11001 "insn", "next", "bbend".
11002 (uses_ls_unit): Likewise for param "insn".
11003 (get_pipe): Likewise.
11004 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11005 introducing a checked cast.
11006 (spu_sched_adjust_cost): Likewise for params "insn" and
11008 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11009 (spu_sms_res_mii): Likewise.
11011 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11013 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11014 from rtx to rtx_insn *.
11015 (output_cbranch): Likewise for param 6.
11016 (output_return): Likewise for param 1.
11017 (output_sibcall): Likewise.
11018 (output_v8plus_shift): Likewise.
11019 (output_v8plus_mult): Likewise.
11020 (output_v9branch): Likewise for param 7.
11021 (output_cbcond): Likewise for param 3.
11023 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11025 (sparc_legitimize_pic_address): Likewise.
11026 (sparc_emit_call_insn): Likewise.
11027 (emit_save_or_restore_regs): Likewise.
11028 (emit_window_save): Likewise for return type and local "insn".
11029 (sparc_expand_prologue): Likewise for local "insn".
11030 (sparc_flat_expand_prologue): Likewise.
11031 (output_return): Likewise for param "insn".
11032 (output_sibcall): Likewise for param "insn" and local "delay".
11033 (output_ubranch): Likewise for param "insn".
11034 (output_cbranch): Likewise.
11035 (output_cbcond): Likewise.
11036 (output_v9branch): Likewise.
11037 (output_v8plus_shift): Likewise.
11038 (sparc_output_mi_thunk): Likewise for local "insn".
11039 (get_some_local_dynamic_name): Likewise.
11040 (output_v8plus_mult): Likewise for param "insn".
11042 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11044 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11045 from rtx to rtx_insn *.
11046 (output_branchy_insn): Likewise for param 3.
11047 (output_far_jump): Likewise for param 1.
11048 (final_prescan_insn): Likewise.
11049 (sh_insn_length_adjustment): Likewise for sole param.
11051 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11052 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11054 (sh_emit_compare_and_set): Likewise for local "lab".
11055 (output_far_jump): Strengthen param "insn" and local "prev" from
11057 (output_branchy_insn): Likewise for param "insn" and local
11059 (output_ieee_ccmpeq): Likewise for param "insn".
11060 (struct label_ref_list_d): Strengthen field "label" from rtx to
11062 (pool_node): Likewise.
11063 (pool_window_label): Likewise for this global.
11064 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11065 (dump_table): Strengthen params "start", "barrier" and local
11066 "scan" from rtx to rtx_insn *.
11067 (broken_move): Likewise for param "insn".
11068 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11069 Strengthen param "first_mova" from rtx * to rtx_insn **.
11070 (mova_p): Likewise for param "insn".
11071 (fixup_mova): Likewise for param "mova".
11072 (find_barrier): Likewise for return type, params "mova" and
11073 "from", and locals "barrier_before_mova", "found_barrier",
11074 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11075 "label" from rtx to rtx_code_label *.
11076 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11078 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11079 (split_branches): Likewise for param "first" and local "insn".
11080 (final_prescan_insn): Likewise for param "insn".
11081 (sequence_insn_p): Likewise for locals "prev", "next".
11082 (sh_insn_length_adjustment): Likewise for param "insn".
11083 (sh_can_redirect_branch): Likewise for local "insn".
11084 (find_r0_life_regions): Likewise for locals "end", "insn".
11085 (sh_output_mi_thunk): Likewise for local "insns".
11087 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11089 * config/score/score.c (score_output_mi_thunk): Strengthen local
11090 "insn" from rtx to rtx_insn *.
11091 (score_prologue): Likewise.
11093 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11095 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11096 1 from rtx to rtx_insn *.
11097 (s390_emit_jump): Likewise for return type.
11098 (s390_emit_call): Likewise.
11099 (s390_load_got): Likewise.
11101 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11103 (s390_match_ccmode): Likewise for param "insn".
11104 (s390_emit_jump): Likewise for return type.
11105 (s390_split_branches): Likewise for local "label".
11106 (struct constant): Strengthen field "label" from rtx to
11108 (struct constant_pool): Likewise for field "label". Strengthen
11109 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11111 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11113 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11114 (s390_end_pool): Likewise.
11115 (s390_dump_pool): Likewise for local "insn".
11116 (s390_mainpool_start): Likewise.
11117 (s390_chunkify_start): Likewise.
11118 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11119 with insns. Strengthen locals "label", "jump", "barrier", "next",
11120 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11121 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11123 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11124 "jump", "label", "next_insn".
11125 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11126 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11128 (s390_load_got): Likewise for return type and local "insns".
11129 (s390_save_gprs_to_fprs): Likewise for local "insn".
11130 (s390_restore_gprs_from_fprs): Likewise.
11131 (pass_s390_early_mach::execute): Likewise.
11132 (s390_emit_prologue): Likewise for local "insns".
11133 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11135 (s390_emit_call): Strengthen return type and local "insn" from
11137 (s390_emit_tpf_eh_return): Likewise for local "insn".
11138 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11139 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11140 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11142 (s390_non_addr_reg_read_p): Likewise for param "insn".
11143 (find_cond_jump): Likewise for return type and param "insn".
11144 (s390_swap_cmp): Likewise for param "insn".
11145 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11146 "prev_insn", "next_insn".
11147 (s390_reorg): Likewise for locals "insn", "target".
11148 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11149 (s390_sched_variable_issue): For now, rename param "insn" to
11150 "uncast_insn", introducing a checked cast.
11151 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11153 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11154 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11158 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11159 param from rtx to rtx_insn *.
11160 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11162 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11164 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11165 4 from rtx to rtx_insn *.
11166 (rs6000_final_prescan_insn): Likewise for first param.
11167 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11169 (rs6000_get_some_local_dynamic_name): Likewise.
11170 (output_cbranch): Likewise for param "insn".
11171 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11172 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11173 (rs6000_emit_allocate_stack): Likewise for local "insn".
11174 (load_cr_save): Likewise.
11175 (restore_saved_cr): Likewise.
11176 (restore_saved_lr): Likewise.
11177 (emit_cfa_restores): Likewise.
11178 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11179 "deleted_debug_label".
11180 (rs6000_output_mi_thunk): Likewise for local "insn".
11181 (rs6000_final_prescan_insn): Likewise for param "insn".
11183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11185 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11186 Strengthen param "insn" from rtx to rtx_insn *.
11187 * config/picochip/picochip.c (picochip_current_prescan_insn):
11188 Likewise for this variable.
11189 (picochip_final_prescan_insn): Likewise for param "insn".
11191 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11193 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11194 from rtx to rtx_insn *.
11195 (pa_output_indirect_call): Likewise.
11196 (pa_adjust_insn_length): Likewise.
11197 (pa_attr_length_millicode_call): Likewise.
11198 (pa_attr_length_call): Likewise.
11199 (pa_attr_length_indirect_call): Likewise.
11201 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11203 (pa_attr_length_millicode_call): Likewise.
11204 (pa_attr_length_call): Likewise.
11205 (pa_output_call): Likewise.
11206 (pa_attr_length_indirect_call): Likewise.
11207 (pa_output_indirect_call): Likewise.
11209 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11211 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11212 Strengthen first param from rtx to rtx_insn *.
11213 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11218 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11219 type from rtx to rtx_insn *.
11220 (mips_expand_call): Likewise.
11221 (mips_adjust_insn_length): Likewise for first param.
11222 (mips_output_conditional_branch): Likewise.
11223 (mips_output_order_conditional_branch): Likewise.
11224 (mips_final_prescan_insn): Likewise.
11226 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11227 rtx_insn * for the SEQUENCE case.
11228 (SEQ_END): Likewise.
11229 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11230 (mips_emit_call_insn): Likewise, also for local "insn".
11231 (mips16_gp_pseudo_reg): Likewise for local "scan".
11232 (mips16_build_call_stub): Likewise for return type and for local
11233 "insn". Introduce a new local "pattern" so that "insn" can indeed
11235 (mips_expand_call): Strengthen return type and local "insn" from
11237 (mips_block_move_loop): Strengthen local "label" from rtx to
11239 (mips_expand_synci_loop): Likewise for locals "label",
11241 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11243 (mips16e_collect_argument_saves): Likewise for locals "insn",
11245 (mips_find_gp_ref): Likewise for param of callback for "pred"
11246 param, and for local "insn".
11247 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11248 (mips_insn_has_flexible_gp_ref_p): Likewise.
11249 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11251 (mips_epilogue_set_cfa): Likewise for local "insn".
11252 (mips_expand_epilogue): Likewise.
11253 (mips_adjust_insn_length): Likewise for param "insn".
11254 (mips_output_conditional_branch): Likewise.
11255 (mips_output_order_conditional_branch): Likewise.
11256 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11257 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11258 "falu2_turn_enabled_insn".
11259 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11260 "done_label" from rtx to rtx_code_label *.
11261 (struct mips16_constant): Likewise for field "label".
11262 (mips16_add_constant): Likewise for return type.
11263 (mips16_emit_constants_1): Strengthen return type and param "insn"
11264 from rtx to rtx_insn *.
11265 (mips16_emit_constants): Likewise for param "insn".
11266 (mips16_insn_length): Likewise.
11267 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11268 to rtx_code_label *.
11269 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11270 from rtx to rtx_insn *.
11271 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11272 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11273 (r10k_simplify_address): Strengthen param "insn" and local
11274 "def_insn" from rtx to rtx_insn *.
11275 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11277 (r10k_needs_protection_p_1): Update target type of cast of data
11278 from to rtx to rtx_insn *.
11279 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11280 rtx * to rtx_insn **.
11281 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11283 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11284 (mips_call_expr_from_insn): Likewise for param "insn".
11285 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11286 (mips_find_pic_call_symbol): Likewise for param "insn".
11287 (mips_annotate_pic_calls): Likewise for local "insn".
11288 (mips_sim_insn): Likewise for this variable.
11289 (struct mips_sim): Likewise for field "insn" within elements of
11291 (mips_sim_wait_reg): Likewise for param "insn".
11292 (mips_sim_wait_regs): Likewise.
11293 (mips_sim_wait_units): Likewise.
11294 (mips_sim_wait_insn): Likewise.
11295 (mips_sim_issue_insn): Likewise.
11296 (mips_sim_finish_insn): Likewise.
11297 (mips_seq_time): Likewise for param "seq" and local "insn".
11298 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11299 locals "first", "second".
11300 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11301 "last", "last2", "next".
11302 (mips_avoid_hazard): Likewise for params "after", "insn".
11303 (mips_reorg_process_insns): Likewise for locals "insn",
11304 "last_insn", "subinsn", "next_insn".
11305 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11306 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11308 (mips_output_mi_thunk): Likewise for local "insn".
11309 (mips_final_prescan_insn): Likewise for param "insn".
11311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11313 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11314 Strengthen return type and local "insns" from rtx to rtx_insn *.
11315 (microblaze_legitimize_tls_address): Likewise for local "insns".
11316 (microblaze_block_move_loop): Strengthen local "label" from rtx
11317 to rtx_code_label *.
11318 (microblaze_expand_prologue): Strengthen two locals named "insn"
11319 from rtx to rtx_insn *.
11320 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11321 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11322 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11323 to rtx_code_label *.
11325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11327 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11328 param from rtx to rtx_insn *.
11329 (mep_reuse_lo): Likewise for third param.
11330 (mep_use_post_modify_p): Likewise for first param.
11331 (mep_core_address_length): Likewise.
11332 (mep_cop_address_length): Likewise.
11333 (mep_final_prescan_insn): Likewise.
11334 (mep_store_data_bypass_p): Likewise for both params.
11335 (mep_mul_hilo_bypass_p): Likewise.
11336 (mep_ipipe_ldc_p): Likewise for param.
11338 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11339 (mep_rewrite_mult): Likewise.
11340 (mep_rewrite_mulsi3): Likewise.
11341 (mep_rewrite_maddsi3): Likewise.
11342 (mep_reuse_lo_p_1): Likewise.
11343 (mep_reuse_lo_p): Likewise.
11344 (mep_frame_expr): Likewise.
11345 (mep_make_parallel): Likewise for both params.
11346 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11348 (mep_use_post_modify_p): Likewise for param "insn".
11349 (mep_core_address_length): Likewise.
11350 (mep_cop_address_length): Likewise.
11351 (mep_reg_set_in_function): Likewise for local "insn".
11352 (mep_asm_without_operands_p): Likewise.
11353 (F): Likewise for return type and param "x".
11354 (add_constant): Likewise for local "insn".
11355 (maybe_dead_move): Likewise for return type and local "insn".
11356 (mep_expand_prologue): Likewise for local "insn".
11357 (mep_final_prescan_insn): Likewise for param "insn".
11358 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11359 "next", "follow", "x".
11360 (mep_insert_repeat_label_last): Likewise for return type, param
11361 "last_insn", and locals "next", "prev". Strengthen param "label"
11362 from rtx to rtx_code_label *.
11363 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11365 (struct mep_doloop_end): Likewise for fields "insn" and
11367 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11368 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11369 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11371 (mep_invert_branch): Likewise for params "insn" and "after".
11372 (mep_reorg_erepeat): Likewise for param "insns" and locals
11373 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11374 "l" from rtx to rtx_code_label *.
11375 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11376 from rtx to rtx_insn *.
11377 (mep_reorg_addcombine): Likewise for param "insns" and locals
11379 (add_sp_insn_p): Likewise for param "insn".
11380 (mep_reorg_noframe): Likewise for param "insns" and locals
11381 "start_frame_insn", "end_frame_insn", "next".
11382 (mep_reorg): Likewise for local "insns".
11383 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11385 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11386 (mep_mul_hilo_bypass_p): Likewise.
11387 (mep_ipipe_ldc_p): Likewise for param "insn".
11388 (mep_make_bundle): Likewise for return type, param "cop" and local
11389 "insn", splitting out the latter into a new local "seq" for when it
11390 is a SEQUENCE rather than an insn.
11391 (core_insn_p): Likewise for param "insn".
11392 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11393 "last", "first", "note", "prev", "core_insn".
11395 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11397 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11399 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11400 (m68k_final_prescan_insn): Likewise for first param.
11402 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11403 (m68k_set_frame_related): Likewise for param "insn".
11404 (output_btst): Likewise for param "insn".
11405 (m68k_final_prescan_insn): Likewise.
11406 (m68k_move_to_reg): Likewise for local "insn".
11407 (m68k_call_tls_get_addr): Likewise for local "insns".
11408 (m68k_call_m68k_read_tp): Likewise.
11409 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11410 (m68k_output_mi_thunk): Likewise for local "insn".
11412 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11414 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11415 first param from rtx to rtx_insn *.
11416 (iq2000_adjust_insn_length): Likewise.
11417 (iq2000_output_conditional_branch): Likewise.
11418 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11419 "insn" and local "nop_insn".
11420 (iq2000_annotate_frame_insn): Likewise for param "insn".
11421 (iq2000_expand_prologue): Likewise for both locals "insn".
11422 (iq2000_adjust_insn_length): Likewise for param "insn".
11423 (iq2000_output_conditional_branch): Likewise.
11425 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11427 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11428 "insns" from rtx to rtx_insn *.
11429 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11430 (struct spill_fill_data): Likewise for field "init_after" and for
11431 elements of array field "prev_insn".
11432 (spill_restore_mem): Likewise for locals "insn", "first".
11433 (do_spill): Likewise for local "insn".
11434 (do_restore): Likewise.
11435 (ia64_expand_prologue): Likewise.
11436 (ia64_expand_epilogue): Likewise.
11437 (emit_insn_group_barriers): Likewise for locals "insn",
11439 (emit_all_insn_group_barriers): Likewise for locals "insn",
11441 (dfa_stop_insn): Likewise for this global.
11442 (dfa_pre_cycle_insn): Likewise.
11443 (ia64_nop): Likewise.
11444 (final_emit_insn_group_barriers): Likewise for locals "insn",
11446 (emit_predicate_relation_info): Likewise for locals "head", "n",
11448 (ia64_reorg): Likewise for local "insn".
11449 (ia64_output_mi_thunk): Likewise.
11450 (expand_vec_perm_interleave_2): Likewise for local "seq".
11452 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11454 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11455 param 1 "insn" from rtx to rtx_insn *.
11456 (ix86_use_lea_for_mov): Likewise.
11457 (ix86_avoid_lea_for_addr): Likewise.
11458 (ix86_split_lea_for_addr): Likewise.
11459 (ix86_lea_for_add_ok): Likewise.
11460 (ix86_output_call_insn): Likewise.
11462 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11463 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11464 (ix86_output_function_epilogue): Likewise for locals "insn",
11465 "deleted_debug_label".
11466 (legitimize_tls_address): Likewise for local "insn".
11467 (get_some_local_dynamic_name): Likewise.
11468 (increase_distance): Likewise for params "prev", "next".
11469 (distance_non_agu_define_in_bb): Likewise for params "insn",
11470 "start" and locals "prev", "next".
11471 (distance_non_agu_define): Likewise for param "insn".
11472 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11473 locals "next", "prev".
11474 (distance_agu_use): Likewise for param "insn".
11475 (ix86_lea_outperforms): Likewise.
11476 (ix86_ok_to_clobber_flags): Likewise.
11477 (ix86_avoid_lea_for_add): Likewise.
11478 (ix86_use_lea_for_mov): Likewise.
11479 (ix86_avoid_lea_for_addr): Likewise.
11480 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11481 (ix86_split_lea_for_addr): Likewise for param "insn".
11482 (ix86_lea_for_add_ok): Likewise for param "insn".
11483 (ix86_expand_carry_flag_compare): Likewise for local
11485 (ix86_expand_int_movcc): Likewise.
11486 (ix86_output_call_insn): Likewise for param "insn".
11487 (ix86_output_call_insn): Likewise for local "i".
11488 (x86_output_mi_thunk): Introduce local "insn", using it in place
11489 of "tmp" when dealing with insns.
11490 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11492 (ix86_pad_returns): Likewise for locals "ret", "prev".
11493 (ix86_count_insn_bb): Likewise for local "insn".
11494 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11495 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11496 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11497 (expand_vec_perm_interleave2): Likewise for local "seq".
11498 (expand_vec_perm_vperm2f128_vblend): Likewise.
11499 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11500 call to for_each_rtx with for_each_rtx_in_insn.
11502 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11504 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11505 "label" from rtx to rtx_code_label *.
11506 (ix86_expand_prologue): Likewise.
11507 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11509 (ix86_split_idivmod): Likewise for locals "end_label" and
11511 (ix86_expand_branch): Likewise for local "label2".
11512 (ix86_expand_aligntest): Likewise for return type and local "label".
11513 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11515 (expand_movmem_epilogue): Likewise for the various locals named
11517 (expand_setmem_epilogue): Likewise.
11518 (expand_small_movmem_or_setmem): Likewise for local "label".
11519 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11520 Strengthen param "done_label" from rtx * to rtx_code_label **.
11521 Strengthen locals "loop_label" and "label" from rtx to
11523 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11524 Likewise for locals "loop_label", "label".
11525 (ix86_expand_set_or_movmem): Likewise for locals "label",
11526 "jump_around_label", "hot_label".
11527 (ix86_expand_strlensi_unroll_1): Likewise for locals
11528 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11530 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11531 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11532 "label2", "jump_label".
11533 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11535 (ix86_expand_lfloorceil): Likewise for local "label".
11536 (ix86_expand_rint): Likewise.
11537 (ix86_expand_floorceildf_32): Likewise.
11538 (ix86_expand_floorceil): Likewise.
11539 (ix86_expand_rounddf_32): Likewise.
11540 (ix86_expand_trunc): Likewise.
11541 (ix86_expand_truncdf_32): Likewise.
11542 (ix86_expand_round): Likewise.
11544 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11546 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11547 first param from rtx to rtx_insn *.
11548 (h8300_insn_length_from_table): Likewise.
11549 * config/h8300/h8300.c (F): Likewise for return type and param
11551 (Fpa): Add a checked cast to rtx_insn *.
11552 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11554 (final_prescan_insn): Likewise for param "insn".
11555 (h8300_binary_length): Likewise.
11556 (h8300_insn_length_from_table): Likewise.
11558 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11560 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11561 Strengthen first param "insn" from rtx to rtx_insn *.
11563 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11565 (frame_insn): Likewise for return type. Introduce local "insn"
11566 for use in place of local "x" for use as an rtx_insn *.
11567 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11568 (epiphany_expand_prologue): Likewise for local "insn".
11569 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11570 * config/epiphany/resolve-sw-modes.c
11571 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11576 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11577 param from rtx to rtx_insn *.
11578 (c6x_final_prescan_insn): Likewise for first param.
11580 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11581 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11582 (c6x_expand_compare): Strengthen local "insns" from rtx to
11584 (c6x_get_unit_specifier): Likewise for param "insn".
11585 (c6x_print_unit_specifier_field): Likewise.
11586 (c6x_final_prescan_insn): Likewise.
11587 (emit_add_sp_const): Likewise for local "insn".
11588 (c6x_expand_prologue): Likewise.
11590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11592 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11593 param 1 from rtx to rtx_insn *.
11594 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11595 the various locals named "insn".
11596 (expand_epilogue_reg_restore): Likewise.
11597 (frame_related_constant_load): Likewise.
11598 (add_to_reg): Likewise.
11599 (emit_link_insn): Likewise.
11600 (do_link): Likewise.
11601 (expand_interrupt_handler_prologue): Likewise.
11602 (branch_dest): Likewise for param "branch".
11603 (asm_conditional_branch): Likewise for param "insn".
11604 (gen_one_bundle): Likewise for elements of param "slot" and local
11606 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11607 elements of local "slot".
11608 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11609 "queue", "next_queue", "prev".
11610 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11611 (add_sched_insns_for_speculation): Likewise for local "insn".
11613 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11615 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11616 from rtx to rtx_insn *.
11617 (output_movhi): Likewise.
11618 (output_movsisf): Likewise.
11619 (avr_out_tstsi): Likewise.
11620 (avr_out_tsthi): Likewise.
11621 (avr_out_tstpsi): Likewise.
11622 (avr_out_compare): Likewise.
11623 (avr_out_compare64): Likewise.
11624 (avr_out_movpsi): Likewise.
11625 (ashlqi3_out): Likewise.
11626 (ashlhi3_out): Likewise.
11627 (ashlsi3_out): Likewise.
11628 (ashrqi3_out): Likewise.
11629 (ashrhi3_out): Likewise.
11630 (ashrsi3_out): Likewise.
11631 (lshrqi3_out): Likewise.
11632 (lshrhi3_out): Likewise.
11633 (lshrsi3_out): Likewise.
11634 (avr_out_ashlpsi3): Likewise.
11635 (avr_out_ashrpsi3): Likewise.
11636 (avr_out_lshrpsi3): Likewise.
11637 (avr_out_fract): Likewise.
11638 (avr_out_sbxx_branch): Likewise.
11639 (avr_out_round): Likewise.
11640 (avr_out_xload): Likewise.
11641 (avr_out_movmem): Likewise.
11642 (adjust_insn_length): Likewise.
11643 (avr_out_lpm): Likewise.
11644 (reg_unused_after): Likewise.
11645 (_reg_unused_after): Likewise.
11646 (avr_jump_mode): Likewise for second param.
11647 (jump_over_one_insn): Likewise for first param.
11648 (avr_final_prescan_insn): Likewise.
11649 (out_shift_with_cnt): Likewise for second param.
11651 * config/avr/avr.c (get_sequence_length): Likewise for param
11652 "insns" and local "insn".
11653 (emit_push_byte): Likewise for local "insn".
11654 (emit_push_sfr): Likewise.
11655 (avr_prologue_setup_frame): Likewise for locals "insn",
11656 "fp_plus_insns", "sp_plus_insns".
11657 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11659 (avr_jump_mode): Likewise for param "insn".
11660 (avr_final_prescan_insn): Likewise.
11661 (avr_find_unused_d_reg): Likewise.
11662 (avr_out_lpm_no_lpmx): Likewise.
11663 (avr_out_lpm): Likewise.
11664 (avr_out_xload): Likewise.
11665 (output_movqi): Likewise.
11666 (output_movhi): Likewise.
11667 (out_movqi_r_mr): Likewise.
11668 (out_movhi_r_mr): Likewise.
11669 (out_movsi_r_mr): Likewise.
11670 (out_movsi_mr_r): Likewise.
11671 (output_movsisf): Likewise.
11672 (avr_out_load_psi): Likewise.
11673 (avr_out_store_psi): Likewise.
11674 (avr_out_movpsi): Likewise.
11675 (out_movqi_mr_r): Likewise.
11676 (avr_out_movhi_mr_r_xmega): Likewise.
11677 (out_movhi_mr_r): Likewise.
11678 (compare_condition): Likewise for param "insn" and local "next".
11679 (compare_sign_p): Likewise for param "insn".
11680 (compare_diff_p): Likewise.
11681 (compare_eq_p): Likewise.
11682 (avr_out_compare): Likewise.
11683 (avr_out_compare64): Likewise.
11684 (avr_out_tsthi): Likewise.
11685 (avr_out_tstpsi): Likewise.
11686 (avr_out_tstsi): Likewise.
11687 (out_shift_with_cnt): Likewise.
11688 (ashlqi3_out): Likewise.
11689 (ashlhi3_out): Likewise.
11690 (avr_out_ashlpsi3): Likewise.
11691 (ashlsi3_out): Likewise.
11692 (ashrqi3_out): Likewise.
11693 (ashrhi3_out): Likewise.
11694 (avr_out_ashrpsi3): Likewise.
11695 (ashrsi3_out): Likewise.
11696 (lshrqi3_out): Likewise.
11697 (lshrhi3_out): Likewise.
11698 (avr_out_lshrpsi3): Likewise.
11699 (lshrsi3_out): Likewise.
11700 (avr_out_fract): Likewise.
11701 (avr_out_round): Likewise.
11702 (avr_adjust_insn_length): Likewise.
11703 (reg_unused_after): Likewise.
11704 (_reg_unused_after): Likewise.
11705 (avr_compare_pattern): Likewise.
11706 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11707 and locals "branch1", "branch2", "insn2", "jump".
11708 (avr_reorg): Likewise for local "insn".
11709 (avr_2word_insn_p): Likewise for param "insn".
11710 (jump_over_one_insn_p): Likewise.
11711 (avr_out_sbxx_branch): Likewise.
11712 (avr_out_movmem): Likewise.
11714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11716 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11717 param from rtx to rtx_insn *.
11718 (thumb1_final_prescan_insn): Likewise.
11719 (thumb2_final_prescan_insn): Likewise.
11721 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11723 (struct minipool_node): Likewise for field "insn".
11724 (dump_minipool): Likewise for param "scan".
11725 (create_fix_barrier): Likewise for local "from". Strengthen local
11726 "label" from rtx to rtx_code_label *.
11727 (push_minipool_barrier): Strengthen param "insn" from rtx to
11729 (push_minipool_fix): Likewise.
11730 (note_invalid_constants): Likewise.
11731 (thumb2_reorg): Likewise for local "insn".
11732 (arm_reorg): Likewise.
11733 (thumb2_final_prescan_insn): Likewise for param
11734 "insn" and local "first_insn".
11735 (arm_final_prescan_insn): Likewise for param "insn" and locals
11736 "start_insn", "this_insn".
11737 (arm_debugger_arg_offset): Likewise for param "insn".
11738 (thumb1_emit_multi_reg_push): Likewise for return type and local
11740 (thumb1_final_prescan_insn): Likewise for param "insn".
11741 (thumb_far_jump_used_p): Likewise for local "insn".
11742 (thumb1_expand_prologue): Likewise.
11743 (arm_expand_epilogue_apcs_frame): Likewise.
11744 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11745 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11746 from rtx to rtx_code_label *.
11747 (arm_split_atomic_op): Likewise for local "label".
11748 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11752 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11753 first param from rtx to rtx_insn *.
11754 (arc_verify_short): Likewise.
11755 (arc_short_long): Likewise.
11756 (arc_need_delay): Likewise.
11758 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11760 (arc_ccfsm_advance): Likewise for param "insn" and locals
11761 "start_insn", "this_insn".
11762 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11763 (arc_ccfsm_post_advance): Likewise for param "insn".
11764 (arc_next_active_insn): Likewise for return type and param "insn".
11765 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11766 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11767 (output_short_suffix): Likewise for local "insn".
11768 (arc_final_prescan_insn): Likewise for param "insn". Remove
11769 now-redundant checked cast.
11770 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11771 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11772 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11773 for use where lc_set became an insn.
11774 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11776 (arc_get_insn_variants): Likewise for local "prev".
11777 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11779 (arc_predicate_delay_insns): Likewise for local "insn".
11780 (arc_pad_return): Likewise for local "prev". For now, add a
11781 checked cast when extracting the insn from "final_sequence".
11782 (arc_short_long): Likewise for param "insn".
11783 (arc_need_delay): Likewise for param "insn" and local "next".
11784 (arc_label_align): Likewise for locals "prev", "next".
11786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11788 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11789 "insn" from rtx to rtx_insn *.
11790 (alpha_gp_save_rtx): Likewise for local "seq".
11791 (alpha_instantiate_decls): Likewise for local "top".
11792 (get_some_local_dynamic_name): Likewise for local "insn".
11793 (alpha_does_function_need_gp): Likewise.
11794 (set_frame_related_p): Likewise for return type and for locals
11796 (emit_frame_store_1): Likewise for local "insn".
11797 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11798 (alpha_end_function): Likewise for local "insn".
11799 (alpha_output_mi_thunk_osf): Likewise.
11800 (alphaev4_insn_pipe): Likewise for param "insn".
11801 (alphaev5_insn_pipe): Likewise.
11802 (alphaev4_next_group): Likewise for return type and param 1
11804 (alphaev5_next_group): Likewise.
11805 (alpha_align_insns_1): Likewise for return type and param 1 of
11806 callback param "next_group", and for locals "i", "next", "prev",
11807 "where", "where2", "insn".
11809 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11811 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11812 rather than modifying the stmt.
11814 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11816 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11817 cgraph_state conversion.
11819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11821 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11822 Strengthen local "insns" from rtx to rtx_insn *.
11823 (aarch64_set_frame_expr): Likewise for local "insn".
11824 (aarch64_save_or_restore_fprs): Likewise.
11825 (aarch64_save_or_restore_callee_save_registers): Likewise.
11826 (aarch64_expand_prologue): Likewise.
11827 (aarch64_expand_epilogue): Likewise.
11828 (aarch64_output_mi_thunk): Likewise.
11829 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11830 "label2" from rtx to rtx_code_label *.
11831 (aarch64_split_atomic_op): Likewise for local "label".
11833 2014-08-25 Martin Liska <mliska@suse.cz>
11835 * cgraph.h (symtab_node):
11836 (bool needed_p (void)): created from decide_is_symbol_needed
11837 (bool referred_to_p (void)): created from referred_to_p
11838 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11839 * cgraph.h (cgraph_node):
11840 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11841 (void expand (void)): created from expand_function
11842 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11843 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11844 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11845 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11846 * cgraph.h (varpool_node):
11847 (static void add (tree decl): created from varpool_add_new_variable
11848 * cgraph.h (cgraph_edge):
11849 void remove (void);
11850 (void remove_caller (void)): created from cgraph_edge_remove_caller
11851 (void remove_callee (void)): created from cgraph_edge_remove_callee
11852 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11853 created from cgraph_set_call_stmt
11854 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11855 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11856 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11857 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11858 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11859 created from cgraph_speculative_call_info
11860 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11861 int freq_scale, bool update_original)): created from cgraph_clone_edge
11862 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11863 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11864 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11865 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11866 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11867 (static void rebuild_references (void)): created from cgraph_rebuild_references
11868 * cgraph.h (symbol_table):
11869 (create_reference): renamed from add_reference
11870 (maybe_create_reference): renamed from maybe_add_reference
11871 (void register_symbol (symtab_node *node)): new function
11872 (void clear_asm_symbols (void)): new function
11873 (void unregister (symtab_node *node)): new function
11874 (void release_symbol (cgraph_node *node, int uid)): new function
11875 (cgraph_node * allocate_cgraph_symbol (void)): new function
11876 (void initialize (void)): created from cgraph_init
11877 (symtab_node *first_symbol (void)):new function
11878 (asm_node *first_asm_symbol (void)):new function
11879 (symtab_node *first_defined_symbol (void)):new function
11880 (varpool_node *first_variable (void)):new function
11881 (varpool_node *next_variable (varpool_node *node)):new function
11882 (varpool_node *first_static_initializer (void)):new function
11883 (varpool_node *next_static_initializer (varpool_node *node)):new function
11884 (varpool_node *first_defined_variable (void)):new function
11885 (varpool_node *next_defined_variable (varpool_node *node)):new function
11886 (cgraph_node *first_defined_function (void)):new function
11887 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11888 (cgraph_node *first_function (void)):new function
11889 (cgraph_node *next_function (cgraph_node *node)):new function
11890 (cgraph_node *first_function_with_gimple_body (void)):new function
11891 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11892 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11893 created from symtab_remove_unreachable_nodes
11894 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11895 (void process_new_functions (void)): created from cgraph_process_new_functions
11896 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11897 (bool output_variables (void)): created from varpool_node::output_variables
11898 (void output_asm_statements (void)): created from output_asm_statements
11899 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11900 (void compile (void)): created from compile
11901 (void output_weakrefs (void)): created from output_weakrefs
11902 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11903 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11904 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11905 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11906 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11907 created from cgraph_next_function_with_gimple_body
11908 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11909 created from cgraph_remove_edge_removal_hook
11910 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11911 created from cgraph_add_node_removal_hook
11912 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11913 created from cgraph_remove_node_removal_hook
11914 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11915 created from varpool_add_node_removal_hook
11916 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11917 created from varpool_remove_node_removal_hook
11918 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11919 created from cgraph_add_function_insertion_hook
11920 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11921 created from cgraph_remove_function_insertion_hook
11922 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11923 created from varpool_add_variable_insertion_hook
11924 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11925 created from varpool_remove_variable_insertion_hook
11926 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11927 created from cgraph_add_edge_duplication_hook
11928 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11929 created from cgraph_remove_edge_duplication_hook
11930 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11931 created from cgraph_add_node_duplication_hook
11932 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11933 created from cgraph_remove_node_duplication_hook
11934 (void call_edge_removal_hooks (cgraph_edge *e)):
11935 created from cgraph_call_edge_removal_hooks
11936 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11937 created from call_function_insertion_hooks
11938 (void call_cgraph_removal_hooks (cgraph_node *node)):
11939 created from cgraph_call_node_removal_hooks
11940 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11941 created from cgraph_node::call_duplication_hooks
11942 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11943 created from cgraph_call_edge_duplication_hooks
11944 (void call_varpool_removal_hooks (varpool_node *node)):
11945 created from varpool_call_node_removal_hooks
11946 (void call_varpool_insertion_hooks (varpool_node *node)):
11947 created from varpool_call_variable_insertion_hooks
11948 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11949 created from insert_to_assembler_name_hash
11950 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11951 created from unlink_from_assembler_name_hash
11952 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11953 created from symtab_prevail_in_asm_name_hash
11954 (void symtab_initialize_asm_name_hash (void)):
11955 created from symtab_initialize_asm_name_hash
11956 (void change_decl_assembler_name (tree decl, tree name)):
11957 created from change_decl_assembler_name
11958 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11959 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11960 created from decl_assembler_name_hash
11961 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11962 created from decl_assembler_name_equal
11963 (static hashval_t hash_node_by_assembler_name (const void *p)):
11964 created from hash_node_by_assembler_name
11965 (static int eq_assembler_name (const void *p1, const void *p2)):
11966 created from eq_assembler_name
11968 2014-08-25 Marek Polacek <polacek@redhat.com>
11970 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11972 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11974 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11975 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11976 SWI1248_AVX512BW mode iterator.
11978 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11981 * config/sh/predicates.md (general_extend_operand): Disable
11982 TRUNCATE before reload completes.
11984 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11986 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11988 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11991 * config/sh/sh.opt (musermode): Allow negative form.
11992 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11993 targets that don't support it.
11994 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11995 Document -mno-usermode option.
11997 2014-08-24 Kito Cheng <kito@0xlab.org>
11999 * system.h (CALLER_SAVE_PROFITABLE): Poison.
12000 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12001 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12002 * doc/tm.texi: Regenerate.
12004 2014-08-24 Kito Cheng <kito@0xlab.org>
12006 * ira.c: Fix typo in comment.
12008 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
12010 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12011 Deprecate c++1y. Change language to reflect greater confidence in C++14.
12013 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12016 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12017 last_address when the current function is a thunk.
12018 (pa_asm_output_mi_thunk): When we don't have named sections or they
12019 are not being used, check that thunk can reach the stub table with a
12022 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12024 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12026 (pass_web::execute): Likewise for local "insn".
12028 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12030 * var-tracking.c (struct micro_operation_def): Strengthen field
12031 "insn" from rtx to rtx_insn *.
12032 (struct emit_note_data_def): Likewise.
12033 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12034 (vt_stack_adjustments): Likewise for local "insn".
12035 (adjust_insn): Likewise for param "insn".
12036 (val_store): Likewise.
12037 (val_resolve): Likewise.
12038 (struct count_use_info): Likewise for field "insn".
12039 (log_op_type): Likewise for param "insn".
12040 (reverse_op): Likewise.
12041 (prepare_call_arguments): Likewise.
12042 (add_with_sets): The initial param takes an insn, but we can't
12043 yet strengthen it from rtx to rtx_insn * since it's used as a
12044 cselib_record_sets_hook callback. For now rename initial param
12045 from "insn" to "uncast_insn", and introduce a local "insn" of
12046 the stronger rtx_insn * type, with a checked cast.
12047 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12049 (emit_note_insn_var_location): Likewise.
12050 (emit_notes_for_changes): Likewise.
12051 (emit_notes_for_differences): Likewise.
12052 (next_non_note_insn_var_location): Likewise for return type and
12054 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12055 (vt_initialize): Likewise for local "insn".
12056 (delete_debug_insns): Likewise for locals "insn" and "next".
12058 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12060 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12062 (mark_constant_pool): Likewise for local "insn".
12064 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12066 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12068 (dead_debug_promote_uses): Likewise.
12069 (dead_debug_insert_temp): Likewise.
12071 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12073 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12074 from const_rtx to const rtx_insn *.
12075 (store_killed_after): Likewise. Strengthen locals "last", "act"
12076 from rtx to rtx_insn *.
12077 (store_killed_before): Strengthen param "insn" from const_rtx to
12078 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12079 (find_moveable_store): Strengthen param "insn" from rtx to
12081 (compute_store_table): Likewise for local "insn".
12082 (insert_insn_start_basic_block): Likewise for param "insn" and
12083 locals "prev", "before", "insn".
12084 (insert_store): For now, add a checked cast to rtx_insn * on the
12085 result of gen_move_insn.
12086 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12088 (replace_store_insn): Likewise. For now, add a checked cast to
12089 rtx_insn * on the result of gen_move_insn.
12091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12093 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12095 (expand_sjlj_dispatch_table): Likewise.
12097 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12099 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12100 "insn" from rtx to rtx_insn *.
12102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12104 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12105 "insn" from rtx to rtx_insn *.
12106 (dup_block_and_redirect): Likewise for param 3 "before".
12108 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12109 from rtx to rtx_insn *.
12110 (move_insn_for_shrink_wrap): Likewise.
12111 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12112 (dup_block_and_redirect): Likewise for param "before" and local
12114 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12116 (convert_to_simple_return): Likewise for local "start".
12118 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12119 Strengthen local "insn" from rtx to rtx_insn *, for use when
12120 invoking requires_stack_frame_p.
12122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12124 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12126 (speculate_expr): Likewise for locals "orig_insn_rtx",
12128 (eq_transformed_insns): Likewise for locals "i1", "i2".
12129 (check_for_new_jump): Likewise for return type and local "end".
12130 (find_new_jump): Likewise for return type and local "jump".
12131 (sel_split_edge): Likewise for local "jump".
12132 (sel_create_recovery_block): Likewise.
12133 (sel_redirect_edge_and_branch_force): Likewise.
12134 (sel_redirect_edge_and_branch): Likewise.
12136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12138 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12139 "new_insn" from rtx to rtx_insn *.
12140 (create_insn_rtx_with_rhs): Likewise for return type and for local
12142 (create_insn_rtx_with_lhs): Likewise.
12143 (create_speculation_check): Likewise for local "insn_rtx".
12144 (implicit_clobber_conflict_p): Likewise for local "insn".
12145 (get_expr_cost): Likewise.
12146 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12147 (move_cond_jump): Likewise for locals "next", "prev", "link",
12148 "head", "from", "to".
12150 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12152 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12153 "next" from rtx to rtx_insn *.
12154 (find_conditional_protection): Likewise for local "next".
12155 (is_conditionally_protected): Likewise for local "insn1".
12156 (is_pfree): Likewise for locals "insn1", "insn2".
12158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12160 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12161 from rtx to rtx_insn *.
12163 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12164 locals "insn1", "insn2" from rtx to rtx_insn *.
12165 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12166 locals "insn", "prev", "last_jump", "next_tail".
12167 (schedule_ebb): Likewise for params "head", "tail".
12168 (schedule_ebbs): Likewise for locals "tail", "head".
12170 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12171 to rtx_insn on "last_insn" in one of the invocations of
12174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12176 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12177 "elem", "insn" from rtx to rtx_insn *.
12178 (change_spec_dep_to_hard): Likewise.
12179 (get_back_and_forw_lists): Likewise for local "con".
12180 (sd_add_dep): Likewise for locals "elem", "insn".
12181 (sd_resolve_dep): Likewise for locals "pro", "con".
12182 (sd_unresolve_dep): Likewise.
12183 (sd_delete_dep): Likewise.
12184 (chain_to_prev_insn): Likewise for local "pro".
12185 (find_inc): Likewise for locals "pro", "con".
12187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12189 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12191 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12193 (modified_between_p): Strengthen local "insn" from rtx to
12195 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12196 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12199 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12201 * resource.c (next_insn_no_annul): Strengthen local "next" from
12203 (mark_referenced_resources): Likewise for local "insn".
12205 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12207 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12209 (find_reloads): Likewise for param 1.
12210 (subst_reloads): Likewise for sole param.
12211 (find_equiv_reg): Likwise for param 2.
12212 (regno_clobbered_p): Likwise for param 2.
12213 (reload): Likewise for param 1.
12215 * caller-save.c (save_call_clobbered_regs): Strengthen local
12216 "insn" from rtx to rtx_insn *.
12217 (insert_one_insn): Likewise for local "insn".
12219 * reload.c (this_insn): Likewise for this global.
12220 (find_reloads): Likewise for param "insn".
12221 (find_reloads_toplev): Likewise.
12222 (find_reloads_address): Likewise.
12223 (subst_reg_equivs): Likewise.
12224 (update_auto_inc_notes): Likewise.
12225 (find_reloads_address_1): Likewise.
12226 (find_reloads_subreg_address): Likewise.
12227 (subst_reloads): Likewise.
12228 (find_equiv_reg): Likewise, also for local "p".
12229 (regno_clobbered_p): Likewise for param "insn".
12231 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12233 (spill_reg_store): Likewise for the elements of this array.
12234 (remove_init_insns): Likewise for local "equiv_insn".
12235 (will_delete_init_insn_p): Likewise for param "insn".
12236 (reload): Likewise for param ""first" and local "insn".
12237 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12239 (calculate_elim_costs_all_insns): Likewise.
12240 (delete_caller_save_insns): Likewise.
12241 (spill_failure): Likewise for param "insn".
12242 (delete_dead_insn): Likewise.
12243 (set_label_offsets): Likewise.
12244 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12246 (elimination_costs_in_insn): Likewise for param "insn".
12247 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12248 when referring to an insn.
12249 (set_initial_label_offsets): Likewise.
12250 (set_offsets_for_label): Strengthen param "insn" from rtx to
12252 (init_eliminable_invariants): Likewise for param "first" and local
12254 (fixup_eh_region_note): Likewise for param "insn".
12255 (reload_as_needed): Likewise for locals "prev", "insn",
12256 "old_next", "old_prev", "next".
12257 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12259 (reload_inheritance_insn): Strengthen elements of this array from
12261 (failed_reload): Likewise for param "insn".
12262 (choose_reload_regs): Likewise for local "insn". Replace use of
12263 NULL_RTX with NULL when referring to an insn.
12264 (input_reload_insns): Strengthen elements of this array from rtx
12266 (other_input_address_reload_insns): Likewise for this global.
12267 (other_input_reload_insns): Likewise for this global.
12268 (input_address_reload_insns): Likwise for the elements of this
12270 (inpaddr_address_reload_insns): Likwise for the elements of this
12272 (output_reload_insns): Likewise for the elements of this array.
12273 (output_address_reload_insns): Likewise for the elements of this
12275 (outaddr_address_reload_insns): Likewise for the elements of this
12277 (operand_reload_insns): Likewise for this global.
12278 (other_operand_reload_insns): Likewise for this global.
12279 (other_output_reload_insns): Likewise for the elements of this
12281 (new_spill_reg_store): Likewise for the elements of this
12283 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12284 Strengthen local "where" from rtx * to rtx_insn **.
12285 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12286 from rtx to rtx_insn *.
12287 (do_input_reload): Likewise for local "insn".
12288 (do_output_reload): Likewise for local "insn".
12289 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12290 (emit_insn_if_valid_for_reload): Likewise for return type and local
12291 "last". Add checked cast to rtx_insn when returning "insn" since
12292 this has been through emit_insn.
12293 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12294 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12295 returning "insn" since it's been through
12296 emit_insn_if_valid_for_reload at this point.
12297 (delete_output_reload): Strengthen param "insn" and locals
12298 "output_reload_insn", "i2" from rtx to rtx_insn *.
12299 (delete_address_reloads): Likewise for params "dead_insn",
12300 "current_insn" and locals "prev", "next".
12301 (delete_address_reloads_1): Likewise for params "dead_insn",
12302 "current_insn" and locals "prev", "i2".
12303 (inc_for_reload): Likewise for locals "last", "add_insn".
12304 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12307 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12308 param of this duplicate of the prototype from reload.h
12310 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12312 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12314 (regstat_bb_compute_calls_crossed): Likewise.
12316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12318 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12320 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12322 (regrename_analyze): Strengthen local "insn" from rtx to
12324 (scan_rtx_reg): Likewise for param "insn".
12325 (scan_rtx_address): Likewise.
12326 (scan_rtx): Likewise.
12327 (restore_operands): Likewise.
12328 (record_out_operands): Likewise.
12329 (build_def_use): Likewise for local "insn". Replace use of
12330 NULL_RTX with NULL when dealing with an insn.
12332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12334 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12335 * reginfo.c (reg_scan): Likewise, also for local "insn".
12336 (reg_scan_mark_refs): Likewise for param "insn".
12337 (init_subregs_of_mode): Likewise for local "insn".
12339 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12341 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12342 "insn" from rtx to rtx_insn *.
12343 (replace_oldest_value_reg): Likewise for param "insn".
12344 (replace_oldest_value_addr): Likewise.
12345 (replace_oldest_value_mem): Likewise.
12346 (apply_debug_insn_changes): Likewise for local "last_insn".
12347 (copyprop_hardreg_forward_1): Likewise for local "insn".
12349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12351 * reg-stack.c (next_flags_user): Strengthen return type and param
12352 "insn" from rtx to rtx_insn *.
12353 (straighten_stack): Likewise for param "insn".
12354 (check_asm_stack_operands): Likewise.
12355 (remove_regno_note): Likewise.
12356 (emit_pop_insn): Likewise for return type, param "insn", local
12358 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12359 "limit" from rtx to rtx_insn *.
12360 (swap_to_top): Likewise for param "insn".
12361 (move_for_stack_reg): Likewise.
12362 (move_nan_for_stack_reg): Likewise.
12363 (swap_rtx_condition): Likewise.
12364 (compare_for_stack_reg): Likewise.
12365 (subst_all_stack_regs_in_debug_insn): Likewise.
12366 (subst_stack_regs_pat): Likewise, and local "insn2".
12367 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12369 (subst_stack_regs): Likewise.
12370 (change_stack): Likewise.
12371 (convert_regs_1): Likewise for locals "insn", "next".
12373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12375 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12377 (combine_set_extension): Likewise for param "curr_insn".
12378 (transform_ifelse): Likewise for param "def_insn".
12379 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12380 from vec<rtx> * to vec<rtx_insn *> *.
12381 (is_cond_copy_insn): Likewise for param "insn".
12382 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12383 to vec<rtx_insn *>.
12384 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12385 local "def_insn" from rtx to rtx_insn *.
12386 (get_sub_rtx): Likewise for param "def_insn".
12387 (merge_def_and_ext): Likewise.
12388 (combine_reaching_defs): Likewise.
12389 (add_removable_extension): Likewise for param "insn".
12390 (find_removable_extensions): Likewise for local "insn".
12391 (find_and_remove_re): Likewise for locals "curr_insn" and
12392 "def_insn". Strengthen locals "reinsn_del_list" and
12393 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12397 * recog.c (split_insn): Strengthen param "insn" and locals
12398 "first", "last" from rtx to rtx_insn *.
12399 (split_all_insns): Likewise for locals "insn", "next".
12400 (split_all_insns_noflow): Likewise.
12402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12404 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12406 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12407 (debug_rtx_find): Likewise for param 1 "x".
12409 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12410 const_rtx to const rtx_insn *. Likewise for local "insn".
12411 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12412 (debug_rtx_find): Likewise for param 1 "x".
12413 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12414 from const_rtx to const rtx_insn * within the appropriate cases of
12415 the switch statement.
12417 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12418 Strengthen local "insns" from rtx to rtx_insn * since this is
12419 passed to a call to debug_rtx_list.
12421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12423 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12426 * function.c (stack_protect_epilogue): Add checked cast to
12427 rtx_insn for now when invoking predict_insn_def.
12429 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12431 (predict_insn_def): Likewise.
12432 (rtl_predict_edge): Likewise for local "last_insn".
12433 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12435 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12437 (bb_estimate_probability_locally): Likewise for local "last_insn".
12438 (expensive_function_p): Likewise for local "insn".
12440 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12441 local "jmp", since this is used when invoking predict_insn_def.
12443 2014-08-22 Marek Polacek <polacek@redhat.com>
12446 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12448 2014-08-22 Marek Polacek <polacek@redhat.com>
12451 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12452 a comparison in parens.
12453 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12458 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12461 * cprop.c (fis_get_condition): Likewise.
12463 * postreload.c (reload_cse_regs): Likewise for param "first".
12464 (reload_cse_simplify): Likewise for param "insn".
12465 (reload_cse_regs_1): Likewise for local "insn".
12466 (reload_cse_simplify_set): Likewise for param "insn".
12467 (reload_cse_simplify_operands): Likewise.
12468 (struct reg_use): Likewise for field "insn".
12469 (reload_combine_purge_insn_uses): Likewise for param "insn".
12470 (fixup_debug_insns): Likewise for params "from", "to" and local
12472 (try_replace_in_use): Likewise for local "use_insn".
12473 (reload_combine_recognize_const_pattern): Likewise for param
12474 "insn" and locals "add_moved_after_insn", "use_insn".
12475 (reload_combine_recognize_pattern): Likewise for param "insn" and
12477 (reload_combine): Likewise for locals "insn", "prev".
12478 (reload_combine_note_use): Likewise for param "insn".
12479 (move2add_use_add2_insn): Likewise.
12480 (move2add_use_add3_insn): Likewise.
12481 (reload_cse_move2add): Likewise, also for local "next".
12482 (move2add_note_store): Likewise for local "insn".
12484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12486 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12488 (struct unoccr): Likewise.
12489 (struct modifies_mem): Likewise.
12490 (alloc_mem): Likewise for local "insn".
12491 (insert_expr_in_table): Likewise for param "insn".
12492 (dump_expr_hash_table_entry): Likewise for local "insn".
12493 (oprs_unchanged_p): Likewise for param "insn".
12494 (load_killed_in_block_p): Likewise for local "setter".
12495 (record_last_reg_set_info): Likewise for param "insn".
12496 (record_last_reg_set_info_regno): Likewise.
12497 (record_last_mem_set_info): Likewise.
12498 (record_last_set_info): Likewise for local "last_set_insn".
12499 (record_opr_changes): Likewise for param "insn".
12500 (hash_scan_set): Likewise.
12501 (compute_hash_table): Likewise for local "insn".
12502 (get_avail_load_store_reg): Likewise for param "insn".
12503 (eliminate_partially_redundant_load): Likewise, also for locals
12504 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12506 (eliminate_partially_redundant_loads): Likewise for local "insn".
12508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12510 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12512 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12513 (expand_twoval_unop): Likewise for locals entry_last", "last".
12514 (expand_twoval_binop): Likewise.
12515 (expand_twoval_binop_libfunc): Likewise for local "insns".
12516 (widen_leading): Likewise for local "last".
12517 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12518 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12519 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12520 (expand_parity): Likewise for locals "last" and "seq".
12521 (expand_ffs): Likewise for local "seq". Strengthen local
12522 "nonzero_label" from rtx to rtx_code_label *.
12523 (expand_absneg_bit): Strengthen local "insns" from rtx to
12525 (expand_unop_direct): Likewise for local "last".
12526 (expand_unop): Likewise for locals "last", "insns".
12527 (expand_abs_nojump): Likewise for local "last".
12528 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12529 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12531 (expand_copysign_absneg): Strengthen local "label" from rtx to
12533 (expand_copysign_bit): Strengthen local "insns" from rtx to
12535 (struct no_conflict_data): Likewise for fields "first", "insn".
12536 (emit_libcall_block_1): Likewise for param "insns" and locals
12537 "next", "last", "insn".
12538 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12539 on "insns" when invoking emit_libcall_block_1. Ultimately we
12540 want to strengthen insns itself.
12541 (prepare_cmp_insn): Strengthen local "last" from rtx to
12543 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12544 (prepare_float_lib_cmp): Likewise for local "insns".
12545 (emit_conditional_move): Likewise for local "last".
12546 (emit_conditional_add): Likewise.
12547 (have_sub2_insn): Likewise for local "seq".
12548 (expand_float): Likewise for local "insns". Strengthen locals
12549 "label", "neglabel" from rtx to rtx_code_label *.
12550 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12551 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12552 (expand_fixed_convert): Likewise for local "insns" (to
12554 (expand_sfix_optab): Likewise for local "last".
12555 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12556 to rtx_code_label *.
12557 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12558 from rtx to rtx_insn *.
12559 (expand_atomic_fetch_op): Likewise for local "insn".
12560 (maybe_legitimize_operand_same_code): Likewise for local "last".
12561 (maybe_legitimize_operands): Likewise.
12563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12565 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12566 "insn" from rtx to rtx_insn *.
12567 (ps_rtl_insn): Likewise for return type.
12568 (doloop_register_get): Likewise for params "head", "tail" and
12569 locals "insn", "first_insn_not_to_check".
12570 (schedule_reg_move): Likewise for local "this_insn".
12571 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12572 of gen_move_insn for now.
12573 (reset_sched_times): Strengthen local "insn" from rtx to
12575 (permute_partial_schedule): Likewise.
12576 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12577 (dump_insn_location): Likewise for param "insn".
12578 (loop_canon_p): Likewise for local "insn".
12579 (sms_schedule): Likewise.
12580 (print_partial_schedule): Likewise.
12581 (ps_has_conflicts): Likewise.
12583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12585 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12586 "tailp" from rtx * to rtx_insn **.
12588 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12589 from rtx to rtx_insn *.
12590 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12591 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12592 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12594 * modulo-sched.c (const_iteration_count): Strengthen return type
12595 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12596 use of NULL_RTX with NULL when working with insns.
12597 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12599 (sms_schedule): Likewise.
12600 * sched-rgn.c (init_ready_list): Likewise, also for locals
12601 "src_head" and "src_next_tail".
12602 (compute_block_dependences): Likewise.
12603 (free_block_dependencies): Likewise.
12604 (debug_rgn_dependencies): Likewise.
12605 (free_rgn_deps): Likewise.
12606 (compute_priorities): Likewise.
12607 (schedule_region): Likewise.
12608 * sel-sched.c (find_ebb_boundaries): Likewise.
12610 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12611 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12613 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12615 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12616 from rtx to rtx_insn *.
12617 (new_seginfo): Likewise for param "insn".
12618 (create_pre_exit): Likewise for locals "last_insn",
12619 "before_return_copy", "return_copy".
12620 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12623 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12625 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12626 from rtx to rtx_insn *.
12627 (lra_push_insn): Likewise for 1st param.
12628 (lra_push_insn_and_update_insn_regno_info): Likewise.
12629 (lra_pop_insn): Likewise for return type.
12630 (lra_invalidate_insn_data): Likewise for 1st param.
12631 (lra_set_insn_deleted): Likewise.
12632 (lra_delete_dead_insn): Likewise.
12633 (lra_process_new_insns): Likewise for first 3 params.
12634 (lra_set_insn_recog_data): Likewise for 1st param.
12635 (lra_update_insn_recog_data): Likewise.
12636 (lra_set_used_insn_alternative): Likewise.
12637 (lra_invalidate_insn_regno_info): Likewise.
12638 (lra_update_insn_regno_info): Likewise.
12639 (lra_former_scratch_operand_p): Likewise.
12640 (lra_eliminate_regs_1): Likewise.
12641 (lra_get_insn_recog_data): Likewise.
12643 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12646 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12648 (substitute_within_insn): New.
12649 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12650 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12651 Replace call to "substitute" with call to substitute_within_insn.
12653 * lra-constraints.c (curr_insn): Strengthen from rtx to
12655 (get_equiv_with_elimination): Likewise for param "insn".
12656 (match_reload): Strengthen params "before" and "after" from rtx *
12658 (emit_spill_move): Likewise for return type. Add a checked cast
12659 to rtx_insn * on result of gen_move_insn for now.
12660 (check_and_process_move): Likewise for local "before". Replace
12661 NULL_RTX with NULL when referring to insns.
12662 (process_addr_reg): Strengthen params "before" and "after" from
12663 rtx * to rtx_insn **.
12664 (insert_move_for_subreg): Likewise.
12665 (simplify_operand_subreg): Strengthen locals "before" and "after"
12666 from rtx to rtx_insn *.
12667 (process_address_1): Strengthen params "before" and "after" from
12668 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12670 (process_address): Strengthen params "before" and "after" from
12671 rtx * to rtx_insn **.
12672 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12673 (curr_insn_transform): Strengthen locals "before" and "after"
12674 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12676 (loc_equivalence_callback): Update cast of "data", changing
12677 resulting type from rtx to rtx_insn *.
12678 (substitute_pseudo_within_insn): New.
12679 (inherit_reload_reg): Strengthen param "insn" from rtx to
12680 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12681 NULL when referring to insns. Add a checked cast to rtx_insn *
12682 when using usage_insn to invoke lra_update_insn_regno_info.
12683 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12684 likewise for locals "restore", "save". Add checked casts to
12685 rtx_insn * when using usage_insn to invoke
12686 lra_update_insn_regno_info and lra_process_new_insns. Replace
12687 NULL_RTX with NULL when referring to insns.
12688 (split_if_necessary): Strengthen param "insn" from rtx to
12690 (update_ebb_live_info): Likewise for params "head", "tail" and local
12692 (get_last_insertion_point): Likewise for return type and local "insn".
12693 (get_live_on_other_edges): Likewise for local "last".
12694 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12695 "prev_insn", "next_insn", "restore".
12696 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12697 (undo_optional_reloads): Likewise for local "insn".
12699 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12701 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12703 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12705 (spill_pseudos): Likewise for local "insn".
12706 (init_elimination): Likewise.
12707 (process_insn_for_elimination): Likewise for param "insn".
12709 * lra-lives.c (curr_insn): Likewise.;
12711 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12712 (remove_pseudos): Likewise for param "insn".
12713 (spill_pseudos): Likewise for local "insn".
12714 (lra_final_code_change): Likewise for locals "insn", "curr".
12716 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12717 (lra_set_insn_deleted): Likewise.
12718 (lra_delete_dead_insn): Likewise, and for local "prev".
12719 (new_insn_reg): Likewise for param "insn".
12720 (lra_set_insn_recog_data): Likewise.
12721 (lra_update_insn_recog_data): Likewise.
12722 (lra_set_used_insn_alternative): Likewise.
12723 (get_insn_freq): Likewise.
12724 (invalidate_insn_data_regno_info): Likewise.
12725 (lra_invalidate_insn_regno_info): Likewise.
12726 (lra_update_insn_regno_info): Likewise.
12727 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12729 (lra_push_insn_1): Strengthen param "insn" from rtx to
12731 (lra_push_insn): Likewise.
12732 (lra_push_insn_and_update_insn_regno_info): Likewise.
12733 (lra_pop_insn): Likewise for return type and local "insn".
12734 (push_insns): Likewise for params "from", "to", and local "insn".
12735 (setup_sp_offset): Likewise for params "from", "last" and locals
12737 (lra_process_new_insns): Likewise for params "insn", "before",
12738 "after" and local "last".
12739 (struct sloc): Likewise for field "insn".
12740 (lra_former_scratch_operand_p): Likewise for param "insn".
12741 (remove_scratches): Likewise for locals "insn", "last".
12742 (check_rtl): Likewise for local "insn".
12743 (add_auto_inc_notes): Likewise for param "insn".
12744 (update_inc_notes): Likewise for local "insn".
12745 (lra): Replace NULL_RTX with NULL when referring to insn.
12747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12749 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12751 (resolve_reg_notes): Likewise.
12752 (resolve_simple_move): Likewise for return type, param "insn", and
12753 locals "insns", "minsn".
12754 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12755 (resolve_use): Likewise.
12756 (resolve_debug): Likewise.
12757 (find_decomposable_shift_zext): Likewise.
12758 (resolve_shift_zext): Likewise for return type, param "insn", and
12759 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12760 (decompose_multiword_subregs): Likewise for local "insn",
12761 "orig_insn", "decomposed_shift", "end".
12763 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12765 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12766 param "insns" from rtx to rtx_insn *.
12768 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12770 (struct iv_to_split): Likewise.
12771 (loop_exit_at_end_p): Likewise for local "insn".
12772 (split_edge_and_insert): Likewise for param "insns".
12773 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12774 and locals "seq", "jump".
12775 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12776 "branch_code"; update invocations of compare_and_jump_seq to
12777 eliminate NULL_RTX in favor of NULL.
12778 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12780 (reset_debug_uses_in_loop): Likewise.
12781 (analyze_insn_to_expand_var): Likewise for param "insn".
12782 (analyze_iv_to_split_insn): Likewise.
12783 (analyze_insns_in_loop): Likewise for local "insn".
12784 (insert_base_initialization): Likewise for param
12785 "insn" and local "seq".
12786 (split_iv): Likewise for param "insn" and local "seq".
12787 (expand_var_during_unrolling): Likewise for param "insn".
12788 (insert_var_expansion_initialization): Likewise for local "seq".
12789 (combine_var_copies_in_loop_exit): Likewise.
12790 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12792 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12793 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12798 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12800 (iv_analyze_result): Likewise.
12801 (iv_analyze_expr): Likewise.
12804 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12805 local "def_insn" from rtx to rtx_insn *.
12806 (get_biv_step_1): Likewise for local "insn".
12807 (iv_analyze_expr): Likewise for param "insn".
12808 (iv_analyze_def): Likewise for local "insn".
12809 (iv_analyze_op): Likewise for param "insn".
12810 (iv_analyze): Likewise.
12811 (iv_analyze_result): Likewise.
12813 (suitable_set_for_replacement): Likewise.
12814 (simplify_using_initial_values): Likewise for local "insn".
12815 (iv_number_of_iterations): Likewise for param "insn".
12816 (check_simple_exit): Add checked cast to rtx_insn when invoking
12817 iv_number_of_iterations for now (until get_condition is
12820 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12821 "insn" from rtx to rtx_insn *.
12822 (analyze_insns_in_loop): Likewise for local "insn".
12824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12826 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12828 (struct invariant): Likewise.
12829 (hash_invariant_expr_1): Likewise for param "insn".
12830 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12831 (find_exits): Likewise for local "insn".
12832 (create_new_invariant): Likewise for param "insn".
12833 (check_dependencies): Likewise.
12834 (find_invariant_insn): Likewise.
12835 (record_uses): Likewise.
12836 (find_invariants_insn): Likewise.
12837 (find_invariants_bb): Likewise for local "insn".
12838 (get_pressure_class_and_nregs): Likewise for param "insn".
12839 (calculate_loop_reg_pressure): Likewise for local "insn".
12841 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12843 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12845 (add_test): Likewise for locals "seq", "jump".
12846 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12850 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12852 (rebuild_jump_labels_chain): Likewise for param "chain".
12854 * cfgexpand.c (pass_expand::execute): Add checked cast to
12855 rtx_insn * when calling rebuild_jump_labels_chain in region where
12856 we know e->insns.r is non-NULL.
12858 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12860 (rebuild_jump_labels): Likewise.
12861 (rebuild_jump_labels_chain): Likewise for param "chain".
12862 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12863 (init_label_info): Likewise for param "f".
12864 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12865 "prev_nonjump_insn".
12866 (mark_all_labels): Likewise for param "f" and locals "insn",
12867 "prev_nonjump_insn".
12869 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12871 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12872 from rtx to rtx_insn *insn.
12873 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12874 (ira_add_allocno_copy): Likewise.
12875 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12877 (ira_create_copy): Likewise.
12878 (ira_add_allocno_copy): Likewise.
12879 (create_bb_allocnos): Likewise for local "insn".
12880 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12881 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12882 process_regs_for_copy for rtx_insn * param.
12883 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12884 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12885 process_regs_for_copy for rtx_insn * param.
12886 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12887 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12888 (record_operand_costs): Likewise.
12889 (scan_one_insn): Likewise for return type, and for param "insn".
12890 (process_bb_for_costs): Likewise for local "insn".
12891 (process_bb_node_for_hard_reg_moves): Likewise.
12892 * ira-emit.c (struct move): Likewise for field "insn".
12893 (create_move): Eliminate use of NULL_RTX when dealing with an
12895 (emit_move_list): Strengthen return type and locals "result",
12896 "insn" from rtx to rtx_insn *insn.
12897 (emit_moves): Likewise for locals "insns", "tmp".
12898 (ira_emit): Likewise for local "insn".
12899 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12901 (find_call_crossed_cheap_reg): Likewise.
12902 (process_bb_node_lives): Likewise for local "insn".
12903 * ira.c (decrease_live_ranges_number): Likewise.
12904 (compute_regs_asm_clobbered): Likewise.
12905 (build_insn_chain): Likewise.
12906 (find_moveable_pseudos): Likewise, also locals "def_insn",
12907 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12908 to rtx_insn **. Add a checked cast when assigning from
12909 "closest_use" into closest_uses array in a region where we know
12910 it's a non-NULL insn.
12911 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12913 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12914 "last_interesting_insn", "uin".
12915 (move_unallocated_pseudos): Likewise for locals "def_insn",
12916 "move_insn", "newinsn".
12918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12920 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12921 Strengthen locals "done_label", "do_error" from rtx to
12923 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12924 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12926 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12927 "done_label", "do_error" to rtx_code_label * and local "last" to
12929 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12930 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12931 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12932 "after_lopart_neg", "do_overflow", "hipart_different" to
12933 rtx_code_label * and local "last" to rtx_insn *.
12935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12937 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12938 "insn" and "move_insn" from rtx to rtx_insn *.
12940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12942 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12944 (cheap_bb_rtx_cost_p): Likewise.
12945 (first_active_insn): Likewise for return type and local "insn".
12946 (last_active_insn): Likewise for return type and locals "insn",
12948 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12950 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12952 (noce_try_move): Likewise for local "seq".
12953 (noce_try_store_flag): Likewise.
12954 (noce_try_store_flag_constants): Likewise.
12955 (noce_try_addcc): Likewise.
12956 (noce_try_store_flag_mask): Likewise.
12957 (noce_try_cmove): Likewise.
12958 (noce_try_minmax): Likewise.
12959 (noce_try_abs): Likewise.
12960 (noce_try_sign_mask): Likewise.
12961 (noce_try_bitop): Likewise.
12962 (noce_can_store_speculate_p): Likewise for local "insn".
12963 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12965 (check_cond_move_block): Likewise for local "insn".
12966 (cond_move_convert_if_block): Likewise.
12967 (cond_move_process_if_block): Likewise for locals "seq",
12969 (noce_find_if_block): Likewise for local "jump".
12970 (merge_if_block): Likewise for local "last".
12971 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12972 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12973 (block_has_only_trap): Likewise for return type and local "trap".
12974 (find_if_case_1): Likewise for local "jump".
12975 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12980 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12981 "last_insn", "loop_end" from rtx to rtx_insn *.
12983 * hw-doloop.c (scan_loop): Likewise for local "insn".
12984 (discover_loop): Likewise for param "tail_insn".
12985 (discover_loops): Likewise for local "tail".
12987 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12988 cast to rtx_insn * when assigning from an rtx local to a
12989 hwloop_info's "last_insn" field.
12991 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12993 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12994 (add_delay_dependencies): Strengthen local "pro" from rtx to
12996 (recompute_todo_spec): Likewise.
12997 (dep_cost_1): Likewise for locals "insn", "used".
12998 (schedule_insn): Likewise for local "dbg".
12999 (schedule_insn): Likewise for locals "pro", "next".
13000 (unschedule_insns_until): Likewise for local "con".
13001 (restore_pattern): Likewise for local "next".
13002 (estimate_insn_tick): Likewise for local "pro".
13003 (resolve_dependencies): Likewise for local "next".
13004 (fix_inter_tick): Likewise.
13005 (fix_tick_ready): Likewise for local "pro".
13006 (add_to_speculative_block): Likewise for locals "check", "twin",
13008 (sched_extend_bb): Likewise for locals "end", "insn".
13009 (init_before_recovery): Likewise for local "x".
13010 (sched_create_recovery_block): Likewise for local "barrier".
13011 (create_check_block_twin): Likewise for local "pro".
13012 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13014 (unlink_bb_notes): Update for change to type of bb_header.
13015 Strengthen locals "prev", "label", "note", "next" from rtx to
13017 (clear_priorities): Likewise for local "pro".
13019 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13021 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13023 (test_insn): Likewise for this global.
13024 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13026 (oprs_anticipatable_p): Likewise.
13027 (oprs_available_p): Likewise.
13028 (insert_expr_in_table): Strengthen param "insn" from rtx to
13030 (hash_scan_set): Likewise.
13031 (hash_scan_clobber): Likewise.
13032 (hash_scan_call): Likewise.
13033 (hash_scan_insn): Likewise.
13034 (compute_hash_table_work): Likewise for local "insn".
13035 (process_insert_insn): Likewise for return type and local "pat".
13036 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13037 "pat", "pat_end", "maybe_cc0_setter".
13038 (pre_edge_insert): Likewise for local "insn".
13039 (pre_insert_copy_insn): Likewise for param "insn".
13040 (pre_insert_copies): Likewise for local "insn".
13041 (struct set_data): Likewise for field "insn".
13042 (single_set_gcse): Likewise for param "insn".
13043 (gcse_emit_move_after): Likewise.
13044 (pre_delete): Likewise for local "insn".
13045 (update_bb_reg_pressure): Likewise for param "from" and local
13047 (should_hoist_expr_to_dom): Likewise for param "from".
13048 (hoist_code): Likewise for local "insn".
13049 (get_pressure_class_and_nregs): Likewise for param "insn".
13050 (calculate_bb_reg_pressure): Likewise for local "insn".
13051 (compute_ld_motion_mems): Likewise.
13053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13055 * genpeep.c (main): Rename param back from "uncast_ins1" to
13056 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13059 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13061 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13064 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13065 documentation to state it is only for VSX operations.
13067 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13068 constraint only active if VSX.
13070 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13071 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13072 (lfiwzx): Likewise.
13074 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13076 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13077 Strengthen local "insn" from rtx to rtx_insn *.
13078 (use_killed_between): Likewise for param "target_insn".
13079 (all_uses_available_at): Likewise for param "target_insn" and
13081 (update_df_init): Likewise for params "def_insn", "insn".
13082 (update_df): Likewise for param "insn".
13083 (try_fwprop_subst): Likewise for param "def_insn" and local
13085 (free_load_extend): Likewise for param "insn".
13086 (forward_propagate_subreg): Likewise for param "def_insn" and
13088 (forward_propagate_asm): Likewise for param "def_insn" and local
13090 (forward_propagate_and_simplify): Likewise for param "def_insn"
13091 and local "use_insn".
13092 (forward_propagate_into): Likewise for locals "def_insn" and
13095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13097 * function.c (emit_initial_value_sets): Strengthen local "seq"
13098 from rtx to rtx_insn *.
13099 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13101 (instantiate_virtual_regs): Likewise for local "insn".
13102 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13103 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13104 (expand_function_end): Likewise for locals "insn" and "seq".
13105 (epilogue_done): Likewise for local "insn".
13106 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13108 (reposition_prologue_and_epilogue_notes): Likewise for locals
13109 "insn", "last", "note", "first".
13110 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13111 (pass_match_asm_constraints::execute): Likewise for local "insn".
13113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13115 * output.h (final_scan_insn): Strengthen return type from rtx to
13117 (final_forward_branch_p): Likewise for param.
13118 (current_output_insn): Likewise for this global.
13120 * final.c (rtx debug_insn): Likewise for this variable.
13121 (current_output_insn): Likewise.
13122 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13123 adding "insn" back in as an rtx_insn * with a checked cast, so
13124 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13126 (compute_alignments): Strengthen local "label" from rtx to
13128 (shorten_branches): Rename param from "first" to "uncast_first",
13129 introducing a new local rtx_insn * "first" using a checked cast to
13130 effectively strengthen "first" from rtx to rtx_insn * without
13131 affecting the type signature. Strengthen locals "insn", "seq",
13132 "next", "label" from rtx to rtx_insn *.
13133 (change_scope): Strengthen param "orig_insn" and local "insn" from
13135 (final_start_function): Rename param from "first" to "uncast_first",
13136 introducing a new local rtx_insn * "first" using a checked cast to
13137 effectively strengthen "first" from rtx to rtx_insn * without
13138 affecting the type signature. Strengthen local "insn" from rtx to
13140 (dump_basic_block_info): Strengthen param "insn" from rtx to
13142 (final): Rename param from "first" to "uncast_first",
13143 introducing a new local rtx_insn * "first" using a checked cast to
13144 effectively strengthen "first" from rtx to rtx_insn * without
13145 affecting the type signature. Strengthen locals "insn", "next"
13146 from rtx to rtx_insn *.
13147 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13149 (call_from_call_insn): Strengthen param "insn" from rtx to
13151 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13152 introducing a new local rtx_insn * "insn" using a checked cast to
13153 effectively strengthen "insn" from rtx to rtx_insn * without
13154 affecting the type signature. Strengthen return type and locals
13155 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13156 now-redundant checked cast to rtx_insn * from both invocations of
13157 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13158 introducing a local "call_insn" for use when invoking
13159 call_from_call_insn.
13160 (notice_source_line): Strengthen param "insn" from rtx to
13162 (leaf_function_p): Likewise for local "insn".
13163 (final_forward_branch_p): Likewise.
13164 (leaf_renumber_regs): Likewise for param "first".
13165 (rest_of_clean_state): Likewise for locals "insn" and "next".
13166 (self_recursive_call_p): Likewise for param "insn".
13167 (collect_fn_hard_reg_usage): Likewise for local "insn".
13168 (get_call_fndecl): Likewise for param "insn".
13169 (get_call_cgraph_rtl_info): Likewise.
13170 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13171 introducing a new local rtx_insn * "insn" using a checked cast to
13172 effectively strengthen "insn" from rtx to rtx_insn * without
13173 affecting the type signature.
13175 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13176 cast when assigning from param "insn" to current_output_insn.
13177 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13178 so that we can assign it back to current_output_insn.
13180 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13182 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13183 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13184 atmxt540s and atmxt540sreva devices.
13185 * config/avr/avr-tables.opt: Regenerate.
13186 * config/avr/t-multilib: Regenerate.
13187 * doc/avr-mmcu.texi: Regenerate.
13189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13191 * expr.c (convert_move): Strengthen local "insns" from rtx to
13193 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13194 "top_label" from rtx to rtx_code_label *.
13195 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13197 (emit_single_push_insn): Likewise for locals "prev", "last".
13198 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13199 to rtx_code_label *.
13200 (store_constructor): Likewise for locals "loop_start", "loop_end".
13201 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13203 (expand_expr_real_2): Likewise.
13204 (expand_expr_real_1): Strengthen local "label" from rtx to
13207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13209 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13210 from rtx to rtx_insn *.
13211 (store_bit_field_1): Likewise.
13212 (extract_bit_field_1): Likewise.
13213 (expand_mult_const): Likewise for local "insns".
13214 (expmed_mult_highpart): Strengthen local "label" from rtx to
13216 (expand_smod_pow2): Likewise.
13217 (expand_sdiv_pow2): Likewise.
13218 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13219 rtx_insn *. Strengthen locals "label", "label1", "label2",
13220 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13221 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13222 (emit_store_flag): Likewise.
13223 (emit_store_flag_force): Strengthen local "label" from rtx to
13225 (do_cmp_and_jump): Likewise for param "label".
13227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13229 * explow.c (force_reg): Strengthen local "insn" from rtx to
13231 (adjust_stack_1): Likewise.
13232 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13233 "final_label", "available_label", "space_available" from rtx to
13235 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13236 (anti_adjust_stack_and_probe): Likewise.
13238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13240 * except.h (sjlj_emit_function_exit_after): Strengthen param
13241 "after" from rtx to rtx_insn *. This is only called with
13242 result of get_last_insn (in function.c) so type-change should be
13245 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13246 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13247 to rtx_insn *. These fields are only used from except.c so this
13248 type-change should be self-contained to this patch.
13250 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13251 local "last" from rtx to rtx_insn *.
13252 (dw2_build_landing_pads): Likewise for local "seq".
13253 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13254 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13255 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13257 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13259 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13260 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13261 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13262 referring to an insn. Strengthen local "dispatch_label" from
13263 rtx to rtx_code_label *.
13264 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13266 (expand_eh_return): Strengthen local "around_label" from
13267 rtx to rtx_code_label *.
13268 (convert_to_eh_region_ranges): Strengthen locals "iter",
13269 "last_action_insn", "first_no_action_insn",
13270 "first_no_action_insn_before_switch",
13271 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13275 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13276 from rtx to rtx_insn *.
13277 (cached_next_real_insn): Likewise.
13278 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13279 working with insns.
13280 (dwarf2out_var_location): Strengthen locals "next_real",
13281 "next_note", "expected_next_loc_note", "last_start", "insn" from
13284 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13286 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13287 from rtx to rtx_insn *.
13288 (create_pseudo_cfg): Likewise for local "insn".
13290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13292 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13293 from rtx to rtx_insn *.
13294 (df_bb_regno_last_def_find): Likewise.
13296 * df-problems.c (df_rd_bb_local_compute): Likewise.
13297 (df_lr_bb_local_compute): Likewise.
13298 (df_live_bb_local_compute): Likewise.
13299 (df_chain_remove_problem): Likewise.
13300 (df_chain_create_bb): Likewise.
13301 (df_word_lr_bb_local_compute): Likewise.
13302 (df_remove_dead_eq_notes): Likewise for param "insn".
13303 (df_note_bb_compute): Likewise for local "insn".
13304 (simulate_backwards_to_point): Likewise.
13305 (df_md_bb_local_compute): Likewise.
13307 * df-scan.c (df_scan_free_bb_info): Likewise.
13308 (df_scan_start_dump): Likewise.
13309 (df_scan_start_block): Likewise.
13310 (df_install_ref_incremental): Likewise for local "insn".
13311 (df_insn_rescan_all): Likewise.
13312 (df_reorganize_refs_by_reg_by_insn): Likewise.
13313 (df_reorganize_refs_by_insn_bb): Likewise.
13314 (df_recompute_luids): Likewise.
13315 (df_bb_refs_record): Likewise.
13316 (df_update_entry_exit_and_calls): Likewise.
13317 (df_bb_verify): Likewise.
13319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13321 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13322 "first_note" from rtx to rtx_insn *.
13323 (get_node_of_insn): Likewise for param 2 "insn".
13324 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13326 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13328 (mem_write_insn_p): Likewise.
13329 (mem_access_insn_p): Likewise.
13330 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13331 (def_has_ccmode_p): Likewise for param "insn".
13332 (add_cross_iteration_register_deps): Likewise for locals
13333 "def_insn" and "use_insn".
13334 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13335 (build_intra_loop_deps): Likewise for local "src_insn".
13336 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13338 (get_node_of_insn): Likewise for param "insn".
13340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13342 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13343 (deletable_insn_p): Strengthen param "insn" from rtx to
13344 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13345 find_call_stack_args, since this is guarded by CALL_P (insn).
13346 (marked_insn_p): Strengthen param "insn" from rtx to
13348 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13349 invoking find_call_stack_args, since this is guarded by
13351 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13352 rtx_insn *; we know this is an insn since this was called by
13353 mark_nonreg_stores.
13354 (mark_nonreg_stores_2): Likewise.
13355 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13357 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13358 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13360 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13361 from rtx to rtx_insn *.
13362 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13363 "next", "ref_insn".
13364 (delete_unmarked_insns): Likewise for locals "insn", "next".
13365 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13366 (mark_reg_dependencies): Likewise for param "insn".
13367 (rest_of_handle_ud_dce): Likewise for local "insn".
13368 (word_dce_process_block): Likewise.
13369 (dce_process_block): Likewise.
13371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13373 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13374 from rtx to rtx_insn *.
13375 (struct change_cc_mode_args): Likewise for field "insn".
13376 (this_insn): Strengthen from rtx to rtx_insn *.
13377 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13379 (validate_canon_reg): Strengthen param "insn" from rtx to
13381 (canon_reg): Likewise.
13382 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13384 (record_jump_equiv): Strengthen param "insn" from rtx to
13386 (try_back_substitute_reg): Likewise, also for locals "prev",
13388 (find_sets_in_insn): Likewise for param "insn".
13389 (canonicalize_insn): Likewise.
13390 (cse_insn): Likewise. Add a checked cast.
13391 (invalidate_from_clobbers): Likewise for param "insn".
13392 (invalidate_from_sets_and_clobbers): Likewise.
13393 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13395 (cse_prescan_path): Strengthen local "insn" from rtx to
13397 (cse_extended_basic_block): Likewise for locals "insn" and
13399 (cse_main): Likewise for param "f".
13400 (check_for_label_ref): Likewise for local "insn".
13401 (set_live_p): Likewise for second param ("insn").
13402 (insn_live_p): Likewise for first param ("insn") and for local
13404 (cse_change_cc_mode_insn): Likewise for first param "insn".
13405 (cse_change_cc_mode_insns): Likewise for first and second params
13407 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13409 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13412 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13413 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13414 Anna Tikhonova <anna.tikhonova@intel.com>
13415 Ilya Tocar <ilya.tocar@intel.com>
13416 Andrey Turetskiy <andrey.turetskiy@intel.com>
13417 Ilya Verbin <ilya.verbin@intel.com>
13418 Kirill Yukhin <kirill.yukhin@intel.com>
13419 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13421 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13423 * config/i386/sse.md
13424 (define_mode_iterator VI248_AVX2): Delete.
13425 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13426 (define_mode_iterator VI48_AVX2): Ditto.
13427 (define_insn <shift_insn><mode>3): Delete.
13428 (define_insn "<shift_insn><mode>3<mask_name>" with
13429 VI2_AVX2_AVX512BW): New.
13430 (define_insn "<shift_insn><mode>3<mask_name>" with
13433 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13435 Anna Tikhonova <anna.tikhonova@intel.com>
13436 Ilya Tocar <ilya.tocar@intel.com>
13437 Andrey Turetskiy <andrey.turetskiy@intel.com>
13438 Ilya Verbin <ilya.verbin@intel.com>
13439 Kirill Yukhin <kirill.yukhin@intel.com>
13440 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13442 * config/i386/sse.md
13443 (define_mode_iterator VI4F_BRCST32x2): New.
13444 (define_mode_attr 64x2_mode): Ditto.
13445 (define_mode_attr 32x2mode): Ditto.
13446 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13447 with VI4F_BRCST32x2): Ditto.
13448 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13449 with V16FI mode iterator): Ditto.
13450 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13451 with V16FI): Ditto.
13452 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13453 with VI8F_BRCST64x2): Ditto.
13455 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13456 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13457 Anna Tikhonova <anna.tikhonova@intel.com>
13458 Ilya Tocar <ilya.tocar@intel.com>
13459 Andrey Turetskiy <andrey.turetskiy@intel.com>
13460 Ilya Verbin <ilya.verbin@intel.com>
13461 Kirill Yukhin <kirill.yukhin@intel.com>
13462 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13464 * config/i386/sse.md
13465 (define_mode_iterator VI8_AVX512VL): New.
13466 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13468 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13470 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13471 (define_mode_iterator V48_AVX512VL): New.
13472 (define_mode_iterator V12_AVX512VL): Ditto.
13473 (define_insn <avx512>_load<mode>_mask): Split into two similar
13474 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13475 Refactor output template.
13476 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13480 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13482 (reg_available_p): Likewise for param "insn".
13483 (insert_set_in_table): Likewise.
13484 (hash_scan_set): Likewise.
13485 (hash_scan_insn): Likewise.
13486 (make_set_regs_unavailable): Likewise.
13487 (compute_hash_table_work): Likewise for local "insn".
13488 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13490 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13491 (try_replace_reg): Likewise.
13492 (find_avail_set): Likewise.
13493 (cprop_jump): Likewise for params "setcc", "jump".
13494 (constprop_register): Likewise for param "insn".
13495 (cprop_insn): Likewise.
13496 (do_local_cprop): Likewise.
13497 (local_cprop_pass): Likewise for local "insn".
13498 (bypass_block): Likewise for params "setcc" and "jump".
13499 (bypass_conditional_jumps): Likewise for locals "setcc" and
13501 (one_cprop_pass): Likewise for local "insn".
13503 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13505 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13506 from rtx to rtx_insn *.
13507 (struct comparison): Likewise, also for field "prev_clobber".
13508 (conforming_compare): Likewise for param "insn".
13509 (arithmetic_flags_clobber_p): Likewise.
13510 (find_flags_uses_in_insn): Likewise.
13511 (find_comparison_dom_walker::before_dom_children): Likewise for
13512 locals "insn", "next", "last_clobber".
13513 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13517 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13518 "insn" from rtx to rtx_insn *.
13519 (single_set_for_csa): Likewise for param "insn".
13520 (record_one_stack_ref): Likewise.
13521 (try_apply_stack_adjustment): Likewise.
13522 (struct record_stack_refs_data): Likewise for field "insn".
13523 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13524 (prev_active_insn_bb): Likewise for return type and param "insn".
13525 (next_active_insn_bb): Likewise.
13526 (force_move_args_size_note): Likewise for params "prev" and "last"
13527 and locals "test", "next_candidate", "prev_candidate".
13528 (combine_stack_adjustments_for_block): Strengthen locals
13529 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13532 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13534 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13535 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13536 (subst_insn): Likewise for this variable.
13537 (added_links_insn): Likewise.
13538 (struct insn_link): Likewise for field "insn".
13539 (alloc_insn_link): Likewise for param "insn".
13540 (struct undobuf): Likewise for field "other_insn".
13541 (find_single_use): Likewise for param "insn" and local "next".
13542 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13543 (delete_noop_moves): Likewise for locals "insn", "next".
13544 (create_log_links): Likewise for locals "insn", "use_insn".
13545 Strengthen local "next_use" from rtx * to rtx_insn **.
13546 (insn_a_feeds_b): Likewise for params "a", "b".
13547 (combine_instructions): Likewise for param "f" and locals "insn",
13548 "next", "prev", "first", "last_combined_insn", "link", "link1",
13549 "temp". Replace use of NULL_RTX with NULL when referring to
13551 (setup_incoming_promotions): Likewise for param "first"
13552 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13553 (can_combine_p): Likewise for params "insn", "i3", "pred",
13554 "pred2", "succ", "succ2" and for local "p".
13555 (combinable_i3pat): Likewise for param "i3".
13556 (cant_combine_insn_p): Likewise for param "insn".
13557 (likely_spilled_retval_p): Likewise.
13558 (adjust_for_new_dest): Likewise.
13559 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13560 (try_combine): Likewise for return type and for params "i3", "i2",
13561 "i1", "i0", "last_combined_insn", and for locals "insn",
13562 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13563 "i0_insn". Eliminate local "tem" in favor of new locals
13564 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13565 checked cast for now to rtx_insn * on the return type of
13566 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13568 (find_split_point): Strengthen param "insn" from rtx to
13570 (simplify_set): Likewise for local "other_insn".
13571 (recog_for_combine): Likewise for param "insn".
13572 (record_value_for_reg): Likewise.
13573 (record_dead_and_set_regs_1): Likewise for local
13574 "record_dead_insn".
13575 (record_dead_and_set_regs): Likewise for param "insn".
13576 (record_promoted_value): Likewise.
13577 (check_promoted_subreg): Likewise.
13578 (get_last_value_validate): Likewise.
13579 (reg_dead_at_p): Likewise.
13580 (move_deaths): Likewise for param "to_insn".
13581 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13582 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13583 in favor of new locals "tem_note" and "tem_insn", the latter being
13585 (distribute_links): Strengthen locals "place", "insn" from rtx to
13588 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13590 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13592 (can_delete_label_p): Require a const rtx_code_label * rather than
13594 (delete_insn): Add checked cast to rtx_code_label * when we know
13595 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13597 (delete_insn_chain): Strengthen locals "prev" and "current" from
13598 rtx to rtx_insn *. Add a checked cast when assigning from
13599 "finish" (strengthening the params will come later). Add a
13600 checked cast to rtx_note * in region where we know
13602 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13604 (compute_bb_for_insn): Likewise.
13605 (free_bb_for_insn): Likewise for local "insn".
13606 (compute_bb_for_insn): Likewise.
13607 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13608 local "insn" from rtx to rtx_insn *
13609 (flow_active_insn_p): Require a const rtx_insn * rather than a
13611 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13613 (can_fallthru): Likewise for locals "insn" and "insn2".
13614 (bb_note): Likewise for local "note".
13615 (first_insn_after_basic_block_note): Likewise for local "note" and
13617 (rtl_split_block): Likewise for locals "insn" and "next".
13618 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13620 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13621 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13623 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13624 them), "kill_from", "barrier", "new_insn".
13625 (patch_jump_insn): Likewise for params "insn", "old_label".
13626 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13627 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13628 "old_label", "new_label".
13629 (rtl_tidy_fallthru_edge): Likewise for local "q".
13630 (rtl_split_edge): Likewise for locals "before", "last".
13631 (commit_one_edge_insertion): Likewise for locals "before",
13632 "after", "insns", "tmp", "last", adding a checked cast where
13633 currently necessary.
13634 (commit_edge_insertions): Likewise.
13635 (rtl_dump_bb): Likewise for locals "insn", "last".
13636 (print_rtl_with_bb): Likewise for local "x".
13637 (rtl_verify_bb_insns): Likewise for local "x".
13638 (rtl_verify_bb_pointers): Likewise for local "insn".
13639 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13641 (rtl_verify_fallthru): Likewise for local "insn".
13642 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13643 (purge_dead_edges): Likewise for local "insn".
13644 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13645 (skip_insns_after_block): Likewise for return type and for locals
13646 "insn", "last_insn", "next_head", "prev".
13647 (record_effective_endpoints): Likewise for locals "next_insn",
13649 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13650 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13651 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13652 (duplicate_insn_chain): For now, add checked cast from rtx to
13653 rtx_insn * when returning insn.
13654 (cfg_layout_duplicate_bb): Likewise for local "insn".
13655 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13656 "prev", "remaints".
13657 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13658 (rtl_block_empty_p): Likewise.
13659 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13660 "split_point", "last".
13661 (rtl_block_ends_with_call_p): Likewise for local "insn".
13662 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13664 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13665 "split_at_insn" from rtx to rtx_insn *.
13666 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13667 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13668 to const rtx_insn *.
13669 (rtl_account_profile_record): Likewise.
13671 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13673 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13675 (average_num_loop_insns): Likewise.
13676 (init_set_costs): Likewise for local "seq".
13677 (seq_cost): Likewise for param "seq", from const_rtx to const
13680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13682 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13685 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13687 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13688 "f1" and "f2" from rtx * to rtx_insn **.
13689 (flow_find_head_matching_sequence): Likewise.
13691 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13692 "cbranch_insn" from rtx to rtx_insn *.
13693 (thread_jump): Likewise for local "insn".
13694 (try_forward_edges): Likewise for local "last".
13695 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13696 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13698 (can_replace_by): Likewise for params "i1", "i2".
13699 (old_insns_match_p): Likewise.
13700 (merge_notes): Likewise.
13701 (walk_to_nondebug_insn): Likewise for param "i1".
13702 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13703 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13704 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13705 (flow_find_head_matching_sequence): Strengthen params "f1" and
13706 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13707 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13709 (outgoing_edges_match): Likewise for locals "last1", "last2".
13710 (try_crossjump_to_edge): Likewise for local "insn".
13711 Replace call to for_each_rtx with for_each_rtx_in_insn.
13713 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13714 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13715 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13716 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13717 (try_optimize_cfg): Strengthen local "last" from rtx to
13719 (delete_dead_jumptables): Likewise for locals "insn", "next",
13722 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13723 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13724 "rtx else_first_tail", to reflect the basic-block.h changes above.
13726 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13728 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13730 (purge_dead_tablejump_edges): Likewise.
13731 (find_bb_boundaries): Likewise for locals "insn", "end",
13732 "flow_transfer_insn".
13734 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13736 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13737 "ins" and "prev" from rtx to rtx_insn *.
13739 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13741 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13743 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13744 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13746 (load_register_parameters): Likewise for local "before_arg".
13747 (check_sibcall_argument_overlap): Likewise for param "insn".
13748 (expand_call): Likewise for locals "normal_call_insns",
13749 "tail_call_insns", "insns", "before_call", "after_args",
13750 "before_arg", "last", "prev". Strengthen one of the "last" from
13751 rtx to rtx_call_insn *.
13752 (fixup_tail_calls): Strengthen local "insn" from rtx to
13754 (emit_library_call_value_1): Likewise for locals "before_call" and
13757 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13759 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13760 and "last" from rtx to rtx_insn *.
13761 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13762 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13764 (expand_errno_check): Strengthen local "lab" from rtx to
13766 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13768 (expand_builtin_mathfn_2): Likewise.
13769 (expand_builtin_mathfn_ternary): Likewise.
13770 (expand_builtin_mathfn_3): Likewise.
13771 (expand_builtin_interclass_mathfn): Likewise for local "last".
13772 (expand_builtin_int_roundingfn): Likewise for local "insns".
13773 (expand_builtin_int_roundingfn_2): Likewise.
13774 (expand_builtin_strlen): Likewise for local "before_strlen".
13775 (expand_builtin_strncmp): Likewise for local "seq".
13776 (expand_builtin_signbit): Likewise for local "last".
13777 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13778 from rtx to rtx_code_label *.
13779 (expand_stack_restore): Strengthen local "prev" from rtx to
13782 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13784 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13786 (struct btr_def_s): Likewise.
13787 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13789 (add_btr_def): Likewise.
13790 (new_btr_user): Likewise.
13791 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13793 (link_btr_uses): Likewise.
13794 (move_btr_def): Likewise for locals "insp", "old_insn",
13795 "new_insn". Add checked cast to rtx_insn * for now on result of
13797 (can_move_up): Strengthen param "insn" from const_rtx to
13800 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13802 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13804 (get_uncond_jump_length): Likewise for locals "label", "jump".
13805 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13807 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13808 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13809 (find_jump_block): Likewise for local "insn".
13810 (fix_crossing_conditional_branches): Likewise for locals
13811 "old_jump", "new_jump".
13812 (fix_crossing_unconditional_branches): Likewise for locals
13813 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13814 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13816 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13818 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13820 (struct mem_insn): Likewise for field "insn".
13821 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13822 (reg_next_inc_use): Likewise.
13823 (reg_next_def): Likewise.
13824 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13825 from rtx to rtx_insn *.
13826 (move_insn_before): Likewise for param "next_insn" and local "insns".
13827 (attempt_change): Likewise for local "mov_insn".
13828 (try_merge): Likewise for param "last_insn".
13829 (get_next_ref): Likewise for return type and local "insn".
13830 Strengthen param "next_array" from rtx * to rtx_insn **.
13831 (parse_add_or_inc): Strengthen param "insn" from rtx to
13833 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13835 (merge_in_block): Likewise for locals "insn", "curr",
13837 (pass_inc_dec::execute): Update allocations of the arrays to
13838 reflect the stronger types.
13840 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13842 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13843 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13844 from rtx to rtx_code_label *.
13846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13848 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13851 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13853 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13854 generated a warning and prevented bootstrapping the compiler.
13856 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13858 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13861 * jump.c (delete_related_insns): Likewise, also for locals "next"
13864 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13866 * genautomata.c (output_internal_insn_latency_func): When writing
13867 the function "internal_insn_latency" to insn-automata.c,
13868 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13869 allowing the optional guard function of (define_bypass) clauses to
13870 expect a pair of rtx_insn *, rather than a pair of rtx.
13871 (output_insn_latency_func): When writing the function
13872 "insn_latency", add an "uncast_" prefix to params "insn" and
13873 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13874 using checked casts from the params, thus enabling the above
13875 change to the generated "internal_insn_latency" function.
13877 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13879 PR tree-optimization/62091
13880 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13881 handle correctly arrays.
13882 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13883 inheritance binfos.
13884 (record_known_type): Walk into inner type.
13885 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13886 condition on no type changes.
13888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13890 * genattrtab.c (write_attr_get): Within the generated get_attr_
13891 functions, rename param "insn" to "uncast_insn" and reintroduce
13892 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13893 is an rtx_insn * within insn-attrtab.c
13895 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13897 * output.h (peephole): Strengthen return type from rtx to
13899 * rtl.h (delete_for_peephole): Likewise for both params.
13900 * genpeep.c (main): In generated "peephole" function, strengthen
13901 return type and local "insn" from rtx to rtx_insn *. For now,
13902 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13903 rtx_insn *, with a checked cast.
13904 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13905 locals "insn", "next", "prev" from rtx to rtx_insn *.
13907 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13909 PR tree-optimization/62112
13910 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13911 * gimple-iterator.h (gsi_replace): Return bool.
13912 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13913 moved from ref_may_alias_global_p.
13914 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13916 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13917 (stmt_kills_ref_p_1): Rename...
13918 (stmt_kills_ref_p): ... to this.
13919 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13920 stmt_kills_ref_p): Declare.
13921 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13922 Move the self-assignment case...
13923 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13925 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13927 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13929 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13930 "after". For now, don't strengthen param "trial", which requires
13931 adding checked casts when returning it.
13933 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13935 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13936 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13937 "var_location" hook from rtx to rtx_insn *.
13938 (debug_nothing_rtx): Delete in favor of...
13939 (debug_nothing_rtx_code_label): New prototype.
13940 (debug_nothing_rtx_rtx): Delete unused prototype.
13941 (debug_nothing_rtx_insn): New prototype.
13943 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13944 invoking debug_hooks->var_location (in two places, one in a NOTE
13945 case of a switch statement, the other guarded by a CALL_P
13946 conditional. Add checked cast to rtx_code_label * when invoking
13947 debug_hooks->label (within CODE_LABEL case of switch statement).
13949 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13950 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13951 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13952 (xcoff_debug_hooks): Likewise.
13953 * debug.c (do_nothing_debug_hooks): Likewise.
13954 (debug_nothing_rtx): Delete in favor of...
13955 (debug_nothing_rtx_insn): New function.
13956 (debug_nothing_rtx_rtx): Delete unused function.
13957 (debug_nothing_rtx_code_label): New function.
13958 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13959 debug_nothing_rtx to debug_nothing_rtx_code_label.
13960 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13962 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13963 debug_nothing_rtx to debug_nothing_rtx_insn.
13964 (sdbout_label): Strengthen param "insn" from rtx to
13966 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13967 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13968 "var_location" hook from debug_nothing_rtx to
13969 debug_nothing_rtx_insn.
13971 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13973 * recog.h (insn_output_fn): Update this function typedef to match
13974 the changes below to the generated output functions, strengthening
13975 the 2nd param from rtx to rtx_insn *.
13977 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13978 insn when invoking an output function, to match the new signature
13979 of insn_output_fn with a stronger second param.
13981 * genconditions.c (write_header): In the generated code for
13982 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13983 to match the other changes in this patch.
13985 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13986 the generated "gen_" functions from rtx to rtx_insn * within their
13989 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13990 the subfunctions within the generated "recog_", "split", "peephole2"
13991 function trees from rtx to rtx_insn *. For now, the top-level
13992 generated functions ("recog", "split", "peephole2") continue to
13993 take a plain rtx for "insn", to avoid introducing dependencies on
13994 other patches. Rename this 2nd param from "insn" to
13995 "uncast_insn", and reintroduce "insn" as a local variable of type
13996 rtx_insn *, initialized at the top of the generated function with
13997 a checked cast on "uncast_insn".
13998 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13999 the generated "gen_" functions from rtx to rtx_insn * within their
14002 * genoutput.c (process_template): Strengthen the 2nd param within
14003 the generated "output_" functions "insn" from rtx to rtx_insn *.
14005 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14007 * tree-profile.c (tree_profiling): Skip external functions
14008 when doing coverage instrumentation.
14009 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14011 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14013 * config/rs6000/altivec.h (vec_cpsgn): New #define.
14014 (vec_mergee): Likewise.
14015 (vec_mergeo): Likewise.
14016 (vec_cntlz): Likewise.
14017 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14018 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14019 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14020 VMRGEW, and VMRGOW.
14021 * doc/extend.texi: Document various forms of vec_cpsgn,
14022 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14023 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14024 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14025 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14026 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14028 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14030 * config/rs6000/rs6000.c (context.h): New include.
14031 (tree-pass.h): Likewise.
14032 (make_pass_analyze_swaps): New decl.
14033 (rs6000_option_override): Register pass_analyze_swaps.
14034 (swap_web_entry): New subsclass of web_entry_base (df.h).
14035 (special_handling_values): New enum.
14036 (union_defs): New function.
14037 (union_uses): Likewise.
14038 (insn_is_load_p): Likewise.
14039 (insn_is_store_p): Likewise.
14040 (insn_is_swap_p): Likewise.
14041 (rtx_is_swappable_p): Likewise.
14042 (insn_is_swappable_p): Likewise.
14043 (chain_purpose): New enum.
14044 (chain_contains_only_swaps): New function.
14045 (mark_swaps_for_removal): Likewise.
14046 (swap_const_vector_halves): Likewise.
14047 (adjust_subreg_index): Likewise.
14048 (permute_load): Likewise.
14049 (permute_store): Likewise.
14050 (handle_special_swappables): Likewise.
14051 (replace_swap_with_copy): Likewise.
14052 (dump_swap_insn_table): Likewise.
14053 (rs6000_analyze_swaps): Likewise.
14054 (pass_data_analyze_swaps): New pass_data.
14055 (pass_analyze_swaps): New rtl_opt_pass.
14056 (make_pass_analyze_swaps): New function.
14057 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14059 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14061 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14062 type from rtx to rtx_insn *.
14063 (create_copy_of_insn_rtx): Likewise.
14064 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14065 (create_copy_of_insn_rtx): Likewise, also for local "res".
14067 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14069 * rtl.h (find_first_parameter_load): Strengthen return type from
14071 * rtlanal.c (find_first_parameter_load): Strengthen return type
14072 from rtx to rtx_insn *. Add checked cast for now, to postpone
14073 strengthening the params.
14075 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14078 * diagnostic.c: Set default caret.
14079 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14081 * diagnostic.h (struct diagnostic_context):
14083 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14085 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14086 (sel_bb_head): Strengthen return type insn_t (currently just an
14087 rtx) to rtx_insn *.
14088 (sel_bb_end): Likewise.
14090 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14091 (sel_bb_head): Strengthen return type and local "head" from
14092 insn_t (currently just an rtx) to rtx_insn *.
14093 (sel_bb_end): Likewise for return type.
14094 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14097 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14099 * basic-block.h (get_last_bb_insn): Strengthen return type from
14101 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14104 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14107 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14109 (diagnostic_report_diagnostic): ... from here.
14110 * toplev.c (general_init): Move code to c-family.
14112 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14114 * df.h (web_entry_base): Replace existing struct web_entry with a
14115 new class web_entry_base with only the predecessor member.
14116 (unionfind_root): Remove declaration and move to class member.
14117 (unionfind_union): Remove declaration and move to friend
14119 (union_defs): Remove declaration.
14120 * web.c (web_entry_base::unionfind_root): Modify to be member
14121 function and adjust accessors.
14122 (unionfind_union): Modify to be friend function and adjust
14124 (web_entry): New subclass of web_entry_base containing the reg
14126 (union_match_dups): Modify for struct -> class changes.
14127 (union_defs): Likewise.
14128 (entry_register): Likewise.
14129 (pass_web::execute): Likewise.
14131 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14133 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14134 builtin define __VEC_ELEMENT_REG_ORDER__.
14136 2014-08-20 Martin Jambor <mjambor@suse.cz>
14137 Wei Mi <wmi@google.com>
14140 PR middle-end/61776
14141 * tree-ssa-operands.c (update_stmt_operands): Remove
14142 MODIFIED_NORETURN_CALLS.
14143 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14144 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14145 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14146 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14147 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14148 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14149 (gimple_call_set_ctrl_altering): New func.
14150 (gimple_call_ctrl_altering_p): Ditto.
14151 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14152 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14153 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14154 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14155 remove MODIFIED_NORETURN_CALLS.
14157 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14159 * coverage.c (coverage_compute_profile_id): Return non-0;
14160 also handle symbols with unique name.
14161 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14163 2014-08-20 Steve Ellcey <sellcey@mips.com>
14165 PR middle-end/49191
14166 * doc/sourcebuild.texi (non_strict_align): New.
14168 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14170 * cgraphunit.c (ipa_passes, compile): Reshedule
14171 symtab_remove_unreachable_nodes passes; update comments.
14172 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14173 TODO_remove_functions before the pass; the functions ought to be
14175 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14176 TODO_remove_functions.
14177 * passes.c (pass_data_early_local_passes): Do not schedule function
14179 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14181 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14184 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14185 before setting the option.
14186 * diagnostic.c (diagnostic_classify_diagnostic): Record
14187 command-line status.
14189 2014-08-20 Richard Biener <rguenther@suse.de>
14192 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14193 to build uint{16,32,64}_type_node.
14195 2014-08-20 Terry Guo <terry.guo@arm.com>
14197 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14198 with immediate_operand.
14200 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14202 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14203 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14206 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14208 PR preprocessor/51303
14209 * incpath.c (remove_duplicates): Use cpp_warning.
14211 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14215 * doc/options.texi (CPP): Document it.
14216 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14217 * optc-gen.awk: Handle CPP.
14218 * opth-gen.awk: Likewise.
14220 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14222 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14224 (duplicate_insn_chain): Likewise.
14225 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14226 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14227 checked cast for now (until we can strengthen the params in the
14229 (duplicate_insn_chain): Likewise.
14231 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14233 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14235 (prev_cc0_setter): Likewise.
14237 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14238 rtx_insn *, adding checked casts for now as necessary.
14239 (prev_cc0_setter): Likewise.
14241 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14243 * expr.h (emit_move_insn): Strengthen return type from rtx to
14245 (emit_move_insn_1): Likewise.
14246 (emit_move_complex_push): Likewise.
14247 (emit_move_complex_parts): Likewise.
14249 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14250 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14252 (emit_move_complex_push): Strengthen return type from rtx to
14254 (emit_move_complex): Likewise, also for local "ret".
14255 (emit_move_ccmode): Likewise.
14256 (emit_move_multi_word): Likewise for return type and locals
14257 "last_insn", "seq".
14258 (emit_move_insn_1): Likewise for return type and locals "result",
14260 (emit_move_insn): Likewise for return type and local "last_insn".
14261 (compress_float_constant): Likewise.
14263 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14265 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14266 from rtx to rtx_insn *.
14268 * rtl.h (emit_insn_before): Likewise.
14269 (emit_insn_before_noloc): Likewise.
14270 (emit_insn_before_setloc): Likewise.
14271 (emit_jump_insn_before): Likewise.
14272 (emit_jump_insn_before_noloc): Likewise.
14273 (emit_jump_insn_before_setloc): Likewise.
14274 (emit_call_insn_before): Likewise.
14275 (emit_call_insn_before_noloc): Likewise.
14276 (emit_call_insn_before_setloc): Likewise.
14277 (emit_debug_insn_before): Likewise.
14278 (emit_debug_insn_before_noloc): Likewise.
14279 (emit_debug_insn_before_setloc): Likewise.
14280 (emit_label_before): Likewise.
14281 (emit_insn_after): Likewise.
14282 (emit_insn_after_noloc): Likewise.
14283 (emit_insn_after_setloc): Likewise.
14284 (emit_jump_insn_after): Likewise.
14285 (emit_jump_insn_after_noloc): Likewise.
14286 (emit_jump_insn_after_setloc): Likewise.
14287 (emit_call_insn_after): Likewise.
14288 (emit_call_insn_after_noloc): Likewise.
14289 (emit_call_insn_after_setloc): Likewise.
14290 (emit_debug_insn_after): Likewise.
14291 (emit_debug_insn_after_noloc): Likewise.
14292 (emit_debug_insn_after_setloc): Likewise.
14293 (emit_label_after): Likewise.
14294 (emit_insn): Likewise.
14295 (emit_debug_insn): Likewise.
14296 (emit_jump_insn): Likewise.
14297 (emit_call_insn): Likewise.
14298 (emit_label): Likewise.
14299 (gen_clobber): Likewise.
14300 (emit_clobber): Likewise.
14301 (gen_use): Likewise.
14302 (emit_use): Likewise.
14305 (emit_barrier_before): Strengthen return type from rtx to
14307 (emit_barrier_after): Likewise.
14308 (emit_barrier): Likewise.
14310 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14311 from rtx to rtx_insn *. Add checked casts for now when converting
14312 "last" from rtx to rtx_insn *.
14313 (emit_insn_before_noloc): Likewise for return type.
14314 (emit_jump_insn_before_noloc): Likewise.
14315 (emit_call_insn_before_noloc): Likewise.
14316 (emit_debug_insn_before_noloc): Likewise.
14317 (emit_barrier_before): Strengthen return type and local "insn"
14318 from rtx to rtx_barrier *.
14319 (emit_label_before): Strengthen return type from rtx to
14320 rtx_insn *. Add checked cast for now when returning param
14321 (emit_pattern_after_noloc): Strengthen return type from rtx to
14322 rtx_insn *. Add checked casts for now when converting "last" from
14324 (emit_insn_after_noloc): Strengthen return type from rtx to
14326 (emit_jump_insn_after_noloc): Likewise.
14327 (emit_call_insn_after_noloc): Likewise.
14328 (emit_debug_insn_after_noloc): Likewise.
14329 (emit_barrier_after): Strengthen return type from rtx to
14331 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14332 Add checked cast for now when converting "label" from rtx to
14334 (emit_pattern_after_setloc): Strengthen return type from rtx to
14335 rtx_insn *. Add checked casts for now when converting "last" from
14337 (emit_pattern_after): Strengthen return type from rtx to
14339 (emit_insn_after_setloc): Likewise.
14340 (emit_insn_after): Likewise.
14341 (emit_jump_insn_after_setloc): Likewise.
14342 (emit_jump_insn_after): Likewise.
14343 (emit_call_insn_after_setloc): Likewise.
14344 (emit_call_insn_after): Likewise.
14345 (emit_debug_insn_after_setloc): Likewise.
14346 (emit_debug_insn_after): Likewise.
14347 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14348 when converting "last" from rtx to rtx_insn *.
14349 (emit_pattern_before): Strengthen return type from rtx to
14351 (emit_insn_before_setloc): Likewise.
14352 (emit_insn_before): Likewise.
14353 (emit_jump_insn_before_setloc): Likewise.
14354 (emit_jump_insn_before): Likewise.
14355 (emit_call_insn_before_setloc): Likewise.
14356 (emit_call_insn_before): Likewise.
14357 (emit_debug_insn_before_setloc): Likewise.
14358 (emit_debug_insn_before): Likewise.
14359 (emit_insn): Strengthen return type and locals "last", "insn",
14360 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14361 within cases where we know we have an insn.
14362 (emit_debug_insn): Likewise.
14363 (emit_jump_insn): Likewise.
14364 (emit_call_insn): Strengthen return type and local "insn" from rtx
14366 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14367 a checked cast to rtx_insn * for now on "label".
14368 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14369 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14370 (emit_use): Likewise.
14371 (gen_use): Likewise, also for local "seq".
14372 (emit): Likewise for return type and local "insn".
14373 (rtx_insn): Likewise for return type and local "new_rtx".
14375 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14376 from rtx to rtx_barrier *.
14378 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14379 changed return type from rtx to rtx_insn *, we must update
14380 "emit_fn" type, and this in turn means updating...
14381 (frame_insn): ...this. Strengthen return type from rtx to
14382 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14384 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14386 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14387 rtx to rtx_jump_table_data *. Also for local.
14388 * rtl.h (emit_jump_table_data): Likewise.
14390 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14392 * basic-block.h (create_basic_block_structure): Strengthen third
14393 param "bb_note" from rtx to rtx_note *.
14394 * rtl.h (emit_note_before): Strengthen return type from rtx to
14396 (emit_note_after): Likewise.
14397 (emit_note): Likewise.
14398 (emit_note_copy): Likewise. Also, strengthen param similarly.
14399 * function.h (struct rtl_data): Strengthen field
14400 "x_stack_check_probe_note" from rtx to rtx_note *.
14402 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14403 from rtx to rtx_note *.
14404 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14405 "bb_note" from rtx to rtx_note *.
14406 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14407 when calling emit_note_copy.
14408 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14410 (emit_note_after): Likewise.
14411 (emit_note_before): Likewise.
14412 (emit_note_copy): Likewise. Also, strengthen param similarly.
14413 (emit_note): Likewise.
14414 * except.c (emit_note_eh_region_end): Likewise for return type.
14415 Strengthen local "next" from rtx to rtx_insn *.
14416 (convert_to_eh_region_ranges): Strengthen local "note"
14417 from rtx to rtx_note *.
14418 * final.c (change_scope): Likewise.
14419 (reemit_insn_block_notes): Likewise, for both locals named "note".
14420 Also, strengthen local "insn" from rtx to rtx_insn *.
14421 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14423 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14424 strengthen local "seq" from rtx to rtx_insn *.
14425 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14427 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14429 (get_bb_note_from_pool): Strengthen return type from rtx to
14431 (sel_create_basic_block): Strengthen local "new_bb_note" from
14432 insn_t to rtx_note *.
14433 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14434 "note" from rtx to rtx_note *.
14435 (emit_notes_in_bb): Likewise.
14437 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14439 * function.h (struct rtl_data): Strengthen field
14440 "x_parm_birth_insn" from rtx to rtx_insn *.
14441 * function.c (struct assign_parm_data_all): Strengthen fields
14442 "first_conversion_insn" and "last_conversion_insn" from rtx to
14445 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14447 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14448 to rtx_insn *; also for local "var_end_seq".
14449 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14450 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14452 (expand_gimple_cond): Likewise for locals "last2" and "last".
14453 (mark_transaction_restart_calls): Likewise for local "insn".
14454 (expand_gimple_stmt): Likewise for return type and locals "last"
14456 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14457 (avoid_complex_debug_insns): Likewise for param "insn".
14458 (expand_debug_locations): Likewise for locals "insn", "last",
14459 "prev_insn" and "insn2".
14460 (expand_gimple_basic_block): Likewise for local "last".
14461 (construct_exit_block): Likewise for locals "head", "end",
14463 (pass_expand::execute): Likewise for locals "var_seq",
14464 "var_ret_seq", "next".
14466 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14468 * asan.h (asan_emit_stack_protection): Strengthen return type from
14470 * asan.c (asan_emit_stack_protection): Likewise. Add local
14471 "insns" to hold the return value.
14473 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14475 * basic-block.h (bb_note): Strengthen return type from rtx to
14477 * sched-int.h (bb_note): Likewise.
14478 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14480 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14482 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14485 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14486 "insn" from rtx to rtx_insn *.
14487 (make_debug_insn_raw): Strengthen return type from rtx to
14488 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14489 (make_jump_insn_raw): Strengthen return type from rtx to
14490 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14491 (make_call_insn_raw): Strengthen return type from rtx to
14492 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14493 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14494 callback from rtx to rtx_insn *; likewise for local "insn" and
14495 "next", adding a checked cast to rtx_insn in the relevant cases of
14496 the switch statement.
14497 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14498 callback from rtx to rtx_insn *.
14499 (emit_pattern_after_setloc): Likewise.
14500 (emit_pattern_after): Likewise.
14501 (emit_pattern_before_setloc): Likewise.
14502 (emit_pattern_before): Likewise.
14504 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14506 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14508 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14509 accepting an rtx_insn *.
14510 (last_call_insn): Strengthen return type from rtx to
14513 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14515 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14516 "insns" from rtx to rtx_insn *.
14517 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14518 locals "insn" and "prev".
14520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14522 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14523 rtx_jump_table_data **.
14525 * cfgbuild.c (make_edges): Introduce local "table", using it in
14526 place of "tmp" for jump table data.
14527 (find_bb_boundaries): Strengthen local "table" from rtx to
14528 rtx_jump_table_data *.
14529 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14530 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14531 (try_crossjump_to_edge): Likewise.
14532 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14534 (patch_jump_insn): Introduce local "table", using it in place of
14535 "tmp" for jump table data.
14536 (force_nonfallthru_and_redirect): Introduce local "table", so that
14537 call to tablejump_p can receive an rtx_jump_table_data **. Update
14538 logic around the call to overwrite "note" appropriately if
14539 tablejump_p returns non-zero.
14540 (get_last_bb_insn): Introduce local "table", using it in place of
14541 "tmp" for jump table data.
14542 * dwarf2cfi.c (create_trace_edges): Likewise.
14544 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14545 from rtx to rtx_jump_table_data *.
14546 (create_fix_barrier): Strengthen local "tmp" from rtx to
14547 rtx_jump_table_data *.
14548 (arm_reorg): Likewise for local "table".
14550 * config/s390/s390.c (s390_chunkify_start): Likewise.
14552 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14554 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14555 rtx to rtx_jump_table_data *.
14557 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14558 rtx_jump_table_data **. Add a checked cast when writing through
14559 the pointer: we know there that local "table" is non-NULL and that
14560 JUMP_TABLE_DATA_P (table) holds.
14561 (label_is_jump_target_p): Introduce local "table", using it in
14562 place of "tmp" for jump table data.
14564 2014-08-19 Marek Polacek <polacek@redhat.com>
14567 * doc/invoke.texi: Document -Wbool-compare.
14569 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14571 * rtl.h (entry_of_function): Strengthen return type from rtx to
14573 * cfgrtl.c (entry_of_function): Likewise.
14575 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14577 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14578 rtx_insn *, adding a checked cast for now.
14579 (get_last_insn): Likewise.
14581 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14583 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14586 * emit-rtl.c (gen_label_rtx): Likewise.
14588 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14590 * rtl.h (previous_insn): Strengthen return type from rtx to
14592 (next_insn): Likewise.
14593 (prev_nonnote_insn): Likewise.
14594 (prev_nonnote_insn_bb): Likewise.
14595 (next_nonnote_insn): Likewise.
14596 (next_nonnote_insn_bb): Likewise.
14597 (prev_nondebug_insn): Likewise.
14598 (next_nondebug_insn): Likewise.
14599 (prev_nonnote_nondebug_insn): Likewise.
14600 (next_nonnote_nondebug_insn): Likewise.
14601 (prev_real_insn): Likewise.
14602 (next_real_insn): Likewise.
14603 (prev_active_insn): Likewise.
14604 (next_active_insn): Likewise.
14606 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14607 rtx_insn *, adding a checked cast.
14608 (previous_insn): Likewise.
14609 (next_nonnote_insn): Likewise.
14610 (next_nonnote_insn_bb): Likewise.
14611 (prev_nonnote_insn): Likewise.
14612 (prev_nonnote_insn_bb): Likewise.
14613 (next_nondebug_insn): Likewise.
14614 (prev_nondebug_insn): Likewise.
14615 (next_nonnote_nondebug_insn): Likewise.
14616 (prev_nonnote_nondebug_insn): Likewise.
14617 (next_real_insn): Likewise.
14618 (prev_real_insn): Likewise.
14619 (next_active_insn): Likewise.
14620 (prev_active_insn): Likewise.
14622 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14623 param "stepfunc" so that it returns an rtx_insn * rather than an
14624 rtx, to track the change to prev_nonnote_insn_bb, which is the
14625 only function this is called with.
14626 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14628 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14630 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14635 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14636 (class rtx_nonjump_insn): Likewise.
14637 (class rtx_jump_insn): Likewise.
14638 (class rtx_call_insn): Likewise.
14639 (class rtx_jump_table_data): Likewise.
14640 (class rtx_barrier): Likewise.
14641 (class rtx_code_label): Likewise.
14642 (class rtx_note): Likewise.
14644 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14645 adding the invariant DEBUG_INSN_P (X).
14646 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14647 the invariant NONJUMP_INSN_P (X).
14648 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14649 the invariant JUMP_P (X).
14650 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14651 the invariant CALL_P (X).
14652 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14653 invariant JUMP_TABLE_DATA_P (X).
14654 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14655 invariant BARRIER_P (X).
14656 (class rtx_code_label): New, a subclass of rtx_insn, adding
14657 the invariant LABEL_P (X).
14658 (class rtx_note): New, a subclass of rtx_insn, adding
14659 the invariant NOTE_P(X).
14660 (is_a_helper <rtx_debug_insn *>::test): New.
14661 (is_a_helper <rtx_nonjump_insn *>::test): New.
14662 (is_a_helper <rtx_jump_insn *>::test): New.
14663 (is_a_helper <rtx_call_insn *>::test): New.
14664 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14665 overloaded for both rtx and rtx_insn *.
14666 (is_a_helper <rtx_barrier *>::test): New.
14667 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14668 for both rtx and rtx_insn *.
14669 (is_a_helper <rtx_note *>::test): New.
14671 2014-08-19 Marek Polacek <polacek@redhat.com>
14673 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14674 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14675 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14676 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14678 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14680 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14681 rtx_insn *. To help with transition, for now, convert from an
14682 access macro into a pair of functions: BND_TO, returning an
14684 (SET_BND_TO): New function, for use where BND_TO is used as an
14687 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14689 (BND_TO): New function, adding a checked cast.
14690 (SET_BND_TO): New function.
14692 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14694 (compute_av_set_on_boundaries): Likewise.
14696 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14698 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14699 destination if it is used in source.
14700 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14701 (*popcount<mode>2_falsedep_1): Likewise.
14703 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14706 * configure.ac: Set install_gold_as_default to no first.
14707 * configure: Regenerated.
14709 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14711 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14712 "note_list" field will eventually be an rtx_insn *. To help with
14713 transition, for now, convert from an access macro into a pair of
14714 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14715 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14718 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14719 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14721 * sel-sched-ir.c (init_bb): Likewise.
14722 (sel_restore_notes): Likewise.
14723 (move_bb_info): Likewise.
14724 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14725 (SET_BB_NOTE_LIST): New function.
14727 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14729 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14730 field will eventually be an rtx_insn *. To help with transition,
14731 for now, convert from an access macro into a pair of functions:
14732 VINSN_INSN_RTX, returning an rtx_insn *, and...
14733 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14734 is used as an lvalue.
14736 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14737 SET_VINSN_INSN_RTX where it's used as an lvalue.
14738 (VINSN_INSN_RTX): New function.
14739 (SET_VINSN_INSN_RTX): New function.
14741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14743 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14744 eventually be rtx_insn *, but to help with transition, for now,
14745 convert from an access macro into a pair of functions: DEP_PRO
14746 returning an rtx_insn * and...
14747 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14748 lvalue, returning an rtx&.
14749 (DEP_CON): Analogous changes to DEP_PRO above.
14750 (SET_DEP_CON): Likewise.
14752 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14753 an lvalue to SET_DEP_CON.
14754 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14755 (sd_copy_back_deps): Likewise for DEP_CON.
14756 (DEP_PRO): New function, adding a checked cast for now.
14757 (DEP_CON): Likewise.
14758 (SET_DEP_PRO): New function.
14759 (SET_DEP_CON): Likewise.
14761 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14763 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14764 (extra_options): Add i386/cygwin.opt.
14765 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14766 (CPP_SPEC): Accept -pthread.
14767 (LINK_SPEC): Ditto.
14768 (GOMP_SELF_SPECS): Update comment.
14769 * config/i386/cygwin.opt: New file for -pthread flag.
14771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14773 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14774 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14775 that we can return an rtx_insn *.
14777 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14779 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14780 when building executables, not DLLs. Add --large-address-aware
14781 under the same conditions.
14782 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14783 when building executables, not DLLs. Add --large-address-aware
14784 under the same conditions when using -m32.
14786 * config/i386/cygwin-stdint.h: Throughout, make type
14787 definitions dependent on target architecture, not host.
14789 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14791 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14792 the return type from rtx to rtx_insn *, which will enable various
14793 conversions in followup patches. For now this is is done by a
14795 (NEXT_INSN): Likewise.
14796 (SET_PREV_INSN): Convert to an inline function. This is intended
14797 for use as an lvalue, and so returns an rtx& to allow in-place
14799 (SET_NEXT_INSN): Likewise.
14801 2014-07-08 Mark Wielaard <mjw@redhat.com>
14804 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14806 2014-08-19 Marek Polacek <polacek@redhat.com>
14809 * cgraphunit.c (handle_alias_pairs): Fix condition.
14811 2014-08-19 Richard Biener <rguenther@suse.de>
14813 * gimple-fold.c (fold_gimple_assign): Properly build a
14814 null-pointer constant when devirtualizing addresses.
14816 2014-07-07 Mark Wielaard <mjw@redhat.com>
14818 * dwarf2out.c (decl_quals): New function.
14819 (modified_type_die): Take one cv_quals argument instead of two,
14820 one for const and one for volatile.
14821 (add_type_attribute): Likewise.
14822 (generic_parameter_die): Call add_type_attribute with one modifier
14824 (base_type_for_mode): Likewise.
14825 (add_bounds_info): Likewise.
14826 (add_subscript_info): Likewise.
14827 (gen_array_type_die): Likewise.
14828 (gen_descr_array_type_die): Likewise.
14829 (gen_entry_point_die): Likewise.
14830 (gen_enumeration_type_die): Likewise.
14831 (gen_formal_parameter_die): Likewise.
14832 (gen_subprogram_die): Likewise.
14833 (gen_variable_die): Likewise.
14834 (gen_const_die): Likewise.
14835 (gen_field_die): Likewise.
14836 (gen_pointer_type_die): Likewise.
14837 (gen_reference_type_die): Likewise.
14838 (gen_ptr_to_mbr_type_die): Likewise.
14839 (gen_inheritance_die): Likewise.
14840 (gen_subroutine_type_die): Likewise.
14841 (gen_typedef_die): Likewise.
14842 (force_type_die): Likewise.
14844 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14846 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14848 * configure: Regenerate.
14850 2014-08-19 Richard Biener <rguenther@suse.de>
14852 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14853 DECL_EXTERNALs in BLOCKs as non-references.
14854 * tree-streamer-out.c (streamer_write_chain): Likewise.
14856 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14858 Anna Tikhonova <anna.tikhonova@intel.com>
14859 Ilya Tocar <ilya.tocar@intel.com>
14860 Andrey Turetskiy <andrey.turetskiy@intel.com>
14861 Ilya Verbin <ilya.verbin@intel.com>
14862 Kirill Yukhin <kirill.yukhin@intel.com>
14863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14865 * config/i386/sse.md
14866 (define_mode_iterator VI48_AVX512F): Delete.
14867 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14868 (define_mode_iterator VI2_AVX512VL): Ditto.
14869 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14872 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14874 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14875 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14876 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14877 with VI48_AVX512F_AVX512VL): New.
14878 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14879 with VI2_AVX512VL): Ditto.
14881 2014-08-19 Marek Polacek <polacek@redhat.com>
14883 * doc/invoke.texi: Document -Wc99-c11-compat.
14885 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14887 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14888 for rvalues, and...
14889 (SET_PREV_INSN): New macro, for use as an lvalue.
14890 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14892 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14893 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14894 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14895 (fixup_abnormal_edges): Likewise.
14896 (unlink_insn_chain): Likewise.
14897 (fixup_reorder_chain): Likewise.
14898 (cfg_layout_delete_block): Likewise.
14899 (cfg_layout_merge_blocks): Likewise.
14900 * combine.c (update_cfg_for_uncondjump): Likewise.
14901 * emit-rtl.c (link_insn_into_chain): Likewise.
14902 (remove_insn): Likewise.
14903 (delete_insns_since): Likewise.
14904 (reorder_insns_nobb): Likewise.
14905 (emit_insn_after_1): Likewise.
14906 * final.c (rest_of_clean_state): Likewise.
14907 (final_scan_insn): Likewise.
14908 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14909 * haifa-sched.c (concat_note_lists): Likewise.
14910 (remove_notes): Likewise.
14911 (restore_other_notes): Likewise.
14912 (move_insn): Likewise.
14913 (unlink_bb_notes): Likewise.
14914 (restore_bb_notes): Likewise.
14915 * jump.c (delete_for_peephole): Likewise.
14916 * optabs.c (emit_libcall_block_1): Likewise.
14917 * reorg.c (emit_delay_sequence): Likewise.
14918 (fill_simple_delay_slots): Likewise.
14919 * sel-sched-ir.c (sel_move_insn): Likewise.
14920 (sel_remove_insn): Likewise.
14921 (get_bb_note_from_pool): Likewise.
14922 * sel-sched.c (move_nop_to_previous_block): Likewise.
14924 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14925 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14926 (c6x_gen_bundles): Likewise.
14927 (hwloop_optimize): Likewise.
14928 * config/frv/frv.c (frv_function_prologue): Likewise.
14929 (frv_register_nop): Likewise.
14930 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14931 (ia64_reorg): Likewise.
14932 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14933 (mep_make_bundle): Likewise.
14934 (mep_bundle_insns): Likewise.
14935 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14936 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14937 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14939 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14941 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14942 return type from rtx to rtx_insn *.
14943 (BB_END): Likewise.
14944 (BB_HEADER): Likewise.
14945 (BB_FOOTER): Likewise.
14946 (SET_BB_HEAD): Convert to a function.
14947 (SET_BB_END): Likewise.
14948 (SET_BB_HEADER): Likewise.
14949 (SET_BB_FOOTER): Likewise.
14951 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14952 Strengthen the return type from rtx to rtx_insn *. For now, this
14953 is done by adding a checked cast, but this will eventually
14954 become a field lookup.
14955 (BB_END): Likewise.
14956 (BB_HEADER): Likewise.
14957 (BB_FOOTER): Likewise.
14958 (SET_BB_HEAD): New function, from macro of same name. This is
14959 intended for use as an lvalue, and so returns an rtx& to allow
14960 in-place modification.
14961 (SET_BB_END): Likewise.
14962 (SET_BB_HEADER): Likewise.
14963 (SET_BB_FOOTER): Likewise.
14965 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14967 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14968 for rvalues, and...
14969 (SET_BB_HEAD): New macro, for use as a lvalue.
14970 (BB_END, SET_BB_END): Likewise.
14971 (BB_HEADER, SET_BB_HEADER): Likewise.
14972 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14974 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14975 of BB_* macros into SET_BB_* macros.
14976 (fix_crossing_unconditional_branches): Likewise.
14977 * caller-save.c (save_call_clobbered_regs): Likewise.
14978 (insert_one_insn): Likewise.
14979 * cfgbuild.c (find_bb_boundaries): Likewise.
14980 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14981 (outgoing_edges_match): Likewise.
14982 (try_optimize_cfg): Likewise.
14983 * cfgexpand.c (expand_gimple_cond): Likewise.
14984 (expand_gimple_tailcall): Likewise.
14985 (expand_gimple_basic_block): Likewise.
14986 (construct_exit_block): Likewise.
14987 * cfgrtl.c (delete_insn): Likewise.
14988 (create_basic_block_structure): Likewise.
14989 (rtl_delete_block): Likewise.
14990 (rtl_split_block): Likewise.
14991 (emit_nop_for_unique_locus_between): Likewise.
14992 (rtl_merge_blocks): Likewise.
14993 (block_label): Likewise.
14994 (try_redirect_by_replacing_jump): Likewise.
14995 (emit_barrier_after_bb): Likewise.
14996 (fixup_abnormal_edges): Likewise.
14997 (record_effective_endpoints): Likewise.
14998 (relink_block_chain): Likewise.
14999 (fixup_reorder_chain): Likewise.
15000 (fixup_fallthru_exit_predecessor): Likewise.
15001 (cfg_layout_duplicate_bb): Likewise.
15002 (cfg_layout_split_block): Likewise.
15003 (cfg_layout_delete_block): Likewise.
15004 (cfg_layout_merge_blocks): Likewise.
15005 * combine.c (update_cfg_for_uncondjump): Likewise.
15006 * emit-rtl.c (add_insn_after): Likewise.
15007 (remove_insn): Likewise.
15008 (reorder_insns): Likewise.
15009 (emit_insn_after_1): Likewise.
15010 * haifa-sched.c (get_ebb_head_tail): Likewise.
15011 (restore_other_notes): Likewise.
15012 (move_insn): Likewise.
15013 (sched_extend_bb): Likewise.
15014 (fix_jump_move): Likewise.
15015 * ifcvt.c (noce_process_if_block): Likewise.
15016 (dead_or_predicable): Likewise.
15017 * ira.c (update_equiv_regs): Likewise.
15018 * reg-stack.c (change_stack): Likewise.
15019 * sel-sched-ir.c (sel_move_insn): Likewise.
15020 * sel-sched.c (move_nop_to_previous_block): Likewise.
15022 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15023 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15025 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15027 * rtl.h (for_each_rtx_in_insn): New function.
15028 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15030 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15032 * coretypes.h (class rtx_insn): Add forward declaration.
15034 * rtl.h: Include is-a.h.
15035 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15036 workaround to ensure gengtype knows inheritance is occurring,
15037 whilst continuing to use the pre-existing special-casing for
15039 (class rtx_insn): New subclass of rtx_def, adding the
15040 invariant that we're dealing with something we can sanely use
15041 INSN_UID, NEXT_INSN, PREV_INSN on.
15042 (is_a_helper <rtx_insn *>::test): New.
15043 (is_a_helper <const rtx_insn *>::test): New.
15045 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15047 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15049 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15051 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15054 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15056 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15057 to BUILT_IN_UNREACHABLE.
15059 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15062 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15064 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15065 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15066 (ffs<mode>2): Do not expand with tzcnt for
15067 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15068 (ffssi2_no_cmove): Ditto.
15069 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15070 (ctz<mode>2): New expander.
15071 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15072 (*ctz<mode>2_falsedep): New insn.
15073 (*ctz<mode>2): Rename from ctz<mode>2.
15074 (clz<mode>2_lzcnt): New expander.
15075 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15076 (*clz<mode>2_lzcnt_falsedep): New insn.
15077 (*clz<mode>2): Rename from ctz<mode>2.
15078 (popcount<mode>2): New expander.
15079 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15080 (*popcount<mode>2_falsedep): New insn.
15081 (*popcount<mode>2): Rename from ctz<mode>2.
15082 (*popcount<mode>2_cmp): Remove.
15083 (*popcountsi2_cmp_zext): Ditto.
15085 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15087 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15088 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15089 * config/microblaze/microblaze.h
15090 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15092 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15095 * configure.ac: Set install_gold_as_default to no for
15097 * configure: Regenerated.
15099 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15101 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15102 * config.in: Add undef of HAVE_isl.
15103 * configure: Regenerate.
15104 * configure.ac: Add definition of HAVE_isl.
15105 * graphite-blocking.c: Add checking of HAVE_isl.
15106 * graphite-dependences.c: Likewise.
15107 * graphite-interchange.c: Likewise.
15108 * graphite-isl-ast-to-gimple.c: Likewise.
15109 * graphite-optimize-isl.c: Likewise.
15110 * graphite-poly.c: Likewise.
15111 * graphite-scop-detection.c: Likewise.
15112 * graphite-sese-to-poly.c: Likewise.
15113 * graphite.c: Likewise.
15114 * toplev.c: Replace the checking of HAVE_cloog with the checking
15117 2014-08-18 Richard Biener <rguenther@suse.de>
15119 PR tree-optimization/62090
15120 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15121 (fold_builtin_3): Do not fold snprintf.
15122 (fold_builtin_4): Likewise.
15123 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15124 moved from builtins.c.
15125 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15126 (gimple_fold_builtin): Do not fold sprintf here.
15128 2014-08-18 Richard Biener <rguenther@suse.de>
15130 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15132 (maybe_canonicalize_mem_ref_addr): ... this function.
15133 (fold_stmt_1): Apply it here before all simplification.
15135 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15138 * cgraph.h (cgraph_node::create_indirect_edge): Add
15139 compute_indirect_info param.
15140 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15141 indirect_info only when it is required.
15142 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15143 indirect_info fore cloned indirect edge.
15145 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15147 Anna Tikhonova <anna.tikhonova@intel.com>
15148 Ilya Tocar <ilya.tocar@intel.com>
15149 Andrey Turetskiy <andrey.turetskiy@intel.com>
15150 Ilya Verbin <ilya.verbin@intel.com>
15151 Kirill Yukhin <kirill.yukhin@intel.com>
15152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15154 * config/i386/sse.md
15155 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15156 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
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/sse.md
15168 (define_mode_iterator VF1_AVX512VL): New.
15169 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15170 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15173 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15175 Anna Tikhonova <anna.tikhonova@intel.com>
15176 Ilya Tocar <ilya.tocar@intel.com>
15177 Andrey Turetskiy <andrey.turetskiy@intel.com>
15178 Ilya Verbin <ilya.verbin@intel.com>
15179 Kirill Yukhin <kirill.yukhin@intel.com>
15180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15182 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15183 * config/i386/i386.md
15184 (define_code_iterator any_float): New.
15185 (define_code_attr floatsuffix): New.
15186 * config/i386/sse.md
15187 (define_mode_iterator VF1_128_256VL): New.
15188 (define_mode_iterator VF2_512_256VL): New.
15189 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15191 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15192 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15194 (define_mode_attr qq2pssuff): New.
15195 (define_mode_attr sselongvecmode): New.
15196 (define_mode_attr sselongvecmodelower): New.
15197 (define_mode_attr sseintvecmode3): New.
15198 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15200 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15201 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15202 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15203 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15205 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15207 Anna Tikhonova <anna.tikhonova@intel.com>
15208 Ilya Tocar <ilya.tocar@intel.com>
15209 Andrey Turetskiy <andrey.turetskiy@intel.com>
15210 Ilya Verbin <ilya.verbin@intel.com>
15211 Kirill Yukhin <kirill.yukhin@intel.com>
15212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15214 * config/i386/sse.md
15215 (define_mode_iterator VF2_AVX512VL): New.
15216 (define_mode_attr sseintvecmode2): New.
15217 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15218 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15219 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15221 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15223 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15225 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15228 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15230 Anna Tikhonova <anna.tikhonova@intel.com>
15231 Ilya Tocar <ilya.tocar@intel.com>
15232 Andrey Turetskiy <andrey.turetskiy@intel.com>
15233 Ilya Verbin <ilya.verbin@intel.com>
15234 Kirill Yukhin <kirill.yukhin@intel.com>
15235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15237 * config/i386/i386.md
15238 (define_insn "*movoi_internal_avx"): Add evex version.
15239 (define_insn "*movti_internal"): Ditto.
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.md
15251 (define_attr "isa"): Add avx512dq, noavx512dq.
15252 (define_attr "enabled"): Ditto.
15253 * config/i386/sse.md
15254 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15256 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15258 Anna Tikhonova <anna.tikhonova@intel.com>
15259 Ilya Tocar <ilya.tocar@intel.com>
15260 Andrey Turetskiy <andrey.turetskiy@intel.com>
15261 Ilya Verbin <ilya.verbin@intel.com>
15262 Kirill Yukhin <kirill.yukhin@intel.com>
15263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15265 * config/i386/i386.c
15266 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15267 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15268 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15269 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15270 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15271 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15272 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15273 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15274 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15275 * config/i386/sse.md
15276 (define_mode_iterator VMOVE): Allow V4TI mode.
15277 (define_mode_iterator V_AVX512VL): New.
15278 (define_mode_iterator V): New handling for AVX512VL.
15279 (define_insn "avx512f_load<mode>_mask"): Delete.
15280 (define_insn "<avx512>_load<mode>_mask"): New.
15281 (define_insn "avx512f_store<mode>_mask"): Delete.
15282 (define_insn "<avx512>_store<mode>_mask"): New.
15285 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15288 * asan.c (instrument_derefs): Fix bitfield check.
15290 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15292 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15293 * config/rs6000/htm.md (ttest): Remove clobber.
15294 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15295 (and_operand): Reformat.
15296 (and_2rld_operand): New predicate.
15297 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15299 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15300 parameter. Handle AND directly.
15301 (rs6000_split_logical_di): Remove last parameter.
15302 (rs6000_split_logical): Remove last parameter. Remove obsolete
15304 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15305 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15306 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15307 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15308 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15309 and 5 anonymous splitters): Delete.
15310 (and<mode>3): New expander.
15311 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15312 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15313 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15314 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15315 (floatdisf2_internal1): Remove clobbers.
15316 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15317 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15318 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15319 (and<mode>3 for BOOL_128): Remove clobber.
15320 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15321 rs6000_split_logical.
15322 (*bool<mode>3_internal for BOOL_128): Adjust call of
15323 rs6000_split_logical.
15324 (*boolc<mode>3_internal1 for BOOL_128,
15325 *boolc<mode>3_internal2 for BOOL_128,
15326 *boolcc<mode>3_internal1 for BOOL_128,
15327 *boolcc<mode>3_internal2 for BOOL_128,
15328 *eqv<mode>3_internal1 for BOOL_128,
15329 *eqv<mode>3_internal2 for BOOL_128,
15330 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15331 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15333 (*vec_reload_and_reg_<mptrsize>): Delete.
15335 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15337 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15338 and split, *boolccsi3_internal3 and split): Delete.
15339 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15340 *boolccdi3_internal3 and split): Delete.
15341 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15342 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15344 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15346 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15347 and split, *boolcsi3_internal3 and split): Delete.
15348 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15349 *boolcdi3_internal3 and split): Delete.
15350 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15352 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15354 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15355 <'u'>: Also support printing the low-order 16 bits.
15356 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15357 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15358 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15359 *booldi3_internal3 and split): Delete.
15360 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15361 *bool<mode>3_dot2): New.
15362 (two anonymous define_splits for non_logical_cint_operand): Merge.
15364 2014-08-17 Marek Polacek <polacek@redhat.com>
15365 Manuel López-Ibáñez <manu@gcc.gnu.org>
15368 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15369 (diagnostic_show_locus): Don't print caret diagnostic
15370 if a column is larger than the line_width.
15372 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15374 * common.opt: Make the ISL AST generator to be the main code generator
15377 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15379 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15381 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15384 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15386 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15387 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15388 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15390 * config/pa/pa.md (begin_brtab): Delete insn.
15391 (end_brtab): Likewise.
15393 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15395 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15397 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15399 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15400 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15401 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15402 (get_dynamic_type): Remove.
15403 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15404 (clear_speculation): Bring to ipa-deivrt.h
15405 (get_class_context): Rename to ...
15406 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15407 (contains_type_p): Update.
15408 (get_dynamic_type): Rename to ...
15409 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15410 (possible_polymorphic_call_targets): UPdate.
15411 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15412 * ipa-prop.c (ipa_analyze_call_uses): Update.
15414 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15416 * doc/invoke.texi (SH options): Document missing processor variant
15417 options. Remove references to Hitachi. Undocument deprecated mspace
15420 2014-08-15 Jason Merrill <jason@redhat.com>
15422 * tree.c (type_hash_canon): Uncomment assert.
15424 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15426 * input.h (in_system_header_at): Add comment.
15428 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15431 * diagnostic.c (build_message_string): Make it extern.
15432 * diagnostic.h (build_message_string): Make it extern.
15434 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15436 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15437 load/store from/to non-floating class pseudo.
15439 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15441 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15443 2014-08-15 Richard Biener <rguenther@suse.de>
15445 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15446 (get_constraint_for_ssa_var): Remove dead code.
15447 (get_constraint_for_1): Adjust.
15448 (find_what_var_points_to): Likewise.
15449 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15451 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15454 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15455 (_mm512_mask_cmpge_epu32_mask): Ditto.
15456 (_mm512_cmpge_epu32_mask): Ditto.
15457 (_mm512_mask_cmpge_epi64_mask): Ditto.
15458 (_mm512_cmpge_epi64_mask): Ditto.
15459 (_mm512_mask_cmpge_epu64_mask): Ditto.
15460 (_mm512_cmpge_epu64_mask): Ditto.
15461 (_mm512_mask_cmple_epi32_mask): Ditto.
15462 (_mm512_cmple_epi32_mask): Ditto.
15463 (_mm512_mask_cmple_epu32_mask): Ditto.
15464 (_mm512_cmple_epu32_mask): Ditto.
15465 (_mm512_mask_cmple_epi64_mask): Ditto.
15466 (_mm512_cmple_epi64_mask): Ditto.
15467 (_mm512_mask_cmple_epu64_mask): Ditto.
15468 (_mm512_cmple_epu64_mask): Ditto.
15469 (_mm512_mask_cmplt_epi32_mask): Ditto.
15470 (_mm512_cmplt_epi32_mask): Ditto.
15471 (_mm512_mask_cmplt_epu32_mask): Ditto.
15472 (_mm512_cmplt_epu32_mask): Ditto.
15473 (_mm512_mask_cmplt_epi64_mask): Ditto.
15474 (_mm512_cmplt_epi64_mask): Ditto.
15475 (_mm512_mask_cmplt_epu64_mask): Ditto.
15476 (_mm512_cmplt_epu64_mask): Ditto.
15477 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15478 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15479 (_mm512_cmpneq_epu32_mask): Ditto.
15480 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15481 (_mm512_cmpneq_epi64_mask): Ditto.
15482 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15483 (_mm512_cmpneq_epu64_mask): Ditto.
15484 (_mm512_castpd_ps): Ditto.
15485 (_mm512_castpd_si512): Ditto.
15486 (_mm512_castps_pd): Ditto.
15487 (_mm512_castps_si512): Ditto.
15488 (_mm512_castsi512_ps): Ditto.
15489 (_mm512_castsi512_pd): Ditto.
15490 (_mm512_castpd512_pd128): Ditto.
15491 (_mm512_castps512_ps128): Ditto.
15492 (_mm512_castsi512_si128): Ditto.
15493 (_mm512_castpd512_pd256): Ditto.
15494 (_mm512_castps512_ps256): Ditto.
15495 (_mm512_castsi512_si256): Ditto.
15496 (_mm512_castpd128_pd512): Ditto.
15497 (_mm512_castps128_ps512): Ditto.
15498 (_mm512_castsi128_si512): Ditto.
15499 (_mm512_castpd256_pd512): Ditto.
15500 (_mm512_castps256_ps512): Ditto.
15501 (_mm512_castsi256_si512): Ditto.
15502 (_mm512_cmpeq_epu32_mask): Ditto.
15503 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15504 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15505 (_mm512_cmpeq_epu64_mask): Ditto.
15506 (_mm512_cmpgt_epu32_mask): Ditto.
15507 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15508 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15509 (_mm512_cmpgt_epu64_mask): Ditto.
15510 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15511 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15512 * config/i386/i386.c (enum ix86_builtins): Add
15513 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15514 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15515 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15516 (bdesc_args): Add __builtin_ia32_si512_256si,
15517 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15518 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15519 __builtin_ia32_pd512_pd.
15520 (ix86_expand_args_builtin): Handle new FTYPEs.
15521 * config/i386/sse.md (castmode): Add 512-bit modes.
15522 (AVX512MODE2P): New.
15523 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15524 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15526 2014-08-15 Richard Biener <rguenther@suse.de>
15528 * fold-const.c (tree_swap_operands_p): Put all constants
15529 last, also strip sign-changing NOPs when considering further
15530 canonicalization. Canonicalize also when optimizing for size.
15532 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15534 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15535 one_match > zero_match case to just before simple_sequence.
15537 2014-08-15 Richard Biener <rguenther@suse.de>
15539 * data-streamer.h (streamer_string_index, string_for_index):
15541 * data-streamer-out.c (streamer_string_index): Make static.
15542 * data-streamer-in.c (string_for_index): Likewise.
15543 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15544 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15546 2014-08-15 Richard Biener <rguenther@suse.de>
15548 PR tree-optimization/62031
15549 * tree-data-ref.c (dr_analyze_indices): Do not set
15550 DR_UNCONSTRAINED_BASE.
15551 (dr_may_alias_p): All indirect accesses have to go the
15552 formerly DR_UNCONSTRAINED_BASE path.
15553 * tree-data-ref.h (struct indices): Remove
15554 unconstrained_base member.
15555 (DR_UNCONSTRAINED_BASE): Remove.
15557 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15559 PR middle-end/62092
15560 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15561 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15562 in OMP_CLAUSE_MAP in some outer target region.
15564 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15566 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15567 name_expansion_cache.
15568 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15569 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15570 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15571 (difference_cannot_overflow_p): New parameter. Use affine
15572 expansion for equality check.
15573 (iv_elimination_compare_lt): Pass new argument.
15575 2014-08-14 DJ Delorie <dj@redhat.com>
15577 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15578 variables to the accumulator.
15580 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15581 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15582 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15583 with far-far moves.
15585 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15586 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15587 (umulqihi3_virt): Likewise.
15588 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15589 (umulqihi3_real): Likewise.
15591 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15593 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15595 PR tree-optimization/62091
15596 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15597 function_entry_reached.
15598 (walk_aliased_vdefs): Clear it here.
15599 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15601 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15603 * ipa-utils.h (compare_virtual_tables): Declare.
15604 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15606 2014-08-14 Marek Polacek <polacek@redhat.com>
15609 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15610 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15612 2014-08-14 Tom de Vries <tom@codesourcery.com>
15614 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15616 2014-08-14 Tom de Vries <tom@codesourcery.com>
15618 PR rtl-optimization/62004
15619 PR rtl-optimization/62030
15620 * ifcvt.c (rtx_interchangeable_p): New function.
15621 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15622 * emit-rtl.h (mem_attrs_eq_p): Declare.
15624 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15626 * graphite-scop-detection.c:
15627 Add inclusion of cp-tree.h.
15628 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15629 in case they are pointers to object types
15631 2014-08-14 Richard Biener <rguenther@suse.de>
15633 * BASE-VER: Change to 5.0.0
15635 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15637 Anna Tikhonova <anna.tikhonova@intel.com>
15638 Ilya Tocar <ilya.tocar@intel.com>
15639 Andrey Turetskiy <andrey.turetskiy@intel.com>
15640 Ilya Verbin <ilya.verbin@intel.com>
15641 Kirill Yukhin <kirill.yukhin@intel.com>
15642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15644 * config/i386/sse.md (define_mode_attr avx512): New.
15645 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15647 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15648 (define_mode_attr ssse3_avx2): Ditto.
15649 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15650 (define_mode_attr avx2_avx512bw): New.
15651 (define_mode_attr ssedoublemodelower): New.
15652 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15653 V32HI, V64QI modes.
15654 (define_mode_attr ssebytemode): Allow V8DI modes.
15655 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15656 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15657 (define_mode_attr ssePSmode2): New.
15658 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15659 V16HI, V32HI modes.
15660 (define_mode_attr dbpsadbwmode): New.
15661 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15662 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15663 (vi8_sse4_1_avx2_avx512): New.
15664 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15666 (define_mode_attr blendbits): Move before its immediate use.
15668 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15670 Anna Tikhonova <anna.tikhonova@intel.com>
15671 Ilya Tocar <ilya.tocar@intel.com>
15672 Andrey Turetskiy <andrey.turetskiy@intel.com>
15673 Ilya Verbin <ilya.verbin@intel.com>
15674 Kirill Yukhin <kirill.yukhin@intel.com>
15675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15677 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15678 * config/i386/subst.md
15679 (define_mode_iterator SUBST_V): Update.
15680 (define_mode_iterator SUBST_A): Ditto.
15681 (define_subst_attr "mask_operand7"): New.
15682 (define_subst_attr "mask_operand10"): New.
15683 (define_subst_attr "mask_operand_arg34") : New.
15684 (define_subst_attr "mask_expand_op3"): New.
15685 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15686 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15687 (define_subst_attr "mask_avx512vl_condition"): New.
15688 (define_subst_attr "round_mask_operand4"): Ditto.
15689 (define_subst_attr "round_mask_scalar_op3"): Delete.
15690 (define_subst_attr "round_mask_op4"): New.
15691 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15693 (define_subst_attr "round_modev8sf_condition"): New.
15694 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15696 (define_subst_attr "round_saeonly_mask_operand4"): New.
15697 (define_subst_attr "round_saeonly_mask_op4"): New.
15698 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15699 V8DImode, V16SImode.
15700 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15701 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15702 (define_subst_attr "mask_expand4_args"): New.
15703 (define_subst "mask_expand4"): New.
15705 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15707 Anna Tikhonova <anna.tikhonova@intel.com>
15708 Ilya Tocar <ilya.tocar@intel.com>
15709 Andrey Turetskiy <andrey.turetskiy@intel.com>
15710 Ilya Verbin <ilya.verbin@intel.com>
15711 Kirill Yukhin <kirill.yukhin@intel.com>
15712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15714 * config/i386/i386.md
15715 (define_attr "isa"): Add avx512bw,noavx512bw.
15716 (define_attr "enabled"): Ditto.
15717 (define_split): Add 32/64-bit mask logic.
15718 (define_insn "*k<logic>qi"): New.
15719 (define_insn "*k<logic>hi"): New.
15720 (define_insn "*anddi_1"): Add mask version.
15721 (define_insn "*andsi_1"): Ditto.
15722 (define_insn "*<code><mode>_1"): Ditto.
15723 (define_insn "*<code>hi_1"): Ditto.
15724 (define_insn "kxnor<mode>"): New.
15725 (define_insn "kunpcksi"): New.
15726 (define_insn "kunpckdi"): New.
15727 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15728 (define_insn "*one_cmplhi2_1"): Ditto.
15730 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15731 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15732 Anna Tikhonova <anna.tikhonova@intel.com>
15733 Ilya Tocar <ilya.tocar@intel.com>
15734 Andrey Turetskiy <andrey.turetskiy@intel.com>
15735 Ilya Verbin <ilya.verbin@intel.com>
15736 Kirill Yukhin <kirill.yukhin@intel.com>
15737 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15739 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15742 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15743 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15744 Anna Tikhonova <anna.tikhonova@intel.com>
15745 Ilya Tocar <ilya.tocar@intel.com>
15746 Andrey Turetskiy <andrey.turetskiy@intel.com>
15747 Ilya Verbin <ilya.verbin@intel.com>
15748 Kirill Yukhin <kirill.yukhin@intel.com>
15749 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15751 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15753 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15754 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15755 xmm/ymm16+ when availble.
15756 * config/i386/i386.h
15757 (HARD_REGNO_NREGS): Add mask regs.
15758 (VALID_AVX512F_REG_MODE): Ditto.
15759 (VALID_AVX512F_REG_MODE) : Define.
15760 (VALID_MASK_AVX512BW_MODE): Ditto.
15761 (reg_class) (MASK_REG_P(X)): Define.
15762 * config/i386/i386.md: Do not split long moves with mask register,
15763 use kmovb if avx512bw is availible.
15764 (movdi_internal): Handle mask registers.
15766 2014-08-14 Richard Biener <rguenther@suse.de>
15768 PR tree-optimization/62081
15769 * tree-ssa-loop.c (pass_fix_loops): New pass.
15770 (pass_tree_loop::gate): Do not fixup loops here.
15771 * tree-pass.h (make_pass_fix_loops): Declare.
15772 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15774 2014-08-14 Richard Biener <rguenther@suse.de>
15776 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15777 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15779 2014-08-14 Richard Biener <rguenther@suse.de>
15781 PR tree-optimization/62090
15782 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15783 (fold_builtin_2): Do not fold sprintf.
15784 (fold_builtin_3): Likewise.
15785 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15786 moved from builtins.c.
15787 (gimple_fold_builtin): Fold sprintf.
15789 2014-08-14 Richard Biener <rguenther@suse.de>
15791 PR rtl-optimization/62079
15792 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15795 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15797 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15798 current_function_decl.
15800 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15802 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15803 cgraph_function_node to cgraph_node::function_symbol
15806 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15808 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15809 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15811 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15813 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15816 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15818 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15821 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15824 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15825 any registers that are used in mem_insn.
15827 2014-08-12 Steve Ellcey <sellcey@mips.com>
15829 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15831 2014-08-12 Steve Ellcey <sellcey@mips.com>
15833 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15834 (MULTILIB_DIRNAMES): Ditto.
15835 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15836 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15837 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15838 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15839 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15840 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15842 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15845 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15846 of __ARM_SIZEOF_WCHAR_T.
15848 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15851 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15852 Remove unnecessary attributes.
15854 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15856 * internal-fn.c (init_internal_fns): Fix off-by-one.
15858 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15859 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15860 Anna Tikhonova <anna.tikhonova@intel.com>
15861 Ilya Tocar <ilya.tocar@intel.com>
15862 Andrey Turetskiy <andrey.turetskiy@intel.com>
15863 Ilya Verbin <ilya.verbin@intel.com>
15864 Kirill Yukhin <kirill.yukhin@intel.com>
15865 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15867 * config/i386/i386.c (standard_sse_constant_opcode): Use
15868 vpxord/vpternlog if avx512 is availible.
15870 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15872 PR middle-end/62103
15873 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15874 bitfields, that is when size doesn't match the size of type or the
15875 size of the constructor.
15877 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15879 * config/rs6000/constraints.md (wh constraint): New constraint,
15880 for FP registers if direct move is available.
15881 (wi constraint): New constraint, for VSX/FP registers that can
15882 handle 64-bit integers.
15883 (wj constraint): New constraint for VSX/FP registers that can
15884 handle 64-bit integers for direct moves.
15885 (wk constraint): New constraint for VSX/FP registers that can
15886 handle 64-bit doubles for direct moves.
15887 (wy constraint): Make documentation match implementation.
15889 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15890 scalar_in_vmx_p field to simplify tests of whether SFmode or
15891 DFmode can go in the Altivec registers.
15892 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15893 (rs6000_setup_reg_addr_masks): Likewise.
15894 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15895 field, and wh/wi/wj/wk constraints.
15896 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15897 the wh/wi/wj/wk constraints.
15898 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15899 upper registers, prefer VSX registers unless the operation is a
15900 memory operation with REG+OFFSET addressing.
15902 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15903 DImode. Change SFmode to use ww constraint instead of d to allow
15904 SF registers in the upper registers.
15907 (VSr5): Fix thinko in comment.
15908 (VSa): New mode attribute that is an alternative to wa, that
15909 returns the VSX register class that a mode can go in, but may not
15910 be the preferred register class.
15911 (VS_64dm): New mode attribute for appropriate register classes for
15912 referencing 64-bit elements of vectors for direct moves and normal
15914 (VS_64reg): Likewise.
15915 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15916 register allocator to only registers the data type can handle.
15917 (vsx_le_perm_load_<mode>): Likewise.
15918 (vsx_le_perm_store_<mode>): Likewise.
15919 (vsx_xxpermdi2_le_<mode>): Likewise.
15920 (vsx_xxpermdi4_le_<mode>): Likewise.
15921 (vsx_lxvd2x2_le_<mode>): Likewise.
15922 (vsx_lxvd2x4_le_<mode>): Likewise.
15923 (vsx_stxvd2x2_le_<mode>): Likewise.
15924 (vsx_add<mode>3): Likewise.
15925 (vsx_sub<mode>3): Likewise.
15926 (vsx_mul<mode>3): Likewise.
15927 (vsx_div<mode>3): Likewise.
15928 (vsx_tdiv<mode>3_internal): Likewise.
15929 (vsx_fre<mode>2): Likewise.
15930 (vsx_neg<mode>2): Likewise.
15931 (vsx_abs<mode>2): Likewise.
15932 (vsx_nabs<mode>2): Likewise.
15933 (vsx_smax<mode>3): Likewise.
15934 (vsx_smin<mode>3): Likewise.
15935 (vsx_sqrt<mode>2): Likewise.
15936 (vsx_rsqrte<mode>2): Likewise.
15937 (vsx_tsqrt<mode>2_internal): Likewise.
15938 (vsx_fms<mode>4): Likewise.
15939 (vsx_nfma<mode>4): Likewise.
15940 (vsx_eq<mode>): Likewise.
15941 (vsx_gt<mode>): Likewise.
15942 (vsx_ge<mode>): Likewise.
15943 (vsx_eq<mode>_p): Likewise.
15944 (vsx_gt<mode>_p): Likewise.
15945 (vsx_ge<mode>_p): Likewise.
15946 (vsx_xxsel<mode>): Likewise.
15947 (vsx_xxsel<mode>_uns): Likewise.
15948 (vsx_copysign<mode>3): Likewise.
15949 (vsx_float<VSi><mode>2): Likewise.
15950 (vsx_floatuns<VSi><mode>2): Likewise.
15951 (vsx_fix_trunc<mode><VSi>2): Likewise.
15952 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15953 (vsx_x<VSv>r<VSs>i): Likewise.
15954 (vsx_x<VSv>r<VSs>ic): Likewise.
15955 (vsx_btrunc<mode>2): Likewise.
15956 (vsx_b2trunc<mode>2): Likewise.
15957 (vsx_floor<mode>2): Likewise.
15958 (vsx_ceil<mode>2): Likewise.
15959 (vsx_<VS_spdp_insn>): Likewise.
15960 (vsx_xscvspdp): Likewise.
15961 (vsx_xvcvspuxds): Likewise.
15962 (vsx_float_fix_<mode>2): Likewise.
15963 (vsx_set_<mode>): Likewise.
15964 (vsx_extract_<mode>_internal1): Likewise.
15965 (vsx_extract_<mode>_internal2): Likewise.
15966 (vsx_extract_<mode>_load): Likewise.
15967 (vsx_extract_<mode>_store): Likewise.
15968 (vsx_splat_<mode>): Likewise.
15969 (vsx_xxspltw_<mode>): Likewise.
15970 (vsx_xxspltw_<mode>_direct): Likewise.
15971 (vsx_xxmrghw_<mode>): Likewise.
15972 (vsx_xxmrglw_<mode>): Likewise.
15973 (vsx_xxsldwi_<mode>): Likewise.
15974 (vsx_xscvdpspn): Tighten constraints to only use register classes
15976 (vsx_xscvspdpn): Likewise.
15977 (vsx_xscvdpspn_scalar): Likewise.
15979 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15980 wj, and wk constraints.
15981 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15982 general purpose registers.
15984 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15986 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15987 DImode instead of wm. Use wk constraint for direct move of DFmode
15989 (extendsidi2_lfiwax): Likewise.
15990 (lfiwax): Likewise.
15991 (lfiwzx): Likewise.
15992 (movdi_internal64): Likewise.
15994 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15995 wk constraints. Make the wy constraint documentation match them
15998 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
16000 Replacement of isl_int by isl_val
16001 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16002 (compute_bounds_for_param): use isl_val instead of isl_int
16003 (compute_bounds_for_loop): likewise
16004 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16005 (build_linearized_memory_access): use isl_val instead of isl_int
16006 (pdr_stride_in_loop): likewise
16007 * graphite-optimize-isl.c:
16008 (getPrevectorMap): use isl_val instead of isl_int
16010 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16011 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16012 (extern the_isl_ctx): declare
16013 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16014 (extract_affine_gmp): likewise
16016 (build_loop_iteration_domains): likewise
16017 (add_param_constraints): likewise
16019 2014-08-11 Richard Biener <rguenther@suse.de>
16021 PR tree-optimization/62075
16022 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16023 handle uses in patterns.
16025 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16026 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16027 Anna Tikhonova <anna.tikhonova@intel.com>
16028 Ilya Tocar <ilya.tocar@intel.com>
16029 Andrey Turetskiy <andrey.turetskiy@intel.com>
16030 Ilya Verbin <ilya.verbin@intel.com>
16031 Kirill Yukhin <kirill.yukhin@intel.com>
16032 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16034 * common/config/i386/i386-common.c
16035 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16036 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16037 (ix86_handle_option): Handle OPT_mavx512vl.
16038 * config/i386/cpuid.h (bit_AVX512VL): Define.
16039 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16040 set -mavx512vl accordingly.
16041 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16042 OPTION_MASK_ISA_AVX512VL.
16043 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16044 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16045 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16046 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16047 * config/i386/i386.h (TARGET_AVX512VL): Define.
16048 (TARGET_AVX512VL_P(x)): Ditto.
16049 * config/i386/i386.opt: Add mavx512vl.
16051 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16053 PR tree-optimization/62073
16054 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16057 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16059 Anna Tikhonova <anna.tikhonova@intel.com>
16060 Ilya Tocar <ilya.tocar@intel.com>
16061 Andrey Turetskiy <andrey.turetskiy@intel.com>
16062 Ilya Verbin <ilya.verbin@intel.com>
16063 Kirill Yukhin <kirill.yukhin@intel.com>
16064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16066 * common/config/i386/i386-common.c
16067 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16068 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16069 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16070 (ix86_handle_option): Handle OPT_mavx512bw.
16071 * config/i386/cpuid.h (bit_AVX512BW): Define.
16072 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16073 set -mavx512bw accordingly.
16074 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16075 OPTION_MASK_ISA_AVX512BW.
16076 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16077 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16078 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16079 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16080 * config/i386/i386.h (TARGET_AVX512BW): Define.
16081 (TARGET_AVX512BW_P(x)): Ditto.
16082 * config/i386/i386.opt: Add mavx512bw.
16084 2014-08-11 Richard Biener <rguenther@suse.de>
16086 PR tree-optimization/62070
16087 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16088 Remove SSA checking.
16090 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16092 * asan.c (asan_check_flags): New enum.
16093 (build_check_stmt_with_calls): Removed function.
16094 (build_check_stmt): Split inlining logic to
16095 asan_expand_check_ifn.
16096 (instrument_derefs): Rename parameter.
16097 (instrument_mem_region_access): Rename parameter.
16098 (instrument_strlen_call): Likewise.
16099 (asan_expand_check_ifn): New function.
16100 (asan_instrument): Remove old code.
16101 (pass_sanopt::execute): Change handling of
16102 asan-instrumentation-with-call-threshold.
16103 (asan_clear_shadow): Fix formatting.
16104 (asan_function_start): Likewise.
16105 (asan_emit_stack_protection): Likewise.
16106 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16107 Update description.
16108 * internal-fn.c (expand_ASAN_CHECK): New function.
16109 * internal-fn.def (ASAN_CHECK): New internal function.
16110 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16111 Update description.
16112 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16113 * tree.c: Small comment fix.
16115 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16117 * gimple.c (gimple_call_fnspec): Support internal functions.
16118 (gimple_call_return_flags): Use const.
16119 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16120 * internal-fn.def: Add fnspec information.
16121 * internal-fn.h (internal_fn_fnspec): New function.
16122 (init_internal_fns): Declare new function.
16123 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16124 (init_internal_fns): New function.
16125 * tree-core.h: Update macro call.
16126 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16128 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16130 * lto-streamer.h (struct output_block::symbol): Change from
16131 struct symtab_node to plain symtab_node.
16132 (referenced_from_this_partition_p): Change first parameter
16133 from struct symtab_node to plain symtab_node.
16135 2014-08-10 Marek Polacek <polacek@redhat.com>
16138 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16140 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16142 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16143 DECL correctly; do not give up on types in static storage.
16145 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16147 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16149 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16151 * graphite-isl-ast-to-gimple.c:
16152 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16154 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16156 2014-08-08 Guozhi Wei <carrot@google.com>
16158 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16160 2014-08-08 Cary Coutant <ccoutant@google.com>
16162 * dwarf2out.c (get_skeleton_type_unit): Remove.
16163 (output_skeleton_debug_sections): Remove skeleton type units.
16164 (output_comdat_type_unit): Likewise.
16165 (dwarf2out_finish): Likewise.
16167 2014-08-07 Yi Yang <ahyangyi@google.com>
16169 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16171 2014-08-08 Richard Biener <rguenther@suse.de>
16173 * lto-streamer.h (struct lto_input_block): Make it a class
16174 with a constructor.
16175 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16176 (struct lto_function_header, struct lto_simple_header,
16177 struct lto_simple_header_with_strings,
16178 struct lto_decl_header, struct lto_function_header): Make
16179 a simple inheritance hieararchy. Remove unused fields.
16180 (struct lto_asm_header): Remove.
16181 * lto-streamer-out.c (produce_asm): Adjust.
16182 (lto_output_toplevel_asms): Likewise.
16183 (produce_asm_for_decls): Likewise.
16184 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16185 * data-streamer-in.c (string_for_index): Likewise.
16186 * ipa-inline-analysis.c (inline_read_section): Likewise.
16187 * ipa-prop.c (ipa_prop_read_section): Likewise.
16188 (read_replacements_section): Likewise.
16189 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16190 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16191 (lto_destroy_simple_input_block): Likewise.
16192 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16193 (lto_input_toplevel_asms): Likewise.
16195 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16197 Anna Tikhonova <anna.tikhonova@intel.com>
16198 Ilya Tocar <ilya.tocar@intel.com>
16199 Andrey Turetskiy <andrey.turetskiy@intel.com>
16200 Ilya Verbin <ilya.verbin@intel.com>
16201 Kirill Yukhin <kirill.yukhin@intel.com>
16202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16204 * common/config/i386/i386-common.c
16205 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16206 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16207 (ix86_handle_option): Handle OPT_mavx512dq.
16208 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16209 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16210 set -mavx512dq accordingly.
16211 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16212 OPTION_MASK_ISA_AVX512DQ.
16213 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16214 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16215 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16216 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16217 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16218 (TARGET_AVX512DQ_P(x)): Ditto.
16219 * config/i386/i386.opt: Add mavx512dq.
16221 2014-08-08 Richard Biener <rguenther@suse.de>
16223 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16224 target_percent, target_percent_s): Export.
16225 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16226 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16227 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16228 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16229 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16230 Move to gimple-fold.c.
16231 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16233 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16234 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16235 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16236 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16237 (rewrite_call_expr_array): Remove.
16238 (fold_builtin_sprintf_chk): Likewise.
16239 (fold_builtin_snprintf_chk): Likewise.
16240 (fold_builtin_varargs): Remove handling of sprintf_chk,
16241 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16242 (gimple_fold_builtin_sprintf_chk): Remove.
16243 (gimple_fold_builtin_snprintf_chk): Likewise.
16244 (gimple_fold_builtin_varargs): Likewise.
16245 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16246 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16247 * gimple.c (gimple_seq_add_seq_without_update): New function.
16248 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16249 * gimple-fold.c: Include output.h.
16250 (gsi_replace_with_seq_vops): New function, split out from ...
16251 (gimplify_and_update_call_from_tree): ... here.
16252 (replace_call_with_value): New function.
16253 (replace_call_with_call_and_fold): Likewise.
16254 (var_decl_component_p): Moved from builtins.c.
16255 (gimple_fold_builtin_memory_op): Moved from builtins.c
16256 fold_builtin_memory_op and rewritten to GIMPLE.
16257 (gimple_fold_builtin_memset): Likewise.
16258 (gimple_fold_builtin_strcpy): Likewise.
16259 (gimple_fold_builtin_strncpy): Likewise.
16260 (gimple_fold_builtin_strcat): Likewise.
16261 (gimple_fold_builtin_fputs): Likewise.
16262 (gimple_fold_builtin_memory_chk): Likewise.
16263 (gimple_fold_builtin_stxcpy_chk): Likewise.
16264 (gimple_fold_builtin_stxncpy_chk): Likewise.
16265 (gimple_fold_builtin_snprintf_chk): Likewise.
16266 (gimple_fold_builtin_sprintf_chk): Likewise.
16267 (gimple_fold_builtin_strlen): New function.
16268 (gimple_fold_builtin_with_strlen): New function split out from
16269 gimple_fold_builtin.
16270 (gimple_fold_builtin): Change signature and handle
16271 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16272 here. Call gimple_fold_builtin_with_strlen.
16273 (gimple_fold_call): Adjust.
16275 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16277 * calls.c (precompute_arguments): Check
16278 promoted_for_signed_and_unsigned_p and set the promoted mode.
16279 (promoted_for_signed_and_unsigned_p): New function.
16280 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16281 and set the promoted mode.
16282 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16283 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16284 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16287 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16289 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16290 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16291 (expand_call): Likewise.
16292 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16293 to get promoted mode.
16294 * combine.c (record_promoted_value): Skip > 0 comparison with
16295 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16296 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16297 of SUBREG_PROMOTED_UNSIGNED_P.
16298 (convert_modes): Likewise.
16299 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16300 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16301 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16302 SUBREG_PROMOTED_UNSIGNED_SET.
16303 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16304 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16305 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16306 SUBREG_PROMOTED_SET.
16307 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16308 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16309 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16310 of SUBREG_PROMOTED_UNSIGNED_P.
16311 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16312 (SUBREG_PROMOTED_SET): New define.
16313 (SUBREG_PROMOTED_GET): Likewise.
16314 (SUBREG_PROMOTED_SIGN): Likewise.
16315 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16316 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16317 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16318 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16319 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16320 (nonzero_bits1): Skip > 0 comparison with the results as
16321 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16322 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16323 of !SUBREG_PROMOTED_UNSIGNED_P.
16324 * simplify-rtx.c (simplify_unary_operation_1): Use new
16325 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16326 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16327 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16328 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16330 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16332 * ipa-devirt.c: Include gimple-pretty-print.h
16333 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16335 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16336 (get_polymorphic_call_info): Fix return value
16337 (type_change_info): New sturcture based on ipa-prop
16339 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16340 based on ipa-prop variant.
16341 (extr_type_from_vtbl_ptr_store): New function
16342 based on ipa-prop variant.
16343 (record_known_type): New function.
16344 (check_stmt_for_type_change): New function.
16345 (get_dynamic_type): New function.
16346 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16347 * tree-ssa-pre.c: ipa-utils.h
16348 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16349 machinery; sanity check with ipa-prop devirtualization.
16350 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16353 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16355 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16356 * alias.c, cfgexpand.c, cgraphbuild.c,
16357 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16358 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16359 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16360 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16361 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16362 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16363 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16364 dse.c, except.c, gengtype.c, gimple-expr.c,
16365 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16366 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16367 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16368 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16369 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16370 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16372 * pointer-set.c: Remove file.
16373 * pointer-set.h: Remove file.
16375 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16377 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16378 * config/arm/types.md (f_sels, f_seld): Delete.
16380 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16382 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16383 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16384 (aarch64_movdi_<mode>high): Likewise.
16385 (aarch64_mov<mode>high_di): Likewise.
16386 (aarch64_movdi_<mode>low): Likewise.
16387 (aarch64_mov<mode>low_di): Likewise.
16388 (aarch64_movtilow_tilow): Likewise.
16389 Add comment explaining usage of fp,simd attributes and of
16390 TARGET_FLOAT and TARGET_SIMD.
16392 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16393 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16395 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16396 Use MOVN when one of the half-words is 0xffff.
16398 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16400 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16402 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16404 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16405 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16406 (rfs_str): String corresponding to RFS_* constants.
16407 (rank_for_schedule_stats_t): New typedef.
16408 (rank_for_schedule_stats): New static variable.
16409 (rfs_result): New static function.
16410 (rank_for_schedule): Track statistics for deciding heuristics.
16411 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16413 (ready_sort): Use them for debug printouts.
16414 (schedule_block): Init statistics state. Print statistics on
16415 rank_for_schedule decisions.
16417 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16419 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16421 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16423 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16426 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16428 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16429 function to not conflict.
16430 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16431 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16432 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16433 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16434 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16437 2014-08-07 Marek Polacek <polacek@redhat.com>
16439 * fold-const.c (fold_binary_loc): Add folding of
16440 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16442 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16444 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16445 instead of type size.
16446 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16448 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16450 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16451 (*thumb1_movqi_insn): Likewise.
16452 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16454 2014-08-07 Tom de Vries <tom@codesourcery.com>
16456 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16457 (glibc_2_11_or_earlier): Remove effective-target keywords.
16459 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16461 * config/arm/arm.c (bdesc_2arg): Fix typo.
16462 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16464 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16466 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16468 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16471 * haifa-sched.c (advance_one_cycle): Fix dump.
16472 (schedule_block): Don't advance cycle if we are already at the
16473 beginning of the cycle.
16475 2014-08-06 Martin Jambor <mjambor@suse.cz>
16478 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16480 2014-08-06 Richard Biener <rguenther@suse.de>
16483 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16485 (lto_input_tree): Pop SCCs here.
16487 2014-08-06 Richard Biener <rguenther@suse.de>
16489 PR tree-optimization/61320
16490 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16491 handle misaligned loads.
16493 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16495 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16496 (aarch64_expand_vec_perm_const): Check for dup before zip.
16498 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16500 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16501 CONST_INT_P instead of GET_CODE and compare.
16502 (aarch64_select_cc_mode): Likewise.
16503 (aarch64_print_operand): Likewise.
16504 (aarch64_rtx_costs): Likewise.
16505 (aarch64_simd_valid_immediate): Likewise.
16506 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16507 (aarch64_simd_emit_pair_result_insn): Likewise.
16509 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16511 * gdbhooks.py (find_gcc_source_dir): New helper function.
16512 (class PassNames): New class, locating and parsing passes.def.
16513 (class BreakOnPass): New command "break-on-pass".
16515 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16517 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16520 2014-08-05 Richard Biener <rguenther@suse.de>
16522 PR rtl-optimization/61672
16523 * emit-rtl.h (mem_attrs_eq_p): Declare.
16524 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16525 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16526 * cfgcleanup.c (merge_memattrs): Likewise.
16527 Include emit-rtl.h.
16529 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16531 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16532 rather than singleton vectors.
16533 (vqdmlsls_lane_s32): Likewise.
16535 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16537 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16538 Use VSDQ_HSI mode iterator.
16539 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16540 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16541 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16542 Use BUILTIN_VDQHS macro.
16543 (sqrdmulh_laneq): Likewise.
16544 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16545 (vqdmlals_laneq_s32): Likewise.
16546 (vqdmlslh_laneq_s16): Likewise.
16547 (vqdmlsls_laneq_s32): Likewise.
16548 (vqdmulhh_laneq_s16): Likewise.
16549 (vqdmulhs_laneq_s32): Likewise.
16550 (vqrdmulhh_laneq_s16): Likewise.
16551 (vqrdmulhs_laneq_s32): Likewise.
16553 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16555 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16556 (vmuld_laneq_f64): Likewise.
16557 (vmuls_laneq_f32): Likewise.
16558 (vmul_n_f64): Likewise.
16559 (vmuld_lane_f64): Reimplement in C.
16560 (vmuls_lane_f32): Likewise.
16562 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16564 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16566 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16568 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16570 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16571 (rbitsi2): Likewise.
16572 (*arm_rev): Set predicable and predicable_short_it attributes.
16574 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16576 * convert.c (convert_to_integer): Guard transformation to lrint by
16579 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16581 * config/aarch64/aarch64-builtins.c
16582 (aarch64_simd_builtin_type_mode): Delete.
16583 (v8qi_UP): Remap to V8QImode.
16584 (v4hi_UP): Remap to V4HImode.
16585 (v2si_UP): Remap to V2SImode.
16586 (v2sf_UP): Remap to V2SFmode.
16587 (v1df_UP): Remap to V1DFmode.
16588 (di_UP): Remap to DImode.
16589 (df_UP): Remap to DFmode.
16590 (v16qi_UP):V16QImode.
16591 (v8hi_UP): Remap to V8HImode.
16592 (v4si_UP): Remap to V4SImode.
16593 (v4sf_UP): Remap to V4SFmode.
16594 (v2di_UP): Remap to V2DImode.
16595 (v2df_UP): Remap to V2DFmode.
16596 (ti_UP): Remap to TImode.
16597 (ei_UP): Remap to EImode.
16598 (oi_UP): Remap to OImode.
16599 (ci_UP): Map to CImode.
16600 (xi_UP): Remap to XImode.
16601 (si_UP): Remap to SImode.
16602 (sf_UP): Remap to SFmode.
16603 (hi_UP): Remap to HImode.
16604 (qi_UP): Remap to QImode.
16605 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16606 (VAR1): Build builtin name.
16607 (aarch64_init_simd_builtins): Remove dead code.
16609 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16611 * graphite-isl-ast-to-gimple.c:
16612 (set_options): New function.
16613 (scop_to_isl_ast): Add calling of set_options.
16615 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16617 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16618 (analyze_iv_to_split_insn): Don't initialize them.
16619 (get_ivts_expr): Removed.
16620 (allocate_basic_variable, insert_base_initialization): Use
16621 SET_SRC instead of *get_ivts_expr.
16622 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16624 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16626 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16627 (translate_isl_ast_for_loop): Add checking of the
16628 flag_loop_parallelize_all.
16629 (ast_build_before_for): New function.
16630 (scop_to_isl_ast): Add checking of the
16631 flag_loop_parallelize_all.
16632 * graphite-dependences.c: Move the defenition of the
16633 scop_get_dependences from graphite-optimize-isl.c to this file.
16634 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16635 (carries_deps): Add checking of the x's value.
16636 * graphite-optimize-isl.c: Move the defenition of the
16637 scop_get_dependences to graphite-dependences.c.
16638 * graphite-poly.h: Add declarations of scop_get_dependences
16641 2014-08-04 Rohit <rohitarulraj@freescale.com>
16644 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16646 (alt_reg_names): Likewise.
16647 (rs6000_dwarf_register_span): For SPE high registers, replace
16648 dwarf register numbers with GCC hard register numbers.
16649 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16650 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16651 register number for the corresponding GCC hard register number.
16652 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16653 newly added GCC hard register numbers for SPE high registers.
16654 (DWARF_FRAME_REGISTERS): Likewise.
16655 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16656 (DWARF_FRAME_REGNUM): Likewise.
16657 (FIXED_REGISTERS): Likewise.
16658 (CALL_USED_REGISTERS): Likewise.
16659 (CALL_REALLY_USED_REGISTERS): Likewise.
16660 (REG_ALLOC_ORDER): Likewise.
16661 (enum reg_class): Likewise.
16662 (REG_CLASS_NAMES): Likewise.
16663 (REG_CLASS_CONTENTS): Likewise.
16664 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16666 2014-08-04 Richard Biener <rguenther@suse.de>
16668 * gimple-fold.h (gimple_fold_builtin): Remove.
16669 * gimple-fold.c (gimple_fold_builtin): Make static.
16670 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16671 fold_stmt, not gimple_fold_builtin.
16673 2014-08-04 Martin Liska <mliska@suse.cz>
16675 * cgraph.h (csi_end_p): Removed.
16676 (csi_next): Likewise.
16677 (csi_node): Likewise.
16678 (csi_start): Likewise.
16679 (cgraph_node_in_set_p): Likewise.
16680 (cgraph_node_set_size): Likewise.
16681 (vsi_end_p): Likewise.
16682 (vsi_next): Likewise.
16683 (vsi_node): Likewise.
16684 (vsi_start): Likewise.
16685 (varpool_node_set_size): Likewise.
16686 (cgraph_node_set_nonempty_p): Likewise.
16687 (varpool_node_set_nonempty_p): Likewise.
16688 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16690 * ipa-inline-transform.c: Likewise.
16691 * ipa-utils.c (cgraph_node_set_new): Removed.
16692 (cgraph_node_set_add): Likewise.
16693 (cgraph_node_set_remove): Likewise.
16694 (cgraph_node_set_find): Likewise.
16695 (dump_cgraph_node_set): Likewise.
16696 (debug_cgraph_node_set): Likewise.
16697 (free_cgraph_node_set): Likewise.
16698 (varpool_node_set_new): Likewise.
16699 (varpool_node_set_add): Likewise.
16700 (varpool_node_set_remove): Likewise.
16701 (varpool_node_set_find): Likewise.
16702 (dump_varpool_node_set): Likewise.
16703 (free_varpool_node_set): Likewise.
16704 (debug_varpool_node_set): Likewise.
16705 * tree-emutls.c (struct tls_var_data):
16706 (emutls_index): Removed.
16707 (emutls_decl): Likewise.
16708 (gen_emutls_addr): Function implementation uses newly added
16709 hash_map<varpool_node *, tls_var_data>.
16710 (clear_access_vars): Likewise.
16711 (create_emultls_var): Likewise.
16712 (ipa_lower_emutls): Likewise.
16713 (reset_access): New function.
16715 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16717 * config/i386/i386.c (ix86_option_override_internal): Add
16718 PTA_RDRND and PTA_MOVBE for bdver4.
16720 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16721 James Greenhalgh <james.greenhalgh@arm.com>
16723 * doc/md.texi (clrsb): Document.
16724 (clz): Change reference to x into operand 1.
16726 (popcount): Likewise.
16728 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16731 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16732 move to subtarget in serial version if result is ignored.
16734 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16735 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16737 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16738 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16739 (sched_analyze_insn): Update use of try_group_insn to
16740 sched_macro_fuse_insns.
16741 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16742 arguments that are not conditional jumps.
16744 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16746 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16747 family information. Handle BTVER2 cpu with cpuid family value.
16749 2014-08-04 Tom de Vries <tom@codesourcery.com>
16751 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16752 (glibc_2_11_or_earlier): Document effective-target keywords.
16754 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16756 * ipa-devirt.c (odr_type_warn_count): Add type.
16757 (possible_polymorphic_call_targets): Set it.
16758 (ipa_devirt): Use it.
16760 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16762 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16764 * ipa-devirt.c: Include hash-map.h
16765 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16766 (clear_speculation): Break out of ...
16767 (get_class_context): ... here; speed up handling obviously useless
16769 (odr_type_warn_count, decl_warn_count): New structures.
16770 (final_warning_record): New structure.
16771 (final_warning_records): New static variable.
16772 (possible_polymorphic_call_targets): Cleanup handling of
16773 speculative info; do not build speculation when user do not care;
16774 record info about warnings when asked for.
16775 (add_decl_warning): New function.
16776 (type_warning_cmp): New function.
16777 (decl_warning_cmp): New function.
16778 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16779 (gate): Enable pass when warnings are requested.
16780 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16783 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16785 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16787 (hash_map::remove): New method.
16788 (hash_map::traverse): New method.
16789 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16790 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16791 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16792 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16793 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16794 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16797 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16799 * hash-set.h: new File.
16800 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16801 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16802 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16803 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16804 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16805 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16806 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16807 varpool.c: Use hash_set instead of pointer_set.
16809 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16811 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16813 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16815 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16816 for frame access when strict_p is false.
16818 2014-08-01 Renlin Li <renlin.li@arm.com>
16819 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16821 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16822 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16823 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16825 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16827 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16828 aarch64_mem_pair_offset.
16830 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16832 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16834 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16835 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16837 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16839 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16841 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16843 PR regression/61510
16844 * cgraphunit.c (analyze_functions): Use get_create rather than get
16845 for decls which are clones of abstract functions.
16847 2014-08-01 Martin Liska <mliska@suse.cz>
16849 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16850 * ipa-prop.h (count_formal_params): Global function created from static.
16851 * ipa-prop.c (count_formal_params): Likewise.
16852 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16853 profiles for semantically equivalent functions.
16854 * passes.c (do_per_function): If we load body of a function
16855 during WPA, this condition should behave same.
16856 * varpool.c (ctor_for_folding): More tolerant assert for variable
16857 aliases created during WPA.
16859 2014-08-01 Martin Liska <mliska@suse.cz>
16861 * doc/invoke.texi (Options That Control Optimization): Documentation
16862 for -foptimize-strlen introduced. Optimization levels default options
16865 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16867 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16868 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16869 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16871 * stor-layout.h (min_align_of_type): New prototype.
16872 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16873 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16875 * ubsan.c: Include builtins.h.
16876 (ubsan_expand_bounds_ifn): Change return type to bool,
16877 always return true.
16878 (ubsan_expand_null_ifn): Change return type to bool, change
16879 argument to gimple_stmt_iterator *. Handle both null and alignment
16880 sanitization, take type from ckind argument's type rather than
16882 (instrument_member_call): Removed.
16883 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16884 Handle both null and alignment sanitization, don't say whole
16885 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16886 call instead of 2 argument.
16887 (instrument_null): Adjust instrument_mem_ref caller. Don't
16888 instrument calls here.
16889 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16890 like SANITIZE_NULL.
16891 * stor-layout.c (min_align_of_type): New function.
16892 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16893 Or it into SANITIZE_UNDEFINED.
16894 * doc/invoke.texi (-fsanitize=alignment): Document.
16896 2014-07-31 Andi Kleen <ak@linux.intel.com>
16898 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16900 2014-07-31 Andi Kleen <ak@linux.intel.com>
16902 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16904 (vn_reference_compute_hash): Dito.
16905 (vn_nary_op_compute_hash): Dito.
16906 (vn_phi_compute_hash): Dito.
16907 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16909 2014-07-31 Andi Kleen <ak@linux.intel.com>
16911 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16912 Rename to inchash:add_expr_commutative. Convert to inchash.
16913 (iterative_hash_hashable_expr): Rename to
16914 inchash:add_hashable_expr. Convert to inchash.
16915 (avail_expr_hash): Dito.
16917 2014-07-31 Andi Kleen <ak@linux.intel.com>
16919 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16920 Convert to inchash.
16922 2014-07-31 Andi Kleen <ak@linux.intel.com>
16924 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16926 2014-07-31 Andi Kleen <ak@linux.intel.com>
16928 * Makefile.in (OBJS): Add rtlhash.o
16929 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16930 (loc_checksum): Dito.
16931 (loc_checksum_ordered): Dito.
16932 (hash_loc_operands): Dito.
16934 (hash_loc_list): Dito.
16935 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16936 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16937 * rtlhash.c: New file.
16938 * rtlhash.h: New file.
16940 2014-07-31 Andi Kleen <ak@linux.intel.com>
16942 * inchash.h (inchash): Change inchash class to namespace.
16943 (class hash): ... Rename from inchash.
16944 (add_object): Move from macro to class template.
16945 * lto-streamer-out.c (hash_tree): Change inchash
16947 * tree.c (build_type_attribute_qual_variant): Dito.
16948 (type_hash_list): Dito.
16949 (attribute_hash_list): Dito.
16950 (iterative_hstate_expr): Rename to inchash::add_expr
16951 (build_range_type_1): Change inchash to inchash::hash
16952 and use hash::add_expr.
16953 (build_array_type_1): Dito.
16954 (build_function_type): Dito
16955 (build_method_type_directly): Dito.
16956 (build_offset_type): Dito.
16957 (build_complex_type): Dito.
16958 (make_vector_type): Dito.
16959 * tree.h (iterative_hash_expr): Dito.
16961 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16963 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16965 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16967 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16968 correct alphabetical position.
16969 (vpaddd_f64): Rewrite using builtins.
16970 (vpaddd_s64): Move to correct alphabetical position.
16973 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16976 * config/sh/sh.c (sh_legitimate_address_p,
16977 sh_legitimize_reload_address): Handle reg+reg address modes when
16978 ALLOW_INDEXED_ADDRESS is false.
16979 * config/sh/predicates.md (general_movsrc_operand,
16980 general_movdst_operand): Likewise.
16982 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16984 * config/aarch64/aarch64-builtins.c
16985 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16988 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16990 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16991 the generated mask based on BYTES_BIG_ENDIAN.
16992 (aarch64_simd_check_vect_par_cnst_half): New.
16993 * config/aarch64/aarch64-protos.h
16994 (aarch64_simd_check_vect_par_cnst_half): New.
16995 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16996 the check out to aarch64_simd_check_vect_par_cnst_half.
16997 (vect_par_cnst_lo_half): Likewise.
16998 * config/aarch64/aarch64-simd.md
16999 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17000 (move_hi_quad_<mode>): Always generate a low mask.
17002 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17004 * doc/invoke.texi (AVR Options): Add documentation about
17005 __AVR_DEVICE_NAME__ built-in macro.
17007 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
17010 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17011 constraints are satisfied.
17012 (<shift>di3_neon): Likewise.
17014 2014-07-31 Richard Biener <rguenther@suse.de>
17016 PR tree-optimization/61964
17017 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17018 by structural equality.
17020 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17022 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17023 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17024 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17026 * gcc.c (sanitize_spec_function): Support new option.
17027 (SANITIZER_SPEC): Remove now redundant check.
17028 * opts.c (common_handle_option): Support new option.
17029 (finish_options): Check for incompatibilities.
17030 * toplev.c (process_options): Split userspace-specific checks.
17032 2014-07-31 Richard Biener <rguenther@suse.de>
17034 * lto-streamer.h (struct output_block): Remove global.
17035 (struct data_in): Remove labels, num_named_labels and
17036 num_unnamed_labels.
17037 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17038 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17040 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17043 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17044 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17045 (isolate_path): New argument to avoid inserting a trap.
17046 (find_implicit_erroneous_behaviour): Handle returning the address
17047 of a local variable.
17048 (find_explicit_erroneous_behaviour): Likewise.
17050 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17053 * toplev.c (init_random_seed): Move piece of code never called to
17055 (set_random_seed): see above.
17057 2014-07-31 Tom de Vries <tom@codesourcery.com>
17059 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17061 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17063 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17064 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17066 2014-07-31 Richard Biener <rguenther@suse.de>
17068 * data-streamer.h (streamer_write_data_stream): Declare here,
17070 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17071 * lto-cgraph.c (lto_output_node): Adjust.
17072 (lto_output_varpool_node): Likewise.
17073 * data-streamer-out.c (streamer_string_index): Likewise.
17074 (streamer_write_data_stream, lto_append_block): Move from ...
17075 * lto-section-out.c (lto_output_data_stream,
17076 lto_append_block): ... here.
17078 2014-07-30 Mike Stump <mikestump@comcast.net>
17080 * configure.ac: Also check for popen.
17081 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17082 * configure: Regenerate.
17083 * config.in: Regenerate.
17085 2014-07-30 Martin Jambor <mjambor@suse.cz>
17087 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17088 parameter to gimple.
17090 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17092 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17093 address as second parameter to __tpf_eh_return routine.
17095 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17097 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17100 2014-07-30 Tom Tromey <tromey@redhat.com>
17103 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17104 * doc/extend.texi (Type Attributes): Document designated_init
17107 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17109 * graphite-isl-ast-to-gimple.c:
17110 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17111 (gcc_expression_from_isl_expression): Pass type to
17112 gcc_expression_from_isl_ast_expr_id.
17114 2014-07-30 Richard Biener <rguenther@suse.de>
17116 * lto-streamer.h (lto_write_data): New function.
17117 * langhooks.c (lhd_append_data): Do not free block.
17118 * lto-section-out.c (lto_write_data): New function writing
17119 raw data to the current section.
17120 (lto_write_stream): Adjust for langhook semantic change.
17121 (lto_destroy_simple_output_block): Write header directly.
17122 * lto-opts.c (lto_write_options): Write options directly.
17123 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17124 (lto_output_toplevel_asms): Likewise.
17125 (copy_function_or_variable): Copy data directly.
17126 (write_global_references): Output index table directly.
17127 (lto_output_decl_state_refs): Likewise.
17128 (write_symbol): Write data directly.
17129 (produce_symtab): Adjust.
17130 (produce_asm_for_decls): Output header and refs directly.
17132 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17134 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17135 to speculative_targets
17136 (get_class_context): Fix handling of contextes without outer type;
17137 avoid matching non-polymorphic types in LTO.
17138 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17139 parameter to speculative_targetsp; handle speculation.
17140 (dump_possible_polymorphic_call_targets): Update dumping.
17142 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17144 * common.opt (Wodr): Enable by default.
17146 2014-07-29 Olivier Hainque <hainque@adacore.com>
17148 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17150 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17153 * gengtype.c (strtoken): New function.
17154 (create_user_defined_type): Replace strtok with strtoken.
17156 2014-07-29 Nathan Sidwell <nathan@acm.org>
17158 * gcov-io.c (gcov_var): Make hidden.
17159 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17160 (gcov_do_dump): Declare.
17161 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17163 2014-07-29 Martin Jambor <mjambor@suse.cz>
17165 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17166 parameter to gimple.
17167 (sra_modify_assign): Likewise.
17169 2014-07-29 Richard Biener <rguenther@suse.de>
17171 PR middle-end/52478
17172 * expr.c (expand_expr_real_2): Revert last change.
17174 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17176 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17177 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17178 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17180 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17181 (contains_type_p): Forward declare.
17182 (polymorphic_call_target_hasher::hash): Hash speculative info.
17183 (polymorphic_call_target_hasher::equal): Compare speculative info.
17184 (get_class_context): Handle speuclation.
17185 (contains_type_p): Update.
17186 (get_polymorphic_call_info_for_decl): Update.
17187 (walk_ssa_copies): Break out from ...
17188 (get_polymorphic_call_info): ... here; set speculative context
17190 * ipa-prop.c (ipa_write_indirect_edge_info,
17191 ipa_read_indirect_edge_info): Stream speculative context.
17192 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17193 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17194 SPECULATIVE_MAYBE_DERIVED_TYPE).
17195 (possible_polymorphic_call_targets overriders): Update.
17196 (dump_possible_polymorphic_call_targets overriders): Update.
17197 (dump_possible_polymorphic_call_target_p overriders): Update.
17199 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17201 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17202 ipa-devirt path; fix thinko there.
17204 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17206 * config/i386/i386.c (ix86_return_in_memory): Replace one
17207 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17209 2014-07-28 Marek Polacek <polacek@redhat.com>
17211 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17213 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17215 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17216 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17217 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17218 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17219 (USE_LD_AS_NEEDED): Likewise.
17220 (ASM_APP_ON): Likewise.
17221 (ASM_APP_OFF): Likewise.
17222 (TARGET_POSIX_IO): Likewise.
17223 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17224 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17225 (USE_LD_AS_NEEDED): Likewise.
17226 (ASM_APP_ON): Likewise.
17227 (ASM_APP_OFF): Likewise.
17228 (TARGET_POSIX_IO): Likewise.
17230 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17232 PR middle-end/61734
17233 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17234 operators other than the equality operators.
17236 2014-07-28 Richard Biener <rguenther@suse.de>
17238 PR middle-end/52478
17239 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17240 sure to register SImode ones, not only >= word_mode ones.
17241 * expr.c (expand_expr_real_2): When expanding -ftrapv
17242 binops do not use OPTAB_LIB_WIDEN.
17244 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17246 PR middle-end/61919
17247 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17248 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17249 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17250 inserting them in the insn stream.
17252 2014-07-28 Marek Polacek <polacek@redhat.com>
17254 PR middle-end/61913
17255 * common.opt (Wodr): Add Var.
17257 2014-07-28 Richard Biener <rguenther@suse.de>
17259 PR tree-optimization/61921
17260 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17261 if there is a varpool node before dereferencing it.
17263 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17265 * graphite-sese-to-poly.c:
17266 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17267 id of the pbb), which contains pointer to the pbb1.
17269 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17271 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17273 * graphite-isl-ast-to-gimple.c:
17274 (graphite_create_new_guard): New function.
17275 (translate_isl_ast_node_if): New function.
17276 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17278 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17280 2014-07-27 Anthony Green <green@moxielogic.com>
17282 * config.gcc: Add moxie-*-moxiebox* configuration.
17283 * config/moxie/moxiebox.h: New file.
17285 2014-07-26 Andrew Pinski <apinski@cavium.com>
17287 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17288 from the read only register.
17290 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17292 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17293 as the allocation class if it isn't likely to be spilled.
17295 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17297 * rtl.h (tls_referenced_p): Declare.
17298 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17299 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17300 (mips_cannot_force_const_mem): Use tls_referenced_p.
17301 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17302 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17303 instead of pa_tls_referenced_p.
17304 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17305 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17306 (pa_legitimate_constant_p): Likewise.
17307 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17308 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17309 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17310 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17311 rs6000_tls_referenced_p.
17312 (rs6000_tls_symbol_ref_1): Delete.
17314 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17317 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17318 Optimize inverse of a VEC_CONCAT.
17320 2014-07-25 Xinliang David Li <davidxl@google.com>
17322 * params.def: New parameter.
17323 * coverage.c (get_coverage_counts): Check new flag.
17324 (coverage_compute_profile_id): Check new flag.
17325 (coverage_begin_function): Check new flag.
17326 (coverage_end_function): Check new flag.
17327 * value-prof.c (coverage_node_map_initialized_p): New function.
17328 (init_node_map): Populate map with all functions.
17329 * doc/invoke.texi: Document new parameter.
17331 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17332 Richard Biener <rguenther@suse.de>
17334 * lto-streamer-out.c (struct sccs): Turn to ...
17335 (class DFS): ... this one; refactor the DFS walk so it can
17336 be re-done on per-SCC basis.
17337 (DFS::DFS): New constructor.
17338 (DFS::~DFS): New destructor.
17339 (hash_tree): Add new MAP argument holding in-SCC hash values;
17340 remove POINTER_TYPE hashing hack.
17341 (scc_entry_compare): Rename to ...
17342 (DFS::scc_entry_compare): ... this one.
17343 (hash_scc): Rename to ...
17344 (DFS::hash_scc): ... this one; pass output_block instead
17345 of streamer_cache; work harder to get unique and stable SCC
17347 (DFS_write_tree): Rename to ...
17348 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17349 (lto_output_tree): Update.
17351 2014-07-25 Andi Kleen <ak@linux.intel.com>
17353 * lto-streamer-out.c (hash_tree): Convert to inchash.
17355 2014-07-25 Andi Kleen <ak@linux.intel.com>
17357 * tree.c (build_type_attribute_qual_variant): Use inchash.
17358 (type_hash_list): Dito.
17359 (attribute_hash_list): Dito
17360 (iterative_hstate_expr): Dito.
17361 (iterative_hash_expr): Dito.
17362 (build_range_type_1): Dito.
17363 (build_array_type_1): Dito.
17364 (build_function_type): Dito.
17365 (build_method_type_directly): Dito.
17366 (build_offset_type): Dito.
17367 (build_complex_type): Dito.
17368 (make_vector_type): Dito.
17369 * tree.h (iterative_hash_expr): Add compat wrapper.
17370 (iterative_hstate_expr): Add.
17372 2014-07-25 Andi Kleen <ak@linux.intel.com>
17374 * Makefile.in (OBJS): Add inchash.o.
17375 (PLUGIN_HEADERS): Add inchash.h.
17376 * ipa-devirt.c: Include inchash.h.
17377 * lto-streamer-out.c: Dito.
17378 * tree-ssa-dom.c: Dito.
17379 * tree-ssa-pre.c: Dito.
17380 * tree-ssa-sccvn.c: Dito.
17381 * tree-ssa-tail-merge.c: Dito.
17383 * tree.c (iterative_hash_hashval_t): Move to ...
17384 (iterative_hash_host_wide_int): Move to ...
17385 * inchash.c: Here. New file.
17386 * tree.h (iterative_hash_hashval_t): Move to ...
17387 (iterative_hash_host_wide_int): Move to ...
17388 * inchash.h: Here. New file.
17390 2014-07-25 Richard Biener <rguenther@suse.de>
17392 PR middle-end/61762
17393 PR middle-end/61894
17394 * fold-const.c (native_encode_int): Add and handle offset
17395 parameter to do partial encodings of expr.
17396 (native_encode_fixed): Likewise.
17397 (native_encode_real): Likewise.
17398 (native_encode_complex): Likewise.
17399 (native_encode_vector): Likewise.
17400 (native_encode_string): Likewise.
17401 (native_encode_expr): Likewise.
17402 * fold-const.c (native_encode_expr): Add offset parameter
17404 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17405 (fold_ctor_reference): Handle all reads from tcc_constant
17408 2014-07-25 Richard Biener <rguenther@suse.de>
17410 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17411 as possibly unused.
17413 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17415 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17417 2014-07-24 Kyle McMartin <kyle@redhat.com>
17419 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17421 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17423 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17425 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17427 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17428 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17429 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17431 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17433 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17434 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17435 aggregate types. Instead, *all* aggregate types, except for single-
17436 element or homogeneous float/vector aggregates, are quadword-aligned
17437 if required by their type alignment. Issue -Wpsabi note when a type
17438 is now treated differently than before.
17440 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17442 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17443 does not fit fully into floating-point registers, and there is still
17444 space in the register parameter area, use GPRs to pass those parts
17445 of the argument. Issue -Wpsabi note if any parameter is now treated
17446 differently than before.
17447 (rs6000_arg_partial_bytes): Update.
17449 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17451 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17453 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17455 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17456 * toplev.c (initialize_rtl): Don't use it. Move previously
17457 "language-dependent" calls to...
17458 (backend_init): ...here.
17459 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17460 Assert that RTL initialization hasn't happend yet.
17462 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17464 PR rtl-optimization/61629
17465 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17466 they have already been initialized.
17468 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17470 PR middle-end/61268
17471 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17472 DECL_INCOMING_RTL and entry_parm.
17473 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17474 * calls.c (load_register_parameters): Likewise argument values.
17475 (emit_library_call_value_1, store_one_arg): Likewise argument
17477 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17479 * explow.c (validize_mem): Modify the argument in-place.
17481 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17483 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17484 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17486 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17488 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17489 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17491 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17493 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17494 (aarch64_save_callee_saves): New parameter "skip_wb".
17495 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17497 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17499 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17501 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17503 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17505 * graphite-isl-ast-to-gimple.c:
17506 (graphite_create_new_loop): Add calling of isl_id_free to properly
17507 decrement reference counts.
17509 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17511 2014-07-24 Martin Liska <mliska@suse.cz>
17512 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17514 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17515 (rs6000_code_end): Likewise.
17517 2014-07-24 Martin Liska <mliska@suse.cz>
17519 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17520 symtab_node funtion used.
17521 (rs6000_xcoff_declare_object_name): Likewise.
17523 2014-07-24 Martin Liska <mliska@suse.cz>
17525 * cgraphunit.c (compile): Correct function used.
17527 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17529 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17532 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17535 * varasm.c (bss_initializer_p): Handle offlined ctors.
17536 (align_variable, get_variable_align): Likewise.
17537 (make_decl_one_only): Likewise.
17538 (default_binds_local_p_1): Likewise.
17539 (decl_binds_to_current_def_p): Likewise.
17540 (get_variable_section): Get constructor if it is offlined.
17541 (assemble_variable_contents): Sanity check that the caller
17542 streamed in the ctor in LTO.
17544 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17546 * graphite-isl-ast-to-gimple.c:
17547 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17548 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17549 isl_ast_op_pdiv_r to the different case.
17551 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17553 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17555 PR middle-end/61876
17556 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17557 when flag_errno_math is on.
17559 2014-07-24 Martin Liska <mliska@suse.cz>
17561 * cgraph.h (varpool_node):
17562 (availability get_availability (void)):
17563 created from cgraph_variable_initializer_availability
17564 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17565 created from: cgraph_variable_initializer_availability
17566 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17567 (void finalize_named_section_flags (void)):
17568 created from varpool_finalize_named_section_flags
17569 (bool assemble_decl (void)): created from varpool_assemble_decl
17570 (void analyze (void)): created from varpool_analyze_node
17571 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17572 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17573 (void remove_initializer (void)): created from varpool_remove_initializer
17574 (tree get_constructor (void)): created from varpool_get_constructor
17575 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17576 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17577 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17578 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17579 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17580 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17581 (static bool output_variables (void)): created from varpool_output_variables
17582 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17583 created from varpool_extra_name_alias
17584 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17585 (static void dump_varpool (FILE *f)): created from dump_varpool
17586 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17587 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17588 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17589 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17590 (void assemble_aliases (void)): created from assemble_aliases
17592 2014-07-24 Martin Liska <mliska@suse.cz>
17594 * cgraph.h (symtab_node):
17595 (void register_symbol (void)): created from symtab_register_node
17596 (void remove (void)): created from symtab_remove_node
17597 (void dump (FILE *f)): created from dump_symtab_node
17598 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17599 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17600 (struct ipa_ref *add_reference (symtab_node *referred_node,
17601 enum ipa_ref_use use_type)): created from add_reference
17602 (struct ipa_ref *add_reference (symtab_node *referred_node,
17603 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17604 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17605 gimple stmt)): created from maybe_add_reference
17606 (bool semantically_equivalent_p (symtab_node *target)): created from
17607 symtab_semantically_equivalent_p
17608 (void remove_from_same_comdat_group (void)): created from
17609 remove_from_same_comdat_group
17610 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17611 symtab_add_to_same_comdat_group
17612 (void dissolve_same_comdat_group_list (void)): created from
17613 symtab_dissolve_same_comdat_group_list
17614 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17615 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17616 created from symtab_alias_ultimate_target
17617 (inline symtab_node *next_defined_symbol (void)): created from
17618 symtab_next_defined_symbol
17619 (bool resolve_alias (symtab_node *target)): created from
17620 symtab_resolve_alias
17621 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17622 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17623 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17624 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17625 (void set_section (const char *section)): created from set_section_1
17626 (enum availability get_availability (void)): created from symtab_node_availability
17627 (void make_decl_local (void)): created from symtab_make_decl_local
17628 (bool real_symbol_p (void)): created from symtab_read_node
17629 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17630 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17631 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17632 symtab_in_same_comdat_p;
17633 (bool address_taken_from_non_vtable_p (void)): created from
17634 address_taken_from_non_vtable_p
17635 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17636 (static void dump_table (FILE *)): created from dump_symtab
17637 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17638 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17639 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17640 symtab_used_from_object_file_p
17641 (void dump_base (FILE *)): created from dump_symtab_base
17642 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17643 (void unregister (void)): created from symtab_unregister_node
17644 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17645 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17646 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17647 symtab_nonoverwritable_alias_1
17648 * cgraph.h (cgraph_node):
17649 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17650 created from cgraph_remove_node_and_inline_clones
17651 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17652 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17653 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17654 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17655 created from cgraph_function_node
17656 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17657 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17658 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17659 created from cgraph_create_clone
17660 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17661 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17662 created from cgraph_create_virtual_clone
17663 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17664 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17665 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17666 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17667 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17668 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17669 created from cgraph_function_version_info
17670 (struct cgraph_function_version_info *insert_new_function_version (void)):
17671 created from insert_new_cgraph_node_version
17672 (struct cgraph_function_version_info *function_version (void)): created from
17673 get_cgraph_node_version
17674 (void analyze (void)): created from analyze_function
17675 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17676 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17677 tree real_alias) cgraph_add_thunk
17678 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17679 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17680 created from cgraph_function_or_thunk_node
17681 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17682 created from expand_thunk
17683 (void reset (void)): created from cgraph_reset_node
17684 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17685 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17686 (void remove (void)): created from cgraph_remove_node
17687 (void dump (FILE *f)): created from dump_cgraph_node
17688 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17689 (bool get_body (void)): created from cgraph_get_body
17690 (void release_body (void)): created from cgraph_release_function_body
17691 (void unnest (void)): created from cgraph_unnest_node
17692 (void make_local (void)): created from cgraph_make_node_local
17693 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17694 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17695 gcov_type count, int freq)): created from cgraph_create_edge
17696 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17697 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17698 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17699 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17700 created from cgraph_create_edge_including_clones
17701 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17702 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17703 (void remove_callers (void)): created from cgraph_node_remove_callers
17704 (void remove_callees (void)): created from cgraph_node_remove_callees
17705 (enum availability get_availability (void)): created from cgraph_function_body_availability
17706 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17707 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17708 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17709 (void call_duplication_hooks (cgraph_node *node2)): created from
17710 cgraph_call_node_duplication_hooks
17711 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17712 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17713 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17714 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17715 (void call_function_insertion_hooks (void)):
17716 created from cgraph_call_function_insertion_hooks
17717 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17718 (bool local_p (void)): created from cgraph_local_node
17719 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17720 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17721 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17722 (inline bool only_called_directly_or_aliased_p (void)):
17723 created from cgraph_only_called_directly_or_aliased_p
17724 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17725 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17726 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17727 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17728 (bool can_remove_if_no_direct_calls_p (void)):
17729 created from cgraph_can_remove_if_no_direct_calls_p
17730 (inline bool has_gimple_body_p (void)):
17731 created from cgraph_function_with_gimple_body_p
17732 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17733 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17734 (static inline void debug_cgraph (void)): created from debug_cgraph
17735 (static void record_function_versions (tree decl1, tree decl2)):
17736 created from record_function_versions
17737 (static void delete_function_version (tree decl)):
17738 created from delete_function_version
17739 (static void add_new_function (tree fndecl, bool lowered)):
17740 created from cgraph_add_new_function
17741 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17742 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17743 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17744 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17745 (static cgraph_node *get_for_asmname (tree asmname)):
17746 created from cgraph_node_for_asm
17747 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17748 created from cgraph_same_body_alias
17749 (static bool used_from_object_file_p_worker (cgraph_node *node,
17750 void *): new function
17751 (static bool non_local_p (cgraph_node *node, void *)):
17752 created from cgraph_non_local_node_p_1
17753 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17754 created from verify_cgraph
17755 (static bool make_local (cgraph_node *node, void *)):
17756 created from cgraph_make_node_local
17757 (static cgraph_node *create_alias (tree alias, tree target)):
17758 created from cgraph_create_function_alias
17759 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17760 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17761 created from cgraph_create_edge_1
17762 * cgraph.h (varpool_node):
17763 (void remove (void)): created from varpool_remove_node
17764 (void dump (FILE *f)): created from dump_varpool_node
17766 2014-07-24 Richard Biener <rguenther@suse.de>
17769 * tree-ssa-structalias.c (create_variable_info_for_1):
17770 Use varpool_get_constructor.
17771 (create_variable_info_for): Likewise.
17773 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17775 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17776 subtract outgoing area size when restoring stack_pointer_rtx.
17778 2014-07-24 Nick Clifton <nickc@redhat.com>
17780 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17781 that operations are taking place in parallel.
17782 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17784 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17786 * omp-low.c (extract_omp_for_data): Add missing break statement.
17788 2014-07-24 Richard Biener <rguenther@suse.de>
17790 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17791 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17792 and adjust MOVE_RATIO query accordingly.
17793 (estimate_num_insns): Adjust callers.
17794 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17795 * ipa-cp.c (gather_context_independent_values,
17796 estimate_local_effects): Likewise.
17797 * ipa-split.c (consider_split): Likewise.
17799 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17801 * config/i386/driver-i386.c: Remove names of unused arguments and
17802 unnecessary unused attributes.
17803 * config/i386/host-mingw32.c: Likewise.
17804 * config/i386/i386.c: Likewise.
17805 * config/i386/winnt-stubs.c: Likewise.
17806 * config/i386/winnt.c: Likewise.
17808 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17810 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17811 (aarch64_gen_loadwb_pair): New helper function.
17812 (aarch64_expand_epilogue): Simplify code using new helper functions.
17813 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17815 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17817 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17818 (aarch64_gen_storewb_pair): New helper function.
17819 (aarch64_expand_prologue): Simplify code using new helper functions.
17820 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17822 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17824 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17825 Rename to aarch64_save_callee_saves, remove restore code.
17826 (aarch64_restore_callee_saves): New function.
17828 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17830 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17831 (aarch64_save_callee_saves): New function to handle reg save
17832 for both core and vectore regs.
17834 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17836 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17837 (aarch64_gen_store_pair): New helper function.
17838 (aarch64_save_or_restore_callee_save_registers)
17839 (aarch64_save_or_restore_fprs): Use new helper functions.
17841 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17843 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17844 (aarch64_save_or_restore_callee_save_registers)
17845 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17847 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17849 * config/aarch64/aarch64.c
17850 (aarch64_save_or_restore_callee_save_registers)
17851 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17853 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17855 * config/aarch64/aarch64.c
17856 (aarch64_save_or_restore_callee_save_registers)
17857 (aarch64_save_or_restore_fprs): Remove 'increment'.
17859 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17861 * config/aarch64/aarch64.c
17862 (aarch64_save_or_restore_callee_save_registers)
17863 (aarch64_save_or_restore_fprs): Use register offset in
17864 cfun->machine->frame.reg_offset.
17866 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17868 * config/aarch64/aarch64.c
17869 (aarch64_save_or_restore_callee_save_registers)
17870 (aarch64_save_or_restore_fprs): Remove base_rtx.
17872 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17874 * config/aarch64/aarch64.c
17875 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17876 to 'start_offset'. Remove local variable 'start_offset'.
17878 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17880 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17881 type to HOST_WIDE_INT.
17883 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17885 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17886 (aarch64_save_or_restore_fprs)
17887 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17889 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17891 * config/arm/t-rtems-eabi: Add
17892 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17893 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17894 mbig-endian/mthumb/march=armv7-r, and
17895 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17898 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17899 Chris Johns <chrisj@rtems.org>
17900 Joel Sherrill <joel.sherrill@oarcorp.com>
17902 * config.gcc: Add nios2-*-rtems*.
17903 * config/nios2/rtems.h: New file.
17904 * gcc/config/nios2/t-rtems: New file.
17906 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17909 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17910 constant numbers, not general constants.
17911 (rs6000_expand_vector_init): Ditto.
17913 2014-07-23 Nathan Sidwell <nathan@acm.org>
17915 * gcov-tool.c (gcov_list): Declare here.
17916 (set_gcov_list): Remove.
17917 (gcov_output_files): Set gcov_list directly.
17919 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17921 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17923 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17925 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17926 callee-saved registers are available for padding purpose
17927 and r3 is not mandatory, then prefer use those callee-saved
17930 2014-07-23 Richard Biener <rguenther@suse.de>
17932 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17933 * combine.c: Include statistics.h and params.h.
17934 (combine_instructions): Guard three and four insn combines
17935 with max-combine-insns value. Record statistics for combines
17937 * doc/invoke.texi (max-combine-insns): Document new param.
17939 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17941 * graphite-isl-ast-to-gimple.c:
17942 (translate_isl_ast_node_block): New function.
17943 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17945 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17946 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17948 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17950 * graphite-isl-ast-to-gimple.c:
17951 (get_max_schedule_dimensions): New function.
17952 (extend_schedule): Likewise.
17953 (generate_isl_schedule): Add calling of extend_schedule and
17954 get_max_schedule_dimensions.
17956 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17959 (case UNSPEC): Handle UNSPEC_RBIT.
17961 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17963 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17964 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17966 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17968 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17970 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17972 * graphite-isl-ast-to-gimple.c:
17973 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17974 (ivs_params_clear):
17975 (build_iv_mapping): New function.
17976 (translate_isl_ast_node_user): Likewise.
17977 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17979 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17980 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17981 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17983 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17986 * config/arm/arm.md (setmem): New pattern.
17987 * config/arm/arm-protos.h (struct tune_params): New fields.
17988 (arm_gen_setmem): New prototype.
17989 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17990 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17991 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17992 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17993 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17994 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17995 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17996 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17997 (arm_const_inline_cost): New function.
17998 (arm_block_set_max_insns): New function.
17999 (arm_block_set_non_vect_profit_p): New function.
18000 (arm_block_set_vect_profit_p): New function.
18001 (arm_block_set_unaligned_vect): New function.
18002 (arm_block_set_aligned_vect): New function.
18003 (arm_block_set_unaligned_non_vect): New function.
18004 (arm_block_set_aligned_non_vect): New function.
18005 (arm_block_set_vect, arm_gen_setmem): New functions.
18007 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18009 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18011 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
18014 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18015 out of #ifdef __OPTIMIZE__.
18017 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18019 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18020 different trapping status if -fnon-call-exceptions is enabled.
18022 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18024 * expr.c (store_field): Handle VOIDmode for calls that return values
18025 in multiple locations.
18027 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18029 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18030 (altivec_vsldoi_<mode>): Likewise.
18032 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18034 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18035 to the number of characters in the line.
18037 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18039 * graphite-isl-ast-to-gimple.c: Add using of
18040 build_nonstandard_integer_type instead of int128_integer_type_node.
18042 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18044 * toplev.c (output_stack_usage): Adjust the location of the warning.
18046 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18048 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18049 (*membar_storeload): Disable for LEON3.
18051 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18053 PR rtl-optimization/61461
18054 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18056 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18059 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18060 Fix instruction constraint.
18061 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18063 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18065 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18067 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18069 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18070 GNU coding standards.
18071 (nds32_register_move_cost): Likewise.
18072 (nds32_memory_move_cost): Likewise.
18073 (nds32_address_cost): Likewise.
18075 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18077 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18079 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18081 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18082 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18083 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18084 (HAVE_sync_compare_and_swapqi): Define.
18085 (HAVE_sync_compare_and_swaphi): Likewise.
18086 (HAVE_sync_compare_and_swapsi): Likewise.
18088 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18090 * config/mips/p5600.md: Add missing cpu tests.
18092 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18094 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18095 (vmla_f64): Likewise.
18096 (vfms_f64): Likewise.
18097 (vmls_f64): Likewise.
18099 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18101 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18102 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18104 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18106 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18107 (vmlal_high_lane_s32): Likewise.
18108 (vmlal_high_lane_u16): Likewise.
18109 (vmlal_high_lane_u32): Likewise.
18110 (vmlsl_high_lane_s16): Likewise.
18111 (vmlsl_high_lane_s32): Likewise.
18112 (vmlsl_high_lane_u16): Likewise.
18113 (vmlsl_high_lane_u32): Likewise.
18115 2014-07-17 Terry Guo <terry.guo@arm.com>
18117 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18118 (alus_reg): Renamed to alus_sreg.
18119 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18120 from alu_reg to alu_sreg. Change type of dsp instructions from
18121 alu_reg to alu_dsp_reg.
18122 * config/arm/thumb1.md: Likewise.
18123 * config/arm/thumb2.md: Likewise.
18124 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18125 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18126 with alu_sreg and alus_sreg.
18127 * config/arm/arm1026ejs.md (alu_op): Likewise.
18128 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18129 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18130 * config/arm/fa526.md (526_alu_op): Likewise.
18131 * config/arm/fa606te.md (606te_alu_op): Likewise.
18132 * config/arm/fa626te.md (626te_alu_op): Likewise.
18133 * config/arm/fa726te.md (726te_alu_op): Likewise.
18134 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18135 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18136 alu_sreg, alu_dsp_reg and alus_sreg.
18137 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18138 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18139 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18140 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18141 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18142 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18143 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18144 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18145 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18146 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18147 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18148 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18149 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18150 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18151 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18152 alus_reg to alus_sreg.
18154 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18156 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18159 2014-07-17 Richard Biener <rguenther@suse.de>
18161 PR rtl-optimization/61801
18162 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18163 don't set reg_pending_barrier if it appears in a debug-insn.
18165 2014-07-16 DJ Delorie <dj@redhat.com>
18167 * config/rx/rx.c (rx_option_override): Fix alignment values.
18168 (rx_align_for_label): Likewise.
18170 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18173 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18174 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18175 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18177 (cris_print_index, cris_print_operand, cris_constant_index_p)
18178 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18179 (cris_address_cost): Ditto last CONSTANT_P.
18180 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18181 callers changed. Yield cris_offsettable_symbol for non-PIC
18182 constant symbolic expressions including labels. Yield cris_unspec
18184 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18185 target to pic_offset_table_rtx for calls that will likely go
18186 through PLT, const0_rtx when they can't. All callers changed.
18187 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18188 symbolic expressions to be PICified. Remove second, redundant,
18189 assert on can_create_pseudo_p returning non-zero. Use
18190 replace_equiv_address_nv, not replace_equiv_address, for final
18192 * config/cris/cris.md ("movsi"): Move variable t to pattern
18193 toplevel. Adjust assert for new cris_symbol_type member. Use
18194 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18195 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18197 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18198 ("call", "call_value"): Use second incoming operand as a marker
18199 for pic-offset-table-register being used.
18200 ("*expanded_call_non_v32", "*expanded_call_v32")
18201 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18202 second incoming operand to CALL, match cris_call_type_marker.
18203 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18204 ("*expanded_call_side"): Ditto. Fix typo in comment.
18205 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18207 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18208 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18209 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18210 users changed. Add members cris_offsettable_symbol and cris_unspec.
18211 (cris_symbol_type): Rename from cris_pic_symbol_type.
18212 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18214 * config/cris/cris-protos.h (cris_symbol_type_of,
18215 cris_expand_pic_call_address): Adjust prototypes.
18216 (cris_legitimate_constant_p): New prototype.
18218 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18219 an existing tmake_file. Don't add t-slibgcc and t-linux.
18221 2014-07-17 Jason Merrill <jason@redhat.com>
18224 * symtab.c (symtab_remove_from_same_comdat_group): Also
18225 set_comdat_group to NULL_TREE.
18226 (verify_symtab): Fix diagnostic.
18228 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18231 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18233 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18235 Support location tracking for built-in macro tokens
18236 * input.h (is_location_from_builtin_token): New function declaration.
18237 * input.c (is_location_from_builtin_token): New function definition.
18238 * toplev.c (general_init): Tell libcpp what the pre-defined
18239 spelling location for built-in tokens is.
18241 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18243 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18244 on the FUNCTION_DECL.
18246 2014-07-16 Richard Biener <rguenther@suse.de>
18249 * doc/extend.texi (always_inline): Clarify.
18251 2014-07-15 Eric Christopher <echristo@gmail.com>
18253 * doc/invoke.texi (Link Options): Document -z option.
18255 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18257 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18258 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18260 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18262 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18264 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18266 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18267 varpool_assemble_decl.
18268 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18271 2014-07-15 Michael Matz <matz@suse.de>
18273 PR rtl-optimization/61772
18274 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18276 2014-07-15 Richard Biener <rguenther@suse.de>
18278 * opts.c (default_options_table): Disable bit-ccp at -Og.
18280 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18282 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18284 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18286 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18287 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18288 call langhook for unknown declaration.
18289 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18290 * tree.h (DECL_ARGUMENTS): Update.
18291 * print-tree.c (print_node): Update.
18292 * tree-core.h (tree_decl_non_common): Remove arguments.
18293 (tree_function_decl): Add arguments.
18295 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18297 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18299 2014-07-14 Richard Biener <rguenther@suse.de>
18301 PR tree-optimization/61779
18302 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18303 simplifying a condition.
18305 2014-07-14 Richard Biener <rguenther@suse.de>
18307 * builtins.c (c_strlen): Make only_value == 2 really only
18308 affect warning generation.
18310 2014-07-14 Richard Biener <rguenther@suse.de>
18312 PR tree-optimization/61757
18313 PR tree-optimization/61783
18314 PR tree-optimization/61787
18315 * tree-ssa-dom.c (record_equality): Revert canonicalization
18316 change and add comment.
18317 (propagate_rhs_into_lhs): Revert previous fix, removing
18318 loop depth restriction again.
18320 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18322 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18323 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18324 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18325 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18326 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18327 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18328 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18330 2014-07-14 Richard Biener <rguenther@suse.de>
18332 * cgraph.h (decl_in_symtab_p): Make inline.
18334 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18336 PR middle-end/61294
18337 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18340 * config/i386/i386.c (classify_argument): Don't merge classes above
18343 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18345 * cgraph.h (symtab_node): Add nonzero_address.
18346 (decl_in_symtab_p): Break out from ...
18347 (symtab_get_node): ... here.
18348 * fold-const.c: Include cgraph.h
18349 (tree_single_nonzero_warnv_p): Use symtab to determine
18350 if symbol is non-zero.
18351 * symtab.c (symtab_node::nonzero_address): New method.
18353 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18355 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18356 forgotten in previous commit.
18358 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18360 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18362 * ipa-devirt.c: Include stor-layout.h and intl.h
18363 (odr_subtypes_equivalent_p): New function.
18364 (warn_odr): New function.
18365 (warn_type_mismatch): New function.
18366 (odr_types_equivalent_p): New function.
18367 (add_type_duplicate): Use it.
18368 * common.opt (Wodr): New flag.
18369 * doc/invoke.texi (Wodr): Document new warning.
18371 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18373 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18374 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18375 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18376 (varpool_get_constructor): Push CTORS_IN timevar.
18377 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18379 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18381 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18382 Remove VOID_FTYPE_PUSHORT.
18383 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18384 Change code to USHORT_FTYPE_VOID.
18385 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18386 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18387 (ix86_atomic_assign_expand_fenv): Update for
18388 __builtin_ia32_fnstsw changes.
18389 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18390 (fnstsw): Change operand 0 to nonimmediate operand.
18392 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18394 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18395 (varpool_get_constructor): New function.
18396 (varpool_ctor_useable_for_folding_p): Break out from ...
18397 (ctor_for_folding): ... here; use varpool_get_constructor.
18398 (varpool_assemble_decl): Likewise.
18399 * lto-streamer.h (struct output_block): Turn cgraph_node
18401 (lto_input_variable_constructor): Declare.
18402 * ipa-visibility.c (function_and_variable_visibility): Use
18403 varpool_get_constructor.
18404 * cgraph.h (varpool_get_constructor): Declare.
18405 (varpool_ctor_useable_for_folding_p): New function.
18406 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18407 parameter; return error_mark_node for non-trivial constructors.
18408 (lto_write_tree_1, DFS_write_tree): Update use of
18409 get_symbol_initial_value.
18410 (output_function): Update initialization of symbol.
18411 (output_constructor): New function.
18412 (copy_function): Rename to ..
18413 (copy_function_or_variable): ... this one; handle vars too.
18414 (lto_output): Output variable sections.
18415 * lto-streamer-in.c (input_constructor): New function.
18416 (lto_read_body): Rename from ...
18417 (lto_read_body_or_constructor): ... this one; handle vars too.
18418 (lto_input_variable_constructor): New function.
18419 * ipa-prop.c (ipa_prop_write_jump_functions,
18420 ipa_prop_write_all_agg_replacement): Update.
18421 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18422 (output_cgraph_opt_summary): Set symbol to NULL.
18424 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18426 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18427 non-polymorphic types.
18428 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18429 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18430 of types is not polymorphic.
18432 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18434 * lra-constraints.c (remove_inheritance_pseudos): Process
18435 destination pseudo too.
18437 2014-07-11 Rong Xu <xur@google.com>
18439 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18442 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18444 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18445 * config/avr/avr-devices.c (AVR_MCU): Same.
18446 (avr_mcu_types): add text start value to end of device list.
18447 * config/avr/avr-mcus.def: Add text section start for all devices.
18448 (ata5782): Add new avr5 device.
18450 * config/avr/avr-tables.opt: Regenerate.
18451 * config/avr/avr.h: Add declaration for text section start handler.
18452 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18454 (LINK_SPEC): Include text section start handler to linker spec.
18455 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18456 pass -Ttext option to linker if the text section start for the device
18458 * config/avr/t-multilib: Regenerate.
18459 * doc/avr-mmcu.texi: Regenerate.
18461 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18463 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18464 * config/rs6000/aix52.h (LINK_SPEC): Same.
18465 * config/rs6000/aix53.h (LINK_SPEC): Same.
18466 * config/rs6000/aix61.h (LINK_SPEC): Same.
18467 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18469 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18471 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18472 (graphite_verify): New function.
18473 (ivs_params_clear): New function.
18474 (gcc_expression_from_isl_ast_expr_id): New function.
18475 (gcc_expression_from_isl_expr_int): New function.
18476 (binary_op_to_tree): New function.
18477 (ternary_op_to_tree): New function.
18478 (unary_op_to_tree): New function.
18479 (nary_op_to_tree): New function.
18480 (gcc_expression_from_isl_expr_op): New function.
18481 (gcc_expression_from_isl_expression): New function.
18482 (graphite_create_new_loop): New function.
18483 (translate_isl_ast_for_loop): New function.
18484 (get_upper_bound): New function.
18485 (graphite_create_new_loop_guard): New function.
18486 (translate_isl_ast_node_for): New function.
18487 (translate_isl_ast): New function.
18488 (add_parameters_to_ivs_params): New function.
18489 (scop_to_isl_ast): New parameter ip.
18490 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18492 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18494 * config/xtensa/predicates.md (call expander): Update for
18495 DECL_SECTION_NAME being string.
18497 2014-07-11 Richard Biener <rguenther@suse.de>
18499 PR middle-end/61473
18500 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18501 can be implemented with a single load followed by a single store.
18502 (c_strlen): Only warn when only_value is not 2.
18504 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18506 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18508 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18511 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18512 (*movhi_bytes): Likewise.
18513 (*arm_movqi_insn): Likewise.
18515 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18518 * config/alpha/alpha.c: Include tree-pass.h, context.h
18519 and pass_manager.h.
18520 (pass_data_handle_trap_shadows): New pass.
18521 (pass_handle_trap_shadows::gate): New pass gate function.
18522 (make_pass_handle_trap_shadows): New function.
18523 (rest_of_handle_trap_shadows): Ditto.
18525 (alpha_align_insns_1): Rename from alpha_align_insns.
18526 (pass_data_align_insns): New pass.
18527 (pass_align_insns::gate): New pass gate function.
18528 (make_pass_aling_insns): New function.
18529 (rest_of_align_insns): Ditto.
18530 (alpha_align_insns): Ditto.
18532 (alpha_option_override): Declare handle_trap_shadows info
18533 and align_insns_info. Register handle_trap_shadows and align_insns
18535 (alpha_reorg): Do not call alpha_trap_shadows and
18536 alpha_align_insn from here.
18538 (alpha_pad_function_end): Do not skip BARRIERs.
18540 2014-07-10 Rong Xu <xur@google.com>
18542 Add gcov-tool: an offline gcda profile processing tool support.
18543 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18544 (gcov_is_error): Ditto.
18545 (gcov_read_string): Ditto.
18546 (gcov_read_sync): Ditto.
18547 * gcov-io.h: Move counter defines to gcov-counter.def.
18548 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18549 * coverage.c: Ditto.
18550 * gcov-tool.c: Offline gcda profile processing tool.
18551 (unlink_gcda_file): Remove one gcda file.
18552 (unlink_profile_dir): Remove gcda files from the profile path.
18553 (gcov_output_files): Output gcda files to an output dir.
18554 (profile_merge): Merge two profiles in directory.
18555 (print_merge_usage_message): Print merge usage.
18556 (merge_usage): Print merge usage and exit.
18557 (do_merge): Driver for profile merge sub-command.
18558 (profile_rewrite): Rewrite profile.
18559 (print_rewrite_usage_message): Print rewrite usage.
18560 (rewrite_usage): Print rewrite usage and exit.
18561 (do_rewrite): Driver for profile rewrite sub-command.
18562 (print_usage): Print gcov-info usage and exit.
18563 (print_version): Print gcov-info version.
18564 (process_args): Process arguments.
18565 (main): Main routine for gcov-tool.
18566 * Makefile.in: Build and install gcov-tool.
18567 * gcov-counter.def: New file split from gcov-io.h.
18568 * doc/gcc.texi: Include gcov-tool.texi.
18569 * doc/gcov-tool.texi: Document for gcov-tool.
18571 2014-07-10 Richard Biener <rguenther@suse.de>
18573 PR tree-optimization/61757
18574 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18575 (propagate_rhs_into_lhs): Revert part of last change.
18577 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18579 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18582 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18584 PR middle-end/53590
18585 * function.c (allocate_struct_function): Revert r188667 change.
18587 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18589 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18591 * doc/install.texi: Remove links to defunct package providers for
18594 2014-07-09 Tom de Vries <tom@codesourcery.com>
18596 * final.c (get_call_fndecl): Declare.
18597 (self_recursive_call_p): New function.
18598 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18600 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18602 * ipa-devirt.c (record_node): Walk through aliases.
18604 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18606 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18608 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18611 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18613 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18615 * ipa-visibility.c (function_and_variable_visibility): Remove
18616 temporary hack disabling local aliases on AIX.
18618 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18620 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18621 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18623 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18625 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18626 * rs6000/rs6000.c: Inline output of .set instruction.
18627 (declare_alias_data): New struct.
18628 (rs6000_declare_alias): New function.
18629 (rs6000_xcoff_declare_function_name): Use it.
18630 (rs6000_xcoff_declare_object_name): New function.
18631 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18632 (ASM_OUTPUT_DEF): Turn to empty definition.
18634 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18637 * hash-table.h: use hash_table::value_type instead of
18638 Descriptor::value_type in the return types of several methods.
18640 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18642 * tree-pass.h (pass_data): Remove has_execute member.
18643 * passes.c (execute_one_pass): Don't check pass->has_execute.
18644 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18645 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18646 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18647 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18648 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18649 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18650 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18651 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18652 gimple-low.c, gimple-ssa-isolate-paths.c,
18653 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18654 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18655 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18656 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18657 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18658 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18659 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18660 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18661 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18662 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18663 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18664 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18665 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18666 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18667 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18668 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18669 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18670 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18671 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18672 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18673 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18674 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18675 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18676 web.c: Remove initializer for pass_data::has_execute.
18678 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18680 * graphite-htab.h: Use hash_map instead of hash_table.
18681 * graphite-clast-to-gimple.c: Adjust.
18682 * passes.c: Use hash_map instead of hash_table.
18683 * sese.c: Likewise.
18684 * sese.h: Remove now unused code.
18686 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18689 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18692 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18694 PR rtl-optimization/61673
18695 * combine.c (simplify_comparison): Test just mode's sign bit
18696 in tmode rather than the sign bit and any bits above it.
18698 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18700 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18701 Add __isl_give to the declaration.
18702 (generate_isl_schedule): Likewise.
18703 (scop_to_isl_ast): Likewise.
18705 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18707 * config/arm/arm.c (cortexa5_extra_costs): New table.
18708 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18710 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18712 PR tree-optimization/61725
18713 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18714 range, use range_includes_zerop_p instead of integer_zerop on
18715 vr0->min, only use log2 of max if min is not negative.
18717 2014-07-08 Richard Biener <rguenther@suse.de>
18719 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18720 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18721 restriction on loop depth difference.
18722 (record_equality): Likewise.
18723 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18724 (loop_depth_of_name): Remove.
18725 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18726 restriction on loop depth difference.
18727 (init_copy_prop): Likewise.
18729 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18731 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18733 (walk_aliased_vdefs): Likewise.
18734 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18735 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18736 (detect_type_change_from_memory_writes): Check if entry was reached.
18738 2014-07-08 Richard Biener <rguenther@suse.de>
18740 PR tree-optimization/61681
18741 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18742 NONLOCAL inside ESCAPED.
18744 2014-07-08 Richard Biener <rguenther@suse.de>
18746 PR tree-optimization/61680
18747 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18748 Handle properly all read-write dependences with group accesses.
18750 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18752 PR tree-optimization/61576
18753 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18754 block containing reduction statement is predecessor of phi basi block.
18756 2014-07-08 Marek Polacek <polacek@redhat.com>
18759 * fold-const.c (round_up_loc): Change the parameter type.
18761 * fold-const.h (round_up_loc): Adjust declaration.
18762 * stor-layout.c (finalize_record_size): Check for too large types.
18764 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18766 * symtab.c: Include calls.h.
18767 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18769 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18771 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18772 little-endian code generation.
18773 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18774 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18775 (spe_evmergehilo): Rename to...
18776 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18777 (spe_evmergelo): Rename to...
18778 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18779 (spe_evmergelohi): Rename to...
18780 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18781 (spe_evmergehi, spe_evmergehilo): New expanders.
18782 (spe_evmergelo, spe_evmergelohi): Likewise.
18783 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18784 (*frob_tf_ti): Likewise.
18785 (*frob_<mode>_di_2): Likewise.
18786 (*frob_tf_di_8_2): Likewise.
18787 (*frob_di_<mode>): Likewise.
18788 (*frob_ti_tf): Likewise.
18789 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18790 (*frob_ti_<mode>_8_2): Likewise.
18791 (*frob_ti_tf_2): Likewise.
18792 (mov_si<mode>_e500_subreg0): Rename to...
18793 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18795 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18796 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18797 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18798 the big endianness only.
18799 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18800 (*mov_si<mode>_e500_subreg0_2): Rename to...
18801 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18802 big big endianness only.
18803 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18804 (*mov_si<mode>_e500_subreg4): Rename to...
18805 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18807 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18808 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18809 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18810 the big endianness only.
18811 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18813 (*mov_si<mode>_e500_subreg4_2): Rename to...
18814 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18816 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18817 (*mov_sitf_e500_subreg8): Rename to...
18818 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18820 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18821 (*mov_sitf_e500_subreg8_2): Rename to...
18822 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18824 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18825 (*mov_sitf_e500_subreg12): Rename to...
18826 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18828 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18829 (*mov_sitf_e500_subreg12_2): Rename to...
18830 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18832 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18834 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18836 * asan.c (instrument_strlen_call): Do not instrument first byte
18837 in strlen if already instrumented.
18839 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18841 * config/arm/arm.opt (mwords-little-endian): Delete.
18842 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18843 of TARGET_LITTLE_WORDS.
18844 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18845 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18847 * doc/invoke.texi: Remove references to -mwords-little-endian.
18849 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18851 * expmed.c (struct init_expmed_rtl): Change all fields but
18852 pow2 and cint from struct rtx_def to rtx.
18853 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18854 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18857 2014-07-06 Marek Polacek <polacek@redhat.com>
18860 * doc/invoke.texi: Document -Wsizeof-array-argument.
18862 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18864 * wide-int.h (wide_int_storage): Change declaration from struct
18867 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18869 * cgraph.c (cgraph_create_indirect_edge): Update call of
18870 get_polymorphic_call_info.
18871 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18872 (possible_polymorphic_call_targets): Add parameter call.
18873 (decl_maybe_in_construction_p): New predicate.
18874 (get_polymorphic_call_info): Add parameter call;
18875 use decl_maybe_in_construction_p.
18876 * gimple-fold.c (fold_gimple_assign): Update use of
18877 possible_polymorphic_call_targets.
18878 (gimple_fold_call): Likewise.
18879 * ipa-prop.c: Inlcude calls.h
18880 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18881 (param_type_may_change_p): New predicate.
18882 (detect_type_change_from_memory_writes): Break out from ...
18883 (detect_type_change): ... this one; use param_type_may_change_p.
18884 (detect_type_change_ssa): Use param_type_may_change_p.
18885 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18887 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18890 * config/arm/arm-protos.h (arm_legitimate_address_p,
18891 arm_is_constant_pool_ref): Add prototypes.
18892 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18893 (arm_is_constant_pool_ref) New function.
18894 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18895 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18896 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18897 operand. Remove pool_range and neg_pool_range attributes.
18898 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18899 pool_range and neg_pool_range attributes.
18900 * config/arm/constraints.md (Uh): New constraint.
18901 (Uq): Don't allow constant pool references.
18903 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18905 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18906 (move_lo_quad_internal_be_<mode>): Likewise.
18907 (move_lo_quad_<mode>): Convert to define_expand.
18908 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18909 (aarch64_simd_move_hi_quad_be_<mode>): New.
18910 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18911 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18912 (aarch64_combinez_be<mode>): New.
18913 (aarch64_combine<mode>): Convert to define_expand.
18914 (aarch64_combine_internal<mode>): New.
18915 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18917 2014-07-04 Tom de Vries <tom@codesourcery.com>
18919 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18920 combination of earlyclobber and read/write modifiers.
18922 2014-07-04 Tom de Vries <tom@codesourcery.com>
18924 * config/aarch64/aarch64-simd.md
18925 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18927 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18930 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18932 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18934 PR middle-end/61654
18935 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18937 PR tree-optimization/61684
18938 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18939 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18941 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18942 Kito Cheng <kito@0xlab.org>
18943 Monk Chiang <sh.chiang04@gmail.com>
18945 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18946 (nds32_symbol_load_store_p): Move to ...
18947 (nds32_fp_as_gp_check_available): Move to ...
18948 * config/nds32/nds32-fp-as-gp.c: ... here.
18949 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18950 extern declaration.
18952 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18953 Kito Cheng <kito@0xlab.org>
18954 Monk Chiang <sh.chiang04@gmail.com>
18956 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18957 (nds32_expand_store_multiple): Move to ...
18958 (nds32_expand_movmemqi): Move to ...
18959 * config/nds32/nds32-memory-manipulation.c: ... here.
18961 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18962 Kito Cheng <kito@0xlab.org>
18963 Monk Chiang <sh.chiang04@gmail.com>
18965 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18966 (nds32_output_casesi_pc_relative): Move to ...
18967 (nds32_output_casesi): Move to ...
18968 (nds32_mem_format): Move to ...
18969 (nds32_output_16bit_store): Move to ...
18970 (nds32_output_16bit_load): Move to ...
18971 (nds32_output_32bit_store): Move to ...
18972 (nds32_output_32bit_load): Move to ...
18973 (nds32_output_32bit_load_s): Move to ...
18974 (nds32_output_stack_push): Move to ...
18975 (nds32_output_stack_pop): Move to ...
18976 * config/nds32/nds32-md-auxiliary.c: ... here.
18978 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18979 Ling-Hua Tseng <uranus@tinlans.org>
18981 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18982 the purpose of this file.
18984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18985 Kito Cheng <kito@0xlab.org>
18986 Monk Chiang <sh.chiang04@gmail.com>
18988 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18989 (nds32_address_cost): Move implementation to ...
18990 * config/nds32/nds32-cost.c: ... here.
18991 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18992 (nds32_address_cost_impl): Declare.
18994 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18995 Kito Cheng <kito@0xlab.org>
18996 Monk Chiang <sh.chiang04@gmail.com>
18998 * config/nds32/nds32.c
18999 (nds32_consecutive_registers_load_store_p): Move to ...
19000 (nds32_valid_multiple_load_store): Move to ...
19001 (nds32_valid_stack_push_pop): Move to ...
19002 (nds32_can_use_bclr_p): Move to ...
19003 (nds32_can_use_bset_p): Move to ...
19004 (nds32_can_use_btgl_p): Move to ...
19005 (nds32_can_use_bitci_p): Move to ...
19006 * config/nds32/nds32-predicates.c: ... here.
19008 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19009 Kito Cheng <kito@0xlab.org>
19010 Monk Chiang <sh.chiang04@gmail.com>
19012 * config/nds32/nds32.c
19013 (nds32_expand_builtin_null_ftype_reg): Move to ...
19014 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19015 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19016 (nds32_init_builtins): Move implementation to ...
19017 (nds32_expand_builtin): Move implementation to ...
19018 * config/nds32/nds32-intrinsic.c: ... here.
19019 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19020 (nds32_expand_builtin_impl): Declare.
19022 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19023 Kito Cheng <kito@0xlab.org>
19024 Monk Chiang <sh.chiang04@gmail.com>
19026 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19027 (nds32_emit_section_tail_template): Move to ...
19028 (nds32_emit_isr_jmptbl_section): Move to ...
19029 (nds32_emit_isr_vector_section): Move to ...
19030 (nds32_emit_isr_reset_conten): Move to ...
19031 (nds32_check_isr_attrs_conflict): Move to ...
19032 (nds32_construct_isr_vectors_information): Move to ...
19033 (nds32_asm_file_start): Move implementation to ...
19034 (nds32_asm_file_end): Move implementation to ...
19035 * config/nds32/nds32-isr.c: ... here.
19036 * config/nds32/nds32-protos.h
19037 (nds32_check_isr_attrs_conflict): Declare.
19038 (nds32_construct_isr_vectors_information): Declare.
19039 (nds32_asm_file_start_for_isr): Declare.
19040 (nds32_asm_file_end_for_isr): Declare.
19042 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19043 Kito Cheng <kito@0xlab.org>
19044 Monk Chiang <sh.chiang04@gmail.com>
19046 * config.gcc (nds32*): Add new modules to extra_objs.
19047 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19048 (nds32be-*-*): Likewise.
19049 * config/nds32/nds32-cost.c: New file.
19050 * config/nds32/nds32-fp-as-gp.c: New file.
19051 * config/nds32/nds32-intrinsic.c: New file.
19052 * config/nds32/nds32-isr.c: New file.
19053 * config/nds32/nds32-md-auxiliary.c: New file.
19054 * config/nds32/nds32-memory-manipulation.c: New file.
19055 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19056 * config/nds32/nds32-predicates.c: New file.
19057 * config/nds32/t-nds32: New file.
19059 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19061 PR tree-optimization/61682
19062 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19063 using cases and when one of the operands is equal to 1.
19065 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19067 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19068 ashr<mode>3): Correct mode of operands[2].
19069 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19070 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19071 Correct mode of operands[2]. Fix split condition.
19073 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19075 * arm.md (arch): Add armv6_or_vfpv3.
19076 (arch_enabled): Add test for the above.
19077 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19079 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19081 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19083 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19084 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19085 HWI 1 and negate the unsigned value.
19086 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19087 use AND instead of shift.
19088 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19090 2014-07-03 Marek Polacek <polacek@redhat.com>
19092 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19093 (-fsanitize=float-divide-by-zero): Move to the table with
19094 -fsanitize=undefined suboptions.
19095 (-fsanitize=float-cast-overflow): Likewise.
19097 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19099 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19100 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19103 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19105 * loop-invariant.c (struct invariant): Add a new member: eqno;
19106 (find_identical_invariants): Update eqno;
19107 (create_new_invariant): Init eqno;
19108 (get_inv_cost): Compute comp_cost with eqno;
19110 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19112 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19113 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19114 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19115 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19116 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19118 2014-07-02 Christian Bruel <christian.bruel@st.com>
19122 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19123 (make_preds_opaque): Delete.
19124 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19125 (commit_mode_sets): New function.
19126 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19127 Process all modes at once.
19128 * basic-block.h (pre_edge_lcm_avs): Declare.
19129 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19130 Call clear_aux_for_edges. Fix comments.
19131 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19132 (pre_edge_rev_lcm): Idem.
19133 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19135 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19136 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19138 * config/i386/i386.c (x96_emit_mode_set): Idem.
19139 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19140 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19141 (fpscr_toggle) Disallow from delay slot.
19142 * target.def (emit_mode_set): Add prev_mode parameter.
19143 * doc/tm.texi: Regenerate.
19145 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19147 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19150 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19152 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19153 vtable_pointer_value_to_vtable): Constify.
19154 (contains_polymorphic_type_p): Declare.
19155 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19156 vtable_pointer_value_to_vtable): Constify.
19157 (contains_polymorphic_type_p): New predicate.
19158 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19160 (ipa_set_ancestor_jf): Likewise.
19161 (detect_type_change): Return false in easy cases.
19162 (compute_complex_assign_jump_func): Require type to contain
19164 (compute_known_type_jump_func): Likewise.
19166 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19168 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19170 (type_in_anonymous_namespace_p): Constify argument.
19171 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19172 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19173 (main_odr_variant): New function.
19174 (hash_type_name): Make static; update assert; do not ICE on
19176 (types_same_for_odr): Bring here from tree.c; simplify and remove
19177 old structural comparing code that doesn't work for templates.
19178 (odr_hasher::equal): Update assert.
19179 (add_type_duplicate): Return true when bases should be computed;
19180 replace incomplete loader by complete; do not output duplicated
19181 warnings; do not ICE on non-records; set odr_violated flag.
19182 (get_odr_type): Be ready to replace incomplete type by complete
19183 one; work on ODR variants instead of main variants; reorder item
19184 in array so bases have still smaller indexes.
19185 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19186 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19188 2014-07-01 Cary Coutant <ccoutant@google.com>
19190 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19192 (resolve_addr_in_expr): When replacing the rtx in a location list
19193 entry, get a new address table entry.
19194 (dwarf2out_finish): Call index_location_lists even if there are no
19195 addr_index_table entries yet.
19197 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19199 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19200 change for not being obvious.
19202 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19204 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19207 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19209 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19210 (vcagt_f64): Likewise.
19211 (vcale_f64): Likewise.
19212 (vcaled_f64): Likewise.
19213 (vcales_f32): Likewise.
19214 (vcalt_f64): Likewise.
19215 (vcaltd_f64): Likewise.
19216 (vcalts_f32): Likewise.
19218 2014-07-01 Marek Polacek <polacek@redhat.com>
19220 * doc/invoke.texi: Document -Wint-conversion.
19222 2014-07-01 Marek Polacek <polacek@redhat.com>
19225 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19227 2014-07-01 Martin Liska <mliska@suse.cz>
19229 IPA REF alias refactoring
19230 * cgraph.h (iterate_direct_aliases): New function.
19231 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19232 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19233 FOR_EACH_ALIAS added.
19234 (cgraph_for_node_and_aliases): Likewise.
19235 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19236 * ipa-inline.c (reset_edge_caches): Likewise.
19237 (update_caller_keys): Likewise.
19238 * trans-mem.c (ipa_tm_execute): Likewise.
19239 *varpool.c (varpool_analyze_node): Likewise.
19240 (varpool_for_node_and_aliases): Likewise.
19241 * ipa-ref.h (first_alias): New function.
19242 (last_alias): Likewise.
19243 (has_aliases_p): Likewise.
19244 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19245 is sensitive to IPA_REF_ALIASes.
19246 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19247 are put at the beginning of the list.
19248 (symtab_node::iterate_direct_aliases): New function.
19250 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19253 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19255 (write_ts_type_common_tree_pointers): Do not stream fields not set
19256 for incomplete types; do not stream duplicated fields for variants;
19257 sanity check that variant and type match.
19258 (write_ts_type_non_common_tree_pointers): Likewise.
19259 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19260 TYPE_SIZE whether type is complete.
19261 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19262 write_ts_type_common_tree_pointers
19263 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19265 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19267 * var-tracking.c (add_stores): Return instead of asserting if old
19268 and new values for conditional store are the same.
19270 2014-06-30 Richard Henderson <rth@redhat.com>
19274 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19275 the cfg if there were any changes.
19276 * passes.def: Revert move of peephole2 after reorder_blocks;
19277 move duplicate_computed_gotos before peephole2.
19279 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19281 * except.c (emit_note_eh_region_end): New helper function.
19282 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19283 emit EH_REGION_END note.
19284 * jump.c (cleanup_barriers): Do not split a call and its
19285 corresponding CALL_ARG_LOCATION note.
19287 2014-06-30 Jeff Law <law@redhat.com>
19289 PR tree-optimization/61607
19290 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19291 deeper into the SSA_NAME_VALUE chain.
19293 2014-06-30 Marek Polacek <polacek@redhat.com>
19295 * convert.c (convert_to_integer): Don't instrument conversions if the
19296 function has no_sanitize_undefined attribute.
19297 * ubsan.c: Don't run the ubsan pass if the function has
19298 no_sanitize_undefined attribute.
19300 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19302 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19303 -fsanitize=undefined suboptions.
19305 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19307 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19308 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19309 against bigendian and adjust indices.
19311 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19313 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19315 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19318 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19319 Add alternative; make early clobber. Adjust both split patterns
19320 to use operand 0 as the working register.
19322 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19324 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19325 as ira_object_id_map might be NULL, or 1.
19327 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19329 * loop-invariant.c (get_inv_cost): Handle register class.
19330 (gain_for_invariant): Check the register pressure of the inv
19331 and its overlapped register class, other than all.
19333 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19335 * doc/invoke.texi (Optimize Options): Fix descriptions of
19336 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19338 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19340 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19343 2014-06-29 Tobias Grosser <tobias@grosser.es>
19346 * graphite-isl-ast-to-gimple.c: Add missing guards.
19348 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19350 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19351 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19352 * flag-types.h: Add new enum fgraphite_generator.
19353 * graphite-isl-ast-to-gimple.c: New.
19354 * graphite-isl-ast-to-gimple.h: New.
19355 * graphite.c (graphite_transform_loops): Add choice of Graphite
19356 code generator, which depends on flag_graphite_code_gen.
19358 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19360 * graphite-dependences.c (subtract_commutative_associative_deps):
19361 Add NULL checking of the following variables: must_raw_no_source,
19362 may_raw_no_source, must_war_no_source, may_war_no_source,
19363 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19364 must_war, may_war, must_waw, may_waw.
19366 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19368 * graphite-clast-to-gimple.c: gloog is renamed to
19369 graphite_regenerate_ast_cloog. gloog_error is renamed to
19370 graphite_regenerate_error.
19371 * graphite-clast-to-gimple.h: The definition of the struct
19372 bb_pbb_def is moved to graphite-htab.h.
19373 Add inclusion of the hash-table.h.
19374 * graphite-htab.h: The declaration of the function gloog is moved
19375 to graphite-clast-to-gimple.h and renamed to
19376 graphite_regenerate_ast_cloog.
19377 * graphite.c (graphite_transform_loops): gloog is renamed
19378 to graphite_regenerate_ast_cloog.
19380 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19382 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19384 (write_ts_type_common_tree_pointers): Do not stream fields not set
19385 for incomplete types; do not stream duplicated fields for variants;
19386 sanity check that variant and type match.
19387 (write_ts_type_non_common_tree_pointers): Likewise.
19388 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19389 TYPE_SIZE whether type is complete.
19390 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19391 write_ts_type_common_tree_pointers
19392 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19394 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19396 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19398 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19400 * tree-inline.c (remap_type_1): Do not duplicate fields
19401 that are shared in between type and its main variant.
19403 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19405 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19407 (ipa_set_ancestor_jf) Likewise.
19408 (check_stmt_for_type_change): Check that we work on main variant.
19409 (detect_type_change): Look into main variant.
19410 (compute_known_type_jump_func): Check that main variant has BINFO.
19412 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19414 * ipa-devirt.c (set_type_binfo): New function.
19415 (add_type_duplicate): Use it.
19416 (get_odr_type): Sanity check that binfos points to main variants.
19417 (get_class_context): Be sure the context's outer_type is main variant.
19418 (contains_type_p): Walk main variant.
19419 (get_polymorphic_call_info_for_decl): Set outer_type to be
19421 (get_polymorphic_call_info): Likewise.
19422 (possible_polymorphic_call_targets): Sanity check that we operate
19425 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19427 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19429 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19431 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19432 accidental change due to wide-int branch merge.
19434 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19436 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19437 compressed debug support.
19438 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19439 * configure: Regenerate.
19440 * config.in: Regenerate.
19441 * common.opt (compressed_debug_sections): New enum.
19442 (gz, gz=): New options.
19443 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19444 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19445 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19446 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19447 LINK_COMPRESS_DEBUG_SPEC.
19448 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19449 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19450 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19451 (Debugging Options): Document -gz[=type].
19453 2014-06-27 Martin Jambor <mjambor@suse.cz>
19456 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19457 args_to_skip, use those from node instead. Copy args_to_skip and
19458 combined_args_to_skip from node to the new thunk.
19459 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19460 (cgraph_create_virtual_clone): Moved computation of
19461 combined_args_to_skip...
19462 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19464 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19466 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19467 redundant diagnostic machinary.
19469 2014-06-27 Richard Biener <rguenther@suse.de>
19471 * tree-ssa-math-opts.c (bswap_replace): Fix
19472 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19474 2014-06-27 Martin Liska <mliska@suse.cz>
19476 * gimple.h (gimple_location_safe): New function introduced.
19477 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19478 of gimple_location_safe replaces gimple_location.
19479 (gimple_fold_call): Likewise.
19480 * ipa-devirt.c (ipa_devirt): Likewise.
19481 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19482 * ipa.c (walk_polymorphic_call_targets): Likewise.
19483 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19485 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19487 PR tree-optimization/57233
19488 PR tree-optimization/61299
19489 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19491 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19492 would be lowered to scalar shifts, check if corresponding
19493 shifts and vector BIT_IOR_EXPR are supported and don't lower
19494 or lower just to narrower vector type in that case.
19495 * expmed.c (expand_shift_1): Fix up handling of vector
19496 shifts and rotates.
19498 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19501 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19503 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19505 * doc/invoke.texi (-fsemantic-interposition): Document.
19506 * common.opt (fsemantic-interposition): New flag.
19507 * varasm.c (decl_replaceable_p): Use it.
19509 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19512 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19513 extraction other than index 3.
19515 2014-06-26 Teresa Johnson <tejohnson@google.com>
19517 * doc/invoke.texi: Fix typo.
19518 * dumpfile.c: Add support for documented -fdump-* options
19519 optimized/missed/note/optall.
19521 2014-06-26 Martin Jambor <mjambor@suse.cz>
19523 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19524 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19525 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19526 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19527 * opts.c (default_options_optimization): Set
19528 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19529 * doc/invoke.texi (allow-load-data-races)
19530 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19531 (allow-store-data-races): Document the new default.
19533 2014-06-26 Martin Jambor <mjambor@suse.cz>
19535 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19536 renamed to ipa_impossible_devirt_target. Fix typo.
19537 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19538 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19539 ipa_impossible_devirt_target.
19541 2014-06-26 Richard Biener <rguenther@suse.de>
19543 PR tree-optimization/61607
19544 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19545 explaining why we restrict copies on loop depth.
19546 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19548 (record_equivalences_from_phis): Instead add it here.
19550 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19552 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19553 (LTO_WRAPPER_OBJS): New variable.
19554 (lto-wrapper$(exeext)): Use it.
19555 * collect2.c: Include "collect-utils.h".
19556 (verbose, debug): Remove variables.
19557 (at_file_supplied): No longer static.
19558 (tool_name): New variable.
19559 (do_wait, fork_execute, maybe_unlink): Don't declare.
19560 (tool_cleanup): No longer static.
19561 (notice): Remove function.
19562 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19563 fork_execute calls.
19564 (collect_wait, do_wait, collect_execute): Remove functions.
19565 (maybe_unlink): No longer static.
19566 * collect2.h (verbose, debug): Don't declare.
19567 (at_file_supplied): Declare.
19568 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19570 (collect_execute): Replace with implementation from collect2, plus a
19571 new arg use_atfile. All callers changed.
19572 (collect_wait): Replace with implementation from collect2.
19573 (maybe_unlink_file): Remove function.
19574 (fork_execute): Replace with implementation from collect2, plus a
19575 new arg use_atfile. All callers changed.
19576 (do_wait): Add call to utils_cleanup to the error path.
19577 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19578 (tool_cleanup): Adjust declarations.
19579 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19580 * tlink.c: Include "collect-utils.h".
19581 (tlink_execute): New arg use_atfile. All callers changed.
19582 (tlink_init, tlink_execute): Remove declarations.
19584 * collect-utils.c (save_temps): New variable.
19585 (do_wait): Use it instead of debug. Use fatal_error.
19586 * collect-utils.h (save_temps): Declare.
19587 * collect2.c (verbose): Rename from vflag. All uses changed.
19588 (tool_cleanup): New function, copied from collect_atexit.
19589 (collect_atexit, handler): Just call it.
19590 * collect2.h (verbose): Declaration renamed from vflag.
19591 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19594 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19595 (lto-wrapper$(exeext)): Link with collect-utils.o.
19596 * collect-utils.c: New file.
19597 * collect-utils.h: New file.
19598 * lto-wrapper.c: Include "collect-utils.h".
19599 (args_name): Delete variable.
19600 (tool_name): New variable.
19601 (tool_cleanup): New function.
19602 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19603 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19604 (fork_execute): Remove functions.
19606 2014-06-26 Nick Clifton <nickc@redhat.com>
19608 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19610 * doc/extend.texi (Function Attributes): Fix typo in description
19611 of RX vector attribute.
19613 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19615 * config.gcc (supported_defaults): Error when passing either
19616 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19618 2014-06-26 Richard Biener <rguenther@suse.de>
19620 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19621 propagating volatile pointers.
19623 2014-06-26 Richard Biener <rguenther@suse.de>
19625 PR tree-optimization/61607
19626 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19627 loop if we redirected its latch edge.
19628 (thread_block_1): Do not cancel loops prematurely.
19630 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19632 * toplev.c (backend_init_target): Move init_emit_regs and
19634 (backend_init) ... here; skip ira_init_once and backend_init_target.
19635 (target_reinit) ... and here; clear
19636 this_target_rtl->lang_dependent_initialized.
19637 (lang_dependent_init_target): Clear
19638 this_target_rtl->lang_dependent_initialized;
19639 break out rtl initialization to ...
19640 (initialize_rtl): ... here; call also backend_init_target
19642 * toplev.h (initialize_rtl): New function.
19643 * function.c: Include toplev.h
19644 (init_function_start): Call initialize_rtl.
19645 * rtl.h (target_rtl): Add target_specific_initialized,
19646 lang_dependent_initialized.
19648 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19649 Jakub Jelinek <jakub@redhat.com>
19651 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19653 2014-06-25 Tom de Vries <tom@codesourcery.com>
19655 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19657 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19659 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19660 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19661 Issue a strict overflow warning if appropriate.
19663 2014-06-25 Martin Liska <mliska@suse.cz>
19665 IPA REF refactoring
19666 * Makefile.in: Removed header file (ipa-ref-inline.h).
19667 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19669 (cgraph_speculative_call_info): Likewise.
19670 (cgraph_for_node_thunks_and_aliases): Likewise.
19671 (cgraph_for_node_and_aliases): Likewise.
19672 (verify_cgraph_node): Likewise.
19673 * cgraph.h: Batch of IPA REF functions become member functions of
19674 symtab_node: add_reference, maybe_add_reference, clone_references,
19675 clone_referring, clone_reference, find_reference,
19676 remove_stmt_references, remove_all_references,
19677 remove_all_referring, dump_references, dump_referring,
19678 has_alias_p, iterate_reference, iterate_referring.
19679 * cgraphbuild.c (record_reference): New IPA REF function used.
19680 (record_type_list): Likewise.
19681 (record_eh_tables): Likewise.
19682 (mark_address): Likewise.
19683 (mark_load): Likewise.
19684 (mark_store): Likewise.
19685 (pass_build_cgraph_edges): Likewise.
19686 (rebuild_cgraph_edge): Likewise.
19687 (cgraph_rebuild_references): Likewise.
19688 (pass_remove_cgraph_callee_edges): Likewise.
19689 * cgraphclones.c (cgraph_clone_node): Likewise.
19690 (cgraph_create_virtual_clone): Likewise.
19691 (cgraph_materialize_clone): Likewise.
19692 (cgraph_materialize_all_clones): Likewise.
19693 * cgraphunit.c (cgraph_reset_node): Likewise.
19694 (cgraph_reset_node): Likewise.
19695 (analyze_function): Likewise.
19696 (assemble_thunks_and_aliases): Likewise.
19697 (expand_function): Likewise.
19698 * ipa-comdats.c (propagate_comdat_group): Likewise.
19699 (enqueue_references): Likewise.
19700 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19701 (create_specialized_node): Likewise.
19702 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19703 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19704 * ipa-inline.c (reset_edge_caches): Likewise.
19705 (update_caller_keys): Likewise.
19706 (execute): Likewise.
19707 * ipa-prop.c (remove_described_reference): Likewise.
19708 (propagate_controlled_uses): Likewise.
19709 (ipa_edge_duplication_hook): Likewise.
19710 (ipa_modify_call_arguments): Likewise.
19711 * ipa-pure-const.c (propagate_pure_const): Likewise.
19712 * ipa-ref-inline.h: Header file removed, functions moved
19713 to symtab_node class.
19714 * ipa-ref.c (remove_reference): New class member function.
19715 (cannot_lead_to_return): New class member function.
19716 (referring_ref_list): Likewise.
19717 (referred_ref_list): Likewise.
19718 Rest of functions moved to symtab_node class.
19719 * ipa-ref.h: New member functions remove_reference,
19720 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19722 ipa_ref_list class has new member functions: first_reference,
19723 first_referring, clear, nreferences.
19724 * ipa-reference.c (analyze_function): New IPA REF function used.
19725 (write_node_summary_p): Likewise.
19726 (ipa_reference_write_optimization_summary): Likewise.
19727 * ipa-split.c (split_function): Likewise.
19728 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19729 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19730 (function_and_variable_visibility): Likewise.
19731 * ipa.c (has_addr_references_p): Likewise.
19732 (process_references): Argument type changed.
19733 (symtab_remove_unreachable_nodes): New IPA REF function used.
19734 (process_references): Likewise.
19735 (set_writeonly_bit): Likewise.
19736 * lto-cgraph.c: Implementation of new symtab_node member functions
19737 that uses new IPA REF functions.
19738 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19740 * lto-streamer-out.c (output_symbol_p): Likewise.
19741 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19743 * symtab.c: Implementation of new IPA REF API.
19744 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19745 (ipa_tm_create_version): Likewise.
19746 (ipa_tm_execute): Likewise.
19747 * tree-emutls.c (gen_emutls_addr): Likewise.
19748 * tree-inline.c (copy_bb): Likewise.
19749 (delete_unreachable_blocks_update_callgraph): Likewise.
19750 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19751 (varpool_for_node_and_aliases): Likewise.
19753 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19755 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19757 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19760 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19761 tree_node * instead of tree_node *.
19763 (print_fold_checksum): Likewise.
19764 (fold_check_failed): Likewise.
19765 (debug_fold_checksum): Likewise.
19766 (fold_build1_stat_loc): Likewise.
19767 (fold_build2_stat_loc): Likewise.
19768 (fold_build3_stat_loc): Likewise.
19769 (fold_build_call_array_loc): Likewise.
19771 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19773 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19774 implementation with call to...
19775 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19777 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19780 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19782 PR tree-optimization/57742
19783 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19784 after replacing the statement.
19786 2014-06-25 Nick Clifton <nickc@redhat.com>
19788 * config/v850/v850.c (GHS_default_section_names): Change to const
19790 (GHS_current_section_names): Likewise.
19791 (v850_insert_attributes): Do not build strings, just assign the
19792 names directly. Change the type of 'chosen_section' to const
19794 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19795 directly to the array entry.
19796 * config/v850/v850.h (GHS_default_section_names): Change to const
19798 (GHS_current_section_names): Likewise.
19800 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19802 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19803 (LANG_HOOKS_DECLS): Add it.
19804 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19806 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19807 * langhooks.h (struct lang_hooks_for_decls): Add
19808 omp_clause_linear_ctor hook.
19809 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19810 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19811 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19812 combined simd loop use omp_clause_linear_ctor hook.
19814 2014-06-24 Cong Hou <congh@google.com>
19816 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19817 pattern recognition.
19818 (type_conversion_p): PROMOTION is true if it's a type promotion
19819 conversion, and false otherwise. Return true if the given expression
19820 is a type conversion one.
19821 * tree-vectorizer.h: Adjust the number of patterns.
19822 * tree.def: Add SAD_EXPR.
19823 * optabs.def: Add sad_optab.
19824 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19825 * expr.c (expand_expr_real_2): Likewise.
19826 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19827 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19828 * optabs.c (optab_for_tree_code): Likewise.
19829 * tree-cfg.c (estimate_operator_cost): Likewise.
19830 * tree-ssa-operands.c (get_expr_operands): Likewise.
19831 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19832 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19833 * doc/generic.texi: Add document for SAD_EXPR.
19834 * doc/md.texi: Add document for ssad and usad.
19836 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19838 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19839 qualification in cast.
19841 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19843 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19844 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19845 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19846 (tree_function_decl): ... here.
19847 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19848 streaming of vindex to ...
19849 (write_ts_function_decl_tree_pointers): ... here.
19850 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19851 Do not stream DECL_VINDEX.
19852 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19854 2014-06-24 Catherine Moore <clm@codesourcery.com>
19855 Sandra Loosemore <sandra@codesourcery.com>
19857 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19858 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19859 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19861 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19863 * doc/invoke.texi (Warning Options): Remove duplicated
19864 -Wmaybe-uninitialized.
19866 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19868 PR tree-optimization/57742
19869 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19870 (handle_builtin_malloc, handle_builtin_memset): New functions.
19871 (strlen_optimize_stmt): Call them.
19872 * passes.def: Move strlen after loop+dom but before vrp.
19874 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19877 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19878 model family 6 CPU with has_longmode never use a CPU without
19881 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19884 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19887 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19889 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19890 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19892 * hash-map.h: New file.
19893 * ipa-comdats.c: Use hash_map instead of pointer_map.
19895 * lto-section-out.c: Adjust.
19896 * lto-streamer.h: Replace pointer_map with hash_map.
19897 * symtab.c (verify_symtab): Likewise.
19898 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19899 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19900 * tree-streamer.h: Likewise.
19901 * tree-streamer.c: Adjust.
19902 * pointer-set.h: Remove pointer_map.
19904 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19906 * hash-table.h: Add a template arg to choose between storing values
19907 and storing pointers to values, and then provide partial
19908 specializations for both.
19909 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19910 should store, not the type values should point to.
19911 * tree-into-ssa.c (var_info_hasher): Likewise.
19912 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19913 * tree-complex.c: Adjust.
19914 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19915 table instead of int_tree_map *.
19916 * tree-parloops.c: Adjust.
19917 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19918 type is being stored.
19919 * tree-vectorizer.c: Adjust.
19921 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19923 * hash-table.h: Remove a layer of indirection from hash_table so that
19924 it contains the hash table's data instead of a pointer to the data.
19925 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19926 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19927 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19928 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19929 fold-const.c, gcse.c, ggc-common.c,
19930 gimple-ssa-strength-reduction.c, gimplify.c,
19931 graphite-clast-to-gimple.c, graphite-dependences.c,
19932 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19933 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19934 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19935 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19936 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19937 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19938 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19939 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19940 tree-ssa-live.c, tree-ssa-loop-im.c,
19941 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19942 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19943 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19944 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19945 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19946 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19947 vtable-verify.c, vtable-verify.h: Adjust.
19949 2014-06-24 Richard Biener <rguenther@suse.de>
19951 PR tree-optimization/61572
19952 * tree-ssa-sink.c (statement_sink_location): Do not sink
19953 loads from hard registers.
19955 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19957 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19958 not mentioned in clauses use private clause if the iterator is
19959 declared in #pragma omp for simd, and when adding lastprivate
19960 instead, add it to the outer #pragma omp for too. Diagnose
19961 if the variable is private in outer context. For simd collapse > 1
19962 loops, replace all iterators with temporaries.
19963 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19964 same even in collapse > 1 loops.
19966 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19967 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19969 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19970 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19972 (gimplify_adjust_omp_clauses): Likewise.
19973 * omp-low.c (lower_rec_simd_input_clauses,
19974 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19975 safelen the same as safelen(1).
19976 * tree-nested.c (convert_nonlocal_omp_clauses,
19977 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19978 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19979 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19980 Fixup handling of GIMPLE_OMP_TARGET.
19981 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19984 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19986 PR tree-optimization/61554
19987 * tree-ssa-propagate.c: Include "bitmap.h".
19988 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19989 properly update constructor/destructor.
19990 (substitute_and_fold_dom_walker::before_dom_children):
19991 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19992 need_eh_cleaup instead.
19993 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19996 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19998 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19999 * tree-pass.h (make_pass_ipa_single_use): New pass.
20000 * cgraph.h (used_by_single_function): New flag.
20001 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20003 * passes.def (pass_ipa_single_use): Scedule.
20004 * ipa.c (BOTTOM): New macro.
20005 (meet): New function
20006 (propagate_single_user): New function.
20007 (ipa_single_use): New function.
20008 (pass_data_ipa_single_use): New pass.
20009 (pass_ipa_single_use): New pass.
20010 (pass_ipa_single_use::gate): New gate.
20011 (make_pass_ipa_single_use): New function.
20013 2014-06-23 Kai Tietz <ktietz@redhat.com>
20016 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20017 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20019 2014-06-23 Richard Biener <rguenther@suse.de>
20021 * tree-ssa-loop.c (gate_loop): New function.
20022 (pass_tree_loop::gate): Call it.
20023 (pass_data_tree_no_loop, pass_tree_no_loop,
20024 make_pass_tree_no_loop): New.
20025 * tree-vectorizer.c: Include tree-scalar-evolution.c
20026 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20028 (pass_slp_vectorize::clone): New method.
20029 * timevar.def (TV_TREE_NOLOOP): New.
20030 * tree-pass.h (make_pass_tree_no_loop): Declare.
20031 * passes.def (pass_tree_no_loop): New pass group with
20034 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20037 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20038 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20040 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20042 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20043 "yes" where needed.
20045 2014-06-23 Alan Modra <amodra@gmail.com>
20048 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20049 to zero on debug statements.
20051 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20054 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20055 Ignore third operand if present by marking qualifier_internal.
20057 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20059 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20061 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20062 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20063 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20064 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20065 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20066 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20067 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20068 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20069 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20070 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20071 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20072 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20073 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20074 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20075 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20076 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20077 logic in GCC vector extensions
20079 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20080 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20081 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20082 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20083 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20084 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20085 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20086 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20087 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20088 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20090 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20092 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20095 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20096 (vget_low_s64): Use __GET_LOW macro.
20097 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20098 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20099 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20100 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20101 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20103 (vcombine_s64): Use GCC vector extensions; remove cast.
20104 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20105 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20106 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20107 Fix type signature; remove cast.
20109 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20112 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20114 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20116 (BUILTIN_VD1): New.
20117 (BUILTIN_VD_RE): Remove.
20118 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20119 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20120 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20121 variant but not df.
20122 (vreinterpretv1df*, vreinterpret*v1df): New.
20123 (vreinterpretdf*, vreinterpret*df): Remove.
20124 * config/aarch64/aarch64-simd.md (aarch64_create,
20125 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20126 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20128 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20129 (vcreate_f64): Remove cast, use v1df builtin.
20130 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20131 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20132 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20133 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20134 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20135 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20136 add range check using __builtin_aarch64_im_lane_boundsi.
20137 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20138 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20139 type signature, use gcc vector extensions.
20140 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20141 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20142 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20143 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20144 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20145 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20146 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20147 vreinterpret_u64_f64): Use v1df builtin not df.
20149 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20151 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20154 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20156 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20159 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20161 * loop-invariant.c (pre_check_invariant_p): New function.
20162 (find_invariant_insn): Call pre_check_invariant_p.
20164 2014-06-22 Richard Henderson <rth@redhat.com>
20167 * compare-elim.c (struct comparison): Add eh_note.
20168 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20169 a redundant comparison in a different EH region. Purge EH edges if
20172 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20174 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20175 (var_shift): Use it.
20176 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20177 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20178 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20179 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20180 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20181 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20182 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20183 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20184 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20185 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20186 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20187 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20188 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20189 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20190 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20191 *rotldi3_internal15be): Use the new attribute. Merge register and
20192 integer alternatives.
20194 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20196 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20197 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20198 split, *ashrdi3_internal3 and split): Delete, merge into...
20199 (ashr<mode>3): New expander.
20200 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20201 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20203 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20205 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20206 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20207 *rotldi3_internal3 and split): Delete, merge into...
20208 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20209 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20210 Use "rotlw" extended mnemonic.
20212 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20214 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20215 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20216 and split, *ashldi3_internal3 and split): Delete, merge into...
20217 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20218 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20220 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20222 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20223 (lshrsi3, two anonymous define_insns and define_splits,
20224 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20225 *lshrdi3_internal3 and split): Delete, merge into...
20226 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20227 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20229 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20231 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20232 Remove "O" alternative.
20234 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20236 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20237 (mips_move_from_gpr_cost): Likewise.
20238 (mips_register_move_cost): Update accordingly.
20239 (mips_secondary_reload_class): Remove name of in_p.
20241 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20244 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20245 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20247 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20249 * config/nios2/nios2.c: Include "builtins.h".
20251 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20253 * cgraph.h (tls_model_names): New variable.
20254 * print-tree.c (print_node): Simplify.
20255 * varpool.c (tls_model_names): New variable.
20256 (dump_varpool_node): Output tls model.
20258 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20260 * ipa-visibility.c (function_and_variable_visibility): Disable
20261 temporarily local aliases for some targets.
20263 2014-06-20 Marek Polacek <polacek@redhat.com>
20265 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20266 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20267 into SANITIZE_UNDEFINED.
20268 * doc/invoke.texi: Describe -fsanitize=bounds.
20269 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20270 functions created in the FEs.
20271 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20272 (expand_UBSAN_BOUNDS): New function.
20273 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20274 * internal-fn.h: Don't define internal functions here.
20275 * opts.c (common_handle_option): Add -fsanitize=bounds.
20276 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20277 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20278 * tree-core.h: Define internal functions here.
20279 (struct tree_base): Add ifn field.
20280 * tree-pretty-print.c: Include "internal-fn.h".
20281 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20282 * tree.c (get_callee_fndecl): Likewise.
20283 (build_call_expr_internal_loc): New function.
20284 * tree.def (CALL_EXPR): Update description.
20285 * tree.h (CALL_EXPR_IFN): Define.
20286 (build_call_expr_internal_loc): Declare.
20287 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20289 (ubsan_type_descriptor): Change bool parameter to enum
20290 ubsan_print_style. Adjust the code. Add handling of
20292 (ubsan_expand_bounds_ifn): New function.
20293 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20294 (ubsan_build_overflow_builtin): Likewise.
20295 (instrument_bool_enum_load): Likewise.
20296 (ubsan_instrument_float_cast): Likewise.
20297 * ubsan.h (enum ubsan_print_style): New enum.
20298 (ubsan_expand_bounds_ifn): Declare.
20299 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20301 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20303 * config/rs6000/rs6000.md: Append `DONE' to preparation
20304 statements of `bswap' pattern splitters.
20306 2014-06-20 Tom de Vries <tom@codesourcery.com>
20308 * target.def (call_fusage_contains_non_callee_clobbers): Update
20310 * doc/tm.texi: Regenerate.
20312 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20313 Max Ostapenko <m.ostapenko@partner.samsung.com>
20316 * asan.c (instrument_strlen_call): Fixed instrumentation of
20319 2014-06-20 Martin Jambor <mjambor@suse.cz>
20322 * ipa-prop.c (impossible_devirt_target): New function.
20323 (try_make_edge_direct_virtual_call): Use it, also instead of
20326 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20327 Max Ostapenko <m.ostapenko@partner.samsung.com>
20330 * asan.c (build_check_stmt): Add condition.
20332 2014-06-20 Martin Jambor <mjambor@suse.cz>
20335 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20338 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20340 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20342 (VCONQ): Make comment more helpful.
20344 * config/aarch64/aarch64-simd.md
20345 (aarch64_sqdmulh_lane<mode>):
20346 Use VCOND for operands 2. Update lane checking and flipping logic.
20347 (aarch64_sqrdmulh_lane<mode>): Likewise.
20348 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20349 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20350 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20351 attribute of operand 3 to VCOND.
20352 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20353 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20354 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20355 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20356 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20357 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20359 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20360 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20361 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20362 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20363 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20364 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20365 operand to VCOND. Update lane flipping and bounds checking logic.
20366 (aarch64_sqdmlal2_lane<mode>): Likewise.
20367 (aarch64_sqdmlsl_lane<mode>): Likewise.
20368 (aarch64_sqdmull_lane<mode>): Likewise.
20369 (aarch64_sqdmull2_lane<mode>): Likewise.
20370 (aarch64_sqdmlal_laneq<mode>):
20371 Replace VCON usage with VCONQ.
20372 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20373 (aarch64_sqdmlal2_laneq<mode>): Emit
20374 aarch64_sqdmlal2_laneq<mode>_internal insn.
20375 Replace VCON with VCONQ.
20376 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20377 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20378 (aarch64_sqdmull_laneq<mode>): Emit
20379 aarch64_sqdmull_laneq<mode>_internal insn.
20380 Replace VCON with VCONQ.
20381 (aarch64_sqdmull2_laneq<mode>): Emit
20382 aarch64_sqdmull2_laneq<mode>_internal insn.
20383 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20384 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20385 of 3rd argument to int16x4_t.
20386 (vqdmlalh_lane_s16): Likewise.
20387 (vqdmlslh_lane_s16): Likewise.
20388 (vqdmull_high_lane_s16): Likewise.
20389 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20390 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20391 (vqdmlsl_lane_s16): Likewise.
20392 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20393 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20394 (vqdmlals_lane_s32): Likewise.
20395 (vqdmlsls_lane_s32): Likewise.
20396 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20397 (vqdmulls_lane_s32): Likewise.
20398 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20399 (vqdmlsl_lane_s32): Likewise.
20400 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20401 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20402 (vqrdmulhh_lane_s16): Likewise.
20403 (vqdmlsl_high_lane_s16): Likewise.
20404 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20405 (vqdmlsl_high_lane_s32): Likewise.
20406 (vqrdmulhs_lane_s32): Likewise.
20408 2014-06-20 Tom de Vries <tom@codesourcery.com>
20410 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20411 get_call_reg_set_usage.
20413 2014-06-20 Tom de Vries <tom@codesourcery.com>
20415 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20416 it contains all call_used_regs.
20418 2014-06-20 Tom de Vries <tom@codesourcery.com>
20420 * final.c (collect_fn_hard_reg_usage): Add and use variable
20421 function_used_regs.
20423 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20425 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20426 (set_init_priority, get_init_priority, set_fini_priority,
20427 get_fini_priority): New methods.
20428 * tree.c (init_priority_for_decl): Remove.
20429 (init_ttree): Do not initialize init priority.
20430 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20431 (decl_priority_info): Remove.
20432 (decl_init_priority_insert): Rewrite.
20433 (decl_fini_priority_insert): Rewrite.
20434 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20435 tree_priority_map_marked_p): Remove.
20436 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20437 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20438 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20439 not output priorities.
20440 (pack_ts_function_decl_value_fields): Likewise.
20441 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20442 not input priorities.
20443 (unpack_ts_function_decl_value_fields): Likewise.
20444 * symtab.c (symbol_priority_map): Declare.
20445 (init_priority_hash): Declare.
20446 (symtab_unregister_node): Unregister from priority hash, too.
20447 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20449 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20450 (symbol_priority_info): New function.
20451 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20453 * tree-core.h (tree_priority_map): Remove.
20455 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20457 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20458 0xff to uint64_t before shifting it up.
20460 2014-06-20 Julian Brown <julian@codesourcery.com>
20461 Chung-Lin Tang <cltang@codesourcery.com>
20463 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20464 TARGET_THUMB1_ONLY. Add comments.
20466 2014-06-19 Tom de Vries <tom@codesourcery.com>
20468 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20469 return type to void.
20470 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20472 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20474 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20475 as "move", from depends_on.
20477 2014-06-19 Terry Guo <terry.guo@arm.com>
20479 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20482 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20484 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20486 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20488 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20491 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20492 addresses here if reload in progress or completed.
20494 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20496 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20497 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20498 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20499 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20500 (mips_register_priority): New function that implements the target
20501 hook TARGET_REGISTER_PRIORITY.
20502 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20503 (mips_lra_p): Likewise for TARGET_LRA_P.
20504 (TARGET_REGISTER_PRIORITY): Define macro.
20505 (TARGET_SPILL_CLASS): Likewise.
20506 (TARGET_LRA_P): Likewise.
20507 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20509 (REG_CLASS_NAMES): Likewise.
20510 (REG_CLASS_CONTENTS): Likewise.
20511 (BASE_REG_CLASS): Use M16_SP_REGS.
20512 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20513 New set attribute to enable alternatives depending on the register
20515 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20516 (*lea64): Disable pattern for MIPS16.
20517 * config/mips/mips.opt (mlra): New option.
20519 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20521 * lra-constraints.c (base_to_reg): New function.
20522 (process_address): Use new function.
20524 2014-06-18 Tom de Vries <tom@codesourcery.com>
20526 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20527 * config/aarch64/aarch64.c
20528 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20529 (aarch64_emit_call_insn): New function.
20530 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20532 * config/aarch64/aarch64.md (define_expand "call_internal")
20533 (define_expand "call_value_internal", define_expand "sibcall_internal")
20534 (define_expand "sibcall_value_internal"): New.
20535 (define_expand "call", define_expand "call_value")
20536 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20537 expand variant and aarch64_emit_call_insn.
20539 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20540 Tom de Vries <tom@codesourcery.com>
20542 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20543 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20545 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20546 clobbers to CALL_INSN_FUNCTION_USAGE.
20547 (define_expand "sibcall_internal")
20548 (define_expand "sibcall_value_internal"): New.
20549 (define_expand "call", define_expand "call_value"): Add argument to
20550 arm_emit_call_insn.
20551 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20552 (define_expand "sibcall_value"): Use sibcall_value_internal and
20553 arm_emit_call_insn.
20555 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20557 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20559 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20561 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20564 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20566 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20567 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20568 annotations. Fix DWARF information.
20570 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20572 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20573 __udivmoddi4, and fixups for negative operands.
20575 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20577 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20579 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20581 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20584 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20586 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20589 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20591 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20592 describing register usage on function entry and exit.
20594 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20596 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20597 (__aeabi_ldivmod): Fix whitespace.
20599 2014-06-18 Andreas Schwab <schwab@suse.de>
20601 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20602 Remove blank line after @item.
20604 2014-06-18 Richard Henderson <rth@redhat.com>
20607 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20609 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20611 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20612 POST_MODIFY for neon loads and stores.
20613 (arm_print_operand): Output post-index register for neon loads and
20616 2014-06-18 Richard Biener <rguenther@suse.de>
20618 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20620 2014-06-18 Richard Biener <rguenther@suse.de>
20622 * tree-pass.h (make_pass_dce_loop): Remove.
20623 * passes.def: Replace pass_dce_loop with pass_dce.
20624 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20625 changed free niter estimates and reset the scev cache.
20626 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20627 make_pass_dce_loop): Remove.
20628 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20629 (fini_copy_prop): Return whether something changed. Always
20630 let substitute_and_fold perform DCE and free niter estimates
20631 and reset the scev cache if so.
20632 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20633 (pass_data_copy_prop): Do not unconditionally schedule
20634 cleanup-cfg or update-ssa.
20636 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20638 PR tree-optimization/61518
20639 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20640 reduction var is used in reduction stmt or phi-function only.
20642 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20644 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20646 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20648 PR tree-optimization/61517
20649 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20650 whose rhs's first tree is the source expression instead of the
20652 (find_bswap_or_nop): Likewise.
20653 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20654 gimple stmt whose rhs's first tree is the source. In the memory source
20655 case, move the stmt to be replaced close to one of the original load to
20656 avoid the problem of a store between the load and the stmt's original
20658 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20661 2014-06-18 Andreas Schwab <schwab@suse.de>
20663 PR rtl-optimization/54555
20664 * postreload.c (move2add_use_add2_insn): Substitute
20665 STRICT_LOW_PART only if it is cheaper.
20667 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20669 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20670 Do not use unspec as call operand. Use memory_operand instead of
20671 memory_nox32_operand and add "m" operand constraint. Disable
20672 pattern for TARGET_X32.
20673 (*sibcall_pop_memory): Ditto.
20674 (*sibcall_value_memory): Ditto.
20675 (*sibcall_value_pop_memory): Ditto.
20676 (sibcall peepholes): Merge SImode and DImode patterns using
20677 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20678 Disable pattern for TARGET_X32. Check if eliminated register is
20679 really dead after call insn. Generate call RTX without unspec operand.
20680 (sibcall_value peepholes): Ditto.
20681 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20682 instead of memory_nox32_operand. Check if eliminated register is
20683 really dead after call insn. Generate call RTX without unspec operand.
20684 (sibcall_value_pop peepholes): Ditto.
20685 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20687 2014-06-18 Terry Guo <terry.guo@arm.com>
20690 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20693 2014-06-18 Olivier Hainque <hainque@adacore.com>
20695 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20696 memorization of the end of block source location.
20697 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20698 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20699 end source location info we have on the block entry/exit code we
20702 2014-06-18 Richard Biener <rguenther@suse.de>
20704 * common.opt (fssa-phiopt): New option.
20705 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20707 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20708 * doc/invoke.texi (-fssa-phiopt): Document.
20710 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20712 * genattrtab.c (n_bypassed): New variable.
20713 (process_bypasses): Initialise n_bypassed.
20714 Count number of bypassed reservations.
20715 (make_automaton_attrs): Allocate space for bypassed reservations
20716 rather than number of bypasses.
20718 2014-06-18 Richard Biener <rguenther@suse.de>
20720 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20721 we propagated anything.
20722 (substitute_and_fold_dom_walker::before_dom_children): Something
20723 changed if we propagated into PHI arguments.
20724 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20727 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20729 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20731 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20732 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20733 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20734 Introduces alternative way of loads group permutaions.
20735 (vect_transform_grouped_load): Try alternative way of permutations.
20737 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20739 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20740 changed in ORT_TARGET region, don't jump to do_outer.
20741 (struct gimplify_adjust_omp_clauses_data): New type.
20742 (gimplify_adjust_omp_clauses_1): Adjust for data being
20743 a struct gimplify_adjust_omp_clauses_data pointer instead
20744 of tree *. Pass pre_p as a new argument to
20745 lang_hooks.decls.omp_finish_clause hook.
20746 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20747 splay_tree_foreach to pass both list_p and pre_p.
20748 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20749 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20750 gimplify_adjust_omp_clauses callers.
20751 * langhooks.c (lhd_omp_finish_clause): New function.
20752 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20753 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20754 * langhooks.h (struct lang_hooks_for_decls): Add a new
20755 gimple_seq * argument to omp_finish_clause hook.
20756 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20757 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20758 (scan_omp_parallel, lower_omp_for): When adding
20759 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20760 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20761 * tree-nested.c (convert_nonlocal_omp_clauses,
20762 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20763 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20765 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20767 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20768 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20770 2014-06-17 Xinliang David Li <davidxl@google.com>
20772 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20773 * passes.c (pass_init_dump_file): Do not set initialize
20774 flag to false unconditionally.
20776 2014-06-17 Richard Biener <rguenther@suse.de>
20778 * genopinit.c (main): Use vec<>::qsort method.
20779 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20781 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20783 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20785 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20786 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20787 (mips_move_to_gpr_cost): Remove ST_REGS case.
20788 (mips_move_from_gpr_cost): Likewise.
20789 (mips_register_move_cost): Likewise.
20790 (mips_secondary_reload_class): Likewise.
20792 2014-06-17 Richard Biener <rguenther@suse.de>
20794 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20795 (pass_all_optimizations): Move 3rd copy-prop pass from after
20796 fre to before ifcombine/phiopt.
20798 2014-06-17 Richard Biener <rguenther@suse.de>
20800 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20801 and allow all blocks to be forwarders.
20803 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20806 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20807 variable 'size'; calculate 'size' right in the front; use
20808 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20809 pcum->aapcs_stack_words.
20811 2014-06-17 Nick Clifton <nickc@redhat.com>
20813 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20814 (umulhi3, mulsidi3, umulsidi3): Likewise.
20816 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20818 PR middle-end/61508
20819 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20820 check for section name.
20822 2014-06-17 Richard Biener <rguenther@suse.de>
20824 * tree-ssa-propagate.c: Include domwalk.h.
20825 (substitute_and_fold): Outline main worker into a domwalker ...
20826 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20827 Schedule stmts we can fully propagate for removal. Remove
20829 (substitute_and_fold): Apply a dominator walk to perform
20830 substitution. Process stmts scheduled for removal here.
20832 2014-06-17 Richard Biener <rguenther@suse.de>
20834 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20835 of PHI node moving.
20837 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20839 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20840 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20841 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20842 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20843 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20845 (get_fpscr) : Likewise.
20847 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20849 PR rtl-optimization/61325
20850 * lra-constraints.c (valid_address_p): Add forward declaration.
20851 (simplify_operand_subreg): Check address validity before and after
20852 alter_reg of memory subreg.
20854 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20856 * config/i386/i386.c (decide_alg): Correctly handle
20857 maximum size of stringop algorithm.
20859 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20861 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20863 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20865 PR rtl-optimization/61522
20866 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20868 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20871 * symtab.c (symtab_node::reset_section): New method.
20872 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20874 * cgraph.h (reset_section): Declare.
20875 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20876 do not consider comdat locals.
20877 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20879 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20880 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20881 reset sections of symbols dragged out of the comdats.
20882 (function_and_variable_visibility): Reset sections of
20885 2014-06-16 Richard Biener <rguenther@suse.de>
20887 PR tree-optimization/61482
20888 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20889 [-INF(OVF), +INF(OVF)] range.
20891 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20893 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20894 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20895 handling 32-bit multiplication.
20897 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20899 PR middle-end/61430
20900 * lra-lives.c (process_bb_lives): Skip creating copy during
20901 insn scan when src/dest has constrained to same regno.
20903 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20905 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20906 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20908 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20910 * asan.c (check_func): New function.
20911 (maybe_create_ssa_name): Likewise.
20912 (build_check_stmt_with_calls): Likewise.
20913 (use_calls_p): Likewise.
20914 (report_error_func): Change interface.
20915 (build_check_stmt): Allow non-integer lengths; add support
20917 (asan_instrument): Likewise.
20918 (instrument_mem_region_access): Moved code to build_check_stmt.
20919 (instrument_derefs): Likewise.
20920 (instrument_strlen_call): Likewise.
20921 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20922 * doc/invoke.texi: Describe new parameter.
20923 * params.def: Define new parameter.
20924 * params.h: Likewise.
20925 * sanitizer.def: Describe new builtins.
20927 2014-06-16 Richard Biener <rguenther@suse.de>
20929 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20930 Make all defs available at the end.
20931 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20933 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20936 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20938 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20941 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20942 initialization. Replace remaining use of uid.
20944 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20946 * c-family/c-common.c (handle_tls_model_attribute): Use
20947 set_decl_tls_model.
20948 * c-family/c-common.c (handle_tls_model_attribute): Use
20949 set_decl_tls_model.
20950 * cgraph.h (struct varpool_node): Add tls_model.
20951 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20952 * tree.h (DECL_TLS_MODEL): Update.
20953 (DECL_THREAD_LOCAL_P): Check that variable is static.
20954 (decl_tls_model): Declare.
20955 (set_decl_tls_model): Declare.
20956 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20957 set symbol prorperties.
20958 (get_emutls_init_templ_addr): Cleanup.
20959 (new_emutls_decl): Update.
20960 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20961 (lto_input_varpool_node): Likewise.
20962 * lto-streamer-out.c (hash_tree): Likewise.
20963 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20964 not stream DECL_TLS_MODEL.
20965 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20966 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20968 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20970 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20972 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20974 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20975 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20977 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20978 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20979 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20980 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20981 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20982 (df_get_artificial_defs, df_get_artificial_uses)
20983 (df_single_def, df_single_use): Update accordingly.
20984 (df_refs_chain_dump): Take the first element in a linked list as
20985 parameter, rather than a pointer to an array of pointers.
20986 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20987 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20988 (df_chain_create_bb_process_use): Likewise.
20989 (df_md_bb_local_compute_process_def): Likewise.
20990 * fwprop.c (process_defs, process_uses): Likewise.
20991 (register_active_defs, update_uses): Likewise.
20992 (forward_propagate_asm): Update for new df_ref linking.
20993 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20994 (df_null_ref_rec, df_null_mw_rec): Likewise.
20995 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20997 (df_scan_free_bb_info): Remove check for null artificial_defs.
20998 (df_install_ref_incremental): Adjust for new df_ref linking.
20999 Use a single-element insertion rather than a full sort.
21000 (df_ref_chain_delete_du_chain): Take the first element
21001 in a linked list as parameter, rather than a pointer to an array of
21003 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21004 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21005 (df_insn_info_delete): Remove check for null defs and call to
21006 df_scan_free_mws_vec.
21007 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21008 null rather than df_null_*_rec.
21009 (df_insn_rescan_debug_internal): Likewise, and update null
21010 checks in the same way. Remove check for null defs.
21011 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21012 Move a single element rather doing a full sort.
21013 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21015 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21016 Initialize df_ref and df_mw_hardreg lists to null rather than
21018 (df_ref_compare): Take df_refs as parameter, transferring the
21019 old interface to...
21020 (df_ref_ptr_compare): ...this new function.
21021 (df_sort_and_compress_refs): Update accordingly.
21022 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21023 old interface to...
21024 (df_mw_ptr_compare): ...this new function.
21025 (df_sort_and_compress_mws): Update accordingly.
21026 (df_install_refs, df_install_mws): Return a linked list rather than
21027 an array of pointers.
21028 (df_refs_add_to_chains): Assert that old lists are empty rather
21030 (df_insn_refs_verify): Don't handle null defs speciailly.
21031 * web.c (union_match_dups): Update for new df_ref linking.
21033 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21035 * df.h (df_ref_create, df_ref_remove): Delete.
21036 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21037 (df_ref_remove): Likewise.
21039 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21041 * df.h (df_single_def, df_single_use): New functions.
21042 * ira.c (find_moveable_pseudos): Use them.
21044 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21046 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21047 * df-problems.c (df_note_bb_compute): Use it.
21048 * regstat.c (regstat_bb_compute_ri): Likewise.
21050 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21052 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21053 * cse.c (cse_extended_basic_block): Use them.
21054 * dce.c (mark_artificial_use): Likewise.
21055 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21056 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21057 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21058 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21059 (df_simulate_initialize_backwards): Likewise.
21060 (df_simulate_finalize_backwards): Likewise.
21061 (df_simulate_initialize_forwards): Likewise.
21062 (df_md_simulate_artificial_defs_at_top): Likewise.
21063 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21064 * regrename.c (init_rename_info): Likewise.
21065 * regstat.c (regstat_bb_compute_ri): Likewise.
21066 (regstat_bb_compute_calls_crossed): Likewise.
21068 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21070 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21071 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21072 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21073 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21074 * combine.c (create_log_links): Likewise.
21075 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21076 (try_eliminate_compare): Likewise.
21077 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21078 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21079 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21080 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21081 (word_dce_process_block, dce_process_block): Likewise.
21082 * ddg.c (def_has_ccmode_p): Likewise.
21083 * df-core.c (df_bb_regno_first_def_find): Likewise.
21084 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21085 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21086 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21087 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21088 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21089 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21090 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21091 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21092 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21093 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21094 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21095 * fwprop.c (local_ref_killed_between_p): Likewise.
21096 (all_uses_available_at, free_load_extend): Likewise.
21097 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21098 * hw-doloop.c (scan_loop): Likewise.
21099 * ifcvt.c (dead_or_predicable): Likewise.
21100 * init-regs.c (initialize_uninitialized_regs): Likewise.
21101 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21102 (process_bb_node_lives): Likewise.
21103 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21104 (find_moveable_pseudos): Likewise.
21105 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21106 * recog.c (peep2_find_free_register): Likewise.
21107 * ree.c (get_defs): Likewise.
21108 * regstat.c (regstat_bb_compute_ri): Likewise.
21109 (regstat_bb_compute_calls_crossed): Likewise.
21110 * sched-deps.c (find_inc, find_mem): Likewise.
21111 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21112 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21113 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21114 (prepare_shrink_wrap): Likewise.
21115 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21116 * web.c (union_defs, pass_web::execute): Likewise.
21117 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21118 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21120 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21122 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21123 to inheritance pseudos.
21124 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21126 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21129 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21130 (BU_MISC_2): Rename to ...
21131 (BU_LDBL128_2): ... this.
21132 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21133 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21134 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21135 RS6000_BTM_LDBL128.
21136 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21137 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21138 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21139 (unpacktf_1): Likewise.
21140 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21141 (__builtin_longdouble_dw1): Likewise.
21142 * doc/sourcebuild.texi (longdouble128): Document.
21144 2014-06-13 Jeff Law <law@redhat.com>
21146 PR rtl-optimization/61094
21147 PR rtl-optimization/61446
21148 * ree.c (combine_reaching_defs): Get the mode for the copy from
21149 the extension insn rather than the defining insn.
21151 2014-06-13 Dehao Chen <dehao@google.com>
21153 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21155 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21157 * doc/install.texi (--enable-linker-plugin-configure-flags)
21158 (--enable-linker-plugin-flags): Document new flags.
21160 2014-06-13 Martin Jambor <mjambor@suse.cz>
21163 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21164 cache_token if returning early.
21166 2014-06-13 Nick Clifton <nickc@redhat.com>
21168 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21169 requested alignment is active.
21170 (LABEL_ALIGN): Likewise.
21171 (LOOP_ALIGN): Likewise.
21173 2014-06-13 Richard Biener <rguenther@suse.de>
21175 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21176 Rewrite to propagate the VN result into all uses where
21177 possible and to remove stmts becoming dead because of that.
21178 (eliminate): Generalize stmt removal handling, remove in
21179 reverse dominator order to support proper debug stmt
21180 generation. Update stmts before removing stmts.
21181 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21183 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21185 PR tree-optimization/61375
21186 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21187 symbolic number cannot be represented in an uint64_t.
21188 (find_bswap_or_nop_1): Likewise.
21190 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21192 * symtab.c (symtab_node::reset_section): New method.
21193 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21195 * cgraph.h (reset_section): Declare.
21196 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21197 do not consider comdat locals.
21198 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21200 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21201 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21202 reset sections of symbols dragged out of the comdats.
21203 (function_and_variable_visibility): Reset sections of
21206 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21208 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21209 to use symtab and decl_binds_to_current_def_p
21210 * tree-vectorizer.c (increase_alignment): Increase alignment
21211 of alias target, too.
21213 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21215 PR middle-end/61486
21216 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21217 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21218 if outer combined construct is distribute.
21219 (gimplify_omp_for): For OMP_DISTRIBUTE set
21220 gimplify_omp_ctxp->distribute.
21221 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21222 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21223 mapping into decl map.
21225 2014-06-12 Jason Merrill <jason@redhat.com>
21227 * common.opt (fabi-version): Change default to 0.
21229 2014-06-12 Jason Merrill <jason@redhat.com>
21231 * toplev.c (process_options): Reject -fabi-version=1.
21233 2014-06-12 Jeff Law <law@redhat.com>
21235 PR tree-optimization/61009
21236 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21237 value when we stop processing a block due to problematic PHIs.
21239 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21241 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21242 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21243 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21244 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21245 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21246 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21247 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21248 are not in the spec.
21250 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21253 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21254 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21257 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21259 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21261 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21264 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21265 loading from address spaces.
21267 2014-06-12 Martin Liska <mliska@suse.cz>
21270 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21271 statement is reachable.
21273 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21275 * symtab.c (section_hash): New hash.
21276 (symtab_unregister_node): Clear section before freeing.
21277 (hash_section_hash_entry): New haser.
21278 (eq_sections): New function.
21279 (symtab_node::set_section_for_node): New method.
21280 (set_section_1): Update.
21281 (symtab_node::set_section): Take string instead of tree as parameter.
21282 (symtab_resolve_alias): Update.
21283 * cgraph.h (section_hash_entry_d): New structure.
21284 (section_hash_entry): New typedef.
21285 (cgraph_node): Change comdat_group_ to x_comdat_group,
21286 change section_ to x_section and turn into section_hash_entry;
21287 update accestors; put set_section_for_node offline.
21288 * tree.c (decl_section_name): Turn into string.
21289 (set_decl_section_name): Change parameter to be string.
21290 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21291 * sdbout.c (sdbout_one_type): Update.
21292 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21293 * varasm.c (IN_NAMED_SECTION, get_named_section,
21294 resolve_unique_section, hot_function_section, get_named_text_section,
21295 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21296 make_decl_rtl, default_unique_section): Update.
21297 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21298 (c6x_elf_unique_section): Update.
21299 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21300 * config/pa/pa.c (pa_function_section): Update.
21301 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21302 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21303 * config/arc/arc.c (arc_in_small_data_p): Update.
21304 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21305 * config/mcore/mcore.c (mcore_unique_section): Update.
21306 * config/mips/mips.c (mips16_build_function_stub): Update.
21307 (mips16_build_call_stub): Update.
21308 (mips_function_rodata_section): Update.
21309 (mips_in_small_data_p): Update.
21310 * config/score/score.c (score_in_small_data_p): Update.
21311 * config/rx/rx.c (rx_in_small_data): Update.
21312 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21313 (rs6000_xcoff_asm_named_section): Update.
21314 (rs6000_xcoff_unique_section): Update.
21315 * config/frv/frv.c (frv_string_begins_with): Update.
21316 (frv_in_small_data_p): Update.
21317 * config/v850/v850.c (v850_encode_data_area): Update.
21318 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21319 (bfin_handle_l1_data_attribute): Update.
21320 (bfin_handle_l2_attribute): Update.
21321 * config/mep/mep.c (mep_unique_section): Update.
21322 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21324 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21325 (h8300_handle_tiny_data_attribute): Update.
21326 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21327 (m32r_in_small_data_p): Update.
21328 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21329 * config/i386/i386.c (ix86_in_large_data_p): Update.
21330 * config/i386/winnt.c (i386_pe_unique_section): Update.
21331 * config/darwin.c (darwin_function_section): Update.
21332 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21333 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21334 (new_emutls_decl): Update.
21335 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21336 input_varpool_node): Update.
21337 (ead_string_cst): Turn to ...
21338 (read_string): ... this one.
21339 * dwarf2out.c (secname_for_decl): Update.
21340 * asan.c (asan_protect_global): Update.
21342 2014-06-11 DJ Delorie <dj@redhat.com>
21344 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21346 * config/rx/rx.c (rx_option_override): Likewise.
21347 (rx_align_for_label): Likewise.
21349 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21351 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21353 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21356 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21358 * common.md: New file.
21359 * doc/md.texi: Update description of generic, machine-independent
21361 * config/s390/constraints.md (e): Delete.
21362 * Makefile.in (md_file): Include common.md.
21363 * config/m32c/t-m32c (md_file): Likewise.
21364 * genpreds.c (general_mem): New array.
21365 (generic_constraint_letters): Remove constraints now defined by
21367 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21368 Allow the first character to be '<' or '>' as well.
21369 * genoutput.c (general_mem): New array.
21370 (indep_constraints): Remove constraints now defined by common.md.
21371 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21372 Remove special handling of 'm'.
21373 * ira-costs.c (record_reg_classes): Remove special handling of
21374 constraints now defined by common.md.
21375 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21376 * ira-lives.c (single_reg_class): Likewise.
21377 (ira_implicitly_set_insn_hard_regs): Likewise.
21378 * lra-constraints.c (reg_class_from_constraints): Likewise.
21379 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21380 * postreload.c (reload_cse_simplify_operands): Likewise.
21381 * reload.c (push_secondary_reload, scratch_reload_class)
21382 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21383 * reload1.c (maybe_fix_stack_asms): Likewise.
21384 * targhooks.c (default_secondary_reload): Likewise.
21385 * stmt.c (parse_output_constraint): Likewise.
21386 * recog.c (preprocess_constraints): Likewise.
21387 (constrain_operands, peep2_find_free_register): Likewise.
21388 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21389 must be handled specially.
21391 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21393 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21394 * genpreds.c (have_const_dbl_constraints): Delete.
21395 (add_constraint): Don't set it.
21396 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21397 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21398 constraints using the lookup_constraint logic.
21399 * ira-lives.c (single_reg_class): Likewise.
21400 * ira.c (ira_setup_alts): Likewise.
21401 * lra-constraints.c (process_alt_operands): Likewise.
21402 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21403 * reload.c (find_reloads): Likewise.
21405 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21407 * genpreds.c (const_int_start, const_int_end): New variables.
21408 (choose_enum_order): Output CONST_INT constraints before memory
21410 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21412 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21413 * ira.c (ira_setup_alts): Likewise.
21414 * lra-constraints.c (process_alt_operands): Likewise.
21415 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21416 * reload.c (find_reloads): Likewise.
21418 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21420 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21421 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21422 * recog.c (preprocess_constraints): Update accordingly.
21424 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21426 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21427 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21428 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21429 * genpreds.c (print_type_tree): New function.
21430 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21431 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21432 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21433 Write out enum constraint_type and get_constraint_type.
21434 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21435 constraint_num rather than a constraint string.
21436 (satisfies_address_constraint_p): Likewise.
21437 (reg_class_from_constraints): Avoid old constraint macros.
21438 (process_alt_operands, process_address_1): Likewise.
21439 (curr_insn_transform): Likewise.
21440 * ira-costs.c (record_reg_classes): Likewise.
21441 (record_operand_costs): Likewise.
21442 * ira-lives.c (single_reg_class): Likewise.
21443 (ira_implicitly_set_insn_hard_regs): Likewise.
21444 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21445 * postreload.c (reload_cse_simplify_operands): Likewise.
21446 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21447 (constrain_operands, peep2_find_free_register): Likewise.
21448 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21449 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21450 * reload1.c (maybe_fix_stack_asms): Likewise.
21451 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21452 * targhooks.c (default_secondary_reload): Likewise.
21453 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21454 to EXTRA_CONSTRAINT_STR.
21455 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21457 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21459 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21460 (write_constraint_satisfied_p_array): ...this new function.
21461 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21463 (write_insn_preds_c): Update accordingly.
21465 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21467 * genpreds.c (write_lookup_constraint): Rename to...
21468 (write_lookup_constraint_1): ...this.
21469 (write_lookup_constraint_array): New function.
21470 (write_tm_preds_h): Define lookup_constraint as an inline function
21471 that uses write_lookup_constraint_array where possible.
21472 (write_insn_preds_c): Update for the changes above.
21474 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21476 * doc/md.texi (regclass_for_constraint): Rename to...
21477 (reg_class_for_constraint): ...this.
21478 * genpreds.c (num_constraints, enum_order, register_start)
21479 (register_end, satisfied_start, memory_start, memory_end)
21480 (address_start, address_end): New variables.
21481 (add_constraint): Count the number of constraints.
21482 (choose_enum_order): New function.
21483 (write_enum_constraint_num): Iterate over enum_order.
21484 (write_regclass_for_constraint): Rename to...
21485 (write_reg_class_for_constraint_1): ...this and update output
21487 (write_constraint_satisfied_p): Rename to...
21488 (write_constraint_satisfied_p_1): ...this and update output
21489 accordingly. Do nothing if all extra constraints are register
21491 (write_insn_extra_memory_constraint): Delete.
21492 (write_insn_extra_address_constraint): Delete.
21493 (write_range_function): New function.
21494 (write_tm_preds_h): Define constraint_satisfied_p and
21495 reg_class_for_constraint as inline functions that do a range check
21496 before calling the out-of-line function. Use write_range_function
21497 to implement insn_extra_{register,memory,address}_constraint,
21498 the first of which is new.
21499 (write_insn_preds_c): Update after above changes to write_* functions.
21500 (main): Call choose_enum_order.
21502 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21504 PR tree-optimization/61306
21505 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21506 expression instead of its size.
21507 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21508 false to prevent optimization when the result is unpredictable due to
21509 arithmetic right shift of signed type with highest byte is set.
21510 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21511 (init_symbolic_number): Likewise.
21512 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21513 when the result is unpredictable due to sign extension.
21515 2014-06-11 Terry Guo <terry.guo@arm.com>
21517 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21518 (*thumb1_addsi3): Ditto.
21519 (*thumb_subdi3): Ditto.
21520 (thumb1_subsi3_insn): Ditto.
21521 (*thumb_mulsi3): Ditto.
21522 (*thumb_mulsi3_v6): Ditto.
21523 (*thumb1_andsi3_insn): Ditto.
21524 (thumb1_bicsi3): Ditto.
21525 (*thumb1_iorsi3_insn): Ditto.
21526 (*thumb1_xorsi3_insn): Ditto.
21527 (*thumb1_ashlsi3): Ditto.
21528 (*thumb1_ashrsi3): Ditto.
21529 (*thumb1_lshrsi3): Ditto.
21530 (*thumb1_rotrsi3): Ditto.
21531 (*thumb1_negdi2): Ditto.
21532 (*thumb1_negsi2): Ditto.
21533 (*thumb1_abssi2): Ditto.
21534 (*thumb1_neg_abssi2): Ditto.
21535 (*thumb1_one_cmplsi2): Ditto.
21536 (*thumb1_zero_extendhisi2): Ditto.
21537 (*thumb1_zero_extendqisi2): Ditto.
21538 (*thumb1_zero_extendqisi2_v6): Ditto.
21539 (thumb1_extendhisi2): Ditto.
21540 (thumb1_extendqisi2): Ditto.
21541 (*thumb1_movdi_insn): Ditto.
21542 (*thumb1_movsi_insn): Ditto.
21543 (*thumb1_movhi_insn): Ditto.
21544 (thumb_movhi_clobber): Ditto.
21545 (*thumb1_movqi_insn): Ditto.
21546 (*thumb1_movhf): Ditto.
21547 (*thumb1_movsf_insn): Ditto.
21548 (*thumb_movdf_insn): Ditto.
21549 (movmem12b): Ditto.
21551 (cbranchqi4): Ditto.
21552 (cbranchsi4_insn): Ditto.
21553 (cbranchsi4_scratch): Ditto.
21554 (*negated_cbranchsi4): Ditto.
21555 (*tbit_cbranch): Ditto.
21556 (*tlobits_cbranch): Ditto.
21557 (*tstsi3_cbranch): Ditto.
21558 (*cbranchne_decr1): Ditto.
21559 (*addsi3_cbranch): Ditto.
21560 (*addsi3_cbranch_scratch): Ditto.
21561 (*thumb_cmpdi_zero): Ditto.
21562 (cstoresi_eq0_thumb1): Ditto.
21563 (cstoresi_ne0_thumb1): Ditto.
21564 (*cstoresi_eq0_thumb1_insn): Ditto.
21565 (*cstoresi_ne0_thumb1_insn): Ditto.
21566 (cstoresi_nltu_thumb1): Ditto.
21567 (cstoresi_ltu_thumb1): Ditto.
21568 (thumb1_addsi3_addgeu): Ditto.
21569 (*thumb_jump): Ditto.
21570 (*call_reg_thumb1_v5): Ditto.
21571 (*call_reg_thumb1): Ditto.
21572 (*call_value_reg_thumb1_v5): Ditto.
21573 (*call_value_reg_thumb1): Ditto.
21574 (*call_insn): Ditto.
21575 (*call_value_insn): Ditto.
21576 (thumb1_casesi_internal_pic): Ditto.
21577 (thumb1_casesi_dispatch): Ditto.
21578 (*thumb1_indirect_jump): Ditto.
21579 (prologue_thumb1_interwork): Ditto.
21580 (*epilogue_insns): Ditto.
21581 (consttable_1): Ditto.
21582 (consttable_2): Ditto.
21583 (tablejump): Ditto.
21584 (*thumb1_tablejump): Ditto.
21585 (thumb_eh_return): Ditto.
21586 (define_peephole2): Two of them are thumb1 only and got moved into
21587 new file thumb1.md.
21588 (define_split): Six of them are thumb1 only and got moved into new
21590 * config/arm/thumb1.md: New file comprised of above thumb1 only
21593 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21595 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21596 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21598 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21599 (aarch64_crc_builtin_datum): New struct.
21600 (aarch64_crc_builtin_data): New.
21601 (aarch64_init_crc32_builtins): New function.
21602 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21603 (aarch64_crc32_expand_builtin): New.
21604 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21605 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21606 __ARM_FEATURE_CRC32 when appropriate.
21607 (TARGET_CRC32): Define.
21608 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21609 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21610 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21611 (aarch64_<crc_variant>): New pattern.
21612 * config/aarch64/arm_acle.h: New file.
21613 * config/aarch64/iterators.md (CRC): New int iterator.
21614 (crc_variant, crc_mode): New int attributes.
21615 * doc/aarch64-acle-intrinsics.texi: New file.
21616 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21617 Include aarch64-acle-intrinsics.texi.
21619 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21621 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21622 check for stores group of length 3.
21623 (vect_permute_store_chain): New permutations for stores group of
21625 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21626 of vec_perm_shuffle for the new permutations.
21628 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21630 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21631 table rewriting temporarily on targets not supporting ONE_ONLY.
21633 2014-06-11 Richard Biener <rguenther@suse.de>
21635 PR middle-end/61437
21637 2014-06-04 Richard Biener <rguenther@suse.de>
21639 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21640 TREE_PUBLIC and DECL_EXTERNAL decls.
21642 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21644 * varasm.c (set_implicit_section): New function.
21645 (resolve_unique_section): Use it to set implicit section
21647 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21648 (default_function_section): Likewise.
21649 (decl_binds_to_current_def_p): Constify argument.
21650 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21651 * asan.c (asan_protect_global): Use
21652 symtab_get_node (decl)->implicit_section.
21653 * symtab.c (dump_symtab_base): Dump implicit sections.
21654 (verify_symtab_base): Verify sanity of sectoins and comdats.
21655 (symtab_resolve_alias): Alias share the section of its target.
21656 (set_section_1): New function.
21657 (symtab_node::set_section): Move here, recurse to aliases.
21658 (verify_symtab): Check for duplicated symtab lists.
21659 * tree-core.h (implicit_section_name_p): Remove.
21660 * tree-vect-data-refs.c: Include varasm.h.
21661 (vect_can_force_dr_alignment_p): Fix conditional on when
21662 decl bints to current definition; use
21663 symtab_get_node (decl)->implicit_section.
21664 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21665 * cgraph.h (struct symtab_node): Add implicit_section.
21666 (set_section): Rename to ...
21667 (set_section_for_node): ... this one.
21668 (set_section): Declare.
21669 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21670 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21671 input_overwrite_node, input_varpool_node): Stream implicit_section.
21672 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21673 removal; it will fail in LTO.
21675 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21677 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21678 Change second alternative type to f_mcr.
21679 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21680 and 12th alternatives' types to f_mcr and f_mrc.
21681 (*movdi_aarch64): Same for 12th and 13th alternatives.
21682 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21683 (aarch64_movtilow_tilow): Change type to fmov.
21685 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21687 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21688 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21690 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21692 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21694 (aarch64_sqrdmulh_lane<mode>): Likewise.
21695 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21696 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21697 (aarch64_sqdmulh_laneq<mode>): New expander.
21698 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21699 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21700 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21701 (aarch64_sqdmulh_lane<mode>): New expander.
21702 (aarch64_sqrdmulh_lane<mode>): Likewise.
21703 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21704 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21705 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21706 (aarch64_sqdmlal_laneq<mode>): Likewise.
21707 (aarch64_sqdmlsl_lane<mode>): Likewise.
21708 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21709 (aarch64_sqdmlal2_lane<mode>): Likewise.
21710 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21711 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21712 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21713 (aarch64_sqdmull_lane<mode>): Likewise.
21714 (aarch64_sqdmull_laneq<mode>): Likewise.
21715 (aarch64_sqdmull2_lane<mode>): Likewise.
21716 (aarch64_sqdmull2_laneq<mode>): Likewise.
21718 2014-06-10 Richard Biener <rguenther@suse.de>
21720 PR tree-optimization/61438
21721 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21722 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21723 insertion of IVs if running PRE.
21724 (eliminate): Adjust.
21725 (pass_pre::execute): Likewise.
21726 (pass_fre::execute): Likewise.
21728 2014-06-10 Richard Biener <rguenther@suse.de>
21730 PR middle-end/61456
21731 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21732 Do not use the main variant for the type comparison.
21733 (ncr_compar): Likewise.
21734 (nonoverlapping_component_refs_p): Likewise.
21736 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21738 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21739 REG_CFA_RESTORE mode.
21741 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21743 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21744 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21745 expand_vec_perm_pblendv.
21747 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21749 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21751 Simplify description of __crc32d and __crc32cd intrinsics.
21752 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21755 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21758 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21759 * config.in: Regenerate.
21760 * configure: Likewise.
21762 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21764 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21766 (intersect_static_var_sets): Remove.
21767 (propagate): Do not prune local statics.
21769 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21772 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21773 Set lastprivate_firstprivate even if omp_private_outer_ref
21774 langhook returns true.
21775 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21776 langhook, call unshare_expr on new_var and call
21777 build_outer_var_ref to get the last argument.
21779 2014-06-10 Marek Polacek <polacek@redhat.com>
21782 * doc/extend.texi: Add cindex for transparent_union.
21784 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21786 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21787 init_symbolic_number ().
21789 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21791 PR middle-end/61141
21792 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21793 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21794 (verify_rtl_sharing): Likewise.
21796 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21799 * tree.c (build_qualified_type): Use a canonical type for
21802 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21804 * config/arm/arm-modes.def: Remove XFmode.
21806 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21809 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21810 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21811 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21812 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21813 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21814 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21815 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21816 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21817 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21819 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21821 * tree-core.h (tree_decl_with_vis): Remove section_name.
21823 2014-06-09 Kito Cheng <kito@0xlab.org>
21825 * ira.c (ira): Don't call init_caller_save if LRA enabled
21826 since LRA use its own infrastructure to handle that.
21828 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21830 * symtab.c (dump_symtab_base): Update dumping.
21831 (symtab_make_decl_local): Clear only DECL_COMDAT.
21832 * tree-vect-data-refs.c (Check that variable is static before
21833 tampering with sections.
21834 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21835 (cgraph_create_virtual_clone): Likewise.
21836 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21837 (decl_section_name, set_decl_section_name): New accessors.
21838 (find_decls_types_r): Do not walk section name
21839 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21840 (decl_comdat_group, decl_comdat_group_id): Constify.
21841 (decl_section_name, set_decl_section_name): Update.
21842 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21843 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21844 (cgraph_make_node_local_1): Clear section and comdat group.
21845 * cgraph.h (set_comdat_group): Sanity check.
21846 (get_section, set_section): New.
21847 * ipa-comdats.c (ipa_comdats): Use get_section.
21848 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21849 * lto-streamer-out.c: Do not follow section names.
21850 * c-family/c-common.c (handle_section_attribute): Update.
21851 * lto-cgraph.c (lto_output_node): Output section.
21852 (lto_output_varpool_node): Likewise.
21853 (read_comdat_group): Rename to ...
21854 (read_identifier): ... this one.
21855 (read_string_cst): New function.
21856 (input_node, input_varpool_node): Input section names.
21857 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21858 (new_emutls_decl): Update.
21859 (secname_for_decl): Check section names only of static vars.
21860 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21861 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21862 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21863 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21864 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21865 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21866 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21867 * config/v850/v850.c (v850_insert_attributes): Likewise.
21868 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21870 (h8300_handle_tiny_data_attribute): Likewise.
21871 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21872 (bfin_handle_l2_attribute): Likewise.
21874 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21876 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21877 remove static initializer.
21879 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21881 * varasm.c (use_blocks_for_decl_p): Check symbol table
21882 instead of alias attribute.
21883 (place_block_symbol): Recurse on aliases.
21885 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21887 * ipa-visibility.c: Include varasm.h
21888 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21890 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21892 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21893 outputting aliases.
21895 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21897 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21898 from test_insn into GGC space escape via SET_SRC.
21900 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21902 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21903 call statement, if any.
21904 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21905 statements, if any. Tidy up.
21907 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21910 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21911 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21912 handles swapping the two 64-bit double words on little endian
21913 systems. Include V1TImode and optionally TImode in VSX_LE so that
21914 these types are properly swapped. Change all of the insns and
21915 splits that do the 64-bit swaps to use VSX_LE.
21916 (vsx_le_perm_load_<mode>): Likewise.
21917 (vsx_le_perm_store_<mode>): Likewise.
21918 (splitters for little endian memory operations): Likewise.
21919 (vsx_xxpermdi2_le_<mode>): Likewise.
21920 (vsx_lxvd2x2_le_<mode>): Likewise.
21921 (vsx_stxvd2x2_le_<mode>): Likewise.
21923 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21926 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21927 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21928 and corresponding splitters. Zero extend general register
21929 or memory input operand to XMM temporary. Enable for
21930 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21931 (floatunssi<mode>2): Update expander predicate.
21933 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21935 PR rtl-optimization/61325
21936 * lra-constraints.c (process_address_1): Check scale equal to one
21937 to prevent transformation: base + scale * index => base + new_reg.
21939 2014-06-06 Richard Biener <rguenther@suse.de>
21941 PR tree-optimization/59299
21942 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21944 (nearest_common_dominator_of_uses): Likewise.
21945 (statement_sink_location): Adjust. Support sinking loads.
21947 2014-06-06 Martin Jambor <mjambor@suse.cz>
21949 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21950 (build_agg_jump_func_from_list): Likewise.
21951 (determine_known_aggregate_parts): Renamed to
21952 determine_locally_known_aggregate_parts. Moved some functionality
21953 to the two functions above, removed bound checks.
21955 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21957 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21958 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21959 (aarch64_progress_pointer): Likewise.
21960 (aarch64_copy_one_part_and_move_pointers): Likewise.
21961 (aarch64_expand_movmen): Likewise.
21962 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21963 * config/aarch64/aarch64.md (movmem<mode>): New.
21965 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21967 * targhooks.c (default_add_stmt_cost): Call target specific
21968 hook instead of default one.
21970 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21972 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21973 endianness instead of host endianness.
21974 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21977 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21980 * function.c (instantiate_decls): Process the saved static chain.
21981 (expand_function_start): If not optimizing, save the static chain
21983 * tree-nested.c (convert_all_function_calls): Always create the static
21984 chain for nested functions if not optimizing.
21986 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21988 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21990 2014-06-06 Richard Biener <rguenther@suse.de>
21992 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21993 (construct_init_block): Likewise.
21994 (construct_exit_block): Likewise.
21995 (pass_expand::execute): Likewise.
21996 * graphite.c (graphite_transforms): Replace check for current_loops
21997 with a check for > 1 loops.
21998 (pass_graphite_transforms::execute): Adjust.
21999 * ipa-split.c (split_function): Remove check for current_loops.
22000 * omp-low.c (expand_parallel_call): Likewise.
22001 (expand_omp_for_init_counts): Likewise.
22002 (extract_omp_for_update_vars): Likewise.
22003 (expand_omp_for_generic): Likewise.
22004 (expand_omp_sections): Likewise.
22005 (expand_omp_target): Likewise.
22006 * tracer.c (tail_duplicate): Likewise.
22007 (pass_tracer::execute): Likewise.
22008 * trans-mem.c (expand_transaction): Likewise.
22009 * tree-complex.c (expand_complex_div_wide): Likewise.
22010 * tree-eh.c (lower_resx): Likewise.
22011 (cleanup_empty_eh_merge_phis): Likewise.
22012 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22013 current_loops with a check for > 1 loops.
22014 (pass_predcom::execute): Adjust.
22015 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22016 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22017 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22018 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22019 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22020 * tree-switch-conversion.c (process_switch): Likewise.
22021 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22022 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22023 (execute_vrp): Likewise.
22024 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22026 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22028 * rtl.h (insn_location): Declare.
22029 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22030 with UNKNOWN_LOCATION.
22031 * emit-rtl.c (insn_location): New function.
22032 * final.c (notice_source_line): Check that the instruction has a
22033 location before retrieving it and use insn_location.
22034 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22035 * print-rtl.c (print_rtx): Likewise.
22037 2014-06-06 Richard Biener <rguenther@suse.de>
22039 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22041 2014-06-06 Christian Bruel <christian.bruel@st.com>
22043 PR tree-optimization/43934
22044 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22047 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22049 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22050 return NO_REGS for extra address and memory constraints. Handle
22051 operands that match (or are equivalent to something that matches)
22052 extra constant constraints. Ignore other non-register operands.
22054 2014-06-06 Alan Modra <amodra@gmail.com>
22057 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22058 * doc/tm.texi: Regenerate.
22059 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22060 Use throughout in place of REG_PARM_STACK_SPACE.
22061 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22062 "incoming" param. Pass to rs6000_function_parms_need_stack.
22063 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22064 prototype_p when incoming. Use function decl when incoming
22065 to handle K&R style functions.
22066 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22067 (INCOMING_REG_PARM_STACK_SPACE): Define.
22069 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22072 * cfgexpand.c (expand_debug_expr): Use address space of nested
22073 TREE_TYPE for ADDR_EXPR and MEM_REF.
22075 2014-06-05 Jeff Law <law@redhat.com>
22077 PR tree-optimization/61289
22078 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22079 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22080 looking for those which match LHS. All callers changed.
22081 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22082 parameters and code which manipulated them. All callers changed.
22083 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22084 and DST_MAP parameters. Simplify invalidation code by just calling
22085 invalidate_equivalences. All callers changed.
22086 (thread_across_edge): Simplify now that we don't need to maintain
22087 the map of equivalences to invalidate.
22089 2014-06-05 Kai Tietz <ktietz@redhat.com>
22090 Richard Henderson <rth@redhat.com>
22093 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22094 checking for !TARGET_X32.
22095 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22096 (sibcall_intern): New define_insn, plus required peepholes.
22097 (sibcall_pop_intern): Likewise.
22098 (sibcall_value_intern): Likewise.
22099 (sibcall_value_pop_intern): Likewise.
22101 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22103 * tree-inline.c (tree_function_versioning): Check DF info existence
22104 before accessing it.
22106 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22108 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22110 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22111 aarch64_frame hard_fp_offset and frame_size.
22112 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22113 frame_size; remove original_frame_size.
22114 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22115 (aarch64_initial_elimination_offset): Remove frame_size and
22116 offset. Use aarch64_frame frame_size.
22118 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22119 Jiong Wang <jiong.wang@arm.com>
22120 Renlin <renlin.li@arm.com>
22122 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22123 initialization of R30 offset. Update offset. Iterate core
22124 regisers upto X30. Remove X29, X30 specific code.
22126 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22127 Jiong Wang <jiong.wang@arm.com>
22129 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22130 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22131 (aarch64_register_saved_on_entry): Adjust test.
22133 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22135 * config/aarch64/aarch64.h (machine_function): Move
22136 saved_varargs_size from here...
22137 (aarch64_frame): ... to here.
22139 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22140 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22141 (aarch64_initial_elimination_offset)
22142 (aarch64_setup_incoming_varargs): Adjust location of
22143 saved_varargs_size.
22145 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22147 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22150 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22151 Prachi Godbole <Prachi.Godbole@imgtec.com>
22153 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22154 mips32r5 entry to use PROCESSOR_P5600.
22155 * config/mips/mips-tables.opt: Regenerate.
22156 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22157 * config/mips/mips.c (mips_fmadd_bypass): New function.
22158 (mips_rtx_cost_data): Add costs for p5600.
22159 (mips_issue_rate): Add support for p5600.
22160 (mips_multipass_dfa_lookahead): Likewise.
22161 * config/mips/mips.h (TUNE_P5600): New define.
22162 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22163 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22164 * config/mips/mips.md: Include p5600.md.
22165 (processor): Add p5600.
22166 * config/mips/p5600.md: New file.
22168 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22170 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22171 * config/i386/predicates.md (palignr_operand): New.
22172 Indicates if permutation is suitable for palignr instruction.
22174 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22176 PR tree-optimization/61319
22177 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22178 stmt belongs to loop.
22180 2014-06-05 Richard Biener <rguenther@suse.de>
22182 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22183 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22184 (lookup_tmp_var): Adjust.
22185 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22187 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22189 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22191 2014-06-05 Marek Polacek <polacek@redhat.com>
22194 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22196 2014-06-04 Tom de Vries <tom@codesourcery.com>
22198 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22201 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22203 PR tree-optimization/61385
22204 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22206 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22208 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22209 changed to use fatal_error.
22210 (main): Ensure lto_wrapper_cleanup is run atexit.
22212 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22214 * lra-constraints.c (valid_address_p): Move earlier in file.
22215 (address_eliminator): New structure.
22216 (satisfies_memory_constraint_p): New function.
22217 (satisfies_address_constraint_p): Likewise.
22218 (process_alt_operands, process_address, curr_insn_transform): Use them.
22220 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22222 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22224 (target_lra_int, default_target_lra_int, this_target_lra_int)
22225 (op_alt_data): Delete.
22226 * lra.h (lra_init): Delete.
22227 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22228 (init_insn_code_data_once): Remove op_alt_data handling.
22229 (finish_insn_code_data_once): Likewise.
22230 (init_op_alt_data): Delete.
22231 (get_static_insn_data): Initialize operand_alternative to null.
22232 (free_insn_recog_data): Cast operand_alternative before freeing it.
22233 (setup_operand_alternative): Take the operand_alternative as
22234 parameter and assume it isn't already cached in the static
22236 (lra_set_insn_recog_data): Update accordingly.
22237 (lra_init): Delete.
22238 * ira.c (ira_init): Don't call lra_init.
22239 * target-globals.h (this_target_lra_int): Declare.
22240 (target_globals): Remove lra_int.
22241 (restore_target_globals): Update accordingly.
22242 * target-globals.c: Don't include lra-int.h.
22243 (default_target_globals, save_target_globals): Remove lra_int.
22245 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22247 * recog.h (operand_alternative): Convert reg_class, reject,
22248 matched and matches into bitfields.
22249 (preprocess_constraints): New overload.
22250 (preprocess_insn_constraints): New function.
22251 (preprocess_constraints): Take the insn as parameter.
22252 (recog_op_alt): Change into a pointer.
22253 (target_recog): Add x_op_alt.
22254 * recog.c (asm_op_alt): New variable.
22255 (recog_op_alt): Change into a pointer.
22256 (preprocess_constraints): New overload, replacing the old function
22257 definition with one that doesn't use global state.
22258 (preprocess_insn_constraints): New function.
22259 (preprocess_constraints): Use them. Take the insn as parameter.
22260 Use asm_op_alt for asms.
22261 (recog_init): Free existing x_op_alt entries.
22262 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22264 (make_early_clobber_and_input_conflicts): Likewise.
22265 (process_bb_node_lives): Pass the insn to process_constraints.
22266 * reg-stack.c (check_asm_stack_operands): Likewise.
22267 (subst_asm_stack_regs): Likewise.
22268 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22269 * regrename.c (build_def_use): Likewise.
22270 * sched-deps.c (sched_analyze_insn): Likewise.
22271 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22272 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22273 (note_invalid_constants): Likewise.
22274 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22275 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22278 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22280 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22281 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22283 (make_early_clobber_and_input_conflicts): Likewise.
22284 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22286 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22288 * recog.h (alternative_class): New function.
22289 (which_op_alt): Return a const recog_op_alt.
22290 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22291 (subst_asm_stack_regs): Likewise.
22292 * config/arm/arm.c (note_invalid_constants): Likewise.
22293 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22294 the operand_alternative; use alternative class instead.
22295 * sel-sched.c (get_reg_class): Likewise.
22296 * regrename.c (build_def_use): Likewise.
22297 (hide_operands, restore_operands, record_out_operands): Update type
22300 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22302 * recog.h (recog_op_alt): Convert to a flat array.
22303 (which_op_alt): New function.
22304 * recog.c (recog_op_alt): Convert to a flat array.
22305 (preprocess_constraints): Update accordingly, grouping all
22306 operands of the same alternative together, rather than the
22308 * ira-lives.c (check_and_make_def_conflict): Likewise.
22309 (make_early_clobber_and_input_conflicts): Likewise.
22310 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22311 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22312 (subst_asm_stack_regs): Likewise.
22313 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22314 * regrename.c (hide_operands, record_out_operands): Likewise.
22315 (build_def_use): Likewise.
22316 * sel-sched.c (get_reg_class): Likewise.
22317 * config/arm/arm.c (note_invalid_constants): Likewise.
22319 2014-06-04 Jason Merrill <jason@redhat.com>
22323 * gimplify.c (gimplify_arg): Non-static.
22324 * gimplify.h: Declare it.
22326 2014-06-04 Richard Biener <rguenther@suse.de>
22328 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22329 TREE_PUBLIC and DECL_EXTERNAL decls.
22331 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22333 * regcprop.c (copyprop_hardreg_forward_1): Account for
22334 HARD_REGNO_CALL_PART_CLOBBERED.
22336 2014-06-04 Richard Biener <rguenther@suse.de>
22338 * configure.ac: Check whether the underlying type of int64_t
22339 is long or long long.
22340 * configure: Regenerate.
22341 * config.in: Likewise.
22342 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22343 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22345 2014-06-04 Richard Biener <rguenther@suse.de>
22347 PR tree-optimization/60098
22348 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22350 (dse_optimize_stmt): Simplify, now that we found a kill
22353 2014-06-04 Richard Biener <rguenther@suse.de>
22355 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22356 of accesses with non-invariant address.
22358 2014-06-04 Martin Liska <mliska@suse.cz>
22360 * cgraph.h (cgraph_make_wrapper): New function introduced.
22361 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22362 * ipa-inline.h (inline_analyze_function): The function is global.
22363 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22365 2014-06-04 Martin Liska <mliska@suse.cz>
22367 * tree.h (private_lookup_attribute_starting): New function.
22368 (lookup_attribute_starting): Likewise.
22369 * tree.c (private_lookup_attribute_starting): Likewise.
22371 2014-06-04 Martin Liska <mliska@suse.cz>
22373 * cgraph.h (expand_thunk): New argument added.
22374 (address_taken_from_non_vtable_p): New global function.
22375 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22376 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22377 * cgraphunit.c (analyze_function): Likewise.
22378 (assemble_thunks_and_aliases): Argument added to call.
22379 (expand_thunk): New argument forces to produce GIMPLE thunk.
22381 2014-06-04 Martin Liska <mliska@suse.cz>
22383 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22384 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22385 * profile.c (branch_prob): Likewise.
22387 2014-06-04 Martin Jambor <mjambor@suse.cz>
22390 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22391 handler for switch on an ipa_ref_use enum.
22392 * ipa-reference.c (analyze_function): Likewise.
22394 2014-06-04 Kai Tietz <ktietz@redhat.com>
22396 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22397 from old call-instruction.
22399 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22401 * config/aarch64/aarch64.c (aarch64_classify_address)
22402 (aarch64_legitimize_reload_address): Support full addressing modes
22404 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22405 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22407 2014-06-03 Andrew Pinski <apinski@cavium.com>
22409 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22412 2014-06-03 Andrew Pinski <apinski@cavium.com>
22414 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22415 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22417 2014-06-03 Kai Tietz <ktietz@redhat.com>
22419 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22422 2014-06-03 Dehao Chen <dehao@google.com>
22424 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22427 2014-06-03 Marek Polacek <polacek@redhat.com>
22430 * doc/invoke.texi: Document -Wswitch-bool.
22431 * function.c (stack_protect_epilogue): Cast controlling expression of
22433 * gengtype.c (walk_type): Generate switch expression with its
22434 controlling expression cast to int.
22436 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22438 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22440 * config/avr/avr-tables.opt: Regenerate.
22441 * config/avr/t-multilib: Regenerate.
22442 * doc/avr-mmcu.texi: Regenerate.
22444 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22445 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22447 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22448 (ata6617c, ata664251): Add new avr35 devices.
22449 (ata6612c): Add new avr4 device.
22450 (ata6613c, ata6614q): Add new avr5 devices.
22451 * config/avr/avr-tables.opt: Regenerate.
22452 * config/avr/t-multilib: Regenerate.
22453 * doc/avr-mmcu.texi: Regenerate.
22455 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22457 * gcc/config/aarch64/aarch64-builtins.c
22458 (aarch64_types_binop_ssu_qualifiers): New static data.
22459 (TYPES_BINOP_SSU): Define.
22460 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22461 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22462 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22463 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22464 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22465 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22466 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22467 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22468 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22469 suffix to builtin function name, remove cast.
22470 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22471 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22472 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22474 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22476 * gcc/config/aarch64/aarch64-builtins.c
22477 (aarch64_types_binop_uus_qualifiers,
22478 aarch64_types_shift_to_unsigned_qualifiers,
22479 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22480 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22481 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22482 sqshlu_n, uqshl_n): Update qualifiers.
22483 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22484 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22485 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22486 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22487 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22488 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22489 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22490 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22491 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22492 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22493 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22494 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22495 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22496 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22497 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22498 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22499 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22500 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22501 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22502 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22503 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22504 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22505 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22506 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22507 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22508 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22509 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22511 2014-06-03 Teresa Johnson <tejohnson@google.com>
22513 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22515 2014-06-02 Jason Merrill <jason@redhat.com>
22518 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22520 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22522 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22525 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22527 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22529 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22530 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22531 * config/aarch64/iterators.md (REVERSE): New iterator.
22532 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22533 (rev_op): New int_attribute.
22534 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22535 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22536 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22537 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22538 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22539 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22540 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22541 Replace temporary __asm__ with __builtin_shuffle.
22543 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22545 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22547 * config/mips/mips-tables.opt: Regenerate.
22548 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22549 to use mips_isa_rev rather than ISA_MIPS32R2.
22550 * config/mips/mips.h (ISA_MIPS32R3): New define.
22551 (ISA_MIPS32R5): New define.
22552 (ISA_MIPS64R3): New define.
22553 (ISA_MIPS64R5): New define.
22554 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22555 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22556 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22558 (MIPS_ISA_SYNCI_SPEC): Likewise.
22559 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22560 (LINK_SPEC): Added mips32r3 and mips32r5.
22561 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22562 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22563 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22564 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22565 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22566 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22567 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22569 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22571 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22573 * config/mips/mips.opt (mxpa): New option.
22574 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22577 2014-06-03 Martin Jambor <mjambor@suse.cz>
22580 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22583 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22585 PR tree-optimization/61328
22586 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22587 initialization from find_bswap_or_nop_1.
22588 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22589 in source_expr2 before using the size value the function sets. Also
22590 make use of init_symbolic_number () in both the old place and
22591 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22592 doing recursion in the GIMPLE_BINARY_RHS case.
22594 2014-06-03 Richard Biener <rguenther@suse.de>
22596 PR tree-optimization/61383
22597 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22600 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22602 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22603 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22604 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22605 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22607 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22608 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22609 * system.h: ...here and make it unconditional.
22610 * target.def (conditional_register_usage): Mention
22611 define_register_constraint instead of old-style constraint macros.
22612 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22613 * doc/tm.texi: Regenerate.
22614 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22615 protected by !USE_MD_CONSTRAINTS.
22616 * config/frv/frv.md: Remove quote from old version of documentation.
22617 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22618 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22619 CONST_DOUBLE_OK_FOR_LETTER.
22620 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22622 2014-06-02 Andrew Pinski <apinski@cavium.com>
22624 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22625 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22626 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22627 file whose name depends on -mabi= and -mbig-endian.
22628 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22629 Handle LP64 better and handle ilp32 too.
22630 (MULTILIB_OPTIONS): Delete.
22631 (MULTILIB_DIRNAMES): Delete.
22633 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22635 * expr.h: Remove prototypes of functions defined in builtins.c.
22636 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22637 Remove prototypes of functions defined in builtins.c.
22638 * builtins.h: Update prototype list to include all exported functions.
22639 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22640 no_c99_libc_has_function): Move to targhooks.c
22641 (build_string_literal, build_call_expr_loc_array,
22642 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22644 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22645 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22646 no_c99_libc_has_function): Relocate from builtins.c.
22647 * tree.c: Include builtins.h.
22648 (build_call_expr_loc_array, build_call_expr_loc_vec,
22649 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22651 * fold-const.h (fold_fma): Move prototype to builtins.h.
22652 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22653 * asan.c: Include builtins.h.
22654 * cfgexpand.c: Likewise.
22655 * convert.c: Likewise.
22656 * emit-rtl.c: Likewise.
22657 * except.c: Likewise.
22658 * expr.c: Likewise.
22659 * fold-const.c: Likewise.
22660 * gimple-fold.c: Likewise.
22661 * gimple-ssa-strength-reduction.c: Likewise.
22662 * gimplify.c: Likewise.
22663 * ipa-inline.c: Likewise.
22664 * ipa-prop.c: Likewise.
22665 * lto-streamer-out.c: Likewise.
22666 * stmt.c: Likewise.
22667 * tree-inline.c: Likewise.
22668 * tree-object-size.c: Likewise.
22669 * tree-sra.c: Likewise.
22670 * tree-ssa-ccp.c: Likewise.
22671 * tree-ssa-forwprop.c: Likewise.
22672 * tree-ssa-loop-ivcanon.c: Likewise.
22673 * tree-ssa-loop-ivopts.c: Likewise.
22674 * tree-ssa-math-opts.c: Likewise.
22675 * tree-ssa-reassoc.c: Likewise.
22676 * tree-ssa-threadedge.c: Likewise.
22677 * tree-streamer-in.c: Likewise.
22678 * tree-vect-data-refs.c: Likewise.
22679 * tree-vect-patterns.c: Likewise.
22680 * tree-vect-stmts.c: Likewise.
22681 * config/aarch64/aarch64.c: Likewise.
22682 * config/alpha/alpha.c: Likewise.
22683 * config/arc/arc.c: Likewise.
22684 * config/arm/arm.c: Likewise.
22685 * config/avr/avr.c: Likewise.
22686 * config/bfin/bfin.c: Likewise.
22687 * config/c6x/c6x.c: Likewise.
22688 * config/cr16/cr16.c: Likewise.
22689 * config/cris/cris.c: Likewise.
22690 * config/epiphany/epiphany.c: Likewise.
22691 * config/fr30/fr30.c: Likewise.
22692 * config/frv/frv.c: Likewise.
22693 * config/h8300/h8300.c: Likewise.
22694 * config/i386/i386.c: Likewise.
22695 * config/i386/winnt.c: Likewise.
22696 * config/ia64/ia64.c: Likewise.
22697 * config/iq2000/iq2000.c: Likewise.
22698 * config/lm32/lm32.c: Likewise.
22699 * config/m32c/m32c.c: Likewise.
22700 * config/m32r/m32r.c: Likewise.
22701 * config/m68k/m68k.c: Likewise.
22702 * config/mcore/mcore.c: Likewise.
22703 * config/mep/mep.c: Likewise.
22704 * config/microblaze/microblaze.c: Likewise.
22705 * config/mips/mips.c: Likewise.
22706 * config/mmix/mmix.c: Likewise.
22707 * config/mn10300/mn10300.c: Likewise.
22708 * config/moxie/moxie.c: Likewise.
22709 * config/msp430/msp430.c: Likewise.
22710 * config/nds32/nds32.c: Likewise.
22711 * config/pa/pa.c: Likewise.
22712 * config/pdp11/pdp11.c: Likewise.
22713 * config/picochip/picochip.c: Likewise.
22714 * config/rl78/rl78.c: Likewise.
22715 * config/rs6000/rs6000.c: Likewise.
22716 * config/rx/rx.c: Likewise.
22717 * config/s390/s390.c: Likewise.
22718 * config/score/score.c: Likewise.
22719 * config/sh/sh.c: Likewise.
22720 * config/sparc/sparc.c: Likewise.
22721 * config/spu/spu.c: Likewise.
22722 * config/stormy16/stormy16.c: Likewise.
22723 * config/tilegx/tilegx.c: Likewise.
22724 * config/tilepro/tilepro.c: Likewise.
22725 * config/v850/v850.c: Likewise.
22726 * config/vax/vax.c: Likewise.
22727 * config/xtensa/xtensa.c: Likewise.
22729 2014-06-02 Jeff Law <law@redhat.com>
22731 PR rtl-optimization/61094
22732 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22733 was marked as do_no_reextend. If a copy is needed to eliminate
22734 an extension, then mark it as do_not_reextend.
22736 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22738 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22740 2014-06-02 Richard Henderson <rth@redhat.com>
22743 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22744 addresses inside asms. Use output_operand_lossage instead of
22747 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22750 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22751 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22753 2014-06-02 Tom de Vries <tom@codesourcery.com>
22755 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22756 case that x has VOIDmode.
22758 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22760 * varasm.c (copy_constant): Delete function.
22761 (build_constant_desc): Don't call it.
22763 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22766 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22767 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22768 with immediate_operand.
22770 2014-06-02 Andreas Schwab <schwab@suse.de>
22772 * config/ia64/ia64.c
22773 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22774 pending_data_specs first.
22776 2014-06-02 Richard Biener <rguenther@suse.de>
22778 PR tree-optimization/61378
22779 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22780 valueized_anything.
22782 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22784 * config/i386/constraints.md (Bw): Rename from 'w'.
22785 (Bz): Rename from 'z'.
22786 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22788 2014-06-01 Kai Tietz <ktietz@redhat.com>
22791 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22792 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22793 instead of m constraint.
22795 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22797 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22798 a separate alternative where the scratch operand 2 is marked as
22801 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22803 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22804 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22805 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22806 and __builtins_arm_get_fpscr.
22807 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22808 __builtins_arm_get_fpscr.
22809 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22810 __builtins_arm_ldfpscr.
22811 (arm_atomic_assign_expand_fenv): New function.
22812 * config/arm/vfp.md (set_fpscr): New pattern.
22813 (get_fpscr) : Likewise.
22814 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22816 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22817 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22819 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22821 * asan.c (report_error_func): Add SLOW_P argument, use
22822 BUILT_IN_ASAN_*_N if set.
22823 (build_check_stmt): Likewise.
22824 (instrument_derefs): If T has insufficient alignment,
22825 force same handling as for odd sizes.
22827 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22828 BUILT_IN_ASAN_REPORT_STORE_N): New.
22829 * asan.c (struct asan_mem_ref): Change access_size type to
22831 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22832 update_mem_ref_hash_table): Likewise.
22833 (asan_mem_ref_hasher::hash): Hash in a HWI.
22834 (report_error_func): Change size_in_bytes argument to HWI.
22835 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22837 (build_shadow_mem_access): New function.
22838 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22839 Handle size_in_bytes not power of two or larger than 16.
22840 (instrument_derefs): Don't give up if size_in_bytes is not
22841 power of two or is larger than 16.
22843 2014-05-30 Kai Tietz <ktietz@redhat.com>
22846 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22847 for sibling-tail-calls.
22848 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22850 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22851 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22853 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22855 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22856 * config/avr/avr-tables.opt: Regenerate.
22857 * config/avr/t-multilib: Regenerate.
22858 * doc/avr-mmcu.texi: Regenerate.
22860 2014-05-30 Ian Lance Taylor <iant@google.com>
22862 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22865 2014-05-30 Tom de Vries <tom@codesourcery.com>
22867 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22870 2014-05-30 Tom de Vries <tom@codesourcery.com>
22872 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22873 * lra.c (initialize_lra_reg_info_element): Add init of
22874 actual_call_used_reg_set field.
22875 (lra): Call lra_create_live_ranges before lra_inheritance for
22877 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22879 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22880 instead of call_used_reg_set for -fuse-caller-save.
22881 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22883 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22885 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22887 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22889 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22891 * ira.c (ira_get_dup_out_num): Check for output operands at
22892 the start of the loop. Handle cases where an included alternative
22893 follows an excluded one.
22895 2014-05-29 Mike Stump <mikestump@comcast.net>
22898 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22899 post ld passes when lto is used.
22901 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22903 PR rtl-optimization/61325
22904 * lra-constraints.c (process_address): Rename to process_address_1.
22905 (process_address): New function.
22907 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22909 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22910 TYPES_BINOPV): New static data.
22911 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22913 * config/aarch64/aarch64-simd.md (aarch64_ext,
22914 aarch64_im_lane_boundsi): New patterns.
22915 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22917 (aarch64_evpc_ext): New function.
22919 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22921 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22922 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22923 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22924 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22925 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22927 2014-05-29 Tom de Vries <tom@codesourcery.com>
22929 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22931 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22932 Richard Sandiford <rdsandiford@googlemail.com>
22934 * arm/iterators.md (shiftable_ops): New code iterator.
22935 (t2_binop0, arith_shift_insn): New code attributes.
22936 * arm/predicates.md (shift_nomul_operator): New predicate.
22937 * arm/arm.md (insn_enabled): Delete.
22938 (enabled): Remove insn_enabled test.
22939 (*arith_shiftsi): Delete. Replace with ...
22940 (*<arith_shift_insn>_multsi): ... new pattern.
22941 (*<arith_shift_insn>_shiftsi): ... new pattern.
22942 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22944 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22945 Tom de Vries <tom@codesourcery.com>
22947 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22948 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22950 (mips_split_call): Use POST_CALL_TMP_REG.
22951 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22953 2014-05-29 Tom de Vries <tom@codesourcery.com>
22955 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22956 with #ifdef STACK_REGS.
22958 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22960 * varasm.c (get_variable_section): Walk aliases.
22961 (place_block_symbol): Walk aliases.
22963 2014-05-28 Tom de Vries <tom@codesourcery.com>
22966 2014-05-28 Tom de Vries <tom@codesourcery.com>
22968 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22969 * lra.c (initialize_lra_reg_info_element): Add init of
22970 actual_call_used_reg_set field.
22971 (lra): Call lra_create_live_ranges before lra_inheritance for
22973 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22975 * lra-constraints.c (need_for_call_save_p): Use
22976 actual_call_used_reg_set instead of call_used_reg_set for
22978 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22980 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22982 * doc/md.texi: Document that the % constraint character must
22983 be at the beginning of the string.
22984 * genoutput.c (validate_insn_alternatives): Check that '=',
22985 '+' and '%' only appear at the beginning of a constraint.
22986 * ira.c (commutative_constraint_p): Delete.
22987 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22988 at the start of the string.
22989 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22991 * config/arm/neon.md (bicdi3_neon): Likewise.
22992 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22993 (slt_si, sltu_si): Likewise.
22994 * config/vax/vax.md (sbcdi3): Likewise.
22995 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22996 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22997 (mul64): Move '%' to beginning of constraint.
22998 * config/arm/arm.md (*xordi3_insn): Likewise.
22999 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23000 (xorsi3): Likewise.
23002 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23004 * doc/md.texi: Document the restrictions on the "enabled" attribute.
23006 2014-05-28 Jason Merrill <jason@redhat.com>
23009 * cgraph.h (symtab_node::get_comdat_group_id): New.
23010 * cgraphunit.c (analyze_functions): Call it.
23011 * symtab.c (dump_symtab_node): Likewise.
23012 * tree.c (decl_comdat_group_id): New.
23013 * tree.h: Declare it.
23014 * lto-streamer-out.c (write_symbol): Use it.
23015 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23017 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23019 PR bootstrap/PR61146
23020 * wide-int.cc: Do not include longlong.h when compiling with clang.
23022 2014-05-28 Richard Biener <rguenther@suse.de>
23024 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23025 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23026 (vrp_visit_assignment_or_call): Print less vertical space.
23027 (vrp_visit_stmt): Likewise.
23028 (vrp_visit_phi_node): Likewise. For a PHI argument with
23029 VR_VARYING range consider recording it as copy.
23031 2014-05-28 Richard Biener <rguenther@suse.de>
23034 2014-05-28 Richard Biener <rguenther@suse.de>
23036 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23038 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23040 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23041 sufficiently aligned and an offset is used at the same time.
23042 (expand_expr_real_1): Likewise.
23044 2014-05-28 Richard Biener <rguenther@suse.de>
23046 PR middle-end/61045
23047 * fold-const.c (fold_comparison): When folding
23048 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23049 the sign of the remaining constant operand stays the same.
23051 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23053 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23054 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23055 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23057 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23058 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23059 (m32bit-doubles) Likewise.
23060 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23061 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23064 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23066 * configure.ac ($gcc_cv_ld_clearcap): New test.
23067 * configure: Regenerate.
23068 * config.in: Regenerate.
23069 * config/sol2.opt (mclear-hwcap): New option.
23070 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23071 * config/sol2-clearcap.map: Moved here from
23072 testsuite/gcc.target/i386/clearcap.map.
23073 * config/sol2-clearcapv2.map: Move here from
23074 gcc.target/i386/clearcapv2.map.
23075 * config/t-sol2 (install): Depend on install-clearcap-map.
23076 (install-clearcap-map): New target.
23077 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23080 2014-05-28 Richard Biener <rguenther@suse.de>
23082 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23083 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23084 ... here and remove the rest.
23085 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23087 2014-05-28 Richard Biener <rguenther@suse.de>
23089 PR tree-optimization/61335
23090 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23091 new range fails, drop to varying.
23093 2014-05-28 Olivier Hainque <hainque@adacore.com>
23095 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23096 (CPP_SPEC): Add entry for -mcpu=8548.
23097 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23098 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23100 2014-05-28 Tom de Vries <tom@codesourcery.com>
23102 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23103 * lra.c (initialize_lra_reg_info_element): Add init of
23104 actual_call_used_reg_set field.
23105 (lra): Call lra_create_live_ranges before lra_inheritance for
23107 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23109 * lra-constraints.c (need_for_call_save_p): Use
23110 actual_call_used_reg_set instead of call_used_reg_set for
23112 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23114 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23115 Tom de Vries <tom@codesourcery.com>
23117 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23119 (@item -fuse-caller-save): New item.
23121 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23122 Tom de Vries <tom@codesourcery.com>
23124 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23125 OPT_fuse_caller_save.
23127 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23128 Tom de Vries <tom@codesourcery.com>
23130 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23131 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23132 get_call_reg_set_usage.
23133 * resource.c (mark_set_resources, mark_target_live_regs): Use
23134 get_call_reg_set_usage.
23135 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23137 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23138 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23139 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23140 * ira-build.c (ira_create_allocno): Init
23141 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23142 (create_cap_allocno, propagate_allocno_info)
23143 (propagate_some_info_from_allocno)
23144 (copy_info_to_removed_store_destinations): Handle
23145 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23146 * ira-costs.c (ira_tune_allocno_costs): Use
23147 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23149 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23150 Tom de Vries <tom@codesourcery.com>
23152 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23153 and function_used_regs_valid fields.
23154 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23155 find_all_hard_reg_sets.
23156 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23157 (get_call_reg_set_usage): New function.
23158 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23159 * regs.h (get_call_reg_set_usage): Declare.
23161 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23164 * config/dbx.h (License): Add Runtime Library Exception.
23165 * config/newlib-stdint.h (License): Same.
23166 * config/rtems.h (License): Same
23167 * config/initfini-array.h (License): Same
23168 * config/v850/v850.h (License): Same.
23169 * config/v850/v850-opts.h (License): Same
23170 * config/v850/rtems.h (License): Same.
23172 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23175 * doc/extend.texi (Local Labels): Note that label differences are
23176 not supported for AVR.
23178 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23179 Olivier Hainque <hainque@adacore.com>
23181 * rtl.h (set_for_reg_notes): Declare.
23182 * emit-rtl.c (set_for_reg_notes): New function.
23183 (set_unique_reg_note): Use it.
23184 * optabs.c (add_equal_note): Likewise
23186 2014-05-27 Andrew Pinski <apinski@cavium.com>
23188 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23189 Use <w> for the register in assembly template.
23190 (stack_protect_test): Use the mode of operands[0] for the result.
23191 (stack_protect_test_<mode>): Use <w> for the register
23192 in assembly template.
23194 2014-05-27 DJ Delorie <dj@redhat.com>
23196 * config/rx/rx.c (add_vector_labels): New.
23197 (rx_output_function_prologue): Call it.
23198 (rx_handle_func_attribute): Don't require empty arguments.
23199 (rx_handle_vector_attribute): New.
23200 (rx_attribute_table): Add "vector" attribute.
23201 * doc/extend.texi (interrupt, vector): Document new/changed
23202 RX-specific attributes.
23204 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23206 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23208 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23209 predicate to detect a negative quotient.
23211 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23213 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23214 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23215 Add X - Y CMP 0 to X CMP Y transformation.
23216 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23218 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23220 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23223 2014-05-27 Steve Ellcey <sellcey@mips.com>
23225 * config/mips/mips.c: Add include of cgraph.h.
23227 2014-05-27 Richard Biener <rguenther@suse.de>
23229 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23231 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23234 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23235 * config/arm/arm-cores.def (License): Same.
23236 * config/arm/arm-opts.h (License): Same.
23237 * config/arm/aout.h (License): Same.
23238 * config/arm/bpabi.h (License): Same.
23239 * config/arm/elf.h (License): Same.
23240 * config/arm/linux-elf.h (License): Same.
23241 * config/arm/linux-gas.h (License): Same.
23242 * config/arm/netbsd-elf.h (License): Same.
23243 * config/arm/uclinux-eabi.h (License): Same.
23244 * config/arm/uclinux-elf.h (License): Same.
23245 * config/arm/vxworks.h (License): Same.
23247 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23249 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23250 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23251 (arm_init_neon_builtins): Handle NEON_BSWAP.
23252 Define required type nodes.
23253 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23254 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23255 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23256 * config/arm/iterators.md (VDQHSD): New mode iterator.
23258 2014-05-27 Richard Biener <rguenther@suse.de>
23260 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23261 Try using literal operands when comparing value-ranges failed.
23263 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23265 * ira.c (commutative_operand): Adjust for change to recog_data.
23266 [Missing from previous commit.]
23268 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23270 * system.h (TEST_BIT): New macro.
23271 * recog.h (alternative_mask): New type.
23272 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23273 (recog_data_d): Replace alternative_enabled_p array with
23274 enabled_alternatives.
23275 (target_recog): New structure.
23276 (default_target_recog, this_target_recog): Declare.
23277 (get_enabled_alternatives, recog_init): Likewise.
23278 * recog.c (default_target_recog, this_target_recog): New variables.
23279 (get_enabled_alternatives): New function.
23280 (extract_insn): Use it.
23281 (recog_init): New function.
23282 (preprocess_constraints, constrain_operands): Adjust for change to
23284 * postreload.c (reload_cse_simplify_operands): Likewise.
23285 * reload.c (find_reloads): Likewise.
23286 * ira-costs.c (record_reg_classes): Likewise.
23287 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23288 all alternatives after a disabled one would be skipped.
23289 (ira_implicitly_set_insn_hard_regs): Likewise.
23290 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23291 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23292 with enabled_alternatives.
23293 * lra.c (free_insn_recog_data): Update accordingly.
23294 (lra_update_insn_recog_data): Likewise.
23295 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23296 * lra-constraints.c (process_alt_operands): Likewise. Handle
23297 only_alternative as part of the enabled mask.
23298 * target-globals.h (this_target_recog): Declare.
23299 (target_globals): Add a recog field.
23300 (restore_target_globals): Restore this_target_recog.
23301 * target-globals.c: Include recog.h.
23302 (default_target_globals): Initialize recog field.
23303 (save_target_globals): Likewise.
23304 * reginfo.c (reinit_regs): Call recog_init.
23305 * toplev.c (backend_init_target): Likewise.
23307 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23309 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23310 rather than any named insn's code.
23312 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23315 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23316 * config/arm/arm-cores.def (License): Same.
23318 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23320 * tree.h (decl_comdat_group): Declare.
23321 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23322 * tree.c (decl_comdat_group): Here.
23324 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23326 PR rtl-optimization/61222
23327 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23328 the shift, truncate the PLUS operand to the result mode.
23330 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23333 * config/i386/i386.c (ix86_rtx_costs)
23334 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23337 2014-05-26 Martin Jambor <mjambor@suse.cz>
23339 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23342 2014-05-26 Richard Biener <rguenther@suse.de>
23344 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23345 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23346 Provide specializations.
23347 (wi::int_traits <HOST_WIDE_INT>,
23348 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23350 2014-05-26 Alan Modra <amodra@gmail.com>
23353 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23354 params and return a bool. Remove dead code. Update comment.
23355 Assert we have a const_int source. Remove bogus code from
23356 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23357 handling of constants > 2G and reg_equal note, from..
23358 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23359 return value. Update comment. If we can, use a new pseudo
23360 for intermediate calculations.
23361 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23363 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23364 call to rs6000_emit_set_const in splitter.
23365 (movdi_internal64+2, +3): Likewise.
23367 2014-05-26 Richard Biener <rguenther@suse.de>
23369 * system.h: Define __STDC_FORMAT_MACROS before
23370 including inttypes.h.
23371 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23372 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23373 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23374 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23375 HOST_WIDEST_INT_C): Remove.
23376 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23377 if C99 inttypes.h is not available.
23378 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23379 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23380 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23381 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23382 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23383 (struct output_info): Likewise.
23384 (print_statistics): Adjust.
23385 (dump_bitmap_statistics): Likewise.
23386 * bt-load.c (migrate_btr_defs): Print with PRId64.
23387 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23388 (MAX_SAFE_MULTIPLIER): Adjust.
23389 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23390 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23391 dump_cgraph_node): Likewise.
23392 * final.c (dump_basic_block_info): Likewise.
23393 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23394 * gcov.c (format_gcov): Likewise.
23395 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23397 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23398 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23399 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23400 Use PRId64 for dumping.
23401 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23402 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23403 (add_allocno_hard_regs): Adjust.
23404 * loop-doloop.c (doloop_modify): Print using PRId64.
23405 * loop-iv.c (inverse): Compute in uint64_t.
23406 (determine_max_iter, iv_number_of_iterations): Likewise.
23407 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23408 Print using PRId64.
23409 * lto-streamer-out.c (write_symbol): Use uint64_t.
23410 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23411 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23412 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23413 * modulo-sched.c (const_iteration_count): Use int64_t.
23414 (sms_schedule): Dump using PRId64.
23415 * predict.c (dump_prediction): Likewise.
23416 * pretty-print.h (pp_widest_integer): Remove.
23417 * profile.c (get_working_sets, is_edge_inconsistent,
23418 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23419 * tree-pretty-print.c (pp_double_int): Remove case handling
23420 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23421 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23423 (pass_optimize_bswap::execute): Remove restriction on hosts.
23424 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23425 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23426 * tree.c (widest_int_cst_value): Remove.
23427 * tree.h (widest_int_cst_value): Likewise.
23428 * value-prof.c (dump_histogram_value): Print using PRId64.
23429 * gengtype.c (main): Also inject int64_t.
23430 * ggc-page.c (struct max_alignment): Use int64_t.
23431 * alloc-pool.c (struct allocation_object_def): Likewise.
23432 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23434 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23435 * doc/tm.texi: Regenerated.
23436 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23437 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23438 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23439 mmix_output_register_setting): Use [u]int64_t in prototypes.
23440 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23441 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23442 mmix_output_octa, mmix_output_shifted_value): Adjust.
23443 (mmix_intval): Adjust. Remove unreachable case.
23444 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23446 2014-05-26 Richard Biener <rguenther@suse.de>
23448 * configure.ac: Drop __int64 type check. Insist that we
23449 found uint64_t and int64_t.
23450 * hwint.h (HOST_BITS_PER___INT64): Remove.
23451 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23452 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23453 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23454 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23455 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23456 for dst_q_src_df_rms_cdt.
23457 * configure: Regenerate.
23458 * config.in: Likewise.
23460 2014-05-26 Michael Tautschnig <mt@debian.org>
23463 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23464 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23466 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23468 PR rtl-optimization/61278
23469 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23471 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23473 PR rtl-optimization/61220
23474 Part of PR rtl-optimization/61225
23475 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23476 insn; skip split_edge for a block with only one successor.
23478 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23480 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23483 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23485 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23486 (update_vtable_references): New function.
23487 (function_and_variable_visibility): Rewrite also vtable initializers.
23488 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23490 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23492 * ggc.h (ggc_grow): New function.
23493 * ggc-none.c (ggc_grow): New function.
23494 * ggc-page.c (ggc_grow): Likewise.
23496 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23498 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23499 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23500 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23501 varpool_externally_visible_p, can_replace_by_local_alias,
23502 update_visibility_by_resolution_info, function_and_variable_visibility,
23503 pass_data_ipa_function_and_variable_visibility,
23504 make_pass_ipa_function_and_variable_visibility,
23505 whole_program_function_and_variable_visibility,
23506 pass_data_ipa_whole_program_visibility,
23507 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23508 * cgraph.h (cgraph_local_node_p): Declare.
23509 * ipa-visibility.c: New file.
23510 * Makefile.in (OBJS): Add ipa-visiblity.o
23512 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23514 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23515 that var decl is available.
23517 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23519 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23520 symtab_node pointer.
23521 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23522 (find_decls_types_r): Do not walk COMDAT_GROUP.
23523 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23524 * varasm.c (make_decl_one_only): Use set_comdat_group;
23525 create node if needed.
23526 * ipa-inline-transform.c (save_inline_function_body): Update
23527 way we decl->symtab mapping.
23528 * symtab.c (symtab_hash, hash_node, eq_node
23529 symtab_insert_node_to_hashtable): Remove.
23530 (symtab_register_node): Update.
23531 (symtab_unregister_node): Update.
23532 (symtab_get_node): Reimplement as inline function.
23533 (symtab_add_to_same_comdat_group): Update.
23534 (symtab_dissolve_same_comdat_group_list): Update.
23535 (dump_symtab_base): Update.
23536 (verify_symtab_base): Update.
23537 (symtab_make_decl_local): Update.
23538 (fixup_same_cpp_alias_visibility): Update.
23539 (symtab_nonoverwritable_alias): Update.
23540 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23541 * ipa.c (update_visibility_by_resolution_info): UPdate.
23542 * bb-reorder.c: Include cgraph.h
23543 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23544 with comdat groups.
23545 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23546 * cgraph.c (cgraph_get_create_node): Update.
23547 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23549 (symtab_get_node): Make inline.
23550 (symtab_insert_node_to_hashtable): Remove.
23551 (symtab_can_be_discarded): Update.
23552 (decl_comdat_group): New function.
23553 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23555 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23557 (read_comdat_group): New function.
23558 (input_node, input_varpool_node): Use it.
23559 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23561 * mips.c (mips_start_unique_function): Likewise.
23562 (ix86_code_end): Likewise.
23563 (rs6000_code_end): Likweise.
23564 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23566 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23568 * gengtype-state.c (fatal_reading_state): Bring offline.
23569 * optabs.c (widening_optab_handler): Bring offline.
23570 * optabs.h (widening_optab_handler): Likewise.
23571 * final.c (get_attr_length_1): Likewise.
23573 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23575 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23577 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23579 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23580 (ppc440-compare): Include shift with dot.
23581 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23582 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23584 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23586 (e6500_sfx2): Include it.
23587 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23588 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23589 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23590 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23591 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23592 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23593 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23594 *lshiftrt_internal1le, *lshiftrt_internal1be,
23595 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23596 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23597 *rotldi3_internal10le, *rotldi3_internal10be,
23598 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23599 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23600 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23601 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23602 define_insns): Use type "shift" in the appropriate alternatives.
23604 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23606 * config/rs6000/rs6000.md (type): Add "logical". Delete
23608 (dot): Adjust comment.
23609 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23610 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23611 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23612 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23613 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23614 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23615 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23616 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23618 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23619 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23620 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23621 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23622 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23623 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23624 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23625 * config/rs6000/8540.md (ppc8540_su): Adjust.
23626 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23627 cell-cmp-microcoded): Adjust.
23628 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23629 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23630 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23631 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23632 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23633 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23634 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23635 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23636 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23638 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23639 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23640 Adjust. Adjust comment.
23641 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23642 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23644 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23646 * config/rs6000/rs6000.md (type): Add "add".
23647 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23648 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23649 define_insns): Use it.
23650 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23652 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23653 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23654 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23655 * config/rs6000/601.md (ppc601-integer): Adjust.
23656 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23657 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23658 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23659 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23660 * config/rs6000/8540.md (ppc8540_su): Adjust.
23661 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23662 cell-cmp-microcoded): Adjust.
23663 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23664 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23665 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23666 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23667 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23668 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23669 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23670 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23671 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23673 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23674 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23675 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23676 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23678 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23680 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23681 "delayed_compare", "var_delayed_compare".
23682 (var_shift): New attribute.
23683 (cell_micro): Adjust.
23684 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23685 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23686 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23687 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23688 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23689 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23690 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23691 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23692 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23693 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23694 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23695 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23696 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23697 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23698 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23699 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23700 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23701 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23702 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23703 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23704 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23705 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23706 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23707 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23708 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23710 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23711 * config/rs6000/440.md (ppc440-integer): Adjust.
23712 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23713 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23714 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23715 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23716 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23717 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23718 * config/rs6000/8540.md (ppc8540_su): Adjust.
23719 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23720 cell-cmp-microcoded): Adjust.
23721 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23722 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23723 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23724 e500mc64_delayed): Adjust.
23725 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23726 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23727 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23728 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23729 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23730 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23731 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23732 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23733 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23735 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23736 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23738 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23740 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23741 (bits): New mode_attr.
23742 (idiv_ldiv): Delete mode_attr.
23743 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23744 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23745 rs6000_adjust_priority, is_nonpipeline_insn,
23746 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23748 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23749 * config/rs6000/440.md (ppc440-idiv): Adjust.
23750 * config/rs6000/476.md (ppc476-idiv): Adjust.
23751 * config/rs6000/601.md (ppc601-idiv): Adjust.
23752 * config/rs6000/603.md (ppc603-idiv): Adjust.
23753 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23754 ppc620-ldiv): Adjust.
23755 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23756 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23757 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23758 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23759 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23760 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23761 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23762 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23763 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23764 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23765 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23766 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23767 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23768 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23769 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23770 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23771 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23772 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23774 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23776 * config/rs6000/rs6000.md (type): Delete "insert_word",
23777 "insert_dword". Add "insert".
23778 (size): Update comment.
23779 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23780 insn_must_be_first_in_group): Adjust.
23781 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23782 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23783 *insvsi_internal6, insvdi_internal): Adjust.
23785 * config/rs6000/40x.md (ppc403-integer): Adjust.
23786 * config/rs6000/440.md (ppc440-integer): Adjust.
23787 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23788 * config/rs6000/601.md (ppc601-integer): Adjust.
23789 * config/rs6000/603.md (ppc603-integer): Adjust.
23790 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23791 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23792 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23793 * config/rs6000/8540.md (ppc8540_su): Adjust.
23794 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23795 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23796 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23797 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23798 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23799 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23800 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23801 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23802 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23803 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23804 * config/rs6000/power7.md (power7-integer): Adjust.
23805 * config/rs6000/power8.md (power8-1cyc): Adjust.
23806 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23807 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23809 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23811 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23812 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23813 (size): New attribute.
23814 (dot): New attribute.
23815 (cell_micro): Adjust.
23816 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23817 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23818 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23819 umuldi3_highpart): Adjust.
23820 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23821 rs6000_adjust_priority, is_nonpipeline_insn,
23822 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23824 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23825 ppc405-imul3): Adjust.
23826 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23827 * config/rs6000/476.md (ppc476-imul): Adjust.
23828 * config/rs6000/601.md (ppc601-imul): Adjust.
23829 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23830 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23831 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23832 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23833 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23835 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23836 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23837 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23838 cell-imul): Adjust.
23839 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23840 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23841 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23842 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23843 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23844 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23845 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23846 power4-lmul, power4-imul, power4-imul3): Adjust.
23847 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23848 power5-lmul, power5-imul, power5-imul3): Adjust.
23849 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23850 power6-lmul, power6-imul, power6-imul3): Adjust.
23851 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23852 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23854 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23855 rs64a-lmul): Adjust.
23856 * config/rs6000/titan.md (titan_imul): Adjust.
23858 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23860 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23861 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23862 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23863 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23864 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23865 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23866 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23867 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23868 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23869 * config/rs6000/titan.md: Delete nonsensical comment.
23870 (titan_imul): Add type imul3.
23871 (titan_mulhw): Remove type imul3; add type halfmul.
23873 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23875 * config/rs6000/rs6000.md (type): Reorder, reformat.
23877 2014-05-23 Martin Jambor <mjambor@suse.cz>
23879 PR tree-optimization/53787
23880 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23881 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23882 analysis_done, update all uses.
23883 * ipa-prop.c: Include domwalk.h
23884 (param_analysis_info): Removed.
23885 (param_aa_status): New type.
23886 (ipa_bb_info): Likewise.
23887 (func_body_info): Likewise.
23888 (ipa_get_bb_info): New function.
23889 (aa_overwalked): Likewise.
23890 (find_dominating_aa_status): Likewise.
23891 (parm_bb_aa_status_for_bb): Likewise.
23892 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23893 (load_from_unmodified_param): Accept func_body_info as a parameter
23894 instead of parms_ainfo.
23895 (parm_ref_data_preserved_p): Changed to use new param AA info.
23896 (parm_ref_data_pass_through_p): Likewise.
23897 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23898 (compute_complex_assign_jump_func): Changed to use new param AA info.
23899 (compute_complex_ancestor_jump_func): Likewise.
23900 (ipa_compute_jump_functions_for_edge): Likewise.
23901 (ipa_compute_jump_functions): Removed.
23902 (ipa_compute_jump_functions_for_bb): New function.
23903 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23905 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23906 and info, moved variable declarations down.
23907 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23909 (ipa_analyze_stmt_uses): Likewise.
23910 (ipa_analyze_params_uses): Removed.
23911 (ipa_analyze_params_uses_in_bb): New function.
23912 (ipa_analyze_controlled_uses): Likewise.
23913 (free_ipa_bb_info): Likewise.
23914 (analysis_dom_walker): New class.
23915 (ipa_analyze_node): Handle node-specific forbidden analysis,
23916 initialize and free func_body_info, use dominator walker.
23917 (ipcp_modif_dom_walker): New class.
23918 (ipcp_transform_function): Create and free func_body_info, use
23919 ipcp_modif_dom_walker, moved a lot of functionality there.
23921 2014-05-23 Marek Polacek <polacek@redhat.com>
23922 Jakub Jelinek <jakub@redhat.com>
23924 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23925 * gcc.c (sanitize_spec_function): Likewise.
23926 * convert.c (convert_to_integer): Include "ubsan.h". Add
23927 floating-point to integer instrumentation.
23928 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23929 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23930 SANITIZE_NONDEFAULT.
23931 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23932 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23933 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23934 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23935 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23936 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23937 float/double/long double.
23938 (ubsan_instrument_float_cast): New function.
23939 * ubsan.h (ubsan_instrument_float_cast): Declare.
23941 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23943 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23945 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23946 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23947 Adjust for tailcalling through registers.
23948 * config/aarch64/aarch64.h (enum reg_class): New caller save
23950 (REG_CLASS_NAMES): Likewise.
23951 (REG_CLASS_CONTENTS): Likewise.
23952 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23953 Allow tailcalling without decls.
23955 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23957 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23958 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23960 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23961 gsi, and variables v_* to v*.
23963 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23965 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23967 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23969 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23970 * omp-low.c: Update accordingly.
23972 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23973 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23974 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23975 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23976 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23977 GF_OMP_TARGET_KIND_UPDATE.
23979 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23980 Explicitly enumerate the expected region types.
23982 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23985 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23986 documentation; the old documentation didn't clearly state the
23987 constraints on the contents of the pointed-to storage.
23989 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23991 Fix bootstrap error on ia64
23992 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23993 Return default value.
23995 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23997 PR tree-optimization/54733
23998 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24000 (find_bswap_or_nop_load): New.
24001 (find_bswap_1): Renamed to ...
24002 (find_bswap_or_nop_1): This. Also add support for memory source.
24003 (find_bswap): Renamed to ...
24004 (find_bswap_or_nop): This. Also add support for memory source and
24005 detection of bitwise operations equivalent to load in target
24007 (execute_optimize_bswap): Likewise. Also move its leading comment back
24008 in place and split statement transformation into ...
24009 (bswap_replace): This.
24011 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24013 PR rtl-optimization/61215
24014 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24015 simplify_gen_subreg until final substitution.
24017 2014-05-23 Alan Modra <amodra@gmail.com>
24020 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24021 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24022 Use "Y" constraint rather than "m".
24024 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24026 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24028 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24029 New function declaration.
24030 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24031 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24032 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24033 (aarch64_init_builtins) : Initialize builtins
24034 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24035 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24036 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24037 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24038 and __builtins_aarch64_set_fpsr.
24039 (aarch64_atomic_assign_expand_fenv): New function.
24040 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24041 (get_fpcr) : Likewise.
24042 (set_fpsr) : Likewise.
24043 (get_fpsr) : Likewise.
24044 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24045 and UNSPECV_SET_FPSR.
24046 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24047 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24048 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24050 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24052 PR rtl-optimization/60969
24053 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24054 constraints. Set up mem cost for NO_REGS case.
24056 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24058 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24060 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24062 * config/darwin.c: Include "lto-section-names.h".
24063 (LTO_SEGMENT_NAME): Don't define.
24064 * config/i386/winnt.c: Include "lto-section-names.h".
24065 * lto-streamer.c: Include "lto-section-names.h".
24066 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24067 * lto-wrapper.c: Include "lto-section-names.h".
24068 (LTO_SECTION_NAME_PREFIX): Don't define.
24069 * lto-section-names.h: New file.
24070 * cgraphunit.c: Include "lto-section-names.h".
24072 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24074 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24076 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24079 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24081 2014-05-22 Nick Clifton <nickc@redhat.com>
24083 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24085 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24087 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24088 -> (T)A transformation to integer types.
24090 2014-05-22 Teresa Johnson <tejohnson@google.com>
24092 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24093 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24094 (gcov_rewrite): Use gcov_nonruntime_assert.
24095 (gcov_open): Ditto.
24096 (gcov_write_words): Ditto.
24097 (gcov_write_length): Ditto.
24098 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24099 gcc_assert from IN_LIBGCOV code.
24100 (gcov_read_summary): Use gcov_error to flag profile corruption.
24101 (gcov_sync): Use gcov_nonruntime_assert.
24102 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24103 (gcov_histo_index): Use gcov_nonruntime_assert.
24104 (static void gcov_histogram_merge): Ditto.
24105 (compute_working_sets): Ditto.
24106 * gcov-io.h (gcov_nonruntime_assert): Define.
24107 (gcov_error): Define for !IN_LIBGCOV
24109 2014-05-22 Richard Biener <rguenther@suse.de>
24111 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24112 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24113 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24114 and deallocation site.
24115 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24116 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24117 passing through the incoming points-to set.
24118 (handle_lhs_call): Use flags argument instead of recomputing it.
24119 (find_func_aliases_for_call): Call handle_lhs_call with proper
24122 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24124 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24125 all padding bits in REAL_VALUE_TYPE are cleared.
24127 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24129 Cleanup and improve multipass_dfa_lookahead_guard
24130 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24131 (core2i7_first_cycle_multipass_begin,)
24132 (core2i7_first_cycle_multipass_issue,)
24133 (core2i7_first_cycle_multipass_backtrack): Update signature.
24134 * config/ia64/ia64.c
24135 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24136 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24137 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24139 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24140 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24142 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24144 * doc/tm.texi: Regenerate.
24146 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24147 * haifa-sched.c (ready_try): Make signed to allow negative values.
24148 (rebug_ready_list_1): Update.
24149 (choose_ready): Simplify.
24150 (sched_extend_ready_list): Update.
24152 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24154 Remove IA64 speculation tweaking flags
24155 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24156 speculation tuning flags.
24157 (msched-prefer-non-data-spec-insns,)
24158 (msched-prefer-non-control-spec-insns): Obsolete options.
24159 * haifa-sched.c (choose_ready): Remove handling of
24160 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24161 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24162 and PREFER_NON_DATA_SPEC.
24163 * sel-sched.c (process_spec_exprs): Remove handling of
24164 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24166 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24168 Improve scheduling debug output
24169 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24170 (advance_one_cycle): Update.
24171 (schedule_insn, queue_to_ready): Add debug printouts.
24172 (debug_ready_list_1): New static function.
24173 (debug_ready_list): Update.
24174 (max_issue): Add debug printouts.
24175 (dump_insn_stream): New static function.
24176 (schedule_block): Use it. Also better indent printouts.
24178 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24180 Fix sched_insn debug counter
24181 * haifa-sched.c (schedule_insn): Update.
24182 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24183 (save_backtrack_point, restore_backtrack_point): Update.
24184 (first_nonscheduled_insn): New static function.
24185 (queue_to_ready, choose_ready): Use it.
24186 (schedule_block): Init nonscheduled_insns_begin.
24187 (sched_emit_insn): Update.
24190 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24192 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24194 (aarch64_secondary_reload) : LikeWise.
24195 (aarch64_class_max_nregs) : Remove CORE_REGS.
24196 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24197 (REG_CLASS_NAMES) : Likewise.
24198 (REG_CLASS_CONTENTS) : LikeWise.
24199 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24201 2014-05-21 Guozhi Wei <carrot@google.com>
24204 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24206 (vqdmulhq_n_s16): Likewise.
24208 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24210 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24212 2014-05-21 Marek Polacek <polacek@redhat.com>
24215 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24217 2014-05-21 Martin Jambor <mjambor@suse.cz>
24219 * doc/invoke.texi (Optimize Options): Document parameters
24220 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24221 ipa-cp-array-index-hint-bonus.
24223 2014-05-21 Mark Wielaard <mjw@redhat.com>
24226 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24227 version >= 3 or not strict DWARF.
24228 * langhooks.h (struct lang_hooks_for_types): Add
24229 enum_underlying_base_type.
24230 * langhooks.c (lhd_enum_underlying_base_type): New function.
24231 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24232 enum_underlying_base_type.
24233 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24234 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24235 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24237 2014-05-21 Richard Biener <rguenther@suse.de>
24239 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24241 2014-05-21 John Marino <gnugcc@marino.st>
24243 * config.gcc (*-*-dragonfly*): New target.
24244 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24245 * configure: Regenerate.
24246 * config/dragonfly-stdint.h: New.
24247 * config/dragonfly.h: New.
24248 * config/dragonfly.opt: New.
24249 * config/i386/dragonfly.h: New.
24250 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24252 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24254 * tree.def (VOID_CST): New.
24255 * tree-core.h (TI_VOID): New.
24256 * tree.h (void_node): New.
24257 * tree.c (tree_node_structure_for_code, tree_code_size)
24258 (iterative_hash_expr): Handle VOID_CST.
24259 (build_common_tree_nodes): Initialize void_node.
24261 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24263 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24265 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24267 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24270 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24271 flag_reorder_blocks_and_partition.
24272 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24274 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24277 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24279 (*addc_r_t): Add new insn_and_split.
24281 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24283 PR middle-end/61252
24284 * omp-low.c (handle_simd_reference): New function.
24285 (lower_rec_input_clauses): Use it. Defer adding reference
24286 initialization even for reduction without placeholder if in simd,
24287 handle it properly later on.
24289 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24291 PR tree-optimization/60899
24292 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24293 assume all static symbols will have definition wile parsing and
24294 check the do have definition later in compilation; check that
24295 variable referring symbol will be output before concluding that
24296 reference is safe; be conservative for referring local statics;
24297 be more precise about when comdat is output in other partition.
24299 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24302 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24304 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24305 (ipa_inline): Loop inline_to_all_callers until no more aliases
24308 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24310 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24311 set writeonly flag only for vars actually written to.
24313 2014-05-20 Dehao Chen <dehao@google.com>
24315 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24316 and callee count to get clone count.
24317 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24318 count in copy_body.
24320 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24322 PR rtl-optimization/61243
24323 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24325 2014-05-20 Xinliang David Li <davidxl@google.com>
24327 * cgraphunit.c (walk_polymorphic_call_targets): Add
24328 dbgcnt and fopt-info support.
24329 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24330 * ipa-devirt.c (ipa_devirt): Ditto.
24331 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24332 * ipa.c (walk_polymorphic_call_targets): Ditto.
24333 * gimple-fold.c (fold_gimple_assign): Ditto.
24334 (gimple_fold_call): Ditto.
24335 * dbgcnt.def: New counter.
24337 2014-05-20 DJ Delorie <dj@redhat.com>
24339 * config/msp430/msp430.md (split): Don't allow subregs when
24340 splitting SImode adds.
24341 (andneghi): Fix subtraction logic.
24342 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24344 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24346 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24348 * except.c (switch_to_exception_section, resolve_unique_section,
24349 get_named_text_section, default_function_rodata_section,
24350 align_variable, get_block_for_decl, default_section_type_flags):
24351 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24352 * symtab.c (symtab_add_to_same_comdat_group,
24353 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24354 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24356 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24357 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24358 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24359 (c6x_function_in_section_p): Likewise.
24360 * config/darwin.c (machopic_select_section): Likewise.
24361 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24362 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24363 * config/mep/mep.c (mep_select_section): LIkewise.
24364 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24366 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24368 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24369 EH region of calls to pure functions that can throw an exception.
24370 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24371 (copy_reference_ops_from_call): Also copy the EH region of the call if
24372 it can throw an exception.
24374 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24376 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24377 nested VEC_SELECTs that are inverses of each other.
24379 2014-05-20 Richard Biener <rguenther@suse.de>
24381 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24382 (extract_and_process_scc_for_name): not here.
24383 (cond_dom_walker::before_dom_children): Only process
24384 stmts that end the BB in interesting ways.
24385 (run_scc_vn): Mark param uses as visited.
24387 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24389 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24392 2014-05-20 Nick Clifton <nickc@redhat.com>
24394 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24395 (msp430_gimplify_va_arg_expr): New function.
24396 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24398 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24399 operand 0 in order to prevent confusion about the number of
24400 registers involved.
24402 2014-05-20 Richard Biener <rguenther@suse.de>
24404 PR tree-optimization/61221
24405 * tree-ssa-pre.c (el_to_update): Remove.
24406 (eliminate_dom_walker::before_dom_children): Handle released
24407 VDEFs by value-numbering them to the associated VUSE. Update
24408 stmt immediately for substituted call address.
24409 (eliminate): Remove delayed stmt updating code.
24410 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24411 possibly late re-numbered vuses.
24412 (vn_reference_lookup_2): Adjust.
24413 (vn_reference_lookup_pieces): Likewise.
24414 (vn_reference_lookup): Likewise.
24416 2014-05-20 Richard Biener <rguenther@suse.de>
24418 * config.gcc: Remove need_64bit_hwint.
24419 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24420 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24422 * config.in: Regenerate.
24423 * configure: Likewise.
24425 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24427 * doc/extend.texi: Create Label Attributes section,
24428 move all label attributes into it and reference it.
24430 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24432 * arm.c (thumb1_reorg): When scanning backwards skip anything
24433 that's not a proper insn.
24435 2014-05-19 Richard Biener <rguenther@suse.de>
24437 PR tree-optimization/61221
24438 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24439 Do nothing for unreachable blocks.
24440 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24441 Improve unreachability detection.
24443 2014-05-19 Richard Biener <rguenther@suse.de>
24445 PR tree-optimization/61209
24446 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24448 2014-05-19 Nick Clifton <nickc@redhat.com>
24450 * except.c (init_eh): Fix computation of builtin setjmp buffer
24451 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24453 2014-05-19 Richard Biener <rguenther@suse.de>
24455 PR tree-optimization/61184
24456 * tree-vrp.c (is_negative_overflow_infinity): Use
24457 TREE_OVERFLOW_P and do that check first.
24458 (is_positive_overflow_infinity): Likewise.
24459 (is_overflow_infinity): Likewise.
24460 (vrp_operand_equal_p): Properly treat operands with
24461 differing overflow as not equal.
24463 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24465 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24466 shift simplification where it was intended.
24468 2014-05-19 Christian Bruel <christian.bruel@st.com>
24471 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24473 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24476 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24479 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24481 * reg-notes.def (CROSSING_JUMP): Likewise.
24482 * rtl.h (rtx_def): Update comment for jump flag.
24483 (CROSSING_JUMP_P): Define.
24484 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24485 of a REG_CROSSING_JUMP note.
24486 * cfghooks.c (tidy_fallthru_edges): Likewise.
24487 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24488 * emit-rtl.c (try_split): Likewise.
24489 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24490 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24491 * jump.c (redirect_jump_2): Likewise.
24492 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24493 (relax_delay_slots): Likewise.
24494 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24495 (bbit_di): Likewise.
24496 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24497 * config/sh/sh.md (jump_compact): Likewise.
24498 * bb-reorder.c (rotate_loop): Likewise.
24499 (pass_duplicate_computed_gotos::execute): Likewise.
24500 (add_reg_crossing_jump_notes): Rename to...
24501 (update_crossing_jump_flags): ...this.
24502 (pass_partition_blocks::execute): Update accordingly.
24504 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24506 * tree.h: Remove extraneous template <>.
24508 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24510 * ipa.c (symtab_remove_unreachable_nodes): Remove
24511 symbol from comdat group if its body was eliminated.
24512 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24513 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24514 (symtab_unregister_node): ... this one.
24515 (verify_symtab_base): More strict checking of comdats.
24516 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24518 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24520 * tree-pass.h (make_pass_ipa_comdats): New pass.
24521 * timevar.def (TV_IPA_COMDATS): New timevar.
24522 * passes.def (pass_ipa_comdats): Add.
24523 * Makefile.in (OBJS): Add ipa-comdats.o
24524 * ipa-comdats.c: New file.
24526 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24528 * ipa.c (update_visibility_by_resolution_info): New function.
24529 (function_and_variable_visibility): Use it.
24531 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24533 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24535 (FOR_EACH_DEFINED_SYMBOL): New macro.
24536 (varpool_first_static_initializer, varpool_next_static_initializer,
24537 varpool_first_defined_variable, varpool_next_defined_variable):
24539 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24541 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24543 * ggc-page.c (ggc_handle_finalizers): Add comment.
24545 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24547 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24548 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24549 (ggc_internal_cleared_alloc): Likewise.
24550 * ggc-page.c (finalizer): New class.
24551 (vec_finalizer): Likewise.
24552 (globals::finalizers): New member.
24553 (globals::vec_finalizers): Likewise.
24554 (ggc_internal_alloc): Record the finalizer if any for the block being
24556 (ggc_handle_finalizers): New function.
24557 (ggc_collect): Call ggc_handle_finalizers.
24558 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24560 (ggc_internal_cleared_alloc): Likewise.
24561 (finalize): New function.
24562 (need_finalization_p): Likewise.
24563 (ggc_alloc): Install the type's destructor as the finalizer if it
24564 might do something.
24565 (ggc_cleared_alloc): Likewise.
24566 (ggc_vec_alloc): Likewise.
24567 (ggc_cleared_vec_alloc): Likewise.
24569 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24571 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24573 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24575 * alias.c (record_alias_subset): Adjust.
24576 * bitmap.c (bitmap_element_allocate): Likewise.
24577 (bitmap_gc_alloc_stat): Likewise.
24578 * cfg.c (init_flow): Likewise.
24579 (alloc_block): Likewise.
24580 (unchecked_make_edge): Likewise.
24581 * cfgloop.c (alloc_loop): Likewise.
24582 (flow_loops_find): Likewise.
24583 (rescan_loop_exit): Likewise.
24584 * cfgrtl.c (init_rtl_bb_info): Likewise.
24585 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24586 (cgraph_allocate_node): Likewise.
24587 (cgraph_create_edge_1): Likewise.
24588 (cgraph_allocate_init_indirect_info): Likewise.
24589 * cgraphclones.c (cgraph_clone_edge): Likewise.
24590 * cgraphunit.c (add_asm_node): Likewise.
24591 (init_lowered_empty_function): Likewise.
24592 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24593 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24594 (alpha_use_linkage): Likewise.
24595 * config/arc/arc.c (arc_init_machine_status): Likewise.
24596 * config/arm/arm.c (arm_init_machine_status): Likewise.
24597 * config/avr/avr.c (avr_init_machine_status): Likewise.
24598 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24599 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24600 * config/cris/cris.c (cris_init_machine_status): Likewise.
24601 * config/darwin.c (machopic_indirection_name): Likewise.
24602 (darwin_build_constant_cfstring): Likewise.
24603 (darwin_enter_string_into_cfstring_table): Likewise.
24604 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24605 * config/frv/frv.c (frv_init_machine_status): Likewise.
24606 * config/i386/i386.c (get_dllimport_decl): Likewise.
24607 (ix86_init_machine_status): Likewise.
24608 (assign_386_stack_local): Likewise.
24609 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24610 (i386_pe_maybe_record_exported_symbol): Likewise.
24611 (i386_pe_record_stub): Likewise.
24612 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24613 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24614 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24615 (m32c_note_pragma_address): Likewise.
24616 * config/mep/mep.c (mep_init_machine_status): Likewise.
24617 (mep_note_pragma_flag): Likewise.
24618 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24619 (mips16_local_alias): Likewise.
24620 (mips_init_machine_status): Likewise.
24621 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24622 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24623 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24624 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24625 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24626 * config/pa/pa.c (pa_init_machine_status): Likewise.
24627 (pa_get_deferred_plabel): Likewise.
24628 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24629 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24630 (rs6000_init_machine_status): Likewise.
24631 (output_toc): Likewise.
24632 * config/s390/s390.c (s390_init_machine_status): Likewise.
24633 * config/score/score.c (score_output_external): Likewise.
24634 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24635 * config/spu/spu.c (spu_init_machine_status): Likewise.
24636 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24637 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24638 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24639 * coverage.c (coverage_end_function): Likewise.
24640 * dbxout.c (dbxout_init): Likewise.
24641 * doc/gty.texi: Don't mention variable_size attribute.
24642 * dwarf2cfi.c (new_cfi): Adjust.
24643 (new_cfi_row): Likewise.
24644 (copy_cfi_row): Likewise.
24645 (create_cie_data): Likewise.
24646 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24647 (new_loc_descr): Likewise.
24648 (find_AT_string_in_table): Likewise.
24649 (add_addr_table_entry): Likewise.
24650 (new_die): Likewise.
24651 (add_var_loc_to_decl): Likewise.
24652 (clone_die): Likewise.
24653 (clone_as_declaration): Likewise.
24654 (break_out_comdat_types): Likewise.
24655 (new_loc_list): Likewise.
24656 (add_loc_descr_to_each): Likewise.
24657 (add_location_or_const_value_attribute): Likewise.
24658 (add_linkage_name): Likewise.
24659 (lookup_filename): Likewise.
24660 (dwarf2out_var_location): Likewise.
24661 (new_line_info_table): Likewise.
24662 (dwarf2out_init): Likewise.
24663 (mem_loc_descriptor): Likewise.
24664 (loc_descriptor): Likewise.
24665 (add_const_value_attribute): Likewise.
24666 (tree_add_const_value_attribute): Likewise.
24667 (comp_dir_string): Likewise.
24668 (dwarf2out_vms_debug_main_pointer): Likewise.
24669 (string_cst_pool_decl): Likewise.
24670 * emit-rtl.c (set_mem_attrs): Likewise.
24671 (get_reg_attrs): Likewise.
24672 (start_sequence): Likewise.
24673 (init_emit): Likewise.
24674 (init_emit_regs): Likewise.
24675 * except.c (init_eh_for_function): Likewise.
24676 (gen_eh_region): Likewise.
24677 (gen_eh_region_catch): Likewise.
24678 (gen_eh_landing_pad): Likewise.
24679 (add_call_site): Likewise.
24680 * function.c (add_frame_space): Likewise.
24681 (insert_temp_slot_address): Likewise.
24682 (assign_stack_temp_for_type): Likewise.
24683 (get_hard_reg_initial_val): Likewise.
24684 (allocate_struct_function): Likewise.
24685 (prepare_function_start): Likewise.
24686 (types_used_by_var_decl_insert): Likewise.
24687 * gengtype.c (variable_size_p): Remove function.
24688 (enum alloc_quantity): Remove enum.
24689 (write_typed_alloc_def): Remove function.
24690 (write_typed_struct_alloc_def): Likewise.
24691 (write_typed_typedef_alloc_def): Likewise.
24692 (write_typed_alloc_defns): Likewise.
24694 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24695 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24696 * ggc.h (ggc_alloc): new function.
24697 (ggc_cleared_alloc): Likewise.
24698 (ggc_vec_alloc): Template on type of vector element, and remove
24699 element size argument.
24700 (ggc_cleared_vec_alloc): Likewise.
24701 * gimple.c (gimple_build_omp_for): Adjust.
24702 (gimple_copy): Likewise.
24703 * ipa-cp.c (get_replacement_map): Likewise.
24704 (find_aggregate_values_for_callers_subset): Likewise.
24705 (known_aggs_to_agg_replacement_list): Likewise.
24706 * ipa-devirt.c (get_odr_type): Likewise.
24707 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24708 (read_agg_replacement_chain): Likewise.
24709 * loop-iv.c (get_simple_loop_desc): Likewise.
24710 * lto-cgraph.c (input_node_opt_summary): Likewise.
24711 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24712 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24713 (input_eh_region): Likewise.
24714 (input_eh_lp): Likewise.
24715 (input_cfg): Likewise.
24716 * optabs.c (set_optab_libfunc): Likewise.
24717 (init_tree_optimization_optabs): Likewise.
24718 (set_conv_libfunc): Likewise.
24719 * passes.c (do_per_function_toporder): Likewise.
24720 * rtl.h: Don't use variable_size gty attribute.
24721 * sese.c (if_region_set_false_region): Adjust.
24722 * stringpool.c (gt_pch_save_stringpool): Likewise.
24723 * target-globals.c (save_target_globals): Likewise.
24724 * toplev.c (general_init): Likewise.
24725 * trans-mem.c (record_tm_replacement): Likewise.
24726 (split_bb_make_tm_edge): Likewise.
24727 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24728 * tree-data-ref.h (lambda_vector_new): Likewise.
24729 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24730 * tree-iterator.c (tsi_link_before): Likewise.
24731 (tsi_link_after): Likewise.
24732 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24733 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24734 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24735 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24736 * tree-ssa.c (init_tree_ssa): Adjust.
24737 * tree-ssanames.c (set_range_info): Likewise.
24738 (get_ptr_info): Likewise.
24739 (duplicate_ssa_name_ptr_info): Likewise.
24740 (duplicate_ssa_name_range_info): Likewise.
24741 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24742 (unpack_ts_fixed_cst_value_fields): Likewise.
24743 * tree.c (build_fixed): Likewise.
24744 (build_real): Likewise.
24745 (build_string): Likewise.
24746 (decl_priority_info): Likewise.
24747 (decl_debug_expr_insert): Likewise.
24748 (decl_value_expr_insert): Likewise.
24749 (decl_debug_args_insert): Likewise.
24750 (type_hash_add): Likewise.
24751 (build_omp_clause): Likewise.
24752 * ubsan.c (decl_for_type_insert): Likewise.
24753 * varasm.c (get_unnamed_section): Likewise.
24754 (get_noswitch_section): Likewise.
24755 (get_section): Likewise.
24756 (get_block_for_section): Likewise.
24757 (create_block_symbol): Likewise.
24758 (build_constant_desc): Likewise.
24759 (create_constant_pool): Likewise.
24760 (force_const_mem): Likewise.
24761 (record_tm_clone_pair): Likewise.
24762 * varpool.c (varpool_create_empty_node): Likewise.
24764 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24766 * dwarf2out.c (tree_add_const_value_attribute): Call
24767 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24768 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24769 instead of ggc_internal_<x>alloc_stat.
24770 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24771 (ggc_realloc): Likewise.
24772 * ggc-none.c (ggc_internal_alloc): Likewise.
24773 (ggc_internal_cleared_alloc): Likewise.
24774 * ggc-page.c: Likewise.
24775 * ggc.h (ggc_internal_alloc_stat): Likewise.
24776 (ggc_internal_alloc): Remove macro.
24777 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24778 (ggc_internal_cleared_alloc): Remove macro.
24779 (GGC_RESIZEVEC): Adjust.
24780 (ggc_resizevar): Remove macro.
24781 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24782 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24783 (ggc_internal_vec_cleared_alloc): Remove macro.
24784 (ggc_alloc_atomic_stat): Drop _stat suffix.
24785 (ggc_alloc_atomic): Remove macro.
24786 (ggc_alloc_cleared_atomic): Remove macro.
24787 (ggc_alloc_string_stat): Drop _stat suffix.
24788 (ggc_alloc_string): Remove macro.
24789 (ggc_alloc_rtx_def_stat): Adjust.
24790 (ggc_alloc_tree_node_stat): Likewise.
24791 (ggc_alloc_cleared_tree_node_stat): Likewise.
24792 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24793 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24794 * gimple.c (gimple_build_omp_for): Likewise.
24795 (gimple_copy): Likewise.
24796 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24797 * toplev.c (realloc_for_line_map): Adjust.
24798 * tree-data-ref.h (lambda_vector_new): Likewise.
24799 * tree-phinodes.c (allocate_phi_node): Likewise.
24800 * tree.c (grow_tree_vec_stat): Likewise.
24801 * vec.h (va_gc::reserve): Adjust.
24803 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24805 * config/microblaze/microblaze.c (break_handler): New Declaration.
24806 (microblaze_break_function_p,microblaze_is_break_handler): New.
24807 (compute_frame_size): Use microblaze_break_function_p.
24808 Add the test of break_handler.
24809 (microblaze_function_prologue) : Add the test of variable
24810 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24811 (microblaze_function_epilogue) : Add the test of break_handler.
24812 (microblaze_globalize_label) : Add the test of break_handler.
24813 Check the name by BREAK_HANDLER_NAME.
24815 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24817 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24818 microblaze_is_break_handler test.
24819 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24820 Use SYMBOL_REF_DECL.
24822 * config/microblaze/microblaze-protos.h
24823 (microblaze_break_function_p,microblaze_is_break_handler):
24826 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24827 new MicroBlaze break_handler functions.
24829 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24831 * doc/extend.texi (Size of an asm): Move node text according
24832 to its @menu entry position.
24834 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24836 PR tree-optimization/61140
24837 PR tree-optimization/61150
24838 PR tree-optimization/61197
24839 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24841 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24843 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24845 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24847 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24848 __SIZEOF_INT128__ is defined.
24850 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24852 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24853 (rs6000_delegitimize_address): Use it.
24855 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24857 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24858 inplace argument. Store the new address in the original MEM when true.
24859 * emit-rtl.c (change_address_1): Likewise.
24860 (adjust_address_1, adjust_automodify_address_1, offset_address):
24861 Update accordingly.
24862 * rtl.h (plus_constant): Add an inplace argument.
24863 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24864 when true. Avoid generating (plus X (const_int 0)).
24865 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24866 in-place. Pass true to plus_constant.
24867 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24869 2014-05-16 Dehao Chen <dehao@google.com>
24871 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24873 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24876 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24878 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24880 2014-05-16 Dehao Chen <dehao@google.com>
24882 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24883 optimize_function_for_size_p.
24884 * regs.h (REG_FREQ_FROM_BB): Likewise.
24886 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24889 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24890 negt_reg_operand cases.
24891 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24893 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24895 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24897 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24900 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24903 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24905 * tree-cfg.c (dump_function_to_file): Dump the return type of
24906 functions, in a line to itself before the function body, mimicking
24907 the layout of a C function.
24909 2014-05-16 Dehao Chen <dehao@google.com>
24911 * cfghooks.c (make_forwarder_block): Use direct computation to
24912 get fall-through edge's count and frequency.
24914 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24916 * config/arc/arc.c (arc_init): Fix typo in error message.
24917 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24918 (split_stack_prologue_scratch_regno): Likewise.
24919 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24920 word from error message.
24922 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24924 * ira-costs.c: Fix typo in comment.
24926 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24928 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24930 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24932 * varpool.c (dump_varpool_node): Dump write-only flag.
24933 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24935 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24936 write-only variables.
24937 * ipa.c (process_references): New function.
24938 (set_readonly_bit): New function.
24939 (set_writeonly_bit): New function.
24940 (clear_addressable_bit): New function.
24941 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24942 fix handling of aliases.
24943 * cgraph.h (struct varpool_node): Add writeonly flag.
24945 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24947 PR rtl-optimization/60969
24948 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24949 Calculate costs for this case.
24951 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24953 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24954 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24956 2014-05-16 Richard Biener <rguenther@suse.de>
24958 PR tree-optimization/61194
24959 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24960 bool patterns ending in a COND_EXPR.
24962 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24964 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24968 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24969 where we were unable to cost an RTX.
24971 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24973 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24977 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24979 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24981 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24982 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24984 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24985 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24987 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24988 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24993 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24994 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24996 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24999 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25000 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25002 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25003 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25005 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25006 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25008 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25009 rotates and shifts.
25011 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25012 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25014 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25015 ZERO_EXTEND and SIGN_EXTEND better.
25017 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25018 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25020 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25021 logical operations.
25023 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25024 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25026 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25027 costs when costing loads and stores to memory.
25029 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25030 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25032 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25035 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25037 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25040 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25042 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25044 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25046 (aarch64_rtx_mult_cost): New.
25047 (aarch64_rtx_costs): Use it, refactor as appropriate.
25049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25052 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25053 emit instructions, return number of instructions which would
25055 (aarch64_add_constant): Update call to aarch64_build_constant.
25056 (aarch64_output_mi_thunk): Likewise.
25057 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25060 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25062 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25063 (TARGET_RTX_COSTS): Call it.
25065 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25067 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25068 (cortexa57_vector_cost): Likewise.
25069 (cortexa57_tunings): Use them.
25071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25073 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25074 (cpu_addrcost_table): Use it.
25075 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25076 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25079 2014-05-16 Richard Biener <rguenther@suse.de>
25081 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25082 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25083 (visit_phi): Ignore edges marked as not executable.
25084 (class cond_dom_walker): New.
25085 (cond_dom_walker::before_dom_children): Value-number
25086 control statements and mark successor edges as not
25087 executable if possible.
25088 (run_scc_vn): First walk all control statements in
25089 dominator order, marking edges as not executable.
25090 * tree-inline.c (copy_edges_for_bb): Be not confused
25091 about random edge flags.
25093 2014-05-16 Richard Biener <rguenther@suse.de>
25095 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25097 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25100 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25101 (__TM_simple_begin): Use it.
25102 (__TM_begin): Likewise.
25104 2014-05-15 Martin Jambor <mjambor@suse.cz>
25107 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25108 type_preserved flag when the indirect edge is polymorphic.
25110 2014-05-15 Martin Jambor <mjambor@suse.cz>
25112 PR tree-optimization/61090
25113 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25114 build_ref_for_model.
25116 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25118 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25119 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25121 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25123 PR tree-optimization/61158
25124 * fold-const.c (fold_binary_loc): If X is zero-extended and
25125 shiftc >= prec, make sure zerobits is all ones instead of
25126 invoking undefined behavior.
25128 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25130 * regcprop.h: New file.
25131 * regcprop.c (skip_debug_insn_p): New decl.
25132 (replace_oldest_value_reg): Check skip_debug_insn_p.
25133 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25134 * shrink-wrap.c: Include regcprop.h.
25135 (prepare_shrink_wrap): Call
25136 copyprop_hardreg_forward_bb_without_debug_insn.
25138 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25140 * shrink-wrap.h: Update comment.
25141 * shrink-wrap.c: Update comment.
25142 (next_block_for_reg): Rename to live_edge_for_reg.
25143 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25144 (move_insn_for_shrink_wrap): Split live_edge.
25145 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25147 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25149 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25151 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25152 * config/sparc/sparc.md (fptype_ut699): New attribute.
25153 (in_branch_delay): Return false if -mfix-ut699 is specified and
25154 fptype_ut699 is set to single.
25155 (truncdfsf2): Add fptype_ut699 attribute.
25156 (fix_truncdfsi2): Likewise.
25157 (floatsisf2): Change fptype attribute.
25158 (fix_truncsfsi2): Likewise.
25159 (negtf2_notv9): Delete.
25160 (negtf2_v9): Likewise.
25161 (negtf2_hq): New instruction.
25162 (negtf2): New instruction and splitter.
25163 (negdf2_notv9): Rewrite.
25164 (abstf2_notv9): Delete.
25165 (abstf2_hq_v9): Likewise.
25166 (abstf2_v9): Likewise.
25167 (abstf2_hq): New instruction.
25168 (abstf2): New instruction and splitter.
25169 (absdf2_notv9): Rewrite.
25171 2014-05-14 Cary Coutant <ccoutant@google.com>
25174 * opts.c (common_handle_option): Don't special-case "-g".
25175 (set_debug_level): Default to at least level 2 with "-g".
25177 2014-05-14 DJ Delorie <dj@redhat.com>
25179 * config/msp430/msp430.c (msp430_builtin): Add
25180 MSP430_BUILTIN_DELAY_CYCLES.
25181 (msp430_init_builtins): Register void __delay_cycles(long long).
25182 (msp430_builtin_decl): Add it.
25183 (cg_magic_constant): New.
25184 (msp430_expand_delay_cycles): New.
25185 (msp430_expand_builtin): Call it.
25186 (msp430_print_operand_raw): Change integer printing from "int" to
25188 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25189 (delay_cycles_start): New.
25190 (delay_cycles_end): New.
25191 (delay_cycles_32): New.
25192 (delay_cycles_32x): New.
25193 (delay_cycles_16): New.
25194 (delay_cycles_16x): New.
25195 (delay_cycles_2): New.
25196 (delay_cycles_1): New.
25197 * doc/extend.texi: Document __delay_cycles().
25199 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25201 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25202 length attribute computation.
25204 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25207 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25209 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25212 * config/sparc/sparc.md: Fix types of low and high in DI constant
25213 splitter. Use gen_int_mode in some other splitters.
25215 2014-05-14 Martin Jambor <mjambor@suse.cz>
25218 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25220 2014-05-14 James Norris <jnorris@codesourcery.com>
25222 * omp-low.c (expand_parallel_call): Remove shadow variable.
25223 (expand_omp_taskreg): Likewise.
25225 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25227 * common/config/i386/i386-common.c
25228 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25229 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25230 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25231 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25232 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25233 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25234 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25235 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25236 xsavecintrin.h, xsavesintrin.h.
25237 (x86_64-*-*): Ditto.
25238 * config/i386/clflushoptintrin.h: New.
25239 * config/i386/xsavecintrin.h: Ditto.
25240 * config/i386/xsavesintrin.h: Ditto.
25241 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25242 (bit_XSAVES): Ditto.
25243 (bit_XSAVES): Ditto.
25244 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25245 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25247 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25248 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25249 OPTION_MASK_ISA_XSAVES.
25250 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25251 -mxsavec, -mxsaves.
25252 (PTA_CLFLUSHOPT) Define.
25253 (PTA_XSAVEC): Ditto.
25254 (PTA_XSAVES): Ditto.
25255 (ix86_option_override_internal): Handle new options.
25256 (ix86_valid_target_attribute_inner_p): Ditto.
25257 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25258 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25259 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25260 (bdesc_special_args): Add __builtin_ia32_xsaves,
25261 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25262 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25263 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25264 (ix86_expand_builtin): Handle new builtins.
25265 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25266 (TARGET_CLFLUSHOPT_P): Ditto.
25267 (TARGET_XSAVEC): Ditto.
25268 (TARGET_XSAVEC_P): Ditto.
25269 (TARGET_XSAVES): Ditto.
25270 (TARGET_XSAVES_P): Ditto.
25271 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25272 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25273 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25275 (ANY_XRSTOR64): Ditto.
25277 (xrstor): Change into <xrstor>.
25278 (xrstor_rex64): Change into <xrstor>_rex64.
25279 (xrstor64): Change into <xrstor>64
25281 * config/i386/i386.opt (mclflushopt): New.
25284 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25286 * doc/invoke.texi: Document new options.
25288 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25290 PR rtl-optimization/60866
25291 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25292 Default it to -1. Pass it down to init_simplejump_data.
25293 (init_simplejump_data): New parameter old_seqno. Pass it down
25294 to get_seqno_for_a_jump.
25295 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25296 initializing new jump seqno as a last resort. Add comment.
25297 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25298 jump and pass it down to sel_init_new_insn.
25299 (sel_redirect_edge_and_branch_force): Likewise.
25301 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25303 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25304 shifted values to avoid build warning.
25306 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25308 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25309 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25310 (cfg_layout_merge_blocks): Likewise.
25311 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25313 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25315 PR rtl-optimization/60901
25316 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25317 bb predecessor belongs to the same scheduling region. Adjust comment.
25319 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25321 * doc/sourcebuild.texi: (dfp_hw): Document.
25322 (p8vector_hw): Likewise.
25323 (powerpc_eabi_ok): Likewise.
25324 (powerpc_elfv2): Likewise.
25325 (powerpc_htm_ok): Likewise.
25326 (ppc_recip_hw): Likewise.
25327 (vsx_hw): Likewise.
25329 2014-05-13 Cary Coutant <ccoutant@google.com>
25331 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25333 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25335 * gengtype-parse.c (require3): Eliminate in favor of...
25337 (require_template_declaration): Update to support optional single *
25340 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25341 (create_user_defined_type): Handle a single level of explicit
25342 pointerness within template arguments.
25343 (struct write_types_data): Add field "kind".
25344 (filter_type_name): Handle "*" character.
25345 (write_user_func_for_structure_ptr): Require a write_types_data
25346 rather than just a prefix string, so that we can look up the kind
25347 of the wtd and use it as an index into wrote_user_func_for_ptr,
25348 ensuring that such functions are written at most once. Support
25349 subclasses by invoking the marking function of the ultimate base class.
25350 (write_user_func_for_structure_body): Require a write_types_data
25351 rather than just a prefix string, so that we can pass this to
25352 write_user_func_for_structure_ptr.
25353 (write_func_for_structure): Likewise.
25354 (ggc_wtd): Add initializer of new "kind" field.
25355 (pch_wtd): Likewise.
25357 * gengtype.h (enum write_types_kinds): New.
25358 (struct type): Add field wrote_user_func_for_ptr to the "s"
25361 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25363 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25364 instead of const_binop.
25365 (fold_binary_loc): Likewise.
25367 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25369 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25370 calculation to match get_ref_base_and_extent.
25372 2014-05-13 Catherine Moore <clm@codesourcery.com>
25373 Sandra Loosemore <sandra@codesourcery.com>
25375 * configure.ac: Fix assembly for explicit JALR relocation check.
25376 * configure: Regenerate.
25378 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25380 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25381 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25382 Remove associated type declarations and initialisations.
25383 (arm_expand_neon_builtin): Likewise.
25384 (neon_emit_pair_result_insn): Delete.
25385 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25386 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25387 (neon_vzip<mode>): Likewise.
25388 (neon_vuzp<mode>): Likewise.
25390 2014-05-13 Richard Biener <rguenther@suse.de>
25393 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25394 it needs revisiting whether the call still may be tail-called.
25396 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25398 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25399 * rtl.h (block_symbol): Reduce number of fields to 2.
25400 (rtx_def): Add u2.symbol_ref_flags.
25401 (SYMBOL_REF_FLAGS): Use it.
25402 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25403 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25404 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25405 Lower index of SYMBOL_REF_DATA.
25406 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25407 Print SYMBOL_REF_FLAGS at the same time.
25408 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25410 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25412 * rtl.def (VAR_LOCATION): Remove "i" field.
25413 * rtl.h (rtx_def): Add u2.var_location_status.
25414 (PAT_VAR_LOCATION_STATUS): Use it.
25415 (gen_rtx_VAR_LOCATION): Declare.
25416 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25417 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25418 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25420 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25422 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25423 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25425 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25427 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25428 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25429 * rtl.h (rtx_def): Add insn_uid to u2 field.
25430 (RTX_FLAG_CHECK8): Delete in favor of...
25431 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25432 (INSN_DELETED_P): Update accordingly.
25433 (INSN_UID): Use u2.insn_uid.
25434 (INSN_CHAIN_CODE_P): Define.
25435 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25436 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25437 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25438 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25439 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25440 indices accordingly.
25441 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25442 Update indices for insn-chain rtxes.
25443 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25444 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25445 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25446 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25447 * combine.c (try_combine): Likewise.
25448 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25450 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25452 * rtl.def (REG): Remove middle field.
25453 * rtl.h (rtx_def): Add orignal_regno to u2.
25454 (ORIGINAL_REGNO): Use it instead of field 1.
25455 (REG_ATTRS): Lower field index accordingly.
25456 * gengtype.c (adjust_field_rtx_def): Remove handling of
25457 ORIGINAL_REGNO. Move REG_ATTRS index down.
25458 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25459 code that prints the REGNO.
25461 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25463 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25466 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25468 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25470 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25472 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25473 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25475 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25477 * config/aarch64/aarch64-protos.h
25478 (aarch64_hard_regno_caller_save_mode): New prototype.
25479 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25481 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25483 2014-05-13 Christian Bruel <christian.bruel@st.com>
25485 * target.def (mode_switching): New hook vector.
25486 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25487 (mode_exit, modepriority_to_mode): Likewise.
25488 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25489 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25490 * target.h: Include tm.h and hard-reg-set.h.
25491 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25492 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25493 * doc/tm.texi Regenerate.
25494 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25495 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25496 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25497 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25498 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25499 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25500 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25501 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25502 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25503 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25504 (ix86_emit_mode_set): Hookify.
25505 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25507 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25508 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25509 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25510 (epiphany_mode_priority_to_mode): Remove declaration.
25511 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25512 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25513 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25515 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25516 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25517 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25519 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25522 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25523 is const0_rtx, return immediately. Don't test count == 0 when
25526 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25528 * Makefile.in: add shrink-wrap.o.
25529 * config/i386/i386.c: include "shrink-wrap.h"
25530 * function.c: Likewise.
25531 (requires_stack_frame_p, next_block_for_reg,
25532 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25533 dup_block_and_redirect): Move to shrink-wrap.c
25534 (thread_prologue_and_epilogue_insns): Extract three code segments
25535 as functions in shrink-wrap.c
25536 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25538 * shrink-wrap.c: New file.
25539 * shrink-wrap.h: New file.
25541 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25543 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25544 reference to Solaris.
25546 2014-05-12 Mike Stump <mikestump@comcast.net>
25549 * genattrtab.c (filename): Add.
25550 (convert_set_attr_alternative): Improve error message.
25551 (check_defs): Restore read_md_filename for error messages.
25552 (gen_insn): Save filename.
25554 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25556 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25557 -fno-local-ivars and -fivar-visibility.
25558 * c-family/c.opt: Make -Wshadow also implicitly enable
25561 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25563 * doc/tm.texi: Remove reference to deleted macro.
25564 * doc/tm.texi.in: Likewise.
25566 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25569 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25572 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25575 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25576 * config/arm/aout.h (License): Same.
25577 * config/arm/bpabi.h (License): Same.
25578 * config/arm/elf.h (License): Same.
25579 * config/arm/linux-elf.h (License): Same.
25580 * config/arm/linux-gas.h (License): Same.
25581 * config/arm/netbsd-elf.h (License): Same.
25582 * config/arm/uclinux-eabi.h (License): Same.
25583 * config/arm/uclinux-elf.h (License): Same.
25584 * config/arm/vxworks.h (License): Same.
25586 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25588 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25589 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25590 number of operands to 3.
25591 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25592 * tree-nested.c (convert_nonlocal_omp_clauses,
25593 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25594 * gimplify.c (gimplify_scan_omp_clauses): Handle
25595 OMP_CLAUSE_LINEAR_STMT.
25596 * omp-low.c (lower_rec_input_clauses): Fix typo.
25597 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25598 cast between Fortran boolean_type_node and C _Bool if
25601 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25603 PR tree-optimization/61136
25604 * wide-int.h (multiple_of_p): Define a version that doesn't return
25606 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25607 integer_zerop/const_binop pair.
25608 (multiple_of_p): Likewise, converting both operands to widest_int
25611 2014-05-09 Teresa Johnson <tejohnson@google.com>
25613 * cgraphunit.c (analyze_functions): Use correct dump file.
25615 2014-05-09 Florian Weimer <fweimer@redhat.com>
25617 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25619 (stack_protect_return_slot_p): New function.
25620 (expand_used_vars): Call stack_protect_decl_p and
25621 stack_protect_return_slot_p for -fstack-protector-strong.
25623 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25624 Andrew Haley <aph@redhat.com>
25625 Richard Sandiford <rdsandiford@googlemail.com>
25627 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25630 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25632 PR middle-end/61111
25633 * fold-const.c (fold_binary_loc): Changed width of mask.
25635 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25637 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25638 unsigned int initializers for regno_in, regno_out.
25640 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25643 * config/avr/avr.md (cc): Add new attribute set_vzn.
25644 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25645 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25646 with INC, DEC or NEG.
25647 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25648 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25649 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25651 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25654 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25656 * wide-int.cc (UTItype): Define.
25657 (UDWtype): Define for appropriate W_TYPE_SIZE.
25659 2014-05-09 Richard Biener <rguenther@suse.de>
25661 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25662 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25663 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25664 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25665 ssa_propagate): Adjust.
25667 2014-05-08 Jeff Law <law@redhat.com>
25669 PR tree-optimization/61009
25670 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25671 tri-state rather than a boolean. When a block is too big to
25672 thread through, inform caller via negative return value.
25673 (thread_across_edge): If a block was too big for normal threading,
25674 then it's too big for a joiner too, so remove temporary equivalences
25675 and return immediately.
25677 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25678 Matthias Klose <doko@ubuntu.com>
25681 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25683 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25686 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25688 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25691 * config/alpha/alpha.c: Include gimple-iterator.h.
25692 (alpha_gimple_fold_builtin): New function. Move
25693 ALPHA_BUILTIN_UMULH folding from ...
25694 (alpha_fold_builtin): ... here.
25695 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25697 2014-05-08 Wei Mi <wmi@google.com>
25700 * config/i386/i386.c (ix86_compute_frame_layout): Update
25701 preferred_stack_boundary for call, expanded from tls descriptor.
25702 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25703 to depend on SP register.
25704 (*tls_local_dynamic_base_32_gnu): Ditto.
25705 (*tls_local_dynamic_32_once): Ditto.
25706 (tls_global_dynamic_64_<mode>): Set
25707 ix86_tls_descriptor_calls_expanded_in_cfun.
25708 (tls_local_dynamic_base_64_<mode>): Ditto.
25709 (tls_global_dynamic_32): Set
25710 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25711 to depend on SP register.
25712 (tls_local_dynamic_base_32): Ditto.
25714 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25716 * config/arm/arm_neon.h: Update comment.
25717 * config/arm/neon-docgen.ml: Delete.
25718 * config/arm/neon-gen.ml: Delete.
25719 * doc/arm-neon-intrinsics.texi: Update comment.
25721 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25723 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25725 (vand, vorr, veor, vorn, vbic): Remove.
25726 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25728 (neon_vsub_unspec): Likewise.
25729 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25731 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25733 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25734 (vadd_s16): Likewise.
25735 (vadd_s32): Likewise.
25736 (vadd_f32): Likewise.
25737 (vadd_u8): Likewise.
25738 (vadd_u16): Likewise.
25739 (vadd_u32): Likewise.
25740 (vadd_s64): Likewise.
25741 (vadd_u64): Likewise.
25742 (vaddq_s8): Likewise.
25743 (vaddq_s16): Likewise.
25744 (vaddq_s32): Likewise.
25745 (vaddq_s64): Likewise.
25746 (vaddq_f32): Likewise.
25747 (vaddq_u8): Likewise.
25748 (vaddq_u16): Likewise.
25749 (vaddq_u32): Likewise.
25750 (vaddq_u64): Likewise.
25751 (vmul_s8): Likewise.
25752 (vmul_s16): Likewise.
25753 (vmul_s32): Likewise.
25754 (vmul_f32): Likewise.
25755 (vmul_u8): Likewise.
25756 (vmul_u16): Likewise.
25757 (vmul_u32): Likewise.
25758 (vmul_p8): Likewise.
25759 (vmulq_s8): Likewise.
25760 (vmulq_s16): Likewise.
25761 (vmulq_s32): Likewise.
25762 (vmulq_f32): Likewise.
25763 (vmulq_u8): Likewise.
25764 (vmulq_u16): Likewise.
25765 (vmulq_u32): Likewise.
25766 (vsub_s8): Likewise.
25767 (vsub_s16): Likewise.
25768 (vsub_s32): Likewise.
25769 (vsub_f32): Likewise.
25770 (vsub_u8): Likewise.
25771 (vsub_u16): Likewise.
25772 (vsub_u32): Likewise.
25773 (vsub_s64): Likewise.
25774 (vsub_u64): Likewise.
25775 (vsubq_s8): Likewise.
25776 (vsubq_s16): Likewise.
25777 (vsubq_s32): Likewise.
25778 (vsubq_s64): Likewise.
25779 (vsubq_f32): Likewise.
25780 (vsubq_u8): Likewise.
25781 (vsubq_u16): Likewise.
25782 (vsubq_u32): Likewise.
25783 (vsubq_u64): Likewise.
25784 (vand_s8): Likewise.
25785 (vand_s16): Likewise.
25786 (vand_s32): Likewise.
25787 (vand_u8): Likewise.
25788 (vand_u16): Likewise.
25789 (vand_u32): Likewise.
25790 (vand_s64): Likewise.
25791 (vand_u64): Likewise.
25792 (vandq_s8): Likewise.
25793 (vandq_s16): Likewise.
25794 (vandq_s32): Likewise.
25795 (vandq_s64): Likewise.
25796 (vandq_u8): Likewise.
25797 (vandq_u16): Likewise.
25798 (vandq_u32): Likewise.
25799 (vandq_u64): Likewise.
25800 (vorr_s8): Likewise.
25801 (vorr_s16): Likewise.
25802 (vorr_s32): Likewise.
25803 (vorr_u8): Likewise.
25804 (vorr_u16): Likewise.
25805 (vorr_u32): Likewise.
25806 (vorr_s64): Likewise.
25807 (vorr_u64): Likewise.
25808 (vorrq_s8): Likewise.
25809 (vorrq_s16): Likewise.
25810 (vorrq_s32): Likewise.
25811 (vorrq_s64): Likewise.
25812 (vorrq_u8): Likewise.
25813 (vorrq_u16): Likewise.
25814 (vorrq_u32): Likewise.
25815 (vorrq_u64): Likewise.
25816 (veor_s8): Likewise.
25817 (veor_s16): Likewise.
25818 (veor_s32): Likewise.
25819 (veor_u8): Likewise.
25820 (veor_u16): Likewise.
25821 (veor_u32): Likewise.
25822 (veor_s64): Likewise.
25823 (veor_u64): Likewise.
25824 (veorq_s8): Likewise.
25825 (veorq_s16): Likewise.
25826 (veorq_s32): Likewise.
25827 (veorq_s64): Likewise.
25828 (veorq_u8): Likewise.
25829 (veorq_u16): Likewise.
25830 (veorq_u32): Likewise.
25831 (veorq_u64): Likewise.
25832 (vbic_s8): Likewise.
25833 (vbic_s16): Likewise.
25834 (vbic_s32): Likewise.
25835 (vbic_u8): Likewise.
25836 (vbic_u16): Likewise.
25837 (vbic_u32): Likewise.
25838 (vbic_s64): Likewise.
25839 (vbic_u64): Likewise.
25840 (vbicq_s8): Likewise.
25841 (vbicq_s16): Likewise.
25842 (vbicq_s32): Likewise.
25843 (vbicq_s64): Likewise.
25844 (vbicq_u8): Likewise.
25845 (vbicq_u16): Likewise.
25846 (vbicq_u32): Likewise.
25847 (vbicq_u64): Likewise.
25848 (vorn_s8): Likewise.
25849 (vorn_s16): Likewise.
25850 (vorn_s32): Likewise.
25851 (vorn_u8): Likewise.
25852 (vorn_u16): Likewise.
25853 (vorn_u32): Likewise.
25854 (vorn_s64): Likewise.
25855 (vorn_u64): Likewise.
25856 (vornq_s8): Likewise.
25857 (vornq_s16): Likewise.
25858 (vornq_s32): Likewise.
25859 (vornq_s64): Likewise.
25860 (vornq_u8): Likewise.
25861 (vornq_u16): Likewise.
25862 (vornq_u32): Likewise.
25863 (vornq_u64): Likewise.
25865 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25867 * wide-int.cc (UTItype): Define.
25868 (UDWtype): Define for appropriate W_TYPE_SIZE.
25870 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25872 PR tree-optimization/59100
25873 * tree-ssa-phiopt.c: Include tree-inline.h.
25874 (neutral_element_p, absorbing_element_p): New functions.
25875 (value_replacement): Handle conditional binary operations with a
25876 neutral or absorbing element.
25878 2014-05-08 Richard Biener <rguenther@suse.de>
25880 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25881 folding the expression.
25882 (valueize_expr): Remove.
25883 (visit_reference_op_load): Do not valueize the result of
25885 (simplify_binary_expression): Likewise.
25886 (simplify_unary_expression): Likewise.
25888 2014-05-08 Richard Biener <rguenther@suse.de>
25890 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25891 looking at TYPE_ARG_TYPES.
25893 2014-05-08 Richard Biener <rguenther@suse.de>
25895 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25896 pointer propagation special-case.
25898 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25900 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25901 core part of address expressions.
25903 2014-05-08 Alan Modra <amodra@gmail.com>
25906 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25907 loads and stores when -mno-strict-align at any alignment.
25908 (expand_block_clear): Similarly. Also correct calculation of
25911 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25913 PR middle-end/39246
25914 * tree-complex.c (expand_complex_move): Keep line info when expanding
25916 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25917 of complex expression. Use new argument to display correct location
25918 for values coming from phi statement.
25919 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25920 (warn_uninitialized_phi): Pass location of phi argument to
25922 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25923 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25925 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25927 * config/rs6000/predicates.md (indexed_address_mem): New.
25928 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25929 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25930 fpstore_ux, fpstore_u.
25931 (sign_extend, indexed, update): New.
25932 (cell_micro): Adjust.
25933 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25934 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25935 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25936 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25937 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25938 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25939 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25940 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25941 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25942 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25943 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25944 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25945 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25946 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25947 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25949 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25950 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25951 *vsx_extract_<mode>_store): Adjust.
25952 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25953 is_cracked_insn, insn_must_be_first_in_group,
25954 insn_must_be_last_in_group): Adjust.
25956 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25958 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25959 ppc440-fpstore): Adjust.
25960 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25961 ppc476-fpstore): Adjust.
25962 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25963 ppc601-fpstore): Adjust.
25964 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25966 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25968 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25969 ppc7450-fpstore): Adjust.
25970 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25971 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25972 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25974 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25975 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25976 cell-fpstore, cell-fpstore-update): Adjust.
25977 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25978 ppce300c3_store, ppce300c3_fpstore): Adjust.
25979 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25980 e500mc_fpstore): Adjust.
25981 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25982 e500mc64_store, e500mc64_fpstore): Adjust.
25983 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25984 e5500_fpstore): Adjust.
25985 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25986 e6500_fpstore): Adjust.
25987 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25989 * config/rs6000/power4.md (power4-load, power4-load-ext,
25990 power4-load-ext-update, power4-load-ext-update-indexed,
25991 power4-load-update-indexed, power4-load-update, power4-fpload,
25992 power4-fpload-update, power4-store, power4-store-update,
25993 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25995 * config/rs6000/power5.md (power5-load, power5-load-ext,
25996 power5-load-ext-update, power5-load-ext-update-indexed,
25997 power5-load-update-indexed, power5-load-update, power5-fpload,
25998 power5-fpload-update, power5-store, power5-store-update,
25999 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26001 * config/rs6000/power6.md (power6-load, power6-load-ext,
26002 power6-load-update, power6-load-update-indexed,
26003 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26004 power6-fpload-update, power6-store, power6-store-update,
26005 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26007 * config/rs6000/power7.md (power7-load, power7-load-ext,
26008 power7-load-update, power7-load-update-indexed,
26009 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26010 power7-fpload-update, power7-store, power7-store-update,
26011 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26013 * config/rs6000/power8.md (power8-load, power8-load-update,
26014 power8-load-ext, power8-load-ext-update, power8-fpload,
26015 power8-fpload-update, power8-store, power8-store-update-indexed,
26016 power8-fpstore, power8-fpstore-update): Adjust.
26017 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26019 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26020 titan_lsu_store, titan_lsu_fpstore): Adjust.
26021 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26023 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26026 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26027 unrolled byte insns. Emit address increments after move insns.
26029 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26031 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26032 const_gimple, rather than a gimple.
26033 (gimple_call_builtin_p): Likewise, for the three variants.
26035 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26036 (gimple_call_builtin_p): Likewise, for the three variants.
26038 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26040 PR tree-optimization/61095
26041 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26043 2014-05-07 Richard Biener <rguenther@suse.de>
26045 PR tree-optimization/61034
26046 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26047 (maybe_skip_until): Use translate to take into account
26048 lattices when trying to do disambiguations.
26049 (get_continuation_for_phi_1): Likewise.
26050 (get_continuation_for_phi): Adjust for added translate arguments.
26051 (walk_non_aliased_vuses): Likewise.
26052 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26053 (walk_non_aliased_vuses): Likewise.
26054 (call_may_clobber_ref_p_1): Declare.
26055 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26056 calls. Stop early if we are only supposed to disambiguate.
26057 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26059 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26061 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26062 Emit an error when the function has arguments.
26064 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26066 * cfgloop.h (unswitch_loops): Remove.
26067 * doc/passes.texi: Remove references to loop-unswitch.c
26068 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26070 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26072 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26073 check for loads group of length 3.
26074 (vect_permute_load_chain): New permutations for loads group of
26076 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26077 of vec_perm_shuffle for the new permutations.
26079 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26081 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26082 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26083 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26084 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26085 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26086 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26087 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26088 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26090 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26092 * loop-unswitch.c: Delete.
26094 2014-05-07 Richard Biener <rguenther@suse.de>
26096 * config.gcc: Always set need_64bit_hwint to yes.
26098 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26100 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26101 of using optimize_size.
26103 2014-05-06 Mike Stump <mikestump@comcast.net>
26105 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26107 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26109 * config/i386/sse.md (*mov<mode>_internal)
26110 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26111 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26112 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26113 (*<code><mode>3, *andnot<mode>3<mask_name>)
26114 (<mask_codefor><code><mode>3<mask_name>): Only consider
26115 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26117 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26120 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26122 * lra-constraints.c (valid_address_p): Move earlier in file.
26123 Add a constraint argument to the address_info version.
26124 (satisfies_memory_constraint_p): New function.
26125 (satisfies_address_constraint_p): Likewise.
26126 (process_alt_operands, curr_insn_transform): Use them.
26127 (process_address): Pass the constraint to valid_address_p when
26128 checking address operands.
26130 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26132 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26133 to their respective blocks. Fix inadvertent use of "node".
26135 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26137 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26139 (init_emit_once): ...here.
26140 * rtl.h (init_derived_machine_modes): Declare.
26141 * toplev.c (do_compile): Call it even if no_backend.
26143 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26144 Mike Stump <mikestump@comcast.net>
26145 Richard Sandiford <rdsandiford@googlemail.com>
26146 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26148 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26149 (rtx_equal_for_memref_p): Update comment.
26150 (adjust_offset_for_component_ref): Use wide-int interfaces.
26151 * builtins.c (get_object_alignment_2): Likewise.
26152 (c_readstr): Likewise.
26153 (target_char_cast): Add comment.
26154 (determine_block_size): Use wide-int interfaces.
26155 (expand_builtin_signbit): Likewise.
26156 (fold_builtin_int_roundingfn): Likewise.
26157 (fold_builtin_bitop): Likewise.
26158 (fold_builtin_bswap): Likewise.
26159 (fold_builtin_logarithm): Use signop.
26160 (fold_builtin_pow): Likewise.
26161 (fold_builtin_memory_op): Use wide-int interfaces.
26162 (fold_builtin_object_size): Likewise.
26163 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26164 nb_iterations_estimate.
26165 (record_niter_bound): Use wide-int interfaces.
26166 (get_estimated_loop_iterations_int): Likewise.
26167 (get_estimated_loop_iterations): Likewise.
26168 (get_max_loop_iterations): Likewise.
26169 * cfgloop.h: Include wide-int.h.
26170 (struct nb_iter_bound): Change bound to widest_int.
26171 (struct loop): Change nb_iterations_upper_bound and
26172 nb_iterations_estimate to widest_int.
26173 (record_niter_bound): Switch to use widest_int.
26174 (get_estimated_loop_iterations): Likewise.
26175 (get_max_loop_iterations): Likewise.
26176 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26177 update for wide-int.
26178 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26179 * combine.c (try_combine): Likewise.
26180 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26181 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26183 (aarch64_float_const_representable_p): Likewise.
26184 * config/arc/arc.c: Include wide-int.h.
26185 (arc_can_use_doloop_p): Use wide-int interfaces.
26186 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26187 (vfp3_const_double_index): Likewise.
26188 * config/avr/avr.c (avr_out_round): Likewise.
26189 (avr_fold_builtin): Likewise.
26190 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26191 (bfin_can_use_doloop_p): Likewise.
26192 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26193 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26194 * config/i386/i386.c: Include wide-int.h.
26195 (ix86_data_alignment): Use wide-int interfaces.
26196 (ix86_local_alignment): Likewise.
26197 (ix86_emit_swsqrtsf): Update real_from_integer.
26198 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26199 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26200 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26201 (zero_constant): Likewise.
26202 (input_operand): Likewise.
26203 (splat_input_operand): Likewise.
26204 (non_logical_cint_operand): Change const_double to const_wide_int.
26205 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26206 (easy_altivec_constant): Remove comment.
26207 (paired_expand_vector_init): Use CONSTANT_P.
26208 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26209 (rs6000_emit_move): Update checks.
26210 (rs6000_aggregate_candidate): Use wide-int interfaces.
26211 (rs6000_expand_ternop_builtin): Likewise.
26212 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26213 (rs6000_assemble_integer): Likewise.
26214 (rs6000_hash_constant): Likewise.
26215 (output_toc): Likewise.
26216 (rs6000_rtx_costs): Likewise.
26217 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26218 * config/rs6000/rs6000-c.c: Include wide-int.h.
26219 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26220 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26221 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26222 Handle CONST_WIDE_INT.
26223 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26224 Use tree_fits_uhwi_p.
26225 * config/sparc/sparc.c: Include wide-int.h.
26226 (sparc_fold_builtin): Use wide-int interfaces.
26227 * config/vax/vax.c: Include wide-int.h.
26228 (vax_float_literal): Use real_from_integer.
26229 * coretypes.h (struct hwivec_def): New.
26231 (const_hwivec): New.
26232 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26233 (equiv_constant): Handle CONST_WIDE_INT.
26234 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26235 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26236 * dbxout.c (stabstr_U): Use wide-int interfaces.
26237 (dbxout_type): Update to use cst_fits_shwi_p.
26238 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26239 (TARGET_SUPPORTS_WIDE_INT): Add default.
26240 * dfp.c: Include wide-int.h.
26241 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26242 decimal_real_to_integer.
26243 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26244 decimal_real_to_integer.
26245 * doc/generic.texi (Constant expressions): Update for wide_int.
26246 * doc/rtl.texi (const_double): Likewise.
26247 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26248 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26249 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26250 (REAL_VALUE_FROM_INT): Remove.
26251 (TARGET_SUPPORTS_WIDE_INT): New.
26252 * doc/tm.texi: Regenerate.
26253 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26254 * double-int.h: Include wide-int.h.
26255 (struct wi::int_traits): New.
26256 * dwarf2out.c (get_full_len): New.
26257 (dw_val_equal_p): Add case dw_val_class_wide_int.
26258 (size_of_loc_descr): Likewise.
26259 (output_loc_operands): Likewise.
26260 (insert_double): Remove.
26261 (insert_wide_int): New.
26262 (add_AT_wide): New.
26263 (print_die): Add case dw_val_class_wide_int.
26264 (attr_checksum): Likewise.
26265 (attr_checksum_ordered): Likewise.
26266 (same_dw_val_p): Likewise.
26267 (size_of_die): Likewise.
26268 (value_format): Likewise.
26269 (output_die): Likewise.
26270 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26272 (clz_loc_descriptor): Use wide-int interfaces.
26273 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26274 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26275 (round_up_to_align): Use wide-int interfaces.
26276 (field_byte_offset): Likewise.
26277 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26278 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26279 CONST_DOUBLE handling. Use wide-int interfaces.
26280 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26281 (gen_enumeration_type_die): Use add_AT_wide.
26282 (hash_loc_operands): Add case dw_val_class_wide_int.
26283 (compare_loc_operands): Likewise.
26284 * dwarf2out.h: Include wide-int.h.
26285 (wide_int_ptr): New.
26286 (enum dw_val_class): Add dw_val_class_wide_int.
26287 (struct dw_val_struct): Add val_wide.
26288 * emit-rtl.c (const_wide_int_htab): New.
26289 (const_wide_int_htab_hash): New.
26290 (const_wide_int_htab_eq): New.
26291 (lookup_const_wide_int): New.
26292 (const_double_htab_hash): Use wide-int interfaces.
26293 (const_double_htab_eq): Likewise.
26294 (rtx_to_double_int): Conditionally compile for wide-int.
26295 (immed_double_int_const): Rename to immed_wide_int_const and
26296 update for wide-int.
26297 (immed_double_const): Conditionally compile for wide-int.
26298 (init_emit_once): Use wide-int interfaces.
26299 * explow.c (plus_constant): Likewise.
26300 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26301 (lshift_value): Use wide-int interfaces.
26302 (expand_mult): Likewise.
26303 (choose_multiplier): Likewise.
26304 (expand_smod_pow2): Likewise.
26305 (make_tree): Likewise.
26306 * expr.c (convert_modes): Consolidate handling of constants.
26307 Use wide-int interfaces.
26308 (emit_group_load_1): Add note.
26309 (store_expr): Update comment.
26310 (get_inner_reference): Use wide-int interfaces.
26311 (expand_constructor): Update comment.
26312 (expand_expr_real_2): Use wide-int interfaces.
26313 (expand_expr_real_1): Likewise.
26314 (reduce_to_bit_field_precision): Likewise.
26315 (const_vector_from_tree): Likewise.
26316 * final.c: Include wide-int-print.h.
26317 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26318 * fixed-value.c: Include wide-int.h.
26319 (fixed_from_string): Use wide-int interfaces.
26320 (fixed_to_decimal): Likewise.
26321 (fixed_convert_from_real): Likewise.
26322 (real_convert_from_fixed): Likewise.
26323 * fold-const.h (mem_ref_offset): Return an offset_int.
26324 (div_if_zero_remainder): Remove code parameter.
26325 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26326 Use wide-int interfaces.
26327 (may_negate_without_overflow_p): Use wide-int interfaces.
26328 (negate_expr_p): Likewise.
26329 (fold_negate_expr): Likewise.
26330 (int_const_binop_1): Likewise.
26331 (const_binop): Likewise.
26332 (fold_convert_const_int_from_int): Likewise.
26333 (fold_convert_const_int_from_real): Likewise.
26334 (fold_convert_const_int_from_fixed): Likewise.
26335 (fold_convert_const_fixed_from_int): Likewise.
26336 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26337 (sign_bit_p): Use wide-int interfaces.
26338 (make_range_step): Likewise.
26339 (build_range_check): Likewise. Pass an integer of the correct type
26340 instead of using integer_one_node.
26341 (range_predecessor): Pass an integer of the correct type instead
26342 of using integer_one_node.
26343 (range_successor): Likewise.
26344 (merge_ranges): Likewise.
26345 (unextend): Use wide-int interfaces.
26346 (extract_muldiv_1): Likewise.
26347 (fold_div_compare): Likewise.
26348 (fold_single_bit_test): Likewise.
26349 (fold_sign_changed_comparison): Likewise.
26350 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26351 (fold_plusminus_mult_expr): Use wide-int interfaces.
26352 (native_encode_int): Likewise.
26353 (native_interpret_int): Likewise.
26354 (fold_unary_loc): Likewise.
26355 (pointer_may_wrap_p): Likewise.
26356 (size_low_cst): Likewise.
26357 (mask_with_tz): Likewise.
26358 (fold_binary_loc): Likewise.
26359 (fold_ternary_loc): Likewise.
26360 (multiple_of_p): Likewise.
26361 (tree_call_nonnegative_warnv_p): Update calls to
26362 tree_int_cst_min_precision and real_from_integer.
26363 (fold_negate_const): Use wide-int interfaces.
26364 (fold_abs_const): Likewise.
26365 (fold_relational_const): Use tree_int_cst_lt.
26366 (round_up_loc): Use wide-int interfaces.
26367 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26368 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26369 * gengtype.c: Remove include of double-int.h.
26370 (do_typedef): Use wide-int interfaces.
26371 (open_base_files): Add wide-int.h.
26372 (main): Add offset_int and widest_int typedefs.
26373 * gengtype-lex.l: Handle "^".
26374 (CXX_KEYWORD): Add "static".
26375 * gengtype-parse.c (require3): New.
26376 (require_template_declaration): Handle constant template arguments
26377 and nested templates.
26378 * gengtype-state.c: Don't include "double-int.h".
26379 * genpreds.c (write_one_predicate_function): Update comment.
26380 (write_tm_constrs_h): Add check for hval and lval use in
26382 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26383 (add_to_sequence): Likewise.
26384 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26385 and const_double_operand.
26386 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26388 * gimple-fold.c (get_base_constructor): Likewise.
26389 (fold_array_ctor_reference): Likewise.
26390 (fold_nonarray_ctor_reference): Likewise.
26391 (fold_const_aggregate_ref_1): Likewise.
26392 (gimple_val_nonnegative_real_p): Likewise.
26393 (gimple_fold_indirect_ref): Likewise.
26394 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26395 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26396 (struct slsr_cand_d): Change index to be widest_int.
26397 (struct incr_info_d): Change incr to be widest_int.
26398 (alloc_cand_and_find_basis): Use wide-int interfaces.
26399 (slsr_process_phi): Likewise.
26400 (backtrace_base_for_ref): Likewise. Return a widest_int.
26401 (restructure_reference): Take a widest_int instead of a double_int.
26402 (slsr_process_ref): Use wide-int interfaces.
26403 (create_mul_ssa_cand): Likewise.
26404 (create_mul_imm_cand): Likewise.
26405 (create_add_ssa_cand): Likewise.
26406 (create_add_imm_cand): Take a widest_int instead of a double_int.
26407 (slsr_process_add): Use wide-int interfaces.
26408 (slsr_process_cast): Likewise.
26409 (slsr_process_copy): Likewise.
26410 (dump_candidate): Likewise.
26411 (dump_incr_vec): Likewise.
26412 (replace_ref): Likewise.
26413 (cand_increment): Likewise. Return a widest_int.
26414 (cand_abs_increment): Likewise.
26415 (replace_mult_candidate): Take a widest_int instead of a double_int.
26416 (replace_unconditional_candidate): Use wide-int interfaces.
26417 (incr_vec_index): Take a widest_int instead of a double_int.
26418 (create_add_on_incoming_edge): Likewise.
26419 (create_phi_basis): Use wide-int interfaces.
26420 (replace_conditional_candidate): Likewise.
26421 (record_increment): Take a widest_int instead of a double_int.
26422 (record_phi_increments): Use wide-int interfaces.
26423 (phi_incr_cost): Take a widest_int instead of a double_int.
26424 (lowest_cost_path): Likewise.
26425 (total_savings): Likewise.
26426 (analyze_increments): Use wide-int interfaces.
26427 (ncd_with_phi): Take a widest_int instead of a double_int.
26428 (ncd_of_cand_and_phis): Likewise.
26429 (nearest_common_dominator_for_cands): Likewise.
26430 (insert_initializers): Use wide-int interfaces.
26431 (all_phi_incrs_profitable): Likewise.
26432 (replace_one_candidate): Likewise.
26433 (replace_profitable_candidates): Likewise.
26434 * godump.c: Include wide-int-print.h.
26435 (go_output_typedef): Use wide-int interfaces.
26436 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26437 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26438 (build_loop_iteration_domains): Likewise.
26439 * hooks.h: Include wide-int.h rather than double-int.h.
26440 (hook_bool_dint_dint_uint_bool_true): Delete.
26441 (hook_bool_wint_wint_uint_bool_true): Declare.
26442 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26443 (hook_bool_wint_wint_uint_bool_true): New.
26444 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26446 (ubsan_expand_si_overflow_mul_check): Likewise.
26447 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26448 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26449 (get_ancestor_addr_info): Likewise.
26450 (ipa_modify_call_arguments): Likewise.
26451 * loop-doloop.c (doloop_modify): Likewise.
26452 (doloop_optimize): Likewise.
26453 * loop-iv.c (iv_number_of_iterations): Likewise.
26454 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26455 (unroll_loop_constant_iterations): Likewise.
26456 (decide_unroll_runtime_iterations): Likewise.
26457 (unroll_loop_runtime_iterations): Likewise.
26458 (decide_peel_simple): Likewise.
26459 (decide_unroll_stupid): Likewise.
26460 * lto-streamer-in.c (streamer_read_wi): Add.
26461 (input_cfg): Use wide-int interfaces.
26462 (lto_input_tree_1): Likewise.
26463 * lto-streamer-out.c (streamer_write_wi): Add.
26464 (hash_tree): Use wide-int interfaces.
26465 (output_cfg): Likewise.
26466 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26467 (GTFILES): Add wide-int.h and signop.h.
26468 (TAGS): Look for .cc files too.
26469 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26470 * optabs.c (expand_subword_shift): Likewise.
26471 (expand_doubleword_shift): Likewise.
26472 (expand_absneg_bit): Likewise.
26473 (expand_copysign_absneg): Likewise.
26474 (expand_copysign_bit): Likewise.
26475 * postreload.c (reload_cse_simplify_set): Likewise.
26476 * predict.c (predict_iv_comparison): Likewise.
26477 * pretty-print.h: Include wide-int-print.h.
26479 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26480 * print-tree.c: Include wide-int-print.h.
26481 (print_node_brief): Use wide-int interfaces.
26482 (print_node): Likewise.
26483 * read-rtl.c (validate_const_wide_int): New.
26484 (read_rtx_code): Add CONST_WIDE_INT case.
26485 * real.c: Include wide-int.h.
26486 (real_to_integer2): Delete.
26487 (real_to_integer): New function, returning a wide_int.
26488 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26489 (ten_to_ptwo): Update call to real_from_integer.
26490 (real_digit): Likewise.
26491 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26492 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26493 (REAL_VALUE_TO_INT): Delete.
26494 (real_to_integer): Declare a wide-int form.
26495 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26496 * recog.c (const_int_operand): Improve comment.
26497 (const_scalar_int_operand): New.
26498 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26499 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26500 (split_double): Likewise.
26501 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26502 (rtx_size): Likewise.
26503 (rtx_alloc_stat_v): New.
26504 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26505 (cwi_output_hex): New.
26506 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26507 (cwi_check_failed_bounds): New.
26508 * rtl.def (CONST_WIDE_INT): New.
26509 * rtl.h: Include <utility> and wide-int.h.
26510 (struct hwivec_def): New.
26511 (CWI_GET_NUM_ELEM): New.
26512 (CWI_PUT_NUM_ELEM): New.
26513 (struct rtx_def): Add num_elem and hwiv.
26514 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26515 (CASE_CONST_UNIQUE): Likewise.
26516 (CASE_CONST_ANY): Likewise.
26517 (CONST_SCALAR_INT_P): Likewise.
26518 (CONST_WIDE_INT_P): New.
26520 (HWIVEC_CHECK): New.
26521 (cwi_check_failed_bounds): New.
26523 (HWIVEC_CHECK): New.
26524 (CONST_WIDE_INT_VEC) New.
26525 (CONST_WIDE_INT_NUNITS) New.
26526 (CONST_WIDE_INT_ELT) New.
26527 (rtx_mode_t): New type.
26528 (wi::int_traits <rtx_mode_t>): New.
26530 (wi::min_value): New.
26531 (wi::max_value): New.
26533 (const_wide_int_alloc): New.
26534 (immed_wide_int_const): New.
26535 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26536 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26537 * signop.h: New file.
26538 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26539 (simplify_const_unary_operation): Use wide-int interfaces.
26540 (simplify_binary_operation_1): Likewise.
26541 (simplify_const_binary_operation): Likewise.
26542 (simplify_const_relational_operation): Likewise.
26543 (simplify_immed_subreg): Likewise.
26544 * stmt.c (expand_case): Likewise.
26545 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26546 signop rather than a bool.
26547 * stor-layout.c (layout_type): Use wide-int interfaces.
26548 (initialize_sizetypes): Update calls to
26549 set_min_and_max_values_for_integral_type.
26550 (set_min_and_max_values_for_integral_type): Take a signop rather
26551 than a bool. Use wide-int interfaces.
26552 (fixup_signed_type): Update accordingly. Remove
26553 HOST_BITS_PER_DOUBLE_INT limit.
26554 (fixup_unsigned_type): Likewise.
26555 * system.h (STATIC_CONSTANT_P): New.
26556 (STATIC_ASSERT): New.
26557 * target.def (can_use_doloop_p): Take widest_ints rather than
26559 * target.h: Include wide-int.h rather than double-int.h.
26560 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26562 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26563 rather than INT_CST_LT_UNSIGNED.
26564 (can_use_doloop_if_innermost): Take widest_ints rather than
26566 * tree-affine.c: Include wide-int-print.h.
26567 (double_int_ext_for_comb): Delete.
26568 (wide_int_ext_for_comb): New.
26569 (aff_combination_zero): Use wide-int interfaces.
26570 (aff_combination_const): Take a widest_int instead of a double_int.
26571 (aff_combination_elt): Use wide-int interfaces.
26572 (aff_combination_scale): Take a widest_int instead of a double_int.
26573 (aff_combination_add_elt): Likewise.
26574 (aff_combination_add_cst): Likewise.
26575 (aff_combination_add): Use wide-int interfaces.
26576 (aff_combination_convert): Likewise.
26577 (tree_to_aff_combination): Likewise.
26578 (add_elt_to_tree): Take a widest_int instead of a double_int.
26579 (aff_combination_to_tree): Use wide-int interfaces.
26580 (aff_combination_remove_elt): Likewise.
26581 (aff_combination_add_product): Take a widest_int instead of
26583 (aff_combination_mult): Use wide-int interfaces.
26584 (aff_combination_expand): Likewise.
26585 (double_int_constant_multiple_p): Delete.
26586 (wide_int_constant_multiple_p): New.
26587 (aff_combination_constant_multiple_p): Take a widest_int pointer
26588 instead of a double_int pointer.
26589 (print_aff): Use wide-int interfaces.
26590 (get_inner_reference_aff): Take a widest_int pointer
26591 instead of a double_int pointer.
26592 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26593 * tree-affine.h: Include wide-int.h.
26594 (struct aff_comb_elt): Change type of coef to widest_int.
26595 (struct affine_tree_combination): Change type of offset to widest_int.
26596 (double_int_ext_for_comb): Delete.
26597 (wide_int_ext_for_comb): New.
26598 (aff_combination_const): Use widest_int instead of double_int.
26599 (aff_combination_scale): Likewise.
26600 (aff_combination_add_elt): Likewise.
26601 (aff_combination_constant_multiple_p): Likewise.
26602 (get_inner_reference_aff): Likewise.
26603 (aff_comb_cannot_overlap_p): Likewise.
26604 (aff_combination_zero_p): Use wide-int interfaces.
26605 * tree.c: Include tree.h.
26606 (init_ttree): Use make_int_cst.
26607 (tree_code_size): Removed code for INTEGER_CST case.
26608 (tree_size): Add INTEGER_CST case.
26609 (make_node_stat): Update comment.
26610 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26611 (build_int_cst_type): Use wide-int interfaces.
26612 (double_int_to_tree): Likewise.
26613 (double_int_fits_to_tree_p): Delete.
26614 (force_fit_type_double): Delete.
26615 (force_fit_type): New.
26616 (int_cst_hash_hash): Use wide-int interfaces.
26617 (int_cst_hash_eq): Likewise.
26618 (build_int_cst_wide): Delete.
26619 (wide_int_to_tree): New.
26620 (cache_integer_cst): Use wide-int interfaces.
26621 (build_low_bits_mask): Likewise.
26622 (cst_and_fits_in_hwi): Likewise.
26623 (real_value_from_int_cst): Likewise.
26624 (make_int_cst_stat): New.
26625 (integer_zerop): Use wide_int interfaces.
26626 (integer_onep): Likewise.
26627 (integer_all_onesp): Likewise.
26628 (integer_pow2p): Likewise.
26629 (integer_nonzerop): Likewise.
26630 (tree_log2): Likewise.
26631 (tree_floor_log2): Likewise.
26632 (tree_ctz): Likewise.
26633 (int_size_in_bytes): Likewise.
26634 (mem_ref_offset): Return an offset_int rather than a double_int.
26635 (build_type_attribute_qual_variant): Use wide_int interfaces.
26636 (type_hash_eq): Likewise
26637 (tree_int_cst_equal): Likewise.
26638 (tree_int_cst_lt): Delete.
26639 (tree_int_cst_compare): Likewise.
26640 (tree_fits_shwi_p): Use wide_int interfaces.
26641 (tree_fits_uhwi_p): Likewise.
26642 (tree_int_cst_sign_bit): Likewise.
26643 (tree_int_cst_sgn): Likewise.
26644 (tree_int_cst_min_precision): Take a signop rather than a bool.
26645 (simple_cst_equal): Use wide_int interfaces.
26646 (compare_tree_int): Likewise.
26647 (iterative_hash_expr): Likewise.
26648 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26650 (get_type_static_bounds): Use wide_int interfaces.
26651 (tree_int_cst_elt_check_failed): New.
26652 (build_common_tree_nodes): Reordered to set prec before filling in
26654 (int_cst_value): Check cst_and_fits_in_hwi.
26655 (widest_int_cst_value): Use wide_int interfaces.
26656 (upper_bound_in_type): Likewise.
26657 (lower_bound_in_type): Likewise.
26658 (num_ending_zeros): Likewise.
26659 (drop_tree_overflow): Likewise.
26660 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26661 (gen_conditions_for_pow_cst_base): Likewise.
26662 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26663 (group_case_labels_stmt): Use wide-int interfaces.
26664 (verify_gimple_assign_binary): Likewise.
26665 (print_loop): Likewise.
26666 * tree-chrec.c (tree_fold_binomial): Likewise.
26667 * tree-core.h (struct tree_base): Add int_length.
26668 (struct tree_int_cst): Change rep of value.
26669 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26670 (dr_may_alias_p): Likewise.
26671 (max_stmt_executions_tree): Likewise.
26672 * tree.def (INTEGER_CST): Update comment.
26673 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26674 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26675 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26676 (dequeue_and_dump): Use wide-int interfaces.
26677 * tree.h: Include wide-int.h.
26678 (NULL_TREE): Moved to earlier loc in file.
26679 (TREE_INT_CST_ELT_CHECK): New.
26680 (tree_int_cst_elt_check_failed): New.
26682 (TREE_INT_CST): Delete.
26683 (TREE_INT_CST_LOW): Use wide-int interfaces.
26684 (TREE_INT_CST_HIGH): Delete.
26685 (TREE_INT_CST_NUNITS): New.
26686 (TREE_INT_CST_EXT_NUNITS): Likewise.
26687 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26688 (TREE_INT_CST_ELT): Likewise.
26689 (INT_CST_LT): Delete.
26690 (tree_int_cst_elt_check): New (two forms).
26691 (type_code_size): Update comment.
26692 (make_int_cst_stat, make_int_cst): New.
26693 (tree_to_double_int): Delete.
26694 (double_int_fits_to_tree_p): Delete.
26695 (force_fit_type_double): Delete.
26696 (build_int_cstu): Replace with out-of-line function.
26697 (build_int_cst_wide): Delete.
26698 (tree_int_cst_lt): Define inline.
26699 (tree_int_cst_le): New.
26700 (tree_int_cst_compare): Define inline.
26701 (tree_int_cst_min_precision): Take a signop rather than a bool.
26702 (wi::int_traits <const_tree>): New.
26703 (wi::int_traits <tree>): New.
26704 (wi::extended_tree): New.
26705 (wi::int_traits <wi::extended_tree>): New.
26706 (wi::to_widest): New.
26707 (wi::to_offset): New.
26708 (wi::fits_to_tree_p): New.
26709 (wi::min_value): New.
26710 (wi::max_value): New.
26711 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26712 (copy_tree_body_r): Likewise.
26713 * tree-object-size.c (compute_object_offset): Likewise.
26714 (addr_object_size): Likewise.
26715 * tree-predcom.c: Include wide-int-print.h.
26716 (struct dref_d): Change type of offset to widest_int.
26717 (dump_dref): Call wide-int printer.
26718 (aff_combination_dr_offset): Use wide-int interfaces.
26719 (determine_offset): Take a widest_int pointer rather than a
26720 double_int pointer.
26721 (split_data_refs_to_components): Use wide-int interfaces.
26722 (suitable_component_p): Likewise.
26723 (order_drefs): Likewise.
26724 (add_ref_to_chain): Likewise.
26725 (valid_initializer_p): Likewise.
26726 (determine_roots_comp): Likewise.
26727 * tree-pretty-print.c: Include wide-int-print.h.
26728 (dump_generic_node): Use wide-int interfaces.
26729 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26730 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26731 (move_fixed_address_to_symbol): Likewise.
26732 (move_hint_to_base): Likewise.
26733 (move_pointer_to_base): Likewise.
26734 (move_variant_to_index): Likewise.
26735 (most_expensive_mult_to_index): Likewise.
26736 (addr_to_parts): Likewise.
26737 (copy_ref_info): Likewise.
26738 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26739 (indirect_refs_may_alias_p): Likewise.
26740 (stmt_kills_ref_p_1): Likewise.
26741 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26742 * tree-ssa-ccp.c: Update comment at top of file. Include
26744 (struct prop_value_d): Change type of mask to widest_int.
26745 (extend_mask): New function.
26746 (dump_lattice_value): Use wide-int interfaces.
26747 (get_default_value): Likewise.
26748 (set_constant_value): Likewise.
26749 (set_value_varying): Likewise.
26750 (valid_lattice_transition): Likewise.
26751 (set_lattice_value): Likewise.
26752 (value_to_double_int): Delete.
26753 (value_to_wide_int): New.
26754 (get_value_from_alignment): Use wide-int interfaces.
26755 (get_value_for_expr): Likewise.
26756 (do_dbg_cnt): Likewise.
26757 (ccp_finalize): Likewise.
26758 (ccp_lattice_meet): Likewise.
26759 (bit_value_unop_1): Use widest_ints rather than double_ints.
26760 (bit_value_binop_1): Likewise.
26761 (bit_value_unop): Use wide-int interfaces.
26762 (bit_value_binop): Likewise.
26763 (bit_value_assume_aligned): Likewise.
26764 (evaluate_stmt): Likewise.
26765 (ccp_fold_stmt): Likewise.
26766 (visit_cond_stmt): Likewise.
26767 (ccp_visit_stmt): Likewise.
26768 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26769 (constant_pointer_difference): Likewise.
26770 (associate_pointerplus): Likewise.
26771 (combine_conversions): Likewise.
26772 * tree-ssa-loop.h: Include wide-int.h.
26773 (struct tree_niter_desc): Change type of max to widest_int.
26774 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26775 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26776 (remove_redundant_iv_tests): Likewise.
26777 (canonicalize_loop_induction_variables): Likewise.
26778 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26779 (constant_multiple_of): Take a widest_int pointer instead of
26780 a double_int pointer.
26781 (get_computation_aff): Use wide-int interfaces.
26782 (ptr_difference_cost): Likewise.
26783 (difference_cost): Likewise.
26784 (get_loop_invariant_expr_id): Likewise.
26785 (get_computation_cost_at): Likewise.
26786 (iv_elimination_compare_lt): Likewise.
26787 (may_eliminate_iv): Likewise.
26788 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26789 instead of double_int.
26790 (max_loop_iterations): Likewise.
26791 (max_stmt_executions): Likewise.
26792 (estimated_stmt_executions): Likewise.
26793 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26794 (split_to_var_and_offset): Use wide-int interfaces.
26795 (determine_value_range): Likewise.
26796 (bound_difference_of_offsetted_base): Likewise.
26797 (bounds_add): Take a widest_int instead of a double_int.
26798 (number_of_iterations_ne_max): Use wide-int interfaces.
26799 (number_of_iterations_ne): Likewise.
26800 (number_of_iterations_lt_to_ne): Likewise.
26801 (assert_loop_rolls_lt): Likewise.
26802 (number_of_iterations_lt): Likewise.
26803 (number_of_iterations_le): Likewise.
26804 (number_of_iterations_cond): Likewise.
26805 (number_of_iterations_exit): Likewise.
26806 (finite_loop_p): Likewise.
26807 (derive_constant_upper_bound_assign): Likewise.
26808 (derive_constant_upper_bound): Return a widest_int.
26809 (derive_constant_upper_bound_ops): Likewise.
26810 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26811 (record_estimate): Take a widest_int rather than a double_int.
26812 (record_nonwrapping_iv): Use wide-int interfaces.
26813 (double_int_cmp): Delete.
26814 (wide_int_cmp): New.
26815 (bound_index): Take a widest_int rather than a double_int.
26816 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26817 (maybe_lower_iteration_bound): Likewise.
26818 (estimate_numbers_of_iterations_loop): Likewise.
26819 (estimated_loop_iterations): Take a widest_int pointer than than
26820 a double_int pointer.
26821 (estimated_loop_iterations_int): Use wide-int interfaces.
26822 (max_loop_iterations): Take a widest_int pointer than than
26823 a double_int pointer.
26824 (max_loop_iterations_int): Use wide-int interfaces.
26825 (max_stmt_executions): Take a widest_int pointer than than
26826 a double_int pointer.
26827 (estimated_stmt_executions): Likewise.
26828 (n_of_executions_at_most): Use wide-int interfaces.
26829 (scev_probably_wraps_p): Likewise.
26830 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26831 to real_to_integer.
26832 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26834 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26835 double_ints. Adjust for trailing_wide_ints <3> representation.
26836 (set_nonzero_bits): Likewise.
26837 (get_range_info): Return wide_ints rather than double_ints.
26838 Adjust for trailing_wide_ints <3> representation.
26839 (get_nonzero_bits): Likewise.
26840 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26842 * tree-ssanames.h (struct range_info_def): Replace min, max and
26843 nonzero_bits with a trailing_wide_ints <3>.
26844 (set_range_info): Use wide_int_refs rather than double_ints.
26845 (set_nonzero_bits): Likewise.
26846 (get_range_info): Return wide_ints rather than double_ints.
26847 (get_nonzero_bits): Likewise.
26848 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26849 * tree-ssa-pre.c (phi_translate_1): Likewise.
26850 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26851 (acceptable_pow_call): Likewise.
26852 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26854 (vn_reference_fold_indirect): Likewise.
26855 (vn_reference_maybe_forwprop_address): Likewise.
26856 (valueize_refs_1): Likewise.
26857 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26858 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26859 tree_int_cst_lt and tree_int_cst_le.
26860 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26862 (streamer_alloc_tree): Likewise.
26863 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26864 (streamer_write_tree_header): Likewise.
26865 (streamer_write_integer_cst): Likewise.
26866 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26867 (build_constructors): Likewise.
26868 (array_value_type): Likewise.
26869 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26870 (vect_check_gather): Likewise.
26871 * tree-vect-generic.c (build_replicated_const): Likewise.
26872 (expand_vector_divmod): Likewise.
26873 * tree-vect-loop.c (vect_transform_loop): Likewise.
26874 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26875 (vect_do_peeling_for_alignment): Likewise.
26876 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26877 * tree-vrp.c: Include wide-int.h.
26878 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26879 (extract_range_from_assert): Use wide-int interfaces.
26880 (vrp_int_const_binop): Likewise.
26881 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26882 double_int pointers.
26883 (ranges_from_anti_range): Use wide-int interfaces.
26884 (quad_int_cmp): Delete.
26885 (quad_int_pair_sort): Likewise.
26886 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26887 (extract_range_from_unary_expr_1): Likewise.
26888 (adjust_range_with_scev): Likewise.
26889 (masked_increment): Take and return wide_ints rather than double_ints.
26890 (register_edge_assert_for_2): Use wide-int interfaces.
26891 (check_array_ref): Likewise.
26892 (search_for_addr_array): Likewise.
26893 (maybe_set_nonzero_bits): Likewise.
26894 (union_ranges): Pass an integer of the correct type instead of
26895 using integer_one_node.
26896 (intersect_ranges): Likewise.
26897 (simplify_truth_ops_using_ranges): Likewise.
26898 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26899 (range_fits_type_p): Likewise.
26900 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26902 (simplify_conversion_using_ranges): Use wide-int interfaces.
26903 (simplify_float_conversion_using_ranges): Likewise.
26904 (vrp_finalize): Likewise.
26905 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26906 (gimple_stringops_transform): Likewise.
26907 * varasm.c (decode_addr_const): Likewise.
26908 (const_hash_1): Likewise.
26909 (const_rtx_hash_1): Likewise
26910 (output_constant): Likewise.
26911 (array_size_for_constructor): Likewise.
26912 (output_constructor_regular_field): Likewise.
26913 (output_constructor_bitfield): Likewise.
26914 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26915 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26917 * gencheck.c: Define BITS_PER_UNIT.
26918 * wide-int.cc: New.
26920 * wide-int-print.cc: New.
26921 * wide-int-print.h: New.
26923 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26925 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26927 2014-05-06 Richard Biener <rguenther@suse.de>
26929 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26930 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26931 (TODO_verify_all): Adjust.
26932 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26933 TODO_verify_stmts and TODO_verify_rtl_sharing.
26934 * bb-reorder.c: Likewise.
26935 * cfgexpand.c: Likewise.
26936 * cprop.c: Likewise.
26938 * function.c: Likewise.
26939 * fwprop.c: Likewise.
26940 * gcse.c: Likewise.
26941 * gimple-ssa-isolate-paths.c: Likewise.
26942 * gimple-ssa-strength-reduction.c: Likewise.
26943 * ipa-split.c: Likewise.
26944 * loop-init.c: Likewise.
26945 * loop-unroll.c: Likewise.
26946 * lower-subreg.c: Likewise.
26947 * modulo-sched.c: Likewise.
26948 * postreload-gcse.c: Likewise.
26949 * predict.c: Likewise.
26950 * recog.c: Likewise.
26951 * sched-rgn.c: Likewise.
26952 * store-motion.c: Likewise.
26953 * tracer.c: Likewise.
26954 * trans-mem.c: Likewise.
26955 * tree-call-cdce.c: Likewise.
26956 * tree-cfg.c: Likewise.
26957 * tree-cfgcleanup.c: Likewise.
26958 * tree-complex.c: Likewise.
26959 * tree-eh.c: Likewise.
26960 * tree-emutls.c: Likewise.
26961 * tree-if-conv.c: Likewise.
26962 * tree-into-ssa.c: Likewise.
26963 * tree-loop-distribution.c: Likewise.
26964 * tree-object-size.c: Likewise.
26965 * tree-parloops.c: Likewise.
26966 * tree-pass.h: Likewise.
26967 * tree-sra.c: Likewise.
26968 * tree-ssa-ccp.c: Likewise.
26969 * tree-ssa-copy.c: Likewise.
26970 * tree-ssa-copyrename.c: Likewise.
26971 * tree-ssa-dce.c: Likewise.
26972 * tree-ssa-dom.c: Likewise.
26973 * tree-ssa-dse.c: Likewise.
26974 * tree-ssa-forwprop.c: Likewise.
26975 * tree-ssa-ifcombine.c: Likewise.
26976 * tree-ssa-loop-ch.c: Likewise.
26977 * tree-ssa-loop-ivcanon.c: Likewise.
26978 * tree-ssa-loop.c: Likewise.
26979 * tree-ssa-math-opts.c: Likewise.
26980 * tree-ssa-phiopt.c: Likewise.
26981 * tree-ssa-phiprop.c: Likewise.
26982 * tree-ssa-pre.c: Likewise.
26983 * tree-ssa-reassoc.c: Likewise.
26984 * tree-ssa-sink.c: Likewise.
26985 * tree-ssa-strlen.c: Likewise.
26986 * tree-ssa-tail-merge.c: Likewise.
26987 * tree-ssa-uncprop.c: Likewise.
26988 * tree-switch-conversion.c: Likewise.
26989 * tree-tailcall.c: Likewise.
26990 * tree-vect-generic.c: Likewise.
26991 * tree-vectorizer.c: Likewise.
26992 * tree-vrp.c: Likewise.
26993 * tsan.c: Likewise.
26994 * var-tracking.c: Likewise.
26995 * bt-load.c: Likewise.
26996 * cfgcleanup.c: Likewise.
26997 * combine-stack-adj.c: Likewise.
26998 * combine.c: Likewise.
26999 * compare-elim.c: Likewise.
27000 * config/epiphany/resolve-sw-modes.c: Likewise.
27001 * config/i386/i386.c: Likewise.
27002 * config/mips/mips.c: Likewise.
27003 * config/s390/s390.c: Likewise.
27004 * config/sh/sh_treg_combine.cc: Likewise.
27005 * config/sparc/sparc.c: Likewise.
27008 * final.c: Likewise.
27009 * ifcvt.c: Likewise.
27010 * mode-switching.c: Likewise.
27011 * passes.c: Likewise.
27012 * postreload.c: Likewise.
27014 * reg-stack.c: Likewise.
27015 * regcprop.c: Likewise.
27016 * regrename.c: Likewise.
27019 2014-05-06 Richard Biener <rguenther@suse.de>
27021 PR middle-end/61070
27022 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27023 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27025 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27028 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27030 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27031 Tom de Vries <tom@codesourcery.com>
27033 * target.def (call_fusage_contains_non_callee_clobbers): New
27035 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27037 (@node Miscellaneous Register Hooks): New node.
27038 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27039 * doc/tm.texi: Regenerate.
27041 2014-05-05 Marek Polacek <polacek@redhat.com>
27044 * opts.c (common_handle_option): Call error_at instead of warning_at.
27046 2014-05-05 Richard Biener <rguenther@suse.de>
27048 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27049 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27050 under the TODO_verify_il umbrella.
27052 2014-05-05 Richard Biener <rguenther@suse.de>
27054 * passes.c (execute_function_todo): Move TODO_verify_flow under
27055 the TODO_verify_ul umbrella.
27057 2014-05-05 Richard Biener <rguenther@suse.de>
27059 PR middle-end/61010
27060 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27061 X & CST away from a CST that is the mask of a mode.
27063 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27065 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27066 int argument to enum machine_mode.
27067 (picochip_class_max_nregs): Ditto.
27068 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27069 (picochip_class_max_nregs): Ditto.
27071 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27073 * target.def: Add new target hook.
27074 * doc/tm.texi: Regenerate.
27075 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27076 * targhooks.c (default_keep_leaf_when_profiled): New function.
27078 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27079 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27081 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27083 PR tree-optimization/60363
27084 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27085 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27086 (update_destination_phis): New parameter.
27087 (create_edge_and_update_destination_phis): Ditto.
27088 (ssa_fix_duplicate_block_edges): Pass new arguments.
27089 (thread_single_edge): Ditto.
27091 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27093 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27094 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27095 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27096 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27097 Use RS6000_BTM_HARD_FLOAT.
27098 (BU_MISC_2): Likewise.
27099 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27100 RS6000_BTM_HARD_FLOAT.
27101 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27102 is explicitly used.
27103 (rs6000_invalid_builtin): Add hard floating builtin support.
27104 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27105 hard float builtins.
27106 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27108 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27110 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27111 Add missing function* argument.
27113 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27115 * lra-constraints.c (valid_address_p): Move earlier in file.
27116 Add a constraint argument to the address_info version.
27117 (satisfies_memory_constraint_p): New function.
27118 (satisfies_address_constraint_p): Likewise.
27119 (process_alt_operands, curr_insn_transform): Use them.
27120 (process_address): Pass the constraint to valid_address_p when
27121 checking address operands.
27123 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27125 * config/mips/mips.c (mips_isa_rev): New variable.
27126 (mips_set_architecture): Set it.
27127 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27129 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27130 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27131 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27132 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27133 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27134 conditions in terms of mips_isa_rev.
27135 (mips_isa_rev): Declare.
27137 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27139 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27140 (prob_unlikely, prob_likely): Make variables const.
27142 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27144 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27146 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27148 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27150 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27152 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27153 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27154 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27156 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27157 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27159 Replace usage of ROUND_REG with sh_round_reg.
27160 Use CEIL instead of ROUND_ADVANCE.
27162 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27165 * config/sh/sh.c: Include stdlib headers before everything else.
27167 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27169 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27170 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27171 (gimplify_adjust_omp_clauses): Simd region is never
27172 directly nested in combined parallel. Instead, for linear
27173 with copyin/copyout, if in combined for simd loop, make decl
27174 firstprivate/lastprivate on OMP_FOR.
27175 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27176 expand_omp_for_static_chunk): When setting endvar, also set
27177 fd->loop.v to the same value.
27179 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27181 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27183 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27185 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27188 2014-05-02 Marek Polacek <polacek@redhat.com>
27190 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27192 2014-05-02 Kito Cheng <kito@0xlab.org>
27194 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27195 to a C expression marco.
27196 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27197 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27198 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27199 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27200 HONOR_REG_ALLOC_ORDER.
27201 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27203 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27205 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27207 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27209 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27211 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27213 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27214 (convert_scalar_cond_reduction): Likewise.
27215 (predicate_scalar_phi): Add recognition and transformation
27216 of simple conditioanl reduction to be vectorizable.
27218 2014-05-01 Marek Polacek <polacek@redhat.com>
27221 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27223 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27225 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27226 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27227 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27228 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27229 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27230 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27231 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27232 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27234 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27236 * config/arc/arc.opt (mlra): Move comment above option name
27237 to avoid mis-parsing as language options.
27239 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27241 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27242 * config/sol2.h: ... here.
27243 * config/sol2-10.h: Remove.
27245 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27246 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27247 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27248 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27249 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27250 * config/sol2.h: ... here.
27251 (SECTION_NAME_FORMAT): Don't redefine.
27252 (STARTFILE_ARCH32_SPEC): Rename to ...
27253 (STARTFILE_ARCH_SPEC): ... this.
27254 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27255 * config/sparc/sol2.h: ... here.
27256 (SECTION_NAME_FORMAT): Don't undef.
27257 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27258 (SUBTARGET_EXTRA_SPECS): Remove.
27259 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27261 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27262 (MD_STARTFILE_PREFIX): Remove.
27263 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27264 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27265 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27266 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27267 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27268 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27269 * config/i386/sol2.h: ... here.
27270 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27271 * config/i386/sol2-bi.h: Remove.
27272 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27273 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27275 * config/i386/t-sol2-64: Rename to ...
27276 * config/i386/t-sol2: ... this.
27277 * config/sparc/t-sol2-64: Rename to ...
27278 * config/sparc/t-sol2: ... this.
27280 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27281 sol2_tm_file_head, sol2_tm_file_tail.
27282 Include ${cpu_type}/sol2.h before sol2.h.
27284 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27285 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27286 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27287 Reflect i386/t-sol2-64 renaming.
27288 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27289 Reflect sparc/t-sol2-64 renaming.
27291 2014-04-30 Richard Biener <rguenther@suse.de>
27293 * passes.c (execute_function_todo): Move TODO_verify_stmts
27294 and TODO_verify_ssa under the TODO_verify_il umbrella.
27295 * tree-ssa.h (verify_ssa): Adjust prototype.
27296 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27297 we should verify SSA operands.
27298 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27299 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27300 whether we should verify whether not throwing stmts have EH info.
27301 * graphite-scop-detection.c (create_sese_edges): Adjust.
27302 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27303 * tree-eh.c (lower_try_finally_switch): Do not add the
27304 default case label twice.
27306 2014-04-30 Marek Polacek <polacek@redhat.com>
27308 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27309 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27310 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27311 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27313 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27315 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27316 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27317 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27318 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27319 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27320 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27321 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27322 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27324 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27326 * tree-cfg.c (dump_function_to_file): Dump the return type of
27327 functions, in a line to itself before the function body, mimicking
27328 the layout of a C function.
27330 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27332 PR tree-optimization/60971
27333 * tree-tailcall.c (process_assignment): Reject conversions which
27336 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27338 * calls.c (initialize_argument_information): Always treat
27339 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27340 (expand_call): Likewise.
27341 (emit_library_call_calue_1): Likewise.
27342 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27343 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27346 2014-04-29 Nick Clifton <nickc@redhat.com>
27348 * config/msp430/msp430.md (umulsidi): Fix typo.
27349 (mulhisi3): Enable even inside interrupt handlers.
27350 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27351 bigger return address pushed in large mode.
27353 2014-04-29 Nick Clifton <nickc@redhat.com>
27355 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27356 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27358 * config/m32r/m32r.c (init_reg_tables): Likewise.
27359 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27360 enum to hold the modes.
27362 2014-04-29 Richard Biener <rguenther@suse.de>
27364 * dominance.c (free_dominance_info): Add overload with
27365 function parameter.
27366 (dom_info_state): Likewise.
27367 (dom_info_available_p): Likewise.
27368 * basic-block.h (free_dominance_info, dom_info_state,
27369 dom_info_available_p): Declare overloads.
27370 * passes.c (execute_function_todo): Verify that verifiers
27371 don't change dominator info state. Drop dominator info
27372 for IPA pass invocations.
27373 * cgraph.c (release_function_body): Restore asserts that
27374 dominator information is released.
27376 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27378 * doc/invoke.texi: Fix typo.
27379 * tree-vrp.c: Fix typos.
27380 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27382 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27384 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27386 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27388 * config/aarch64/aarch64-builtins.c
27389 (aarch64_types_storestruct_lane_qualifiers): New.
27390 (TYPES_STORESTRUCT_LANE): Likewise.
27391 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27392 (st3_lane): Likewise.
27393 (st4_lane): Likewise.
27394 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27395 (vec_store_lanesci_lane<mode>): Likewise.
27396 (vec_store_lanesxi_lane<mode>): Likewise.
27397 (aarch64_st2_lane<VQ:mode>): Likewise.
27398 (aarch64_st3_lane<VQ:mode>): Likewise.
27399 (aarch64_st4_lane<VQ:mode>): Likewise.
27400 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27401 * config/aarch64/arm_neon.h
27402 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27403 use new macro arguments.
27404 (__ST3_LANE_FUNC): Likewise.
27405 (__ST4_LANE_FUNC): Likewise.
27406 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27407 (V_THREE_ELEM): Likewise.
27408 (V_FOUR_ELEM): Likewise.
27410 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27412 * doc/gimple.texi: Replace the description of the now-defunct
27413 union gimple_statement_d with a diagram showing the
27414 gimple_statement_base class hierarchy and its relationships to
27415 the GSS_ and GIMPLE_ enums.
27417 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27419 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27420 * config/aarch64/aarch64.c
27421 (aarch64_cannot_change_mode_class): Weaken conditions.
27422 (aarch64_modes_tieable_p): New.
27423 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27425 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27427 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27428 (loadsync_<mode>): Change mode.
27429 (load_quadpti, store_quadpti): New.
27430 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27431 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27433 2014-04-28 Martin Jambor <mjambor@suse.cz>
27435 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27436 same alias type as the original statement.
27437 (subreplacement_assignment_data): New type.
27438 (handle_unscalarized_data_in_subtree): New type of parameter,
27439 generate new memory accesses with same alias type as the original
27441 (load_assign_lhs_subreplacements): Likewise.
27442 (sra_modify_constructor_assign): Generate new memory accesses with
27443 same alias type as the original statement.
27445 2014-04-28 Richard Biener <rguenther@suse.de>
27447 * tree-pass.h (TODO_verify_il): Define.
27448 (TODO_verify_all): Complete properly.
27449 * passes.c (execute_function_todo): Move existing loop-closed
27450 SSA verification under TODO_verify_il.
27451 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27452 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27453 Fix tree sharing issue.
27455 2014-04-28 Richard Biener <rguenther@suse.de>
27457 PR middle-end/60092
27458 * builtins.def (DEF_C11_BUILTIN): Add.
27459 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27460 * coretypes.h (enum function_class): Add function_c11_misc.
27461 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27462 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27463 (call_may_clobber_ref_p_1): Likewise.
27464 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27465 (mark_all_reaching_defs_necessary_1): Likewise.
27466 (propagate_necessity): Likewise.
27467 (eliminate_unnecessary_stmts): Likewise.
27468 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27470 2014-04-28 Richard Biener <rguenther@suse.de>
27472 * tree-vrp.c (vrp_var_may_overflow): Remove.
27473 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27474 with overflow immediately bump to one before that value and
27475 let iteration figure out overflow status.
27477 2014-04-28 Richard Biener <rguenther@suse.de>
27479 * configure.ac: Do valgrind header checks unconditionally.
27480 Add --enable-valgrind-annotations.
27481 * system.h: Guard valgrind header inclusion with
27482 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27483 * alloc-pool.c (pool_alloc, pool_free): Use
27484 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27485 to guard possibly dead code.
27486 * config.in: Regenerated.
27487 * configure: Likewise.
27489 2014-04-28 Jeff Law <law@redhat.com>
27491 PR tree-optimization/60902
27492 * tree-ssa-threadedge.c
27493 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27494 over real defs when invalidating outputs from statements that do not
27495 produce useful outputs for threading.
27497 2014-04-28 Richard Biener <rguenther@suse.de>
27499 PR tree-optimization/60979
27500 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27501 SCOPs that end in a block with a successor with abnormal
27504 2014-04-28 Richard Biener <rguenther@suse.de>
27506 * tree-pass.h (execute_pass_list): Adjust prototype.
27507 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27508 (do_per_function): Change callback signature, push all actual
27509 work to the callbals.
27510 (do_per_function_toporder): Likewise.
27511 (execute_function_dump): Adjust.
27512 (execute_function_todo): Likewise.
27513 (clear_last_verified): Likewise.
27514 (verify_curr_properties): Likewise.
27515 (update_properties_after_pass): Likewise.
27516 (execute_pass_list_1): Split out from ...
27517 (execute_pass_list): ... here. Adjust.
27518 (execute_ipa_pass_list): Likewise.
27519 * cgraphunit.c (cgraph_add_new_function): Adjust.
27520 (analyze_function): Likewise.
27521 (expand_function): Likewise.
27522 * cgraph.c (release_function_body): Free dominance info
27523 here instead of asserting it was magically freed elsewhere.
27525 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27527 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27528 * configure: Regenerate.
27529 * config/sparc/sparc.opt (muser-mode): New option.
27530 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27532 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27533 * doc/invoke.texi (SPARC options): Document -muser-mode.
27535 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27537 * cselib.c (find_slot_memmode): Delete.
27538 (cselib_hasher): Change compare_type to a struct.
27539 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27541 (preserve_constants_and_equivs): Adjust for new compare_type.
27542 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27543 (wrap_constant): Delete.
27544 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27546 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27548 * doc/install.texi (Building with profile feedback): Remove
27551 2014-04-26 Tom de Vries <tom@codesourcery.com>
27553 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27556 2014-04-25 Cary Coutant <ccoutant@google.com>
27559 * dwarf2out.c (should_move_die_to_comdat): A type definition
27560 can contain a subprogram definition, but don't move it to a
27562 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27563 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27565 (clone_tree_hash): Rename to...
27566 (clone_tree_partial): ...this; change callers. Copy
27567 DW_TAG_subprogram DIEs as declarations.
27568 (copy_decls_walk): Don't copy children of a declaration into a
27571 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27574 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27577 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27579 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27580 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27582 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27585 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27587 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27589 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27591 PR tree-optimization/60930
27592 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27593 creating a multiply candidate by folding two constant
27594 multiplicands when the result overflows.
27596 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27598 PR tree-optimization/60960
27599 * tree-vect-generic.c (expand_vector_operation): Only call
27600 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27602 2014-04-25 Tom de Vries <tom@codesourcery.com>
27604 * expr.c (clobber_reg_mode): New function.
27605 * expr.h (clobber_reg): New function.
27607 2014-04-25 Tom de Vries <tom@codesourcery.com>
27609 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27612 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27613 Tom de Vries <tom@codesourcery.com>
27615 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27617 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27618 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27619 new argument to find_all_hard_reg_sets call.
27621 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27623 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27624 Use HOST_WIDE_INT_C for mask literal.
27625 (aarch_rev16_shleft_mask_imm_p): Likewise.
27627 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27630 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27632 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27634 PR preprocessor/56540
27635 * config/i386/i386-c.c (ix86_target_macros): Define
27636 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27638 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27640 * configure.ac (tga_func): Remove.
27641 (LIB_TLS_SPEC): Remove.
27642 * configure: Regenerate.
27643 * config.in: Regenerate.
27644 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27646 2014-04-25 Richard Biener <rguenther@suse.de>
27649 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27650 call stmt use/clobber sets during stmt walk instead of
27651 walking the possibly incomplete set of caller edges.
27653 2014-04-25 Richard Biener <rguenther@suse.de>
27656 * passes.c (apply_ipa_transforms): Inline into only caller ...
27657 (execute_one_pass): ... here. Properly bring in function
27658 bodies for nodes we want to apply IPA transforms to.
27660 2014-04-24 Cong Hou <congh@google.com>
27662 PR tree-optimization/60896
27663 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27664 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27665 (vect_mark_pattern_stmts): Set the def type of all statements in
27666 PATTERN_DEF_SEQ as vect_internal_def.
27668 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27670 * doc/extend.texi (PowerPC Built-in Functions): Document new
27671 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27672 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27674 * config/rs6000/predicates.md (const_0_to_3_operand): New
27675 predicate to match 0..3 integer constants.
27677 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27678 to support adding miscellaneous builtin functions.
27679 (BU_DFP_MISC_2): Likewise.
27680 (BU_P7_MISC_1): Likewise.
27681 (BU_P7_MISC_2): Likewise.
27682 (BU_P8V_MISC_3): Likewise.
27683 (BU_MISC_1): Likewise.
27684 (BU_MISC_2): Likewise.
27685 (DIVWE): Add extended divide builtin functions.
27686 (DIVWEO): Likewise.
27687 (DIVWEU): Likewise.
27688 (DIVWEUO): Likewise.
27690 (DIVDEO): Likewise.
27691 (DIVDEU): Likewise.
27692 (DIVDEUO): Likewise.
27693 (DXEX): Add decimal floating-point builtin functions.
27695 (DDEDPD): Likewise.
27696 (DDEDPDQ): Likewise.
27697 (DENBCD): Likewise.
27698 (DENBCDQ): Likewise.
27702 (DSCLIQ): Likewise.
27704 (DSCRIQ): Likewise.
27705 (CDTBCD): Add new BCD builtin functions.
27706 (CBCDTD): Likewise.
27707 (ADDG6S): Likewise.
27708 (BCDADD): Likewise.
27709 (BCDADD_LT): Likewise.
27710 (BCDADD_EQ): Likewise.
27711 (BCDADD_GT): Likewise.
27712 (BCDADD_OV): Likewise.
27713 (BCDSUB): Likewise.
27714 (BCDSUB_LT): Likewise.
27715 (BCDSUB_EQ): Likewise.
27716 (BCDSUB_GT): Likewise.
27717 (BCDSUB_OV): Likewise.
27718 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27719 (UNPACK_TD): Likewise.
27720 (PACK_TF): Likewise.
27721 (UNPACK_TF): Likewise.
27722 (UNPACK_TF_0): Likewise.
27723 (UNPACK_TF_1): Likewise.
27724 (PACK_V1TI): Likewise.
27725 (UNPACK_V1TI): Likewise.
27727 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27728 support for decimal floating point builtin functions.
27729 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27730 functions that take constant arguments.
27731 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27732 (rs6000_init_builtins): Setup long double, _Decimal64, and
27733 _Decimal128 types for new builtin functions.
27734 (builtin_function_type): Set the unsigned flags appropriately for
27735 the new builtin functions.
27736 (rs6000_opt_masks): Add support for decimal floating point builtin
27739 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27740 floating point builtin functions.
27741 (RS6000_BTM_COMMON): Likewise.
27742 (RS6000_BTI_long_double): Likewise.
27743 (RS6000_BTI_dfloat64): Likewise.
27744 (RS6000_BTI_dfloat128): Likewise.
27745 (long_double_type_internal_node): Likewise.
27746 (dfloat64_type_internal_node): Likewise.
27747 (dfloat128_type_internal_node): Likewise.
27749 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27750 2.07 bcd arithmetic instructions.
27751 (UNSPEC_BCDSUB): Likewise.
27752 (UNSPEC_BCD_OVERFLOW): Likewise.
27753 (UNSPEC_BCD_ADD_SUB): Likewise.
27754 (bcd_add_sub): Likewise.
27755 (BCD_TEST): Likewise.
27756 (bcd<bcd_add_sub>): Likewise.
27757 (bcd<bcd_add_sub>_test): Likewise.
27758 (bcd<bcd_add_sub>_test2): Likewise.
27759 (bcd<bcd_add_sub>_<code>): Likewise.
27760 (peephole2 for combined bcd ops): Likewise.
27762 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27763 decimal floating point builtin functions.
27764 (UNSPEC_DENBCD): Likewise.
27765 (UNSPEC_DXEX): Likewise.
27766 (UNSPEC_DIEX): Likewise.
27767 (UNSPEC_DSCLI): Likewise.
27768 (UNSPEC_DSCRI): Likewise.
27769 (D64_D128): Likewise.
27770 (dfp_suffix): Likewise.
27771 (dfp_ddedpd_<mode>): Likewise.
27772 (dfp_denbcd_<mode>): Likewise.
27773 (dfp_dxex_<mode>): Likewise.
27774 (dfp_diex_<mode>): Likewise.
27775 (dfp_dscli_<mode>): Likewise.
27776 (dfp_dscri_<mode>): Likewise.
27778 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27780 (UNSPEC_CDTBCD): Likewise.
27781 (UNSPEC_CBCDTD): Likewise.
27782 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27783 (UNSPEC_DIVEO): Likewise.
27784 (UNSPEC_DIVEU): Likewise.
27785 (UNSPEC_DIVEUO): Likewise.
27786 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27787 pack/unpack 128-bit types.
27788 (UNSPEC_PACK_128BIT): Likewise.
27789 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27790 (udiv<mode>3): Use idiv_ldiv mode attribute.
27791 (div<mode>3): Likewise.
27792 (addg6s): Add new BCD builtin functions.
27793 (cdtbcd): Likewise.
27794 (cbcdtd): Likewise.
27795 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27796 (div_extend): Likewise.
27797 (div<div_extend>_<mode>"): Likewise.
27798 (FP128_64): Add support for new builtin functions to pack/unpack
27800 (unpack<mode>): Likewise.
27801 (unpacktf_0): Likewise.
27802 (unpacktf_1): Likewise.
27803 (unpack<mode>_dm): Likewise.
27804 (unpack<mode>_nodm): Likewise.
27805 (pack<mode>): Likewise.
27806 (unpackv1ti): Likewise.
27807 (packv1ti): Likewise.
27809 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27811 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27814 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27816 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27817 * gimplify.c (omp_is_private): Change last argument's type to int.
27818 Only diagnose lastprivate if the simd argument is 1, only diagnose
27819 linear if the simd argument is 2.
27820 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27821 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27822 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27823 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27824 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27825 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27826 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27827 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27828 * tree-nested.c (convert_nonlocal_omp_clauses,
27829 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27831 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27834 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27837 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27839 * flag-types.h (enum ivar_visibility): Add.
27841 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27843 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27844 function * argument.
27846 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27848 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27850 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27851 Tom de Vries <tom@codesourcery.com>
27853 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27854 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27856 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27857 * emit-rtl.c (try_split): Same.
27859 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27860 Tom de Vries <tom@codesourcery.com>
27862 * common.opt (fuse-caller-save): New option.
27864 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27866 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27867 elements for big-endian.
27869 2014-04-24 Richard Biener <rguenther@suse.de>
27871 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27872 during TER and instead use the sepops interface for expanding
27873 non-GIMPLE_SINGLE_RHS.
27875 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27877 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27878 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27880 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27882 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27883 assembler 64-bit option.
27884 * configure: Regenerate.
27886 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27888 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27889 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27890 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27891 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27892 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27894 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27896 * config/aarch64/aarch64-builtins.c
27897 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27898 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27899 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27900 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27902 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27903 (Vrevsuff): New mode attribute.
27905 2014-04-24 Terry Guo <terry.guo@arm.com>
27907 * config/arm/arm.h (machine_function): Define variable
27908 after_arm_reorg here.
27909 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27910 (arm_split_constant): Update the way to access variable
27912 (arm_reorg): Ditto.
27913 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27915 2014-04-23 Tom de Vries <tom@codesourcery.com>
27917 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27919 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27921 * is-a.h: Update comments to reflect the following changes to the
27922 "pointerness" of the API, making the template parameter match the
27923 return type, allowing use of is-a.h with typedefs of pointers.
27924 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27925 that the return type matches the parameter to the is_a_helper.
27927 (dyn_cast): Likewise.
27929 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27930 pointer from the is-a.h API.
27932 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27933 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27935 (is_a_helper <varpool_node>::test): Likewise, convert to...
27936 (is_a_helper <varpool_node *>::test): ...this.
27938 (varpool_first_variable): Update for removal of implicit pointer
27939 from the is-a.h API.
27940 (varpool_next_variable): Likewise.
27941 (varpool_first_static_initializer): Likewise.
27942 (varpool_next_static_initializer): Likewise.
27943 (varpool_first_defined_variable): Likewise.
27944 (varpool_next_defined_variable): Likewise.
27945 (cgraph_first_defined_function): Likewise.
27946 (cgraph_next_defined_function): Likewise.
27947 (cgraph_first_function): Likewise.
27948 (cgraph_next_function): Likewise.
27949 (cgraph_first_function_with_gimple_body): Likewise.
27950 (cgraph_next_function_with_gimple_body): Likewise.
27951 (cgraph_alias_target): Likewise.
27952 (varpool_alias_target): Likewise.
27953 (cgraph_function_or_thunk_node): Likewise.
27954 (varpool_variable_node): Likewise.
27955 (symtab_real_symbol_p): Likewise.
27956 * cgraphunit.c (referred_to_p): Likewise.
27957 (analyze_functions): Likewise.
27958 (handle_alias_pairs): Likewise.
27959 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27960 * gimple-ssa.h (gimple_vuse_op): Likewise.
27961 (gimple_vdef_op): Likewise.
27962 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27963 * gimple.c (gimple_build_asm_1): Likewise.
27964 (gimple_build_try): Likewise.
27965 (gimple_build_resx): Likewise.
27966 (gimple_build_eh_dispatch): Likewise.
27967 (gimple_build_omp_for): Likewise.
27968 (gimple_omp_for_set_clauses): Likewise.
27970 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27971 (is_a_helper <gimple_statement_asm *>::test): ...this.
27972 (is_a_helper <gimple_statement_bind>::test): Convert to...
27973 (is_a_helper <gimple_statement_bind *>::test): ...this.
27974 (is_a_helper <gimple_statement_call>::test): Convert to...
27975 (is_a_helper <gimple_statement_call *>::test): ...this.
27976 (is_a_helper <gimple_statement_catch>::test): Convert to...
27977 (is_a_helper <gimple_statement_catch *>::test): ...this.
27978 (is_a_helper <gimple_statement_resx>::test): Convert to...
27979 (is_a_helper <gimple_statement_resx *>::test): ...this.
27980 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27981 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27982 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27983 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27984 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27985 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27986 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27987 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27988 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27989 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27990 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27991 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27992 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27993 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27994 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27995 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27996 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27997 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27998 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27999 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28000 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28001 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28002 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28003 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28004 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28005 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28006 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28007 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28008 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28009 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28010 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28011 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28012 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28013 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28014 (is_a_helper <gimple_statement_phi>::test): Convert to...
28015 (is_a_helper <gimple_statement_phi *>::test): ...this.
28016 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28017 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28018 (is_a_helper <gimple_statement_try>::test): Convert to...
28019 (is_a_helper <gimple_statement_try *>::test): ...this.
28020 (is_a_helper <gimple_statement_wce>::test): Convert to...
28021 (is_a_helper <gimple_statement_wce *>::test): ...this.
28022 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28023 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28024 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28025 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28026 (is_a_helper <const gimple_statement_call>::test): Convert to...
28027 (is_a_helper <const gimple_statement_call *>::test): ...this.
28028 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28029 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28030 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28031 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28032 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28033 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28034 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28035 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28036 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28038 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28040 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28042 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28044 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28045 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28046 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28048 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28049 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28051 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28052 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28053 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28054 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28055 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28056 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28058 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28059 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28060 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28061 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28063 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28064 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28065 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28066 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28067 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28068 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28069 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28070 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28071 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28072 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28073 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28074 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28075 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28076 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28077 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28078 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28080 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28082 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28083 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28085 (gimple_use_ops): Update for removal of implicit pointer from the
28087 (gimple_set_use_ops): Likewise.
28088 (gimple_vuse): Likewise.
28089 (gimple_vdef): Likewise.
28090 (gimple_vuse_ptr): Likewise.
28091 (gimple_vdef_ptr): Likewise.
28092 (gimple_set_vuse): Likewise.
28093 (gimple_set_vdef): Likewise.
28094 (gimple_omp_return_set_lhs): Likewise.
28095 (gimple_omp_return_lhs): Likewise.
28096 (gimple_omp_return_lhs_ptr): Likewise.
28097 (gimple_call_fntype): Likewise.
28098 (gimple_call_set_fntype): Likewise.
28099 (gimple_call_set_internal_fn): Likewise.
28100 (gimple_call_use_set): Likewise.
28101 (gimple_call_clobber_set): Likewise.
28102 (gimple_bind_vars): Likewise.
28103 (gimple_bind_set_vars): Likewise.
28104 (gimple_bind_body_ptr): Likewise.
28105 (gimple_bind_set_body): Likewise.
28106 (gimple_bind_add_stmt): Likewise.
28107 (gimple_bind_block): Likewise.
28108 (gimple_bind_set_block): Likewise.
28109 (gimple_asm_ninputs): Likewise.
28110 (gimple_asm_noutputs): Likewise.
28111 (gimple_asm_nclobbers): Likewise.
28112 (gimple_asm_nlabels): Likewise.
28113 (gimple_asm_input_op): Likewise.
28114 (gimple_asm_input_op_ptr): Likewise.
28115 (gimple_asm_output_op): Likewise.
28116 (gimple_asm_output_op_ptr): Likewise.
28117 (gimple_asm_set_output_op): Likewise.
28118 (gimple_asm_clobber_op): Likewise.
28119 (gimple_asm_set_clobber_op): Likewise.
28120 (gimple_asm_label_op): Likewise.
28121 (gimple_asm_set_label_op): Likewise.
28122 (gimple_asm_string): Likewise.
28123 (gimple_catch_types): Likewise.
28124 (gimple_catch_types_ptr): Likewise.
28125 (gimple_catch_handler_ptr): Likewise.
28126 (gimple_catch_set_types): Likewise.
28127 (gimple_catch_set_handler): Likewise.
28128 (gimple_eh_filter_types): Likewise.
28129 (gimple_eh_filter_types_ptr): Likewise.
28130 (gimple_eh_filter_failure_ptr): Likewise.
28131 (gimple_eh_filter_set_types): Likewise.
28132 (gimple_eh_filter_set_failure): Likewise.
28133 (gimple_eh_must_not_throw_fndecl): Likewise.
28134 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28135 (gimple_eh_else_n_body_ptr): Likewise.
28136 (gimple_eh_else_e_body_ptr): Likewise.
28137 (gimple_eh_else_set_n_body): Likewise.
28138 (gimple_eh_else_set_e_body): Likewise.
28139 (gimple_try_eval_ptr): Likewise.
28140 (gimple_try_cleanup_ptr): Likewise.
28141 (gimple_try_set_eval): Likewise.
28142 (gimple_try_set_cleanup): Likewise.
28143 (gimple_wce_cleanup_ptr): Likewise.
28144 (gimple_wce_set_cleanup): Likewise.
28145 (gimple_phi_capacity): Likewise.
28146 (gimple_phi_num_args): Likewise.
28147 (gimple_phi_result): Likewise.
28148 (gimple_phi_result_ptr): Likewise.
28149 (gimple_phi_set_result): Likewise.
28150 (gimple_phi_arg): Likewise.
28151 (gimple_phi_set_arg): Likewise.
28152 (gimple_resx_region): Likewise.
28153 (gimple_resx_set_region): Likewise.
28154 (gimple_eh_dispatch_region): Likewise.
28155 (gimple_eh_dispatch_set_region): Likewise.
28156 (gimple_omp_critical_name): Likewise.
28157 (gimple_omp_critical_name_ptr): Likewise.
28158 (gimple_omp_critical_set_name): Likewise.
28159 (gimple_omp_for_clauses): Likewise.
28160 (gimple_omp_for_clauses_ptr): Likewise.
28161 (gimple_omp_for_set_clauses): Likewise.
28162 (gimple_omp_for_collapse): Likewise.
28163 (gimple_omp_for_index): Likewise.
28164 (gimple_omp_for_index_ptr): Likewise.
28165 (gimple_omp_for_set_index): Likewise.
28166 (gimple_omp_for_initial): Likewise.
28167 (gimple_omp_for_initial_ptr): Likewise.
28168 (gimple_omp_for_set_initial): Likewise.
28169 (gimple_omp_for_final): Likewise.
28170 (gimple_omp_for_final_ptr): Likewise.
28171 (gimple_omp_for_set_final): Likewise.
28172 (gimple_omp_for_incr): Likewise.
28173 (gimple_omp_for_incr_ptr): Likewise.
28174 (gimple_omp_for_set_incr): Likewise.
28175 (gimple_omp_for_pre_body_ptr): Likewise.
28176 (gimple_omp_for_set_pre_body): Likewise.
28177 (gimple_omp_parallel_clauses): Likewise.
28178 (gimple_omp_parallel_clauses_ptr): Likewise.
28179 (gimple_omp_parallel_set_clauses): Likewise.
28180 (gimple_omp_parallel_child_fn): Likewise.
28181 (gimple_omp_parallel_child_fn_ptr): Likewise.
28182 (gimple_omp_parallel_set_child_fn): Likewise.
28183 (gimple_omp_parallel_data_arg): Likewise.
28184 (gimple_omp_parallel_data_arg_ptr): Likewise.
28185 (gimple_omp_parallel_set_data_arg): Likewise.
28186 (gimple_omp_task_clauses): Likewise.
28187 (gimple_omp_task_clauses_ptr): Likewise.
28188 (gimple_omp_task_set_clauses): Likewise.
28189 (gimple_omp_task_child_fn): Likewise.
28190 (gimple_omp_task_child_fn_ptr): Likewise.
28191 (gimple_omp_task_set_child_fn): Likewise.
28192 (gimple_omp_task_data_arg): Likewise.
28193 (gimple_omp_task_data_arg_ptr): Likewise.
28194 (gimple_omp_task_set_data_arg): Likewise.
28195 (gimple_omp_taskreg_clauses): Likewise.
28196 (gimple_omp_taskreg_clauses_ptr): Likewise.
28197 (gimple_omp_taskreg_set_clauses): Likewise.
28198 (gimple_omp_taskreg_child_fn): Likewise.
28199 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28200 (gimple_omp_taskreg_set_child_fn): Likewise.
28201 (gimple_omp_taskreg_data_arg): Likewise.
28202 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28203 (gimple_omp_taskreg_set_data_arg): Likewise.
28204 (gimple_omp_task_copy_fn): Likewise.
28205 (gimple_omp_task_copy_fn_ptr): Likewise.
28206 (gimple_omp_task_set_copy_fn): Likewise.
28207 (gimple_omp_task_arg_size): Likewise.
28208 (gimple_omp_task_arg_size_ptr): Likewise.
28209 (gimple_omp_task_set_arg_size): Likewise.
28210 (gimple_omp_task_arg_align): Likewise.
28211 (gimple_omp_task_arg_align_ptr): Likewise.
28212 (gimple_omp_task_set_arg_align): Likewise.
28213 (gimple_omp_single_clauses): Likewise.
28214 (gimple_omp_single_clauses_ptr): Likewise.
28215 (gimple_omp_single_set_clauses): Likewise.
28216 (gimple_omp_target_clauses): Likewise.
28217 (gimple_omp_target_clauses_ptr): Likewise.
28218 (gimple_omp_target_set_clauses): Likewise.
28219 (gimple_omp_target_child_fn): Likewise.
28220 (gimple_omp_target_child_fn_ptr): Likewise.
28221 (gimple_omp_target_set_child_fn): Likewise.
28222 (gimple_omp_target_data_arg): Likewise.
28223 (gimple_omp_target_data_arg_ptr): Likewise.
28224 (gimple_omp_target_set_data_arg): Likewise.
28225 (gimple_omp_teams_clauses): Likewise.
28226 (gimple_omp_teams_clauses_ptr): Likewise.
28227 (gimple_omp_teams_set_clauses): Likewise.
28228 (gimple_omp_sections_clauses): Likewise.
28229 (gimple_omp_sections_clauses_ptr): Likewise.
28230 (gimple_omp_sections_set_clauses): Likewise.
28231 (gimple_omp_sections_control): Likewise.
28232 (gimple_omp_sections_control_ptr): Likewise.
28233 (gimple_omp_sections_set_control): Likewise.
28234 (gimple_omp_for_set_cond): Likewise.
28235 (gimple_omp_for_cond): Likewise.
28236 (gimple_omp_atomic_store_set_val): Likewise.
28237 (gimple_omp_atomic_store_val): Likewise.
28238 (gimple_omp_atomic_store_val_ptr): Likewise.
28239 (gimple_omp_atomic_load_set_lhs): Likewise.
28240 (gimple_omp_atomic_load_lhs): Likewise.
28241 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28242 (gimple_omp_atomic_load_set_rhs): Likewise.
28243 (gimple_omp_atomic_load_rhs): Likewise.
28244 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28245 (gimple_omp_continue_control_def): Likewise.
28246 (gimple_omp_continue_control_def_ptr): Likewise.
28247 (gimple_omp_continue_set_control_def): Likewise.
28248 (gimple_omp_continue_control_use): Likewise.
28249 (gimple_omp_continue_control_use_ptr): Likewise.
28250 (gimple_omp_continue_set_control_use): Likewise.
28251 (gimple_transaction_body_ptr): Likewise.
28252 (gimple_transaction_label): Likewise.
28253 (gimple_transaction_label_ptr): Likewise.
28254 (gimple_transaction_set_body): Likewise.
28255 (gimple_transaction_set_label): Likewise.
28257 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28258 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28259 * ipa-ref.c (ipa_record_reference): Likewise.
28260 * ipa-reference.c (analyze_function): Likewise.
28261 (ipa_reference_write_optimization_summary): Likewise.
28262 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28263 (address_taken_from_non_vtable_p): Likewise.
28264 (comdat_can_be_unshared_p_1): Likewise.
28265 * lto-cgraph.c (lto_output_ref): Likewise.
28266 (add_references): Likewise.
28267 (compute_ltrans_boundary): Likewise.
28268 (output_symtab): Likewise.
28269 (input_ref): Likewise.
28270 (input_cgraph_1): Likewise.
28271 (output_cgraph_opt_summary): Likewise.
28272 * lto-streamer-out.c (lto_output): Likewise.
28273 (output_symbol_p): Likewise.
28274 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28275 (lsei_start_function_in_partition): Likewise.
28276 (lsei_next_variable_in_partition): Likewise.
28277 (lsei_start_variable_in_partition): Likewise.
28278 * symtab.c (insert_to_assembler_name_hash): Likewise.
28279 (unlink_from_assembler_name_hash): Likewise.
28280 (symtab_unregister_node): Likewise.
28281 (symtab_remove_node): Likewise.
28282 (dump_symtab_node): Likewise.
28283 (verify_symtab_base): Likewise.
28284 (verify_symtab_node): Likewise.
28285 (symtab_make_decl_local): Likewise.
28286 (symtab_alias_ultimate_target): Likewise.
28287 (symtab_resolve_alias): Likewise.
28288 (symtab_get_symbol_partitioning_class): Likewise.
28289 * tree-phinodes.c (allocate_phi_node): Likewise.
28290 (reserve_phi_args_for_new_edge): Likewise.
28291 (remove_phi_args): Likewise.
28292 * varpool.c (varpool_node_for_asm): Likewise.
28293 (varpool_remove_unreferenced_decls): Likewise.
28295 2014-04-23 Jeff Law <law@redhat.com>
28297 PR tree-optimization/60902
28298 * tree-ssa-threadedge.c
28299 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28300 invalidate outputs from statements that do not produce useful
28301 outputs for threading.
28303 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28305 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28306 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28307 machine descriptions for Stack Smashing Protector.
28309 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28311 * aarch64.md (<optab>_rol<mode>3): New pattern.
28312 (<optab>_rolsi3_uxtw): Likewise.
28313 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28315 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28317 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28318 (arm_cortex_a12_tune): Likewise.
28320 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28322 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28324 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28326 * config/arm/arm.md (arm_rev16si2): New pattern.
28327 (arm_rev16si2_alt): Likewise.
28328 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28330 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28332 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28333 (rev16<mode>2_alt): Likewise.
28334 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28335 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28336 (aarch_rev16_shleft_mask_imm_p): Likewise.
28337 (aarch_rev16_p_1): Likewise.
28338 (aarch_rev16_p): Likewise.
28339 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28340 (aarch_rev16_shright_mask_imm_p): Likewise.
28341 (aarch_rev16_shleft_mask_imm_p): Likewise.
28343 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28345 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28346 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28348 (cortex_a53_extra_costs): Likewise.
28349 (cortex_a57_extra_costs): Likewise.
28350 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28351 (cortexa7_extra_costs): Likewise.
28352 (cortexa8_extra_costs): Likewise.
28353 (cortexa12_extra_costs): Likewise.
28354 (cortexa15_extra_costs): Likewise.
28355 (v7m_extra_costs): Likewise.
28356 (arm_new_rtx_costs): Handle BSWAP.
28358 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28360 * config/arm/arm.c (cortexa8_extra_costs): New table.
28361 (arm_cortex_a8_tune): New tuning struct.
28362 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28364 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28366 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28368 2014-04-23 Richard Biener <rguenther@suse.de>
28370 * Makefile.in (OBJS): Remove loop-unswitch.o.
28371 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28372 * passes.def (pass_rtl_unswitch): Likewise.
28373 * loop-init.c (gate_rtl_unswitch): Likewise.
28374 (rtl_unswitch): Likewise.
28375 (pass_data_rtl_unswitch): Likewise.
28376 (pass_rtl_unswitch): Likewise.
28377 (make_pass_rtl_unswitch): Likewise.
28378 * rtl.h (reversed_condition): Likewise.
28379 (compare_and_jump_seq): Likewise.
28380 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28382 * loop-unroll.c (compare_and_jump_seq): Likewise.
28384 2014-04-23 Richard Biener <rguenther@suse.de>
28386 PR tree-optimization/60903
28387 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28388 commented code block.
28389 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28390 loop flags to newly created BBs and edges.
28392 2014-04-23 Nick Clifton <nickc@redhat.com>
28394 * config/msp430/msp430.c (msp430_handle_option): Move function
28396 (msp430_option_override): Simplify mcu and mcpu option handling.
28397 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28398 support for -mhwmult command line option.
28399 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28400 -mhwmult command line option.
28401 (msp430_hwmult_enabled): Delete.
28402 (msp43o_output_labelref): Add support for -mhwmult command line option.
28403 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28404 (umulsidi3): Likewise.
28405 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28406 (mcpu, mlarge, msmall): Likewise.
28407 (mhwmult): New option.
28408 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28410 (msp430_is_f5_mcu): Remove prototype.
28411 (msp430_use_f5_series_hwmult): Add prototype.
28412 * config/msp430/msp430-opts.h: New file.
28413 * common/config/msp430: New directory.
28414 * common/config/msp430/msp430-common.c: New file.
28415 * config.gcc (msp430): Remove target_has_targetm_common.
28416 * doc/invoke.texi: Document -mhwmult command line option.
28418 2014-04-23 Nick Clifton <nickc@redhat.com>
28420 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28421 default-manifest.o if it can be found in the search path.
28422 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28424 2014-04-23 Terry Guo <terry.guo@arm.com>
28426 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28428 2014-04-23 Richard Biener <rguenther@suse.de>
28430 PR middle-end/60895
28431 * tree-inline.c (declare_return_variable): Use mark_addressable.
28433 2014-04-23 Richard Biener <rguenther@suse.de>
28435 PR middle-end/60891
28436 * loop-init.c (loop_optimizer_init): Make sure to apply
28437 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28439 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28442 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28444 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28445 if flag_sanitize_undefined_trap_on_error.
28446 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28447 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28448 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28449 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28450 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28451 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28452 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28453 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28454 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28455 * ubsan.c (ubsan_instrument_unreachable): Return
28456 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28457 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28458 if flag_sanitize_undefined_trap_on_error and
28459 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28460 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28461 instrument_bool_enum_load): Emit __builtin_trap () if
28462 flag_sanitize_undefined_trap_on_error and
28463 __builtin_handle_*_abort () if !flag_sanitize_recover.
28464 * doc/invoke.texi (-fsanitize-recover,
28465 -fsanitize-undefined-trap-on-error): Document.
28467 2014-04-22 Christian Bruel <christian.bruel@st.com>
28469 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28470 Force immediates to SImode.
28472 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28474 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28475 (lroundsfsi2): New.
28476 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28477 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28478 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28479 (nios2_fpu_insn): Add entry for round.
28480 (N2FPU_NO_ERRNO_P): Define.
28481 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28483 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28485 2014-04-22 Richard Henderson <rth@redhat.com>
28487 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28488 (add<GPI>3_compare0): Remove leading * from name.
28489 (add<GPI>3_carryin): Likewise.
28490 (sub<GPI>3_compare0): Likewise.
28491 (sub<GPI>3_carryin): Likewise.
28492 (<su_optab>mulditi3): New expander.
28493 (multi3): New expander.
28494 (madd<GPI>): Remove leading * from name.
28496 2014-04-22 Martin Jambor <mjambor@suse.cz>
28498 * cgraphclones.c (cgraph_function_versioning): Copy
28499 ipa_transforms_to_apply instead of asserting it is empty.
28501 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28504 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28505 on count_exp to get mode.
28507 2014-04-22 Andrew Pinski <apinski@cavium.com>
28509 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28510 Handle TLS for ILP32.
28511 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28512 (tlsie_small_<mode>): this and handle PTR.
28513 (tlsie_small_sidi): New pattern.
28514 (tlsle_small): Change to an expand to handle ILP32.
28515 (tlsle_small_<mode>): New pattern.
28516 (tlsdesc_small): Rename to ...
28517 (tlsdesc_small_<mode>): this and handle PTR.
28519 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28521 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28523 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28525 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28526 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28527 (aarch64_types_signed_poly_qualifiers): Likewise.
28528 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28529 (aarch64_types_poly_signed_qualifiers): Likewise.
28530 (TYPES_REINTERP_SS): Type macro added.
28531 (TYPES_REINTERP_SU): Likewise.
28532 (TYPES_REINTERP_SP): Likewise.
28533 (TYPES_REINTERP_US): Likewise.
28534 (TYPES_REINTERP_PS): Likewise.
28535 (aarch64_fold_builtin): New expression folding added.
28536 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28537 Declarations removed.
28538 (REINTERP_SS): Declarations added.
28539 (REINTERP_US): Likewise.
28540 (REINTERP_PS): Likewise.
28541 (REINTERP_SU): Likewise.
28542 (REINTERP_SP): Likewise.
28543 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28544 (vreinterpretq_p8_f64): Likewise.
28545 (vreinterpret_p16_f64): Likewise.
28546 (vreinterpretq_p16_f64): Likewise.
28547 (vreinterpret_f32_f64): Likewise.
28548 (vreinterpretq_f32_f64): Likewise.
28549 (vreinterpret_f64_f32): Likewise.
28550 (vreinterpret_f64_p8): Likewise.
28551 (vreinterpret_f64_p16): Likewise.
28552 (vreinterpret_f64_s8): Likewise.
28553 (vreinterpret_f64_s16): Likewise.
28554 (vreinterpret_f64_s32): Likewise.
28555 (vreinterpret_f64_s64): Likewise.
28556 (vreinterpret_f64_u8): Likewise.
28557 (vreinterpret_f64_u16): Likewise.
28558 (vreinterpret_f64_u32): Likewise.
28559 (vreinterpret_f64_u64): Likewise.
28560 (vreinterpretq_f64_f32): Likewise.
28561 (vreinterpretq_f64_p8): Likewise.
28562 (vreinterpretq_f64_p16): Likewise.
28563 (vreinterpretq_f64_s8): Likewise.
28564 (vreinterpretq_f64_s16): Likewise.
28565 (vreinterpretq_f64_s32): Likewise.
28566 (vreinterpretq_f64_s64): Likewise.
28567 (vreinterpretq_f64_u8): Likewise.
28568 (vreinterpretq_f64_u16): Likewise.
28569 (vreinterpretq_f64_u32): Likewise.
28570 (vreinterpretq_f64_u64): Likewise.
28571 (vreinterpret_s64_f64): Likewise.
28572 (vreinterpretq_s64_f64): Likewise.
28573 (vreinterpret_u64_f64): Likewise.
28574 (vreinterpretq_u64_f64): Likewise.
28575 (vreinterpret_s8_f64): Likewise.
28576 (vreinterpretq_s8_f64): Likewise.
28577 (vreinterpret_s16_f64): Likewise.
28578 (vreinterpretq_s16_f64): Likewise.
28579 (vreinterpret_s32_f64): Likewise.
28580 (vreinterpretq_s32_f64): Likewise.
28581 (vreinterpret_u8_f64): Likewise.
28582 (vreinterpretq_u8_f64): Likewise.
28583 (vreinterpret_u16_f64): Likewise.
28584 (vreinterpretq_u16_f64): Likewise.
28585 (vreinterpret_u32_f64): Likewise.
28586 (vreinterpretq_u32_f64): Likewise.
28588 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28590 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28591 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28592 (vreinterpret_p8_s8): Likewise.
28593 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28594 (vreinterpret_p8_s16): Likewise.
28595 (vreinterpret_p8_s32): Likewise.
28596 (vreinterpret_p8_s64): Likewise.
28597 (vreinterpret_p8_f32): Likewise.
28598 (vreinterpret_p8_u8): Likewise.
28599 (vreinterpret_p8_u16): Likewise.
28600 (vreinterpret_p8_u32): Likewise.
28601 (vreinterpret_p8_u64): Likewise.
28602 (vreinterpret_p8_p16): Likewise.
28603 (vreinterpretq_p8_s8): Likewise.
28604 (vreinterpretq_p8_s16): Likewise.
28605 (vreinterpretq_p8_s32): Likewise.
28606 (vreinterpretq_p8_s64): Likewise.
28607 (vreinterpretq_p8_f32): Likewise.
28608 (vreinterpretq_p8_u8): Likewise.
28609 (vreinterpretq_p8_u16): Likewise.
28610 (vreinterpretq_p8_u32): Likewise.
28611 (vreinterpretq_p8_u64): Likewise.
28612 (vreinterpretq_p8_p16): Likewise.
28613 (vreinterpret_p16_s8): Likewise.
28614 (vreinterpret_p16_s16): Likewise.
28615 (vreinterpret_p16_s32): Likewise.
28616 (vreinterpret_p16_s64): Likewise.
28617 (vreinterpret_p16_f32): Likewise.
28618 (vreinterpret_p16_u8): Likewise.
28619 (vreinterpret_p16_u16): Likewise.
28620 (vreinterpret_p16_u32): Likewise.
28621 (vreinterpret_p16_u64): Likewise.
28622 (vreinterpret_p16_p8): Likewise.
28623 (vreinterpretq_p16_s8): Likewise.
28624 (vreinterpretq_p16_s16): Likewise.
28625 (vreinterpretq_p16_s32): Likewise.
28626 (vreinterpretq_p16_s64): Likewise.
28627 (vreinterpretq_p16_f32): Likewise.
28628 (vreinterpretq_p16_u8): Likewise.
28629 (vreinterpretq_p16_u16): Likewise.
28630 (vreinterpretq_p16_u32): Likewise.
28631 (vreinterpretq_p16_u64): Likewise.
28632 (vreinterpretq_p16_p8): Likewise.
28633 (vreinterpret_f32_s8): Likewise.
28634 (vreinterpret_f32_s16): Likewise.
28635 (vreinterpret_f32_s32): Likewise.
28636 (vreinterpret_f32_s64): Likewise.
28637 (vreinterpret_f32_u8): Likewise.
28638 (vreinterpret_f32_u16): Likewise.
28639 (vreinterpret_f32_u32): Likewise.
28640 (vreinterpret_f32_u64): Likewise.
28641 (vreinterpret_f32_p8): Likewise.
28642 (vreinterpret_f32_p16): Likewise.
28643 (vreinterpretq_f32_s8): Likewise.
28644 (vreinterpretq_f32_s16): Likewise.
28645 (vreinterpretq_f32_s32): Likewise.
28646 (vreinterpretq_f32_s64): Likewise.
28647 (vreinterpretq_f32_u8): Likewise.
28648 (vreinterpretq_f32_u16): Likewise.
28649 (vreinterpretq_f32_u32): Likewise.
28650 (vreinterpretq_f32_u64): Likewise.
28651 (vreinterpretq_f32_p8): Likewise.
28652 (vreinterpretq_f32_p16): Likewise.
28653 (vreinterpret_s64_s8): Likewise.
28654 (vreinterpret_s64_s16): Likewise.
28655 (vreinterpret_s64_s32): Likewise.
28656 (vreinterpret_s64_f32): Likewise.
28657 (vreinterpret_s64_u8): Likewise.
28658 (vreinterpret_s64_u16): Likewise.
28659 (vreinterpret_s64_u32): Likewise.
28660 (vreinterpret_s64_u64): Likewise.
28661 (vreinterpret_s64_p8): Likewise.
28662 (vreinterpret_s64_p16): Likewise.
28663 (vreinterpretq_s64_s8): Likewise.
28664 (vreinterpretq_s64_s16): Likewise.
28665 (vreinterpretq_s64_s32): Likewise.
28666 (vreinterpretq_s64_f32): Likewise.
28667 (vreinterpretq_s64_u8): Likewise.
28668 (vreinterpretq_s64_u16): Likewise.
28669 (vreinterpretq_s64_u32): Likewise.
28670 (vreinterpretq_s64_u64): Likewise.
28671 (vreinterpretq_s64_p8): Likewise.
28672 (vreinterpretq_s64_p16): Likewise.
28673 (vreinterpret_u64_s8): Likewise.
28674 (vreinterpret_u64_s16): Likewise.
28675 (vreinterpret_u64_s32): Likewise.
28676 (vreinterpret_u64_s64): Likewise.
28677 (vreinterpret_u64_f32): Likewise.
28678 (vreinterpret_u64_u8): Likewise.
28679 (vreinterpret_u64_u16): Likewise.
28680 (vreinterpret_u64_u32): Likewise.
28681 (vreinterpret_u64_p8): Likewise.
28682 (vreinterpret_u64_p16): Likewise.
28683 (vreinterpretq_u64_s8): Likewise.
28684 (vreinterpretq_u64_s16): Likewise.
28685 (vreinterpretq_u64_s32): Likewise.
28686 (vreinterpretq_u64_s64): Likewise.
28687 (vreinterpretq_u64_f32): Likewise.
28688 (vreinterpretq_u64_u8): Likewise.
28689 (vreinterpretq_u64_u16): Likewise.
28690 (vreinterpretq_u64_u32): Likewise.
28691 (vreinterpretq_u64_p8): Likewise.
28692 (vreinterpretq_u64_p16): Likewise.
28693 (vreinterpret_s8_s16): Likewise.
28694 (vreinterpret_s8_s32): Likewise.
28695 (vreinterpret_s8_s64): Likewise.
28696 (vreinterpret_s8_f32): Likewise.
28697 (vreinterpret_s8_u8): Likewise.
28698 (vreinterpret_s8_u16): Likewise.
28699 (vreinterpret_s8_u32): Likewise.
28700 (vreinterpret_s8_u64): Likewise.
28701 (vreinterpret_s8_p8): Likewise.
28702 (vreinterpret_s8_p16): Likewise.
28703 (vreinterpretq_s8_s16): Likewise.
28704 (vreinterpretq_s8_s32): Likewise.
28705 (vreinterpretq_s8_s64): Likewise.
28706 (vreinterpretq_s8_f32): Likewise.
28707 (vreinterpretq_s8_u8): Likewise.
28708 (vreinterpretq_s8_u16): Likewise.
28709 (vreinterpretq_s8_u32): Likewise.
28710 (vreinterpretq_s8_u64): Likewise.
28711 (vreinterpretq_s8_p8): Likewise.
28712 (vreinterpretq_s8_p16): Likewise.
28713 (vreinterpret_s16_s8): Likewise.
28714 (vreinterpret_s16_s32): Likewise.
28715 (vreinterpret_s16_s64): Likewise.
28716 (vreinterpret_s16_f32): Likewise.
28717 (vreinterpret_s16_u8): Likewise.
28718 (vreinterpret_s16_u16): Likewise.
28719 (vreinterpret_s16_u32): Likewise.
28720 (vreinterpret_s16_u64): Likewise.
28721 (vreinterpret_s16_p8): Likewise.
28722 (vreinterpret_s16_p16): Likewise.
28723 (vreinterpretq_s16_s8): Likewise.
28724 (vreinterpretq_s16_s32): Likewise.
28725 (vreinterpretq_s16_s64): Likewise.
28726 (vreinterpretq_s16_f32): Likewise.
28727 (vreinterpretq_s16_u8): Likewise.
28728 (vreinterpretq_s16_u16): Likewise.
28729 (vreinterpretq_s16_u32): Likewise.
28730 (vreinterpretq_s16_u64): Likewise.
28731 (vreinterpretq_s16_p8): Likewise.
28732 (vreinterpretq_s16_p16): Likewise.
28733 (vreinterpret_s32_s8): Likewise.
28734 (vreinterpret_s32_s16): Likewise.
28735 (vreinterpret_s32_s64): Likewise.
28736 (vreinterpret_s32_f32): Likewise.
28737 (vreinterpret_s32_u8): Likewise.
28738 (vreinterpret_s32_u16): Likewise.
28739 (vreinterpret_s32_u32): Likewise.
28740 (vreinterpret_s32_u64): Likewise.
28741 (vreinterpret_s32_p8): Likewise.
28742 (vreinterpret_s32_p16): Likewise.
28743 (vreinterpretq_s32_s8): Likewise.
28744 (vreinterpretq_s32_s16): Likewise.
28745 (vreinterpretq_s32_s64): Likewise.
28746 (vreinterpretq_s32_f32): Likewise.
28747 (vreinterpretq_s32_u8): Likewise.
28748 (vreinterpretq_s32_u16): Likewise.
28749 (vreinterpretq_s32_u32): Likewise.
28750 (vreinterpretq_s32_u64): Likewise.
28751 (vreinterpretq_s32_p8): Likewise.
28752 (vreinterpretq_s32_p16): Likewise.
28753 (vreinterpret_u8_s8): Likewise.
28754 (vreinterpret_u8_s16): Likewise.
28755 (vreinterpret_u8_s32): Likewise.
28756 (vreinterpret_u8_s64): Likewise.
28757 (vreinterpret_u8_f32): Likewise.
28758 (vreinterpret_u8_u16): Likewise.
28759 (vreinterpret_u8_u32): Likewise.
28760 (vreinterpret_u8_u64): Likewise.
28761 (vreinterpret_u8_p8): Likewise.
28762 (vreinterpret_u8_p16): Likewise.
28763 (vreinterpretq_u8_s8): Likewise.
28764 (vreinterpretq_u8_s16): Likewise.
28765 (vreinterpretq_u8_s32): Likewise.
28766 (vreinterpretq_u8_s64): Likewise.
28767 (vreinterpretq_u8_f32): Likewise.
28768 (vreinterpretq_u8_u16): Likewise.
28769 (vreinterpretq_u8_u32): Likewise.
28770 (vreinterpretq_u8_u64): Likewise.
28771 (vreinterpretq_u8_p8): Likewise.
28772 (vreinterpretq_u8_p16): Likewise.
28773 (vreinterpret_u16_s8): Likewise.
28774 (vreinterpret_u16_s16): Likewise.
28775 (vreinterpret_u16_s32): Likewise.
28776 (vreinterpret_u16_s64): Likewise.
28777 (vreinterpret_u16_f32): Likewise.
28778 (vreinterpret_u16_u8): Likewise.
28779 (vreinterpret_u16_u32): Likewise.
28780 (vreinterpret_u16_u64): Likewise.
28781 (vreinterpret_u16_p8): Likewise.
28782 (vreinterpret_u16_p16): Likewise.
28783 (vreinterpretq_u16_s8): Likewise.
28784 (vreinterpretq_u16_s16): Likewise.
28785 (vreinterpretq_u16_s32): Likewise.
28786 (vreinterpretq_u16_s64): Likewise.
28787 (vreinterpretq_u16_f32): Likewise.
28788 (vreinterpretq_u16_u8): Likewise.
28789 (vreinterpretq_u16_u32): Likewise.
28790 (vreinterpretq_u16_u64): Likewise.
28791 (vreinterpretq_u16_p8): Likewise.
28792 (vreinterpretq_u16_p16): Likewise.
28793 (vreinterpret_u32_s8): Likewise.
28794 (vreinterpret_u32_s16): Likewise.
28795 (vreinterpret_u32_s32): Likewise.
28796 (vreinterpret_u32_s64): Likewise.
28797 (vreinterpret_u32_f32): Likewise.
28798 (vreinterpret_u32_u8): Likewise.
28799 (vreinterpret_u32_u16): Likewise.
28800 (vreinterpret_u32_u64): Likewise.
28801 (vreinterpret_u32_p8): Likewise.
28802 (vreinterpret_u32_p16): Likewise.
28803 (vreinterpretq_u32_s8): Likewise.
28804 (vreinterpretq_u32_s16): Likewise.
28805 (vreinterpretq_u32_s32): Likewise.
28806 (vreinterpretq_u32_s64): Likewise.
28807 (vreinterpretq_u32_f32): Likewise.
28808 (vreinterpretq_u32_u8): Likewise.
28809 (vreinterpretq_u32_u16): Likewise.
28810 (vreinterpretq_u32_u64): Likewise.
28811 (vreinterpretq_u32_p8): Likewise.
28812 (vreinterpretq_u32_p16): Likewise.
28814 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28816 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28818 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28820 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28821 (vqnegd_s64): Likewise.
28822 (vqabs_s64): Likewise.
28823 (vqabsd_s64): Likewise.
28825 2014-04-22 Richard Henderson <rth@redhat.com>
28827 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28828 computation to the top of the loop.
28830 2014-04-22 Renlin <renlin.li@arm.com>
28831 Jiong Wang <jiong.wang@arm.com>
28833 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28834 * config/aarch64/aarch64.c (aarch64_layout_frame)
28835 (aarch64_initial_elimination_offset): Likewise.
28837 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28839 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28842 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28844 * machmode.h (bitwise_mode_for_mode): Declare.
28845 * stor-layout.h (bitwise_type_for_mode): Likewise.
28846 * stor-layout.c (bitwise_mode_for_mode): New function.
28847 (bitwise_type_for_mode): Likewise.
28848 * builtins.c (fold_builtin_memory_op): Use it instead of
28849 int_mode_for_mode and build_nonstandard_integer_type.
28851 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28853 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28854 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28855 (*-*-solaris2*): Simplify.
28856 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28857 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28858 *-*-solaris2.9* handling.
28860 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28862 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28863 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28864 handling, simplify.
28865 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28866 * configure: Regenerate.
28868 * config/i386/sol2-9.h: Remove.
28870 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28871 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28872 Remove Solaris 9 references.
28874 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28876 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28877 (floatuns<GPI:mode><GPF:mode>2): Remove.
28878 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28879 and floatuns conversions.
28880 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28881 and floatuns conversions.
28882 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28883 (w1,w2): New mode attributes for inequal width conversions.
28885 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28887 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28888 the output asm format.
28890 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28892 * config/aarch64/aarch64-simd.md
28893 (aarch64_cm<optab>di): Always split.
28894 (*aarch64_cm<optab>di): New.
28895 (aarch64_cmtstdi): Always split.
28896 (*aarch64_cmtstdi): New.
28898 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28900 PR tree-optimization/60823
28901 * omp-low.c (ipa_simd_modify_function_body): Go through
28902 all SSA_NAMEs and for those refering to vector arguments
28903 which are going to be replaced adjust SSA_NAME_VAR and,
28904 if it is a default definition, change it into a non-default
28905 definition assigned at the beginning of function from new_decl.
28906 (ipa_simd_modify_stmt_ops): Rewritten.
28907 * tree-dfa.c (set_ssa_default_def): When removing default def,
28908 check for NULL loc instead of NULL *loc.
28910 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28912 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28913 restrictions on core registers for DImode values in Thumb2.
28915 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28917 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28918 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28920 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28922 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28923 (*iordi_notzesidi_di): Likewise.
28924 (*iordi_notsesidi_di): Likewise.
28926 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28928 * config/arm/arm-protos.h (tune_params): New struct members.
28929 * config/arm/arm.c: Initialise tune_params per processor.
28930 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28931 for speed, based on new tune_params.
28933 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28935 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28936 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28937 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28938 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28939 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28940 (vrnda_f64): Likewise.
28941 (vrndi_f64): Likewise.
28942 (vrndm_f64): Likewise.
28943 (vrndn_f64): Likewise.
28944 (vrndp_f64): Likewise.
28945 (vrndx_f64): Likewise.
28947 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28949 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28950 GET_MODE_SIZE argument is enum machine_mode.
28952 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28955 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28956 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28958 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28960 PR middle-end/60281
28961 * asan.c (asan_emit_stack_protection): Force the base to align to
28962 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28963 appropriate bits if STRICT_ALIGNMENT.
28964 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28966 (expand_used_vars): Leave a space in the stack frame for alignment
28967 if STRICT_ALIGNMENT.
28969 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28971 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28973 (gimple_store_p): Likewise.
28974 (gimple_assign_load_p): Likewise.
28975 (gimple_assign_cast_p): Likewise.
28976 (gimple_clobber_p): Likewise.
28978 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28979 rather than a gimple.
28980 (gimple_assign_cast_p): Likewise.
28982 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28985 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28986 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28989 more debug information for E500 if -mdebug=reg.
28991 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28994 * config/i386/i386.c (ix86_expand_builtin)
28995 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28996 register for target RTX.
28997 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28999 2014-04-18 Cong Hou <congh@google.com>
29001 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29002 the widen-mult pattern by handling two operands with different sizes,
29003 and operands whose size is smaller than half of the result type.
29005 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29007 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29008 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29009 (do_estimate_edge_time): Compute it.
29010 * ipa-inline.c (want_inline_small_function_p): Bypass
29011 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29013 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29015 * ipa-inline.c (spec_rem): New static variable.
29016 (dump_overall_stats): New function.
29017 (dump_inline_stats): New function.
29019 2014-04-18 Richard Henderson <rth@redhat.com>
29021 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29022 to GET_MODE_SIZE, not a reg_class_t.
29024 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29026 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29027 (vsx_xxmrglw_<mode>): Likewise.
29029 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29032 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29033 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29034 (rs6000_init_hard_regno_mode_ok): Likewise.
29036 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29038 * ipa-inline.c (inline_small_functions): Account only non-cold
29040 * doc/invoke.texi (inline-unit-growth): Update documentation.
29042 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29044 * config/rs6000/rs6000.md (addti3, subti3): New.
29046 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29049 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29050 comment. Check optimize_insn_for_size_p instead of
29051 optimize_insn_for_speed_p.
29053 2014-04-17 Martin Jambor <mjambor@suse.cz>
29055 * gimple-iterator.c (gsi_start_edge): New function.
29056 * gimple-iterator.h (gsi_start_edge): Declare.
29057 * tree-sra.c (single_non_eh_succ): New function.
29058 (disqualify_ops_if_throwing_stmt): Renamed to
29059 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29060 having one non-EH successor BB.
29061 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29062 generate loads into replacements.
29063 (sra_modify_assign): Likewise and and also use the simple path for
29065 (sra_modify_function_body): Commit statements on edges.
29067 2014-04-17 Richard Biener <rguenther@suse.de>
29069 PR middle-end/60849
29070 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29071 comparison results and add clarifying comment.
29073 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29075 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29076 (blank_mode): Initialize it.
29077 (emit_mode_size_inline, emit_mode_nunits_inline,
29078 emit_mode_inner_inline): New functions.
29079 (emit_insn_modes_h): Call them and surround their output with
29080 #if GCC_VERSION >= 4001 ... #endif.
29081 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29082 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29083 mode_* arrays if the argument is __builtin_constant_p.
29084 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29085 is enum machine_mode.
29087 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29089 * passes.c (opt_pass::execute): Adjust.
29090 (pass_manager::execute_pass_mode_switching): Likewise.
29091 (early_local_passes::execute): Likewise.
29092 (execute_one_pass): Pass cfun to the pass's execute method.
29093 * tree-pass.h (opt_pass::execute): Add function * argument.
29094 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29095 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29096 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29097 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29098 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29099 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29100 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29101 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29102 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29103 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29104 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29105 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29106 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29107 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29108 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29109 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29110 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29111 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29112 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29113 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29114 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29115 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29116 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29117 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29118 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29119 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29120 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29121 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29122 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29125 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29127 * passes.c (opt_pass::gate): Take function * argument.
29128 (gate_all_early_local_passes): Merge into
29129 (early_local_passes::gate): this.
29130 (gate_all_early_optimizations): Merge into
29131 (all_early_optimizations::gate): this.
29132 (gate_all_optimizations): Mege into
29133 (all_optimizations::gate): this.
29134 (gate_all_optimizations_g): Merge into
29135 (all_optimizations_g::gate): this.
29136 (gate_rest_of_compilation): Mege into
29137 (rest_of_compilation::gate): this.
29138 (gate_postreload): Merge into
29139 (postreload::gate): this.
29140 (dump_one_pass): Pass cfun to the pass's gate method.
29141 (execute_ipa_summary_passes): Likewise.
29142 (execute_one_pass): Likewise.
29143 (ipa_write_summaries_2): Likewise.
29144 (ipa_write_optimization_summaries_1): Likewise.
29145 (ipa_read_summaries_1): Likewise.
29146 (ipa_read_optimization_summaries_1): Likewise.
29147 (execute_ipa_stmt_fixups): Likewise.
29148 * tree-pass.h (opt_pass::gate): Add function * argument.
29149 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29150 combine-stack-adj.c, combine.c, compare-elim.c,
29151 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29152 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29153 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29154 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29155 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29156 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29157 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29158 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29159 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29160 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29161 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29162 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29163 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29164 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29165 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29166 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29167 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29168 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29169 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29170 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29171 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29172 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29173 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29174 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29175 var-tracking.c, vtable-verify.c, web.c: Adjust.
29177 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29179 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29180 * configure: Regenerate.
29182 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29184 * passes.c (dump_one_pass): don't check pass->has_gate.
29185 (execute_ipa_summary_passes): Likewise.
29186 (execute_one_pass): Likewise.
29187 (ipa_write_summaries_2): Likewise.
29188 (ipa_write_optimization_summaries_1): Likewise.
29189 (ipa_read_optimization_summaries_1): Likewise.
29190 (execute_ipa_stmt_fixups): Likewise.
29191 * tree-pass.h (pass_data::has_gate): Remove.
29192 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29193 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29194 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29195 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29196 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29197 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29198 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29199 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29200 gimple-low.c, gimple-ssa-isolate-paths.c,
29201 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29202 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29203 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29204 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29205 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29206 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29207 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29208 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29209 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29210 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29211 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29212 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29213 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29214 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29215 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29216 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29217 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29218 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29219 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29220 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29221 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29222 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29225 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29227 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29229 * passes.c (pass_manager::register_dump_files_1): Merge into
29230 (pass_manager::register_dump_files): this, and remove its handling of
29231 properties since the pass always has the properties anyway.
29232 (pass_manager::pass_manager): Adjust.
29234 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29236 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29237 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29238 dealing with properties.
29239 (pass_manager::register_dump_files): Adjust.
29241 2014-03-20 Mark Wielaard <mjw@redhat.com>
29243 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29244 then represent the bound as normal constant value.
29246 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29249 Forward port from 4.8 branch
29250 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29252 * config/i386/bmiintrin.h (_blsi_u32): New.
29253 (_blsi_u64): Ditto.
29254 (_blsr_u32): Ditto.
29255 (_blsr_u64): Ditto.
29256 (_blsmsk_u32): Ditto.
29257 (_blsmsk_u64): Ditto.
29258 (_tzcnt_u32): Ditto.
29259 (_tzcnt_u64): Ditto.
29261 2014-04-17 Kito Cheng <kito@0xlab.org>
29263 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29265 2014-04-17 Richard Biener <rguenther@suse.de>
29267 PR middle-end/60849
29268 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29269 boolean results for comparisons.
29271 2014-04-17 Richard Biener <rguenther@suse.de>
29273 PR tree-optimization/60836
29274 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29275 initial PHI args to be gimple values.
29277 2014-04-17 Richard Biener <rguenther@suse.de>
29279 PR tree-optimization/60841
29280 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29281 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29282 of stmts to SLP build.
29283 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29284 (vect_analyze_slp): Likewise.
29285 (vect_analyze_slp_instance): Likewise.
29286 (vect_build_slp_tree): Limit overall SLP tree growth.
29287 * tree-vectorizer.h (vect_analyze_data_refs,
29288 vect_analyze_slp): Adjust prototypes.
29290 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29292 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29295 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29297 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29298 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29299 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29300 for TARGET_SLOW_PSHUFB
29302 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29304 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29305 * config/i386/i386.c (intel_cost): Ditto.
29307 2014-04-17 Joey Ye <joey.ye@arm.com>
29309 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29311 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29313 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29314 with -fuse-profile.
29316 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29318 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29319 (type_all_derivations_known_p): New predicate.
29320 (type_all_ctors_visible_p): New predicate.
29321 (type_possibly_instantiated_p): New predicate.
29322 (get_odr_type): Compute all_derivations_known.
29323 (dump_odr_type): Dump the flag.
29324 (maybe_record_type): Cleanup.
29325 (record_target_from_binfo): Add bases_to_consider array;
29326 record bases for types w/o instances and skip CXX destructor.
29327 (possible_polymorphic_call_targets_1): Add bases_to_consider
29328 and consider_construction parameters; check if type may have instance.
29329 (get_polymorphic_call_info): Set maybe_in_construction to true
29330 when we know nothing.
29331 (record_targets_from_bases): Skip CXX destructors; they are
29332 never called for types in construction.
29333 (possible_polymorphic_call_targets): Do not record target when
29334 type may not have instance.
29336 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29339 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29340 external aliases alive, too.
29342 2014-04-16 Andrew Pinski <apinski@cavium.com>
29344 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29347 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29349 * final.c (compute_alignments): Do not apply loop alignment to a block
29350 falling through to the exit.
29352 2014-04-16 Catherine Moore <clm@codesourcery.com>
29354 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29355 Adjust constraints for microMIPS store patterns.
29357 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29359 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29361 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29363 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29364 (append_use): Run at -O0.
29365 (append_vdef): Likewise.
29366 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29367 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29369 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29371 PR tree-optimization/60844
29372 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29373 (propagate_op_to_single_use, remove_visited_stmt_chain,
29374 linearize_expr, repropagate_negates, reassociate_bb): Use it
29375 instead of gsi_remove.
29377 2014-04-16 Martin Jambor <mjambor@suse.cz>
29379 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29380 ipa_transforms_to_apply.
29381 (cgraph_function_versioning): Assert that old_node has empty
29382 ipa_transforms_to_apply.
29383 * trans-mem.c (ipa_tm_create_version): Likewise.
29384 * tree-inline.c (tree_function_versioning): Do not duplicate
29385 ipa_transforms_to_apply.
29387 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29390 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29392 Pass necessary as flags on 64-bit Solaris/x86.
29393 Use lowercase relocs for x86_64-*-*.
29394 * configure: Regenerate.
29396 2014-04-15 Jan Hubicka <jh@suse.cz>
29398 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29399 (maybe_record_node, likely_target_p): Use it.
29401 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29404 Revert following patch
29406 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29409 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29410 software floating point or no floating point registers, do not
29411 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29412 in GPRs that occurs after we tested for GPRs that would never be
29415 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29416 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29417 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29418 specifically allow DDmode, since that does not use the SPE SIMD
29421 2014-03-21 Mark Wielaard <mjw@redhat.com>
29423 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29424 as unsigned or int depending on type and value used.
29426 2014-04-15 Richard Biener <rguenther@suse.de>
29428 PR rtl-optimization/56965
29429 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29430 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29432 * alias.c (true_dependence_1): Do not call
29433 nonoverlapping_component_refs_p.
29434 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29435 nonoverlapping_component_refs_p.
29436 (indirect_refs_may_alias_p): Likewise.
29438 2014-04-15 Teresa Johnson <tejohnson@google.com>
29440 * cfg.c (dump_bb_info): Fix flags check.
29441 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29443 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29445 PR rtl-optimization/60663
29446 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29449 2014-04-15 Richard Biener <rguenther@suse.de>
29451 * lto-streamer.h (LTO_major_version): Bump to 4.
29453 2014-04-15 Richard Biener <rguenther@suse.de>
29455 * common.opt (lto_partition_model): New enum.
29456 (flto-partition=): Merge separate options with a single with argument,
29457 add -flto-partition=one support.
29458 * flag-types.h (enum lto_partition_model): Declare.
29459 * opts.c (finish_options): Remove duplicate -flto-partition=
29461 * lto-wrapper.c (run_gcc): Adjust.
29463 2014-04-15 Richard Biener <rguenther@suse.de>
29465 * alias.c (ncr_compar): New function.
29466 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29468 2014-04-15 Richard Biener <rguenther@suse.de>
29470 * alias.c (record_component_aliases): Do not walk BINFOs.
29472 2014-04-15 Richard Biener <rguenther@suse.de>
29474 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29475 Add struct function argument and adjust.
29476 (find_func_aliases_for_call): Likewise.
29477 (find_func_aliases): Likewise.
29478 (find_func_clobbers): Likewise.
29479 (intra_create_variable_infos): Likewise.
29480 (compute_points_to_sets): Likewise.
29481 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29483 2014-04-15 Richard Biener <rguenther@suse.de>
29485 * tree.c (iterative_hash_expr): Use enum tree_code_class
29486 to store TREE_CODE_CLASS.
29487 (tree_block): Likewise.
29488 (tree_set_block): Likewise.
29489 * tree.h (fold_build_pointer_plus_loc): Use
29490 convert_to_ptrofftype_loc.
29492 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29495 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29498 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29500 * cfgloop.h (struct loop): Move force_vectorize down.
29501 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29502 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29503 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29504 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29505 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29506 * tree-core.h (enum annot_expr_kind): Add new kind values.
29507 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29508 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29510 * tree.def (ANNOTATE_EXPR): Tweak comment.
29512 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29514 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29517 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29519 * tree.h (TYPE_IDENTIFIER): Declare.
29520 * tree.c (subrange_type_for_debug_p): Use it.
29521 * godump.c (go_format_type): Likewise.
29522 * dwarf2out.c (is_cxx_auto, modified_type_die,
29523 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29524 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29526 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29529 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29531 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29533 * config/i386/i386.c (examine_argument): Return bool. Return true if
29534 parameter should be passed in memory.
29535 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29536 (construct_container): Update calls to examine_argument.
29537 (function_arg_advance_64): Ditto.
29538 (return_in_memory_32): Merge with ix86_return_in_memory.
29539 (return_in_memory_64): Ditto.
29540 (return_in_memory_ms_64): Ditto.
29542 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29544 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29545 * coverage.c (coverage_compute_profile_id): Handle externally visible
29548 2014-04-14 Martin Jambor <mjambor@suse.cz>
29550 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29551 DECL_DISREGARD_INLINE_LIMITS functions.
29553 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29556 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29558 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29561 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29562 optimize_insn_for_speed_p instead of
29563 optimize_function_for_speed_p.
29565 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29567 * doc/invoke.texi (free): Document AArch64.
29569 2014-04-14 Richard Biener <rguenther@suse.de>
29571 PR tree-optimization/60042
29572 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29573 (insert_into_preds_of_block): Do not prevent PHI insertion
29574 for REFERENCE exprs here ...
29575 (eliminate_dom_walker::before_dom_children): ... but prevent
29576 their use here under similar conditions when applied to the
29577 IL after PRE optimizations.
29579 2014-04-14 Richard Biener <rguenther@suse.de>
29581 * passes.def: Move early points-to after early SRA.
29583 2014-04-14 Richard Biener <rguenther@suse.de>
29585 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29586 check for which sign-changes we allow when forwarding
29587 a converted value into a switch.
29589 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29591 * stor-layout.c (place_field): Finalize non-constant offset for the
29594 2014-04-14 Richard Biener <rguenther@suse.de>
29596 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29598 (expand_switch_using_bit_tests_p): Likewise.
29599 (process_switch): Compute and pass on speed_p based on the
29601 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29602 optimize_bb_for_speed_p.
29604 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29606 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29607 * function.h (struct function): Rename has_force_vect_loops into
29608 has_force_vectorize_loops.
29609 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29610 (input_struct_function_base): Likewise.
29611 * lto-streamer-out.c (output_cfg): Likewise.
29612 (output_struct_function_base): Likewise.
29613 * omp-low.c (expand_omp_simd): Likewise.
29614 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29615 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29616 (version_loop_for_if_conversion): Likewise.
29617 (tree_if_conversion): Likewise.
29618 (main_tree_if_conversion): Likewise.
29619 (gate_tree_if_conversion): Likewise.
29620 * tree-inline.c (copy_loops): Likewise.
29621 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29622 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29623 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29624 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29625 * tree-vectorizer.c (vectorize_loops): Likewise.
29626 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29628 2014-04-14 Richard Biener <rguenther@suse.de>
29631 * lto-streamer-out.c (wrap_refs): New function.
29632 (lto_output): Wrap symbol references in global initializes in
29633 type-preserving MEM_REFs.
29635 2014-04-14 Christian Bruel <christian.bruel@st.com>
29637 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29639 2014-04-14 Christian Bruel <christian.bruel@st.com>
29641 * config/sh/sh.md (setmemqi): New expand pattern.
29642 * config/sh/sh.h (CLEAR_RATIO): Define.
29643 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29644 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29646 2014-04-14 Richard Biener <rguenther@suse.de>
29648 PR middle-end/55022
29649 * fold-const.c (negate_expr_p): Don't negate directional rounding
29651 (fold_negate_expr): Likewise.
29653 2014-04-14 Richard Biener <rguenther@suse.de>
29655 PR tree-optimization/59817
29656 PR tree-optimization/60453
29657 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29658 recursion to catch all CHRECs in the scalar evolution and restrict
29659 the predicate for the remains appropriately.
29661 2014-04-12 Catherine Moore <clm@codesourcery.com>
29663 * config/mips/constraints.md: Add new register constraint "kb".
29664 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29665 (*movhi_internal): Likewise.
29666 (*movqi_internal): Likewise.
29667 * config/mips/mips.h (M16_STORE_REGS): New register class.
29668 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29669 (REG_CLASS_CONTENTS): Likewise.
29670 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29672 2014-04-11 Tobias Burnus <burnus@net-b.de>
29675 * doc/invoke.texi (-Wformat-signedness): Document it.
29676 (Wformat=2): Mention that this enables -Wformat-signedness.
29678 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29680 * common/config/epiphany/epiphany-common.c
29681 (epiphany_option_optimization_table): Enable section anchors by
29682 default at -O1 or higher.
29683 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29684 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29685 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29686 carries no extra cost.
29687 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29688 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29689 * config/epiphany/predicates.md (memclob_operand): New predicate.
29690 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29691 Use memclob_operand predicate and X constraint for operand 3.
29693 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29695 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29696 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29699 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29701 PR rtl-optimization/60651
29702 * mode-switching.c (optimize_mode_switching): Make sure to emit
29703 sets of a lower numbered entity before sets of a higher numbered
29704 entity to a mode of the same or lower priority.
29705 When creating a seginfo for a basic block that starts with a code
29706 label, move the insertion point past the code label.
29707 (new_seginfo): Document and enforce requirement that
29708 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29709 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29710 * doc/tm.texi: Regenerate.
29712 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29715 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29717 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29719 * BASE-VER: Set to 4.10.0.
29721 2014-04-11 Tobias Burnus <burnus@net-b.de>
29724 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29725 * doc/gcc.texi (Service): Update description in the @menu
29726 * doc/invoke.texi (Option Summary): Remove misplaced and
29729 2014-04-11 Steve Ellcey <sellcey@mips.com>
29730 Jakub Jelinek <jakub@redhat.com>
29732 PR middle-end/60556
29733 * expr.c (convert_move): Use emit_store_flag_force instead of
29734 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29737 2014-04-11 Richard Biener <rguenther@suse.de>
29739 PR middle-end/60797
29740 * varasm.c (assemble_alias): Avoid endless error reporting
29741 recursion by setting TREE_ASM_WRITTEN.
29743 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29745 * config/s390/s390.md: Add a splitter for NOT rtx.
29747 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29749 PR rtl-optimization/60663
29750 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29752 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29753 Jakub Jelinek <jakub@redhat.com>
29756 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29757 flag from decl_node to node.
29759 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29762 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29763 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29764 ameliorating the cases where it can be.
29766 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29769 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29771 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29772 (loadsync_<mode>): Change mode.
29773 (load_quadpti, store_quadpti): New.
29774 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29775 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29776 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29778 2014-04-09 Cong Hou <congh@google.com>
29781 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29784 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29786 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29787 instead of vnor to exploit possible fusion opportunity in the
29789 (altivec_expand_vec_perm_const_le): Likewise.
29791 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29793 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29794 (loadsync_<mode>): Change mode.
29795 (load_quadpti, store_quadpti): New.
29796 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29797 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29799 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29802 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29803 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29804 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29806 2014-04-08 Richard Biener <rguenther@suse.de>
29808 PR middle-end/60706
29809 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29810 a 64bit widest int print double-int similar to on HWI64 hosts.
29812 2014-04-08 Richard Biener <rguenther@suse.de>
29814 PR tree-optimization/60785
29815 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29816 default defs properly.
29818 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29820 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29821 (Weffc++): Likewise.
29823 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29825 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29826 set completep to false rather than true.
29828 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29831 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29832 ARM_TARGET2_DWARF_FORMAT.
29834 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29837 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29838 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29841 2014-04-07 Richard Biener <rguenther@suse.de>
29843 PR tree-optimization/60766
29844 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29845 (may_eliminate_iv): Convert cand_value_at result to desired type.
29847 2014-04-07 Jason Merrill <jason@redhat.com>
29850 * common.opt (-fno-gnu-unique): Add.
29851 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29853 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29855 * haifa-sched.c: Fix outdated function reference and minor
29856 grammar errors in introductory comment.
29858 2014-04-07 Richard Biener <rguenther@suse.de>
29860 PR middle-end/60750
29861 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29862 for noreturn calls.
29863 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29865 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29868 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29869 size accounting for thunks.
29870 (pa_asm_output_mi_thunk): Use final_start_function() and
29871 final_end_function() to output function start and end directives.
29873 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29875 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29876 device specific ISA/ feature information. Remove short_sp and
29877 errata_skip ds. Add avr_device_specific_features enum to have device
29879 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29880 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29881 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29882 updated device specific info.
29883 * config/avr/avr-mcus.def: Merge device specific details to
29884 dev_attribute field.
29885 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29887 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29888 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29889 assembler if RMW isa supported by current device.
29890 * config/avr/genmultilib.awk: Update as device info structure changed.
29891 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29893 2014-04-04 Cong Hou <congh@google.com>
29895 PR tree-optimization/60656
29896 * tree-vect-stmts.c (supportable_widening_operation):
29897 Fix a bug that elements in a vector with vect_used_by_reduction
29898 property are incorrectly reordered when the operation on it is not
29899 consistant with the one in reduction operation.
29901 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29903 PR rtl-optimization/60155
29904 * gcse.c (record_set_data): New function.
29905 (single_set_gcse): New function.
29906 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29907 (hoist_code): Likewise.
29908 (get_pressure_class_and_nregs): Likewise.
29910 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29912 * explow.c (probe_stack_range): Emit a final optimization blockage.
29914 2014-04-04 Anthony Green <green@moxielogic.com>
29916 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29919 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29922 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29923 flags are set only during streaming.
29924 * ipa.c (process_references, walk_polymorphic_call_targets,
29925 symtab_remove_unreachable_nodes): Drop bodies of always inline
29926 after early inlining.
29927 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29929 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29930 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29933 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29936 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29939 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29941 (cortex_a53_fdivd): Likewise.
29943 2014-04-04 Martin Jambor <mjambor@suse.cz>
29946 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29947 Adjust all callers.
29948 * cgraph.c (clone_of_p): Also return true if thunks match.
29949 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29950 cgraph_function_or_thunk_node and an obsolete comment.
29951 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29953 (build_function_decl_skip_args): Likewise.
29954 (set_new_clone_decl_and_node_flags): New function.
29955 (duplicate_thunk_for_node): Likewise.
29956 (redirect_edge_duplicating_thunks): Likewise.
29957 (cgraph_clone_node): New parameter args_to_skip, pass it to
29958 redirect_edge_duplicating_thunks which is called instead of
29959 cgraph_redirect_edge_callee.
29960 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29961 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29963 2014-04-04 Jeff Law <law@redhat.com>
29966 * config/arm/predicates.md (const_int_I_operand): New predicate.
29967 (const_int_M_operand): Similarly.
29968 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29970 (insv_t2, extv_reg, extzv_t2): Likewise.
29971 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29972 (pop_multiple_with_writeback_and_return): Likewise.
29973 (vfp_pop_multiple_with_writeback): Likewise
29975 2014-04-04 Richard Biener <rguenther@suse.de>
29978 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29979 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29981 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29982 * gimplify.c (gimple_add_tmp_var_fn): New function.
29983 * gimple-expr.h (create_tmp_reg_fn): Declare.
29984 * gimple-expr.c (create_tmp_reg_fn): New function.
29985 * gimple-low.c (record_vars_into): Don't change cfun.
29986 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29987 code generation without cfun.
29989 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29992 * Makefile.in (install-driver): Fix shell scripting.
29994 2014-04-03 Cong Hou <congh@google.com>
29996 PR tree-optimization/60505
29997 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29998 threshold of number of iterations below which no vectorization
30000 * tree-vect-loop.c (new_loop_vec_info):
30001 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30002 * tree-vect-loop.c (vect_analyze_loop_operations):
30003 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30004 * tree-vect-loop.c (vect_transform_loop):
30005 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30006 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30007 of iterations of the loop and see if we should build the epilogue.
30009 2014-04-03 Richard Biener <rguenther@suse.de>
30011 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30012 (streamer_tree_cache_create): Adjust.
30013 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30014 to allow optional nodes array.
30015 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30016 (streamer_tree_cache_append): Likewise.
30017 (streamer_tree_cache_create): Create nodes array optionally
30018 as specified by parameter.
30019 * lto-streamer-out.c (create_output_block): Avoid maintaining
30020 the node array in the writer cache.
30021 (DFS_write_tree): Remove assertion.
30022 (produce_asm_for_decls): Free the out decl state hash table early.
30023 * lto-streamer-in.c (lto_data_in_create): Adjust for
30024 streamer_tree_cache_create prototype change.
30026 2014-04-03 Richard Biener <rguenther@suse.de>
30028 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30029 set TREE_CHAIN to NULL_TREE.
30031 2014-04-03 Richard Biener <rguenther@suse.de>
30033 PR tree-optimization/60740
30034 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30035 over all GIMPLE_COND operands.
30037 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30039 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30040 (Weffc++): Remove Scott's numbering, merge lists and reference
30043 2014-04-03 Nick Clifton <nickc@redhat.com>
30045 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30048 2014-04-03 Martin Jambor <mjambor@suse.cz>
30050 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30051 mention gcc_unreachable before failing.
30052 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30055 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30058 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30059 inconsistent code and instead mark the context inconsistent.
30060 (possible_polymorphic_call_targets): For inconsistent contexts
30061 return empty complete list.
30063 2014-04-02 Anthony Green <green@moxielogic.com>
30065 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30066 (extendqisi2, extendhisi2): Define.
30067 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30068 (WCHAR_TYPE): Change to unsigned int.
30070 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30072 PR tree-optimization/60733
30073 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30074 insertion point for PHI candidates to be the end of the feeding
30075 block for the PHI argument.
30077 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30079 PR rtl-optimization/60650
30080 * lra-constraints.c (process_alt_operands): Decrease reject for
30081 earlyclobber matching.
30083 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30085 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30087 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30089 * config/spu/spu.c (pad_bb): Do not crash when the last
30090 insn is CODE_FOR_blockage.
30092 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30094 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30095 lies outside the target mode.
30097 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30100 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30101 software floating point or no floating point registers, do not
30102 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30103 in GPRs that occurs after we tested for GPRs that would never be
30106 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30107 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30108 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30109 specifically allow DDmode, since that does not use the SPE SIMD
30112 2014-04-02 Richard Biener <rguenther@suse.de>
30114 PR middle-end/60729
30115 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30116 MODE_INTs. Properly use negv_optab.
30117 (expand_abs): Likewise.
30119 2014-04-02 Richard Biener <rguenther@suse.de>
30122 * Makefile.in (install-driver): Guard extra installs with special
30125 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30127 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30128 Document vec_vgbbd.
30130 2014-04-01 Richard Henderson <rth@redhat.com>
30133 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30134 alternative enabled before register allocation.
30136 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30138 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30139 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30141 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30142 (nios2_got_address): Update nios2_large_got_address call site.
30143 (nios2_delegitimize_address): New function.
30144 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30145 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30146 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30148 2014-04-01 Martin Husemann <martin@duskware.de>
30150 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30153 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30155 PR rtl-optimization/60604
30156 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30157 check from register_operand.
30158 (register_operand): Redefine in terms of general_operand.
30159 (nonmemory_operand): Use register_operand for the non-constant cases.
30161 2014-04-01 Richard Biener <rguenther@suse.de>
30163 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30165 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30167 * doc/invoke.texi (mapp-regs): Clarify.
30169 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30171 * config/i386/avx512fintrin.h (__v32hi): Define type.
30172 (__v64qi): Likewise.
30173 (_mm512_set1_epi8): Define.
30174 (_mm512_set1_epi16): Define.
30175 (_mm512_set4_epi32): Define.
30176 (_mm512_set4_epi64): Define.
30177 (_mm512_set4_pd): Define.
30178 (_mm512_set4_ps): Define.
30179 (_mm512_setr4_epi64): Define.
30180 (_mm512_setr4_epi32): Define.
30181 (_mm512_setr4_pd): Define.
30182 (_mm512_setr4_ps): Define.
30183 (_mm512_setzero_epi32): Define.
30185 2014-03-31 Martin Jambor <mjambor@suse.cz>
30187 PR middle-end/60647
30188 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30189 callsite_arguments_match_p. Updated all callers. Also check types of
30190 corresponding formal parameters and actual arguments.
30191 (not_all_callers_have_enough_arguments_p) Renamed to
30192 some_callers_have_mismatched_arguments_p.
30194 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30196 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30198 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30201 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30204 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30206 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30207 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30209 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30210 Use FMAMODE_NOVF512 mode iterator.
30211 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30212 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30213 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30214 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30216 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30217 Use VF_128_256 mode iterator.
30218 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30221 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30223 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30224 static chain if needed.
30226 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30229 * lra-constraints.c (index_part_to_reg): New.
30230 (process_address): Use it.
30232 2014-03-27 Jeff Law <law@redhat.com>
30233 Jakub Jelinek <jakub@redhat.com>
30236 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30237 gen_rtx_{PLUS,MULT} to build up the address expression.
30239 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30240 creating non-canonical RTL.
30242 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30245 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30246 functions; reorganize to make cheap checks first.
30247 (inline_small_functions): Do not estimate growth when dumping;
30249 * ipa-inline.h (inline_summary): Add min_size.
30250 (growth_likely_positive): New function.
30251 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30252 (set_cond_stmt_execution_predicate): Cleanup.
30253 (estimate_edge_size_and_time): Compute min_size.
30254 (estimate_calls_size_and_time): Likewise.
30255 (estimate_node_size_and_time): Likewise.
30256 (inline_update_overall_summary): Update min_size.
30257 (do_estimate_edge_time): Likewise.
30258 (do_estimate_edge_size): Update.
30259 (do_estimate_edge_hints): Update.
30260 (growth_likely_positive): New function.
30262 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30265 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30266 also if addr has VOIDmode.
30268 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30270 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30271 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30273 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30274 instructions as well as AdvancedSIMD loads.
30276 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30278 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30279 Use crypto_aese type.
30280 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30281 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30282 crypto_aese, crypto_aesmc. Move to types.md.
30283 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30285 * config/arm/iterators.md (crypto_type): Likewise.
30287 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30289 * cgraph.c: Include expr.h and tree-dfa.h.
30290 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30293 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30296 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30297 regs from checking multi-reg pseudos.
30299 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30301 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30303 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30305 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30306 if it would clobber the stack pointer, even temporarily.
30308 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30310 * mode-switching.c: Make small adjustments to the top comment.
30312 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30314 * config/rs6000/constraints.md (wD constraint): New constraint to
30315 match the constant integer to get the top DImode/DFmode out of a
30316 vector in a VSX register.
30318 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30319 match the constant integer to get the top DImode/DFmode out of a
30320 vector in a VSX register.
30322 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30325 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30328 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30329 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30331 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30332 Optimize vec_extract of 64-bit values, where the value being
30333 extracted is in the top word, where we can use scalar
30334 instructions. Add direct move and store support. Combine the big
30335 endian/little endian vector select load support into a single insn.
30336 (vsx_extract_<mode>_internal1): Likewise.
30337 (vsx_extract_<mode>_internal2): Likewise.
30338 (vsx_extract_<mode>_load): Likewise.
30339 (vsx_extract_<mode>_store): Likewise.
30340 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30341 combined into vsx_extract_<mode>_load.
30342 (vsx_extract_<mode>_one_le): Likewise.
30344 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30345 define the top 64-bit vector element.
30347 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30350 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30351 Document vec_vbpermq builtin.
30354 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30355 enable use of xxsldwi and xxpermdi builtin functions.
30356 (vec_xxpermdi): Likewise.
30358 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30359 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30361 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30363 PR rtl-optimization/60650
30364 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30366 (find_spills_for): New.
30367 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30368 Spill all pseudos on the second iteration.
30370 2014-03-27 Marek Polacek <polacek@redhat.com>
30373 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30376 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30378 * config/s390/s390.c (s390_can_use_return_insn): Check for
30379 call-saved FPRs on 31 bit.
30381 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30383 PR middle-end/60682
30384 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30385 if they need regimplification, just drop them instead of
30386 calling gimple_regimplify_operands on them.
30388 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30391 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30392 (aarch64_frame_pointer_required): Adjust logic.
30393 (aarch64_can_eliminate): Adjust logic.
30394 (aarch64_override_options_after_change): Adjust logic.
30396 2014-03-27 Dehao Chen <dehao@google.com>
30398 * ipa-inline.c (early_inliner): Update node's inline info.
30400 2014-03-26 Dehao Chen <dehao@google.com>
30402 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30403 compiler inserted conditional jumps for NAN float check.
30405 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30407 * ubsan.h (ubsan_create_data): Change second argument's type
30408 to const location_t *.
30409 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30411 (ubsan_create_data): Change second argument to const location_t *PLOC.
30412 Create Loc field whenever PLOC is non-NULL.
30413 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30414 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30418 * real.c (real_to_integer2): Change type of low to UHWI.
30420 2014-03-26 Tobias Burnus <burnus@net-b.de>
30422 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30423 (CILK_SELF_SPECS): New define.
30424 (driver_self_specs): Use it.
30426 2014-03-26 Richard Biener <rguenther@suse.de>
30428 * tree-pretty-print.c (percent_K_format): Implement special
30429 case for LTO and its stripped down BLOCK tree.
30431 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30434 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30436 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30437 one range is range_int_cst_p, but not both, at least optimize
30438 addition/subtraction of 0 and multiplication by 0 or 1.
30439 * gimple-fold.c (gimple_fold_call): Fold
30440 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30441 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30442 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30444 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30446 PR rtl-optimization/60452
30447 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30448 <case REG>: Return 1 for invalid offsets from the frame pointer.
30450 2014-03-26 Marek Polacek <polacek@redhat.com>
30453 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30456 2014-03-26 Marek Polacek <polacek@redhat.com>
30459 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30462 2014-03-26 Marek Polacek <polacek@redhat.com>
30465 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30466 multiplication in unsigned type.
30468 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30470 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30472 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30474 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30476 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30479 * cif-code.def (UNREACHABLE) New code.
30480 * ipa-inline.c (inline_small_functions): Skip edges to
30481 __builtlin_unreachable.
30482 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30483 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30484 predicate to __bulitin_unreachable.
30485 (set_cond_stmt_execution_predicate): Fix issue when
30486 invert_tree_comparison returns ERROR_MARK.
30487 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30488 propagate to inline clones.
30489 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30491 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30492 * cgraphclones.c (cgraph_clone_node): If call destination is already
30493 ureachable, do not redirect it back.
30494 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30497 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30499 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30500 Do not modify inline clones.
30502 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30504 * config/i386/i386.md (general_sext_operand): New mode attr.
30505 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30506 don't generate (sign_extend (const_int)).
30507 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30508 operands[2]. Use We constraint instead of <i> and
30509 <general_sext_operand> predicate instead of <general_operand>.
30510 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30511 * config/i386/constraints.md (We): New constraint.
30512 * config/i386/predicates.md (x86_64_sext_operand,
30513 sext_operand): New predicates.
30515 2014-03-25 Martin Jambor <mjambor@suse.cz>
30518 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30519 inconsistent devirtualizations to __builtin_unreachable.
30521 2014-03-25 Marek Polacek <polacek@redhat.com>
30524 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30526 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30528 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30529 order of elements for big-endian.
30531 2014-03-25 Richard Biener <rguenther@suse.de>
30533 PR middle-end/60635
30534 * gimplify-me.c (gimple_regimplify_operands): Update the
30537 2014-03-25 Martin Jambor <mjambor@suse.cz>
30540 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30541 (lto_output_varpool_node): Likewise.
30542 (input_overwrite_node): Likewise.
30543 (input_varpool_node): Likewise.
30545 2014-03-25 Richard Biener <rguenther@suse.de>
30547 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30548 (run_gcc): Likewise.
30550 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30552 * combine.c (simplify_compare_const): Add MODE argument.
30553 Handle mode_width 0 as very large mode_width.
30554 (try_combine, simplify_comparison): Adjust callers.
30556 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30557 type to avoid signed integer overflow.
30558 * explow.c (plus_constant): Likewise.
30560 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30562 * doc/generic.texi: Correct typos.
30564 2014-03-24 Tobias Burnus <burnus@net-b.de>
30566 * doc/invoke.texi (-flto): Expand section about
30567 using static libraries with LTO.
30569 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30571 PR rtl-optimization/60501
30572 * optabs.def (addptr3_optab): New optab.
30573 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30574 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30575 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30577 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30579 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30581 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30583 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30586 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30587 (_mm256_undefined_ps): Define.
30588 (_mm256_undefined_pd): Define.
30589 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30590 (_mm_undefined_pd): Define.
30591 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30592 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30593 (_mm512_undefined_ps): Define.
30594 (_mm512_undefined_pd): Define.
30595 Use _mm*_undefined_*.
30596 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30598 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30600 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30601 (lshr_simd): DI mode added.
30602 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30603 (aarch64_ushr_simddi): Likewise.
30604 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30605 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30606 (vshrd_n_u64): Likewise.
30608 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30610 * Makefile.in (s-macro_list): Depend on cc1.
30612 2014-03-23 Teresa Johnson <tejohnson@google.com>
30614 * ipa-utils.c (ipa_print_order): Use specified dump file.
30616 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30618 PR rtl-optimization/60601
30619 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30621 * gcc.c (eval_spec_function): Initialize save_growing_value.
30623 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30626 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30627 code == MINUS_EXPR, never swap op0 with op1.
30629 * toplev.c (init_local_tick): Avoid signed integer multiplication
30631 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30632 shift by first operand's bitsize.
30634 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30637 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30638 redefine to 1 or 0.
30639 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30640 TARGET_ISA_64BIT_P(x).
30642 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30644 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30645 pattern for vector nor instead of subtract from splat(-1).
30646 (altivec_expand_vec_perm_const_le): Likewise.
30648 2014-03-21 Richard Henderson <rth@twiddle.net>
30651 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30652 related insns after epilogue_completed.
30654 2014-03-21 Martin Jambor <mjambor@suse.cz>
30657 * cgraph.h (symtab_node): New flag body_removed.
30658 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30659 when removing bodies.
30660 * symtab.c (dump_symtab_base): Dump body_removed flag.
30661 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30662 had their bodies removed.
30664 2014-03-21 Martin Jambor <mjambor@suse.cz>
30667 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30670 2014-03-21 Richard Biener <rguenther@suse.de>
30672 PR tree-optimization/60577
30673 * tree-core.h (struct tree_base): Document nothrow_flag use
30674 in DECL_NONALIASED.
30675 * tree.h (DECL_NONALIASED): New.
30676 (may_be_aliased): Adjust.
30677 * coverage.c (build_var): Set DECL_NONALIASED.
30679 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30681 * expr.c (expand_expr_real_1): Remove outdated comment.
30683 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30685 PR middle-end/60597
30686 * ira.c (adjust_cleared_regs): Call copy_rtx on
30687 *reg_equiv[REGNO (loc)].src_p before passing it to
30688 simplify_replace_fn_rtx.
30691 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30692 into CONST, put pic register as first operand of PLUS. Use
30693 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30695 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30697 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30699 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30701 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30702 around for store forwarding issue in the FPU on the UT699.
30703 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30704 loads and operations if -mfix-ut699 is specified.
30705 (divtf3_hq): Tweak attribute.
30706 (sqrttf2_hq): Likewise.
30708 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30710 * calls.c (store_one_arg): Remove incorrect const qualification on the
30711 type of the temporary.
30712 * cfgexpand.c (expand_return): Likewise.
30713 * expr.c (expand_constructor): Likewise.
30714 (expand_expr_real_1): Likewise.
30716 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30718 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30721 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30724 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30726 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30728 * config/arm/aarch-common-protos.h
30729 (alu_cost_table): Fix spelling of "extend".
30730 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30732 2014-03-19 Richard Biener <rguenther@suse.de>
30734 PR middle-end/60553
30735 * tree-core.h (tree_type_common): Re-order pointer members
30736 to reduce recursion depth during GC walks.
30738 2014-03-19 Marek Polacek <polacek@redhat.com>
30741 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30742 before accessing it.
30744 2014-03-19 Richard Biener <rguenther@suse.de>
30747 * lto-streamer-in.c (input_function): In WPA stage do not drop
30750 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30752 PR tree-optimization/60559
30753 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30754 with build_zero_cst assignment.
30756 2014-03-18 Kai Tietz <ktietz@redhat.com>
30758 PR rtl-optimization/56356
30759 * sdbout.c (sdbout_parms): Verify that parms'
30760 incoming argument is valid.
30761 (sdbout_reg_parms): Likewise.
30763 2014-03-18 Richard Henderson <rth@redhat.com>
30766 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30767 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30768 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30770 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30772 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30773 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30774 Italicize plugin event names in description. Explain that
30775 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30776 Remind that no GCC functions should be called after PLUGIN_FINISH.
30777 Explain what pragmas with expansion are.
30779 2014-03-18 Martin Liska <mliska@suse.cz>
30781 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30782 gimple call statement is update.
30783 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30784 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30786 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30789 * ubsan.c (ubsan_instrument_unreachable): Call
30790 initialize_sanitizer_builtins.
30791 (ubsan_pass): Likewise.
30794 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30795 varpool_finalize_decl instead of rest_of_decl_compilation.
30797 2014-03-18 Richard Biener <rguenther@suse.de>
30799 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30800 by using bitmap_and_compl instead of bitmap_and_compl_into.
30801 (df_rd_transfer_function): Likewise.
30803 2014-03-18 Richard Biener <rguenther@suse.de>
30805 * doc/lto.texi (fresolution): Fix typo.
30807 2014-03-18 Richard Biener <rguenther@suse.de>
30809 * doc/invoke.texi (flto): Update for changes in 4.9.
30811 2014-03-18 Richard Biener <rguenther@suse.de>
30813 * doc/loop.texi: Remove section on the removed lambda framework.
30814 Update loop docs with recent changes in preserving loop structure.
30816 2014-03-18 Richard Biener <rguenther@suse.de>
30818 * doc/lto.texi (-fresolution): Document.
30820 2014-03-18 Richard Biener <rguenther@suse.de>
30822 * doc/contrib.texi: Adjust my name.
30824 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30827 * internal-fn.c: Include diagnostic-core.h.
30828 (expand_BUILTIN_EXPECT): New function.
30829 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30830 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30831 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30832 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30833 IFN_BUILTIN_EXPECT.
30834 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30835 Revert 3 argument __builtin_expect code.
30836 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30837 * gimple-fold.c (gimple_fold_call): Likewise.
30838 * tree.h (fold_builtin_expect): New prototype.
30839 * builtins.c (build_builtin_expect_predicate): Add predictor
30840 argument, if non-NULL, create 3 argument __builtin_expect.
30841 (fold_builtin_expect): No longer static. Add ARG2 argument,
30842 pass it through to build_builtin_expect_predicate.
30843 (fold_builtin_2): Adjust caller.
30844 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30845 * internal-fn.def (BUILTIN_EXPECT): New.
30847 2014-03-18 Tobias Burnus <burnus@net-b.de>
30850 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30851 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30852 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30854 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30857 * predict.c (combine_predictions_for_bb): Fix up formatting.
30858 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30859 fill what it points to if non-NULL.
30860 (tree_predict_by_opcode): Adjust caller, use the predictor.
30861 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30863 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30865 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30866 proper constant for the store mode.
30868 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30870 * symtab.c (change_decl_assembler_name): Fix transparent alias
30871 chain construction.
30873 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30875 * config/aarch64/aarch64.c: Correct the comments about the
30876 aarch64 stack layout.
30878 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30880 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30881 check for GF_OMP_FOR_KIND_FOR.
30883 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30885 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30886 ymm and zmm register names.
30888 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30891 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30892 note creation for the 2010-08-31 changes.
30894 2014-03-17 Marek Polacek <polacek@redhat.com>
30896 PR middle-end/60534
30897 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30898 as -fno-tree-loop-vectorize.
30899 (expand_omp_simd): Likewise.
30901 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30903 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30904 (eligible_for_call_delay): New prototype.
30905 * config/sparc/sparc.c (tls_call_delay): Rename into...
30906 (eligible_for_call_delay): ...this. Return false if the instruction
30907 cannot be put in the delay slot of a branch.
30908 (eligible_for_restore_insn): Simplify.
30909 (eligible_for_return_delay): Return false if the instruction cannot be
30910 put in the delay slot of a branch and simplify.
30911 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30912 put in the delay slot of a branch.
30913 * config/sparc/sparc.md (fix_ut699): New attribute.
30914 (tls_call_delay): Delete.
30915 (in_call_delay): Reimplement.
30916 (eligible_for_sibcall_delay): Rename into...
30917 (in_sibcall_delay): ...this.
30918 (eligible_for_return_delay): Rename into...
30919 (in_return_delay): ...this.
30920 (in_branch_delay): Reimplement.
30921 (in_uncond_branch_delay): Delete.
30922 (in_annul_branch_delay): Delete.
30924 2014-03-14 Richard Henderson <rth@redhat.com>
30927 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30928 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30929 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30930 (floathi splitters): Remove.
30931 (float<SWI48x>xf2): New pattern.
30932 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30933 code that tried to handle DImode for 32-bit, but which was excluded
30934 by the pattern's condition. Drop allocation of stack temporary.
30935 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30936 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30937 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30938 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30939 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30940 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30941 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30942 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30943 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30944 (*float<SWI48x><X87MODEF>2_i387): Remove.
30945 (all float _with_temp splitters): Remove.
30946 (*float<SWI48x><MODEF>2_i387): New pattern.
30947 (*float<SWI48><MODEF>2_sse): New pattern.
30948 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30949 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30951 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30952 Marek Polacek <polacek@redhat.com>
30954 PR middle-end/60484
30955 * common.opt (dump_base_name_prefixed): New Variable.
30956 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30957 if x_dump_base_name_prefixed is already set, set it at the end.
30959 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30961 PR rtl-optimization/60508
30962 * lra-constraints.c (get_reload_reg): Add new parameter
30964 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30965 Pass the new parameter values.
30967 2014-03-14 Richard Biener <rguenther@suse.de>
30969 * common.opt: Revert unintented changes from r205065.
30970 * opts.c: Likewise.
30972 2014-03-14 Richard Biener <rguenther@suse.de>
30974 PR middle-end/60518
30975 * cfghooks.c (split_block): Properly adjust all loops the
30976 block was a latch of.
30978 2014-03-14 Martin Jambor <mjambor@suse.cz>
30981 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30984 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30987 * config/avr/avr.c (avr_set_current_function): Pass function name
30988 through default_strip_name_encoding before sanity checking instead
30989 of skipping the first char of the assembler name.
30991 2014-03-13 Richard Henderson <rth@redhat.com>
30994 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30995 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30996 * config/i386/i386-protos.h: Likewise.
30997 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30998 in the expander instead of a splitter.
30999 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31000 any possibility of requiring a memory.
31001 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31002 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31003 (fp branch splitters): Update for ix86_split_fp_branch.
31004 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31005 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31006 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31007 (*fop_<MODEF>_2_i387): Remove f/r alternative.
31008 (*fop_<MODEF>_3_i387): Likewise.
31009 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31010 (splitters for the fop_* register patterns): Remove.
31011 (fscalexf4_i387): Rename from *fscalexf4_i387.
31012 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31014 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31016 PR tree-optimization/59779
31017 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31018 type for bitsize and maxsize instead of HOST_WIDE_INT.
31020 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31022 PR rtl-optimization/57320
31023 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31024 the CFG after thread_prologue_and_epilogue_insns.
31026 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31028 PR rtl-optimization/57189
31029 * lra-constraints.c (process_alt_operands): Disfavor spilling
31032 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31034 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31036 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31038 PR tree-optimization/59025
31039 PR middle-end/60418
31040 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31041 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31043 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31046 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31047 calls of avr_out_plus_1.
31049 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31051 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31052 BB's single pred and update the father loop's latch info later.
31054 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31056 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31060 (VEC_base): Likewise.
31061 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31062 registers, we need to swap double words in little endian mode.
31064 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31065 to be a container mode for 128-bit integer operations added in ISA
31066 2.07. Unlike TImode and PTImode, the preferred register set is
31067 the Altivec/VMX registers for the 128-bit operations.
31069 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31071 (rs6000_split_128bit_ok_p): Likewise.
31073 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31074 macros for creating ISA 2.07 normal and overloaded builtin
31075 functions with 3 arguments.
31076 (BU_P8V_OVERLOAD_3): Likewise.
31077 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31078 for use as overloaded functions.
31079 (VPERM_1TI_UNS): Likewise.
31080 (VSEL_1TI): Likewise.
31081 (VSEL_1TI_UNS): Likewise.
31082 (ST_INTERNAL_1ti): Likewise.
31083 (LD_INTERNAL_1ti): Likewise.
31084 (XXSEL_1TI): Likewise.
31085 (XXSEL_1TI_UNS): Likewise.
31086 (VPERM_1TI): Likewise.
31087 (VPERM_1TI_UNS): Likewise.
31088 (XXPERMDI_1TI): Likewise.
31089 (SET_1TI): Likewise.
31090 (LXVD2X_V1TI): Likewise.
31091 (STXVD2X_V1TI): Likewise.
31092 (VEC_INIT_V1TI): Likewise.
31093 (VEC_SET_V1TI): Likewise.
31094 (VEC_EXT_V1TI): Likewise.
31095 (EQV_V1TI): Likewise.
31096 (NAND_V1TI): Likewise.
31097 (ORC_V1TI): Likewise.
31098 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31099 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31100 overloaded builtin.
31101 (VADDUQM): Likewise.
31102 (VSUBCUQ): Likewise.
31103 (VADDEUQM): Likewise.
31104 (VADDECUQ): Likewise.
31105 (VSUBEUQM): Likewise.
31106 (VSUBECUQ): Likewise.
31108 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31109 __int128_t and __uint128_t types.
31110 (__uint128_type): Likewise.
31111 (altivec_categorize_keyword): Add support for vector __int128_t,
31112 vector __uint128_t, vector __int128, and vector unsigned __int128
31113 as a container type for TImode operations that need to be done in
31114 VSX/Altivec registers.
31115 (rs6000_macro_to_expand): Likewise.
31116 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31117 to support 128-bit integer instructions vaddcuq, vadduqm,
31118 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31119 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31121 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31122 for V1TImode, and set up preferences to use VSX/Altivec registers.
31123 Setup VSX reload handlers.
31124 (rs6000_debug_reg_global): Likewise.
31125 (rs6000_init_hard_regno_mode_ok): Likewise.
31126 (rs6000_preferred_simd_mode): Likewise.
31127 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31128 (easy_altivec_constant): Likewise.
31129 (output_vec_const_move): Likewise.
31130 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31132 (rs6000_expand_vector_extract): Likewise.
31133 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31135 (rs6000_const_vec): Add support for V1TImode.
31136 (rs6000_emit_le_vsx_load): Swap double words when loading or
31137 storing TImode/V1TImode.
31138 (rs6000_emit_le_vsx_store): Likewise.
31139 (rs6000_emit_le_vsx_move): Likewise.
31140 (rs6000_emit_move): Add support for V1TImode.
31141 (altivec_expand_ld_builtin): Likewise.
31142 (altivec_expand_st_builtin): Likewise.
31143 (altivec_expand_vec_init_builtin): Likewise.
31144 (altivec_expand_builtin): Likewise.
31145 (rs6000_init_builtins): Add support for V1TImode type. Add
31146 support for ISA 2.07 128-bit integer builtins. Define type names
31147 for the VSX/Altivec vector types.
31148 (altivec_init_builtins): Add support for overloaded vector
31149 functions with V1TImode type.
31150 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31151 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31153 (rs6000_split_128bit_ok_p): Likewise.
31154 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31155 __int128_t and vector __uint128_t.
31157 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31158 and mode attributes.
31160 (VSX_M2): Likewise.
31165 (VS_scalar): Likewise.
31166 (VS_double): Likewise.
31167 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31169 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31170 we support the ISA 2.07 128-bit integer arithmetic instructions.
31171 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31172 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31173 and TImode types for use with the builtin functions.
31174 (V1TI_type_node): Likewise.
31175 (unsigned_V1TI_type_node): Likewise.
31176 (intTI_type_internal_node): Likewise.
31177 (uintTI_type_internal_node): Likewise.
31179 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31180 128-bit builtin functions.
31181 (UNSPEC_VADDEUQM): Likewise.
31182 (UNSPEC_VADDECUQ): Likewise.
31183 (UNSPEC_VSUBCUQ): Likewise.
31184 (UNSPEC_VSUBEUQM): Likewise.
31185 (UNSPEC_VSUBECUQ): Likewise.
31186 (VM): Add V1TImode to vector mode iterators.
31188 (VI_unit): Likewise.
31189 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31190 (altivec_vaddcuq): Likewise.
31191 (altivec_vsubuqm): Likewise.
31192 (altivec_vsubcuq): Likewise.
31193 (altivec_vaddeuqm): Likewise.
31194 (altivec_vaddecuq): Likewise.
31195 (altivec_vsubeuqm): Likewise.
31196 (altivec_vsubecuq): Likewise.
31198 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31200 (BOOL_128): Likewise.
31201 (BOOL_REGS_OUTPUT): Likewise.
31202 (BOOL_REGS_OP1): Likewise.
31203 (BOOL_REGS_OP2): Likewise.
31204 (BOOL_REGS_UNARY): Likewise.
31205 (BOOL_REGS_AND_CR0): Likewise.
31207 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31208 128-bit integer builtin support.
31209 (vec_vadduqm): Likewise.
31210 (vec_vaddecuq): Likewise.
31211 (vec_vaddeuqm): Likewise.
31212 (vec_vsubecuq): Likewise.
31213 (vec_vsubeuqm): Likewise.
31214 (vec_vsubcuq): Likewise.
31215 (vec_vsubuqm): Likewise.
31217 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31218 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31219 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31220 128-bit integer add/subtract to ISA 2.07.
31222 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31224 * config/arc/arc.c (arc_predicate_delay_insns):
31225 Fix third argument passed to conditionalize_nonjump.
31227 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31229 * config/aarch64/aarch64-builtins.c
31230 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31231 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31232 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31233 instead of __builtin_lfloor.
31234 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31236 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31238 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31239 (tree_ssa_ifcombine_bb_1): New function.
31240 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31241 is an empty forwarder block to then_bb or vice versa and then_bb
31242 and else_bb are effectively swapped.
31244 2014-03-12 Christian Bruel <christian.bruel@st.com>
31247 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31248 REG_CFA_DEF_CFA note.
31249 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31250 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31252 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31254 PR tree-optimization/60454
31255 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31257 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31259 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31260 Do not define target_cpu_default2 to generic.
31261 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31262 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31263 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31265 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31266 Marc Glisse <marc.glisse@inria.fr>
31268 PR tree-optimization/60502
31269 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31270 instead of build_low_bits_mask.
31272 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31274 PR middle-end/60482
31275 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31276 if there are multiple uses, but op doesn't live on E edge.
31277 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31278 clobber stmts before __builtin_unreachable.
31280 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31282 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31283 hard_frame_pointer_rtx.
31284 * cse.c (cse_insn): Remove volatile check.
31285 * cselib.c (cselib_process_insn): Likewise.
31286 * dse.c (scan_insn): Likewise.
31288 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31290 * config/arc/arc.c (conditionalize_nonjump): New function,
31292 (arc_ifcvt): ... this.
31293 (arc_predicate_delay_insns): Use it.
31295 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31297 * config/arc/predicates.md (extend_operand): During/after reload,
31298 allow const_int_operand.
31299 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31300 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31301 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31303 (umulsi3_highpart_i): Likewise.
31305 2014-03-11 Richard Biener <rguenther@suse.de>
31307 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31308 Add asserts to guard possible wrong-code bugs.
31310 2014-03-11 Richard Biener <rguenther@suse.de>
31312 PR tree-optimization/60429
31313 PR tree-optimization/60485
31314 * tree-ssa-structalias.c (set_union_with_increment): Properly
31315 take into account all fields that overlap the shifted vars.
31316 (do_sd_constraint): Likewise.
31317 (do_ds_constraint): Likewise.
31318 (get_constraint_for_ptr_offset): Likewise.
31320 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31322 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31323 (nios2_compute_frame_layout):
31324 Add calculation of cfun->machine->fp_save_offset.
31325 (nios2_expand_prologue): Correct setting of frame pointer register
31327 (nios2_expand_epilogue): Update recovery of stack pointer from
31328 frame pointer accordingly.
31329 (nios2_initial_elimination_offset): Update calculation of offset
31330 for eliminating to HARD_FRAME_POINTER_REGNUM.
31332 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31335 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31336 cgraph_get_create_node on VAR_DECLs.
31338 2014-03-10 Richard Biener <rguenther@suse.de>
31340 PR middle-end/60474
31341 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31343 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31345 * config/vms/vms.opt (vms_float_format): New variable.
31347 2014-03-08 Tobias Burnus <burnus@net-b.de>
31349 * doc/invoke.texi (-fcilkplus): Update implementation status.
31351 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31352 Richard Biener <rguenther@suse.de>
31354 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31355 consistently accross all TUs.
31356 (run_gcc): Enable -fshort-double automatically at link at link-time
31357 and disallow override.
31359 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31362 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31363 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31364 if they can't be used.
31366 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31368 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31369 for Solaris 11/x86 ld.
31370 * configure: Regenerate.
31372 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31374 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31375 (LIB_TLS_SPEC): Save as ld_tls_libs.
31376 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31377 (HAVE_AS_IX86_TLSLDM): New test.
31378 * configure, config.in: Regenerate.
31379 * config/i386/i386.c (legitimize_tls_address): Fall back to
31380 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31381 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31382 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31383 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31385 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31387 * common.opt (fira-loop-pressure): Mark as optimization.
31389 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31391 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31392 an OpenMP mappable type.
31394 2014-03-06 Matthias Klose <doko@ubuntu.com>
31396 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31397 MULTILIB_OSDIRNAMES is not defined.
31399 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31400 Meador Inge <meadori@codesourcery.com>
31403 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31404 (arm_legitimize_address): Call legitimize_tls_address for any
31405 arm_tls_referenced_p expression, handle constant addend. Call it
31406 before testing for !TARGET_ARM.
31407 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31409 2014-03-06 Richard Biener <rguenther@suse.de>
31411 PR middle-end/60445
31415 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31417 * tree-streamer.c (record_common_node): Assert we don't record
31418 nodes with type double.
31419 (preload_common_node): Skip type double, complex double and double
31420 pointer since it is now frontend dependent due to fshort-double option.
31422 2014-03-06 Richard Biener <rguenther@suse.de>
31424 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31425 or -fno-lto is specified and the linker has full plugin support.
31426 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31427 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31428 * lto-wrapper.c (merge_and_complain): Merge compile-time
31429 optimization levels.
31430 (run_gcc): And pass it through to the link options.
31432 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31436 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31438 * cselib.c (remove_useless_values): Skip to avoid quadratic
31439 behavior if the condition moved from...
31440 (cselib_process_insn): ... here holds.
31442 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31445 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31446 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31449 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31450 (TM_H): Add x86-tune.def.
31452 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31454 * config/aarch64/aarch64.c (generic_tunings):
31455 Use cortexa57_extra_costs.
31457 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31460 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31461 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31462 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31465 2014-03-04 Heiher <r@hev.cc>
31467 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31468 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31470 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31472 * config/i386/predicates.md (const2356_operand): Change to ...
31473 (const2367_operand): ... this.
31474 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31476 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31477 (*avx512pf_scatterpf<mode>sf): Ditto.
31478 (avx512pf_scatterpf<mode>df): Ditto.
31479 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31480 (*avx512pf_scatterpf<mode>df): Ditto.
31481 * config/i386/i386.c (ix86_expand_builtin): Update
31482 incorrect hint operand error message.
31484 2014-03-04 Richard Biener <rguenther@suse.de>
31486 * lto-section-in.c (lto_get_section_data): Fix const cast.
31488 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31490 * tree-streamer.c (record_common_node): Assert we don't record
31491 nodes with type double.
31492 (preload_common_node): Skip type double, complex double and double
31493 pointer since it is now frontend dependent due to fshort-double option.
31495 2014-03-04 Richard Biener <rguenther@suse.de>
31498 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31499 (lto_input_toplevel_asms): Likewise.
31500 * lto-section-in.c (lto_get_section_data): Instead do it here
31503 2014-03-04 Richard Biener <rguenther@suse.de>
31505 PR tree-optimization/60382
31506 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31507 dead PHIs a reduction.
31509 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31511 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31513 (_mm_prefetch): Move out of GCC target("sse") pragma.
31514 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31515 GCC target("prfchw") pragma.
31516 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31518 * config/i386/i386.c (ix86_option_override_internal): Enable
31519 -mprfchw with -mprefetchwt1.
31521 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31523 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31526 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31528 * opts.h (CL_PCH_IGNORE): Define.
31529 * targhooks.c (option_affects_pch_p):
31530 Return false for options that have CL_PCH_IGNORE set.
31531 * opt-functions.awk: Process PchIgnore.
31532 * doc/options.texi: Document PchIgnore.
31534 * config/arc/arc.opt (misize): Add PchIgnore property.
31536 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31538 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31539 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31540 constraint on constants to permit them being loaded into
31541 GENERAL_REGS or BASE_REGS.
31543 2014-03-03 Nick Clifton <nickc@redhat.com>
31545 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31546 anti-cacnonical alternatives.
31547 (negandhi3_real): New pattern.
31548 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31550 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31552 * config/avr/avr-mcus.def: Remove atxmega16x1.
31553 * config/avr/avr-tables.opt: Regenerate.
31554 * config/avr/t-multilib: Regenerate.
31555 * doc/avr-mmcu.texi: Regenerate.
31557 2014-03-03 Tobias Grosser <tobias@grosser.es>
31558 Mircea Namolaru <mircea.namolaru@inria.fr>
31560 PR tree-optimization/58028
31561 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31564 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31566 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31567 not handled by recognizers.
31569 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31571 PR middle-end/60175
31572 * function.c (expand_function_end): Don't emit
31573 clobber_return_register sequence if clobber_after is a BARRIER.
31574 * cfgexpand.c (construct_exit_block): Append instructions before
31575 return_label to prev_bb.
31577 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31579 * config/rs6000/constraints.md: Document reserved use of "wc".
31581 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31584 * ipa.c (function_and_variable_visibility): When dissolving comdat
31585 group, also set all symbols to local.
31587 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31592 2013-12-14 Jan Hubicka <jh@suse.cz>
31593 PR middle-end/58477
31594 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31596 2014-03-02 Jon Beniston <jon@beniston.com>
31602 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31603 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31604 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31605 (simple_return, *simple_return): New patterns
31606 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31607 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31609 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31611 * dwarf2out.c (gen_subprogram_die): Tidy.
31613 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31616 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31617 (*mov_t_msb_neg_negc): ... this new insn.
31619 2014-02-28 Jason Merrill <jason@redhat.com>
31622 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31625 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31628 * dwarf2out.c (decltype_auto_die): New static.
31629 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31630 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31631 (is_cxx_auto): Likewise.
31633 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31635 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31636 we are not using general regs only.
31638 2014-02-28 Richard Biener <rguenther@suse.de>
31641 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31642 previous fix and only allow to remove trivial pre-headers
31643 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31644 (remove_forwarder_block): Properly update the latch of a loop.
31646 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31649 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31650 (cselib_preserved_hash_table): New.
31651 (preserve_constants_and_equivs): Move preserved vals to it.
31652 (cselib_find_slot): Look it up first.
31653 (cselib_init): Initialize it.
31654 (cselib_finish): Release it.
31655 (dump_cselib_table): Dump it.
31657 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31660 * cselib.c (remove_useless_values): Skip to avoid quadratic
31661 behavior if the condition moved from...
31662 (cselib_process_insn): ... here holds.
31664 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31667 * var-tracking.c (vt_initialize): Apply the same condition to
31668 preserve the CFA base value.
31670 2014-02-28 Joey Ye <joey.ye@arm.com>
31673 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31674 if reload in progress or completed.
31676 2014-02-28 Tobias Burnus <burnus@net-b.de>
31678 PR middle-end/60147
31679 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31682 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31684 * doc/tm.texi.in (Condition Code Status): Update documention for
31685 relative locations of cc0-setter and cc0-user.
31687 2014-02-27 Jeff Law <law@redhat.com>
31689 PR rtl-optimization/52714
31690 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31691 into two independent simple sets, if I3 is a jump, ensure the
31692 pattern we place into I3 is a (set (pc) ...).
31694 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31695 Jeff Law <law@redhat.com>
31697 PR rtl-optimization/49847
31698 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31699 are in different blocks.
31700 * doc/tm.texi (Condition Code Status): Update documention for
31701 relative locations of cc0-setter and cc0-user.
31703 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31706 * lra.c (lra_emit_add): Check SUBREG too.
31708 2014-02-27 Andreas Schwab <schwab@suse.de>
31710 * config/m68k/m68k.c (m68k_option_override): Disable
31711 -flive-range-shrinkage for classic m68k.
31712 (m68k_override_options_after_change): Likewise.
31714 2014-02-27 Marek Polacek <polacek@redhat.com>
31716 PR middle-end/59223
31717 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31718 -Wmaybe-uninitialized.
31720 2014-02-27 Alan Modra <amodra@gmail.com>
31723 * reload1.c (emit_input_reload_insns): When reload_override_in,
31724 set old to rl->in_reg when rl->in_reg is a subreg.
31726 2014-02-26 Richard Biener <rguenther@suse.de>
31729 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31731 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31733 * common/config/i386/predicates.md (const1256_operand): Remove.
31734 (const2356_operand): New.
31735 (const_1_to_2_operand): Remove.
31736 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31737 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31738 (*avx512pf_gatherpf<mode>sf): Ditto.
31739 (avx512pf_gatherpf<mode>df): Ditto.
31740 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31741 (*avx512pf_gatherpf<mode>df): Ditto.
31742 (avx512pf_scatterpf<mode>sf): Ditto.
31743 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31744 (*avx512pf_scatterpf<mode>sf): Ditto.
31745 (avx512pf_scatterpf<mode>df): Ditto.
31746 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31747 (*avx512pf_scatterpf<mode>df): Ditto.
31748 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31750 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31752 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31753 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31754 (_mm512_mask_testn_epi64_mask): Move to ...
31755 * config/i386/avx512cdintrin.h: Here.
31756 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31757 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31758 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31759 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31760 TARGET_AVX512F from TARGET_AVX512CD.
31762 2014-02-26 Richard Biener <rguenther@suse.de>
31765 * ipa.c (walk_polymorphic_call_targets): Properly guard
31766 call to inline_update_overall_summary.
31768 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31771 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31772 and latches only if requested. Fix latch if it is removed.
31773 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31774 LOOPS_HAVE_PREHEADERS.
31776 2014-02-25 Andrew Pinski <apinski@cavium.com>
31778 * builtins.c (expand_builtin_thread_pointer): Create a new target
31779 when the target is NULL.
31781 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31783 PR rtl-optimization/60317
31784 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31785 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31786 * lra-assigns.c: Include params.h.
31787 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31788 other reload pseudos considerations.
31790 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31792 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31793 to use canonical form for nor<mode>3.
31795 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31798 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31801 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31803 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31804 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31805 (ix86_handle_option): Handle OPT_mprefetchwt1.
31806 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31807 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31809 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31810 OPTION_MASK_ISA_PREFETCHWT1.
31811 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31812 (PTA_PREFETCHWT1): New.
31813 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31814 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31815 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31816 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31817 (*prefetch_avx512pf_<mode>_: Change into ...
31818 (*prefetch_prefetchwt1_<mode>: This.
31819 * config/i386/i386.opt (mprefetchwt1): New.
31820 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31821 (_mm_prefetch): Handle intent to write.
31822 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31824 2014-02-25 Richard Biener <rguenther@suse.de>
31826 PR middle-end/60291
31827 * emit-rtl.c (mem_attrs_htab): Remove.
31828 (mem_attrs_htab_hash): Likewise.
31829 (mem_attrs_htab_eq): Likewise.
31830 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31831 (init_emit_once): Do not allocate mem_attrs_htab.
31833 2014-02-25 Richard Biener <rguenther@suse.de>
31836 * lto-opts.c (lto_write_options): Output non-explicit conservative
31837 -fwrapv, -fno-trapv and -fno-strict-overflow.
31838 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31839 (run_gcc): And pass them through.
31841 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31843 * sel-sched.c (calculate_new_fences): New parameter ptime.
31844 Calculate it as a maximum over all fence cycles.
31845 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31846 Print the final schedule timing when sched_verbose.
31848 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31850 PR rtl-optimization/60292
31851 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31852 bit fot the fence instruction.
31854 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31856 * calls.h: Fix typo in comment.
31858 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31860 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31861 adjusting offsetable addresses.
31863 2014-02-24 Guozhi Wei <carrot@google.com>
31865 * sparseset.h (sparseset_pop): Fix the wrong index.
31867 2014-02-24 Walter Lee <walt@tilera.com>
31869 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31870 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31872 * common/config/tilegx/tilegx-common.c
31873 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31874 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31875 (LINK_SPEC): Ditto.
31876 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31877 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31878 (tilegx_gimplify_va_arg_expr): Handle big endian.
31879 (tilegx_expand_unaligned_load): Ditto.
31880 (tilegx_expand_unaligned_store): Ditto.
31881 (TARGET_RETURN_IN_MSB): New.
31882 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31883 (TARGET_ENDIAN_DEFAULT): New.
31884 (TARGET_BIG_ENDIAN): Handle big endian.
31885 (BYTES_BIG_ENDIAN): Ditto.
31886 (WORDS_BIG_ENDIAN): Ditto.
31887 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31888 (ENDIAN_SPEC): New.
31889 (EXTRA_SPECS): New.
31890 * config/tilegx/tilegx.md (extv): Handle big endian.
31892 (insn_st<n>): Ditto.
31893 (insn_st<n>_add<bitsuffix>): Ditto.
31894 (insn_stnt<n>): Ditto.
31895 (insn_stnt<n>_add<bitsuffix>):Ditto.
31896 (vec_interleave_highv8qi): Handle big endian.
31897 (vec_interleave_highv8qi_be): New.
31898 (vec_interleave_highv8qi_le): New.
31899 (insn_v1int_h): Handle big endian.
31900 (vec_interleave_lowv8qi): Handle big endian.
31901 (vec_interleave_lowv8qi_be): New.
31902 (vec_interleave_lowv8qi_le): New.
31903 (insn_v1int_l): Handle big endian.
31904 (vec_interleave_highv4hi): Handle big endian.
31905 (vec_interleave_highv4hi_be): New.
31906 (vec_interleave_highv4hi_le): New.
31907 (insn_v2int_h): Handle big endian.
31908 (vec_interleave_lowv4hi): Handle big endian.
31909 (vec_interleave_lowv4hi_be): New.
31910 (vec_interleave_lowv4hi_le): New.
31911 (insn_v2int_l): Handle big endian.
31912 (vec_interleave_highv2si): Handle big endian.
31913 (vec_interleave_highv2si_be): New.
31914 (vec_interleave_highv2si_le): New.
31915 (insn_v4int_h): Handle big endian.
31916 (vec_interleave_lowv2si): Handle big endian.
31917 (vec_interleave_lowv2si_be): New.
31918 (vec_interleave_lowv2si_le): New.
31919 (insn_v4int_l): Handle big endian.
31920 * config/tilegx/tilegx.opt (mbig-endian): New option.
31921 (mlittle-endian): New option.
31922 * doc/install.texi: Document tilegxbe-linux.
31923 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31925 2014-02-24 Martin Jambor <mjambor@suse.cz>
31928 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31929 there are no parameter descriptors.
31931 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31933 PR rtl-optimization/60268
31934 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31935 initialization to ...
31936 (sched_rgn_init): ... here.
31937 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31939 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31941 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31944 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31946 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31949 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31951 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31952 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31954 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31956 * config/microblaze/predicates.md: Add cmp_op predicate.
31957 * config/microblaze/microblaze.md: Add branch_compare instruction
31958 which uses cmp_op predicate and emits cmp insn before branch.
31959 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31960 to microblaze_expand_conditional_branch and consolidate logic.
31961 (microblaze_expand_conditional_branch): emit branch_compare
31962 insn instead of handling cmp op separate from branch insn.
31964 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31966 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31969 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31971 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31972 define_insn with define_expand and new define_insn
31973 *altivec_lve<VI_char>x_internal.
31974 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31975 and new define_insn *altivec_stve<VI_char>x_internal.
31976 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31978 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31980 (altivec_expand_stvex_be): New function.
31982 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31984 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31985 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31986 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31987 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31989 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31992 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31993 instead of emit_move_insn.
31995 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31997 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31998 vspltw with vsldoi.
31999 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32000 gen_altivec_vsumsws.
32002 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32004 * config/rs6000/altivec.md (altivec_lvxl): Rename as
32005 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32006 (altivec_lvxl_<mode>): New define_expand incorporating
32007 -maltivec=be semantics where needed.
32008 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32009 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32010 semantics where needed.
32011 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32012 (altivec_stvx_<mode>): New define_expand incorporating
32013 -maltivec=be semantics where needed.
32014 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32015 VM2 iterator instead of V4SI.
32016 (altivec_stvxl_<mode>): New define_expand incorporating
32017 -maltivec=be semantics where needed.
32018 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32019 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32020 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32021 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32022 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32023 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32024 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32025 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32026 ALTIVEC_BUILTIN_STVXL.
32027 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32028 (altivec_expand_stvx_be): Likewise.
32029 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32030 (altivec_expand_lvx_be): Likewise.
32031 (altivec_expand_stvx_be): Likewise.
32032 (altivec_expand_builtin): Add cases for
32033 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32034 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32035 (altivec_init_builtins): Add definitions for
32036 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32037 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32039 2014-02-21 Catherine Moore <clm@codesourcery.com>
32041 * doc/invoke.texi (mvirt, mno-virt): Document.
32042 * config/mips/mips.opt (mvirt): New option.
32043 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32045 2014-02-21 Richard Biener <rguenther@suse.de>
32047 PR tree-optimization/60276
32048 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32049 (STMT_VINFO_MIN_NEG_DIST): New macro.
32050 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32051 STMT_VINFO_MIN_NEG_DIST.
32052 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32053 made for negative dependence distances still hold.
32055 2014-02-21 Richard Biener <rguenther@suse.de>
32057 PR middle-end/60291
32058 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32059 DECL_INITIAL for globals not in the current function context.
32061 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32063 PR tree-optimization/56490
32064 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32065 * tree-ssa-uninit.c: Include params.h.
32066 (compute_control_dep_chain): Add num_calls argument, return false
32067 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32068 num_calls to recursive call.
32069 (find_predicates): Change dep_chain into normal array,
32070 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32071 variable and adjust compute_control_dep_chain caller.
32072 (find_def_preds): Likewise.
32074 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32076 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32077 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32079 2014-02-21 Nick Clifton <nickc@redhat.com>
32081 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32082 (pushhi1): Likewise.
32083 (popqi1): Add mode to pre_dec.
32084 (pophi1): Likewise.
32086 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32088 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32089 mode for mask of V8SFmode permutation.
32091 2014-02-20 Richard Henderson <rth@redhat.com>
32094 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32095 a new pseudo for OLDVAL.
32097 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32100 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32101 gen_reg_rtx if d->testing_p.
32102 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32103 if d->testing_p and we will certainly return true.
32104 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32107 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32109 * emit-rtl.c (gen_reg_rtx): Assert that
32110 crtl->emit.regno_pointer_align_length is non-zero.
32112 2014-02-20 Richard Henderson <rth@redhat.com>
32115 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32116 on failure the store back into EXPECT.
32118 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32119 Sandra Loosemore <sandra@codesourcery.com>
32121 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32122 * config/nios2/nios2.c (nios2_function_profiler): Add
32123 -fPIC (flag_pic == 2) support.
32124 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32125 (nios2_large_offset_p): New function.
32126 (nios2_unspec_reloc_p): Move up position, update to use
32127 nios2_large_offset_p.
32128 (nios2_unspec_address): Remove function.
32129 (nios2_unspec_offset): New function.
32130 (nios2_large_got_address): New function.
32131 (nios2_got_address): Add large offset support.
32132 (nios2_legitimize_tls_address): Update usage of removed and new
32134 (nios2_symbol_binds_local_p): New function.
32135 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32136 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32137 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32138 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32139 processing for (const (unspec ...)).
32140 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32142 2014-02-20 Richard Biener <rguenther@suse.de>
32144 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32145 doing the substitution.
32146 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32148 2014-02-20 Martin Jambor <mjambor@suse.cz>
32151 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32152 info when checking whether lattices are bottom.
32154 2014-02-20 Richard Biener <rguenther@suse.de>
32156 PR middle-end/60221
32157 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32160 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32163 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32164 parameter specifying the scaling.
32165 (inline_call): Update.
32166 (want_inline_recursively): Guard division by zero.
32167 (recursive_inlining): Update.
32168 * ipa-inline.h (clone_inlined_nodes): Update.
32170 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32173 * config/i386/i386.c (classify_argument): Pass structures of size
32174 64 bytes or less in register.
32176 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32177 Kirill Yukhin <kirill.yukhin@intel.com>
32179 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32180 (_mm_rcp28_round_ss): Ditto.
32181 (_mm_rsqrt28_round_sd): Ditto.
32182 (_mm_rsqrt28_round_ss): Ditto.
32183 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32184 (_mm_rcp14_round_ss): Ditto.
32185 (_mm_rsqrt14_round_sd): Ditto.
32186 (_mm_rsqrt14_round_ss): Ditto.
32187 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32188 the first input operand, get rid of match_dup.
32189 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32191 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32193 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32194 operand as the first input operand, set type attribute.
32195 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32196 Set type attribute.
32197 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32198 operand as the first input operand, set type attribute.
32200 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32202 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32205 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32208 * config/i386/i386.c (construct_container): Remove TFmode check
32209 for X86_64_INTEGER_CLASS.
32211 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32214 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32215 only when -Wpsabi is enabled.
32217 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32220 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32221 passing arrays in registers are the same as for structs, so remove the
32222 special case for them.
32224 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32226 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32227 destination type, extract only the valid bits if the source type is not
32228 integral and has a different mode.
32230 2014-02-19 Richard Biener <rguenther@suse.de>
32233 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32236 2014-02-19 Richard Biener <rguenther@suse.de>
32239 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32240 (ipa_modify_call_arguments): Emit an argument load explicitely and
32241 preserve virtual SSA form there and for the replacement call.
32242 Do not update SSA form nor free dominance info.
32244 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32246 * ipa.c (function_and_variable_visibility): Also clear WEAK
32247 flag when disolving COMDAT_GROUP.
32249 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32251 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32252 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32253 not devirtualizing.
32254 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32255 do more sanity checks.
32256 (detect_type_change): Return true when giving up early.
32257 (compute_complex_assign_jump_func): Fix type parameter of
32258 ipa_set_ancestor_jf.
32259 (compute_complex_ancestor_jump_func): Likewise.
32260 (update_jump_functions_after_inlining): Fix updating of
32262 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32264 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32266 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32267 inline clones when edge disappears.
32269 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32272 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32273 Split 64-bit moves into 2 patterns. Do not allow the use of
32274 direct move for TDmode in little endian, since the decimal value
32275 has little endian bytes within a word, but the 64-bit pieces are
32276 ordered in a big endian fashion, and normal subreg's of TDmode are
32278 (mov<mode>_64bit_dm): Likewise.
32279 (movtd_64bit_nodm): Likewise.
32281 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32283 PR tree-optimization/60174
32284 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32285 statement of an SSA_NAME that occurs in an abnormal PHI node.
32287 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32290 * final.c (SEEN_BB): Remove.
32291 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32292 (final_scan_insn): Don't force_source_line on second
32293 NOTE_INSN_BASIC_BLOCK.
32295 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32298 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32299 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32300 (type_natural_mode): Warn ABI change when %zmm register is not
32301 available for AVX512F vector value passing.
32303 2014-02-18 Kai Tietz <ktietz@redhat.com>
32306 * config/i386/i386.c (ix86_expand_prologue): Use value in
32307 rax register as displacement when restoring %r10 or %rax.
32308 Fix wrong offset when restoring both registers.
32310 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32312 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32313 assertion with conditional return.
32315 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32316 Uros Bizjak <ubizjak@gmail.com>
32319 * config/i386/driver-i386.c (host_detect_local_cpu): If
32320 YMM state is not saved by the OS, also clear has_f16c. Move
32321 CPUID 0x80000001 handling before YMM state saving checking.
32323 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32325 PR rtl-optimization/58960
32326 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32327 factored out from ...
32328 (sched_init): ... here.
32329 (free_global_sched_pressure_data): New, factored out from ...
32330 (sched_finish): ... here.
32331 * sched-int.h (free_global_sched_pressure_data): Declare.
32332 * sched-rgn.c (nr_regions_initial): New static global.
32333 (haifa_find_rgns): Initialize it.
32334 (schedule_region): Disable sched-pressure for the newly
32337 2014-02-17 Richard Biener <rguenther@suse.de>
32339 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32340 release SSA defs of pattern stmts.
32342 2014-02-17 Richard Biener <rguenther@suse.de>
32344 * tree-inline.c (expand_call_inline): Release the virtual
32345 operand defined by the call we are about to inline.
32347 2014-02-17 Richard Biener <rguenther@suse.de>
32349 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32351 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32352 Ilya Tocar <ilya.tocar@intel.com>
32354 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32355 arguments order in builtin.
32356 (_mm512_permutexvar_epi64): Ditto.
32357 (_mm512_mask_permutexvar_epi64): Ditto
32358 (_mm512_maskz_permutexvar_epi32): Ditto
32359 (_mm512_permutexvar_epi32): Ditto
32360 (_mm512_mask_permutexvar_epi32): Ditto
32362 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32364 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32365 (p8_vmrgow): Likewise.
32367 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32369 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32372 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32375 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32376 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32377 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32378 using direct move instructions on ISA 2.07. Also adjust
32379 instruction length for 64-bit.
32380 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32381 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32383 2014-02-15 Alan Modra <amodra@gmail.com>
32387 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32388 find_replacement on parts of insn rtl that might be reloaded.
32390 2014-02-15 Richard Biener <rguenther@suse.de>
32392 PR tree-optimization/60183
32393 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32394 (tree_ssa_phiprop): Calculate and free post-dominators.
32396 2014-02-14 Jeff Law <law@redhat.com>
32398 PR rtl-optimization/60131
32399 * ree.c (get_extended_src_reg): New function.
32400 (combine_reaching_defs): Use it rather than assuming location of REG.
32401 (find_and_remove_re): Verify first operand of extension is
32402 a REG before adding the insns to the copy list.
32404 2014-02-14 Roland McGrath <mcgrathr@google.com>
32406 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32407 * configure: Regenerated.
32408 * config.in: Regenerated.
32409 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32410 instead of ASM_SHORT.
32412 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32413 Richard Earnshaw <rearnsha@arm.com>
32415 PR rtl-optimization/59535
32416 * lra-constraints.c (process_alt_operands): Encourage alternative
32417 when unassigned pseudo class is superset of the alternative class.
32418 (inherit_reload_reg): Don't inherit when optimizing for code size.
32419 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32420 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32421 modes not less than 4 for Thumb1.
32423 2014-02-14 Kyle McMartin <kyle@redhat.com>
32426 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32428 2014-02-14 Richard Biener <rguenther@suse.de>
32430 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32431 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32432 Do not strip INDIRECT_REFs.
32434 2014-02-14 Richard Biener <rguenther@suse.de>
32437 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32438 DECL_FUNCTION_SPECIFIC_TARGET.
32439 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32440 * tree-streamer-out.c (pack_ts_target_option): Remove.
32441 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32442 (write_ts_function_decl_tree_pointers): Do not stream
32443 DECL_FUNCTION_SPECIFIC_TARGET.
32444 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32445 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32446 (lto_input_ts_function_decl_tree_pointers): Do not stream
32447 DECL_FUNCTION_SPECIFIC_TARGET.
32449 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32451 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32452 (get_initial_def_for_induction, vectorizable_induction): Ignore
32453 debug stmts when looking for exit_phi.
32454 (vectorizable_live_operation): Fix up condition.
32456 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32458 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32459 nreverse() because it changes the content of original tree list.
32461 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32463 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32464 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32466 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32468 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32469 GNU coding standards.
32471 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32474 * dwarf2out.c (gen_subprogram_die): Don't call
32475 add_calling_convention_attribute if subr_die is old_die.
32477 2014-02-13 Sharad Singhai <singhai@google.com>
32479 * doc/optinfo.texi: Fix order of nodes.
32481 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32483 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32484 operands[2], not operands[3].
32486 2014-02-13 Richard Biener <rguenther@suse.de>
32489 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32490 mention the possibility of an in-tree build.
32491 (CLooG): Update recommended version to 0.18.1, mention the
32492 possibility of an in-tree build and clarify that the ISL
32493 bundled with CLooG does not work.
32495 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32498 * expr.c (compress_float_constant): If x is a hard register,
32499 extend into a pseudo and then move to x.
32501 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32503 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32504 caused by bad second argument to warning_at() with -mhotpatch and
32505 nested functions (e.g. with gfortran).
32507 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32509 * opts.c (option_name): Remove "enabled by default" rider.
32511 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32513 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32515 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32516 Uros Bizjak <ubizjak@gmail.com>
32519 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32520 * configure: Regenerated.
32522 2014-02-12 Richard Biener <rguenther@suse.de>
32524 * vec.c (vec_prefix::calculate_allocation): Move as
32525 inline variant to vec.h.
32526 (vec_prefix::calculate_allocation_1): New out-of-line version.
32527 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32528 (vec_prefix::m_has_auto_buf): Rename to ...
32529 (vec_prefix::m_using_auto_storage): ... this.
32530 (vec_prefix::calculate_allocation): Inline the easy cases
32531 and dispatch to calculate_allocation_1 which doesn't need the
32533 (va_heap::reserve): Use gcc_checking_assert.
32534 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32535 m_using_auto_storage.
32536 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32538 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32539 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32540 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32542 2014-02-12 Richard Biener <rguenther@suse.de>
32544 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32545 when we found a dependence.
32547 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32549 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32551 (maybe_fold_stmt): ... into this new function.
32552 * omp-low.c (lower_omp): Update comment.
32554 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32557 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32560 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32562 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32563 identifiers in comments.
32564 (cortexa53_extra_costs): Likewise.
32565 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32566 (cortexa7_extra_costs): Likewise.
32567 (cortexa12_extra_costs): Likewise.
32568 (cortexa15_extra_costs): Likewise.
32569 (v7m_extra_costs): Likewise.
32571 2014-02-12 Richard Biener <rguenther@suse.de>
32573 PR middle-end/60092
32574 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32575 of posix_memalign being successful.
32576 (lower_stmt): Restrict lowering of posix_memalign to when
32577 -ftree-bit-ccp is enabled.
32579 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32581 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32583 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32585 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32587 PR rtl-optimization/60116
32588 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32589 other_insn once the combination has been validated.
32591 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32594 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32596 * ipa-devirt.c: Include demangle.h
32597 (odr_violation_reported): New static variable.
32598 (add_type_duplicate): Update odr_violations.
32599 (maybe_record_node): Add completep parameter; update it.
32600 (record_target_from_binfo): Add COMPLETEP parameter;
32601 update it as needed.
32602 (possible_polymorphic_call_targets_1): Likewise.
32603 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32604 rename FINAL to COMPLETE.
32605 (record_targets_from_bases): Sanity check we found the binfo;
32606 fix COMPLETEP updating.
32607 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32608 parameter, fix computing of COMPLETEP.
32609 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32610 at LTO time do demangling.
32611 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32612 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32614 (gimple_get_virt_method_for_binfo): Likewise.
32615 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32616 gimple_get_virt_method_for_vtable): Update prototypes.
32618 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32621 * genautomata.c (add_presence_absence): Fix typo with
32622 {final_}presence_list.
32624 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32627 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32628 for VSX/Altivec vectors that land in GPR registers.
32630 2014-02-11 Richard Henderson <rth@redhat.com>
32631 Jakub Jelinek <jakub@redhat.com>
32634 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32635 around drhs if type conversion to lacc->type is not useless.
32637 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32639 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32641 (cortex-a57.cortex-a53): Likewise.
32642 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32644 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32646 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32649 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32651 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32652 add_options_for_arm_vfp3.
32654 2014-02-11 Jeff Law <law@redhat.com>
32656 PR middle-end/54041
32657 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32658 object with an undesirable mode.
32660 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32663 * config/i386/sol2-9.h: New file.
32664 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32665 *-*-solaris2.9*): Use it.
32667 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32669 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32670 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32672 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32674 * config/microblaze/microblaze.c: Extend mcpu version format
32676 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32678 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32680 2014-02-10 Richard Henderson <rth@redhat.com>
32683 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32684 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32685 ms-abi vs -mno-accumulate-outgoing-args.
32686 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32687 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32690 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32692 PR middle-end/60080
32693 * cfgexpand.c (expand_asm_operands): Attach source location to
32694 ASM_INPUT rtx objects.
32695 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32697 2014-02-10 Nick Clifton <nickc@redhat.com>
32699 * config/mn10300/mn10300.c (popcount): New function.
32700 (mn10300_expand_prologue): Include saved registers in stack usage
32703 2014-02-10 Jeff Law <law@redhat.com>
32705 PR middle-end/52306
32706 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32707 when changing the SET_DEST of a prior insn to avoid an input reload.
32709 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32711 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32712 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32713 -mcall-openbsd, or -mcall-linux.
32714 (CC1_ENDIAN_BIG_SPEC): Remove.
32715 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32716 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32717 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32718 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32719 and %cc1_endian_default.
32720 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32722 2014-02-10 Richard Biener <rguenther@suse.de>
32724 PR tree-optimization/60115
32725 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32726 MEM_REF handling. Properly verify that the accesses are not
32727 out of the objects bound.
32729 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32731 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32734 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32736 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32737 proper constants and fix formatting.
32738 (possible_polymorphic_call_targets): Fix formatting.
32740 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32741 Ilya Tocar <ilya.tocar@intel.com>
32743 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32744 (_mm512_loadu_epi32): Renamed into...
32745 (_mm512_loadu_si512): This.
32746 (_mm512_storeu_epi32): Renamed into...
32747 (_mm512_storeu_si512): This.
32748 (_mm512_maskz_ceil_ps): Removed.
32749 (_mm512_maskz_ceil_pd): Ditto.
32750 (_mm512_maskz_floor_ps): Ditto.
32751 (_mm512_maskz_floor_pd): Ditto.
32752 (_mm512_floor_round_ps): Ditto.
32753 (_mm512_floor_round_pd): Ditto.
32754 (_mm512_ceil_round_ps): Ditto.
32755 (_mm512_ceil_round_pd): Ditto.
32756 (_mm512_mask_floor_round_ps): Ditto.
32757 (_mm512_mask_floor_round_pd): Ditto.
32758 (_mm512_mask_ceil_round_ps): Ditto.
32759 (_mm512_mask_ceil_round_pd): Ditto.
32760 (_mm512_maskz_floor_round_ps): Ditto.
32761 (_mm512_maskz_floor_round_pd): Ditto.
32762 (_mm512_maskz_ceil_round_ps): Ditto.
32763 (_mm512_maskz_ceil_round_pd): Ditto.
32764 (_mm512_expand_pd): Ditto.
32765 (_mm512_expand_ps): Ditto.
32766 * config/i386/i386.c (ix86_builtins): Remove
32767 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32768 (bdesc_args): Ditto.
32769 * config/i386/predicates.md (const1256_operand): New.
32770 (const_1_to_2_operand): Ditto.
32771 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32772 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32773 (*avx512pf_gatherpf<mode>sf): Ditto.
32774 (avx512pf_gatherpf<mode>df): Ditto.
32775 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32776 (*avx512pf_gatherpf<mode>df): Ditto.
32777 (avx512pf_scatterpf<mode>sf): Ditto.
32778 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32779 (*avx512pf_scatterpf<mode>sf): Ditto.
32780 (avx512pf_scatterpf<mode>df): Ditto.
32781 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32782 (*avx512pf_scatterpf<mode>df): Ditto.
32783 (avx512f_expand<mode>): Removed.
32784 (<shift_insn><mode>3<mask_name>): Change predicate type.
32786 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32788 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32789 not at the end of datarefs vector use ordered_remove to avoid
32790 reordering datarefs vector.
32793 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32794 mark local addressable non-static vars as GOVD_PRIVATE
32795 instead of GOVD_LOCAL.
32796 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32797 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32800 PR middle-end/60092
32801 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32802 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32803 assume_aligned or alloc_align attributes.
32804 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32805 arguments. Handle also assume_aligned and alloc_align attributes.
32806 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32807 calls to functions with assume_aligned or alloc_align attributes.
32808 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32810 2014-02-08 Terry Guo <terry.guo@arm.com>
32812 * doc/invoke.texi: Document ARM -march=armv7e-m.
32814 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32816 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32817 flag on __cilkrts_rethrow builtin.
32820 * ipa-cp.c (determine_versionability): Fail at -O0
32821 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32822 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32825 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32828 * tree-inline.c (copy_forbidden): Fail for
32829 __attribute__((optimize (0))) functions.
32831 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32833 * varpool.c: Include pointer-set.h.
32834 (varpool_remove_unreferenced_decls): Variables in other partitions
32835 will not be output; be however careful to not lose information
32836 about partitioning.
32838 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32840 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32841 lookup in the vtable constructor.
32843 2014-02-07 Jeff Law <law@redhat.com>
32846 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32847 define_insn_and_split.
32849 * ipa-inline.c (inline_small_functions): Fix typos.
32851 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32853 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32854 (s390_can_use_return_insn): Declare.
32855 * config/s390/s390.h (EPILOGUE_USES): Define.
32856 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32858 (s390_chunkify_start): Handle return JUMP_LABELs.
32859 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32860 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32861 (s390_can_use_return_insn): New functions.
32862 (s390_fix_long_loop_prediction): Handle conditional returns.
32863 (TARGET_SET_UP_BY_PROLOGUE): Define.
32864 * config/s390/s390.md (ANY_RETURN): New code iterator.
32865 (*creturn, *csimple_return, return, simple_return): New patterns.
32867 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32869 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32870 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32871 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32872 REG_CFA_RESTORE list when deciding not to restore a register.
32874 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32876 * config/s390/s390.c: Include tree-pass.h and context.h.
32877 (s390_early_mach): New function, split out from...
32878 (s390_emit_prologue): ...here.
32879 (pass_data_s390_early_mach): New pass structure.
32880 (pass_s390_early_mach): New class.
32881 (s390_option_override): Create and register early_mach pass.
32882 Move to end of file.
32884 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32886 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32887 to match for the exit block.
32889 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32891 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32892 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32893 Reject misaligned operands.
32895 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32897 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32899 2014-02-07 Richard Biener <rguenther@suse.de>
32901 PR middle-end/60092
32902 * gimple-low.c (lower_builtin_posix_memalign): New function.
32903 (lower_stmt): Call it to lower posix_memalign in a way
32904 to make alignment info accessible.
32906 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32909 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32910 __builtin_setjmp_receiver.
32912 2014-02-07 Richard Biener <rguenther@suse.de>
32914 PR middle-end/60092
32915 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32916 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32917 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32918 Handle BUILT_IN_POSIX_MEMALIGN.
32919 (find_func_clobbers): Likewise.
32920 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32921 (call_may_clobber_ref_p_1): Likewise.
32923 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32926 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32929 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32932 * lto-cgraph.c (lto_output_node): Use
32933 symtab_get_symbol_partitioning_class.
32934 (lto_output_varpool_node): likewise.
32935 (symtab_get_symbol_partitioning_class): Move here from
32936 lto/lto-partition.c
32937 * cgraph.h (symbol_partitioning_class): Likewise.
32938 (symtab_get_symbol_partitioning_class): Declare.
32940 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32942 * ggc.h (ggc_internal_cleared_alloc): New macro.
32943 * vec.h (vec_safe_copy): Handle memory stats.
32944 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32945 * target-globals.c (save_target_globals): Likewise.
32947 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32950 * expr.c (emit_move_resolve_push): Export; be bit more selective
32951 on when to clear alias set.
32952 * expr.h (emit_move_resolve_push): Declare.
32953 * function.h (struct function): Add tail_call_marked.
32954 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32955 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32956 * config/i386/i386.md (TImode move expander): De not call
32958 (FP push expanders): Preserve memory attributes.
32959 * config/i386/sse.md (push<mode>1): Remove.
32960 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32961 (ix86_expand_push): Remove.
32962 * config/i386/mmx.md (push<mode>1): Remove.
32964 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32966 PR rtl-optimization/60030
32967 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32968 lopart with paradoxical subreg before shifting it up by hprec.
32970 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32972 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32973 Remove extra newline at end of file.
32974 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32975 (arm_issue_rate): Handle cortexa57.
32976 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32977 (cortex-a57.cortex-a53): Likewise.
32979 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32982 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32983 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32985 (arm_expand_prologue): Adjust all callers.
32986 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32987 info, registers also at the lowest numbered registers side. Use
32988 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32992 * var-tracking.c (adjust_mems): Before adding a SET to
32993 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32995 2014-02-06 Alan Modra <amodra@gmail.com>
32998 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32999 change SDmode to DDmode when lra_in_progress.
33001 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33003 PR middle-end/59150
33004 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33005 free_data_ref on the dr first, and before goto again also set dr
33006 to the next dr. For simd_lane_access, free old datarefs[i] before
33007 overwriting it. For get_vectype_for_scalar_type failure, don't
33008 free_data_ref if simd_lane_access.
33010 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33013 * tree.h (opts_for_fn): New inline function.
33014 (opt_for_fn): Define.
33015 * config/i386/i386.c (ix86_function_regparm): Use
33016 opt_for_fn (decl, optimize) instead of optimize.
33018 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33020 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33021 for SYMBOL_REF in large memory model.
33023 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33025 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33026 and crypto support.
33027 (cortex-a57): Likewise.
33028 (cortex-a57.cortex-a53): Likewise.
33030 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33031 Kugan Vivekanandarajah <kuganv@linaro.org>
33033 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33035 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33037 2014-02-06 Richard Biener <rguenther@suse.de>
33039 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33040 set_loop_copy and initialize_original_copy_tables.
33042 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33044 * config/aarch64/aarch64-simd.md
33045 (aarch64_ashr_simddi): Change QI to SI.
33047 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33048 Jakub Jelinek <jakub@redhat.com>
33050 PR middle-end/60013
33051 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33054 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33056 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33057 CODE_FOR_altivec_vpku[hw]um to
33058 CODE_FOR_altivec_vpku[hw]um_direct.
33059 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33060 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33061 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33062 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33064 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33066 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33067 generation for -maltivec=be.
33068 (altivec_vsumsws): Simplify redundant test.
33070 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33072 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33073 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33074 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33075 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33076 gen_altivec_vpkuwum.
33077 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33079 (altivec_vpks<VI_char>ss): Likewise.
33080 (altivec_vpks<VI_char>us): Likewise.
33081 (altivec_vpku<VI_char>us): Likewise.
33082 (altivec_vpku<VI_char>um): Likewise.
33083 (altivec_vpku<VI_char>um_direct): New (copy of
33084 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33086 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33087 target is little endian and -maltivec=be is not specified.
33088 (*altivec_vupkhs<VU_char>_direct): New (copy of
33089 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33090 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33091 target is little endian and -maltivec=be is not specified.
33092 (*altivec_vupkls<VU_char>_direct): New (copy of
33093 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33094 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33095 little endian and -maltivec=be is not specified.
33096 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33097 little endian and -maltivec=be is not specified.
33099 2014-02-05 Richard Henderson <rth@redhat.com>
33102 * combine-stack-adj.c: Revert r206943.
33103 * sched-int.h (struct deps_desc): Add last_args_size.
33104 * sched-deps.c (init_deps): Initialize it.
33105 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33106 contain REG_ARGS_SIZE notes.
33108 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33110 * lto-cgraph.c (asm_nodes_output): Make global.
33111 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33112 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33113 (driver_handle_option): Handle OPT_fwpa.
33115 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33118 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33119 a comment typo and formatting issue. If odr_hash hasn't been
33120 created, return vNULL and set *completep to false.
33122 PR middle-end/57499
33123 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33124 bb with no successors.
33126 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33129 * doc/invoke.texi (-march): Clarify documentation for ARM.
33130 (-mtune): Likewise.
33133 2014-02-05 Richard Biener <rguenther@suse.de>
33135 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33136 when not vectorizing because of too many alias checks.
33137 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33138 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33140 2014-02-05 Nick Clifton <nickc@redhat.com>
33142 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33143 accept extended registers in any mode when compiling for the MN10300.
33145 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33147 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33148 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33149 sanitization attributes.
33150 (can_inline_edge_p): Likewise.
33151 (sanitize_attrs_match_for_inline_p): New function.
33153 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33155 * ipa-prop.c (detect_type_change): Shor circuit testing of
33156 type changes on THIS pointer.
33158 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33161 * config/pa/pa.c (legitimize_tls_address): Return original address
33162 if not passed a SYMBOL_REF rtx.
33163 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33165 (pa_emit_move_sequence): Simplify TLS source operands.
33166 (pa_legitimate_constant_p): Reject all TLS constants.
33167 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33168 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33170 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33172 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33173 groups when we know they are controlled by LTO.
33174 * varasm.c (default_binds_local_p_1): If object is in other partition,
33175 it will be resolved locally.
33177 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33179 * config/host-linux.c (linux_gt_pch_use_address): Don't
33180 use SSIZE_MAX because it is not always defined.
33182 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33185 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33186 threshold for pseudo splitting.
33187 (update_ebb_live_info): Process call argument hard registers and
33188 hard registers from insn definition too.
33189 (max_small_class_regs_num): New constant.
33190 (inherit_in_ebb): Update live hard regs through EBBs. Update
33191 reloads_num only for small register classes. Don't split for
33194 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33197 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33200 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33202 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33203 visibility is safe.
33205 2014-02-04 Marek Polacek <polacek@redhat.com>
33207 * gdbinit.in (pel): Define.
33209 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33211 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33214 2014-02-04 Richard Biener <rguenther@suse.de>
33217 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33218 in function context local.
33219 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33220 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33221 similar to LTO_imported_decl_ref.
33223 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33225 PR tree-optimization/60002
33226 * cgraphclones.c (build_function_decl_skip_args): Clear
33227 DECL_LANG_SPECIFIC.
33229 PR tree-optimization/60023
33230 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33231 false to gsi_replace.
33232 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33233 has been in some EH region and vec_stmt could throw, add
33234 vec_stmt into the same EH region.
33235 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33236 has no lhs, ignore it.
33237 * internal-fn.c (expand_MASK_LOAD): Likewise.
33240 * tree-inline.c (copy_forbidden): Fail for
33241 __attribute__((optimize (0))) functions.
33244 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33245 is set, copy one less argument.
33246 (expand_simd_clones): Don't subtract clone_info->inbranch
33247 from simd_clone_struct_alloc argument.
33249 PR rtl-optimization/57915
33250 * recog.c (simplify_while_replacing): If all unary/binary/relational
33251 operation arguments are constant, attempt to simplify those.
33253 PR middle-end/59261
33254 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33255 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33257 2014-02-04 Richard Biener <rguenther@suse.de>
33259 PR tree-optimization/60012
33260 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33261 TBAA disambiguation to all DDRs.
33263 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33266 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33267 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33269 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33272 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33274 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33276 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33277 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33279 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33282 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33283 to figure out targets of polymorphic calls with known decl.
33284 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33285 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33286 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33287 (get_polymorphic_call_info): ... here.
33288 (get_polymorphic_call_info_from_invariant): New function.
33290 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33292 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33293 lookup via vtable pointer; check for type consistency
33294 and turn inconsitent facts into UNREACHABLE.
33295 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33296 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33297 type inconsistent querries; return UNREACHABLE instead.
33299 2014-02-03 Richard Henderson <rth@twiddle.net>
33302 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33303 already processed this node.
33304 (normalize_one_pred_1): Pass along mark_set.
33305 (normalize_one_pred): Create and destroy a pointer_set_t.
33306 (normalize_one_pred_chain): Likewise.
33308 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33310 PR gcov-profile/58602
33311 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33313 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33316 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33317 -fno-devirtualize; try to devirtualize by the knowledge of
33318 virtual table pointer given by aggregate propagation.
33319 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33320 (ipa_print_node_jump_functions): Dump also offset that
33321 is relevant for polymorphic calls.
33322 (determine_known_aggregate_parts): Add arg_type parameter; use it
33323 instead of determining the type from pointer type.
33324 (ipa_compute_jump_functions_for_edge): Update call of
33325 determine_known_aggregate_parts.
33326 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33327 (gimple_get_virt_method_for_binfo): ... here; simplify using
33328 vtable_pointer_value_to_vtable.
33329 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33330 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33331 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33332 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33334 (vtable_pointer_value_to_binfo): ... here.
33335 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33337 2014-02-03 Teresa Johnson <tejohnson@google.com>
33339 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33340 redef of outer loop index variable.
33342 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33346 * doc/extend.texi (Function Attributes): Typo.
33348 2014-02-03 Cong Hou <congh@google.com>
33350 PR tree-optimization/60000
33351 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33352 if the vectorized statement is a store. A store statement can only
33353 appear at the end of pattern statements.
33355 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33357 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33358 (ix86_option_override_internal): Default long double to 64-bit for
33359 32-bit Bionic and to 128-bit for 64-bit Bionic.
33361 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33362 TARGET_LONG_DOUBLE_128 is true.
33363 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33365 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33366 (mlong-double-64): Negate -mlong-double-128.
33367 (mlong-double-128): New option.
33369 * config/i386/i386-c.c (ix86_target_macros): Define
33370 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33372 * doc/invoke.texi: Document -mlong-double-128.
33374 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33376 PR rtl-optimization/60024
33377 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33379 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33381 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33383 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33385 PR rtl-optimization/57662
33386 * sel-sched.c (code_motion_path_driver): Do not mark already not
33387 existing blocks in the visiting bitmap.
33389 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33391 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33392 on the insn being emitted.
33394 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33395 Will Deacon <will.deacon@arm.com>
33397 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33399 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33401 * config/arm/arm-tables.opt: Regenerate.
33403 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33405 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33406 for vector types other than V16QImode.
33407 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33408 define_expand, and call altivec_expand_vec_perm_le when producing
33409 code with little endian element order.
33410 (*altivec_vperm_<mode>_internal): New insn having previous
33411 behavior of altivec_vperm_<mode>.
33412 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33413 altivec_expand_vec_perm_le when producing code with little endian
33415 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33416 behavior of altivec_vperm_<mode>_uns.
33418 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33420 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33421 (altivec_vsumsws): Add handling for -maltivec=be with a little
33423 (altivec_vsumsws_direct): New.
33424 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33425 gen_altivec_vsumsws.
33427 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33429 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33430 vtable_pointer_value_to_binfo): New functions.
33431 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33432 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33434 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33436 * config/nios2/nios2.md (load_got_register): Initialize GOT
33437 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33438 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33440 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33442 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33443 preserverd by passthrough, do not propagate the type.
33445 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33447 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33448 (mips_atomic_assign_expand_fenv): New function.
33449 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33451 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33453 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33454 (__builtin_mips_set_fcsr): Likewise.
33455 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33456 MIPS_USI_FTYPE_VOID.
33457 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33458 (mips16_expand_set_fcsr): Likewise.
33459 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33460 (mips16_set_fcsr_stub): Likewise.
33461 (mips16_get_fcsr_one_only_stub): New class.
33462 (mips16_set_fcsr_one_only_stub): Likewise.
33463 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33464 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33465 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33466 (hard_float): New availability predicate.
33467 (mips_builtins): Add get_fcsr and set_fcsr.
33468 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33469 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33470 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33471 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33472 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33475 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33477 * config/mips/mips.c (mips_one_only_stub): New class.
33478 (mips_need_mips16_rdhwr_p): Replace with...
33479 (mips16_rdhwr_stub): ...this new variable.
33480 (mips16_stub_call_address): New function.
33481 (mips16_rdhwr_one_only_stub): New class.
33482 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33483 (mips_output_mips16_rdhwr): Delete.
33484 (mips_finish_stub): New function.
33485 (mips_code_end): Use it to handle rdhwr stubs.
33487 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33490 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33491 when calculating size of integer atomic types.
33493 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33495 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33497 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33499 PR tree-optimization/60003
33500 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33501 * profile.c (branch_prob): Use gimple_call_builtin_p
33502 to check for BUILT_IN_SETJMP_RECEIVER.
33503 * tree-inline.c (copy_bb): Call notice_special_calls.
33505 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33508 * lra-constraints.c (process_alt_operands): Update reload_sum only
33511 2014-01-31 Richard Henderson <rth@redhat.com>
33513 PR middle-end/60004
33514 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33515 until after else_eh is processed.
33517 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33519 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33520 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33521 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33522 in smmintrin.h, remove them.
33523 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33524 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33525 * config/i386/i386.md (ROUND_SAE): Fix value.
33526 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33527 (const48_operand): New.
33528 * config/i386/subst.md (round), (round_expand): Use
33529 const_4_or_8_to_11_operand.
33530 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33532 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33534 * config/i386/constraints.md (Yk): Swap meaning with k.
33535 * config/i386/i386.md (movhi_internal): Change Yk to k.
33536 (movqi_internal): Ditto.
33537 (*k<logic><mode>): Ditto.
33540 (kandn<mode>): Ditto.
33541 (*<code>hi_1): Ditto.
33542 (*<code>qi_1): Ditto.
33543 (kxnor<mode>): Ditto.
33544 (kortestzhi): Ditto.
33545 (kortestchi): Ditto.
33547 (*one_cmplhi2_1): Ditto.
33548 (*one_cmplqi2_1): Ditto.
33549 * config/i386/sse.md (): Change k to Yk.
33550 (avx512f_load<mode>_mask): Ditto.
33551 (avx512f_blendm<mode>): Ditto.
33552 (avx512f_store<mode>_mask): Ditto.
33553 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33554 (avx512f_storedqu<mode>_mask): Ditto.
33555 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33557 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33558 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33559 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33560 (avx512f_maskcmp<mode>3): Ditto.
33561 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33562 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33563 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33564 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33565 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33566 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33567 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33568 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33569 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33570 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33571 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33572 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33573 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33574 (vec_extract_lo_<mode>_maskm): Ditto.
33575 (vec_extract_hi_<mode>_maskm): Ditto.
33576 (avx512f_vternlog<mode>_mask): Ditto.
33577 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33578 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33579 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33580 (avx512f_<code>v8div16qi2_mask): Ditto.
33581 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33582 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33583 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33584 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33585 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33586 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33587 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33588 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33589 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33590 (avx512cd_maskb_vec_dupv8di): Ditto.
33591 (avx512cd_maskw_vec_dupv16si): Ditto.
33592 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33593 (avx512f_vpermi2var<mode>3_mask): Ditto.
33594 (avx512f_vpermi2var<mode>3_mask): Ditto.
33595 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33596 (*avx512f_gathersi<mode>): Ditto.
33597 (*avx512f_gathersi<mode>_2): Ditto.
33598 (*avx512f_gatherdi<mode>): Ditto.
33599 (*avx512f_gatherdi<mode>_2): Ditto.
33600 (*avx512f_scattersi<mode>): Ditto.
33601 (*avx512f_scatterdi<mode>): Ditto.
33602 (avx512f_compress<mode>_mask): Ditto.
33603 (avx512f_compressstore<mode>_mask): Ditto.
33604 (avx512f_expand<mode>_mask): Ditto.
33605 * config/i386/subst.md (mask): Change k to Yk.
33606 (mask_scalar_merge): Ditto.
33609 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33611 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33613 2014-01-31 Richard Biener <rguenther@suse.de>
33615 PR middle-end/59990
33616 * builtins.c (fold_builtin_memory_op): Make sure to not
33617 use a floating-point mode or a boolean or enumeral type for
33618 the copy operation.
33620 2014-01-30 DJ Delorie <dj@redhat.com>
33622 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33623 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33624 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33625 whenever main() has an epilogue.
33627 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33629 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33630 unused variable "field".
33631 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33632 (vsx_mergeh_<mode>): Likewise.
33633 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33634 (altivec_vmrghh): Likewise.
33635 (altivec_vmrghw): Likewise.
33636 (altivec_vmrglb): Likewise.
33637 (altivec_vmrglh): Likewise.
33638 (altivec_vmrglw): Likewise.
33639 (altivec_vspltb): Add missing uses.
33640 (altivec_vsplth): Likewise.
33641 (altivec_vspltw): Likewise.
33642 (altivec_vspltsf): Likewise.
33644 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33647 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33648 frame related instructions.
33650 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33652 PR rtl-optimization/59959
33653 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33654 any reload of register whose subreg is invalid.
33656 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33658 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33659 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33660 Add missing return type - void.
33662 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33664 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33665 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33666 remove element index adjustment for endian (now handled in vsx.md
33668 (altivec_expand_vec_perm_const): Use
33669 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33670 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33671 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33672 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33673 define_expand and a new define_insn *altivec_vspltb_internal;
33674 adjust for -maltivec=be on a little endian target.
33675 (altivec_vspltb_direct): New.
33676 (altivec_vsplth): Divide into a define_expand and a new
33677 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33678 little endian target.
33679 (altivec_vsplth_direct): New.
33680 (altivec_vspltw): Divide into a define_expand and a new
33681 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33682 little endian target.
33683 (altivec_vspltw_direct): New.
33684 (altivec_vspltsf): Divide into a define_expand and a new
33685 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33686 a little endian target.
33688 2014-01-30 Richard Biener <rguenther@suse.de>
33690 PR tree-optimization/59993
33691 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33692 can propagate form the earlier stmt and avoid the transform
33693 when the intermediate result is needed.
33695 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33697 * README.Portability: Fix typo.
33699 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33701 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33702 comparison_operator with ordered_comparison_operator.
33704 2014-01-30 Nick Clifton <nickc@redhat.com>
33706 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33707 Rename to mn10300_store_multiple_regs.
33708 * config/mn10300/mn10300.c: Likewise.
33709 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33710 store_multiple_regs.
33711 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33712 Call mn10300_store_multiple_regs.
33714 2014-01-30 Nick Clifton <nickc@redhat.com>
33715 DJ Delorie <dj@redhat.com>
33717 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33718 %fp 2 to keep registers after it properly word-aligned.
33719 (rl78_alloc_physical_registers_umul): Handle the case where both
33720 input operands are the same.
33722 2014-01-30 Richard Biener <rguenther@suse.de>
33724 PR tree-optimization/59903
33725 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33728 2014-01-30 Jason Merrill <jason@redhat.com>
33731 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33734 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33736 2014-01-30 Richard Biener <rguenther@suse.de>
33738 PR tree-optimization/59951
33739 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33741 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33744 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33745 SFmode to DFmode case.
33747 2014-01-29 DJ Delorie <dj@redhat.com>
33749 * config/msp430/msp430.opt (-minrt): New.
33750 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33752 (ENDFILE_SPEC): Likewise.
33754 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33756 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33757 (estimate_function_body_sizes): Use it.
33759 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33762 * dwarf2out.c (is_cxx_auto): New.
33763 (is_base_type): Use it.
33764 (gen_type_die_with_usage): Likewise.
33766 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33768 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33769 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33770 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33771 -maltivec=be with LE targets.
33772 (vsx_mergeh_<mode>): Likewise.
33773 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33774 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33775 (altivec_vmrghb): Replace with define_expand and new
33776 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33777 (altivec_vmrghb_direct): New define_insn.
33778 (altivec_vmrghh): Replace with define_expand and new
33779 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33780 (altivec_vmrghh_direct): New define_insn.
33781 (altivec_vmrghw): Replace with define_expand and new
33782 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33783 (altivec_vmrghw_direct): New define_insn.
33784 (*altivec_vmrghsf): Adjust for endianness.
33785 (altivec_vmrglb): Replace with define_expand and new
33786 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33787 (altivec_vmrglb_direct): New define_insn.
33788 (altivec_vmrglh): Replace with define_expand and new
33789 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33790 (altivec_vmrglh_direct): New define_insn.
33791 (altivec_vmrglw): Replace with define_expand and new
33792 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33793 (altivec_vmrglw_direct): New define_insn.
33794 (*altivec_vmrglsf): Adjust for endianness.
33795 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33796 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33797 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33798 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33799 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33800 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33801 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33802 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33804 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33806 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33807 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33810 2014-01-29 Richard Biener <rguenther@suse.de>
33812 PR tree-optimization/58742
33813 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33814 associate_pointerplus_align.
33815 (associate_pointerplus_diff): New function.
33816 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33817 and associate_pointerplus_diff.
33819 2014-01-29 Richard Biener <rguenther@suse.de>
33821 * lto-streamer.h (LTO_major_version): Bump to 3.
33822 (LTO_minor_version): Reset to 0.
33824 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33826 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33827 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33828 (arm_file_start): Generate correct asm header for armv7ve.
33829 * config/arm/bpabi.h: Add multilib support for armv7ve.
33830 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33831 and cortex-a15 to armv7ve.
33832 * config/arm/t-aprofile: Add multilib support for armv7ve.
33833 * doc/invoke.texi: Document -march=armv7ve.
33835 2014-01-29 Richard Biener <rguenther@suse.de>
33837 PR tree-optimization/58742
33838 * tree-ssa-forwprop.c (associate_plusminus): Return true
33839 if we changed sth, defer EH cleanup to ...
33840 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33841 (simplify_mult): New function.
33843 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33845 PR middle-end/59917
33846 PR tree-optimization/59920
33847 * tree.c (build_common_builtin_nodes): Remove
33848 __builtin_setjmp_dispatcher initialization.
33849 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33850 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33851 instead of gsi_after_labels + manually skipping debug stmts.
33852 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33853 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33854 * tree-inline.c (copy_edges_for_bb): Remove
33855 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33856 argument. Ignore computed_goto_p stmts. Don't call
33857 make_abnormal_goto_edges. If a call might need abnormal edges
33858 for non-local gotos, see if it already has an edge to
33859 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33860 with true argument, don't do anything then, otherwise add
33861 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33862 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33864 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33865 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33866 (lower_stmt): Don't set data->calls_builtin_setjmp.
33867 (lower_builtin_setjmp): Adjust comment.
33868 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33869 * tree-cfg.c (found_computed_goto): Remove.
33870 (factor_computed_gotos): Remove.
33871 (make_goto_expr_edges): Return bool, true for computed gotos.
33872 Don't call make_abnormal_goto_edges.
33873 (build_gimple_cfg): Don't set found_computed_goto, don't call
33874 factor_computed_gotos.
33875 (computed_goto_p): No longer static.
33876 (make_blocks): Don't set found_computed_goto.
33877 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33878 (make_edges): If make_goto_expr_edges returns true, push bb
33879 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33880 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33881 vector. Record mapping between bbs and OpenMP regions if there
33882 are any, adjust make_gimple_omp_edges caller. Call
33883 handle_abnormal_edges.
33884 (make_abnormal_goto_edges): Remove.
33885 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33886 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33887 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33888 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33889 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33890 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33891 filling *region also set *region_idx to (*region)->entry->index.
33894 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33895 For REGs set ORIGINAL_REGNO.
33897 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33899 * doc/md.texi: Mention that a target shouldn't implement
33900 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33903 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33905 PR tree-optimization/59594
33906 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33907 a copy of the datarefs vector rather than the vector itself.
33909 2014-01-28 Jason Merrill <jason@redhat.com>
33912 * dwarf2out.c (auto_die): New static.
33913 (gen_type_die_with_usage): Handle C++1y 'auto'.
33914 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33917 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33920 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33921 (SPEC_X32): Likewise.
33922 (SPEC_64): Likewise.
33923 * config/i386/i386.c (ix86_option_override_internal): Turn off
33924 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33926 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33927 * config/i386/i386.h (TARGET_16BIT): New macro.
33928 (TARGET_16BIT_P): Likewise.
33929 * config/i386/i386.opt: Add m16.
33930 * doc/invoke.texi: Document -m16.
33932 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33934 PR preprocessor/59935
33935 * input.c (location_get_source_line): Bail out on when line number
33936 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33938 2014-01-28 Richard Biener <rguenther@suse.de>
33940 PR tree-optimization/58742
33941 * tree-ssa-forwprop.c (associate_plusminus): Handle
33942 pointer subtraction of the form (T)(P + A) - (T)P.
33944 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33946 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33949 2014-01-28 Richard Biener <rguenther@suse.de>
33952 2014-01-28 Richard Biener <rguenther@suse.de>
33954 PR rtl-optimization/45364
33955 PR rtl-optimization/59890
33956 * var-tracking.c (local_get_addr_clear_given_value): Handle
33957 already cleared slot.
33958 (val_reset): Handle not allocated local_get_addr_cache.
33959 (vt_find_locations): Use post-order on the inverted CFG.
33961 2014-01-28 Richard Biener <rguenther@suse.de>
33963 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33965 2014-01-28 Richard Biener <rguenther@suse.de>
33967 PR rtl-optimization/45364
33968 PR rtl-optimization/59890
33969 * var-tracking.c (local_get_addr_clear_given_value): Handle
33970 already cleared slot.
33971 (val_reset): Handle not allocated local_get_addr_cache.
33972 (vt_find_locations): Use post-order on the inverted CFG.
33974 2014-01-28 Alan Modra <amodra@gmail.com>
33976 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33977 * configure.ac <recursive call for build != host>: Define
33978 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33979 and LD_FOR_BUILD too.
33980 * configure: Regenerate.
33982 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33984 * config/i386/i386.c (get_builtin_code_for_version): Separate
33985 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33986 Broadwell from Haswell.
33988 2014-01-27 Steve Ellcey <sellcey@mips.com>
33990 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33991 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33992 * config/mips/mips.c (mips_option_override): Change setting
33994 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33995 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33996 Change from Mask to Var.
33998 2014-01-27 Jeff Law <law@redhat.com>
34000 * ipa-inline.c (inline_small_functions): Fix typo.
34002 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
34004 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34005 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34006 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34007 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34008 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34009 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34010 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34011 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34012 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34013 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34014 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34015 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34016 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34017 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34018 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34019 (_mm512_storeu_epi64): Ditto.
34020 (_mm512_cmpge_epi32_mask): Ditto.
34021 (_mm512_cmpge_epu32_mask): Ditto.
34022 (_mm512_cmpge_epi64_mask): Ditto.
34023 (_mm512_cmpge_epu64_mask): Ditto.
34024 (_mm512_cmple_epi32_mask): Ditto.
34025 (_mm512_cmple_epu32_mask): Ditto.
34026 (_mm512_cmple_epi64_mask): Ditto.
34027 (_mm512_cmple_epu64_mask): Ditto.
34028 (_mm512_cmplt_epi32_mask): Ditto.
34029 (_mm512_cmplt_epu32_mask): Ditto.
34030 (_mm512_cmplt_epi64_mask): Ditto.
34031 (_mm512_cmplt_epu64_mask): Ditto.
34032 (_mm512_cmpneq_epi32_mask): Ditto.
34033 (_mm512_cmpneq_epu32_mask): Ditto.
34034 (_mm512_cmpneq_epi64_mask): Ditto.
34035 (_mm512_cmpneq_epu64_mask): Ditto.
34036 (_mm512_expand_pd): Ditto.
34037 (_mm512_expand_ps): Ditto.
34038 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34039 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34040 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34041 * config/i386/i386.c (ix86_builtins): Add
34042 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34043 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34044 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34045 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34046 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34047 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34048 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34049 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34050 IX86_BUILTIN_PMOVUSQW512_MEM.
34051 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34052 __builtin_ia32_pmovsqd512mem_mask,
34053 __builtin_ia32_pmovqd512mem_mask,
34054 __builtin_ia32_pmovusqw512mem_mask,
34055 __builtin_ia32_pmovsqw512mem_mask,
34056 __builtin_ia32_pmovqw512mem_mask,
34057 __builtin_ia32_pmovusdw512mem_mask,
34058 __builtin_ia32_pmovsdw512mem_mask,
34059 __builtin_ia32_pmovdw512mem_mask,
34060 __builtin_ia32_pmovqb512mem_mask,
34061 __builtin_ia32_pmovusqb512mem_mask,
34062 __builtin_ia32_pmovsqb512mem_mask,
34063 __builtin_ia32_pmovusdb512mem_mask,
34064 __builtin_ia32_pmovsdb512mem_mask,
34065 __builtin_ia32_pmovdb512mem_mask.
34066 (bdesc_args): Add __builtin_ia32_expanddf512,
34067 __builtin_ia32_expandsf512.
34068 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34069 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34070 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34071 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34072 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34073 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34074 (avx512f_<code>v8div16qi2_mask_store): This.
34075 (avx512f_expand<mode>): New.
34077 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34079 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34081 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34082 (_mm512_prefetch_i32scatter_pd): Ditto.
34083 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34084 (_mm512_prefetch_i64scatter_pd): Ditto.
34085 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34086 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34087 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34088 (_mm512_prefetch_i32scatter_ps): Ditto.
34089 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34090 (_mm512_prefetch_i64scatter_ps): Ditto.
34091 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34092 * config/i386/i386-builtin-types.def: Define
34093 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34094 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34095 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34096 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34097 IX86_BUILTIN_SCATTERPFQPD.
34098 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34099 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34100 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34101 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34102 __builtin_ia32_scatterpfqps.
34103 (ix86_expand_builtin): Expand new built-ins.
34104 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34105 fix memory access data type.
34106 (*avx512pf_gatherpf<mode>_mask): Ditto.
34107 (*avx512pf_gatherpf<mode>): Ditto.
34108 (avx512pf_scatterpf<mode>): Ditto.
34109 (*avx512pf_scatterpf<mode>_mask): Ditto.
34110 (*avx512pf_scatterpf<mode>): Ditto.
34111 (GATHER_SCATTER_SF_MEM_MODE): New.
34112 (avx512pf_gatherpf<mode>df): Ditto.
34113 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34114 (*avx512pf_scatterpf<mode>df): Ditto.
34116 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34119 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34120 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34123 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34125 * common/config/arm/arm-common.c
34126 (arm_rewrite_mcpu): Handle multiple names.
34128 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34130 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34132 * gimple-builder.h (create_gimple_tmp): Delete.
34134 2014-01-27 Christian Bruel <christian.bruel@st.com>
34136 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34139 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34141 * config/pa/pa.md (call): Generate indirect long calls to non-local
34142 functions when outputing 32-bit code.
34143 (call_value): Likewise except for special call to buggy powf function.
34145 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34146 portable runtime and PIC indirect calls.
34147 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34148 and PIC call sequences. Use ldo instead of blr to set return register
34149 in PIC call sequence.
34151 2014-01-25 Walter Lee <walt@tilera.com>
34153 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34154 avoid clobbering a live register.
34156 2014-01-25 Walter Lee <walt@tilera.com>
34158 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34159 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34160 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34161 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34163 2014-01-25 Walter Lee <walt@tilera.com>
34165 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34166 arguments on even registers.
34167 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34169 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34170 (BIGGEST_ALIGNMENT): Ditto.
34171 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34173 2014-01-25 Walter Lee <walt@tilera.com>
34175 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34176 insns before bundling.
34177 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34179 2014-01-25 Walter Lee <walt@tilera.com>
34181 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34182 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34183 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34185 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34187 * config/mips/constraints.md (kl): Delete.
34188 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34189 define expands, using...
34190 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34191 instructions for MIPS16.
34192 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34193 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34195 2014-01-25 Walter Lee <walt@tilera.com>
34197 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34201 2014-01-25 Walter Lee <walt@tilera.com>
34203 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34204 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34206 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34208 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34211 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34213 * print-rtl.c (in_call_function_usage): New var.
34214 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34215 EXPR_LIST mode as mode and not as reg note name.
34217 PR middle-end/59561
34218 * cfgloopmanip.c (copy_loop_info): If
34219 loop->warned_aggressive_loop_optimizations, make sure
34220 the flag is set in target loop too.
34222 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34224 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34226 * builtins.def: Likewise.
34227 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34228 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34229 * ira.c (ira_setup_eliminable_regset): Likewise.
34230 * omp-low.c (gate_expand_omp): Likewise.
34231 (execute_lower_omp): Likewise.
34232 (diagnose_sb_0): Likewise.
34233 (gate_diagnose_omp_blocks): Likewise.
34234 (simd_clone_clauses_extract): Likewise.
34237 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34239 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34240 correction for little endian...
34241 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34244 2014-01-24 Jeff Law <law@redhat.com>
34246 PR tree-optimization/59919
34247 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34248 for non-returning calls.
34250 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34252 * common/config/aarch64/aarch64-common.c
34253 (aarch64_rewrite_mcpu): Handle multiple names.
34254 * config/aarch64/aarch64.h
34255 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34257 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34259 * input.c (add_file_to_cache_tab): Handle the case where fopen
34262 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34265 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34266 from push operand if code of push isn't PRE_DEC.
34268 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34271 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34272 -mquad-memory-atomic. Update -mquad-memory documentation to say
34273 it is only used for non-atomic loads/stores.
34275 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34276 -mquad-memory or -mquad-memory-atomic switches.
34278 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34279 -mquad-memory-atomic to ISA 2.07 support.
34281 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34282 to separate support of normal quad word memory operations (ldq, stq)
34283 from the atomic quad word memory operations.
34285 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34286 support to separate non-atomic quad word operations from atomic
34287 quad word operations. Disable non-atomic quad word operations in
34288 little endian mode so that we don't have to swap words after the
34289 load and before the store.
34290 (quad_load_store_p): Add comment about atomic quad word support.
34291 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34292 options printed with -mdebug=reg.
34294 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34295 -mquad-memory-atomic as the test for whether we have quad word
34296 atomic instructions.
34297 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34298 or -mp8-vector are used, allow byte/half-word atomic operations.
34300 * config/rs6000/sync.md (load_lockedti): Insure that the address
34301 is a proper indexed or indirect address for the lqarx instruction.
34302 On little endian systems, swap the hi/lo registers after the lqarx
34304 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34305 insure the address is valid for the lqarx instruction.
34306 (store_conditionalti): Insure that the address is a proper indexed
34307 or indirect address for the stqcrx. instruction. On little endian
34308 systems, swap the hi/lo registers before doing the stqcrx.
34310 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34311 insure the address is valid for the stqcrx. instruction.
34313 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34314 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34315 type of quad memory support is available.
34317 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34319 PR regression/59915
34320 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34321 there is a danger of looping.
34323 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34325 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34326 force flag_ira_loop_pressure if set via command line.
34328 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34330 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34331 (ashr_simd): New builtin handling DI mode.
34332 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34333 (aarch64_sshr_simddi): New match pattern.
34334 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34335 (vshrd_n_s64): Likewise.
34336 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34338 2014-01-23 Nick Clifton <nickc@redhat.com>
34340 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34341 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34342 favour of mcu specific scripts.
34343 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34346 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34347 Alex Velenko <Alex.Velenko@arm.com>
34349 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34350 (vaddv_s16): Likewise.
34351 (vaddv_s32): Likewise.
34352 (vaddv_u8): Likewise.
34353 (vaddv_u16): Likewise.
34354 (vaddv_u32): Likewise.
34355 (vaddvq_s8): Likewise.
34356 (vaddvq_s16): Likewise.
34357 (vaddvq_s32): Likewise.
34358 (vaddvq_s64): Likewise.
34359 (vaddvq_u8): Likewise.
34360 (vaddvq_u16): Likewise.
34361 (vaddvq_u32): Likewise.
34362 (vaddvq_u64): Likewise.
34363 (vaddv_f32): Likewise.
34364 (vaddvq_f32): Likewise.
34365 (vaddvq_f64): Likewise.
34366 (vmaxv_f32): Likewise.
34367 (vmaxv_s8): Likewise.
34368 (vmaxv_s16): Likewise.
34369 (vmaxv_s32): Likewise.
34370 (vmaxv_u8): Likewise.
34371 (vmaxv_u16): Likewise.
34372 (vmaxv_u32): Likewise.
34373 (vmaxvq_f32): Likewise.
34374 (vmaxvq_f64): Likewise.
34375 (vmaxvq_s8): Likewise.
34376 (vmaxvq_s16): Likewise.
34377 (vmaxvq_s32): Likewise.
34378 (vmaxvq_u8): Likewise.
34379 (vmaxvq_u16): Likewise.
34380 (vmaxvq_u32): Likewise.
34381 (vmaxnmv_f32): Likewise.
34382 (vmaxnmvq_f32): Likewise.
34383 (vmaxnmvq_f64): Likewise.
34384 (vminv_f32): Likewise.
34385 (vminv_s8): Likewise.
34386 (vminv_s16): Likewise.
34387 (vminv_s32): Likewise.
34388 (vminv_u8): Likewise.
34389 (vminv_u16): Likewise.
34390 (vminv_u32): Likewise.
34391 (vminvq_f32): Likewise.
34392 (vminvq_f64): Likewise.
34393 (vminvq_s8): Likewise.
34394 (vminvq_s16): Likewise.
34395 (vminvq_s32): Likewise.
34396 (vminvq_u8): Likewise.
34397 (vminvq_u16): Likewise.
34398 (vminvq_u32): Likewise.
34399 (vminnmv_f32): Likewise.
34400 (vminnmvq_f32): Likewise.
34401 (vminnmvq_f64): Likewise.
34403 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34405 * config/aarch64/aarch64-simd.md
34406 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34407 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34408 (*aarch64_mul3_elt<mode>): Likewise.
34409 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34410 (*aarch64_mul3_elt_to_64v2df): Likewise.
34411 (*aarch64_mla_elt<mode>): Likewise.
34412 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34413 (*aarch64_mls_elt<mode>): Likewise.
34414 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34415 (*aarch64_fma4_elt<mode>): Likewise.
34416 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34417 (*aarch64_fma4_elt_to_64v2df): Likewise.
34418 (*aarch64_fnma4_elt<mode>): Likewise.
34419 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34420 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34421 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34422 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34423 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34424 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34425 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34426 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34427 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34429 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34431 * config/aarch64/aarch64-simd.md
34432 (aarch64_be_checked_get_lane<mode>): New define_expand.
34433 * config/aarch64/aarch64-simd-builtins.def
34434 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34435 New builtin definition.
34436 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34437 Use new safe be builtin.
34439 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34441 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34443 (aarch64_be_st1<mode>): Likewise.
34444 (aarch_ld1<VALL:mode>): Define_expand modified.
34445 (aarch_st1<VALL:mode>): Likewise.
34446 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34447 (UNSPEC_ST1): Likewise.
34449 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34451 * config/microblaze/microblaze.md: Add trap insn and attribute
34453 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34455 PR preprocessor/58580
34456 * input.h (location_get_source_line): Take an additional line_size
34458 (void diagnostics_file_cache_fini): Declare new function.
34459 * input.c (struct fcache): New type.
34460 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34461 New static constants.
34462 (diagnostic_file_cache_init, total_lines_num)
34463 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34464 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34465 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34466 (get_next_line, read_next_line, goto_next_line, read_line_num):
34467 New static function definitions.
34468 (diagnostic_file_cache_fini): New function.
34469 (location_get_source_line): Take an additional output line_len
34470 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34472 * diagnostic.c (diagnostic_finish): Call
34473 diagnostic_file_cache_fini.
34474 (adjust_line): Take an additional input parameter for the length
34475 of the line, rather than calculating it with strlen.
34476 (diagnostic_show_locus): Adjust the use of
34477 location_get_source_line and adjust_line with respect to their new
34478 signature. While displaying a line now, do not stop at the first
34479 null byte. Rather, display the zero byte as a space and keep
34480 going until we reach the size of the line.
34481 * Makefile.in: Add vec.o to OBJS-libcommon
34483 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34484 Ilya Tocar <ilya.tocar@intel.com>
34486 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34487 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34488 (__builtin_ia32_kmov16): Ditto.
34489 * config/i386/i386.md (UNSPEC_KMOV): New.
34492 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34494 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34495 (_mm512_storeu_si512): Ditto.
34497 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34500 * rtl.h (get_referenced_operands): Declare.
34501 * recog.c (get_referenced_operands): New function.
34502 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34503 operands have been referenced when recording LO_SUM references.
34505 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34507 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34509 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34511 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34512 Enable for generic and recent AMD targets.
34514 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34516 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34517 ARG_SIZE note when adjustment was eliminated.
34519 2014-01-22 Jeff Law <law@redhat.com>
34521 PR tree-optimization/59597
34522 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34523 in file. Accept new argument REGISTERING and use it to modify
34524 dump output appropriately.
34525 (register_jump_thread): Corresponding changes.
34526 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34527 thread paths involving joiner blocks. Add code to dump cancelled
34528 jump threading paths.
34530 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34532 PR rtl-optimization/59477
34533 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34534 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34536 2014-01-22 Tom Tromey <tromey@redhat.com>
34538 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34540 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34542 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34544 PR rtl-optimization/59896
34545 * lra-constraints.c (process_alt_operands): Check unused note for
34546 matched operands of insn with no output reloads.
34548 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34550 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34551 (mips_move_from_gpr_cost): Likewise.
34553 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34555 PR rtl-optimization/59858
34556 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34557 ira_class_hard_regs_num.
34558 (process_alt_operands): Increase reject for dying matched operand.
34560 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34563 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34564 smaller than size, perform several stores or loads and stores
34565 at dst + count - size to store or copy all of size bytes, rather
34566 than just last modesize bytes.
34568 2014-01-20 DJ Delorie <dj@redhat.com>
34570 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34571 that CLOBBERs are REGs before propogating their values.
34573 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34575 PR middle-end/59789
34576 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34577 (cgraph_inline_failed_type): New function.
34578 * cgraph.h (DEFCIFCODE): Add type.
34579 (cgraph_inline_failed_type_t): New enum.
34580 (cgraph_inline_failed_type): New prototype.
34581 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34582 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34583 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34584 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34585 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34586 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34587 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34588 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34589 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34590 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34591 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34592 OPTIMIZATION_MISMATCH.
34593 * tree-inline.c (expand_call_inline): Emit errors during
34594 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34596 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34599 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34600 mode attribute in insn output.
34602 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34604 * output.h (output_constant): Delete.
34605 * varasm.c (output_constant): Make private.
34607 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34609 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34611 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34613 PR middle-end/59860
34614 * tree.h (fold_builtin_strcat): New prototype.
34615 * builtins.c (fold_builtin_strcat): No longer static. Add len
34616 argument, if non-NULL, don't call c_strlen. Optimize
34617 directly into __builtin_memcpy instead of __builtin_strcpy.
34618 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34619 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34621 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34623 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34624 for SImode_address_operand operands, having only a REG argument.
34626 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34628 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34629 loader name using mbig-endian.
34630 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34632 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34634 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34635 (-mtune): Likewise.
34638 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34640 * config/aarch64/aarch64-protos.h
34641 (aarch64_cannot_change_mode_class_ptr): Declare.
34642 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34643 aarch64_cannot_change_mode_class_ptr): New.
34644 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34645 backend hook aarch64_cannot_change_mode_class.
34647 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34649 * common/config/aarch64/aarch64-common.c
34650 (aarch64_handle_option): Don't handle any option order logic here.
34651 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34652 selected_cpu, warn on architecture version mismatch.
34653 (aarch64_override_options): Fix parsing order for option strings.
34655 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34656 Iain Sandoe <iain@codesourcery.com>
34659 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34660 warning. Amend comment to reflect current functionality.
34662 2014-01-20 Richard Biener <rguenther@suse.de>
34664 PR middle-end/59860
34665 * builtins.c (fold_builtin_strcat): Remove case better handled
34666 by tree-ssa-strlen.c.
34668 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34670 * config/aarch64/aarch64.opt
34671 (mcpu, march, mtune): Make case-insensitive.
34673 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34676 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34677 if operands[1] is a REG or ZERO_EXTEND of a REG.
34679 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34681 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34683 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34685 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34686 long non-pic millicode calls.
34688 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34690 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34692 2014-01-19 Kito Cheng <kito@0xlab.org>
34694 * builtins.c (expand_movstr): Check movstr expand done or fail.
34696 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34697 H.J. Lu <hongjiu.lu@intel.com>
34700 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34701 to DImode for zero-extended addresses.
34703 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34705 PR rtl-optimization/57763
34706 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34707 on the new indirect jump_insn and increment LABEL_NUSES (label).
34709 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34713 * config.gcc (x86_archs): New variable.
34714 (x86_64_archs): Likewise.
34715 (x86_cpus): Likewise.
34716 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34717 --with-arch/--with-cpu= options.
34718 Support --with-arch=/--with-cpu={nehalem,westmere,
34719 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34721 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34723 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34724 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34726 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34728 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34730 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34733 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34734 clear cpp_get_options (parse_in)->warn_unused_macros for
34735 ix86_target_macros_internal with cpp_define.
34737 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34739 * jump.c (delete_related_insns): Keep (use (insn))s.
34740 * reorg.c (redundant_insn): Check for barriers too.
34742 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34744 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34746 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34748 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34749 call to $$dyncall when TARGET_LONG_CALLS is true.
34751 2014-01-17 Jeff Law <law@redhat.com>
34753 * ree.c (combine_set_extension): Temporarily disable test for
34754 changing number of hard registers.
34756 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34758 PR middle-end/58125
34759 * ipa-inline-analysis.c (inline_free_summary):
34760 Do not free summary of aliases.
34762 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34764 PR middle-end/59706
34765 * gimplify.c (gimplify_expr): Use create_tmp_var
34766 instead of create_tmp_var_raw. If cond doesn't have
34767 integral type, don't add the IFN_ANNOTATE builtin at all.
34769 2014-01-17 Martin Jambor <mjambor@suse.cz>
34772 * ipa-cp.c (prev_edge_clone): New variable.
34773 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34774 Also resize prev_edge_clone vector.
34775 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34776 (ipcp_edge_removal_hook): New function.
34777 (ipcp_driver): Register ipcp_edge_removal_hook.
34779 2014-01-17 Andrew Pinski <apinski@cavium.com>
34780 Steve Ellcey <sellcey@mips.com>
34783 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34786 2014-01-17 Jeff Law <law@redhat.com>
34788 PR middle-end/57904
34789 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34790 so that pass_ccp runs first.
34792 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34794 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34795 (ix86_adjust_cost): Use !TARGET_XXX.
34796 (do_reorder_for_imul): Likewise.
34797 (swap_top_of_ready_list): Likewise.
34798 (ix86_sched_reorder): Likewise.
34800 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34802 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34803 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34804 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34805 (intel_memset): New. Duplicate slm_memset.
34806 (intel_cost): New. Duplicate slm_cost.
34807 (m_INTEL): New macro.
34808 (processor_target_table): Add "intel".
34809 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34810 with PROCESSOR_INTEL for "intel".
34811 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34812 PROCESSOR_SILVERMONT.
34813 (ix86_issue_rate): Likewise.
34814 (ix86_adjust_cost): Likewise.
34815 (ia32_multipass_dfa_lookahead): Likewise.
34816 (swap_top_of_ready_list): Likewise.
34817 (ix86_sched_reorder): Likewise.
34818 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34819 instead of TARGET_OPT_AGU.
34820 * config/i386/i386.h (TARGET_INTEL): New.
34821 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34822 (processor_type): Add PROCESSOR_INTEL.
34823 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34824 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34826 2014-01-17 Marek Polacek <polacek@redhat.com>
34829 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34832 2014-01-17 Richard Biener <rguenther@suse.de>
34834 PR tree-optimization/46590
34835 * opts.c (default_options_table): Add entries for
34836 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34837 all enabled at -O1 but not for -Og.
34838 * common.opt (fbranch-count-reg): Remove Init(1).
34839 (fmove-loop-invariants): Likewise.
34840 (ftree-pta): Likewise.
34842 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34844 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34845 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34846 decls to at least the GCC 4.8 used alignments.
34849 * tree-nested.c (convert_nonlocal_reference_stmt,
34850 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34851 of GIMPLE_BIND stmts, adjust associated decls.
34853 2014-01-17 Richard Biener <rguenther@suse.de>
34855 PR tree-optimization/46590
34856 * vec.h (vec<>::bseach): New member function implementing
34857 binary search according to C89 bsearch.
34858 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34859 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34860 bitmap pointer again. Make accesses_in_loop a flat array.
34861 (mem_ref_obstack): New global.
34862 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34863 (mark_ref_stored): Likewise.
34864 (ref_indep_loop_p_2): Likewise.
34865 (set_ref_stored_in_loop): New helper function.
34866 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34867 (memref_free): Adjust.
34868 (record_mem_ref_loc): Simplify.
34869 (gather_mem_refs_stmt): Adjust.
34870 (sort_locs_in_loop_postorder_cmp): New function.
34871 (analyze_memory_references): Sort accesses_in_loop after
34872 loop postorder number.
34873 (find_ref_loc_in_loop_cmp): New function.
34874 (for_all_locs_in_loop): Find relevant cluster of locs in
34875 accesses_in_loop and iterate without recursion.
34876 (execute_sm): Avoid uninit warning.
34877 (struct ref_always_accessed): Simplify.
34878 (ref_always_accessed::operator ()): Likewise.
34879 (ref_always_accessed_p): Likewise.
34880 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34881 loop postorder numbers here.
34882 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34885 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34888 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34889 on decls for which assemble_alias has been called.
34891 2014-01-17 Nick Clifton <nickc@redhat.com>
34893 * config/msp430/msp430.opt: (mcpu): New option.
34894 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34895 (msp430_option_override): Parse target_cpu. If the MCU name
34896 matches a generic string, clear target_mcu.
34897 (msp430_attr): Allow numeric interrupt values up to 63.
34898 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34899 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34901 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34903 * config/msp430/msp430.md (popm): Use %J rather than %I.
34904 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34905 (addhi_cy_i): Use immediate_operand for operand 2.
34906 * doc/invoke.texi: Document -mcpu option.
34908 2014-01-17 Richard Biener <rguenther@suse.de>
34910 PR rtl-optimization/38518
34911 * df.h (df_analyze_loop): Declare.
34912 * df-core.c: Include cfgloop.h.
34913 (df_analyze_1): Split out main part of df_analyze.
34914 (df_analyze): Adjust.
34915 (loop_inverted_post_order_compute): New function.
34916 (loop_post_order_compute): Likewise.
34917 (df_analyze_loop): New function avoiding whole-function
34918 postorder computes.
34919 * loop-invariant.c (find_defs): Use df_analyze_loop.
34920 (find_invariants): Adjust.
34921 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34923 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34925 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34926 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34928 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34930 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34931 traversal when removing references.
34933 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34936 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34938 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34940 PR middle-end/56791
34941 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34942 pushing a reload for an autoinc when we had previously reloaded an
34943 inner part of the address.
34945 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34947 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34949 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34950 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34951 when not giving up or versioning for alias only because of
34953 (vect_analyze_data_ref_dependences): Set to true.
34954 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34956 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34957 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34960 PR middle-end/58344
34961 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34964 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34965 operand 0 predicate for gathers, use a new pseudo as subtarget.
34967 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34969 PR middle-end/59609
34970 * lra-constraints.c (process_alt_operands): Add printing debug info.
34971 Check absence of input/output reloads for matched operands too.
34973 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34975 PR rtl-optimization/59835
34976 * ira.c (ira_init_register_move_cost): Increase cost for
34979 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34981 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34983 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34986 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34987 non-register objects. Use gen_(high/low)part more consistently.
34990 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34993 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34994 endian support, remove tests for WORDS_BIG_ENDIAN.
34995 (p8_mfvsrd_3_<mode>): Likewise.
34996 (reload_gpr_from_vsx<mode>): Likewise.
34997 (reload_gpr_from_vsxsf): Likewise.
34998 (p8_mfvsrd_4_disf): Likewise.
35000 2014-01-16 Richard Biener <rguenther@suse.de>
35002 PR rtl-optimization/46590
35003 * lcm.c (compute_antinout_edge): Use postorder iteration.
35004 (compute_laterin): Use inverted postorder iteration.
35006 2014-01-16 Nick Clifton <nickc@redhat.com>
35008 PR middle-end/28865
35009 * varasm.c (output_constant): Return the number of bytes actually
35011 (output_constructor_array_range): Update the field size with the
35012 number of bytes emitted by output_constant.
35013 (output_constructor_regular_field): Likewise. Also do not
35014 complain if the total number of bytes emitted is now greater
35015 than the expected fieldpos.
35016 * output.h (output_constant): Update prototype and descriptive comment.
35018 2014-01-16 Marek Polacek <polacek@redhat.com>
35020 PR middle-end/59827
35021 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35022 it is error_mark_node.
35024 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35026 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35027 VALID_AVX256_REG_OR_OI_MODE.
35029 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35031 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35032 current procedure should be profiled.
35034 2014-01-15 Andrew Pinski <apinski@cavium.com>
35036 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35037 of moving from/to the STACK_REG register class.
35039 2014-01-15 Richard Henderson <rth@redhat.com>
35042 * reginfo.c (global_regs_decl): Globalize.
35043 * rtl.h (global_regs_decl): Declare.
35044 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35045 reserved via global_regs.
35047 2014-01-15 Teresa Johnson <tejohnson@google.com>
35049 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35051 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35053 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35054 and vmulosh rather than call gen_vec_widen_smult_*.
35055 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35056 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35057 (vec_widen_smult_even_v16qi): Likewise.
35058 (vec_widen_umult_even_v8hi): Likewise.
35059 (vec_widen_smult_even_v8hi): Likewise.
35060 (vec_widen_umult_odd_v16qi): Likewise.
35061 (vec_widen_smult_odd_v16qi): Likewise.
35062 (vec_widen_umult_odd_v8hi): Likewise.
35063 (vec_widen_smult_odd_v8hi): Likewise.
35064 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35065 vmuloub rather than call gen_vec_widen_umult_*.
35066 (vec_widen_umult_lo_v16qi): Likewise.
35067 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35068 vmulosb rather than call gen_vec_widen_smult_*.
35069 (vec_widen_smult_lo_v16qi): Likewise.
35070 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35071 rather than call gen_vec_widen_umult_*.
35072 (vec_widen_umult_lo_v8hi): Likewise.
35073 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35074 rather than call gen_vec_widen_smult_*.
35075 (vec_widen_smult_lo_v8hi): Likewise.
35077 2014-01-15 Jeff Law <law@redhat.com>
35079 PR tree-optimization/59747
35080 * ree.c (find_and_remove_re): Properly handle case where a second
35081 eliminated extension requires widening a copy created for elimination
35082 of a prior extension.
35083 (combine_set_extension): Ensure that the number of hard regs needed
35084 for a destination register does not change when we widen it.
35086 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35088 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35089 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35090 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35091 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35092 (avr-*-rtems*): Likewise.
35093 (bfin*-rtems*): Likewise.
35094 (moxie-*-rtems*): Likewise.
35095 (h8300-*-rtems*): Likewise.
35096 (i[34567]86-*-rtems*): Likewise.
35097 (lm32-*-rtems*): Likewise.
35098 (m32r-*-rtems*): Likewise.
35099 (m68k-*-rtems*): Likewise.
35100 (microblaze*-*-rtems*): Likewise.
35101 (mips*-*-rtems*): Likewise.
35102 (powerpc-*-rtems*): Likewise.
35103 (sh-*-rtems*): Likewise.
35104 (sparc-*-rtems*): Likewise.
35105 (sparc64-*-rtems*): Likewise.
35106 (v850-*-rtems*): Likewise.
35107 (m32c-*-rtems*): Likewise.
35109 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35111 PR rtl-optimization/59511
35112 * ira.c (ira_init_register_move_cost): Use memory costs for some
35113 cases of register move cost calculations.
35114 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35115 instead of BB frequency.
35116 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35117 * lra-assigns.c (find_hard_regno_for): Ditto.
35119 2014-01-15 Richard Biener <rguenther@suse.de>
35121 PR tree-optimization/59822
35122 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35123 (vectorizable_load): Use it to hoist defs of uses of invariant
35124 loads out of the loop.
35126 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35127 Kugan Vivekanandarajah <kuganv@linaro.org>
35130 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35133 2014-01-15 Richard Biener <rguenther@suse.de>
35135 PR rtl-optimization/59802
35136 * lcm.c (compute_available): Use inverted postorder to seed
35137 the initial worklist.
35139 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35142 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35143 ADDR_REGS for invalid symrefs in non-PIC code.
35145 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35148 * builtins.c (determine_block_size): Initialize *probable_max_size
35149 even if len_rtx is CONST_INT.
35151 2014-01-14 Andrew Pinski <apinski@cavium.com>
35153 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35154 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35155 (cortexa53_tunings): Likewise.
35156 (aarch64_sched_issue_rate): New function.
35157 (TARGET_SCHED_ISSUE_RATE): Define.
35159 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35161 * ira-costs.c (find_costs_and_classes): Add missed
35162 ira_init_register_move_cost_if_necessary.
35164 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35167 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35169 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35172 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35173 to indicate if type is used for function return value. Warn ABI
35174 change if the vector mode isn't available for function return value.
35175 (ix86_function_arg_advance): Pass false to type_natural_mode.
35176 (ix86_function_arg): Likewise.
35177 (ix86_gimplify_va_arg): Likewise.
35178 (function_arg_32): Don't warn ABI change.
35179 (ix86_function_value): Pass true to type_natural_mode.
35180 (ix86_return_in_memory): Likewise.
35181 (ix86_struct_value_rtx): Removed.
35182 (TARGET_STRUCT_VALUE_RTX): Likewise.
35184 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35186 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35187 converting a conditional jump into a conditional return.
35189 2014-01-14 Richard Biener <rguenther@suse.de>
35191 PR tree-optimization/58921
35192 PR tree-optimization/59006
35193 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35194 hoisting invariant stmts.
35195 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35196 invariant loads on the preheader edge if possible.
35198 2014-01-14 Joey Ye <joey.ye@arm.com>
35200 * doc/plugin.texi (Building GCC plugins): Update to C++.
35202 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35204 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35205 (_mm_rcp28_round_ss): Ditto.
35206 (_mm_rsqrt28_round_sd): Ditto.
35207 (_mm_rsqrt28_round_ss): Ditto.
35208 (_mm_rcp28_sd): Ditto.
35209 (_mm_rcp28_ss): Ditto.
35210 (_mm_rsqrt28_sd): Ditto.
35211 (_mm_rsqrt28_ss): Ditto.
35212 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35213 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35214 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35215 (IX86_BUILTIN_RCP28SD): Ditto.
35216 (IX86_BUILTIN_RCP28SS): Ditto.
35217 (IX86_BUILTIN_RSQRT28SD): Ditto.
35218 (IX86_BUILTIN_RSQRT28SS): Ditto.
35219 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35220 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35221 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35222 (ix86_expand_special_args_builtin): Expand new FTYPE.
35223 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35224 (srcp14<mode>): Make insn unary.
35225 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35226 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35227 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35228 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35229 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35230 Fix rounding: make it SAE only.
35231 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35233 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35235 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35236 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35237 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35238 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35239 (round_saeonly_mask_scalar_operand4): Ditto.
35240 (round_saeonly_mask_scalar_op3): Ditto.
35241 (round_saeonly_mask_scalar_op4): Ditto.
35243 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35245 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35246 Implement -maltivec=be for vec_insert and vec_extract.
35248 2014-01-10 DJ Delorie <dj@redhat.com>
35250 * config/msp430/msp430.md (call_internal): Don't allow memory
35251 references with SP as the base register.
35252 (call_value_internal): Likewise.
35253 * config/msp430/constraints.md (Yc): New. For memory references
35254 that don't use SP as a base register.
35256 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35257 "an integer without a # prefix"
35258 * config/msp430/msp430.md (epilogue_helper): Use it.
35260 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35263 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35264 AVX512F gather builtins.
35265 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35266 on gather decls with INTEGER_TYPE masktype.
35267 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35268 directly into the builtin rather than hoisting it before loop.
35270 PR tree-optimization/59387
35271 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35272 (scev_const_prop): If folded_casts and type has undefined overflow,
35273 use force_gimple_operand instead of force_gimple_operand_gsi and
35274 for each added stmt if it is assign with
35275 arith_code_with_undefined_signed_overflow, call
35276 rewrite_to_defined_overflow.
35277 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35278 gimple-fold.h instead.
35279 (arith_code_with_undefined_signed_overflow,
35280 rewrite_to_defined_overflow): Moved to ...
35281 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35282 rewrite_to_defined_overflow): ... here. No longer static.
35283 Include gimplify-me.h.
35284 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35285 rewrite_to_defined_overflow): New prototypes.
35287 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35289 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35291 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35293 * builtins.c (get_object_alignment_2): Minor tweak.
35294 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35296 2014-01-13 Christian Bruel <christian.bruel@st.com>
35298 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35299 optimized non constant lengths.
35301 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35304 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35305 load as __atomic_load_N if possible.
35307 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35309 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35311 (rs6000_expand_builtin): Adjust call.
35313 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35316 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35317 * config/rs6000/rs6000.c: Include target-globals.h.
35318 (rs6000_set_current_function): Instead of doing target_reinit
35319 unconditionally, use save_target_globals_default_opts and
35320 restore_target_globals.
35322 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35324 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35325 (rs6000_expand_builtin): Handle mffs and mtfsf.
35326 (rs6000_init_builtins): Define mffs and mtfsf.
35327 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35328 (rs6000_mffs): New pattern.
35329 (rs6000_mtfsf): New pattern.
35331 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35333 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35334 Start narrowing with START. Apply candidate-use pair
35335 and check overall cost in narrowing.
35336 (iv_ca_prune): Pass new argument.
35338 2014-01-10 Jeff Law <law@redhat.com>
35340 PR middle-end/59743
35341 * ree.c (combine_reaching_defs): Ensure the defining statement
35342 occurs before the extension when optimizing extensions with
35343 different source and destination hard registers.
35345 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35348 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35349 vtables into the type inheritance graph.
35351 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35353 PR rtl-optimization/59754
35354 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35355 modes in the REGNO != REGNO case.
35357 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35359 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35361 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35363 PR tree-optimization/59745
35364 * tree-predcom.c (tree_predictive_commoning_loop): Call
35365 free_affine_expand_cache if giving up because components is NULL.
35367 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35368 GC in payload of target_globals struct instead of allocating them on
35369 the heap and the larger structs separately using GC.
35370 * target-globals.h (struct target_globals): Make regs, hard_regs,
35371 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35372 of GTY((skip)) and change type to void *.
35373 (reset_target_globals): Cast loads from those fields to corresponding
35376 2014-01-10 Steve Ellcey <sellcey@mips.com>
35379 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35380 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35381 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35383 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35386 * aarch64-modes.def (CC_Zmode): New flags mode.
35387 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35388 represents an equality.
35389 (aarch64_get_condition_code): Handle CC_Zmode.
35390 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35392 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35394 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35395 extraction in good case.
35397 2014-01-10 Richard Biener <rguenther@suse.de>
35399 PR tree-optimization/59374
35400 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35401 checking after SLP discovery. Mark stmts not participating
35402 in any SLP instance properly.
35404 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35406 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35407 when handling a SET rtx.
35409 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35411 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35412 (cortex-a57): Likewise.
35413 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35415 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35417 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35418 non-iwmmxt builtins.
35420 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35424 * ipa-devirt.c record_target_from_binfo): Take as argument
35425 stack of binfos and lookup matching one for virtual inheritance.
35426 (possible_polymorphic_call_targets_1): Update.
35428 2014-01-10 Huacai Chen <chenhc@lemote.com>
35430 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35431 kernel strings for Loongson-2E/2F/3A.
35433 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35435 PR middle-end/59670
35436 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35437 is_gimple_call before calling gimple_call_internal_p.
35439 2014-01-09 Steve Ellcey <sellcey@mips.com>
35441 * Makefile.in (TREE_FLOW_H): Remove.
35442 (TREE_SSA_H): Add file names from tree-flow.h.
35443 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35444 * tree.h: Remove tree-flow.h reference.
35445 * hash-table.h: Remove tree-flow.h reference.
35446 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35447 reference with tree-ssa-loop.h.
35449 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35451 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35452 default element-order behavior for -maltivec.
35453 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35454 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35455 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35456 when targeting big endian, at least for now.
35457 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35459 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35461 PR middle-end/47735
35462 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35463 var satisfies use_register_for_decl, just take into account type
35464 alignment, rather than decl alignment.
35466 PR tree-optimization/59622
35467 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35468 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35469 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35470 Don't devirtualize for inplace at all. For targets.length () == 1,
35471 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35473 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35475 * config/i386/i386.md (cpu): Remove the unused btver1.
35477 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35479 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35481 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35484 * tree-core.h (struct target_globals): New forward declaration.
35485 (struct tree_target_option): Add globals field.
35486 * tree.h (TREE_TARGET_GLOBALS): Define.
35487 (prepare_target_option_nodes_for_pch): New prototype.
35488 * target-globals.h (struct target_globals): Define even if
35489 !SWITCHABLE_TARGET.
35490 * tree.c (prepare_target_option_node_for_pch,
35491 prepare_target_option_nodes_for_pch): New functions.
35492 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35493 * config/i386/i386.c: Include target-globals.h.
35494 (ix86_set_current_function): Instead of doing target_reinit
35495 unconditionally, use save_target_globals_default_opts and
35496 restore_target_globals.
35498 2014-01-09 Richard Biener <rguenther@suse.de>
35500 PR tree-optimization/59715
35501 * tree-cfg.h (split_critical_edges): Declare.
35502 * tree-cfg.c (split_critical_edges): Export.
35503 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35505 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35507 * cfgexpand.c (expand_stack_vars): Optionally disable
35508 asan stack protection.
35509 (expand_used_vars): Likewise.
35510 (partition_stack_vars): Likewise.
35511 * asan.c (asan_emit_stack_protection): Optionally disable
35512 after return stack usage.
35513 (instrument_derefs): Optionally disable memory access instrumentation.
35514 (instrument_builtin_call): Likewise.
35515 (instrument_strlen_call): Likewise.
35516 (asan_protect_global): Optionally disable global variables protection.
35517 * doc/invoke.texi: Added doc for new options.
35518 * params.def: Added new options.
35519 * params.h: Likewise.
35521 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35523 PR rtl-optimization/59724
35524 * ifcvt.c (cond_exec_process_if_block): Don't call
35525 flow_find_head_matching_sequence with 0 longest_match.
35526 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35527 non-active insns if !stop_after.
35528 (try_head_merge_bb): Revert 2014-01-07 changes.
35530 2014-01-08 Jeff Law <law@redhat.com>
35532 * ree.c (get_sub_rtx): New function, extracted from...
35533 (merge_def_and_ext): Here.
35534 (combine_reaching_defs): Use get_sub_rtx.
35536 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35538 * cgraph.h (varpool_variable_node): Do not choke on null node.
35540 2014-01-08 Catherine Moore <clm@codesourcery.com>
35542 * config/mips/mips.md (simple_return): Attempt to use JRC
35544 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35546 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35548 PR rtl-optimization/59137
35549 * reorg.c (steal_delay_list_from_target): Call update_block for
35551 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35553 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35555 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35556 two duplicate entries.
35558 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35561 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35563 * config/mips/mips.c (mips_truncated_op_cost): New function.
35564 (mips_rtx_costs): Adjust test for BADDU.
35565 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35567 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35569 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35570 (*baddu_si): ...this new pattern.
35572 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35575 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35577 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35579 PR middle-end/57748
35580 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35582 (expand_expr, expand_normal): Adjust.
35583 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35584 inner_reference_p. Use inner_reference_p to expand inner references.
35585 (store_expr): Adjust.
35586 * cfgexpand.c (expand_call_stmt): Adjust.
35588 2014-01-08 Rong Xu <xur@google.com>
35590 * gcov-io.c (gcov_var): Move from gcov-io.h.
35591 (gcov_position): Ditto.
35592 (gcov_is_error): Ditto.
35593 (gcov_rewrite): Ditto.
35594 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35595 only part to libgcc/libgcov.h.
35597 2014-01-08 Marek Polacek <polacek@redhat.com>
35599 PR middle-end/59669
35600 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35602 2014-01-08 Marek Polacek <polacek@redhat.com>
35605 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35607 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35609 PR rtl-optimization/59649
35610 * stor-layout.c (get_mode_bounds): For BImode return
35611 0 and STORE_FLAG_VALUE.
35613 2014-01-08 Richard Biener <rguenther@suse.de>
35615 PR middle-end/59630
35616 * gimple.h (is_gimple_builtin_call): Remove.
35617 (gimple_builtin_call_types_compatible_p): New.
35618 (gimple_call_builtin_p): New overload.
35619 * gimple.c (is_gimple_builtin_call): Remove.
35620 (validate_call): Rename to ...
35621 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35622 check return types.
35623 (validate_type): New static function.
35624 (gimple_call_builtin_p): New overload and adjust.
35625 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35626 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35627 (gimple_fold_stmt_to_constant_1): Likewise.
35628 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35630 2014-01-08 Richard Biener <rguenther@suse.de>
35632 PR middle-end/59471
35633 * gimplify.c (gimplify_expr): Gimplify register-register type
35634 VIEW_CONVERT_EXPRs to separate stmts.
35636 2014-01-07 Jeff Law <law@redhat.com>
35638 PR middle-end/53623
35639 * ree.c (combine_set_extension): Handle case where source
35640 and destination registers in an extension insn are different.
35641 (combine_reaching_defs): Allow source and destination registers
35642 in extension to be different under limited circumstances.
35643 (add_removable_extension): Remove restriction that the
35644 source and destination registers in the extension are the same.
35645 (find_and_remove_re): Emit a copy from the extension's
35646 destination to its source after the defining insn if
35647 the source and destination registers are different.
35649 PR middle-end/59285
35650 * ifcvt.c (merge_if_block): If we are merging a block with more than
35651 one successor with a block with no successors, remove any BARRIER
35652 after the second block.
35654 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35656 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35658 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35661 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35662 for 14-bit register offsets when INT14_OK_STRICT is false.
35664 2014-01-07 Roland Stigge <stigge@antcom.de>
35665 Michael Meissner <meissner@linux.vnet.ibm.com>
35668 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35669 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35671 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35673 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35676 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35678 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35679 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35680 rtx is const0_rtx or not.
35682 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35685 * target-globals.c (save_target_globals): Remove this_fn_optab
35687 * toplev.c: Include optabs.h.
35688 (target_reinit): Temporarily restore the global options if another
35689 set of options are in force.
35691 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35693 PR rtl-optimization/58668
35694 * cfgcleanup.c (flow_find_cross_jump): Don't count
35695 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35696 to determine what is counted.
35697 (flow_find_head_matching_sequence): Use active_insn_p to determine
35699 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35701 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35702 determine what is counted.
35704 PR tree-optimization/59643
35705 * tree-predcom.c (split_data_refs_to_components): If one dr is
35706 read and one write, determine_offset fails and the write isn't
35707 in the bad component, just put the read into the bad component.
35709 2014-01-07 Mike Stump <mikestump@comcast.net>
35710 Jakub Jelinek <jakub@redhat.com>
35713 * tree-core.h (struct tree_optimization_option): Change optabs
35714 type from unsigned char * to void *.
35715 * optabs.c (init_tree_optimization_optabs): Adjust
35716 TREE_OPTIMIZATION_OPTABS initialization.
35718 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35721 * config/i386/i386.h (struct machine_function): Add
35722 no_drap_save_restore field.
35723 * config/i386/i386.c (ix86_save_reg): Use
35724 !cfun->machine->no_drap_save_restore instead of
35725 crtl->stack_realign_needed.
35726 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35727 this function clears frame_pointer_needed. Set
35728 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35729 and DRAP reg is needed.
35731 2014-01-06 Marek Polacek <polacek@redhat.com>
35734 * doc/implement-c.texi: Mention that other integer types are
35735 permitted as bit-field types in strictly conforming mode.
35737 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35739 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35740 is newly allocated.
35742 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35744 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35746 2014-01-06 Martin Jambor <mjambor@suse.cz>
35749 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35751 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35753 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35757 * var-tracking.c (add_stores): Preserve the value of the source even if
35758 we don't record the store.
35760 2014-01-06 Terry Guo <terry.guo@arm.com>
35762 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35764 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35767 * config/darwin.c (darwin_function_section): Adjust return values to
35768 correspond to optimisation changes made in r206070.
35770 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35772 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35773 from prefetch_block tune setting.
35774 (nocona_cost): Correct size of prefetch block to 64.
35776 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35778 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35779 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35780 used to save the static chain register in the computation of the offset
35781 from which the FP registers need to be restored.
35783 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35785 PR tree-optimization/59519
35786 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35787 ICE if get_current_def (current_new_name) is already non-NULL, as long
35788 as it is a phi result of some other phi in *new_exit_bb that has
35791 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35792 or vmovdqu* for misaligned_operand.
35793 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35794 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35795 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35796 aligned_mem for AVX512F masked aligned load and store builtins and for
35797 non-temporal moves.
35799 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35801 PR tree-optimization/59651
35802 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35803 Address range for negative step should be added by TYPE_SIZE_UNIT.
35805 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35807 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35808 overlapping registers also for registers other than the stack pointer.
35810 2014-01-03 Marek Polacek <polacek@redhat.com>
35813 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35816 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35819 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35822 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35823 (push splitter): Use <P:MODE_SIZE> instead of
35824 GET_MODE_SIZE (<P:MODE>mode).
35825 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35826 (mov -1, reg peephole2): Likewise.
35827 * config/i386/sse.md (*mov<mode>_internal,
35828 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35829 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35830 *<code><mode>3, *andnot<mode>3<mask_name>,
35831 <mask_codefor><code><mode>3<mask_name>): Likewise.
35832 * config/i386/subst.md (mask_mode512bit_condition,
35833 sd_mask_mode512bit_condition): Likewise.
35835 2014-01-02 Xinliang David Li <davidxl@google.com>
35837 PR tree-optimization/59303
35838 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35839 (dump_predicates): Better output format.
35840 (pred_equal_p): New function.
35841 (is_neq_relop_p): Ditto.
35842 (is_neq_zero_form_p): Ditto.
35843 (pred_expr_equal_p): Ditto.
35844 (pred_neg_p): Ditto.
35845 (simplify_pred): Ditto.
35846 (simplify_preds_2): Ditto.
35847 (simplify_preds_3): Ditto.
35848 (simplify_preds_4): Ditto.
35849 (simplify_preds): Ditto.
35850 (push_pred): Ditto.
35851 (push_to_worklist): Ditto.
35852 (get_pred_info_from_cmp): Ditto.
35853 (is_degenerated_phi): Ditto.
35854 (normalize_one_pred_1): Ditto.
35855 (normalize_one_pred): Ditto.
35856 (normalize_one_pred_chain): Ditto.
35857 (normalize_preds): Ditto.
35858 (normalize_cond_1): Remove function.
35859 (normalize_cond): Ditto.
35860 (is_gcond_subset_of): Ditto.
35861 (is_subset_of_any): Ditto.
35862 (is_or_set_subset_of): Ditto.
35863 (is_and_set_subset_of): Ditto.
35864 (is_norm_cond_subset_of): Ditto.
35865 (pred_chain_length_cmp): Ditto.
35866 (convert_control_dep_chain_into_preds): Type change.
35867 (find_predicates): Ditto.
35868 (find_def_preds): Ditto.
35869 (destroy_predicates_vecs): Ditto.
35870 (find_matching_predicates_in_rest_chains): Ditto.
35871 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35872 (is_pred_expr_subset): Ditto.
35873 (is_pred_chain_subset_of): Ditto.
35874 (is_included_in): Ditto.
35875 (is_superset_of): Ditto.
35877 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35879 Update copyright years.
35881 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35883 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35884 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35885 config/arc/arc.md, config/arc/arc.opt,
35886 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35887 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35888 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35889 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35890 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35891 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35892 vtable-verify.c, vtable-verify.h: Use the standard form for the
35895 2014-01-02 Tobias Burnus <burnus@net-b.de>
35897 * gcc.c (process_command): Update copyright notice dates.
35898 * gcov-dump.c: Ditto.
35900 * doc/cpp.texi: Bump @copying's copyright year.
35901 * doc/cppinternals.texi: Ditto.
35902 * doc/gcc.texi: Ditto.
35903 * doc/gccint.texi: Ditto.
35904 * doc/gcov.texi: Ditto.
35905 * doc/install.texi: Ditto.
35906 * doc/invoke.texi: Ditto.
35908 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35910 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35912 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35914 * config/i386/sse.md (*mov<mode>_internal): Guard
35915 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35917 PR rtl-optimization/59647
35918 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35919 new_rtx into UNSIGNED_FLOAT rtxes.
35921 Copyright (C) 2014 Free Software Foundation, Inc.
35923 Copying and distribution of this file, with or without modification,
35924 are permitted in any medium without royalty provided the copyright
35925 notice and this notice are preserved.