1 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
4 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
5 Remove using preprocessor directives.
7 2014-10-27 Richard Biener <rguenther@suse.de>
9 * match.pd (0 % X): Properly use the iterator iterating over
13 2014-10-27 Richard Biener <rguenther@suse.de>
15 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
16 (lattice): New global.
17 (fwprop_ssa_val): New function.
18 (fold_all_stmts): Likewise.
19 (pass_forwprop::execute): Finally fold all stmts.
21 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24 * doc/invoke.texi (fmessage-length): Update text to match reality.
26 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
28 * config/microblaze/microblaze.c: Include rtl-iter.h.
29 (microblaze_tls_referenced_p_1): Delete.
30 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
32 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
34 * config/mips/mips.c (mips_at_reg_p): Delete.
35 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
37 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
39 * config/mips/mips.c (mips_record_lo_sum): Replace with...
40 (mips_record_lo_sums): ...this new function.
41 (mips_reorg_process_insns): Update accordingly.
43 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
45 * config/mips/mips.c (mips_sim_insn): Update comment.
46 (mips_sim_wait_regs_2): Delete.
47 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
49 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
51 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
52 and return a bool. Iterate over all subrtxes here.
53 (r10k_needs_protection_p): Update accordingly.
55 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
57 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
58 rather than an rtx pointer. Change type of insn from "void *"
59 to its real type. Return bool rather than int. Iterate over
61 (r10k_needs_protection_p_store): Update accordingly.
62 (r10k_needs_protection_p): Likewise.
64 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
66 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
67 (mips16_rewrite_pool_refs): Take the insn and constant pool as
68 parameters. Iterate over the instruction's pattern and return void.
69 (mips16_lay_out_constants): Update accordingly.
71 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
73 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
74 (mips_refers_to_kernel_reg_p): ...this new function.
75 (mips_expand_prologue): Update accordingly.
77 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
79 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
80 as a parameter instead of the containing MEM. Iterate over all
81 subrtxes. Don't return a value.
82 (mips_rewrite_small_data): Update call accordingly.
84 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
86 * config/mips/mips.c: Include rtl-iter.h.
87 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
88 Take the context as a parameter instead of the containing MEM.
89 Iterate over all subrtxes.
90 (mips_small_data_pattern_p): Update call accordingly.
92 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
94 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
95 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
97 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
99 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
100 return a bool. Replace "void *" with specific type. Iterate
102 (mep_store_data_bypass_1): Update calls accordingly.
104 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
106 * config/mep/mep.c: Include rtl-iter.h.
107 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
108 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
110 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
112 * config/xtensa/xtensa.c: Include rtl-iter.h.
113 (xtensa_tls_referenced_p_1): Delete.
114 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
116 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
118 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
119 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
121 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
123 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
124 rtx as argument and return the number of changes.
125 * config/sh/sh.c: Include rtl-iter.h.
126 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
127 over all subrtxes. Return the number of changes made.
128 * config/sh/sh.md: Update caller accordingly.
130 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
132 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
133 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
135 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
137 * config/m68k/m68k.c: Include rtl-iter.h.
138 (m68k_final_prescan_insn_1): Delete.
139 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
141 2014-10-25 Jakub Jelinek <jakub@redhat.com>
143 PR tree-optimization/63641
144 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
145 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
147 2014-10-25 Alan Modra <amodra@gmail.com>
149 PR rtl-optimization/63615
150 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
151 decomposing PLUS or MINUS if operands are not placed adjacent
154 2014-10-25 Joseph Myers <joseph@codesourcery.com>
156 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
157 not allow e500 double in registers not satisyfing
160 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
162 * dwarf2out.c (declare_in_namespace): Only emit external
163 declarations in the local scope once.
165 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
167 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
169 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
171 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
172 update uses to use new macro arguments.
173 (__LD3_LANE_FUNC): Likewise.
174 (__LD4_LANE_FUNC): Likewise.
176 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
178 * config/aarch64/aarch64-builtins.c
179 (aarch64_types_loadstruct_lane_qualifiers): Define.
180 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
181 ld4_lane): New builtins.
182 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
184 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
185 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
186 (aarch64_ld2_lane<mode>): New expand.
187 (aarch64_ld3_lane<mode>): Likewise.
188 (aarch64_ld4_lane<mode>): Likewise.
189 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
190 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
192 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
194 * avr-protos.h (avr_out_sign_extend): New.
195 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
196 (avr_out_sign_extend): New function.
197 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
198 (extendhisi2, extendpsisi2): Use it.
199 (adjust_len) [sext]: New.
201 2014-10-24 Martin Liska <mliska@suse.cz>
203 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
206 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
208 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
209 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
210 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
211 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
213 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
215 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
217 * config/aarch64/aarch64.c (is_mem_p): Delete.
218 (is_memory_op): Rename to...
219 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
220 (dep_between_memop_and_curr): Assert that the input is a SET.
221 (aarch64_madd_needs_nop): Add comment. Do not call
222 dep_between_memop_and_curr on NULL body.
223 (aarch64_final_prescan_insn): Add comment.
226 2014-10-24 Richard Biener <rguenther@suse.de>
228 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
229 to genmatch BUILD_LIBS instead.
231 2014-10-24 Richard Biener <rguenther@suse.de>
233 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
234 and build_call_expr_loc.
235 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
236 non_lvalue_loc to build it for GENERIC.
237 (decision_tree::gen_generic): Add location argument to
238 generic_simplify prototype.
239 (capture_info): New class.
240 (capture_info::capture_info): New constructor.
241 (capture_info::walk_match): New method.
242 (capture_info::walk_result): New method.
243 (capture_info::walk_c_expr): New method.
244 (dt_simplify::gen): Handle preserving side-effects for
245 GENERIC code generation.
246 (decision_tree::gen_generic): Do not reject operands
247 with TREE_SIDE_EFFECTS.
248 * generic-match.h: New file.
249 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
250 * match.pd: Add some constant folding patterns from fold-const.c.
251 * fold-const.c: Include generic-match.h.
252 (fold_unary_loc): Dispatch to generic_simplify.
253 (fold_ternary_loc): Likewise.
254 (fold_binary_loc): Likewise. Remove patterns now implemented
256 * gimple-fold.c (replace_stmt_with_simplification): New function.
257 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
258 (no_follow_ssa_edges): New function.
259 (fold_stmt): New overload with valueization hook. Use
260 no_follow_ssa_edges for the overload without hook.
261 (fold_stmt_inplace): Likewise.
262 * gimple-fold.h (no_follow_ssa_edges): Declare.
264 2014-10-24 Felix Yang <felix.yang@huawei.com>
265 Jiji Jiang <jiangjiji@huawei.com>
268 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
269 (__LD3R_FUNC): Ditto.
270 (__LD4R_FUNC): Ditto.
271 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
272 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
273 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
274 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
275 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
276 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
277 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
278 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
279 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
280 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
281 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
282 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
283 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
284 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
285 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
286 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
287 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
288 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
289 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
290 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
291 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
293 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
294 (aarch64_simd_ld3r<mode>): Likewise.
295 (aarch64_simd_ld4r<mode>): Likewise.
296 (aarch64_ld2r<mode>): New expand.
297 (aarch64_ld3r<mode>): Likewise.
298 (aarch64_ld4r<mode>): Likewise.
300 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
302 * rtlanal.c (get_base_term): Handle SCRATCH.
304 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
306 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
309 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
311 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
312 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
313 (max_issue, choose_ready, sched_init): Update.
315 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
317 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
318 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
319 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
320 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
321 (print_rank_for_schedule_stats): Print out elements of ready list that
322 ended up on their respective places due to each of the sorting
324 (ready_sort): Update.
325 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
326 (schedule_block): Update.
328 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
330 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
331 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
332 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
333 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
334 (model_start_schedule): Update.
335 (sched_pressure_start_bb): New static function. Calculate
336 sched_class_regs_num.
337 (schedule_block): Use it.
338 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
340 2014-10-24 Richard Biener <rguenther@suse.de>
342 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
343 host library and make sure to pull in the required libintl
344 and libiconv dependencies.
346 2014-10-24 Richard Biener <rguenther@suse.de>
348 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
350 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
353 * collect2.c (main): Filter out -fno-lto.
355 2014-10-24 Martin Liska <mliska@suse.cz>
357 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
358 division by zero in dumps.
359 (sem_item_optimizer::merge_classes): Ditto.
361 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
363 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
365 2014-10-23 Ian Lance Taylor <iant@google.com>
367 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
369 2014-10-23 Ian Lance Taylor <iant@google.com>
371 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
373 2014-10-23 Jakub Jelinek <jakub@redhat.com>
376 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
377 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
378 instead of only handling autoinc in dest if it is a MEM.
379 (vt_stack_adjustments): Fix up formatting.
381 2014-10-23 DJ Delorie <dj@redhat.com>
383 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
384 independend of -mlarge.
385 * config/msp430/constraints.md (Ys): Update comment.
387 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
391 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
393 * dse.c (deletable_insn_p): Likewise.
395 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
397 * config/avr/avr.c: Fix GNU coding rules and typos.
398 * config/avr/avr.h: Dito.
399 * config/avr/avr-c.c: Dito.
400 * config/avr/avr.md: Dito.
402 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
404 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
406 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
408 (define_expand "abs<mode>2"): Ditto.
410 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
412 * tree-core.h (tree_var_decl): Extend `function_code' field
413 by one bit, move `regdecl_flag' field to ...
414 (tree_decl_with_vis): Here.
415 * tree.h (DECL_STATIC_CHAIN): Update struct name.
417 2014-10-23 Richard Biener <rguenther@suse.de>
419 * Makefile.in (BUILD_CPPLIB): Add.
420 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
423 2014-10-23 Richard Biener <rguenther@suse.de>
425 * fold-const.c (fold_binary_loc): Preserve side-effects of
426 X - X when simplifying to 0.
427 * stor-layout.c (finish_bitfield_representative): Strip
428 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
430 2014-10-22 Richard Biener <rguenther@suse.de>
431 Tobias Burnus <burnus@net-b.de>
434 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
436 2014-10-22 Dehao Chen <dehao@google.com>
438 * auto-profile.c: Change order of header files.
440 2014-10-22 Guozhi Wei <carrot@google.com>
442 PR tree-optimization/63530
443 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
444 pointer alignment according to DR_MISALIGNMENT.
446 2014-10-22 David Malcolm <dmalcolm@redhat.com>
448 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
450 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
452 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
453 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
454 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
455 * dominance.h: New. Add prototypes for dominance.c.
456 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
457 * cfghooks.h: (struct profile_record) Relocate here.
458 Relocate 2 prototypes from basic-block.h.
459 * basic-block.h: Move prototypes and struct to new header files.
460 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
461 * rtl.h: Move a few prototypes to new header files.
462 * cfgcleanup.c (merge_memattrs): Make static.
463 * genopinit.c (main): Add predict.h to list of includes.
464 * predict.h: Update prototype list to match predict.c.
465 * predict.c (maybe_hot_count_p): Export.
466 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
467 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
468 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
469 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
470 * profile.h: Adjust prototypes.
471 * ifcvt.h: New. Relocate struct ce_if_block here.
472 * ifcvt.c: Include ifcvt.h.
473 * config/frv/frv.c: Include ifcvt.h.
474 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
476 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
478 * lra.c (lra): Remove call to recog_init.
479 * config/i386/i386.md (preferred_for_speed): New attribute
480 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
481 "enabled". Remove check for sched1.
483 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
485 * recog.h (recog_data_d): Remove enabled_alternatives.
486 * recog.c (extract_insn): Don't set it.
487 * reload.c (find_reloads): Call get_enabled_alternatives.
489 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
491 * recog.h (constrain_operands): Add an alternative_mask parameter.
492 (constrain_operands_cached): Likewise.
493 (get_preferred_alternatives): Declare new form.
494 * recog.c (get_preferred_alternatives): New bb-taking instance.
495 (constrain_operands): Take the set of available alternatives as
497 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
498 (extract_constrain_insn_cached): Update calls to constrain_operands.
499 * caller-save.c (reg_save_code): Likewise.
500 * ira.c (setup_prohibited_mode_move_regs): Likewise.
501 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
502 * ree.c (combine_reaching_defs): Likewise.
503 * reload.c (can_reload_into): Likewise.
504 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
505 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
506 (emit_insn_if_valid_for_reload): Likewise.
507 * reorg.c (fill_slots_from_thread): Likewise.
508 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
509 * config/pa/pa.c (pa_can_combine_p): Likewise.
510 * config/rl78/rl78.c (insn_ok_now): Likewise.
511 * config/sh/sh.md (define_peephole2): Likewise.
512 * final.c (final_scan_insn): Update call to constrain_operands_cached.
514 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
516 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
518 * genattr.c (main): Handle "preferred_for_size" and
519 "preferred_for_speed" in the same way as "enabled".
520 * recog.h (bool_attr): New enum.
521 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
522 (get_preferred_alternatives, check_bool_attrs): Declare.
523 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
524 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
526 (get_enabled_alternatives): Use get_bool_attr_mask.
527 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
528 instead of recog_data.enabled_alternatives.
529 * ira.c (ira_setup_alts): Likewise.
530 * postreload.c (reload_cse_simplify_operands): Likewise.
531 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
532 * ira-lives.c (preferred_alternatives): New variable.
533 (process_bb_node_lives): Set it.
534 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
535 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
536 of recog_data.enabled_alternatives.
537 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
538 to preferred_alternatives.
539 * lra-constraints.c (process_alt_operands): Update accordingly.
540 * lra.c (lra_set_insn_recog_data): Likewise.
541 (lra_update_insn_recog_data): Assert check_bool_attrs.
543 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
545 * recog.h (extract_constrain_insn): Declare.
546 * recog.c (extract_constrain_insn): New function.
547 * lra.c (check_rtl): Use it.
548 * postreload.c (reload_cse_simplify_operands): Likewise.
549 * reg-stack.c (check_asm_stack_operands): Likewise.
550 (subst_asm_stack_regs): Likewise.
551 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
552 * regrename.c (build_def_use): Likewise.
553 * sel-sched.c (get_reg_class): Likewise.
554 * config/arm/arm.c (note_invalid_constants): Likewise.
555 * config/s390/predicates.md (execute_operation): Likewise.
557 2014-10-22 Jakub Jelinek <jakub@redhat.com>
558 Yury Gribov <y.gribov@samsung.com>
560 * common.opt (flag_sanitize_recover): New variable.
561 (fsanitize-recover): Remove Var/Init, deprecate.
562 (fsanitize-recover=): New option.
563 * doc/invoke.texi (fsanitize-recover): Update docs.
564 * opts.c (finish_options): Use opts->x_flag_sanitize
565 instead of flag_sanitize. Prohibit -fsanitize-recover
566 for anything besides UBSan. Formatting.
567 (common_handle_option): Handle OPT_fsanitize_recover_
568 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
569 instead of flag_sanitize.
570 * asan.c (pass_sanopt::execute): Fix up formatting.
571 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
572 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
573 instrument_bool_enum_load, ubsan_instrument_float_cast,
574 instrument_nonnull_arg, instrument_nonnull_return): Check
575 bits in flag_sanitize_recover bitmask instead of
576 flag_sanitize_recover as bool flag.
578 2014-10-22 Jiong Wang <jiong.wang@arm.com>
580 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
582 2014-10-22 Renlin Li <renlin.li@arm.com>
584 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
585 __ARM_FEATURE_IDIV__.
587 2014-10-22 Richard Biener <rguenther@suse.de>
589 * Makefile.in (s-match): Adjust dependencies to only catch
592 2014-10-22 Richard Biener <rguenther@suse.de>
593 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
595 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
596 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
597 (gimple-match.c): Generate by triggering s-match.
598 (generic-match.c): Likewise.
599 (s-match): Rule to build gimple-match.c and generic-match.c
600 by running the genmatch generator program.
601 (build/hash-table.o): Dependencies to build hash-table.c for the host.
602 (build/genmatch.o): Dependencies to build genmatch.
603 (genprog): Add match.
604 (build/genmatch): Likewise.
605 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
606 * generic-match-head.c: New file.
607 * gimple-match-head.c: Likewise.
608 * gimple-match.h: Likewise.
609 * genmatch.c: Likewise.
610 * match.pd: Likewise.
611 * builtins.h (fold_builtin_n): Export.
612 * builtins.c (fold_builtin_n): Likewise.
613 * gimple-fold.h (gimple_build): Declare various overloads.
614 (gimple_simplify): Likewise.
615 (gimple_convert): Re-implement in terms of gimple_build.
616 * gimple-fold.c (gimple_convert): Remove.
617 (gimple_build): New functions.
618 * doc/match-and-simplify.texi: New file.
619 * doc/gccint.texi: Add menu item Match and Simplify and include
620 match-and-simplify.texi.
622 2014-10-22 Jakub Jelinek <jakub@redhat.com>
625 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
626 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
627 even for just TARGET_AVX2, not only for
628 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
629 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
630 otherwise build it using concatenation of 256-bit
632 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
633 avx512 broadcast patterns.
634 (vec_dup<mode>): Likewise. For avx2 use
635 v<sseintprefix>broadcast<bcstscalarsuff> instead of
636 vbroadcast<ssescalarmodesuffix>.
637 (AVX2_VEC_DUP_MODE): New mode iterator.
638 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
639 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
642 * config/i386/i386.c (ix86_pic_register_p): Also return
643 true if x is a hard register with ORIGINAL_REGNO equal to
644 pic_offset_table_rtx pseudo REGNO.
645 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
646 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
648 2014-10-22 Alan Modra <amodra@gmail.com>
650 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
651 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
652 (gcc_obstack_init): Use obstack_specify_allocation in place of
654 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
655 (regexp_representation): Likewise.
656 * godump.c (go_output_type): Likewise.
658 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
660 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
661 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
662 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
664 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
666 * doc/invoke.texi (pedantic-errors): Explain better.
668 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
669 Vidya Praveen <vidya.praveen@atmel.com>
670 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
671 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
672 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
674 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
676 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
677 (avr_nonconst_pointer_addrspace): Likewise.
678 * config/avr/avr.h (AVR_HAVE_LPM): Define.
680 Added AVRTINY architecture to avr target.
681 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
682 (base_arch_s): member added for AVRTINY architecture.
683 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
684 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
685 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
686 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
687 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
688 in callee saved register list.
689 (avr_option_override): CCP address updated for AVRTINY.
690 (avr_init_expanders): tmp and zero rtx initialized as per arch.
691 Reset avr_have_dimode if AVRTINY.
692 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
693 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
694 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
695 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
696 (expand_epilogue): Likewise.
697 (avr_print_operand): Print CCP address in case of AVRTINY also.
699 (function_arg_regno_p): Check different register list for arguments
701 (init_cumulative_args): Check for AVRTINY to update number of argument
703 (tiny_valid_direct_memory_access_range): New function. Return false if
704 direct memory access range is not in accepted range for AVRTINY.
705 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
706 indirect load (with displacement) for AVRTINY.
707 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
708 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
709 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
710 indirect load (no displacement) for AVRTINY.
711 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
712 indirect load (with displacement) for AVRTINY.
713 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
714 indirect load for pre-decrement address.
715 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
716 functions. Update instruction length for AVRTINY.
717 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
719 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
720 (out_movsi_r_mr): Likewise, for SImode.
721 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
722 indirect store (no displacement) for AVRTINY.
723 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
724 indirect store (with displacement) for AVRTINY.
725 (out_movsi_mr_r): Emit out insn for IO address store. Update store
726 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
728 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
729 indirect load (no displacement) for PSImode in AVRTINY.
730 (avr_out_load_psi_reg_disp_tiny): New function to handle register
731 indirect load (with displacement) for PSImode in AVRTINY.
732 (avr_out_load_psi): Call PSImode register indirect load functions for
733 AVRTINY. Update instruction length for AVRTINY.
734 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
735 indirect store (no displacement) for PSImode in AVRTINY.
736 (avr_out_store_psi_reg_disp_tiny): New function to handle register
737 indirect store (with displacement) for PSImode in AVRTINY.
738 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
739 register indirect store functions for AVRTINY.
740 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
741 register indirect store (with displacement) for AVRTINY.
742 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
743 register indirect store function for QImode in AVRTINY.
744 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
745 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
746 indirect store (no displacement) for HImode in AVRTINY.
747 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
748 indirect store (with displacement) for HImode in AVRTINY.
749 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
750 indirect store for post-increment address in HImode.
751 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
752 register indirect store function for HImode in AVRTINY.
753 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
755 (order_regs_for_local_alloc): Updated register allocation order for
757 (avr_conditional_register_usage): New function. It is a target hook
758 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
759 used registers list and register allocation order for AVRTINY.
760 (avr_return_in_memory): Update return value size for AVRTINY.
761 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
762 for AVRTINY arch and tiny program memory base address.
763 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
764 (avr_texinfo): Added description for AVRTINY arch.
765 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
766 STATIC_CHAIN_REGNUM for AVRTINY.
767 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
768 * config/avr/avr.md: Added constants for tmp/ zero registers in
769 AVRTINY. Attributes for AVRTINY added.
770 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
772 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
773 in AVRTINY memory access range.
774 (*mov<mode>): Likewise for HImode and SImode.
775 (*movsf): Likewise for SFmode.
776 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
778 * config/avr/avr-protos.h: Added function prototype for
779 tiny_valid_direct_memory_access_range.
780 * config/avr/avr-tables.opt: Regenerate.
781 * gcc/config/avr/t-multilib: Regenerate.
782 * doc/avr-mmcu.texi: Regenerate.
784 2014-10-21 Andrew Pinski <apinski@cavium.com>
786 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
787 available option also.
788 * config/aarch64/aarch64-cost-tables.h: New file.
789 * config/aarch64/aarch64-cores.def (thunderx): New core.
790 * config/aarch64/aarch64-tune.md: Regenerate.
791 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
792 of config/arm/aarch-cost-tables.h.
793 (thunderx_regmove_cost): New variable.
794 (thunderx_tunings): New variable.
796 2014-10-21 Dehao Chen <dehao@google.com>
798 * auto-profile.c: New file.
799 * auto-profile.h: New file.
800 * basic-block.h (maybe_hot_count_p): New export func.
801 (add_working_set): New export func.
802 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
803 (GCOV_TAG_AFDO_FUNCTION): Likewise.
804 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
805 * opts.c (enable_fdo_optimizations): New func.
806 (common_handle_option): Handle -fauto-profile flag.
807 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
808 (class pass_early_inline): Export early_inliner.
809 (early_inliner): Likewise.
810 (pass_early_inline::execute): Likewise.
811 * ipa-inline.h (early_inliner): Likewise.
812 * predict.c (maybe_hot_count_p): New export func.
813 (counts_to_freqs): AutoFDO logic.
814 (rebuild_frequencies): Likewise.
815 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
816 * profile.c (add_working_set): New func.
817 * Makefile.in (auto-profile.o): New object file.
818 * passes.def (pass_ipa_auto_profile): New pass.
819 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
820 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
821 * toplev.c (compile_file): AutoFDO logic.
822 * doc/invoke.texi (-fauto-profile): New doc.
823 * coverage.c (coverage_init): AutoFDO logic.
824 * common.opt (-fauto-profile): New flag.
825 * timevar.def (TV_IPA_AUTOFDO): New tag.
826 * value-prof.c (gimple_alloc_histogram_value): New export func.
827 (check_ic_target): Likewise.
828 * value-prof.h (gimple_alloc_histogram_value): Likewise.
829 (check_ic_target): Likewise.
831 2014-10-21 David Malcolm <dmalcolm@redhat.com>
833 * cgraph.c (cgraph_c_finalize): New function.
834 * cgraph.h (cgraph_c_finalize): New prototype.
835 (cgraphunit_c_finalize): New prototype.
836 * cgraphunit.c (first_analyzed): Move from analyze_functions
838 (first_analyzed_var): Likewise.
839 (analyze_functions): Move static variables into file-scope.
840 (cgraphunit_c_finalize): New function.
841 * diagnostic.c (diagnostic_finish): Free the memory for
842 context->classify_diagnostic and context->printer, running the
843 destructor for the latter.
844 (bt_stop): Use toplev::main.
845 * dwarf2out.c (dwarf2out_finalize): New function.
846 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
847 * gcse.c (gcse_c_finalize): New function.
848 * gcse.h (gcse_c_finalize): New prototype.
849 * ggc-page.c (init_ggc): Make idempotent.
850 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
851 * ipa-cp.c (ipa_cp_c_finalize): New function.
852 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
853 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
854 a field of class pass_ipa_pure_const.
855 (node_duplication_hook_holder): Likewise.
856 (node_removal_hook_holder): Likewise.
857 (register_hooks): Convert to method...
858 (pass_ipa_pure_const::register_hooks): ...here, converting
859 static variable init_p into...
860 (pass_ipa_pure_const::init_p): ...new field.
861 (pure_const_generate_summary): Update invocation of
862 register_hooks to invoke as a method of current_pass.
863 (pure_const_read_summary): Likewise.
864 (propagate): Convert to...
865 (pass_ipa_pure_const::execute): ...method.
866 * ipa-reference.c (ipa_init): Move static bool init_p from here
868 (ipa_init_p): New file-scope variable, so that it can be reset
869 when repeatedly invoking the compiler within one process by...
870 (ipa_reference_c_finalize): New function.
871 * ipa-reference.h (ipa_reference_c_finalize): New.
872 * main.c (main): Replace invocation of toplev_main with
873 construction of a toplev instance, and call its "main" method.
874 * params.c (global_init_params): Add an assert that
875 params_finished is false.
876 (params_c_finalize): New.
877 * params.h (params_c_finalize): New.
878 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
879 invoking generate_summary, for the benefit of pass_ipa_pure_const.
880 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
881 before calling write_summary hook.
882 (ipa_write_optimization_summaries_1): Likewise when calling
883 write_optimization_summary hook.
884 (ipa_read_summaries_1): Likewise for read_summary hook.
885 (ipa_read_optimization_summaries_1): Likewise for
886 read_optimization_summary hook.
887 (execute_ipa_stmt_fixups): Likewise.
888 * stringpool.c (init_stringpool): Clean up if we're called more
890 * timevar.c (timevar_init): Ignore repeated calls.
891 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
893 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
894 (initialize_rtl): Move static local "initialized_once"
895 into file scope, and rename to...
896 (rtl_initialized): New variable.
897 (do_compile): Move timevar initialization from here to
898 toplev::start_timevars.
899 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
900 toplev::finalize): New functions.
901 (toplev_main): Rename to...
902 (toplev::main): ...this.
903 * toplev.h (class toplev): New class.
905 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
907 * loop-doloop.c: Include loop-unroll.h.
909 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
911 * cfg.h: New. Header file for cfg.c.
912 * cfganal.h: New. Header file for cfganal.c.
913 * lcm.h: New. Header file for lcm.c.
914 * loop-unroll.h: New. Header file for loop-unroll.h.
915 * cfgloop.h: (unroll_loops): Remove prototype.
916 * basic-block.h: Move prototypes and structs to new header files.
917 Include cfg.h, cfganal.h, and lcm.h.
918 * loop-init.c: Include loop-unroll.h.
919 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
920 * modulo-sched.c: Include loop-unroll.h.
922 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
924 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
925 MARKER_BYTE_UNKNOWN markers when handling casts.
927 2014-10-21 Richard Biener <rguenther@suse.de>
929 * tree-ssa-phiopt.c (value_replacement): Properly verify we
930 are the non-singleton PHI.
932 2014-10-21 Jakub Jelinek <jakub@redhat.com>
934 PR tree-optimization/63563
935 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
936 if either dra or drb stmts are not normal loads/stores.
938 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
940 * config/i386/i386.c (expand_vec_perm_1): Fix
941 expand_vec_perm_palignr case.
942 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
945 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
947 * cfgloopanal.c (seq_cost): Delete.
948 * rtl.h (seq_cost): New prototype.
949 * rtlanal.c (seq_cost): New function.
950 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
952 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
954 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
955 * basic-block.h: Remove prototypes for cfgrtl.c.
956 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
957 prototypes to cfgrtl.h.
958 * profile.h (profile_info): Add extern export declaration.
959 * rtl.h: Remove prototypes for cfgrtl.h.
960 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
961 * ipa-inline.c: Include profile.h.
962 * loop-unroll.c: Ditto.
963 * modulo-sched.c: Ditto.
964 * postreload-gcse.c: Ditto.
966 * sched-ebb.c: Ditto.
967 * sched-rgn.c: Ditto.
969 * tree-ssa-loop-ivcanon.c: Ditto.
971 2014-10-20 Richard Biener <rguenther@suse.de>
973 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
974 operands to get a def operand kind match. Signal mismatches
975 to the parent so we can try swapping its operands.
976 (vect_build_slp_tree): Try swapping operands if they have
977 a mismatched operand kind.
979 2014-10-20 Alan Modra <amodra@gmail.com>
982 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
983 Increase "ops" array size. Correct array size tests. Init
984 n_constants in loop. Break out of innermost loop when finding
985 a trivial CONST expression.
987 2014-10-20 Martin Liska <mliska@suse.cz>
990 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
991 Gimple tempate string is compared.
993 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
995 * varasm.c (const_alias_set): Remove.
996 (init_varasm_once): Remove initialization of const_alias_set.
997 (build_constant_desc): Do not set alias set to const_alias_set.
999 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
1001 * configure: Regenerate.
1002 * configure.ac: Move the test for section attribute specifier "e" in GAS
1003 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1004 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1005 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1006 ifdef HAVE_GAS_SECTION_EXCLUDE.
1008 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
1010 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1011 match_operand expression.
1013 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1014 David Edelsohn <dje.gcc@gmail.com>
1016 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1018 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1020 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1022 * doc/invoke.texi (Options to Request or Suppress Warnings):
1023 Explain options precedence.
1024 (Wtrampolines): Do not indent paragraph.
1026 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
1028 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1029 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1030 (pa_jump_in_call_delay): Likewise.
1031 * config/pa/pa.c (pa_option_override): Remove jump in call delay
1033 (pa_output_millicode_call): Remove support for jump in call delay.
1034 (pa_output_call): Likewise.
1035 (pa_jump_in_call_delay): Delete.
1036 (pa_following_call): Likewise.
1037 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1038 (uncond_branch): Remove following call check from attribute length.
1040 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
1043 * config/sh/sh-modes.def (PSI): Remove.
1044 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1045 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1046 (sh_reorg): Remove commented out FPSCR code.
1047 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
1048 insn instead of move insn.
1049 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1050 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1052 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1053 (sh1_builtin_p): Uncomment.
1054 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1055 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1056 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1057 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1058 (general_movsrc_operand, general_movdst_operand): Disallow
1060 * config/sh/sh.md (FPSCR_FR): New constant.
1061 (push_fpscr): Emit sts_fpscr insn.
1062 (pop_fpscr): Emit lds_fpscr_insn.
1063 (movsi_ie): Disallow FPSCR operands.
1064 (fpu_switch, unnamed related split, extend_psi_si,
1065 truncate_si_psi): Remove insns.
1066 (lds_fpscr, sts_fpscr): New insns.
1067 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1069 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
1071 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1072 (clone_inlined_nodes): Do not overwrite the clone if above predicate
1075 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
1077 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1078 (expand_vec_perm_d): Ditto.
1079 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1080 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1082 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1083 (ix86_expand_sse_unpack): Handle V64QImode.
1084 (expand_vec_perm_blend): Update conditions for TARGET, handle
1085 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1086 (expand_vec_perm_pshufb): Handle V64QImode.
1087 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1088 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1089 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
1090 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1091 (ix86_expand_vecop_qihi): Handle V64QImode.
1092 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1093 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1094 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1095 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1096 (mul<mode>3): Use VI1_AVX512.
1097 (<sse2_avx2>_packsswb): Ditto.
1098 (<sse2_avx2>_packuswb): Ditto.
1099 (<ssse3_avx2>_pshufb<mode>3): Ditto.
1100 (<shift_insn><mode>3): Ditto.
1102 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
1104 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1105 conditions to fix bootstrap.
1107 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
1109 gcc-plugin.h: Add tm.h and flattened includes from function.h.
1111 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1113 Anna Tikhonova <anna.tikhonova@intel.com>
1114 Ilya Tocar <ilya.tocar@intel.com>
1115 Andrey Turetskiy <andrey.turetskiy@intel.com>
1116 Ilya Verbin <ilya.verbin@intel.com>
1117 Kirill Yukhin <kirill.yukhin@intel.com>
1118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1120 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1121 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1122 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1123 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1124 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1125 (define_expand "vec_init<mode>"): Use VF48_I1248.
1127 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1128 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1129 Anna Tikhonova <anna.tikhonova@intel.com>
1130 Ilya Tocar <ilya.tocar@intel.com>
1131 Andrey Turetskiy <andrey.turetskiy@intel.com>
1132 Ilya Verbin <ilya.verbin@intel.com>
1133 Kirill Yukhin <kirill.yukhin@intel.com>
1134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1136 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1137 expand_sse2_mulvxdi3.
1139 2014-10-17 Richard Biener <rguenther@suse.de>
1141 * fold-const.c (fold_comparison): Remove redundant constant
1142 folding and operand swapping.
1143 (fold_binary_loc): Do comparison operand swapping here.
1144 (fold_ternary_loc): Canonicalize operand order for
1145 commutative ternary operations.
1146 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1149 2014-10-17 Jakub Jelinek <jakub@redhat.com>
1151 PR tree-optimization/63464
1152 * gimple.h (gimple_seq_discard): New prototype.
1153 * gimple.c: Include stringpool.h and tree-ssanames.h.
1154 (gimple_seq_discard): New function.
1155 * optabs.h (lshift_cheap_p): New prototype.
1156 * optabs.c (lshift_cheap_p): New function, moved from...
1157 * tree-switch-conversion.c (lshift_cheap_p): ... here.
1158 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1159 (reassoc_branch_fixups): New variable.
1160 (update_range_test): Add otherrangep and seq arguments.
1161 Unshare exp. If otherrange is NULL, use for other ranges
1162 array of pointers pointed by otherrangep instead.
1163 Emit seq before gimplified statements for tem.
1164 (optimize_range_tests_diff): Adjust update_range_test
1166 (optimize_range_tests_xor): Likewise. Fix up comment.
1167 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1169 (optimize_range_tests): Adjust update_range_test caller.
1170 Call optimize_range_tests_to_bit_test.
1171 (branch_fixup): New function.
1172 (execute_reassoc): Call branch_fixup.
1174 PR tree-optimization/63302
1175 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1176 optimize_range_tests_diff): Use !integer_pow2p () instead of
1179 2014-10-17 Martin Liska <mliska@suse.cz>
1181 * ipa-icf.c (sem_function::merge): Local flags are set to false
1182 to enforce equal calling convention to be used.
1183 * opts.c (common_handle_option): Indentation fix.
1185 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1187 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1189 2014-10-17 Tom de Vries <tom@codesourcery.com>
1191 PR rtl-optimization/61605
1192 * regcprop.c (copyprop_hardreg_forward_1): Use
1193 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1195 2014-10-17 Tom de Vries <tom@codesourcery.com>
1197 PR rtl-optimization/61605
1198 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1199 notice stores for noops. Don't regard noops as copies.
1201 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1204 register in a special way.
1205 (__cpuid_count): Ditto.
1206 * config/i386/driver-i386.h: Protect with
1207 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1208 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1209 is required to compile the function.
1211 2014-10-16 DJ Delorie <dj@redhat.com>
1213 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1216 * config/rs6000/rs6000-c.c (rid_int128): New.
1217 (rs6000_macro_to_expand): Use instead of RID_INT128.
1219 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1221 * function.h: Flatten file. Remove includes, adjust prototypes to
1222 reflect only what is in function.h.
1223 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1224 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1226 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1227 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1228 prototypes to predict.h.
1229 (init_varasm_status): Move prototype to varasm.h.
1230 * expr.h: Adjust include files.
1231 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1232 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1234 (locate_and_pad_parm): Move prototype to function.h.
1235 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1236 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1237 assign_temp, reposition_prologue_and_epilogue_notes,
1238 prologue_epilogue_contains, sibcall_epilogue_contains,
1239 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1240 set_return_jump_label): Move prototypes to function.h.
1241 * predict.h (optimize_function_for_size_p,
1242 optimize_function_for_speed_p): Relocate prototypes from function.h.
1243 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1244 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1246 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1247 * genattrtab.c (write_header): Add predict.h to include list.
1248 * genconditions.c (write_header): Add predict.h to include list.
1249 * genemit.c (main): Adjust header file includes.
1250 * gengtype.c (ifiles): Add flattened function.h header files.
1251 * genoutput.c (output_prologue): Add predict.h to include list.
1252 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1253 * genrecog.c (write_header): Add flattened function.h header files.
1254 * alias.c: Adjust include files.
1255 * auto-inc-dec.c: Likewise.
1256 * basic-block.h: Likewise.
1257 * bb-reorder.c: Likewise.
1258 * bt-load.c: Likewise.
1259 * builtins.c: Likewise.
1260 * caller-save.c: Likewise.
1261 * calls.c: Likewise.
1262 * cfgbuild.c: Likewise.
1263 * cfgcleanup.c: Likewise.
1264 * cfgexpand.c: Likewise.
1265 * cfgloop.c: Likewise.
1266 * cfgloop.h: Likewise.
1267 * cfgrtl.c: Likewise.
1268 * cgraph.h: Likewise.
1269 * cgraphclones.c: Likewise.
1270 * cgraphunit.c: Likewise.
1271 * combine-stack-adj.c: Likewise.
1272 * combine.c: Likewise.
1273 * coverage.c: Likewise.
1274 * cprop.c: Likewise.
1276 * cselib.c: Likewise.
1277 * dbxout.c: Likewise.
1279 * df-core.c: Likewise.
1280 * df-problems.c: Likewise.
1281 * df-scan.c: Likewise.
1282 * dojump.c: Likewise.
1283 * dwarf2cfi.c: Likewise.
1284 * dwarf2out.c: Likewise.
1285 * emit-rtl.c: Likewise.
1286 * except.c: Likewise.
1287 * explow.c: Likewise.
1289 * final.c: Likewise.
1290 * function.c: Likewise.
1292 * gimple-fold.c: Likewise.
1293 * gimple-low.c: Likewise.
1294 * gimple-streamer.h: Likewise.
1295 * haifa-sched.c: Likewise.
1296 * ifcvt.c: Likewise.
1300 * loop-invariant.c: Likewise.
1301 * lra-assigns.c: Likewise.
1302 * lra-coalesce.c: Likewise.
1303 * lra-constraints.c: Likewise.
1304 * lra-eliminations.c: Likewise.
1305 * lra-lives.c: Likewise.
1306 * lra-spills.c: Likewise.
1308 * lto-cgraph.c: Likewise.
1309 * lto-section-in.c: Likewise.
1310 * lto-section-out.c: Likewise.
1311 * lto-streamer-in.c: Likewise.
1312 * lto-streamer-out.c: Likewise.
1313 * mode-switching.c: Likewise.
1314 * modulo-sched.c: Likewise.
1315 * omp-low.c: Likewise.
1316 * optabs.c: Likewise.
1317 * passes.c: Likewise.
1318 * postreload-gcse.c: Likewise.
1319 * postreload.c: Likewise.
1320 * predict.c: Likewise.
1321 * profile.c: Likewise.
1322 * recog.c: Likewise.
1324 * reg-stack.c: Likewise.
1325 * regcprop.c: Likewise.
1326 * reginfo.c: Likewise.
1327 * regrename.c: Likewise.
1328 * reload.c: Likewise.
1329 * reload1.c: Likewise.
1330 * reorg.c: Likewise.
1331 * resource.c: Likewise.
1332 * rtlanal.c: Likewise.
1333 * sched-deps.c: Likewise.
1334 * sched-ebb.c: Likewise.
1335 * sched-rgn.c: Likewise.
1336 * sel-sched-dump.c: Likewise.
1337 * sel-sched-ir.c: Likewise.
1338 * sel-sched.c: Likewise.
1339 * shrink-wrap.c: Likewise.
1340 * simplify-rtx.c: Likewise.
1341 * statistics.c: Likewise.
1343 * stor-layout.c: Likewise.
1344 * store-motion.c: Likewise.
1345 * symtab.c: Likewise.
1346 * targhooks.c: Likewise.
1347 * toplev.c: Likewise.
1348 * trans-mem.c: Likewise.
1349 * tree-cfg.c: Likewise.
1350 * tree-cfgcleanup.c: Likewise.
1351 * tree-dfa.c: Likewise.
1352 * tree-eh.c: Likewise.
1353 * tree-inline.c: Likewise.
1354 * tree-into-ssa.c: Likewise.
1355 * tree-nested.c: Likewise.
1356 * tree-nrv.c: Likewise.
1357 * tree-profile.c: Likewise.
1358 * tree-ssa-alias.c: Likewise.
1359 * tree-ssa-ccp.c: Likewise.
1360 * tree-ssa-copy.c: Likewise.
1361 * tree-ssa-copyrename.c: Likewise.
1362 * tree-ssa-dom.c: Likewise.
1363 * tree-ssa-operands.c: Likewise.
1364 * tree-ssa-propagate.c: Likewise.
1365 * tree-ssa-structalias.c: Likewise.
1366 * tree-ssa-tail-merge.c: Likewise.
1367 * tree-ssa-threadedge.c: Likewise.
1368 * tree-ssa-threadupdate.c: Likewise.
1369 * tree-ssa-uncprop.c: Likewise.
1370 * tree-ssa-uninit.c: Likewise.
1371 * tree-ssa.c: Likewise.
1372 * tree-stdarg.c: Likewise.
1373 * tree-tailcall.c: Likewise.
1376 * valtrack.c: Likewise.
1377 * varasm.c: Likewise.
1378 * vmsdbgout.c: Likewise.
1380 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1381 * config/alpha/alpha.c: Likewise.
1382 * config/arc/arc.c: Likewise.
1383 * config/arm/arm.c: Likewise.
1384 * config/avr/avr-log.c: Likewise.
1385 * config/avr/avr.c: Likewise.
1386 * config/bfin/bfin.c: Likewise.
1387 * config/c6x/c6x.c: Likewise.
1388 * config/cr16/cr16.c: Likewise.
1389 * config/cris/cris.c: Likewise.
1390 * config/darwin.c: Likewise.
1391 * config/epiphany/epiphany.c: Likewise.
1392 * config/epiphany/mode-switch-use.c: Likewise.
1393 * config/epiphany/resolve-sw-modes.c: Likewise.
1394 * config/fr30/fr30.c: Likewise.
1395 * config/frv/frv.c: Likewise.
1396 * config/h8300/h8300.c: Likewise.
1397 * config/i386/i386.c: Likewise.
1398 * config/ia64/ia64.c: Likewise.
1399 * config/iq2000/iq2000.c: Likewise.
1400 * config/lm32/lm32.c: Likewise.
1401 * config/m32c/m32c.c: Likewise.
1402 * config/m32r/m32r.c: Likewise.
1403 * config/m68k/m68k.c: Likewise.
1404 * config/mcore/mcore.c: Likewise.
1405 * config/mep/mep-pragma.c: Likewise.
1406 * config/mep/mep.c: Likewise.
1407 * config/microblaze/microblaze.c: Likewise.
1408 * config/mips/mips.c: Likewise.
1409 * config/mmix/mmix.c: Likewise.
1410 * config/mn10300/mn10300.c: Likewise.
1411 * config/moxie/moxie.c: Likewise.
1412 * config/msp430/msp430.c: Likewise.
1413 * config/nds32/nds32-cost.c: Likewise.
1414 * config/nds32/nds32-fp-as-gp.c: Likewise.
1415 * config/nds32/nds32-intrinsic.c: Likewise.
1416 * config/nds32/nds32-isr.c: Likewise.
1417 * config/nds32/nds32-md-auxiliary.c: Likewise.
1418 * config/nds32/nds32-memory-manipulation.c: Likewise.
1419 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1420 * config/nds32/nds32-predicates.c: Likewise.
1421 * config/nds32/nds32.c: Likewise.
1422 * config/nios2/nios2.c: Likewise.
1423 * config/pa/pa.c: Likewise.
1424 * config/pdp11/pdp11.c: Likewise.
1425 * config/rl78/rl78.c: Likewise.
1426 * config/rs6000/rs6000.c: Likewise.
1427 * config/rx/rx.c: Likewise.
1428 * config/s390/s390.c: Likewise.
1429 * config/score/score.c: Likewise.
1430 * config/sh/sh.c: Likewise.
1431 * config/sparc/sparc.c: Likewise.
1432 * config/spu/spu.c: Likewise.
1433 * config/stormy16/stormy16.c: Likewise.
1434 * config/tilegx/tilegx.c: Likewise.
1435 * config/tilepro/tilepro.c: Likewise.
1436 * config/v850/v850.c: Likewise.
1437 * config/vax/vax.c: Likewise.
1438 * config/xtensa/xtensa.c: Likewise.
1440 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1442 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1443 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1445 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1447 * config/sh/sh-protos.h (fldi_ok): Remove.
1448 * config/sh/sh.c (fldi_ok): Likewise.
1449 (sh_secondary_reload): Don't use fldi_ok.
1450 * config/sh/constraints.md (G constraint, H constraint): Don't use
1453 2014-10-16 Martin Liska <mliska@suse.cz>
1455 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1456 Cast to unsigned long.
1457 (sem_item_optimizer::dump_cong_classes): Likewise.
1459 2014-10-16 Tom de Vries <tom@codesourcery.com>
1461 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1462 with SSA_NAME_IN_FREELIST.
1464 2014-10-16 Richard Biener <rguenther@suse.de>
1467 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1468 (fold_builtin_strncat_chk): Move ...
1469 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1470 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1472 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1475 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1478 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1480 Anna Tikhonova <anna.tikhonova@intel.com>
1481 Ilya Tocar <ilya.tocar@intel.com>
1482 Andrey Turetskiy <andrey.turetskiy@intel.com>
1483 Ilya Verbin <ilya.verbin@intel.com>
1484 Kirill Yukhin <kirill.yukhin@intel.com>
1485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1487 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1490 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1491 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1492 Anna Tikhonova <anna.tikhonova@intel.com>
1493 Ilya Tocar <ilya.tocar@intel.com>
1494 Andrey Turetskiy <andrey.turetskiy@intel.com>
1495 Ilya Verbin <ilya.verbin@intel.com>
1496 Kirill Yukhin <kirill.yukhin@intel.com>
1497 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1499 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1500 V16SI, V32HI, V64QI modes.
1502 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1505 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1506 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1508 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1509 to match fp insn patterns.
1510 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1512 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1513 expand_df_unop, expand_df_binop): Remove.
1514 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1515 FPSCR_STAT_REG as not call clobbered.
1516 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1517 invoking fpscr_set_from_mem.
1519 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1520 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1522 (REGISTER_NAMES): Adjust.
1523 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1524 (FIRST_PSEUDO_REGISTER): Increase to 156.
1525 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1526 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1528 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1529 FPSCR_MODES_REG and FPSCR_STAT_REG.
1530 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1532 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1533 FPSCR_SZ): Add new constants.
1534 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1536 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1537 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1538 Use TARGET_FPU_ANY condition.
1539 (fpu_switch peephole2): Remove.
1540 (fpu_switch split): Use simple_mem_operand to capture the mem and
1541 adjust split implementation.
1542 (extend_psi_si, truncate_si_psi): New insns.
1543 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1544 set of FPSCR_MODES_REG.
1546 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1547 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1548 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1549 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1550 call_value_compact, call_value_compact_rettramp, call,
1551 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1552 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1553 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1554 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1555 call_value_pop_compact_rettramp, various unnamed splits):
1556 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1559 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1560 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1561 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1562 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1563 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1565 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1566 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1567 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1568 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1569 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1570 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1571 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1573 2014-10-16 Martin Liska <mliska@suse.cz>
1574 Jan Hubicka <hubicka@ucw.cz>
1576 * Makefile.in: New object files included.
1577 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1579 (verify_edge_corresponds_to_fndecl): More sensitive verification
1580 of nodes that are merged by IPA ICF.
1581 * cgraph.h (cgraph_node::num_references): New function.
1582 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1583 * common.opt: New options ipa-icf, ipa-icf-functions and
1584 ipa-icf-variables introduced.
1585 * doc/invoke.texi: Documentation of new options introduced.
1586 * ipa-icf-gimple.c: New file.
1587 * ipa-icf-gimple.h: New file.
1588 * ipa-icf.c: New file.
1589 * ipa-icf.h: New file.
1590 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1591 (input_overwrite_node): Likewise.
1592 * lto-section-in.c: New icf section added.
1593 * lto-streamer.h (enum lto_section_type): Likewise.
1594 * opts.c (common_handle_option): New option added.
1595 * passes.def: New pass included.
1596 * timevar.def: Time variable for IPA ICF added.
1597 * tree-pass.h: New IPA ICF pass entry point added.
1599 2014-10-16 Richard Biener <rguenther@suse.de>
1601 PR tree-optimization/63168
1602 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1603 latches if after merging they are no longer simple.
1604 * cfghooks.c (merge_blocks): Handle merging a latch block
1607 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1609 Anna Tikhonova <anna.tikhonova@intel.com>
1610 Ilya Tocar <ilya.tocar@intel.com>
1611 Andrey Turetskiy <andrey.turetskiy@intel.com>
1612 Ilya Verbin <ilya.verbin@intel.com>
1613 Kirill Yukhin <kirill.yukhin@intel.com>
1614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1616 * config/i386/sse.md
1617 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1618 support AVX-512VL instructions.
1620 2014-10-16 DJ Delorie <dj@redhat.com>
1622 * tree-core.h: Fix comment to not assume pointers are multiples of
1625 2014-10-15 Tom Tromey <tromey@redhat.com>
1627 * timevar.h (class auto_timevar): New class.
1629 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1632 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1633 Remove the second alternative.
1634 (regprefix): Remove mode attribute.
1635 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1636 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1639 2013-11-05 Ian Lance Taylor <iant@google.com>
1641 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1642 If possible, add .cfi directives to record change to bx.
1643 * config/i386/i386.c (ix86_emit_cfi): New function.
1644 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1646 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1649 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1651 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1654 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1656 PR rtl-optimization/63448
1657 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1658 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1659 (LRA_MAX_INHERITANCE_PASSES): Use it.
1660 (lra_constraint_iter_after_spill): Remove.
1661 (lra_assignment_iter): New.
1662 (lra_assignment_iter_after_spill): New.
1663 * lra-assigns.c (lra_assignment_iter): New.
1664 (lra_assignment_iter_after_spill): New.
1665 (former_reload_pseudo_spill_p): New.
1666 (spill_for): Set up former_reload_pseudo_spill_p.
1667 (setup_live_pseudos_and_spill_after_risky): Ditto.
1668 (assign_by_spills): Ditto.
1669 (lra_assign): Increment lra_assignment_iter. Print the iteration
1670 number. Reset former_reload_pseudo_spill_p. Check
1671 lra_assignment_iter_after_spill.
1672 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1673 lra_assignment_iter and lra_assignment_iter_after_spill.
1674 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1675 (lra_constraints): Remove code with
1676 lra_assignment_iter_after_spill.
1678 2014-10-15 Teresa Johnson <tejohnson@google.com>
1681 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1684 2014-10-15 Renlin Li <renlin.li@arm.com>
1686 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1687 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1688 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1689 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1691 2014-10-15 Richard Biener <rguenther@suse.de>
1693 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1694 SSA form up-to-date when devirtualizing a call to
1695 __builtin_unreachable and avoid fixing up EH info here.
1697 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1698 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1699 Anna Tikhonova <anna.tikhonova@intel.com>
1700 Ilya Tocar <ilya.tocar@intel.com>
1701 Andrey Turetskiy <andrey.turetskiy@intel.com>
1702 Ilya Verbin <ilya.verbin@intel.com>
1703 Kirill Yukhin <kirill.yukhin@intel.com>
1704 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1706 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1707 to support AVX-512BW.
1708 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1709 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1710 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1711 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1712 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1713 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1714 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1715 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1716 (define_insn "*andnot<mode>3"): Ditto.
1717 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1718 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1719 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1720 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1721 (define_insn "*abs<mode>2"): Remove masking support.
1722 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1723 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1724 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1726 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1728 Anna Tikhonova <anna.tikhonova@intel.com>
1729 Ilya Tocar <ilya.tocar@intel.com>
1730 Andrey Turetskiy <andrey.turetskiy@intel.com>
1731 Ilya Verbin <ilya.verbin@intel.com>
1732 Kirill Yukhin <kirill.yukhin@intel.com>
1733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1735 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1736 * config/i386/sse.md
1737 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1738 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1739 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1740 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1741 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1742 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1743 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1745 2014-10-15 Renlin Li <renlin.li@arm.com>
1747 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1749 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1751 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1752 MINUS_EXPR in unsigned type to avoid undefined behavior.
1754 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1756 * stor-layout.c (self_referential_size): Do not promote arguments.
1758 2014-10-15 Marek Polacek <polacek@redhat.com>
1760 * doc/invoke.texi: Update to reflect that GNU11 is the default
1762 * c-common.h (c_language_kind): Update comment.
1764 2014-10-15 Richard Biener <rguenther@suse.de>
1766 * hash-table.c: Include bconfig.h if building for the host.
1767 * hash-table.h: Do not include ggc.h on the host but just declare
1768 a few ggc allocation templates.
1770 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1771 Jeff Law <law@redhat.com>
1773 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1774 multiple hard registers, use smaller mode derived from MODE.
1776 2014-10-15 Andreas Schwab <schwab@suse.de>
1778 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1779 as ATTRIBUTE_UNUSED.
1781 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1783 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1784 (decide_unrolling): ... this one.
1785 (peel_loops_completely): Remove.
1786 (decide_peel_simple): Remove.
1787 (decide_peel_once_rolling): Remove.
1788 (decide_peel_completely): Remove.
1789 (peel_loop_simple): Remove.
1790 (peel_loop_completely): Remove.
1791 (unroll_and_peel_loops): Rename to ...
1792 (unroll_loops): ... this one; handle only unrolling.
1793 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1796 (unroll_and_peel_loops): Remove.
1797 (unroll_loops): New.
1798 * passes.def: Replace
1799 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1800 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1801 rtl_unroll_and_peel_loops): Rename to ...
1802 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1803 (pass_rtl_unroll_and_peel_loops): Rename to ...
1804 (pass_rtl_unroll_loops): ... this one.
1805 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1806 (make_pass_rtl_unroll_loops): New.
1807 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1808 (canonicalize_loop_induction_variables): Update.
1810 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1812 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1813 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1814 !TARGET_HARD_FLOAT_POSTINC.
1815 (*lsip, *ssip): new instructions.
1817 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1819 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1822 2014-10-14 Andrew Pinski <apinski@cavium.com>
1824 * explow.c (convert_memory_address_addr_space): Rename to ...
1825 (convert_memory_address_addr_space_1): This. Add in_const argument.
1826 Inside a CONST RTL, permute the conversion and addition of constant
1827 for zero and sign extended pointers.
1828 (convert_memory_address_addr_space): New function.
1830 2014-10-14 Andrew Pinski <apinski@cavium.com>
1833 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1836 * explow.c (convert_memory_address_addr_space): Also permute the
1837 conversion and addition of constant for zero-extend.
1839 2014-10-14 DJ Delorie <dj@redhat.com>
1841 * config/msp430/msp430-modes.def (PSI): Add.
1843 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1844 (msp430_hard_regno_nregs_with_padding): New.
1845 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1846 (msp430_hard_regno_nregs_has_padding): New.
1847 (msp430_hard_regno_nregs_with_padding): New.
1848 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1849 (msp430_addr_space_legitimate_address_p): New.
1850 (msp430_asm_integer): New.
1851 (msp430_init_dwarf_reg_sizes_extra): New.
1852 (msp430_print_operand): Use X suffix for PSImode even in small model.
1853 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1854 (PTR_SIZE): ...but 4 bytes for EH.
1855 (SIZE_TYPE): Use __int20.
1856 (PTRDIFF_TYPE): Likewise.
1857 (INCOMING_FRAME_SP_OFFSET): Adjust.
1858 * config/msp430/msp430.md (movqi_topbyte): New.
1859 (movpsi): Use fixed suffixes.
1860 (movsipsi2): Enable for 430X, not large model.
1861 (extendhipsi2): Likewise.
1862 (zero_extendhisi2): Likewise.
1863 (zero_extendhisipsi2): Likewise.
1864 (extend_and_shift1_hipsi2): Likewise.
1865 (extendpsisi2): Likewise.
1866 (*bitbranch<mode>4_z): Fix suffix logic.
1868 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1871 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1872 do not choke on null node.
1873 <VAR_DECL>: Likewise.
1875 2014-10-14 DJ Delorie <dj@redhat.com>
1877 * machmode.h (int_n_data_t): New.
1878 (int_n_enabled_p): New.
1880 * tree.c (int_n_enabled_p): New.
1882 (make_or_reuse_type): Check for all __intN types, not just
1884 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1886 * tree.h (int128_integer_type_node): Remove.
1887 (int128_unsigned_type_node): Remove.
1888 (int_n_trees_t): New.
1889 (int_n_enabled_p): New.
1891 * toplev.c (standard_type_bitsize): New.
1892 (do_compile): Check which __intN types are enabled for the current
1894 * builtin-types.def (BT_INT128): Remove.
1895 (BT_UINT128): Remove.
1896 * machmode.def: Add macro to create __int128 for all targets.
1897 * stor-layout.c (mode_for_size): Support __intN types.
1898 (smallest_mode_for_size): Likewise.
1899 (initialize_sizetypes): Support __intN types.
1900 * genmodes.c (struct mode_data): Add int_n field.
1901 (blank_mode): Likewise.
1904 (emit_insn_modes_h): Count __intN entries and define
1906 (emit_mode_int_n): New.
1907 (emit_insn_modes_c): Call it.
1908 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1909 types, not just __int128.
1910 * tree-core.h (integer_type_kind): Remove __int128-specific
1911 entries, reserve spots for __intN entries.
1913 * config/msp430/msp430-modes.def (PSI): Add.
1915 2014-10-14 Kito Cheng <kito@0xlab.org>
1917 * ira.c: Fix typo in comment.
1919 * ira-build.c: Ditto.
1920 * ira-color.c: Ditto.
1921 * ira-emit.c: Ditto.
1923 * ira-lives.c: Ditto.
1925 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1927 PR rtl-optimization/63475
1928 * alias.c (true_dependence_1): Always use get_addr to extract
1929 true address operands from x_addr and mem_addr. Use extracted
1930 address operands to check for references with alignment ANDs.
1931 Use extracted address operands with find_base_term and
1932 base_alias_check. For noncanonicalized operands call canon_rtx with
1933 extracted address operand.
1934 (write_dependence_1): Ditto.
1935 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1937 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1940 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1943 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1944 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1945 Anna Tikhonova <anna.tikhonova@intel.com>
1946 Ilya Tocar <ilya.tocar@intel.com>
1947 Andrey Turetskiy <andrey.turetskiy@intel.com>
1948 Ilya Verbin <ilya.verbin@intel.com>
1949 Kirill Yukhin <kirill.yukhin@intel.com>
1950 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1952 * config/i386/i386.c
1953 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1954 (ix86_expand_int_vcond): Ditto.
1956 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1958 Anna Tikhonova <anna.tikhonova@intel.com>
1959 Ilya Tocar <ilya.tocar@intel.com>
1960 Andrey Turetskiy <andrey.turetskiy@intel.com>
1961 Ilya Verbin <ilya.verbin@intel.com>
1962 Kirill Yukhin <kirill.yukhin@intel.com>
1963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1965 * config/i386/i386.c
1966 (emit_reduc_half): Handle V64QI and V32HI mode.
1967 * config/i386/sse.md
1968 (define_mode_iterator VI_AVX512BW): New.
1969 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1971 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1972 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1973 Anna Tikhonova <anna.tikhonova@intel.com>
1974 Ilya Tocar <ilya.tocar@intel.com>
1975 Andrey Turetskiy <andrey.turetskiy@intel.com>
1976 Ilya Verbin <ilya.verbin@intel.com>
1977 Kirill Yukhin <kirill.yukhin@intel.com>
1978 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1980 * config/i386/sse.md
1981 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1983 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1985 Anna Tikhonova <anna.tikhonova@intel.com>
1986 Ilya Tocar <ilya.tocar@intel.com>
1987 Andrey Turetskiy <andrey.turetskiy@intel.com>
1988 Ilya Verbin <ilya.verbin@intel.com>
1989 Kirill Yukhin <kirill.yukhin@intel.com>
1990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1992 * config/i386/i386.c
1993 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1994 * config/i386/sse.md
1995 (define_mode_iterator VI): Add V64QI and V32HI modes.
1997 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1998 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1999 Anna Tikhonova <anna.tikhonova@intel.com>
2000 Ilya Tocar <ilya.tocar@intel.com>
2001 Andrey Turetskiy <andrey.turetskiy@intel.com>
2002 Ilya Verbin <ilya.verbin@intel.com>
2003 Kirill Yukhin <kirill.yukhin@intel.com>
2004 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2006 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2008 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2009 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2010 Anna Tikhonova <anna.tikhonova@intel.com>
2011 Ilya Tocar <ilya.tocar@intel.com>
2012 Andrey Turetskiy <andrey.turetskiy@intel.com>
2013 Ilya Verbin <ilya.verbin@intel.com>
2014 Kirill Yukhin <kirill.yukhin@intel.com>
2015 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2017 * config/i386/sse.md
2018 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2019 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2021 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2022 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2023 Anna Tikhonova <anna.tikhonova@intel.com>
2024 Ilya Tocar <ilya.tocar@intel.com>
2025 Andrey Turetskiy <andrey.turetskiy@intel.com>
2026 Ilya Verbin <ilya.verbin@intel.com>
2027 Kirill Yukhin <kirill.yukhin@intel.com>
2028 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2030 * config/i386/sse.md
2031 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2032 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2034 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2035 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2036 Anna Tikhonova <anna.tikhonova@intel.com>
2037 Ilya Tocar <ilya.tocar@intel.com>
2038 Andrey Turetskiy <andrey.turetskiy@intel.com>
2039 Ilya Verbin <ilya.verbin@intel.com>
2040 Kirill Yukhin <kirill.yukhin@intel.com>
2041 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2043 * config/i386/sse.md
2044 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2045 (define_mode_iterator VI2_AVX2): Add V32HI mode.
2046 (define_expand "mul<mode>3<mask_name>"): Add masking.
2047 (define_insn "*mul<mode>3<mask_name>"): Ditto.
2048 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2049 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2050 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2051 (define_mode_attr SDOT_PMADD_SUF): Ditto.
2052 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2053 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2054 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2055 (define_insn "avx2_packusdw"): Delete.
2056 (define_insn "sse4_1_packusdw"): Ditto.
2057 (define_insn "<sse4_1_avx2>_packusdw<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 "vec_dup<mode>"): Update constraints.
2071 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2073 Anna Tikhonova <anna.tikhonova@intel.com>
2074 Ilya Tocar <ilya.tocar@intel.com>
2075 Andrey Turetskiy <andrey.turetskiy@intel.com>
2076 Ilya Verbin <ilya.verbin@intel.com>
2077 Kirill Yukhin <kirill.yukhin@intel.com>
2078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2080 * config/i386/sse.md
2081 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2082 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2083 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2085 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2086 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2087 Anna Tikhonova <anna.tikhonova@intel.com>
2088 Ilya Tocar <ilya.tocar@intel.com>
2089 Andrey Turetskiy <andrey.turetskiy@intel.com>
2090 Ilya Verbin <ilya.verbin@intel.com>
2091 Kirill Yukhin <kirill.yukhin@intel.com>
2092 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2094 * config/i386/sse.md
2095 (define_expand "mul<mode>3<mask_name>"): Add masking.
2097 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2098 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2099 Anna Tikhonova <anna.tikhonova@intel.com>
2100 Ilya Tocar <ilya.tocar@intel.com>
2101 Andrey Turetskiy <andrey.turetskiy@intel.com>
2102 Ilya Verbin <ilya.verbin@intel.com>
2103 Kirill Yukhin <kirill.yukhin@intel.com>
2104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2106 * config/i386/sse.md
2107 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2108 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2110 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2111 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2112 Anna Tikhonova <anna.tikhonova@intel.com>
2113 Ilya Tocar <ilya.tocar@intel.com>
2114 Andrey Turetskiy <andrey.turetskiy@intel.com>
2115 Ilya Verbin <ilya.verbin@intel.com>
2116 Kirill Yukhin <kirill.yukhin@intel.com>
2117 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2119 * config/i386/sse.md
2120 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2121 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2122 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2125 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2127 Anna Tikhonova <anna.tikhonova@intel.com>
2128 Ilya Tocar <ilya.tocar@intel.com>
2129 Andrey Turetskiy <andrey.turetskiy@intel.com>
2130 Ilya Verbin <ilya.verbin@intel.com>
2131 Kirill Yukhin <kirill.yukhin@intel.com>
2132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2134 * config/i386/sse.md
2135 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2136 use VF_128_256 mode iterator and update assembler emit code.
2137 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2138 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2139 Add masking, use VF_128_256 mode iterator.
2140 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2141 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2142 Add masking, use VF_128_256 mode iterator and update assembler emit
2144 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2145 (define_mode_attr avx512flogicsuff): Delete.
2146 (define_insn "avx512f_<logic><mode>"): Ditto.
2147 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2149 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2151 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2152 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2153 Anna Tikhonova <anna.tikhonova@intel.com>
2154 Ilya Tocar <ilya.tocar@intel.com>
2155 Andrey Turetskiy <andrey.turetskiy@intel.com>
2156 Ilya Verbin <ilya.verbin@intel.com>
2157 Kirill Yukhin <kirill.yukhin@intel.com>
2158 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2160 * config/i386/sse.md
2161 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2162 (define_expand "vashr<mode>3<mask_name>"): Add masking,
2163 use VI12_128 mode iterator.
2164 (define_expand "ashrv2di3<mask_name>"): New.
2166 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2167 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2168 Anna Tikhonova <anna.tikhonova@intel.com>
2169 Ilya Tocar <ilya.tocar@intel.com>
2170 Andrey Turetskiy <andrey.turetskiy@intel.com>
2171 Ilya Verbin <ilya.verbin@intel.com>
2172 Kirill Yukhin <kirill.yukhin@intel.com>
2173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2175 * config/i386/i386.c
2176 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2177 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2178 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2179 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2180 CODE_FOR_avx512vl_ucmpv4si3_mask.
2181 * config/i386/sse.md
2182 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2183 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2185 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2186 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2187 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2188 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2189 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2190 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2192 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2194 Anna Tikhonova <anna.tikhonova@intel.com>
2195 Ilya Tocar <ilya.tocar@intel.com>
2196 Andrey Turetskiy <andrey.turetskiy@intel.com>
2197 Ilya Verbin <ilya.verbin@intel.com>
2198 Kirill Yukhin <kirill.yukhin@intel.com>
2199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2201 * config/i386/sse.md
2202 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2203 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2204 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2205 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2206 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2207 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2208 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2209 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2210 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2212 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2213 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2214 Anna Tikhonova <anna.tikhonova@intel.com>
2215 Ilya Tocar <ilya.tocar@intel.com>
2216 Andrey Turetskiy <andrey.turetskiy@intel.com>
2217 Ilya Verbin <ilya.verbin@intel.com>
2218 Kirill Yukhin <kirill.yukhin@intel.com>
2219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2221 * config/i386/sse.md
2222 (define_insn "avx512f_blendm<mode>"): Delete.
2223 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2224 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2225 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2226 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2228 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2231 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2234 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2236 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2237 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2238 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2239 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2242 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2245 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2247 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2250 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2253 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2256 2014-10-14 Richard Biener <rguenther@suse.de>
2258 PR tree-optimization/63512
2259 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2262 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2265 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2266 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2268 (negsf2_i): Rename to *negsf2_i.
2269 (abssf2_i): Rename to *abssf2_i.
2270 (negdf2_i): Rename to *negdf2_i.
2271 (absdf2_i): Rename to *absdf2_i.
2273 2014-10-14 Felix Yang <felix.yang@huawei.com>
2274 Jeff Law <law@redhat.com>
2276 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2277 "replace" into boolean bitfields; turn member "loop_depth" into a short
2278 integer; add new member "no_equiv" and "reserved".
2279 (no_equiv): Set no_equiv of struct equivalence if register is marked
2280 as having no known equivalence.
2281 (update_equiv_regs): Check all definitions for a multiple-set
2282 register to make sure that the RHS have the same value.
2284 2014-10-13 Richard Henderson <rth@redhat.com>
2286 * combine-stack-adj.c (no_unhandled_cfa): New.
2287 (maybe_merge_cfa_adjust): New.
2288 (combine_stack_adjustments_for_block): Use them.
2290 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2292 * Makefile.in (TAGS): Tag ../include files.
2294 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2296 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2297 to rs6000_dbx_register_number.
2298 (DWARF_FRAME_REGNUM): Redefine as identity map.
2299 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2300 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2301 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2302 argument to handle .debug_frame and .eh_frame directly. Always
2303 translate SPE high register numbers. Add special treatment for CR,
2304 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2306 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2307 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2308 (RS6000_USE_DWARF_NUMBERING): Define.
2309 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2310 (RS6000_USE_DWARF_NUMBERING): Define.
2311 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2312 (RS6000_USE_DWARF_NUMBERING): Define.
2313 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2314 (RS6000_USE_DWARF_NUMBERING): Define.
2315 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2316 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2318 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2320 * config/i386/i386.c (ix86_address_cost): Lower cost for
2321 when address contains GOT register.
2323 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2324 Vladimir Makarov <vmakarov@redhat.com>
2328 PR rtl-optimization/55458
2329 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2330 (ix86_init_pic_reg): New.
2331 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2332 (ix86_save_reg): Likewise.
2333 (ix86_expand_prologue): Remove PIC register initialization
2334 now performed in ix86_init_pic_reg.
2335 (ix86_output_function_epilogue): Add check on pseudo register.
2336 (set_pic_reg_ever_alive): New.
2337 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2338 set_pic_reg_ever_alive.
2339 (legitimize_tls_address): Likewise.
2340 (ix86_pic_register_p): New check.
2341 (ix86_delegitimize_address): Add check on pseudo register.
2342 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2343 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2344 (TARGET_INIT_PIC_REG): New.
2345 (TARGET_USE_PSEUDO_PIC_REG): New.
2346 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2347 if pic_offset_table_rtx exists.
2348 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2350 * doc/tm.texi: Regenerate.
2351 * function.c (assign_parms): Generate pseudo register for PIC.
2352 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2354 * ira-color.c (color_pass): Add check on pseudo register.
2355 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2357 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2359 (ira): Add target specific PIC register initialization.
2360 (do_reload): Keep PIC pseudo register.
2361 * lra-assigns.c (spill_for): Add checks on pseudo register.
2362 * lra-constraints.c (contains_symbol_ref_p): New.
2363 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2365 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2366 * target.def (use_pseudo_pic_reg): New.
2367 (init_pic_reg): New.
2369 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2371 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2372 Remove m_SILVERMONT and m_INTEL from the tune.
2374 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2377 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2378 when _HPUX_SOURCE is defined.
2380 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2382 PR tree-optimization/62127
2383 * tree.c (remap_type_1): When remapping array, remap
2386 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2388 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2389 longer impact parallelization.
2391 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2394 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2396 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2398 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2400 2014-10-13 Richard Biener <rguenther@suse.de>
2402 PR tree-optimization/63419
2403 * gimple-fold.h (gimple_convert): New function.
2404 * gimple-fold.c (gimple_convert): Likewise.
2405 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2406 to split out required conversions early.
2408 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2410 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2411 Add the parts of an insn in reverse order, with the pattern at
2412 the top of the queue. Detect when we're iterating over a SEQUENCE
2413 pattern and in that case just consider patterns of subinstructions.
2415 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2418 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2420 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2422 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2423 address. Use def chains to handle GBR clobbering call insns.
2425 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2427 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2428 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2429 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2430 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2431 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2432 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2433 * doc/gty.texi (for_user): Document new option.
2434 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2436 (walk_type): Don't error out on for_user option.
2437 (write_func_for_structure): Emit user marking routines if requested by
2439 (write_local_func_for_structure): Likewise.
2440 (main): Mark types with for_user option as used.
2441 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2442 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2443 * hash-table.h (ggc_hasher): New struct.
2444 (hash_table::create_ggc): New function.
2445 (gt_pch_nx): New overload for hash_table.
2447 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2449 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2450 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2451 * config/sh/sh.c: Likewise.
2452 * config/sh/sh-mem.cc: Likewise.
2453 * config/sh/sh.md: Likewise.
2454 * config/sh/predicates.md: Likewise.
2455 * config/sh/sync.md: Likewise.
2457 2014-10-11 Martin Liska <mliska@suse.cz>
2460 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2461 for call_cgraph_insertion_hooks added.
2463 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2466 * stor-layout.c (min_align_of_type): Don't decrease alignment
2467 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2468 TYPE_USER_ALIGN is set.
2470 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2472 PR rtl-optimization/63483
2473 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2474 references when alignment ANDs are involved.
2475 (write_dependence_p): Ditto.
2476 (may_alias_p): Ditto.
2478 2014-10-10 Marek Polacek <polacek@redhat.com>
2480 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2481 * doc/invoke.texi: Document -fsanitize=object-size.
2482 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2483 or it into SANITIZE_UNDEFINED.
2484 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2485 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2486 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2487 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2488 * ubsan.c: Include tree-object-size.h.
2489 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2490 (ubsan_expand_bounds_ifn): Use false instead of 0.
2491 (ubsan_expand_objsize_ifn): New function.
2492 (instrument_object_size): New function.
2493 (pass_ubsan::execute): Add object size instrumentation.
2494 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2496 2014-10-10 Richard Henderson <rth@redhat.com>
2499 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2500 Restrict the set of expressions we're willing to move.
2502 2014-10-10 Jeff Law <law@redhat.com>
2504 * ira.c (struct equivalence): Promote INIT_INSNs field to
2505 an rtx_insn_list. Add comments.
2506 (no_equiv): Promote LIST to an rtx_insn_list. Update
2507 testing for and creating the special marker. Use methods
2508 to extract the insn and next pointers. Promote INSN to an
2510 (update_equiv_regs): Update test for special marker in the
2513 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2515 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2516 * configure: Regenerate.
2517 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2518 TARGET_FIX_ERR_A53_835769_DEFAULT.
2519 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2521 * doc/install.texi (aarch64*-*-*): Document
2522 new --enable-fix-cortex-a53-835769 option.
2524 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2525 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2527 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2528 (ADJUST_INSN_LENGTH): Define.
2529 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2530 * config/aarch64/aarch64.c (is_mem_p): New function.
2531 (is_memory_op): Likewise.
2532 (aarch64_prev_real_insn): Likewise.
2533 (is_madd_op): Likewise.
2534 (dep_between_memop_and_curr): Likewise.
2535 (aarch64_madd_needs_nop): Likewise.
2536 (aarch64_final_prescan_insn): Likewise.
2537 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2538 and -mno-fix-cortex-a53-835769 options.
2540 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2542 PR tree-optimization/63464
2543 * tree-switch-conversion.c (struct case_bit_test): Remove
2544 hi and lo fields, add wide_int mask field.
2545 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2546 hi/lo fields into wide_int mask operations, optimize by pretending
2547 minval to be 0 if maxval is small enough.
2548 (process_switch): Adjust caller.
2550 2014-10-10 Richard Biener <rguenther@suse.de>
2552 PR tree-optimization/63379
2553 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2554 a neutral operand for min/max when it is not a reduction chain.
2556 2014-10-10 Richard Biener <rguenther@suse.de>
2558 PR tree-optimization/63476
2559 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2560 (BB_LIVE_VOP_ON_EXIT): New define.
2561 (create_expression_by_pieces): Assign VUSEs to stmts.
2562 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2563 (pass_pre::execute): Assert virtual SSA form is up-to-date
2566 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2568 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2570 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2572 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2575 2014-10-09 Richard Biener <rguenther@suse.de>
2577 PR tree-optimization/63380
2578 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2581 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2583 * config/avr/avr.opt (mmcu=): Change to have a string value.
2584 (mn-flash=, mskip-bug, march=, mrmw): New options.
2585 (HeaderInclude): New.
2586 (mmcu=): Remove Var / Init clauses.
2587 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2589 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2590 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2591 (SYMBOL_FLAG_IO_LOW): Define.
2592 (avr_device_to_as, avr_device_to_ld): Don't declare.
2593 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2594 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2595 (EXTRA_SPEC_FUNCTIONS): Don't define.
2596 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2597 (LINK_SPEC): Translate -arch= option to -m= option.
2598 Don't use device_to_ld / device_to_data_start.
2599 (STARTFILE_SPEC): Now empty.
2600 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2601 * config/avr/gen-avr-mmcu-specs.c: New file.
2602 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2603 (s-device-specs): Likewise.
2604 (GCC_PASSES): Add s-device-specs.
2605 (install-driver): Depend on install-device-specs.
2606 (install-device-specs): New rule.
2607 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2608 avr_arch_index and provide fallback initialization for avr_n_flash.
2609 (varasm.h): #include.
2610 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2611 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2612 (avr_attribute_table): Add "io", "address" and "io_low".
2613 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2614 Add special handling for symbols with "io" and/or "address" attributes.
2615 (avr_asm_asm_output_aligned_bss): New function.
2616 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2617 as appropriate. Handle io_low attribute.
2618 (avr_out_sbxx_branch): Handle symbolic io addresses.
2619 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2620 avr_n_flash instead of avr_current_device->n_flash.
2621 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2622 (avr_emit_movmemhi): Likewise.
2623 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2624 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2625 Don't define avr_current_device->macro (that's the specfile's job).
2626 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2627 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2628 * config/avr/avr.md (*cpse.ne): Likewise.
2629 (mov<mode>): Use avr_eval_addr_attrib.
2630 (cbi): Change constraint for low_io_address_operand operand to "i".
2631 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2632 * config/avr/predicates.md (io_address_operand):
2633 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2634 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2635 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2637 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2638 * config/avr/genmultilib.awk: Use -march=.
2639 Remove Multilib matches processing.
2640 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2641 * config/avr/avr-arch.h: Add double include guard.
2642 (avr_mcu_t) <library_name>: Update comment.
2643 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2644 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2645 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2646 (avr_device_to_sp8): Likewise.
2647 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2649 * doc/extend.texi (io, address): Document new AVR variable attributes.
2652 2014-10-09 Marek Polacek <polacek@redhat.com>
2654 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2656 2014-10-08 Richard Biener <rguenther@suse.de>
2658 PR tree-optimization/61969
2659 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2662 2014-10-09 Richard Biener <rguenther@suse.de>
2664 PR tree-optimization/63445
2665 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2666 overflow for non-equality compares.
2668 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2670 PR rtl-optimization/57003
2671 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2672 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2673 killing regs_invalidated_by_call.
2675 2014-10-08 Teresa Johnson <tejohnson@google.com>
2678 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2679 (ssa_fix_duplicate_block_edges): Invoke it.
2680 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2682 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2685 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2686 atomic_fetch_<fetchop_name>si_hard,
2687 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2688 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2689 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2690 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2692 2014-10-08 Rong Xu <xur@google.com>
2694 * gcov-tool.c (profile_overlap): New driver function
2695 to compute profile overlap.
2696 (print_overlap_usage_message): New.
2697 (overlap_usage): New.
2699 (print_usage): Add calls to overlap function.
2701 * doc/gcov-tool.texi: Add documentation.
2703 2014-10-08 Steve Ellcey <sellcey@mips.com>
2705 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2706 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2708 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2710 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2711 pattern matching of MEM_REF.
2712 (check_stmt_for_type_change): Update.
2714 2014-10-08 Steve Ellcey <sellcey@mips.com>
2716 * config/mips/linux64.h: Remove.
2717 * config/mips/gnu-user64.h: Remove.
2718 * gcc.config (mips*-*-*): Remove references to linux64.h and
2720 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2721 with modified version from gnu-user64.h.
2722 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2723 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2724 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2726 (GNU_USER_LINK_EMULATION64): Ditto.
2727 (GNU_USER_LINK_EMULATIONN32): Ditto.
2728 (GLIBC_DYNAMIC_LINKER32): Ditto.
2729 (GLIBC_DYNAMIC_LINKER64): Ditto.
2730 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2731 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2732 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2733 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2734 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2735 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2736 (GLIBC_DYNAMIC_LINKER): Delete.
2737 (UCLIBC_DYNAMIC_LINKER): Delete.
2739 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2740 Richard Biener <rguenther@suse.de>
2742 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2743 Get address space from operand 0 (BASE).
2745 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2748 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2750 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2752 * dwarf2out.c: Remove current_function_has_inlines.
2753 (gen_subprogram_die): Same.
2754 (gen_inlined_subroutine_die): Same.
2756 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2758 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2760 (_addcarry_u64): Ditto.
2761 (_addcarryx_u64): Ditto.
2763 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2765 * cgraph.h (cgraph_node::get_fun): Declare.
2766 * cgraph.c (cgraph_node::get_fun): New method.
2767 * ipa-inline.c (can_inline_edge_p): Use it.
2769 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2771 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2772 and -ftrapping-math.
2773 * lto-wrapper.c (merge_and_complain): Likewise.
2774 (run_gcc): Likewise.
2776 2014-10-06 Rong Xu <xur@google.com>
2778 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2779 * tree-profile.c: (params.h): New include.
2780 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2781 and __gcov_indirect_call_topn_counters for
2782 indirect_call_topn_profile.
2783 (gimple_init_edge_profiler): New decls for
2784 __gcov_indirect_call_topn_profiler.
2785 (gimple_gen_ic_profiler): Generate the correct profiler call.
2786 (gimple_gen_ic_func_profiler): Fix format.
2787 * value-prof.c (params.h): New include.
2788 (dump_histogram_value): Hanlde indirect_call_topn counters.
2789 (stream_in_histogram_value): Ditto.
2790 (gimple_indirect_call_to_profile): Use indirect_call_topn
2791 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2792 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2794 * value-prof.h (enum hist_type): Histrogram type for
2795 indirect_call_topn counters.
2796 * profile.c (instrument_values): Instrument
2797 indirect_call_topn counters.
2799 2014-10-06 Rong Xu <xur@google.com>
2801 * Makefile.in: Fix dependence.
2802 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2803 indirect call topn profiler.
2806 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2808 * calls.c (expand_call): Do not use the target as the return slot if
2809 it is not sufficiently aligned.
2811 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2813 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2814 discussion of permutes and why we don't handle them.
2816 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2818 * config/sparc/predicates.md (int_register_operand): Delete.
2820 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2822 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2824 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2826 * ubsan.h (ubsan_get_source_location): New prototype.
2827 * ubsan.c (ubsan_source_location_type): New variable.
2828 Function renamed to ...
2829 (ubsan_get_source_location_type): ... this. Cache
2830 return value in ubsan_source_location_type variable.
2831 (ubsan_source_location, ubsan_create_data): Use
2832 ubsan_get_source_location_type instead of
2833 ubsan_source_location_type.
2834 * asan.c (asan_protect_global): Don't protect globals
2835 with ubsan_get_source_location_type () type.
2836 (asan_add_global): Provide global decl location info
2839 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2841 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2844 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2846 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2848 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2850 (ipa_polymorphic_call_context::dump): Fix formating.
2851 (walk_ssa_copies): Add logic avoiding loops; update uses.
2852 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2854 2014-10-02 Mark Wielaard <mjw@redhat.com>
2857 * dwarf2out.c (gen_subprogram_die): When a member function is
2858 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2859 * langhooks.h (struct lang_hooks_for_decls): Add
2860 function_decl_deleted_p langhook.
2861 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2862 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2864 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2866 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2867 NULL pointer checks.
2868 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2869 if type doesn't change.
2870 * cgraph.h (cgraph_indirect_call_info): New flag.
2871 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2872 (cgraph_node::dump): Dump it.
2873 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2874 of context.get_dynamic_type.
2875 (ipa_make_edge_direct_to_target): Do not speculate
2876 edge that is already speuclative.
2877 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2878 speculate to __builtin_unreachable
2879 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2881 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2883 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2885 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2886 get_dynamic_type; drop TODO.
2887 * ipa-polymorphic-call.c
2888 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2889 for otr_type to be unknown.
2891 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2893 * common/config/score/score-common.c: Remove.
2894 * config.gcc: Remove support for score-*.
2895 * config/score/constraints.md: Remove.
2896 * config/score/elf.h: Remove.
2897 * config/score/predicates.md: Remove.
2898 * config/score/score-conv.h: Remove.
2899 * config/score/score-generic.md: Remove.
2900 * config/score/score-modes.def: Remove.
2901 * config/score/score-protos.h: Remove.
2902 * config/score/score.c: Remove.
2903 * config/score/score.h: Remove.
2904 * config/score/score.md: Remove.
2905 * config/score/score.opt: Remove.
2906 * doc/md.texi: Don't document score-*.
2908 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2911 * genconditions.c: Directly include ggc.h before rtl.h.
2913 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2915 * ipa-polymorphic-call.c
2916 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2917 code determining speculative type.
2918 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2920 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2922 * altivec.md (altivec_lvsl): New define_expand.
2923 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2924 (altivec_lvsr): New define_expand.
2925 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2926 * rs6000.c (rs6000_expand_builtin): Change to use
2927 altivec_lvs[lr]_direct; remove commented-out code.
2929 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2931 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2932 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2933 little endian target.
2935 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2937 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2939 * tree-pretty-print.h (dump_location): Declare.
2940 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2941 (pp_gimple_stmt_1): Likewise.
2942 (dump_implicit_edges): Likewise.
2943 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2947 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2949 * gcc.c (driver::global_initializations): Remove "const" so
2950 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2951 and decoded_options_count.
2953 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2955 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2957 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2958 TARGET_E500_DOUBLE case here.
2960 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2965 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2967 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2969 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2970 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2971 in_polymorphic_cdtor
2972 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2973 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2974 * cgraphclones.c (cgraph_edge::clone): Likewise.
2975 * ipa-prop.c (update_jump_functions_after_inlining,
2976 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2977 to possible_dynamic_type_change.
2978 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2979 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2980 IN_POLY_CDOTR argument.
2982 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2983 for BASE and OUTER_TYPE being NULL.
2984 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2985 in_poly_cdtor parameter.
2987 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2989 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2990 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2992 (expand_vec_perm_1): Likewise.
2994 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2995 Uros Bizjak <ubizjak@gmail.com>
2997 PR tree-optimization/61403
2998 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2999 error in comment. Also optimize 256-bit vectors for AVX2
3000 or AVX (floating vectors only), provided the first permutation
3001 can be performed in one insn.
3003 2014-10-03 David Malcolm <dmalcolm@redhat.com>
3005 * gcc.c (class driver): New class.
3006 (main): Reimplement in terms of driver::main, moving most of the
3007 locals to be locals within individual methods of class driver.
3008 The remaining locals "explicit_link_files", "decoded_options" and
3009 "decoded_options_count" are used by multiple driver:: methods, and
3010 so become member data. Doing so isolates the argc/argv reads and
3011 writes. Replace "goto out" with a special exit code from
3012 new method driver::prepare_infiles. Split out the old
3013 implementation of main into the following...
3014 (driver::main): New function, corresponding to the old "main"
3016 (driver::set_progname): New function, taken from the old
3017 "main" implementation.
3018 (driver::expand_at_files): Likewise.
3019 (driver::decode_argv): Likewise.
3020 (driver::global_initializations): Likewise.
3021 (driver::build_multilib_strings): Likewise.
3022 (driver::set_up_specs): Likewise.
3023 (driver::putenv_COLLECT_GCC): Likewise.
3024 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3025 (driver::handle_unrecognized_options): Likewise.
3026 (driver::maybe_print_and_exit): Likewise.
3027 (driver::prepare_infiles): Likewise.
3028 (driver::do_spec_on_infiles): Likewise.
3029 (driver::maybe_run_linker): Likewise.
3030 (driver::final_actions): Likewise.
3031 (driver::get_exit_code): Likewise.
3033 2014-10-03 Yury Gribov <y.gribov@samsung.com>
3035 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3036 don't emit empty ctors.
3038 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
3040 * convert.c (convert_to_integer): Do not introduce useless conversions
3041 between integral types.
3043 2014-10-03 David Sherwood <david.sherwood@arm.com>
3045 * ira-int.h (ira_allocno): Mark hard_regno as signed.
3047 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
3049 * lra-constraints.c (inherit_in_ebb): Handle calls with
3050 multiple return values.
3051 * caller-save.c (save_call_clobbered_regs): Likewise.
3053 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3055 * tree-vect-data-refs.c (vect_permute_load_chain,
3056 vect_shift_permute_load_chain): Fix a typo in temporary var names,
3057 suffle3 to shuffle3.
3060 * omp-low.c (taskreg_contexts): New variable.
3061 (scan_omp_parallel): Push newly created context into taskreg_contexts
3062 vector and move record layout code to finish_taskreg_scan.
3063 (scan_omp_task): Likewise.
3064 (finish_taskreg_scan): New function.
3065 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3066 vector elements and release it.
3069 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3070 of palignr arguments can't be used due to min 0 or max - min
3071 too high, try also op0, op1 order of palignr arguments.
3073 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
3075 * cgraph.h (ipa_polymorphic_call_context):
3076 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3077 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3078 * ipa-polymorphic-call.c
3079 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3080 past end of dynamic types.
3081 (ipa_polymorphic_call_context::stream_out,
3082 speculative_outer_type): Stream dynamic flag.
3083 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3084 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3086 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3088 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3089 * ipa-prop.c (update_jump_functions_after_inlining,
3090 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3092 2014-10-02 Teresa Johnson <tejohnson@google.com>
3094 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3095 up when synthesizing counts to avoid rounding errors.
3097 2014-10-02 Teresa Johnson <tejohnson@google.com>
3100 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3101 asserts to handle incoming insanities.
3103 2014-10-02 Martin Jambor <mjambor@suse.cz>
3105 PR tree-optimization/63375
3106 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3109 2014-10-02 Olivier Hainque <hainque@adacore.com>
3111 * Makefile.in (CROSS): Define, to @CROSS.
3113 2014-10-02 Jakub Jelinek <jakub@redhat.com>
3116 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3117 if it expands to a single insn only.
3118 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
3119 fail unless in_order is true. Add forward declaration.
3120 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3121 is useful for one_operand_p.
3122 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3124 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3126 * cgraphclones.c (build_function_type_skip_args): Do not make new
3127 type variant of old.
3129 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3131 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3132 when speculation is added.
3133 (ipa_edge_args): Add polymorphic_call_contexts.
3134 (ipa_get_ith_polymorhic_call_context): New accesor.
3135 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3136 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3137 (ipa_compute_jump_functions_for_edge): Compute contexts.
3138 (update_jump_functions_after_inlining): Update contexts.
3139 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3140 update dumping; add speculative edge creation.
3141 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3143 (update_indirect_edges_after_inlining): Pass down context.
3144 (ipa_edge_duplication_hook): Duplicate contexts.
3145 (ipa_write_node_info): Stream out contexts.
3146 (ipa_read_node_info): Stream in contexts.
3147 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3149 (try_speculative_devirtualization): New function.
3150 * ipa-utils.h (try_speculative_devirtualization): Declare.
3152 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3154 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3157 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3159 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3162 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3164 * ipa-polymorphic-call.c
3165 (ipa_polymorphic_call_context::restrict_to_inner_class):
3166 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3167 use speculation_consistent_p to do so; Add CONSDER_BASES
3168 and CONSIDER_PLACEMENT_NEW parameters.
3169 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3170 short circuit obvious cases.
3171 (ipa_polymorphic_call_context::dump): Improve formatting.
3172 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3173 combine_speculation_with to record speculations; Do not ICE when
3174 object is located in pointer type decl; do not ICE for methods
3175 of UNION_TYPE; do not record nonpolymorphic types.
3176 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3177 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3178 (ipa_polymorphic_call_context::combine_with): New method.
3179 (ipa_polymorphic_call_context::make_speculative): Move here; use
3180 combine speculation.
3181 * cgraph.h (ipa_polymorphic_call_context): Update
3182 restrict_to_inner_class prototype; add offset_by, make_speculative,
3183 combine_with, useless_p, combine_speculation_with and
3184 speculation_consistent_p methods.
3185 (ipa_polymorphic_call_context::offset_by): New method.
3186 (ipa_polymorphic_call_context::useless_p): New method.
3188 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3190 PR rtl-optimization/62151
3191 * combine.c (can_combine_p): Allow the destination register of INSN
3192 to be clobbered in I3.
3193 (subst): Do not substitute into clobbers of registers.
3195 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3198 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3199 offset, TARGET_MEM_REF and SSA_NAME.
3201 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3202 256-bit vectors for TARGET_AVX2.
3204 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3208 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3209 argument to avx2_permv2ti.
3211 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3213 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3215 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3217 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3218 (fmod<mode>3): Ditto.
3219 (fpremxf4_i387): Ditto.
3220 (reminderxf3): Ditto.
3221 (reminder<mode>3): Ditto.
3222 (fprem1xf4_i387): Ditto.
3224 2014-09-30 Teresa Johnson <tejohnson@google.com>
3226 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3227 duplicate_blocks bitmap.
3228 (remove_ctrl_stmt_and_useless_edges): Ditto.
3229 (create_block_for_threading): Ditto.
3230 (compute_path_counts): New function.
3231 (update_profile): Ditto.
3232 (recompute_probabilities): Ditto.
3233 (update_joiner_offpath_counts): Ditto.
3234 (freqs_to_counts_path): Ditto.
3235 (clear_counts_path): Ditto.
3236 (ssa_fix_duplicate_block_edges): Update profile info.
3237 (ssa_create_duplicates): Pass new parameter.
3238 (ssa_redirect_edges): Remove old profile update.
3239 (thread_block_1): New duplicate_blocks bitmap,
3240 remove old profile update.
3241 (thread_single_edge): Pass new parameter.
3243 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3246 * varasm.c (decode_reg_name_and_count): Check availability for
3247 registers from ADDITIONAL_REGISTER_NAMES.
3249 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3252 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3253 (PLUGIN_HEADERS): Add pass-instances.def.
3255 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3257 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3259 * config/aarch64/aarch64-simd.md
3260 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3261 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3262 (vqdmulls_lane_s32): Fix return type.
3263 (vqdmulls_laneq_s32): New.
3265 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3268 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3269 or invert_jump_1 if jump isn't any_condjump_p.
3271 2014-09-30 Terry Guo <terry.guo@arm.com>
3273 * config/arm/arm-cores.def (cortex-m7): New core name.
3274 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3276 * config/arm/arm-tables.opt: Regenerated.
3277 * config/arm/arm-tune.md: Regenerated.
3278 * config/arm/arm.h (TARGET_VFP5): New macro.
3279 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3280 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3281 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3282 * doc/invoke.texi: Document new cpu and fpu names.
3284 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3286 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3287 before sinking insn.
3289 2014-09-30 David Sherwood <david.sherwood@arm.com>
3291 * ira-int.h (ira_allocno): Add "wmode" field.
3292 * ira-build.c (create_insn_allocnos): Add new "parent" function
3294 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3295 that cannot be accessed in wmode.
3297 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3299 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3302 2014-09-29 Andi Kleen <ak@linux.intel.com>
3304 * opts.c (print_filtered_help): Print --param min/max/default
3307 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3309 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3311 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3313 * tree-vrp.c (get_single_symbol): New function.
3314 (build_symbolic_expr): Likewise.
3315 (symbolic_range_based_on_p): New predicate.
3316 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3317 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3318 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3319 operand is symbolic and based on the other operand.
3321 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3323 * config/microblaze/microblaze.md (call_internal1): Use VOID
3324 instead of SI to fix "((void (*)(void)) 0)()" issue
3326 2014-09-29 Nick Clifton <nickc@redhat.com>
3328 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3329 CLOBBER rtx for naked functions.
3330 (msp430_expand_epilogue): Likewise.
3331 (msp430_use_f5_series_hwmult): Cache result.
3332 (use_32bit_hwmult): Cache result.
3333 (msp430_no_hwmult): New function.
3334 (msp430_output_labelref): Use it.
3336 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3339 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3340 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3341 use the alignment of avar rather than ovar.
3343 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3345 * config/pa/pa.c (pa_output_function_epilogue): Only update
3346 last_address when a nonnote insn is found.
3348 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3351 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3353 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3356 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3357 fix pasto in checking array size.
3359 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3362 * passes.def (pass_tracer): Move before last dominator pass.
3364 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3366 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3368 (run_attempt): Handle errors of "pex_run" invocation.
3370 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3372 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3374 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3375 (TARGET_ASAN_SHADOW_OFFSET): Define.
3377 2014-09-26 Martin Liska <mliska@suse.cz>
3379 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3381 * cgraph.h: Likewise.
3382 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3383 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3384 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3385 * tree-ssa-alias.h: Likewise.
3387 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3388 Max Ostapenko <m.ostapenko@partner.samsung.com>
3390 * common.opt: New option.
3391 * doc/invoke.texi: Describe new option.
3392 * gcc.c (execute): Don't free first string early, but at the end
3393 of the function. Call retry_ice if compiler exited with
3395 (main): Factor out common code.
3396 (print_configuration): New function.
3397 (files_equal_p): Likewise.
3398 (check_repro): Likewise.
3399 (run_attempt): Likewise.
3400 (do_report_bug): Likewise.
3401 (append_text): Likewise.
3402 (try_generate_repro): Likewise
3404 2014-09-25 Andi Kleen <ak@linux.intel.com>
3406 * config/i386/i386.c (x86_print_call_or_nop): New function.
3407 (x86_function_profiler): Support -mnop-mcount and
3409 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3410 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3412 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3414 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3415 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3416 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3419 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3421 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3422 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3423 types_odr_comparable): Declare.
3424 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3425 * ipa-polymorphic-call.c: New file.
3426 (contains_polymorphic_type_p, possible_placement_new,
3427 ipa_polymorphic_call_context::restrict_to_inner_class,
3428 contains_type_p, decl_maybe_in_construction_p,
3429 ipa_polymorphic_call_context::stream_out,
3430 ipa_polymorphic_call_context::debug,
3431 ipa_polymorphic_call_context::stream_in,
3432 ipa_polymorphic_call_context::set_by_decl,
3433 ipa_polymorphic_call_context::set_by_invariant,
3435 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3436 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3437 extr_type_from_vtbl_ptr_store, record_known_type
3438 check_stmt_for_type_change,
3439 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3441 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3442 and streamer-hooks.h
3443 (contains_polymorphic_type_p, possible_placement_new,
3444 ipa_polymorphic_call_context::restrict_to_inner_class,
3445 contains_type_p, decl_maybe_in_construction_p,
3446 ipa_polymorphic_call_context::stream_out,
3447 ipa_polymorphic_call_context::debug,
3448 ipa_polymorphic_call_context::stream_in,
3449 ipa_polymorphic_call_context::set_by_decl,
3450 ipa_polymorphic_call_context::set_by_invariant,
3452 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3453 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3454 extr_type_from_vtbl_ptr_store, record_known_type
3455 check_stmt_for_type_change,
3456 ipa_polymorphic_call_context::get_dynamic_type): Move to
3457 ipa-polymorphic-call.c
3458 (type_all_derivations_known_p, types_odr_comparable,
3459 types_must_be_same_for_odr): Export.
3460 (type_known_to_have_no_deriavations_p): New function.
3461 * Makefile.in: Add ipa-polymorphic-call.c
3463 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3465 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3467 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3468 (possible_polymorphic_call_targets): Instead of computing both
3469 speculative and non-speculative answers, do just one at a time.
3470 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3471 (dump_targets): Break out from ...
3472 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3473 and non-speculative lists.
3474 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3475 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3477 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3479 PR rtl-optimization/63348
3480 * emit-rtl.c (try_split): Do not emit extra barrier.
3482 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3484 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3485 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3487 (aarch64_<sur>shll2_n<mode>): Likewise.
3488 (aarch64_<sur>shr_n<mode>): Likewise.
3489 (aarch64_<sur>sra_n<mode>: Likewise.
3490 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3491 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3492 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3493 * config/aarch64/iterators.md (ve_mode): New.
3494 (offsetlr): Remap to infix text for use in new predicates.
3495 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3496 (aarch64_simd_shift_imm_hi): Likewise.
3497 (aarch64_simd_shift_imm_si): Likewise.
3498 (aarch64_simd_shift_imm_di): Likewise.
3499 (aarch64_simd_shift_imm_offset_qi): Likewise.
3500 (aarch64_simd_shift_imm_offset_hi): Likewise.
3501 (aarch64_simd_shift_imm_offset_si): Likewise.
3502 (aarch64_simd_shift_imm_offset_di): Likewise.
3503 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3504 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3505 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3506 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3508 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3510 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3511 new created BB as the intersection of live-in from "old_dest" and
3514 2014-09-25 Felix Yang <felix.yang@huawei.com>
3516 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3517 * genautomata.c (merge_states): Ditto.
3519 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3522 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3523 in instruction sequence.
3525 2014-09-25 Nick Clifton <nickc@redhat.com>
3528 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3529 in instruction sequence.
3531 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3534 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3535 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3537 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3538 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3539 Anna Tikhonova <anna.tikhonova@intel.com>
3540 Ilya Tocar <ilya.tocar@intel.com>
3541 Andrey Turetskiy <andrey.turetskiy@intel.com>
3542 Ilya Verbin <ilya.verbin@intel.com>
3543 Kirill Yukhin <kirill.yukhin@intel.com>
3544 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3546 * config/i386/sse.md
3547 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3548 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3549 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3550 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3551 Use VI8F_256_512 mode iterator.
3552 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3553 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3555 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3557 Anna Tikhonova <anna.tikhonova@intel.com>
3558 Ilya Tocar <ilya.tocar@intel.com>
3559 Andrey Turetskiy <andrey.turetskiy@intel.com>
3560 Ilya Verbin <ilya.verbin@intel.com>
3561 Kirill Yukhin <kirill.yukhin@intel.com>
3562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3564 * config/i386/sse.md
3565 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3566 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3567 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3568 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3569 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3570 (define_insn "*vec_concatv2df"): Add EVEX version.
3572 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3573 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3574 Anna Tikhonova <anna.tikhonova@intel.com>
3575 Ilya Tocar <ilya.tocar@intel.com>
3576 Andrey Turetskiy <andrey.turetskiy@intel.com>
3577 Ilya Verbin <ilya.verbin@intel.com>
3578 Kirill Yukhin <kirill.yukhin@intel.com>
3579 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3581 * config/i386/sse.md
3582 (define_insn "vec_set<mode>_0"): Add EVEX version.
3584 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3585 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3586 Anna Tikhonova <anna.tikhonova@intel.com>
3587 Ilya Tocar <ilya.tocar@intel.com>
3588 Andrey Turetskiy <andrey.turetskiy@intel.com>
3589 Ilya Verbin <ilya.verbin@intel.com>
3590 Kirill Yukhin <kirill.yukhin@intel.com>
3591 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3593 * config/i386/sse.md
3595 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3597 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3598 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3599 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3600 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3601 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3602 (define_expand "sse2_cvtpd2ps_mask): New.
3603 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3604 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3606 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3608 Anna Tikhonova <anna.tikhonova@intel.com>
3609 Ilya Tocar <ilya.tocar@intel.com>
3610 Andrey Turetskiy <andrey.turetskiy@intel.com>
3611 Ilya Verbin <ilya.verbin@intel.com>
3612 Kirill Yukhin <kirill.yukhin@intel.com>
3613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3615 * config/i386/i386.c
3616 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3617 (ufix_notruncv8dfv8si2_mask_round): ... this.
3618 * config/i386/sse.md
3619 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3620 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3621 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3622 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3623 (define_expand "sse2_cvtpd2dq"): Delete.
3624 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3625 make 2nd operand const0 vector.
3626 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3628 (define_mode_attr pd2udqsuff): New.
3630 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3631 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3632 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3633 (define_expand "sse2_cvttpd2dq"): Ditto.
3634 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3635 make 2nd operand const0 vector.
3637 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3639 PR tree-optimization/63341
3640 * tree-vectorizer.h (vect_create_data_ref_ptr,
3641 vect_create_addr_base_for_vector_ref): Add another tree argument
3642 defaulting to NULL_TREE.
3643 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3644 argument, pass it down to vect_create_addr_base_for_vector_ref.
3645 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3646 add that to base_offset too if non-NULL.
3647 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3648 for dr_explicit_realign_optimized set it to vector byte size
3649 - 1 instead of setting offset, pass byte_offset down to
3650 vect_create_data_ref_ptr.
3652 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3654 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3655 forgotten debug output; canonicalize querries more wtih LTO.
3657 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3659 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3660 ipa-utils.h; add stream_int and stream_out methods.
3661 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3662 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3663 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3665 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3666 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3667 ipa_polymorphic_call_context::clear_speculation,
3668 ipa_polymorphic_call_context::clear_outer_type): Move here from
3670 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3671 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3672 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3673 ipa_polymorphic_call_context::clear_speculation,
3674 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3675 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3677 (ipa_polymorphic_call_context::stream_out): New method.
3678 (ipa_polymorphic_call_context::stream_in): New method.
3679 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3680 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3682 (ipa_analyze_call_uses): Simplify.
3683 (update_indirect_edges_after_inlining): Do not care about outer_type.
3684 (ipa_write_indirect_edge_info): Update.
3685 (ipa_write_indirect_edge_info): Likewise.
3686 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3687 (dump_edge_flags): Break out from ...
3688 (cgraph_node::dump): ... here; dump indirect edges.
3690 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3692 * ipa-utils.h (polymorphic_call_context): Add
3693 metdhos dump, debug and clear_outer_type.
3694 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3695 (ipa_polymorphic_call_context::clear_outer_type): New method.
3696 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3697 * ipa-devirt.c (types_odr_comparable): New function.
3698 (types_must_be_same_for_odr): New function.
3699 (odr_subtypes_equivalent_p): Simplify.
3700 (possible_placement_new): Break out from ...
3701 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3702 be more cuatious about returning false in cases the context may be
3703 valid in derived type or via placement new.
3704 (contains_type_p): Clear maybe_derived_type
3705 (ipa_polymorphic_call_context::dump): New method.
3706 (ipa_polymorphic_call_context::debug): New method.
3707 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3708 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3709 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3710 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3711 to suceed on all valid cases; remove confused sanity check.
3712 (dump_possible_polymorphic_call_targets): Simplify.
3714 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3716 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3717 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3718 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3719 varpool.c: Rename all instances of DECL_ABSTRACT to
3722 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3724 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3725 special handling for stores whose SET_SRC is an UNSPEC (such as
3728 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3730 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3731 !REG_P (src) to release more instruction sink opportunities.
3733 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3735 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3736 move costs for 128-bit types.
3738 2014-09-24 Martin Jambor <mjambor@suse.cz>
3740 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3741 when duplicating a PASS_THROUGH jump function when creating a
3744 2014-09-24 Marek Polacek <polacek@redhat.com>
3748 * asan.c (maybe_instrument_call): Add default case.
3749 * ipa-pure-const.c (special_builtin_state): Likewise.
3750 * predict.c (expr_expected_value_1): Likewise.
3751 * lto-streamer-out.c (write_symbol): Initialize variable.
3753 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3755 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3757 (vmuld_laneq_f64): Likewise.
3758 (vmuls_lane_f32): Likewise.
3759 (vmuls_laneq_f32): Likewise.
3761 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3764 * varpool.c (varpool_node::add): Pass decl attributes
3765 to lookup_attribute.
3767 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3770 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3772 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3774 PR tree-optimization/63266
3775 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3776 marker for unknown byte value.
3777 (MARKER_MASK): New macro.
3778 (MARKER_BYTE_UNKNOWN): New macro.
3779 (HEAD_MARKER): New macro.
3780 (do_shift_rotate): Mark bytes with unknown values due to sign
3781 extension when doing an arithmetic right shift. Replace hardcoded
3782 mask for marker by new MARKER_MASK macro.
3783 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3784 numbers accordingly.
3786 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3787 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3788 Anna Tikhonova <anna.tikhonova@intel.com>
3789 Ilya Tocar <ilya.tocar@intel.com>
3790 Andrey Turetskiy <andrey.turetskiy@intel.com>
3791 Ilya Verbin <ilya.verbin@intel.com>
3792 Kirill Yukhin <kirill.yukhin@intel.com>
3793 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3795 * config/i386/sse.md
3797 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3799 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3800 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3802 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3804 Anna Tikhonova <anna.tikhonova@intel.com>
3805 Ilya Tocar <ilya.tocar@intel.com>
3806 Andrey Turetskiy <andrey.turetskiy@intel.com>
3807 Ilya Verbin <ilya.verbin@intel.com>
3808 Kirill Yukhin <kirill.yukhin@intel.com>
3809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3811 * config/i386/sse.md
3812 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3813 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3814 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3815 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3816 (define_expand "avx512vl_pshuflw_mask"): New.
3817 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3818 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3819 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3820 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3821 (define_expand "avx512vl_pshufhw_mask"): New.
3822 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3824 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3826 Anna Tikhonova <anna.tikhonova@intel.com>
3827 Ilya Tocar <ilya.tocar@intel.com>
3828 Andrey Turetskiy <andrey.turetskiy@intel.com>
3829 Ilya Verbin <ilya.verbin@intel.com>
3830 Kirill Yukhin <kirill.yukhin@intel.com>
3831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3833 * config/i386/i386.c
3834 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3835 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3836 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3837 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3838 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3839 * config/i386/sse.md
3840 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3842 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3843 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3845 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3846 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3847 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3848 (define_expand "avx512vl_pshufd_mask"): New.
3849 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3851 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3852 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3853 Anna Tikhonova <anna.tikhonova@intel.com>
3854 Ilya Tocar <ilya.tocar@intel.com>
3855 Andrey Turetskiy <andrey.turetskiy@intel.com>
3856 Ilya Verbin <ilya.verbin@intel.com>
3857 Kirill Yukhin <kirill.yukhin@intel.com>
3858 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3860 * config/i386/i386.c
3861 (CODE_FOR_avx2_extracti128): Rename to ...
3862 (CODE_FOR_avx_vextractf128v4di): this.
3863 (CODE_FOR_avx2_inserti128): Rename to ...
3864 (CODE_FOR_avx_vinsertf128v4di): this.
3865 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3866 CODE_FOR_avx_vextractf128v4di.
3867 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3868 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3869 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3870 CODE_FOR_avx512vl_vinsertv8si.
3871 * config/i386/sse.md
3873 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3874 AVX512_VEC mode iterator.
3876 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3879 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3880 AVX512_VEC_2 mode iterator.
3881 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3882 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3883 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3884 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3885 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3886 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3887 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3888 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3889 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3890 (define_expand "avx2_extracti128"): Delete.
3891 (define_expand "avx2_inserti128"): Ditto.
3893 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3894 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3895 Anna Tikhonova <anna.tikhonova@intel.com>
3896 Ilya Tocar <ilya.tocar@intel.com>
3897 Andrey Turetskiy <andrey.turetskiy@intel.com>
3898 Ilya Verbin <ilya.verbin@intel.com>
3899 Kirill Yukhin <kirill.yukhin@intel.com>
3900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3902 * config/i386/sse.md
3903 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3904 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3905 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3906 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3907 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3908 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3909 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3910 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3911 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3912 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3913 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3914 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3915 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3917 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3919 PR rtl-optimization/63210
3920 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3921 HARD_REGNO is not available for CONFLICT_A.
3923 2014-09-23 Andi Kleen <ak@linux.intel.com>
3925 * cgraph.h (symtab_node): Add no_reorder attribute.
3926 (symbol_table::output_asm_statements): Remove.
3927 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3928 (cgraph_node::create_version_clone): Dito.
3929 (symbol_table::output_asm_statements): Remove.
3930 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3931 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3932 (output_in_order): Add no_reorder flag. Only handle no_reorder
3934 (symbol_table::compile): Add separate pass for no_reorder nodes.
3935 (process_common_attributes): Set no_reorder flag in symtab node.
3937 (process_function_and_variable_attributes): Pass symtab nodes to
3938 process_common_attributes.
3939 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3940 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3941 (lto_output_varpool_node): Dito.
3942 (input_overwrite_node): Dito.
3943 (input_varpool_node): Dito.
3944 * varpool.c (varpool_node::add): Set no_reorder attribute.
3945 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3946 (symbol_table::output_variables): Dito.
3947 * symtab.c (symtab_node::dump_base): Print no_reorder.
3949 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3951 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3954 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3956 * configure: Regenerate.
3958 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3960 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3961 when result_mode == shift_mode.
3963 2014-09-23 Kostya Serebryany <kcc@google.com>
3965 Update to match the changed asan API.
3966 * asan.c (asan_global_struct): Update the __asan_global definition
3967 to match the new API.
3968 (asan_add_global): Ditto.
3969 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3972 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3974 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3975 refine the constraints used on 32/64-bit floating point moves.
3977 (f64_vsx): Likewise.
3980 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3981 (BOOL_REGS_OP1): Likewise.
3982 (BOOL_REGS_OP2): Likewise.
3983 (BOOL_REGS_UNARY): Likewise.
3984 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3985 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3986 for moves involving VSX registers. Do not use constraints that
3987 target VSX registers for decimal types.
3988 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3989 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3991 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3993 * tree.h (int_bit_position): Turn into inline function;
3994 implement using wide int.
3995 * tree.c (int_bit_position): Remove.
3997 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
4000 * target-globals.c (target_globals::~target_globals): Fix location
4001 of ira_int destruction.
4003 2014-09-23 Renlin Li <renlin.li@arm.com>
4005 * config/aarch64/aarch64.md (return): New.
4006 (simple_return): Likewise.
4007 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4008 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4010 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
4012 * common/config/aarch64/aarch64-common.c:
4013 (default_options aarch_option_optimization_table):
4014 Default to -fsched-pressure.
4016 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
4018 * cfgcleanup.c (try_optimize_cfg): Do not remove label
4019 with LABEL_PRESERVE_P flag set.
4021 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4022 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4023 Anna Tikhonova <anna.tikhonova@intel.com>
4024 Ilya Tocar <ilya.tocar@intel.com>
4025 Andrey Turetskiy <andrey.turetskiy@intel.com>
4026 Ilya Verbin <ilya.verbin@intel.com>
4027 Kirill Yukhin <kirill.yukhin@intel.com>
4028 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4030 * config/i386/sse.md
4031 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4032 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4033 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4034 (define_insn "sse2_shufpd_v2df_mask"): New.
4036 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4037 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4038 Anna Tikhonova <anna.tikhonova@intel.com>
4039 Ilya Tocar <ilya.tocar@intel.com>
4040 Andrey Turetskiy <andrey.turetskiy@intel.com>
4041 Ilya Verbin <ilya.verbin@intel.com>
4042 Kirill Yukhin <kirill.yukhin@intel.com>
4043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4045 * config/i386/sse.md
4046 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4047 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4048 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4049 (define_insn "sse_shufps_v4sf_mask"): New.
4051 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4053 Anna Tikhonova <anna.tikhonova@intel.com>
4054 Ilya Tocar <ilya.tocar@intel.com>
4055 Andrey Turetskiy <andrey.turetskiy@intel.com>
4056 Ilya Verbin <ilya.verbin@intel.com>
4057 Kirill Yukhin <kirill.yukhin@intel.com>
4058 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4060 * config/i386/sse.md
4061 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4062 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4063 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4064 (define_insn "unpcklps128_mask"): New.
4066 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4067 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4068 Anna Tikhonova <anna.tikhonova@intel.com>
4069 Ilya Tocar <ilya.tocar@intel.com>
4070 Andrey Turetskiy <andrey.turetskiy@intel.com>
4071 Ilya Verbin <ilya.verbin@intel.com>
4072 Kirill Yukhin <kirill.yukhin@intel.com>
4073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4075 * config/i386/sse.md
4076 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4077 (define_insn "avx512vl_unpckhpd128_mask"): New.
4078 (define_expand "avx_movddup256<mask_name>"): Add masking.
4079 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4080 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4081 (define_insn "avx512vl_unpcklpd128_mask"): New.
4083 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4085 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4086 * doc/tm.texi: Regenerate.
4087 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4088 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4089 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4091 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4092 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4093 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4094 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4095 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4097 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4098 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4099 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4100 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4101 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4102 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4103 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4104 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4105 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4106 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4107 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4110 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
4112 * tree-ssa-ccp.c (prop_value_d): Rename to ...
4113 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4114 * ipa-prop.c (struct type_change_info): Rename to ...
4115 (prop_type_change_info): ... this; update uses.
4116 * ggc-page.c (globals): Rename to ...
4117 (static struct ggc_globals): ... this; update uses.
4118 * tree-ssa-loop-im.c (mem_ref): Rename to ...
4119 (im_mem_ref): ... this; update uses.
4120 * ggc-common.c (loc_descriptor): Rename to ...
4121 (ggc_loc_descriptor): ... this; update uses.
4122 * lra-eliminations.c (elim_table): Rename to ...
4123 (lra_elim_table): ... this; update uses.
4124 * bitmap.c (output_info): Rename to ...
4125 (bitmap_output_info): ... this; update uses.
4126 * gcse.c (expr): Rename to ...
4127 (gcse_expr) ... this; update uses.
4128 (occr): Rename to ...
4129 (gcse_occr): .. this; update uses.
4130 * tree-ssa-copy.c (prop_value_d): Rename to ...
4131 (prop_value_t): ... this.
4132 * predict.c (block_info_def): Rename to ...
4133 (block_info): ... this; update uses.
4134 (edge_info_def): Rename to ...
4135 (edge_info): ... this; update uses.
4136 * profile.c (bb_info): Rename to ...
4137 (bb_profile_info): ... this; update uses.
4138 * alloc-pool.c (output_info): Rename to ...
4139 (pool_output_info): ... this; update uses.
4140 * ipa-cp.c (topo_info): Rename to ..
4141 (ipa_topo_info): ... this; update uses.
4142 * tree-nrv.c (nrv_data): Rename to ...
4143 (nrv_data_t): ... this; update uses.
4144 * ipa-split.c (bb_info): Rename to ...
4145 (split_bb_info): ... this one.
4146 * profile.h (edge_info): Rename to ...
4147 (edge_profile_info): ... this one; update uses.
4148 * dse.c (bb_info): Rename to ...
4149 (dse_bb_info): ... this one; update uses.
4150 * cprop.c (occr): Rename to ...
4151 (cprop_occr): ... this one; update uses.
4152 (expr): Rename to ...
4153 (cprop_expr): ... this one; update uses.
4155 2014-09-22 Jason Merrill <jason@redhat.com>
4157 * Makefile.in (check-parallel-%): Add @.
4159 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4161 * config/aarch64/geniterators.sh: New.
4162 * config/aarch64/iterators.md (VDQF_DF): New.
4163 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4164 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4166 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4168 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4169 -lnosys when -msim absent.
4171 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4173 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4175 2014-09-22 Richard Biener <rguenther@suse.de>
4177 * gimplify.c (gimplify_init_constructor): Do not leave
4178 non-GIMPLE vector constructors around.
4179 * tree-cfg.c (verify_gimple_assign_single): Verify that
4180 CONSTRUCTORs have gimple elements.
4182 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4185 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4186 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4187 instead of a normal gimple assignment stmt.
4189 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4191 * config/bfin/bfin.md: Fix use of constraints in define_split.
4193 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4195 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4196 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4198 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4200 * hard-reg-set.h: Include hash-table.h.
4201 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4203 * target-globals.c (target_globals::~target_globals): Call
4204 hard_regs->finalize.
4205 * rtl.h (subreg_shape): New structure.
4206 (shape_of_subreg): New function.
4207 (simplifiable_subregs): Declare.
4208 * reginfo.c (simplifiable_subreg): New structure.
4209 (simplifiable_subregs_hasher): Likewise.
4210 (simplifiable_subregs): New function.
4211 (invalid_mode_changes): Delete.
4212 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4213 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4214 Record valid mode changes in valid_mode_changes.
4215 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4216 Update calls to record_subregs_of_mode.
4217 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4218 handling. Initialize new variables. Update call to
4219 find_subregs_of_mode.
4220 (invalid_mode_change_p): Check new variables instead of
4221 invalid_mode_changes.
4222 (finish_subregs_of_mode): Finalize new variables instead of
4223 invalid_mode_changes.
4224 (target_hard_regs::finalize): New function.
4225 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4226 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4228 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4230 * combine.c (subst): Use simplify_subreg_regno rather than
4231 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4233 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4235 * rtl.h (subreg_info): Expand commentary
4236 * rtlanal.c (subreg_get_info): Likewise.
4238 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4240 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4241 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4242 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4244 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4246 * config/arm/arm.c: #include "tm-constrs.h"
4247 (thumb1_size_rtx_costs): Adjust rtx costs.
4249 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4251 * configure.ac (target_header_dir): Move block defining
4252 this to before the block setting inhibit_libc.
4253 (inhibit_libc): When considering $with_headers, just
4254 check it it's explicitly "no". If not, also check if
4255 $target_header_dir/stdio.h is present. If not, set
4257 * configure: Regenerate.
4259 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4261 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4263 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4265 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4266 insn for divides by integer powers of two.
4267 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4268 (mod<mode>3): Fix formatting.
4269 (three anonymous define_insn and two define_split): Delete.
4271 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4273 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4274 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4275 (floatdisf2_internal2): Ditto.
4276 (ashrdi3_no_power): Ditto. Fix formatting.
4278 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4280 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4281 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4284 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4286 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4287 constant, use addsi3 directly.
4288 (three anonymous define_insn, two define_split): Delete.
4289 (sub<mode>3): Move. Do not allow constant second operand.
4290 Generate different insn for constant first operand.
4291 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4292 (subf<mode>3_imm): New.
4293 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4294 (*plus_ltu<mode>): Only handle registers.
4295 (*plus_ltu<mode>_1): New. Handle integer third operand.
4296 (*plus_gtu<mode>): Only handle registers.
4297 (*plus_gtu<mode>_1): New. Handle integer third operand.
4299 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4301 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4302 (iorxor): New code_attr.
4303 (IORXOR): New code_attr.
4304 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4305 (ior<mode>3, xor<mode>3): Delete.
4306 (<iorxor><mode>3): New.
4307 (splitter for "big" integer ior, xor): New.
4308 (*bool<mode>3): Move. Also handle AND.
4309 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4310 (splitter for "big" integer ior, xor): Delete.
4312 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4314 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4315 (two anonymous define_insn and two define_split): Delete.
4316 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4318 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4320 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4321 (two anonymous define_insn and two define_split): Delete.
4322 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4324 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4326 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4328 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4330 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4331 (input_operand): Do not allow ca_operand.
4332 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4333 carry bit, allow SImode and Pmode.
4334 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4336 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4338 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4339 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4340 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4341 (*call_rex64_ms_sysv): Remove.
4342 (*call_value_rex64_ms_sysv): Ditto.
4343 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4345 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4347 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4350 2014-09-20 Andreas Schwab <schwab@suse.de>
4352 * config/ia64/ia64.md: Remove constraints from define_split
4355 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4357 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4358 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4359 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4360 (get_dynamic_type): Remove.
4361 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4362 (clear_speculation): Bring to ipa-deivrt.h
4363 (get_class_context): Rename to ...
4364 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4365 (contains_type_p): Update.
4366 (get_dynamic_type): Rename to ...
4367 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4368 (possible_polymorphic_call_targets): UPdate.
4369 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4370 * ipa-prop.c (ipa_analyze_call_uses): Update.
4372 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4374 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4375 privatize dynamic TLS variables.
4377 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4379 * diagnostic.c (warning_n): New function.
4380 * diagnostic-core.h (warning_n): Declare.
4381 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4382 output dynamic counts when available.
4384 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4386 PR tree-optimization/63255
4387 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4388 issue in setting body_removed flag.
4390 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4393 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4394 that visibility change is possible
4395 (handle_weakref_attribute): Likewise.
4396 * cgraph.h (symtab_node): Add method get_create and
4397 field refuse_visibility_changes.
4398 (symtab_node::get_create): New method.
4399 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4400 * varasm.c (mark_weak): Verify that visibility change is
4403 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4405 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4406 for base_reg_operand to be common between LO_SUM and PLUS.
4407 (fusion_gpr_mem_combo): New predicate to match a fused address
4408 that combines the addis and memory offset address.
4410 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4412 (emit_fusion_gpr_load): Likewise.
4414 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4415 signature to pass each argument separately, rather than
4416 using an operands array. Rewrite the insns found by peephole2 to
4417 be a single insn, rather than hoping the insns will still be
4418 together when the peephole pass is done. Drop being called via a
4420 (emit_fusion_gpr_load): Change calling signature to be called from
4421 the fusion_gpr_load_<mode> insns with a combined memory address
4422 instead of the peephole pass passing the addis and offset
4425 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4427 (power8 fusion peephole): Drop support for doing power8 via a
4428 normal peephole that was created by the peephole2 pass.
4429 (power8 fusion peephole2): Create a new insn with the fused
4430 address, so that the fused operation is kept together after
4431 register allocation is done.
4432 (fusion_gpr_load_<mode>): Likewise.
4434 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4437 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4439 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4441 * recog.c (scratch_operand): Do not simply allow all hard registers:
4442 only allow those that are allocatable.
4444 2014-09-19 Felix Yang <felix.yang@huawei.com>
4446 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4447 comments and fix spacing to conform to coding style.
4449 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4451 * genrecog.c (validate_pattern): Allow empty constraints in
4454 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4456 * dwarf2out.c (decl_ultimate_origin): Update comment.
4457 * tree.c (block_ultimate_origin): Same.
4459 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4461 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4462 Update GCC version name to GCC 5.
4463 (rs6000_function_arg_boundary): Likewise.
4464 (rs6000_function_arg): Likewise.
4466 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4468 * config/sh/sh.md: Fix use of constraints in define_split.
4470 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4473 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4475 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4477 * doc/md.texi (Modifiers): Consistently use "read/write"
4478 nomenclature rather than "input/output".
4479 * genrecog.c (constraints_supported_in_insn_p): New.
4480 (validate_pattern): If needed, also check constraints on
4481 MATCH_SCRATCH operands.
4482 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4483 operands with no '=' or '+' modifier.
4485 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4487 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4488 scratch register as written.
4490 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4492 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4495 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4497 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4500 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4503 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4504 address load optimization force s390_optimize_prologue to leave it
4505 that way. Only do the optimization if we already decided to push
4506 r14 into a stack slot.
4508 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4510 * asan.c (build_check_stmt): Alignment arg was added.
4511 (asan_expand_check_ifn): Optimization for alignment >= 8.
4513 2014-09-19 Olivier Hainque <hainque@adacore.com>
4515 * config/i386/vxworksae.h: Remove obsolete definitions.
4516 (STACK_CHECK_PROTECT): Define.
4517 * config/i386/vx-common.h: Remove. Merge contents within
4518 config/i386/vxworks.h.
4519 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4522 2014-09-19 Olivier Hainque <hainque@adacore.com>
4524 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4525 * config/rs6000/t-vxworksmils: New file.
4526 * config/rs6000/vxworksmils.h: New file.
4528 2014-09-19 Olivier Hainque <hainque@adacore.com>
4530 * varasm.c (default_section_type_flags): Flag .persistent.bss
4531 sections as SECTION_BSS.
4533 2014-09-19 Nick Clifton <nickc@redhat.com>
4535 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4536 pop'ed registers so that DCE does not eliminate them.
4538 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4541 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4543 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4545 * system.h (LIBGCC2_TF_CEXT): Poison.
4546 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4547 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4548 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4549 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4550 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4551 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4552 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4553 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4554 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4556 2014-09-19 Kito Cheng <kito@0xlab.org>
4558 * except.h: Fix header guard.
4559 * addresses.h: Add missing header guard.
4560 * cfghooks.h: Likewise.
4561 * collect-utils.h: Likewise.
4562 * collect2-aix.h: Likewise.
4563 * conditions.h: Likewise.
4564 * cselib.h: Likewise.
4565 * dwarf2asm.h: Likewise.
4566 * graphds.h: Likewise.
4567 * graphite-scop-detection.h: Likewise.
4568 * gsyms.h: Likewise.
4569 * hw-doloop.h: Likewise.
4570 * incpath.h: Likewise.
4571 * ipa-inline.h: Likewise.
4572 * ipa-ref.h: Likewise.
4573 * ira-int.h: Likewise.
4575 * lra-int.h: Likewise.
4577 * lto-section-names.h: Likewise.
4578 * read-md.h: Likewise.
4579 * reload.h: Likewise.
4580 * rtl-error.h: Likewise.
4581 * sdbout.h: Likewise.
4582 * targhooks.h: Likewise.
4583 * tree-affine.h: Likewise.
4584 * xcoff.h: Likewise.
4585 * xcoffout.h: Likewise.
4587 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4590 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4593 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4596 * lra.c (lra): Call recog_init.
4598 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4601 * asan.c (transform_statements): Don't instrument clobber statements.
4603 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4605 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4606 to neon_load1_1reg<q>.
4608 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4611 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4612 if there are only debug stmts after the noreturn call, instead
4613 remove the debug stmts.
4615 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4617 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4618 (odr_types_equivalent_p): Use pair hash.
4619 (odr_subtypes_equivalent_p): Likewise, do structural compare
4620 on ODR types that may be mismatched.
4621 (warn_odr): Support warning when only one field is given.
4622 (odr_types_equivalent_p): Strenghten comparsions made;
4624 (add_type_duplicate): Update VISITED hash set.
4626 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4628 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4629 Enable selection of 'posix' or no thread model.
4631 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4633 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4634 when architecture is older than ARMv7.
4636 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4639 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4640 that fit exactly in a word or double word.
4642 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4644 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4647 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4649 Anna Tikhonova <anna.tikhonova@intel.com>
4650 Ilya Tocar <ilya.tocar@intel.com>
4651 Andrey Turetskiy <andrey.turetskiy@intel.com>
4652 Ilya Verbin <ilya.verbin@intel.com>
4653 Kirill Yukhin <kirill.yukhin@intel.com>
4654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4656 * config/i386/i386.c
4657 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4658 * config/i386/sse.md
4659 (define_mode_iterator VI48F_256): New.
4660 (define_mode_attr extract_type): Ditto.
4661 (define_mode_attr extract_suf): Ditto.
4662 (define_mode_iterator AVX512_VEC): Ditto.
4664 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4666 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4668 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4670 (define_mode_attr extract_type_2): Ditto.
4671 (define_mode_attr extract_suf_2): Ditto.
4672 (define_mode_iterator AVX512_VEC_2): Ditto.
4674 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4675 AVX512_VEC_2 mode iterator.
4676 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4677 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4678 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4679 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4680 (define_split for V16FI mode): Ditto.
4681 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4682 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4683 (define_split for VI8F_256 mode): Ditto.
4684 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4685 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4686 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4687 (define_split for VI4F_256 mode): Ditto.
4688 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4689 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4690 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4691 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4692 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4693 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4694 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4695 Update `type' attribute, remove explicit `memory' attribute calculation.
4697 2014-09-16 Kito Cheng <kito@0xlab.org>
4699 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4700 ira_spilled_reg_stack_slots_num if using lra.
4701 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4702 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4703 make sure not using lra.
4704 (ira_reuse_stack_slot): Likewise.
4705 (ira_mark_new_stack_slot): Likewise.
4707 2014-09-15 Andi Kleen <ak@linux.intel.com>
4709 * function.c (allocate_struct_function): Force
4710 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4711 profiling is disabled.
4713 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4715 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4716 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4717 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4718 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4719 macro with statically checked member functions.
4720 * rtl.h (rtx_insn::deleted): New method.
4721 (rtx_insn::set_deleted): Likewise.
4722 (rtx_insn::set_undeleted): Likewise.
4723 (INSN_DELETED_P): Remove.
4725 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4727 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4728 result of emit_jump_insn_before to a new variable.
4729 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4730 (mark_jump_label_1): Likewise.
4731 (mark_jump_label_asm): Likewise.
4732 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4733 * rtl.h (mark_jump_label): Adjust.
4735 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4737 * Makefile.in (dg_target_exps): Remove.
4738 (check_gcc_parallelize): Change to just an upper bound number.
4739 (check-%-subtargets): Always print the non-parallelized goals.
4740 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4741 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4742 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4743 check_p_numbers6): New variables.
4744 (check_p_numbers): Set to sequence from 1 to 9999.
4745 (check_p_subdirs): Set to sequence from 1 to minimum of
4746 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4748 (check-%, check-parallel-%): Rewritten so that for parallelized
4749 testing each job runs all the *.exp files, with
4750 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4752 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4754 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4756 (arc_sets_cc_p): Likewise.
4757 * config/arc/arc.c (arc_print_operand): Use methods of
4758 "final_sequence" for clarity, and to enable strengthening of
4759 locals "jump" and "delay" from rtx to rtx_insn *.
4760 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4761 rtx_insn *; use method of rtx_sequence for typesafety.
4762 (arc_get_insn_variants): Use insn method of rtx_sequence for
4764 (arc_pad_return): Likewise.
4765 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4766 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4767 dyn_cast to rtx_sequence *, using insn method for typesafety.
4768 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4769 rtx_sequence * and use insn method when invoking get_attr_length.
4770 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4771 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4772 rtx_sequence *, introducing a local "seq", using its insn method
4773 from typesafety and clarity.
4774 (add_sched_insns_for_speculation): Strengthen local "next" from
4776 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4777 (predicate_insn): Likewise.
4778 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4780 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4781 * config/epiphany/epiphany-protos.h
4782 (extern void epiphany_insert_mode_switch_use): Likewise for param
4784 (get_attr_sched_use_fpu): Likewise for param.
4785 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4786 Likewise for param "insn".
4787 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4788 param "insn" of "target_insert_mode_switch_use" callback.
4789 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4790 (frv_issues_to_branch_unit_p): Likewise.
4791 (frv_pack_insn_p): Likewise.
4792 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4793 const rtx * (i.e. mutable rtx_def * const *) to
4795 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4796 Strengthen first param from rtx to rtx_insn *.
4797 (output_fix_trunc): Likewise.
4798 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4799 (output_fix_trunc): Likewise.
4800 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4802 (min_insn_size): Likewise for param "insn".
4803 (get_mem_group): Likewise.
4805 (get_insn_path): Likewise.
4806 (get_insn_group): Likewise.
4807 (count_num_restricted): Likewise.
4808 (fits_dispatch_window): Likewise.
4809 (add_insn_window): Likewise.
4810 (add_to_dispatch_window): Likewise.
4811 (debug_insn_dispatch_info_file): Likewise.
4812 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4814 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4815 "cmp" and local "prev".
4816 (m32c_output_compare): Likewise for param "insn".
4817 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4818 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4819 (define_predicate "large_insn_p"): Likewise.
4820 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4821 param from rtx to rtx_insn *.
4822 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4823 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4824 (m68k_sched_attr_size): Likewise.
4825 (sched_get_opxy_mem_type): Likewise for param "insn".
4826 (m68k_sched_attr_op_mem): Likewise.
4827 (sched_mem_operand_p): Likewise.
4828 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4829 * config/mep/mep.c (mep_multi_slot): Likewise.
4830 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4832 (mips_sync_loop_insns): Likewise.
4833 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4834 method of "final_sequence" for typesafety.
4835 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4837 (mips_output_sync_loop): Likewise.
4838 (mips_sync_loop_insns): Likewise.
4839 (mips_74k_agen_init): Likewise.
4840 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4842 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4843 Strengthen param "insn" from rtx to rtx_insn *.
4844 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4846 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4848 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4849 "insn". Use method of rtx_sequence for typesafety.
4850 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4852 (branch_needs_nop_p): Likewise.
4853 (use_skip_p): Likewise.
4854 (pa_insn_refs_are_delayed): Likewise.
4855 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4856 for locals "insn", "ninsn".
4857 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4859 (is_cracked_insn): Likewise.
4860 (is_branch_slot_insn): Likewise.
4861 (is_nonpipeline_insn): Likewise.
4862 (insn_terminates_group_p): Likewise.
4863 (insn_must_be_first_in_group): Likewise.
4864 (insn_must_be_last_in_group): Likewise.
4865 (force_new_group): Likewise for param "next_insn".
4866 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4868 (s390_sched_score): Likewise.
4869 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4870 (rtx sfunc_uses_reg): Likewise for sole param.
4871 * config/sh/sh.c (sh_print_operand): Use insn method of
4872 final_sequence for typesafety.
4873 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4874 Use insn method of final_sequence for typesafety.
4875 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4876 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4878 (eligible_for_return_delay): Likewise.
4879 (eligible_for_sibcall_delay): Likewise.
4880 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4881 (eligible_for_return_delay): Likewise.
4882 (eligible_for_sibcall_delay): Likewise.
4883 * config/stormy16/stormy16-protos.h
4884 (xstormy16_output_cbranch_hi): Likewise for final param.
4885 (xstormy16_output_cbranch_si): Likewise.
4886 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4887 (xstormy16_output_cbranch_si): Likewise.
4888 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4889 * config/v850/v850.c (notice_update_cc): Likewise.
4891 * final.c (get_attr_length_1): Strengthen param "insn" and param
4892 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4893 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4894 (get_attr_min_length): Likewise.
4895 (shorten_branches): Likewise for signature of locals "length_fun"
4896 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4897 from a checked cast and use its methods for clarity and to enable
4898 strengthening local "inner_insn" from rtx to rtx_insn *.
4899 * genattr.c (gen_attr): When writing out the prototypes of the
4900 various generated "get_attr_" functions, strengthen the params of
4901 the non-const functions from rtx to rtx_insn *.
4902 Similarly, strengthen the params of insn_default_length,
4903 insn_min_length, insn_variable_length_p, insn_current_length.
4904 (main): Similarly, strengthen the param of num_delay_slots,
4905 internal_dfa_insn_code, insn_default_latency, bypass_p,
4906 insn_latency, min_issue_delay, print_reservation,
4907 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4908 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4909 to hook_int_rtx_insn_unreachable.
4910 * genattrtab.c (write_attr_get): When writing out the generated
4911 "get_attr_" functions, strengthen the param "insn" from rtx to
4912 rtx_insn *, eliminating a checked cast.
4913 (make_automaton_attrs): When writing out prototypes of
4914 "internal_dfa_insn_code_", "insn_default_latency_" functions
4915 and the "internal_dfa_insn_code" and "insn_default_latency"
4916 callbacks, strengthen their params from rtx to rtx_insn *
4917 * genautomata.c (output_internal_insn_code_evaluation): When
4918 writing out code, add a checked cast from rtx to rtx_insn * when
4919 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4920 (output_dfa_insn_code_func): Strengthen param of generated
4921 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4922 (output_trans_func): Likewise for generated function
4924 (output_internal_insn_latency_func): When writing out generated
4925 function "internal_insn_latency", rename params from "insn" and
4926 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4927 locals "insn" and "insn2" as rtx_insn * with checked casts once
4928 we've proven that we're not dealing with const0_rtx.
4929 (output_insn_latency_func): Strengthen param of generated
4930 function "insn_latency" from rtx to rtx_insn *.
4931 (output_print_reservation_func): Likewise for generated function
4932 "print_reservation".
4933 (output_insn_has_dfa_reservation_p): Likewise for generated
4934 function "insn_has_dfa_reservation_p".
4935 * hooks.c (hook_int_rtx_unreachable): Rename to...
4936 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4937 from rtx to rtx_insn *.
4938 * hooks.h (hook_int_rtx_unreachable): Likewise.
4939 (extern int hook_int_rtx_insn_unreachable): Likewise.
4940 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4941 (get_attr_min_length): Likewise.
4942 * recog.c (get_enabled_alternatives): Likewise.
4943 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4944 * reorg.c (find_end_label): Introduce local rtx "pat" and
4945 strengthen local "insn" from rtx to rtx_insn *.
4946 (redundant_insn): Use insn method of "seq" rather than element for
4947 typesafety; strengthen local "control" from rtx to rtx_insn *.
4948 * resource.c (mark_referenced_resources): Add checked cast to
4949 rtx_insn * within INSN/JUMP_INSN case.
4950 (mark_set_resources): Likewise.
4951 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4954 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4956 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4957 param "label" from rtx to rtx_insn *.
4958 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4960 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4961 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4962 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4963 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4964 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4965 param from rtx to rtx_insn *.
4966 (default_loop_align_max_skip): Likewise.
4967 (default_label_align_max_skip): Likewise.
4968 (default_jump_align_max_skip): Likewise.
4969 * target.def (label_align_after_barrier_max_skip): Likewise.
4970 (loop_align_max_skip): Likewise.
4971 (label_align_max_skip): Likewise.
4972 (jump_align_max_skip): Likewise.
4973 * targhooks.h (default_label_align_after_barrier_max_skip):
4975 (default_loop_align_max_skip): Likewise.
4976 (default_label_align_max_skip): Likewise.
4977 (default_jump_align_max_skip): Likewise.
4979 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4981 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4982 from const_rtx to const rtx_insn *. Update union members from rtx
4984 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4985 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4986 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4987 strengthen both params from const_rtx to const rtx_insn *.
4988 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4989 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4990 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4992 * target.def (can_follow_jump): Strengthen both params from
4993 const_rtx to const rtx_insn *, and update default implementation
4994 from hook_bool_const_rtx_const_rtx_true to
4995 hook_bool_const_rtx_insn_const_rtx_insn_true.
4997 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4999 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5000 "insn" from rtx to rtx_insn *.
5001 * sched-int.h (deps_start_bb): Likewise for 2nd param.
5003 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5005 Anna Tikhonova <anna.tikhonova@intel.com>
5006 Ilya Tocar <ilya.tocar@intel.com>
5007 Andrey Turetskiy <andrey.turetskiy@intel.com>
5008 Ilya Verbin <ilya.verbin@intel.com>
5009 Kirill Yukhin <kirill.yukhin@intel.com>
5010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5012 * config/i386/sse.md
5013 (define_insn "vcvtph2ps<mask_name>"): Add masking.
5014 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5015 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5016 (define_expand "vcvtps2ph_mask"): New.
5017 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5018 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5019 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5021 2014-09-15 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 (define_mode_iterator VI248_AVX512BW_AVX512VL):
5032 (define_mode_iterator VI24_AVX512BW_1): Ditto.
5033 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5034 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5035 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5036 also for TARGET_AVX512VL.
5037 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5039 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
5041 * doc/install.texi (Options specification): add
5042 --disable-libsanitizer item.
5044 2014-09-14 James Clarke <jrtc27@jrtc27.com>
5045 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5048 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5050 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5051 kernel version check to avoid incrementing it after every major OS X
5053 (darwin_default_min_version): Avoid static memory buffer.
5055 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
5057 * tree.c (need_assembler_name_p): Store C++ type mangling only
5060 2014-09-13 Marek Polacek <polacek@redhat.com>
5062 * tree.c (protected_set_expr_location): Don't check whether T is
5065 2014-09-12 DJ Delorie <dj@redhat.com>
5067 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5068 (extend_and_shift1_hipsi2): Likewise.
5069 (extend_and_shift2_hipsi2): Likewise.
5071 2014-09-12 David Malcolm <dmalcolm@redhat.com>
5073 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5074 with NULL when dealing with an insn.
5075 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5076 from rtx to rtx_insn *.
5077 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5078 const_rtx to const rtx_insn *.
5079 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5081 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
5083 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5086 2014-09-12 Joseph Myers <joseph@codesourcery.com>
5088 * target.def (libgcc_floating_mode_supported_p): New hook.
5089 * targhooks.c (default_libgcc_floating_mode_supported_p): New
5091 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5092 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5093 (LIBGCC2_HAS_TF_MODE): Remove.
5094 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5095 * doc/tm.texi: Regenerate.
5096 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5098 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5099 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5100 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5101 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5102 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5103 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5104 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5105 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5106 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5107 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5109 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5110 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5111 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5112 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5113 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5114 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5115 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5116 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5117 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5118 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5119 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5120 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5121 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5122 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5124 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5126 (ia64_libgcc_floating_mode_supported_p): New function.
5127 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5128 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5129 (IA64_NO_LIBGCC_TFMODE): Define.
5130 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5131 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5133 (pdp11_scalar_mode_supported_p): New function.
5134 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5135 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5137 2014-09-12 Richard Biener <rguenther@suse.de>
5140 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5142 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
5144 * tree.c (integer_each_onep): New function.
5145 * tree.h (integer_each_onep): Declare it.
5146 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5147 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5148 (X & 1) == 0 for vector and complex.
5150 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5152 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5154 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
5155 cost to spilling from integer to FP registers.
5157 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5159 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5161 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5162 are now handled correctly.
5164 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5166 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5167 handling of CALLER_SAVE_REGS and POINTER_REGS.
5169 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5171 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5172 the number of hard registers.
5174 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5175 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5176 Anna Tikhonova <anna.tikhonova@intel.com>
5177 Ilya Tocar <ilya.tocar@intel.com>
5178 Andrey Turetskiy <andrey.turetskiy@intel.com>
5179 Ilya Verbin <ilya.verbin@intel.com>
5180 Kirill Yukhin <kirill.yukhin@intel.com>
5181 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5183 * config/i386/sse.md
5184 (define_mode_iterator VI48_AVX512VL): New.
5185 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5186 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5187 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5188 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5189 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5190 "avx512f_vternlog<mode>_mask" and update mode iterator.
5191 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5192 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5194 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5195 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5196 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5197 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5198 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5199 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5201 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5203 Anna Tikhonova <anna.tikhonova@intel.com>
5204 Ilya Tocar <ilya.tocar@intel.com>
5205 Andrey Turetskiy <andrey.turetskiy@intel.com>
5206 Ilya Verbin <ilya.verbin@intel.com>
5207 Kirill Yukhin <kirill.yukhin@intel.com>
5208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5210 * config/i386/sse.md (VI128_256): Delete.
5211 (define_mode_iterator VI124_256): New.
5212 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5213 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5214 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5215 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5216 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5217 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5218 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5219 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5221 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5222 in presence of AVX-512.
5224 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5225 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5226 Anna Tikhonova <anna.tikhonova@intel.com>
5227 Ilya Tocar <ilya.tocar@intel.com>
5228 Andrey Turetskiy <andrey.turetskiy@intel.com>
5229 Ilya Verbin <ilya.verbin@intel.com>
5230 Kirill Yukhin <kirill.yukhin@intel.com>
5231 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5233 * config/i386/sse.md
5234 (define_expand "<avx512>_gathersi<mode>"): Rename from
5235 "avx512f_gathersi<mode>".
5236 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5237 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5238 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5239 "avx512f_gatherdi<mode>".
5240 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5241 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5243 (define_expand "<avx512>_scattersi<mode>"): Rename from
5244 "avx512f_scattersi<mode>".
5245 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5246 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5247 "avx512f_scatterdi<mode>".
5248 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5250 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5252 * ira.h (ira_finish_once): Delete.
5253 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5254 (target_ira_int::free_ira_costs): Likewise.
5255 (target_ira_int::free_register_move_costs): Likewise.
5256 (ira_finish_costs_once): Delete.
5257 * ira.c (free_register_move_costs): Replace with...
5258 (target_ira_int::free_register_move_costs): ...this new function.
5259 (target_ira_int::~target_ira_int): Define.
5260 (ira_init): Call free_register_move_costs as a member function rather
5261 than a global function.
5262 (ira_finish_once): Delete.
5263 * ira-costs.c (free_ira_costs): Replace with...
5264 (target_ira_int::free_ira_costs): ...this new function.
5265 (ira_init_costs): Call free_ira_costs as a member function rather
5266 than a global function.
5267 (ira_finish_costs_once): Delete.
5268 * target-globals.c (target_globals::~target_globals): Call the
5269 target_ira_int destructor.
5270 * toplev.c: Include lra.h.
5271 (finalize): Call lra_finish_once rather than ira_finish_once.
5273 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5275 * common.opt (flto-odr-type-merging): New flag.
5276 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5277 (types_same_for_odr): Likewise.
5278 (odr_subtypes_equivalent_p): Likewise.
5279 (add_type_duplicate): Do not walk type variants.
5280 (register_odr_type): New function.
5281 * ipa-utils.h (register_odr_type): Declare.
5282 (odr_type_p): New function.
5283 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5285 * doc/invoke.texi (-flto-odr-type-merging): Document.
5286 * tree.c (need_assembler_name_p): Compute ODR names when asked
5288 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5290 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5293 * config/i386/i386.c (ix86_option_override_internal): Also turn
5294 off OPTION_MASK_ABI_X32 for -m16.
5296 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5298 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5301 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5304 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5305 Directly forward to __*_DENORM_MIN__.
5307 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5309 * rtl.h (LABEL_REF_LABEL): New macro.
5311 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5312 of XEXP (, 0), where we know that we have a LABEL_REF.
5313 * cfgbuild.c (make_edges): Likewise.
5314 (purge_dead_tablejump_edges): Likewise.
5315 * cfgexpand.c (convert_debug_memory_address): Likewise.
5316 * cfgrtl.c (patch_jump_insn): Likewise.
5317 * combine.c (distribute_notes): Likewise.
5318 * cse.c (hash_rtx_cb): Likewise.
5319 (exp_equiv_p): Likewise.
5320 (fold_rtx): Likewise.
5321 (check_for_label_ref): Likewise.
5322 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5323 (cselib_hash_rtx): Likewise.
5324 * emit-rtl.c (mark_label_nuses): Likewise.
5325 * explow.c (convert_memory_address_addr_space): Likewise.
5326 * final.c (output_asm_label): Likewise.
5327 (output_addr_const): Likewise.
5328 * gcse.c (add_label_notes): Likewise.
5329 * genconfig.c (walk_insn_part): Likewise.
5330 * genrecog.c (validate_pattern): Likewise.
5331 * ifcvt.c (cond_exec_get_condition): Likewise.
5332 (noce_emit_store_flag): Likewise.
5333 (noce_get_alt_condition): Likewise.
5334 (noce_get_condition): Likewise.
5335 * jump.c (maybe_propagate_label_ref): Likewise.
5336 (mark_jump_label_1): Likewise.
5337 (redirect_exp_1): Likewise.
5338 (rtx_renumbered_equal_p): Likewise.
5339 * lra-constraints.c (operands_match_p): Likewise.
5340 * reload.c (operands_match_p): Likewise.
5341 (find_reloads): Likewise.
5342 * reload1.c (set_label_offsets): Likewise.
5343 * reorg.c (get_branch_condition): Likewise.
5344 * rtl.c (rtx_equal_p_cb): Likewise.
5345 (rtx_equal_p): Likewise.
5346 * rtlanal.c (reg_mentioned_p): Likewise.
5347 (rtx_referenced_p): Likewise.
5348 (get_condition): Likewise.
5349 * sched-vis.c (print_value): Likewise.
5350 * varasm.c (const_hash_1): Likewise.
5351 (compare_constant): Likewise.
5352 (const_rtx_hash_1): Likewise.
5353 (output_constant_pool_1): Likewise.
5355 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5357 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5358 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5360 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5361 cr6_test_for_lt_reverse): Ditto.
5363 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5366 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5368 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5370 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5371 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5372 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5373 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5376 (aarch64_fold_builtin): Remove all reinterpret cases.
5378 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5380 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5382 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5383 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5384 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5385 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5386 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5387 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5388 aarch64_reinterpretv2df<mode>): Delete.
5390 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5392 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5393 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5394 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5395 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5396 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5397 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5398 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5399 vreinterpret_u32_f64): Use cast.
5401 * config/aarch64/iterators.md (VD_RE): Delete.
5403 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5405 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5406 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5407 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5408 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5409 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5410 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5411 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5412 Replace inline assembler with __aarch64_vset_lane_any.
5414 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5416 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5418 (vmull_high_lane_s32): Likewise.
5419 (vmull_high_lane_u16): Likewise.
5420 (vmull_high_lane_u32): Likewise.
5422 2014-09-11 Jason Merrill <jason@redhat.com>
5425 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5427 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5430 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5431 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5432 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5434 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5436 Anna Tikhonova <anna.tikhonova@intel.com>
5437 Ilya Tocar <ilya.tocar@intel.com>
5438 Andrey Turetskiy <andrey.turetskiy@intel.com>
5439 Ilya Verbin <ilya.verbin@intel.com>
5440 Kirill Yukhin <kirill.yukhin@intel.com>
5441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5443 * config/i386/sse.md
5444 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5445 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5446 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5448 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5449 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5451 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5453 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5454 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5455 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5456 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5457 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5458 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5459 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5460 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5462 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5464 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5465 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5466 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5468 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5470 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5471 to access removed nodes.
5473 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5475 PR tree-optimization/63186
5476 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5477 (mark_nonssa_use): Likewise.
5478 (verify_non_ssa_vars): Verify all header blocks for label
5481 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5482 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5483 Anna Tikhonova <anna.tikhonova@intel.com>
5484 Ilya Tocar <ilya.tocar@intel.com>
5485 Andrey Turetskiy <andrey.turetskiy@intel.com>
5486 Ilya Verbin <ilya.verbin@intel.com>
5487 Kirill Yukhin <kirill.yukhin@intel.com>
5488 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5490 * config/i386/sse.md
5491 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5492 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5493 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5494 "<avx2_avx512f>_permvar<mode><mask_name>".
5495 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5496 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5497 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5498 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5500 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5501 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5502 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5503 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5505 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5507 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5508 V2DF, V4SF, DF, and DI modes.
5509 (vsx_fmav2df2): Likewise.
5510 (vsx_float_fix_<mode>2): Likewise.
5511 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5513 2014-09-10 Xinliang David Li <davidxl@google.com>
5516 * config/arm/arm.md (movcond_addsi): Handle case where source
5517 and target operands are the same.
5519 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5521 * final.c (this_is_asm_operands): Strengthen this variable from
5522 rtx to const rtx_insn *.
5523 * output.h (this_is_asm_operands): Likewise.
5524 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5525 const_rtx to const rtx_insn *.
5526 (diagnostic_for_asm): Likewise.
5527 * rtl-error.h (error_for_asm): Likewise.
5528 (warning_for_asm): Likewise.
5530 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5532 * genextract.c (print_header): When writing out insn_extract to
5533 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5534 * recog.h (insn_extract): Strengthen the param from rtx to
5537 2014-09-10 Mike Stump <mikestump@comcast.net>
5539 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5542 2014-09-10 Martin Jambor <mjambor@suse.cz>
5544 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5545 (analyze): Do not set analyze flag if expand_thunk returns false;.
5546 (create_wrapper): Likewise.
5547 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5549 2014-09-10 Martin Jambor <mjambor@suse.cz>
5552 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5553 new decl properly. Analyze the new thunk if it is expanded.
5555 2014-09-10 Andreas Schwab <schwab@suse.de>
5557 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5558 [USED_FOR_TARGET]: Define.
5560 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5562 * config/mips/mips.c (mips_secondary_reload_class): Handle
5565 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5567 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5570 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5572 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5573 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5574 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5575 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5576 flag_delete_null_pointer_checks for them.
5577 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5578 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5579 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5580 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5581 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5583 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5584 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5585 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5586 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5587 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5588 -fsanitize=returns-nonnull-attribute): Document.
5590 * ubsan.h (struct ubsan_mismatch_data): Removed.
5591 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5592 * ubsan.c (ubsan_source_location): For unknown locations,
5593 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5594 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5595 Allow more than one location and arbitrary extra arguments passed
5596 in ... instead of through MISMATCH pointer.
5597 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5598 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5599 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5602 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5603 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5604 Anna Tikhonova <anna.tikhonova@intel.com>
5605 Ilya Tocar <ilya.tocar@intel.com>
5606 Andrey Turetskiy <andrey.turetskiy@intel.com>
5607 Ilya Verbin <ilya.verbin@intel.com>
5608 Kirill Yukhin <kirill.yukhin@intel.com>
5609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5611 * config/i386/sse.md
5612 (define_mode_iterator VI48F): New.
5613 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5614 "avx512f_compress<mode>_mask" and update mode iterator.
5615 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5616 "avx512f_compressstore<mode>_mask" and update mode iterator.
5617 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5618 "avx512f_expand<mode>_maskz" and update mode iterator.
5619 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5620 "avx512f_expand<mode>_mask" and update mode iterator.
5622 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5624 Anna Tikhonova <anna.tikhonova@intel.com>
5625 Ilya Tocar <ilya.tocar@intel.com>
5626 Andrey Turetskiy <andrey.turetskiy@intel.com>
5627 Ilya Verbin <ilya.verbin@intel.com>
5628 Kirill Yukhin <kirill.yukhin@intel.com>
5629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5631 * config/i386/i386.c
5632 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5633 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5634 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5635 avx512dq_rangepv4sf_mask.
5636 * config/i386/sse.md
5637 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5639 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5640 (define_insn "reduces<mode>"): Ditto.
5641 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5643 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5644 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5645 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5647 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5649 Anna Tikhonova <anna.tikhonova@intel.com>
5650 Ilya Tocar <ilya.tocar@intel.com>
5651 Andrey Turetskiy <andrey.turetskiy@intel.com>
5652 Ilya Verbin <ilya.verbin@intel.com>
5653 Kirill Yukhin <kirill.yukhin@intel.com>
5654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5656 * config/i386/i386.c
5657 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5658 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5659 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5660 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5661 avx512vl_getmantv2df_mask.
5662 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5663 avx512f_vgetmantv4sf_round.
5664 * config/i386/sse.md
5665 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5666 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5668 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5669 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5670 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5671 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5673 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5674 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5675 update mode iterator.
5677 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5678 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5681 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5682 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5683 update mode iterator.
5684 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5685 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5688 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5689 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5691 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5692 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5693 update mode iterator.
5694 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5695 "avx512f_getmant<mode><round_saeonly_name>".
5697 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5700 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5702 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5704 Anna Tikhonova <anna.tikhonova@intel.com>
5705 Ilya Tocar <ilya.tocar@intel.com>
5706 Andrey Turetskiy <andrey.turetskiy@intel.com>
5707 Ilya Verbin <ilya.verbin@intel.com>
5708 Kirill Yukhin <kirill.yukhin@intel.com>
5709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5711 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5712 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5713 (define_mode_iterator FMAMODE_AVX512): New.
5714 (define_mode_iterator FMAMODE): Remove conditions.
5715 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5716 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5717 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5719 (define_mode_iterator FMAMODE_NOVF512): Remove.
5720 (define_insn "*fma_fmadd_<mode>"): Rename from
5721 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5722 FMAMODE mode iterator.
5723 (define_mode_iterator VF_SF_AVX512VL): New.
5724 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5725 Use VF_SF_AVX512VL mode iterator.
5726 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5727 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5729 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5730 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5732 (define_insn "*fma_fmsub_<mode>"): Rename from
5733 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5734 FMAMODE mode iterator.
5735 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5736 Use VF_SF_AVX512VL mode iterator.
5737 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5738 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5740 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5741 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5743 (define_insn "*fma_fnmadd_<mode>"): Rename from
5744 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5745 use FMAMODE mode iterator.
5746 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5747 Use VF_SF_AVX512VL mode iterator.
5748 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5749 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5751 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5752 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5754 (define_insn "*fma_fnmsub_<mode>"): Rename from
5755 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5756 FMAMODE mode iterator.
5757 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5758 Use VF_SF_AVX512VL mode iterator.
5759 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5760 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5762 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5763 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5765 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5766 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5767 use VF_AVX512VL mode iterator.
5768 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5769 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5771 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5772 Use VF_SF_AVX512VL mode iterator.
5773 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5774 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5776 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5777 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5779 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5780 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5781 remove usage of subst.
5782 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5783 Use VF_SF_AVX512VL mode iterator.
5784 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5785 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5787 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5788 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5791 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5794 * calls.c (precompute_arguments): Check
5795 promoted_for_signed_and_unsigned_p and set the promoted mode.
5796 (promoted_for_signed_and_unsigned_p): New function.
5797 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5798 and set the promoted mode.
5799 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5800 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5801 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5803 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5805 * opth-gen.awk: Generate mapping from cpp message reasons to the
5806 options that enable them.
5807 * doc/options.texi (CppReason): Document.
5809 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5811 * doc/invoke.texi (Wnormalized=): Update.
5813 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5816 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5817 operands. Split off the constant operand alternative to ...
5818 (*bool<mode>3_imm): New.
5820 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5822 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5823 const rtx_insn *, and move prototype to above...
5824 (single_set): ...this. Convert this from a macro to an inline
5825 function, enforcing the requirement that the param is a const
5827 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5829 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5830 Strengthen both params from rtx to rtx_insn *.
5831 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5832 Likewise; introduce locals "producer_set", "consumer_set", using
5833 them in place of "producer" and "consumer" when dealing with SET
5835 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5836 when invoking single_set in region guarded by INSN_P.
5837 (avr_out_bitop): Likewise.
5838 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5839 region guarded by GET_CODE check, using methods to strengthen
5840 local "this_insn" from rtx to rtx_insn *, and for clarity.
5841 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5842 Strengthen local "insn" from rtx to rtx_insn *.
5843 (define_insn_and_split "xload<mode>_A"): Likewise.
5844 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5846 (find_load): Likewise for return type.
5847 (workaround_speculation): Likewise for both locals named
5849 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5851 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5853 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5855 * config/h8300/h8300.c (notice_update_cc): Likewise.
5856 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5857 "insn" and "dep_insn".
5858 (exact_store_load_dependency): Likewise for both params.
5859 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5860 since this now clashes with inline function. Instead, delay
5861 calling single_set until the point where its needed, and then
5862 assign the result to "compare_set" and rework the conditional that
5864 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5865 local "last" from rtx to rtx_insn *.
5866 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5868 (mips_store_data_bypass_p): Likewise for both params.
5869 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5871 (mips_store_data_bypass_p): Likewise for both params.
5872 (mips_orphaned_high_part_p): Likewise for param "insn".
5873 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5874 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5875 Introduce local rtx "insn2_pat".
5876 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5878 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5879 Introduce local rtx "set", using it in place of "insn" for the
5880 result of single_set. This appears to fix a bug, since the call
5881 to find_regno_note on a SET does nothing.
5882 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5883 params from rtx to rtx_insn *.
5884 (set_to_load_agen): Likewise.
5885 * config/s390/s390.c (s390_label_align): Likewise for local
5886 "prev_insn". Introduce new rtx locals "set" and "src", using
5887 them in place of "prev_insn" for the results of single_set
5888 and SET_SRC respectively.
5889 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5890 Introduce new rtx local "set" using in place of "jump" for the
5891 result of single_set. Use SET_SRC (set) rather than plain
5893 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5895 (noncall_uses_reg): Likewise.
5896 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5897 guarded by GET_CODE check, using its methods for clarity, and to
5898 enable strengthening local "this_insn" from rtx to rtx_insn *.
5899 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5900 "insn" from rtx to rtx_insn *.
5901 (define_expand "umulhisi3"): Likewise.
5902 (define_expand "smulsi3_highpart"): Likewise.
5903 (define_expand "umulsi3_highpart"): Likewise.
5904 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5905 local "after". Replace GET_CODE check with a dyn_cast,
5906 introducing new local rtx_sequence * "seq", using insn method for
5909 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5910 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5911 place of "insn" once we're dealing with patterns rather than the
5913 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5914 (scan_trace): Likewise for local "elt", updating lookups within
5915 sequence to use insn method rather than element method.
5916 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5918 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5919 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5920 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5921 invoking single_set.
5922 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5923 "insn" from rtx to rtx_insn *.
5924 (skip_usage_debug_insns): Likewise for return type, adding a
5926 (check_secondary_memory_needed_p): Likewise for local "insn".
5927 (inherit_reload_reg): Likewise.
5928 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5929 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5931 (store_data_bypass_p): Likewise for both params.
5932 (if_test_bypass_p): Likewise.
5933 * recog.h (store_data_bypass_p): Likewise for both params.
5934 (if_test_bypass_p): Likewise.
5935 * reload.c (find_equiv_reg): Likewise for local "where".
5936 * reorg.c (delete_jump): Likewise for param "insn".
5937 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5938 to const rtx_insn *.
5939 * store-motion.c (replace_store_insn): Likewise for param "del".
5940 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5941 and use its methods for clarity, and to strengthen local "del"
5942 from rtx to rtx_insn *.
5943 (build_store_vectors): Use insn method of "st" when calling
5944 replace_store_insn for typesafety and clarity.
5946 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5948 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5949 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5950 on how to make it legal in future.
5952 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5954 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5956 (restinsn): Likewise.
5957 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5959 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5961 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5963 (arc_hazard): Likewise for both params.
5964 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5965 checked casts to rtx_sequence * and uses of the insn method for
5967 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5968 (arc_adjust_insn_length): Likewise for param "insn".
5969 (struct insn_length_parameters_s): Likewise for first param of
5970 "get_variants" callback field.
5971 (arc_get_insn_variants): Likewise for first param and local
5972 "inner". Replace a check of GET_CODE with a dyn_cast to
5973 rtx_sequence *, using methods for type-safety and clarity.
5974 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5975 rtx_sequence * and uses of the insn method for type-safety when
5976 invoking arc_adjust_insn_length.
5977 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5979 (arm_address_offset_is_imm): Likewise.
5980 (struct tune_params): Likewise for params 1 and 3 of the
5981 "sched_adjust_cost" callback field.
5982 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5983 params 1 and 3 ("insn" and "dep").
5984 (xscale_sched_adjust_cost): Likewise.
5985 (fa726te_sched_adjust_cost): Likewise.
5986 (cortexa7_older_only): Likewise for param "insn".
5987 (cortexa7_younger): Likewise.
5988 (arm_attr_length_move_neon): Likewise.
5989 (arm_address_offset_is_imm): Likewise.
5990 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5991 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5992 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5993 (workaround_speculation): Likewise for local "last_condjump".
5994 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5995 (shadow_or_blockage_p): Likewise.
5996 (get_unit_reqs): Likewise.
5997 (get_unit_operand_masks): Likewise.
5998 (c6x_registers_update): Likewise.
5999 (returning_call_p): Likewise.
6000 (can_use_callp): Likewise.
6001 (convert_to_callp): Likewise.
6002 (find_last_same_clock): Likwise for local "t".
6003 (reorg_split_calls): Likewise for local "shadow".
6004 (hwloop_pattern_reg): Likewise for param "insn".
6005 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6006 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6007 (frv_extract_membar): Likewise.
6008 (frv_optimize_membar_local): Strengthen param "last_membar" from
6009 rtx * to rtx_insn **.
6010 (frv_optimize_membar_global): Strengthen param "membar" from rtx
6012 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6014 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6015 both params from rtx to rtx_insn *.
6016 (ia64_ld_address_bypass_p): Likewise.
6017 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6019 (ia64_safe_type): Likewise.
6020 (group_barrier_needed): Likewise.
6021 (safe_group_barrier_needed): Likewise.
6022 (ia64_single_set): Likewise.
6023 (is_load_p): Likewise.
6024 (record_memory_reference): Likewise.
6025 (get_mode_no_for_insn): Likewise.
6026 (important_for_bundling_p): Likewise.
6027 (unknown_for_bundling_p): Likewise.
6028 (ia64_st_address_bypass_p): Likewise for both params.
6029 (ia64_ld_address_bypass_p): Likewise.
6030 (expand_vselect): Introduce new local rtx_insn * "insn", using it
6031 in place of rtx "x" after the emit_insn call.
6032 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6033 Strengthen param from rtx to rtx_insn *.
6034 (ix86_agi_dependent): Likewise for both params.
6035 (ix86_attr_length_immediate_default): Likewise for param 1.
6036 (ix86_attr_length_address_default): Likewise for param.
6037 (ix86_attr_length_vex_default): Likewise for param 1.
6038 * config/i386/i386.c (ix86_attr_length_immediate_default):
6039 Likewise for param "insn".
6040 (ix86_attr_length_address_default): Likewise.
6041 (ix86_attr_length_vex_default): Likewise.
6042 (ix86_agi_dependent): Likewise for both params.
6043 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6044 (vselect_insn): Likewise for this variable.
6045 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6047 (m68k_sched_attr_opy_type): Likewise.
6048 * config/m68k/m68k.c (sched_get_operand): Likewise.
6049 (sched_attr_op_type): Likewise.
6050 (m68k_sched_attr_opx_type): Likewise.
6051 (m68k_sched_attr_opy_type): Likewise.
6052 (sched_get_reg_operand): Likewise.
6053 (sched_get_mem_operand): Likewise.
6054 (m68k_sched_address_bypass_p): Likewise for both params.
6055 (sched_get_indexed_address_scale): Likewise.
6056 (m68k_sched_indexed_address_bypass_p): Likewise.
6057 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6058 (m68k_sched_indexed_address_bypass_p): Likewise.
6059 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6060 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6062 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6063 params from rtx to rtx_insn *.
6064 (mips_fmadd_bypass): Likewise.
6065 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6066 (mips_linked_madd_p): Likewise.
6067 (mips_macc_chains_last_hilo): Likewise for this variable.
6068 (mips_macc_chains_record): Likewise for param.
6069 (vr4130_last_insn): Likewise for this variable.
6070 (vr4130_swap_insns_p): Likewise for both params.
6071 (mips_ls2_variable_issue): Likewise for param.
6072 (mips_need_noat_wrapper_p): Likewise for param "insn".
6073 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6074 in place of "x" after the emit_insn.
6075 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6076 params from rtx to rtx_insn *.
6077 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6078 (pa_combine_instructions): Introduce local "par" for result of
6079 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6081 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6082 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6083 (rl78_alloc_physical_registers_op1): Likewise.
6084 (rl78_alloc_physical_registers_op2): Likewise.
6085 (rl78_alloc_physical_registers_ro1): Likewise.
6086 (rl78_alloc_physical_registers_cmp): Likewise.
6087 (rl78_alloc_physical_registers_umul): Likewise.
6088 (rl78_alloc_address_registers_macax): Likewise.
6089 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6090 * config/s390/predicates.md (execute_operation): Likewise for
6092 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6094 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6095 (addr_generation_dependency_p): Likewise for param "insn".
6096 (s390_agen_dep_p): Likewise for both params.
6097 (s390_fpload_toreg): Likewise for param "insn".
6098 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6099 * config/sh/sh.c (sh_loop_align): Likewise for param and local
6101 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6102 * config/sh/sh_treg_combine.cc
6103 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6105 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6106 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6107 "and_insn", "load", "shift".
6108 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6110 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6111 for XEXP (note, 0) of the REG_CC_SETTER note.
6112 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6113 rtx_insn *, eliminating a checked cast made redundant by this.
6114 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6116 * genattr.c (main): When writing out the prototype to
6117 const_num_delay_slots, strengthen the param from rtx to
6119 * genattrtab.c (write_const_num_delay_slots): Likewise when
6120 writing out the implementation of const_num_delay_slots.
6121 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6122 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6123 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6124 favor of new rtx locals "src" and "set" and new local rtx_insn *
6126 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6128 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6129 locals "cond", "if_then_else", "set" and new rtx_insn * locals
6131 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6132 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
6133 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
6134 the top-level scope, replacing with new more tightly-scoped rtx
6135 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6136 "new_insn", "copy_of_insn_b", and make local rtx "set" more
6138 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6140 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6142 (ira_setup_alts): Likewise for param "insn".
6143 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6144 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6146 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6147 new more-tightly scoped rtx locals "add3_insn", "insn",
6148 "add2_insn" and rtx_insn * "move_insn".
6149 * postreload-gcse.c (eliminate_partially_redundant_load): Add
6150 checked cast on result of gen_move_insn when invoking
6152 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6154 (verify_changes): Add a checked cast on "object" when invoking
6156 (extract_insn_cached): Strengthen param "insn" from rtx to
6158 (extract_constrain_insn_cached): Likewise.
6159 (extract_insn): Likewise.
6160 * recog.h (insn_invalid_p): Likewise for param 1.
6161 (recog_memoized): Likewise for param.
6162 (extract_insn): Likewise.
6163 (extract_constrain_insn_cached): Likewise.
6164 (extract_insn_cached): Likewise.
6165 * reload.c (can_reload_into): Likewise for local "test_insn".
6166 * reload.h (cleanup_subreg_operands): Likewise for param.
6167 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6168 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6169 result of emit_insn. Remove a checked cast made redundant by this
6171 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6173 * sel-sched.c (get_reg_class): Likewise.
6175 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6176 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6178 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6179 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6181 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6183 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6185 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6186 const rtx_insn *, and from rtx to rtx_insn * for the other
6188 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6189 INSN_LOCATION, since we know INSN_P holds.
6190 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6191 (insn_file): Likewise.
6192 (insn_scope): Likewise.
6193 (insn_location): Likewise.
6195 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6196 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6197 for the result of gen_load_const_gp.
6198 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6199 param from rtx to rtx_insn *.
6200 * config/rs6000/rs6000.c (output_call): Likewise.
6201 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6202 introducing a checked cast to rtx_sequence * and use of the insn
6204 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6205 from rtx to rtx_insn *.
6206 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6207 (insn_line): Likewise.
6208 (insn_file): Likewise.
6209 (insn_location): Likewise.
6210 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6211 from rtx to rtx_insn *.
6212 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6213 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6214 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6216 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6217 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6219 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6221 * combine.c (try_combine): Eliminate checked cast on result of
6223 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6224 autogenerated one by strengthening the return type and params 2 and 3
6225 from rtx to rtx_insn *, and by naming the params.
6226 * gengenrtl.c (special_rtx): Add INSN to those that are
6228 * rtl.h (gen_rtx_INSN): New prototype.
6230 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6232 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6234 (no_equiv): Likewise.
6235 (update_equiv_regs): Likewise.
6236 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6237 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6238 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6240 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6241 from rtx to rtx_insn_list *.
6242 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6243 rtx_insn_list * and use methods for clarity and typesafety.
6244 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6246 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6247 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6248 an INSN_LIST, not an insn.
6249 (reverse_equiv_p): Strengthen local "insns" from rtx to
6250 rtx_insn_list * and use methods for clarity and typesafety.
6251 (contains_reloaded_insn_p): Likewise for local "list".
6253 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6255 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6256 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6257 (arm_builtin_vectorized_function): Likewise.
6258 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6259 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6261 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6263 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6264 * builtins.h (default_target_builtins): Likewise.
6265 * gcse.h (default_target_gcse): Likewise.
6266 * target-globals.h (target_globals): Add a destructor. Convert
6267 void-pointer fields back to their real type and change from
6268 GTY((atomic)) to GTY((skip)).
6269 (restore_target_globals): Remove casts accordingly.
6270 * target-globals.c (save_target_globals): Use XCNEW rather than
6271 ggc_internal_cleared_alloc to allocate non-GC structures.
6272 Use ggc_cleared_alloc to allocate the target_globals structure
6274 (target_globals::~target_globals): Define.
6276 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6278 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6279 mnemonic instead of fldmfdd.
6280 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6281 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6282 Output vpush when address register is SP.
6283 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6284 (vfp_output_vstmd): ... This.
6285 * config/arm/vfp.md (push_multi_vfp): Update call to
6288 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6290 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6292 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6294 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6295 (*sqrtdf2_vfp): Likewise.
6296 (*cmpsf_vfp): Likewise.
6297 (*cmpsf_trap_vfp): Likewise.
6298 (*cmpdf_vfp): Likewise.
6299 (*cmpdf_trap_vfp): Likewise.
6301 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6303 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6304 (*truncdfsf2_vfp): Likewise.
6305 (*truncsisf2_vfp): Likewise.
6306 (*truncsidf2_vfp): Likewise.
6307 (fixuns_truncsfsi2): Likewise.
6308 (fixuns_truncdfsi2): Likewise.
6309 (*floatsisf2_vfp): Likewise.
6310 (*floatsidf2_vfp): Likewise.
6311 (floatunssisf2): Likewise.
6312 (floatunssidf2): Likewise.
6314 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6316 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6317 (*muldf3_vfp): Likewise.
6318 (*mulsf3negsf_vfp): Likewise.
6319 (*muldf3negdf_vfp): Likewise.
6320 (*mulsf3addsf_vfp): Likewise.
6321 (*muldf3adddf_vfp): Likewise.
6322 (*mulsf3subsf_vfp): Likewise.
6323 (*muldf3subdf_vfp): Likewise.
6324 (*mulsf3negsfaddsf_vfp): Likewise.
6325 (*fmuldf3negdfadddf_vfp): Likewise.
6326 (*mulsf3negsfsubsf_vfp): Likewise.
6327 (*muldf3negdfsubdf_vfp): Likewise.
6329 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6331 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6332 (*absdf2_vfp): Likewise.
6333 (*negsf2_vfp): Likewise.
6334 (*negdf2_vfp): Likewise.
6335 (*addsf3_vfp): Likewise.
6336 (*adddf3_vfp): Likewise.
6337 (*subsf3_vfp): Likewise.
6338 (*subdf3_vfp): Likewise.
6339 (*divsf3_vfp): Likewise.
6340 (*divdf3_vfp): Likewise.
6342 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6344 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6346 (arm_print_operand): Don't convert real values to decimal
6347 representation in default case.
6348 (fp_immediate_constant): Delete.
6349 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6350 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6352 (*thumb2_movsi_vfp): Likewise.
6353 (*movdi_vfp): Likewise.
6354 (*movdi_vfp_cortexa8): Likewise.
6355 (*movhf_vfp_neon): Likewise.
6356 (*movhf_vfp): Likewise.
6357 (*movsf_vfp): Likewise.
6358 (*thumb2_movsf_vfp): Likewise.
6359 (*movdf_vfp): Likewise.
6360 (*thumb2_movdf_vfp): Likewise.
6361 (*movsfcc_vfp): Likewise.
6362 (*thumb2_movsfcc_vfp): Likewise.
6363 (*movdfcc_vfp): Likewise.
6364 (*thumb2_movdfcc_vfp): Likewise.
6366 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6368 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6372 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6375 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6376 Use qualifier_immediate for last operand. Rename to...
6377 (aarch64_types_ternop_lane_qualifiers): ... This.
6378 (TYPES_QUADOP): Rename to...
6379 (TYPES_TERNOP_LANE): ... This.
6380 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6381 error. Change return of 0 to return of NULL_RTX.
6382 (aarch64_crc32_expand_builtin): Likewise.
6383 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6384 ICE when expanding unknown builtin.
6385 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6386 TERNOP_LANE qualifiers.
6387 (sqdmlsl_lane): Likewise.
6388 (sqdmlal_laneq): Likewise.
6389 (sqdmlsl_laneq): Likewise.
6390 (sqdmlal2_lane): Likewise.
6391 (sqdmlsl2_lane): Likewise.
6392 (sqdmlal2_laneq): Likewise.
6393 (sqdmlsl2_laneq): Likewise.
6395 2014-09-09 Nick Clifton <nickc@redhat.com>
6397 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6399 (S/390 and zSeries Options): Remove superfluous word from the
6400 description of the -mhotpatch option.
6402 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6404 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6405 * ira.c: #include "shrink-wrap.h"
6406 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6407 * ifcvt.c: #include "shrink-wrap.h"
6408 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6410 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6412 * common/config/picochip/picochip-common.c: Remove.
6413 * config.gcc: Remove support for picochip.
6414 * config/picochip/constraints.md: Remove.
6415 * config/picochip/dfa_space.md: Remove.
6416 * config/picochip/dfa_speed.md: Remove.
6417 * config/picochip/picochip-protos.h: Remove.
6418 * config/picochip/picochip.c: Remove.
6419 * config/picochip/picochip.h: Remove.
6420 * config/picochip/picochip.md: Remove.
6421 * config/picochip/picochip.opt: Remove.
6422 * config/picochip/predicates.md: Remove.
6423 * config/picochip/t-picochip: Remove.
6424 * doc/md.texi: Don't document picochi.
6426 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6428 * basic-block.h (control_flow_insn_p): Strengthen param from
6429 const_rtx to const rtx_insn *.
6430 * cfgbuild.c (control_flow_insn_p): Likewise.
6432 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6434 * gcse.c (modify_mem_list): Strengthen this variable from
6435 vec<rtx> * to vec<rtx_insn *> *.
6436 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6438 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6439 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6440 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6442 (record_last_set_info): Likewise for local "last_set_insn".
6444 2014-09-08 DJ Delorie <dj@redhat.com>
6446 * doc/invoke.texi (MSP430 Options): Add -minrt.
6448 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6450 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6451 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6452 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6454 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6456 (adjust_splat): New function.
6457 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6458 (dump_swap_insn_table): Add case for SH_SPLAT.
6460 2014-09-08 Richard Biener <rguenther@suse.de>
6463 * tree-inline.c (copy_loops): The source loop header should
6465 (tree_function_versioning): If loops need fixup after removing
6466 unreachable blocks fix them.
6467 * omp-low.c (simd_clone_adjust): Do not add incr block to
6468 loop under construction.
6470 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6472 * config/aarch64/aarch64-builtins.c
6473 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6475 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6477 * config/i386/cygming.h (TF_SIZE): Remove.
6478 * config/i386/darwin.h (TF_SIZE): Remove.
6479 * config/i386/dragonfly.h (TF_SIZE): Remove.
6480 * config/i386/freebsd.h (TF_SIZE): Remove.
6481 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6482 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6483 * config/i386/sol2.h (TF_SIZE): Remove.
6484 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6485 * config/ia64/linux.h (TF_SIZE): Remove.
6486 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6487 * doc/tm.texi: Regenerate.
6488 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6490 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6492 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6494 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6496 * doc/tm.texi: Regenerate.
6497 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6499 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6500 * config/cris/cris.h (__make_dp): Remove.
6502 2014-09-08 Richard Biener <rguenther@suse.de>
6505 * cfgloop.c (mark_loop_for_removal): Track former header
6507 * cfgloop.h (struct loop): Add former_header member unconditionally.
6508 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6509 diagnostic unconditionally.
6511 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6514 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6515 constraint for operand0 and remove write only modifier from operand3.
6517 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6519 PR rtl-optimization/62208
6520 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6521 rather than const0_rtx in eq/ne-xor simplifications.
6523 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6525 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6526 (arc_output_mi_thunk): Likewise.
6528 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6529 arguments to silence bogus warning.
6531 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6534 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6536 2014-09-06 Tom de Vries <tom@codesourcery.com>
6538 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6539 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6540 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6542 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6545 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6546 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6548 2014-09-05 Easwaran Raman <eraman@google.com>
6550 PR rtl-optimization/62146
6551 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6552 hoisted instruction unconditional.
6554 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6557 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6558 Do not allow any_mask_operand for operands[2].
6559 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6561 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6563 * config/arc/arc.c (arc_print_operand): Use insn method of
6564 final_sequence for type-safety.
6565 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6566 "insn" from rtx to rtx_insn *.
6567 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6568 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6569 Likewise for locals "branch", "label".
6570 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6571 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6572 (same_cmp_following_p): Likewise for locals "i2", "i3".
6573 * config/sh/sh_optimize_sett_clrt.cc
6574 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6575 param "cbranch_insn".
6576 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6577 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6578 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6580 (condjump_p): Likewise.
6581 (condjump_in_parallel_p): Likewise.
6583 (any_uncondjump_p): Likewise.
6584 (any_condjump_p): Likewise.
6585 (condjump_label): Likewise.
6586 (returnjump_p): Strengthen param "insn" from rtx to
6588 (onlyjump_p): Strengthen param "insn" from const_rtx to
6590 (jump_to_label_p): Likewise.
6591 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6592 (invert_jump): Likewise.
6593 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6595 (get_jump_flags): Strengthen param "insn" from rtx to
6597 (get_branch_condition): Likewise.
6598 (condition_dominates_p): Likewise.
6599 (make_return_insns): Move declaration of local "pat" earlier, to
6600 after we've handled NONJUMP_INSN_P and non-sequences, using its
6601 methods to simplify the code and for type-safety.
6602 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6604 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6605 (condjump_p): Strengthen param from const_rtx to
6607 (any_condjump_p): Likewise.
6608 (any_uncondjump_p): Likewise.
6610 (condjump_label): Likewise.
6611 (simplejump_p): Likewise.
6612 (returnjump_p): Likewise.
6613 (onlyjump_p): Likewise.
6614 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6615 (invert_jump): Likewise.
6616 (condjump_in_parallel_p): Strengthen param from const_rtx to
6618 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6619 to const rtx_insn *.
6620 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6621 to const rtx_insn *.
6622 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6624 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6626 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6627 above the conditional, and convert the check on GET_CODE to a
6628 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6629 the conditional. Simplify the conditional by using methods of
6632 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6634 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6635 "link" from rtx to rtx_insn_list *, and use its methods for
6636 clarity and type-safety.
6637 (toggle_cancelled_flags): Likewise.
6638 (restore_last_backtrack_point): Likewise.
6639 (queue_to_ready): Use insn method of "link" in one place.
6640 (schedule_block): Strengthen local "link" from rtx to
6641 rtx_insn_list *, and use its methods for clarity and type-safety.
6643 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6645 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6646 param "insn" from const_rtx to const rtx_insn *.
6647 (sched_get_reverse_condition_uncached): Likewise.
6648 (sched_get_condition_with_rev): Likewise.
6649 (sched_has_condition_p): Likewise.
6650 (sched_insns_conditions_mutex_p): Likewise for both params.
6651 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6652 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6653 (setup_insn_reg_uses): Move local "list" to be more tightly
6654 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6655 its methods for clarity and type-safety.
6656 (sched_analyze_1): Strengthen local "pending" from rtx to
6657 rtx_insn_list *, and local "pending_mem" from rtx to
6658 rtx_expr_list *. Use methods of each for clarity and type-safety.
6659 (sched_analyze_2): Likewise.
6660 (sched_analyze_insn): Likewise.
6662 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6663 param from const_rtx to const rtx_insn *.
6664 (sched_insns_conditions_mutex_p): Likewise for both params.
6665 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6668 * system.h (CONST_CAST_RTX_INSN): New macro.
6670 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6672 * recog.c (peep2_attempt): Strengthen return type from rtx to
6674 (peep2_update_life): Likewise for params "last", "prev", removing
6675 a checked cast made redundant by this.
6676 (peephole2_optimize): Likewise for local "last".
6678 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6680 * basic-block.h (set_block_for_insn): Eliminate this macro in
6682 * rtl.h (set_block_for_insn): New inline function, imposing the
6683 requirement that the "insn" param is an rtx_insn *.
6685 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6687 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6689 * final.c (get_call_reg_set_usage): Likewise for first param,
6690 eliminating a checked cast.
6691 * regs.h (get_call_reg_set_usage): Likewise for first param.
6692 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6693 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6694 cast, replacing references to "x" with "call_insn" where
6696 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6697 rtx_insn *, adding a checked cast.
6699 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6701 * output.h (final_scan_insn): Strengthen first param from rtx to
6704 * final.c (final_scan_insn): Likewise, renaming it back from
6705 "uncast_insn" to "insn", eliminating the checked cast.
6707 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6708 "vec" with an rtx_sequence * "seq", taking a copy of
6709 "final_sequence", and using methods of "seq" for clarity, and for
6710 type-safety in the calls to final_scan_insn.
6711 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6712 of "final_sequence" for clarity, and for type-safety in the call to
6714 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6715 rtx_sequence * and rename from "insn" to "seq".
6717 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6719 * jump.c (delete_related_insns): Introduce a new local "table" by
6720 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6721 get_labels method of "table" to simplify access to the labels in
6724 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6726 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6727 f_minmaxs, f_minmaxd types.
6729 2014-09-05 Richard Biener <rguenther@suse.de>
6731 * cfgloop.c (mark_loop_for_removal): Record former header
6732 when ENABLE_CHECKING.
6733 * cfgloop.h (strut loop): Add former_header member when
6735 * loop-init.c (fix_loop_structure): Sanity check loops
6736 marked for removal if they re-appeared.
6738 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6740 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6741 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6743 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6744 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6745 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6746 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6747 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6748 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6749 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6750 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6751 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6752 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6753 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6754 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6755 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6756 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6757 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6758 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6759 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6760 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6761 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6762 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6763 with int{32,16,8}_t.
6765 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6767 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6768 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6769 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6770 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6771 Remove temporary __asm__ and reimplement.
6773 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6775 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6776 handling cmge, cmgt, cmeq, cmtst.
6778 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6779 cmlt, cmgeu, cmgtu, cmtst): Remove.
6781 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6782 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6783 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6784 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6786 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6788 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6790 (aarch64_fold_builtin): Update pattern for cmtst.
6792 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6795 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6797 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6798 Switch operands, separate out more cases, refactor.
6800 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6802 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6803 argument; rename old version to...
6804 (aarch64_const_vec_all_same_in_range_p): ...this.
6805 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6807 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6809 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6811 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6812 Remove qualifier_const_pointer, update comment.
6814 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6816 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6818 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6820 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6821 varargs with pointer parameter.
6822 (aarch64_simd_expand_builtin): pass pointer into previous.
6824 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6826 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6829 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6831 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6832 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6833 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6834 Replace temporary asm with call to builtin.
6835 (vrbit_p8, vrbitq_p8): New functions.
6837 2014-09-05 Richard Biener <rguenther@suse.de>
6839 * cfgloop.c (mark_loop_for_removal): New function.
6840 * cfgloop.h (mark_loop_for_removal): Declare.
6841 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6842 (merge_blocks): Likewise.
6843 (duplicate_block): Likewise.
6844 * except.c (sjlj_emit_dispatch_table): Likewise.
6845 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6846 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6847 (thread_through_loop_header): Likewise.
6849 2014-09-05 Richard Biener <rguenther@suse.de>
6852 * fold-const.c (try_move_mult_to_index): Remove.
6853 (fold_binary_loc): Do not call it.
6854 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6855 from the base object again.
6857 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6859 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6862 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6865 * config/arm/arm.md (setmem): New pattern.
6866 * config/arm/arm-protos.h (struct tune_params): New fields.
6867 (arm_gen_setmem): New prototype.
6868 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6869 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6870 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6871 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6872 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6873 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6874 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6875 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6876 (arm_const_inline_cost): New function.
6877 (arm_block_set_max_insns): New function.
6878 (arm_block_set_non_vect_profit_p): New function.
6879 (arm_block_set_vect_profit_p): New function.
6880 (arm_block_set_unaligned_vect): New function.
6881 (arm_block_set_aligned_vect): New function.
6882 (arm_block_set_unaligned_non_vect): New function.
6883 (arm_block_set_aligned_non_vect): New function.
6884 (arm_block_set_vect, arm_gen_setmem): New functions.
6886 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6888 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6890 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6892 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6894 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6896 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6898 * valtrack.h: Adjust.
6900 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6902 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6904 (emit_jump_insn_before_noloc): Likewise.
6905 (emit_call_insn_before_noloc): Likewise.
6906 (emit_label_before): Likewise.
6907 (emit_label_after): Likewise.
6908 (emit_insn_before_setloc): Likewise.
6909 (emit_jump_insn_before_setloc): Likewise.
6910 (emit_call_insn_before_setloc): Likewise.
6911 (emit_call_insn_before): Likewise.
6914 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6916 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6917 rtx_insn *, eliminating a checked cast.
6919 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6921 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6922 const_rtx to const rtx_insn *.
6923 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6926 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6928 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6929 fixup_args_size_notes.
6930 * expr.c (fixup_args_size_notes): Strengthen first two params from
6931 rtx to rtx_insn *, eliminating a checked cast.
6932 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6935 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6937 * haifa-sched.c (get_ready_element): Strengthen return type from
6939 * sched-int.h (get_ready_element): Likewise.
6941 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6944 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6945 indexed_or_indirect_operand instead of memory_operand.
6946 (floatsi<mode>2_lfiwzx_mem): Ditto.
6948 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6950 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6951 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6952 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6954 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6956 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6958 (get_last_nonnote_insn): Likewise.
6959 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6960 * resource.c (find_basic_block): Likewise.
6962 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6965 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6967 * genattr.c (main): Within the prototype of insn_latency written
6968 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6969 * genautomata.c (output_internal_maximal_insn_latency_func):
6970 Within the implementation of insn_latency written out to
6971 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6972 eliminating a pair of checked casts.
6974 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6976 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6979 * rtl.h (eh_returnjump_p): Likewise.
6981 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6983 * Makefile.in (TAGS): Handle constructs in timevar.def.
6985 2014-09-04 Guozhi Wei <carrot@google.com>
6988 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6989 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6990 it into two patterns.
6991 (move_lo_quad_internal_be_<mode>): Likewise.
6993 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6995 * doc/options.texi: Document that Var and Init are required if CPP
6997 * optc-gen.awk: Require Var and Init if CPP is given.
6998 * common.opt (Wpedantic): Use Init.
7000 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7002 * config/rs6000/rs6000.c (special_handling_values): Add
7004 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7005 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
7006 as swappable with special handling SH_EXTRACT. Remove
7007 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7009 (adjust_extract): New function.
7010 (handle_special_swappables): Add default to case statement; add
7011 case for SH_EXTRACT that calls adjust_extract.
7012 (dump_swap_insn_table): Handle SH_EXTRACT.
7014 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7016 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7017 selection of 0th memory doubleword, regardless of endianness.
7019 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7021 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7023 2014-09-04 Alan Modra <amodra@gmail.com>
7026 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7029 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
7031 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7032 * targhooks.c (default_dwarf_frame_reg_mode): New function.
7033 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7034 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7035 * doc/tm.texi: Regenerate.
7036 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7037 selection logic to default_dwarf_frame_reg_mode.
7039 2014-09-03 Marek Polacek <polacek@redhat.com>
7041 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7044 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7046 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7047 the automodified register.
7049 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7051 * output.h (get_some_local_dynamic_name): Declare.
7052 * final.c (some_local_dynamic_name): New variable.
7053 (get_some_local_dynamic_name): New function.
7054 (final_end_function): Clear some_local_dynamic_name.
7055 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7056 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7057 (print_operand): Report an error if '%&' is used inappropriately.
7058 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7059 (get_some_local_dynamic_name_1): Delete.
7060 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7061 (rs6000_get_some_local_dynamic_name): Delete.
7062 (rs6000_get_some_local_dynamic_name_1): Delete.
7063 (print_operand): Report an error if '%&' is used inappropriately.
7064 * config/s390/s390.c (machine_function): Remove some_ld_name.
7065 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7066 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7067 * config/sparc/sparc.c: Include rtl-iter.h.
7068 (machine_function): Remove some_ld_name.
7069 (sparc_print_operand): Report an error if '%&' is used inappropriately.
7070 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7072 2014-09-03 Richard Henderson <rth@redhat.com>
7074 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7075 (aarch64_popwb_pair_reg): Remove.
7076 (aarch64_set_frame_expr): Remove.
7077 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7078 the restore ops performed by the insns generated.
7079 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7080 insn. Perform the calls_eh_return addition later; do not attempt to
7081 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
7082 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7083 special markup at all. Load cfun->machine->frame.hard_fp_offset
7084 into a local variable.
7085 (aarch64_frame_pointer_required): Don't check calls_alloca.
7087 2014-09-03 Richard Biener <rguenther@suse.de>
7089 * opts.c (default_options_optimization): Adjust
7090 max-combine-insns to 2 for -Og.
7092 2014-09-03 Martin Jambor <mjambor@suse.cz>
7095 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7096 pass-trough jump functions correctly.
7098 2014-09-03 Martin Jambor <mjambor@suse.cz>
7101 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7102 created replacements in ascending order of offsets.
7103 (known_aggs_to_agg_replacement_list): Likewise.
7105 2014-09-03 Martin Liska <mliska@suse.cz>
7107 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7108 is set to set uninitialized value for vnresult.
7110 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7112 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7113 for TARGET_MUST_PASS_IN_STACK.
7115 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7117 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7118 for TARGET_ARG_PARTIAL_BYTES.
7120 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7122 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7123 instructions for varargs implementation.
7124 (nds32_expand_epilogue): Emit stack adjustment instructions for
7125 varargs implementation.
7127 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7129 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7130 optimization detection.
7132 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7134 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7136 (nds32_function_arg_advance): Deal with nameless arguments.
7137 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7138 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7139 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7141 2014-09-03 Richard Biener <rguenther@suse.de>
7143 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7144 (struct bb_bitmap_sets): Remove deferred member.
7145 (BB_DEFERRED): Remove.
7146 (defer_or_phi_translate_block): Remove.
7147 (compute_antic_aux): Remove deferring of blocks, assert
7148 proper iteration order.
7149 (compute_antic): Do not set BB_DEFERRED.
7150 (eliminate): Allocate el_avail of proper size initially.
7152 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7154 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7155 according to the value of crtl->args.pretend_args_size.
7157 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7159 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7160 varargs information.
7162 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7164 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7165 implementation for TARGET_SETUP_INCOMING_VARARGS.
7166 (nds32_strict_argument_naming): Refine comment.
7167 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7168 Define for future implementation.
7170 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7172 * config/i386/adxintrin.h (_subborrow_u32): New.
7173 (_addcarry_u32): Ditto.
7174 (_subborrow_u64): Ditto.
7175 (_addcarry_u64): Ditto.
7176 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7178 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7179 __builtin_ia32_sbb_u64
7181 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7183 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7185 (nds32_function_arg_advance): Likewise.
7186 (nds32_init_cumulative_args): Likewise.
7187 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7188 (NDS32_FIRST_GPR_REGNUM): Define.
7189 (NDS32_LAST_GPR_REGNUM): Define.
7190 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7191 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7192 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7193 (machine_function): Use GRP-specific stuff.
7195 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7197 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7198 (nds32_expand_epilogue): Likewise.
7199 (nds32_expand_prologue_v3push): Likewise.
7200 (nds32_expand_epilogue_v3pop): Likewise.
7202 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7204 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7205 v3push/v3pop for variadic function.
7206 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7208 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7210 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7211 Check rtx for varargs implementation.
7212 (nds32_output_stack_pop): Likewise.
7213 * config/nds32/nds32-protos.h: Have a rtx argument for
7214 nds32_output_stack_push and nds32_output_stack_pop.
7215 * config/nds32/nds32.md: Likewise.
7217 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7219 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7220 to check if FUNC is an interrupt service routine.
7221 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7223 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7225 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7226 arguments implementation.
7228 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7230 * config/nds32/nds32-predicates.c
7231 (nds32_valid_stack_push_pop): Rename to ...
7232 (nds32_valid_stack_push_pop_p): ... this.
7233 * config/nds32/nds32-protos.h: Likewise.
7234 * config/nds32/predicates.md: Likewise.
7236 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7238 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7239 (nds32_emit_stack_v3push): ... this.
7240 (nds32_gen_stack_v3pop): Rename to ...
7241 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7244 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7246 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7247 (nds32_emit_stack_push_multiple): ... this.
7248 (nds32_gen_stack_pop_multiple): Rename to ...
7249 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7252 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7255 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7256 and add a second splitter to handle the remaining cases.
7258 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7260 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7262 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7264 * cfgexpand.c (label_rtx_for_bb): Change type to
7265 hash_map<basic_block, rtx_code_label *> *.
7266 (expand_gimple_basic_block): Adjust.
7267 (pass_expand::execute): Likewise.
7269 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7271 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7272 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7273 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7274 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7275 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7276 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7277 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7280 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7282 * alloc-pool.c: Include coretypes.h.
7283 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7284 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7285 hash_set instead of htab.
7286 * ggc-page.c (in_gc): New variable.
7287 (ggc_free): Do nothing if a collection is taking place.
7288 (ggc_collect): Set in_gc appropriately.
7289 * ggc.h (gt_ggc_mx(const char *)): New function.
7290 (gt_pch_nx(const char *)): Likewise.
7291 (gt_ggc_mx(int)): Likewise.
7292 (gt_pch_nx(int)): Likewise.
7293 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7294 (hash_map::hash_entry::pch_nx): Likewise.
7295 (hash_map::hash_entry::pch_nx_helper): Likewise.
7296 (hash_map::hash_map): Adjust.
7297 (hash_map::create_ggc): New function.
7298 (gt_ggc_mx): Likewise.
7299 (gt_pch_nx): Likewise.
7300 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7301 (default_hashset_traits::pch_nx): Likewise.
7302 (hash_set::hash_entry::ggc_mx): Likewise.
7303 (hash_set::hash_entry::pch_nx): Likewise.
7304 (hash_set::hash_entry::pch_nx_helper): Likewise.
7305 (hash_set::hash_set): Adjust.
7306 (hash_set::create_ggc): New function.
7307 (hash_set::elements): Likewise.
7308 (gt_ggc_mx): Likewise.
7309 (gt_pch_nx): Likewise.
7310 * hash-table.h (hash_table::hash_table): Adjust.
7311 (hash_table::m_ggc): New member.
7312 (hash_table::~hash_table): Adjust.
7313 (hash_table::expand): Likewise.
7314 (hash_table::empty): Likewise.
7315 (gt_ggc_mx): New function.
7316 (hashtab_entry_note_pointers): Likewise.
7317 (gt_pch_nx): Likewise.
7319 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7321 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7322 built-in definition.
7323 (XVCVUXDDP_SCALE): Likewise.
7324 (XVCVDPSXDS_SCALE): Likewise.
7325 (XVCVDPUXDS_SCALE): Likewise.
7326 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7327 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7328 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7329 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7330 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7332 * config/rs6000/rs6000.c (real.h): New include.
7333 (rs6000_scale_v2df): New function.
7334 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7335 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7336 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7337 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7338 (vsx_xvcvsxddp_scale): New define_expand.
7339 (vsx_xvcvsxddp): New define_insn.
7340 (vsx_xvcvuxddp_scale): New define_expand.
7341 (vsx_xvcvuxddp): New define_insn.
7342 (vsx_xvcvdpsxds_scale): New define_expand.
7343 (vsx_xvcvdpsxds): New define_insn.
7344 (vsx_xvcvdpuxds_scale): New define_expand.
7345 (vsx_xvcvdpuxds): New define_insn.
7346 * doc/extend.texi (vec_ctf): Add new prototypes.
7347 (vec_cts): Likewise.
7348 (vec_ctu): Likewise.
7349 (vec_splat): Likewise.
7350 (vec_div): Likewise.
7351 (vec_mul): Likewise.
7353 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7356 * config/arm/neon.md
7357 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7358 <v_cmp_result>): New pattern.
7359 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7360 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7361 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7362 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7363 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7364 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7366 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7369 * config/arm/iterators.md (FIXUORS): New code iterator.
7370 (VCVT): New int iterator.
7371 (su_optab): New code attribute.
7373 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7375 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7377 * config/aarch64/predicates.md (aarch64_comparison_operation):
7378 New special predicate.
7379 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7380 aarch64_comparison_operation instead of matching an operator.
7381 Update operand numbers.
7382 (csinc3<mode>_insn): Likewise.
7383 (*csinv3<mode>_insn): Likewise.
7384 (*csneg3<mode>_insn): Likewise.
7385 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7386 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7387 Return -1 instead of aborting on invalid condition codes.
7388 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7389 to assert that the returned condition code is valid.
7390 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7392 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7394 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7395 tree.def, and gimple.def
7397 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7398 Balaji V. Iyer <balaji.v.iyer@intel.com>
7399 Igor Zamyatin <igor.zamyatin@intel.com>
7401 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7402 (__cilkrts_cilk_for_64): Likewise.
7403 * cilk-common.c (declare_cilk_for_builtin): New function.
7404 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7405 __cilkrts_cilk_for_64 bultins.
7406 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7408 (cilk_for_32_fndecl): New define.
7409 (cilk_for_64_fndecl): Likewise.
7410 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7411 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7412 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7413 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7414 GF_OMP_FOR_COMBINED_INTO.
7415 * gimplify.c (gimplify_scan_omp_clauses): Added
7416 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7417 (gimplify_adjust_omp_clauses): Ditto.
7418 (gimplify_omp_for): Added CILK_FOR case.
7419 (gimplify_expr): Ditto.
7420 * omp-low.c: Include cilk.h.
7421 (extract_omp_for_data): Set appropriate kind for
7422 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7423 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7424 (create_omp_child_function_name): Added second argument to handle
7426 (cilk_for_check_loop_diff_type): New function.
7427 (expand_cilk_for_call): Likewise.
7428 (expand_cilk_for): Likewise.
7429 (create_omp_child_function): Set cilk_for_count; handle the cases when
7430 it is true; call create_omp_child_function_name with second argument.
7431 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7432 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7433 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7434 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7435 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7436 (convert_local_omp_clauses): Ditto.
7437 * tree-pretty-print.c (dump_omp_clause): Added
7438 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7439 (dump_generic_node): Added CILK_FOR case.
7440 * tree.c (omp_clause_num_ops): New element
7441 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7442 (omp_clause_code_name): New element _Cilk_for_count_.
7443 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7444 * tree.def: Add tree code for CILK_FOR.
7446 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7448 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7449 (ppc403-compare): Add "exts with dot" case.
7450 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7451 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7452 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7453 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7454 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7455 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7456 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7457 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7458 cell-cmp-microcoded): Similarly.
7459 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7460 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7461 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7462 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7463 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7464 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7465 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7466 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7467 (power6-compare): Add "exts with dot" case.
7468 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7469 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7470 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7472 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7473 if avoiding Cell microcode.
7474 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7475 (is_cracked_insn): Ditto.
7476 (insn_must_be_first_in_group): Ditto.
7477 * config/rs6000/rs6000.md (dot): Adjust comment.
7478 (cell_micro): Handle exts+dot.
7479 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7480 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7481 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7482 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7483 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7484 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7485 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7487 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7489 * config/rs6000/rs6000.md (QHSI): Delete.
7490 (EXTQI, EXTHI, EXTSI): New mode iterators.
7491 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7492 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7493 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7494 9 anonymous instructions, and 8 splitters): Delete.
7495 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7496 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7497 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7498 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7499 *zero_extendsi<mode>2_dot2): New.
7501 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7503 * config/rs6000/rs6000.md (any_extend): New code iterator.
7504 (u, su): New code attributes.
7505 (dmode, DMODE): New mode attributes.
7506 (<su>mul<mode>3_highpart): New.
7507 (*<su>mul<mode>3_highpart): New.
7508 (<su>mulsi3_highpart_le): New.
7509 (<su>muldi3_highpart_le): New.
7510 (<su>mulsi3_highpart_64): New.
7511 (<u>mul<mode><dmode>3): New.
7512 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7514 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7517 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7519 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7520 *mulsi3_internal2, and two splitters): Delete.
7521 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7523 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7525 2014-09-02 Richard Biener <rguenther@suse.de>
7527 PR tree-optimization/62695
7528 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7531 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7534 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7536 2014-09-01 Andi Kleen <ak@linux.intel.com>
7538 * file-find.c (add_prefix_begin): Add.
7539 (do_add_prefix): Rename from add_prefix with first argument.
7540 (add_prefix): Add new wrapper.
7541 * file-find.h (add_prefix_begin): Add.
7542 * gcc-ar.c (main): Support -B option.
7544 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7546 * genemit.c: Include dumpfile.h.
7547 (gen_split): Print name of splitter function to dump file.
7549 2014-09-01 Richard Biener <rguenther@suse.de>
7551 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7552 Use stack auto_vecs for constraint expressions.
7553 (find_func_aliases_for_call): Likewise.
7554 (find_func_aliases): Likewise.
7555 (find_func_clobbers): Likewise.
7557 2014-09-01 Richard Biener <rguenther@suse.de>
7559 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7560 operands vector in most cases. Remove redundant code.
7562 2014-09-01 Olivier Hainque <hainque@adacore.com>
7564 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7565 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7566 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7568 2014-09-01 Richard Biener <rguenther@suse.de>
7570 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7571 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7572 vn_reference_compute_hash, vn_reference_insert): Remove.
7573 (vn_reference_lookup_call): New function.
7574 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7575 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7576 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7577 (create_reference_ops_from_call): Remove.
7578 (vn_reference_lookup_3): Properly update shared_lookup_references.
7579 (vn_reference_lookup_pieces): Assert that we updated
7580 shared_lookup_references properly.
7581 (vn_reference_lookup): Likewise.
7582 (vn_reference_lookup_call): New function.
7583 (visit_reference_op_call): Use it. Avoid re-building the
7585 (visit_reference_op_load): Remove redundant lookup.
7586 (visit_reference_op_store): Perform special tail-merging work
7587 only when possibly doing tail-merging.
7588 (visit_use): Likewise.
7589 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7591 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7594 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7595 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7596 (find_inc): Revert 2014-08-13 change.
7598 2014-09-01 Marek Polacek <polacek@redhat.com>
7601 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7602 Change the type of V to unsigned HOST_WIDE_INT.
7604 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7606 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7607 the size of byte markers.
7608 (do_shift_rotate): Fix confusion between host, target and marker byte
7610 (verify_symbolic_number_p): Likewise.
7611 (find_bswap_or_nop_1): Likewise.
7612 (find_bswap_or_nop): Likewise.
7614 2014-09-01 Olivier Hainque <hainque@adacore.com>
7616 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7617 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7619 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7621 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7622 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7623 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7625 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7629 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7630 (build_check_stmt): Likewise.
7631 (instrument_strlen_call): Likewise.
7632 (asan_expand_check_ifn): Likewise and fix types.
7633 (maybe_cast_to_ptrmode): New function.
7635 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7637 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7639 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7641 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7643 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7645 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7646 prefix to function labels when generating fast indirect calls.
7648 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7652 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7653 param back from rtx_insn * to rtx. Rename param from "label" to
7654 "label_or_return", reintroducing "label" as an rtx_insn * after
7655 we've ensured it's not a RETURN.
7656 (first_active_target_insn): Likewise for return type and param;
7657 add a checked cast to rtx_insn * once we've ensured "insn" is not
7659 (steal_delay_list_from_target): Convert param "pnew_thread" back
7660 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7662 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7663 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7664 cast once we've established we're not dealing with a RETURN,
7665 renaming subsequent uses of "thread" to "thread_insn".
7666 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7668 (follow_jumps): Convert return type and param "label" from
7669 rtx_insn * back to rtx. Move initialization of "value" to after
7670 the handling for ANY_RETURN_P, adding a checked cast there to
7671 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7672 rename to "this_label_or_return", reintroducing "this_label" as
7673 an rtx_insn * once we've handled the case where it could be an
7675 (fill_slots_from_thread): Rename param "thread" to
7676 "thread_or_return", converting from an rtx_insn * back to an rtx.
7677 Reintroduce name "thread" as an rtx_insn * local with a checked
7678 cast once we've handled the case of it being an ANY_RETURN_P.
7679 Convert local "new_thread" from an rtx_insn * back to an rtx.
7680 Add a checked cast when assigning to "trial" from "new_thread".
7681 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7682 checked cast to rtx_insn * from "new_thread" when invoking
7684 (fill_eager_delay_slots): Convert locals "target_label",
7685 "insn_at_target" from rtx_insn * back to rtx.
7686 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7687 (relax_delay_slots): Convert locals "trial", "target_label" from
7688 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7689 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7690 invoking update_block.
7691 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7692 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7694 * resource.h (mark_target_live_regs): Undo erroneous conversion
7695 of second param of r214693, converting it back from rtx_insn * to
7696 rtx, since it could be a RETURN.
7698 * resource.c (find_dead_or_set_registers): Similarly, convert
7699 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7700 could be writing back a RETURN. Rename local rtx_insn * "next" to
7701 "next_insn", and introduce "lab_or_return" as a local rtx,
7702 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7703 (mark_target_live_regs): Undo erroneous conversion
7704 of second param of r214693, converting it back from rtx_insn * to
7705 rtx, since it could be a RETURN. Rename it from "target" to
7706 "target_maybe_return", reintroducing the name "target" as a local
7707 rtx_insn * with a checked cast, after we've handled the case of
7710 2014-08-29 DJ Delorie <dj@redhat.com>
7712 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7713 pointer size up to a power of two.
7714 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7715 (POINTER_SIZE_UNITS): New, rounded up value.
7716 * dwarf2asm.c (size_of_encoded_value): Use it.
7717 (dw2_output_indirect_constant_1): Likewise.
7718 * expmed.c (init_expmed_one_conv): We now know the sizes of
7720 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7721 * optabs.c (expand_float): Use precision, not size.
7722 (expand_fix): Likewise.
7723 * simplify-rtx (simplify_unary_operation_1): Likewise.
7724 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7725 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7726 (default_assemble_integer) Likewise.
7727 (dump_tm_clone_pairs): Likewise.
7728 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7729 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7730 (prepare_call_arguments): Likewise.
7731 * stor-layout.c (finalize_type_size): Preserve precision.
7732 (layout_type): Use precision, not size.
7734 * expr.c (convert_move): If the target has an explicit converter,
7737 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7739 * gdbinit.in: Skip various inline functions in rtl.h when
7742 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7745 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7747 2014-08-29 Richard Biener <rguenther@suse.de>
7749 PR tree-optimization/62291
7750 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7751 exactly the vector size needed and use quick_push.
7752 (phi_translate_1): Adjust comment.
7753 (valid_in_sets): Remove block argument and remove pointless
7755 (dependent_clean): Adjust for removal of block argument.
7757 (compute_antic_aux): Likewise.
7758 (compute_partial_antic_aux): Likewise.
7760 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7761 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7762 Anna Tikhonova <anna.tikhonova@intel.com>
7763 Ilya Tocar <ilya.tocar@intel.com>
7764 Andrey Turetskiy <andrey.turetskiy@intel.com>
7765 Ilya Verbin <ilya.verbin@intel.com>
7766 Kirill Yukhin <kirill.yukhin@intel.com>
7767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7769 * config/i386/sse.md
7770 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7771 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7772 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7773 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7775 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7776 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7777 Anna Tikhonova <anna.tikhonova@intel.com>
7778 Ilya Tocar <ilya.tocar@intel.com>
7779 Andrey Turetskiy <andrey.turetskiy@intel.com>
7780 Ilya Verbin <ilya.verbin@intel.com>
7781 Kirill Yukhin <kirill.yukhin@intel.com>
7782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7784 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7785 * config/i386/sse.md
7786 (define_mode_iterator VI4_128_8_256): New.
7787 (define_mode_iterator VI2_128_4_256): Ditto.
7788 (define_mode_iterator PMOV_DST_MODE): Rename into
7789 (define_mode_iterator PMOV_DST_MODE_1): this.
7790 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7791 Use PMOV_DST_MODE_1 mode iterator.
7792 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7794 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7796 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7797 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7798 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7799 (define_mode_iterator PMOV_DST_MODE_2): New.
7800 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7801 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7802 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7804 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7805 (define_mode_attr pmov_dst_3): Ditto.
7806 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7807 (define_mode_attr pmov_suff_3): Ditto.
7808 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7809 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7810 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7811 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7812 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7813 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7814 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7815 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7816 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7817 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7818 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7819 (define_mode_attr pmov_dst_4): Ditto.
7820 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7821 (define_mode_attr pmov_suff_4): Ditto.
7822 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7823 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7824 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7825 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7826 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7827 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7828 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7829 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7830 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7831 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7832 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7834 2014-08-29 Richard Biener <rguenther@suse.de>
7836 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7837 NON_LVALUE_EXPR in gimple.
7839 2014-08-29 Richard Biener <rguenther@suse.de>
7842 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7843 from previous refactoring.
7844 (gimple_fold_builtin_strncpy): Likewise.
7846 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7849 * function.c (assign_parm_setup_reg): Remove erroneous checked
7850 cast to rtx_insn * on result of gen_extend_insn in favor of
7851 introducing a new local rtx "pat".
7853 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7855 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7857 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7859 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7861 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7862 (next_insn): Likewise.
7863 * emit-rtl.c (next_insn): Likewise.
7864 (previous_insn): Likewise.
7865 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7866 "insn" and "next" from rtx to rtx_insn *.
7867 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7868 "insn", "insn1", "vliw_start", "prologue_end_note",
7869 "last_insn_in_packet".
7871 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7873 * shrink-wrap.h (active_insn_between): Strengthen both params from
7875 * function.c (active_insn_between): Likewise.
7877 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7879 * genattr.c (main): When writing out insn-attr.h, strengthen param
7880 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7881 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7882 writing out the definition of dfa_clear_single_insn_cache to the
7883 generated insn-automata.c
7885 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7887 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7889 (incr_ticks_for_insn): Likewise.
7890 (init_resource_info): Likewise.
7892 * resource.c (init_resource_info): Likewise.
7893 (clear_hashed_info_for_insn): Likewise.
7894 (incr_ticks_for_insn): Likewise.
7896 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7898 (steal_delay_list_from_target): Use methods of "seq".
7899 (try_merge_delay_insns): Use methods of "merged_insns".
7900 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7901 (reorg_redirect_jump): Likewise for param "jump".
7903 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7905 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7907 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7908 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7910 (s390_mainpool_finish): In three places, split out a local rtx
7911 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7912 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7913 and split another local rtx "insn" out into rtx "pat" and
7915 * config/sh/sh.c (output_branchy_insn): Rather than working
7916 directly on operands[9], introduce local rtx_code_label *
7917 variables named "lab" in two places, working on them, and then
7918 assigning them to operands[9], so that the intervening operations
7919 are known by the type system to be on insns.
7921 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7923 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7926 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7927 in invocation of INSN_HAS_LOCATION.
7929 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7931 * config/rs6000/altivec.h (vec_xl): New #define.
7932 (vec_xst): Likewise.
7933 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7934 (XXSPLTD_V2DI): Likewise.
7935 (DIV_V2DI): Likewise.
7936 (UDIV_V2DI): Likewise.
7937 (MUL_V2DI): Likewise.
7938 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7939 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7940 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7941 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7942 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7943 (UNSPEC_VSX_DIVSD): Likewise.
7944 (UNSPEC_VSX_DIVUD): Likewise.
7945 (UNSPEC_VSX_MULSD): Likewise.
7946 (vsx_mul_v2di): New insn-and-split.
7947 (vsx_div_v2di): Likewise.
7948 (vsx_udiv_v2di): Likewise.
7949 (vsx_xxspltd_<mode>): New insn.
7951 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7953 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7955 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7956 (NEXT_INSN): Likewise.
7957 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7958 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7960 (no_labels_between_p): Likewise for both params.
7962 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7963 cast when using NEXT_INSN on operands[2].
7964 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7965 "insn" from rtx to rtx_insn *, adding a checked cast.
7966 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7968 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7970 (arc_text_label): Likewise for param "insn".
7971 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7973 (arc_ccfsm_record_condition): Likewise for param "jump".
7974 (arc_text_label): Likewise for local "label".
7975 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7976 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7977 a method for typesafety. Add a checked cast.
7978 * config/arc/constraints.md (Clb): Add a checked cast when getting
7979 the CODE_LABEL from a LABEL_REF.
7980 * config/arm/arm.c (require_pic_register): Strengthen locals
7981 "seq", "insn" from rtx to rtx_insn *.
7982 (create_fix_barrier): Likewise for locals "selected", "next".
7983 (thumb1_reorg): Likewise for locals "prev", "insn".
7984 (arm_expand_prologue): Likewise for local "last".
7985 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7987 (thumb2_output_casesi): Likewise for operands[2].
7988 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7989 strengthen local "insn" from rtx to rtx_insn *.
7990 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7991 type and param "insn".
7992 (find_prev_insn_start): Likewise.
7993 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7995 (gen_one_bundle): Likewise for loal "t".
7996 (find_load): Likewise for param "insn".
7997 (workaround_speculation): Likewise for locals "insn", "next",
7998 "target", "next_tgt".
7999 * config/c6x/c6x.c (assign_reservations): Likewise for both params
8000 and for locals "insn", "within", "last".
8001 (count_unit_reqs): Likewise for params "head", "tail" and local
8003 (try_rename_operands): Likewise for params "head", "tail".
8004 (reshuffle_units): Likewise for locals "head", "tail", "insn".
8005 (struct c6x_sched_context): Likewise for fields
8006 "last_scheduled_insn", "last_scheduled_iter0".
8007 (init_sched_state): Replace NULL_RTX with NULL.
8008 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8010 (undo_split_delayed_nonbranch): Likewise for param and for local
8012 (conditionalize_after_sched): Likewise for local "insn".
8013 (bb_earliest_end_cycle): Likewise.
8014 (filter_insns_above): Likewise for locals "insn", "next".
8015 (hwloop_optimize): Remove redundant checked cast.
8016 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8017 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8019 (cris_simple_epilogue): Likewise.
8020 (cris_expand_prologue): Likewise.
8021 (cris_expand_epilogue): Likewise.
8022 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8023 local "insn" from rtx to rtx_insn *.
8024 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8025 (struct frv_packet_group): Likewise for the elements within array
8026 fields "insns", "sorted", and for field "nop".
8027 (frv_packet): Likewise for the elements within array field
8029 (frv_add_insn_to_packet): Likewise for param "insn".
8030 (frv_insert_nop_in_packet): Likewise for param "insn" and local
8032 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8033 (frv_sort_insn_group_1): Likewise for local "insn".
8034 (frv_optimize_membar_local): Likewise.
8035 (frv_align_label): Likewise for locals "x", "last", "barrier",
8037 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8039 (ia64_sched_init): Likewise for local "insn".
8040 (scheduled_good_insn): Likewise for param "last".
8041 (struct _ia64_sched_context): Likewise for field
8042 "last_scheduled_insn".
8043 (ia64_init_sched_context): Replace NULL_RTX with NULL.
8044 (struct bundle_state): Likewise for field "insn".
8045 (issue_nops_and_insn): Likewise for param "insn".
8046 (get_next_important_insn): Likewise for return type and both
8048 (ia64_add_bundle_selector_before): Likewise for param "insn".
8049 (bundling): Likewise for params "prev_head_insn", "tail" and
8050 locals "insn", "next_insn", "b". Eliminate top-level local rtx
8051 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8052 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8053 Strengthen final param from rtx to rtx_insn *.
8054 (iq2000_move_1word): Likewise for second param.
8055 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8056 param "cur_insn" and local "next_insn".
8057 (iq2000_move_1word): Likewise for param "insn".
8058 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8059 casts when using NEXT_INSN on operands[1].
8060 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8061 "insn" from rtx to rtx_insn *.
8062 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8063 "x", introducing local rtx_insn * "insn" for when working with the
8064 CODE_LABEL of the LABEL_REF.
8065 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8067 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8069 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8071 (conditionalize_block): Likewise for return type and param.
8072 (mcore_is_dead): Likewise for param "first" and local "insn".
8073 (emit_new_cond_insn): Likewise for return type.
8074 (conditionalize_block): Likewise for return type, param, and
8075 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8077 (conditionalize_optimization): Likewise for local "insn".
8078 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8080 * config/microblaze/microblaze.md: Add checked casts when using
8082 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8083 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8084 and rtx_insn * "insn".
8085 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8086 checked cast when using NEXT_INSN on operands[2].
8087 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8088 local "insn" from rtx to rtx_insn *.
8089 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8091 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8092 Add a checked cast when using NEXT_INSN on operands[1].
8093 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8095 (pa_output_cbranch): Likewise for final param.
8096 (pa_output_lbranch): Likewise for second param.
8097 (pa_output_bb): Likewise for third param.
8098 (pa_output_bvb): Likewise.
8099 (pa_output_dbra): Likewise for second param.
8100 (pa_output_movb): Likewise.
8101 (pa_output_parallel_movb): Likewise.
8102 (pa_output_parallel_addb): Likewise.
8103 (pa_output_millicode_call): Likewise for first param.
8104 (pa_output_mul_insn): Likewise for second param.
8105 (pa_output_div_insn): Likewise for third param.
8106 (pa_output_mod_insn): Likewise for second param.
8107 (pa_jump_in_call_delay): Likewise for param.
8108 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8109 (pa_output_div_insn): Likewise.
8110 (pa_output_mod_insn): Likewise.
8111 (pa_output_cbranch): Likewise.
8112 (pa_output_lbranch): Likewise.
8113 (pa_output_bb): Likewise.
8114 (pa_output_bvb): Likewise.
8115 (pa_output_dbra): Likewise.
8116 (pa_output_movb): Likewise.
8117 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8118 to simplify and for typesafety.
8119 (pa_output_call): Use method of rtx_sequence *.
8120 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8121 (pa_jump_in_call_delay): Likewise.
8122 (pa_output_parallel_movb): Likewise.
8123 (pa_output_parallel_addb): Likewise.
8124 (pa_following_call): Likewise.
8125 (pa_combine_instructions): Likewise for locals "anchor",
8127 (pa_can_combine_p): Likewise for params "anchor", "floater" and
8128 locals "start", "end".
8129 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8130 param "insn" and local "local_insn".
8131 (picochip_final_prescan_insn): Likewise for local "local_insn".
8132 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8134 (uses_TOC): Likewise.
8135 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8136 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8137 splitting out to more tightly-scoped locals, 3 as rtx and one as
8139 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8141 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8143 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8145 (fixup_addr_diff_vecs): Likewise.
8146 (reg_unused_after): Likewise for param 2.
8147 (sh_can_redirect_branch): Likewise for both params.
8148 (check_use_sfunc_addr): Likewise for param 1.
8149 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8150 (find_barrier): Likewise for local "last_got".
8151 (gen_block_redirect): Likewise for return type, param "jump" and
8152 locals "prev", "scan", "next", "insn".
8153 (struct far_branch): Likewise for fields "near_label",
8154 "insert_place", "far_label".
8155 (gen_far_branch): Likewise for local "jump".
8156 (fixup_addr_diff_vecs): Likewise for param "first" and locals
8158 (barrier_align): Likewise for param and for locals "prev", "x".
8159 Introduce local rtx_sequence * "prev_seq" and use insn method for
8160 typesafety and clarity.
8161 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8162 (get_dest_uid): Likewise for local "dest".
8163 (split_branches): Likewise for locals "next", "beyond", "label",
8164 "block", "far_label". Add checked casts when assigning to
8165 bp->far_label and "far_label".
8166 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8167 (sequence_insn_p): Likewise.
8168 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8169 more loop-scoped rtx "insn" when walking LABEL_REFS.
8170 (sh_can_redirect_branch): Strengthen both params from rtx to
8172 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8173 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8174 for clarity and typesafety.
8175 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8176 "insn" from rtx to rtx_insn *.
8177 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8178 when using NEXT_INSN on the CODE_LABEL in operands[2].
8179 (define_insn "casesi_worker_2"): Likewise.
8180 (define_insn "casesi_shift_media"): Likewise.
8181 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8183 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8184 Strengthen field "insn" from rtx to rtx_insn *.
8185 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8186 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8187 param "start_insn" and local "start_insn".
8188 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8190 (find_set_of_reg_bb): Likewise for param "insn".
8191 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8192 (trace_reg_uses): Likewise for param "start_insn".
8193 (sh_treg_combine::cbranch_trace): Likewise for field
8195 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8197 (sh_treg_combine::record_set_of_reg): Likewise for param
8198 "start_insn" and local "i".
8199 (sh_treg_combine::can_remove_cstore): Likewise for local
8201 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8203 (sh_treg_combine::execute): Likewise for local "i".
8204 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8206 (sparc_check_64): Likewise for second param.
8207 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8208 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8209 dyn_cast, using its insn method for typesafety and clarity.
8210 (empty_delay_slot): Strengthen param "insn" from rtx to
8212 (set_extends): Likewise.
8213 (sparc_check_64): Likewise.
8214 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8215 for locals "seq", "last_insn".
8216 (combine_bnp): Likewise for param "insn".
8217 (xstormy16_reorg): Likewise for local "insn".
8218 * config/v850/v850.c (substitute_ep_register): Likewise for params
8219 "first_insn", "last_insn" and local "insn".
8220 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8221 elements of "regs" array, and local "insn".
8222 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8223 * final.c (final_sequence): Strengthen this global from rtx to
8225 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8227 (final_scan_insn): Update assignment to "final_sequence" to be
8228 from "seq", the cast version of "body", for type-safety.
8229 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8230 "insns" from rtx to rtx_insn *.
8231 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8232 * genattr.c (main): When writing out generated insn-attr.h,
8233 strengthen params 1 and 3 of eligible_for_delay,
8234 eligible_for_annul_true, eligible_for_annul_false from rtx to
8236 * genattrtab.c (write_eligible_delay): Likewise when writing out
8237 generated insn-attrtab.c; also local "insn" the generated
8239 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8241 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8242 "start_label" from rtx to rtx_insn *.
8243 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8244 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8245 "insns" and local "insn".
8246 (validate_equiv_mem): Likewise for param "start" and local "insn".
8247 (memref_used_between_p): Likewise for params "start", "end" and
8249 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8251 * loop-doloop.c (doloop_optimize): Within region guarded by
8252 INSN_P (doloop_pat), introduce a new local rtx_insn *
8253 "doloop_insn" via a checked cast, and use it for typesafety,
8254 eventually writing the value back into doloop_pat.
8255 * output.h (final_sequence): Strengthen this global from rtx to
8257 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8258 reintroducing "insn" as an rtx_insn * via a checked cast.
8259 Strengthen param "attempt" and local "new_insn"from rtx to
8261 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8263 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8264 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8265 "p" in favor of more tightly-scoped replacements, sometimes rtx
8266 and sometimes rtx_insn *, as appropriate.
8267 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8268 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8269 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8270 local "trial" from rtx to rtx_insn *.
8271 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8272 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8273 rtx_sequence * and use methods for clarity and typesafety.
8274 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8275 rtx to rtx_insn *. Strenghten local "li" from rtx to
8276 rtx_insn_list * and use its methods for clarity and typesafety.
8277 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8279 (steal_delay_list_from_fallthrough): Likewise.
8280 (try_merge_delay_insns): Likewise for param "thread" and locals
8281 "trial", "next_trial", "delay_insn".
8282 (redundant_insn): Likewise for param "target" and local "trial".
8283 (own_thread_p): Likewise for param "thread" and locals
8284 "active_insn", "insn".
8285 (get_label_before): Likewise for param "insn".
8286 (fill_simple_delay_slots): Likewise for local "new_label"; use
8287 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8288 (label_before_next_insn): Strengthen return type and local "insn"
8289 from rtx to rtx_insn *.
8290 (relax_delay_slots): Likewise for locals "other", "tmp".
8291 (make_return_insns): Likewise for param "first" and locals "insn",
8292 "jump_insn", "prev". Move declaration of "pat" to its assignment
8293 and strengthen from rtx to rtx_sequence *. Use its methods for
8294 clarity and typesafety.
8295 * rtlanal.c (no_labels_between_p): Strengthen params from
8296 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8298 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8299 from const_rtx to const rtx_insn *.
8300 (reg_set_between_p): Rename param "from_insn" to
8301 "uncast_from_insn", and reintroduce "from_insn" as a
8302 const rtx_insn * via a checked cast.
8303 (modified_between_p): Likewise for param "start" as "uncast_start".
8304 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8305 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8306 "tmp", head" from rtx to rtx_insn *.
8307 (recompute_rev_top_order): Likewise for local "insn".
8308 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8309 * store-motion.c (build_store_vectors): Likewise for local "insn".
8310 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8311 for clarity and typesafety.
8312 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8314 (computation_cost): Likewise for local "seq".
8315 (get_address_cost): Likewise.
8317 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8319 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8321 (label_is_jump_target_p): Likewise for second param.
8323 * rtlanal.c (tablejump_p): Likewise for param "insn".
8324 (label_is_jump_target_p): Likewise for param "jump_insn".
8326 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8328 * rtl.h (find_first_parameter_load): Strengthen return type and
8329 both params from rtx to rtx_insn *.
8330 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8331 both params and locals "before", "first_set" from rtx to
8332 rtx_insn *. Remove now-redundant cast.
8333 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8335 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8337 * rtl.h (find_last_value): Delete.
8338 * rtlanal.c (find_last_value): Delete.
8340 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8342 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8343 from rtx to rtx_insn *.
8344 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8345 rtx "note" with new local rtx_insn * "new_head" when calculating
8346 head insn of new basic block.
8347 * combine.c (combine_split_insns): Strengthen return type and local
8348 "ret" from rtx to rtx_insn *.
8349 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8350 (try_combine): Eliminate local "m_split", splitting into new
8351 locals "m_split_insn" and "m_split_pat".
8352 (find_split_point): Strengthen local "seq" from rtx into
8354 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8355 locals "label", "branch".
8356 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8358 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8359 * dse.c (note_add_store_info): Likewise for fields "first",
8361 (note_add_store): Likewise for local "insn".
8362 (emit_inc_dec_insn_before): Likewise for locals "insn",
8364 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8365 (replace_read): Likewise for locals "insns", "this_insn".
8366 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8367 (notice_eh_throw): Likewise for param "insn".
8368 (before_next_cfi_note): Likewise for return type, param, and local
8370 (connect_traces): Likewise for local "note".
8371 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8372 (verify_rtl_sharing): Likewise.
8373 (unshare_all_rtl_in_chain): Likewise for param "insn".
8374 (get_first_nonnote_insn): Likewise for local "insn".
8375 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8376 "seq" and use its methods to clarify things.
8377 (next_insn): Strengthen return type from rtx to rtx_insn *.
8378 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8379 local rtx_insn * using a checked cast, dropping a checked cast
8380 made redundant by this change. Use a cast to and method of
8381 rtx_sequence to clarify the code.
8382 (previous_insn): Rename param "insn" to "uncast_insn" and
8383 reintroduce "insn" as a local rtx_insn * using a checked cast,
8384 dropping a checked cast made redundant by this change. Use a cast
8385 to and method of rtx_sequence to clarify the code.
8386 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8387 reintroduce "insn" as a local rtx_insn * using a checked cast,
8388 dropping a checked cast made redundant by this change.
8389 (next_nonnote_insn_bb): Likewise.
8390 (prev_nonnote_insn): Likewise.
8391 (prev_nonnote_insn_bb): Likewise.
8392 (next_nondebug_insn): Likewise.
8393 (prev_nondebug_insn): Likewise.
8394 (next_nonnote_nondebug_insn): Likewise.
8395 (prev_nonnote_nondebug_insn): Likewise.
8396 (next_real_insn): Likewise.
8397 (prev_real_insn): Likewise.
8398 (next_active_insn): Likewise.
8399 (prev_active_insn): Likewise.
8400 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8402 (prev_cc0_setter): Likewise.
8403 (try_split): Rename param "trial" to "uncast_trial" and
8404 reintroduce "insn" as a local rtx_insn * using a checked cast,
8405 dropping checked casts made redundant by this change.
8406 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8408 (remove_insn): Rename param "insn" to "uncast_insn" and
8409 reintroduce "insn" as a local rtx_insn * using a checked cast.
8410 (emit_pattern_after_setloc): Likewise for param "after", as
8412 (emit_pattern_after): Likewise. Strengthen local "prev" from
8414 (emit_pattern_before_setloc): Rename param "before" to
8415 "uncast_before" and reintroduce "before" as a local rtx_insn *
8416 using a checked cast. Strengthen locals "first", "last" from
8418 (emit_pattern_before): Likewise rename/cast param "before" to
8419 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8420 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8421 "first" and local "insn" from rtx to rtx_insn *.
8422 (copy_reg_eh_region_note_backward): Likewise for param "last"
8424 * expr.c (fixup_args_size_notes): Rename param "last" to
8425 "uncast_last" and reintroduce "last" as a local rtx_insn *
8426 using a checked cast. Strengthen local "insn" from rtx to
8428 * function.c (set_insn_locations): Strengthen param "insn" from
8430 (record_insns): Likewise for param "insns" and local "tmp".
8431 (active_insn_between): Rename param "tail" to
8432 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8433 using a checked cast.
8434 (thread_prologue_and_epilogue_insns): Split out top-level local
8435 rtx "seq" into three different rtx_insn * locals. Strengthen
8436 local "prologue_seq" from rtx to rtx_insn *.
8437 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8438 from rtx to rtx_insn *.
8439 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8440 (priority): Likewise for locals "prev_first", "twin".
8441 (setup_insn_max_reg_pressure): Likewise for param "after".
8442 (sched_setup_bb_reg_pressure_info): Likewise.
8443 (no_real_insns_p): Strengthen params from const_rtx to
8445 (schedule_block): Strengthen local "next_tail" from rtx to
8447 * ifcvt.c (find_active_insn_before): Strengthen return type and
8448 param "insn" from rtx to rtx_insn *.
8449 (find_active_insn_after): Likewise.
8450 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8451 (cond_exec_process_if_block): Likewise for locals "then_start",
8452 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8453 (noce_process_if_block): Likewise for local "jump".
8454 (merge_if_block): Likewise for two locals named "end".
8455 (cond_exec_find_if_block): Likewise for local "last_insn".
8456 * jump.c (delete_related_insns): Rename param "insn" to
8457 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8458 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8459 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8461 (split_reg): Likewise.
8462 * lra.c (lra_process_new_insns): Likewise.
8463 * modulo-sched.c (permute_partial_schedule): Strengthen param
8464 "last" from rtx to rtx_insn *.
8465 * optabs.c (add_equal_note): Likewise for param "insns" and local
8467 (expand_binop_directly): Add checked casts to rtx_insn * within
8468 NEXT_INSN (pat) uses.
8469 (expand_unop_direct): Likewise.
8470 (maybe_emit_unop_insn): Likewise.
8471 * recog.c (peep2_attempt): Strengthen locals "last",
8472 "before_try", "x" from rtx to rtx_insn *.
8473 * reorg.c (optimize_skip): Strengthen return type and local
8474 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8475 and locals "trial", "next_trial" from rtx to rtx_insn *.
8476 * resource.c (next_insn_no_annul): Strengthen return type and
8477 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8478 rtx_sequence to clarify the code.
8479 (mark_referenced_resources): Add a checked cast to rtx_insn *
8480 within PREV_INSN (x).
8481 (find_dead_or_set_registers): Strengthen return type, param
8482 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8483 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8485 (mark_target_live_regs): Strengthen params "insns" and "target",
8486 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8487 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8489 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8490 from rtx to rtx_insn *.
8491 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8492 from rtx to rtx_insn *.
8493 (copy_reg_eh_region_note_backward): Likewise.
8494 (unshare_all_rtl_in_chain): Likewise for sole param.
8495 (dump_rtl_slim): Strengthen second and third params from const_rtx
8496 to const rtx_insn *.
8497 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8498 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8499 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8500 "next_tail" from rtx to rtx_insn *.
8501 (begin_move_insn): Likewise for local "next".
8502 * sched-int.h (sched_free_deps): Likewise for first and second
8504 (no_real_insns_p): Strengthen both params from const_rtx to
8506 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8508 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8510 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8511 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8512 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8514 (debug_rtl_slim): Strengthen params "first" and "last" from
8515 const_rtx to const rtx_insn *.
8516 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8517 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8518 (convert_to_simple_return): Likewise for param "returnjump".
8519 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8521 (convert_to_simple_return): Likewise for param "returnjump".
8522 * valtrack.c (propagate_for_debug): Likewise for params
8524 * valtrack.h (propagate_for_debug): Likewise for second param.
8526 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8528 * output.h (insn_current_reference_address): Strengthen param
8529 from rtx to rtx_insn *.
8530 * final.c (insn_current_reference_address): Likewise.
8532 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8534 * basic-block.h (inside_basic_block_p): Strengthen param from
8535 const_rtx to const rtx_insn *.
8536 * cfgbuild.c (inside_basic_block_p): Likewise.
8538 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8540 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8542 (get_trace_info): Likewise for param "insn".
8543 (save_point_p): Likewise.
8544 (maybe_record_trace_start): Likewise for both params.
8545 (maybe_record_trace_start_abnormal): Likewise.
8546 (create_trace_edges): Likewise for sole param and for three of the
8548 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8549 to rtx_insn *, and update a call to pat->element to pat->insn.
8551 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8553 * function.h (struct expr_status): Convert field "x_forced_labels"
8554 from rtx_expr_list * to rtx_insn_list *.
8556 * cfgbuild.c (make_edges): Convert local "x" from an
8557 rtx_expr_list * to an rtx_insn_list *, replacing use of
8558 "element" method with "insn" method.
8559 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8560 * except.c (sjlj_emit_dispatch_table): Replace use of
8561 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8563 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8564 rtx_expr_list * to an rtx_insn_list *, replacing use of
8565 "element" method with "insn" method.
8566 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8567 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8568 rtx_insn *, adding a checked cast. Replace use of
8569 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8571 (expand_label): Likewise for local "label_r".
8573 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8575 * function.h (struct rtl_data): Convert field
8576 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8578 * rtl.h (remove_node_from_insn_list): New prototype.
8580 * builtins.c (expand_builtin): When prepending to
8581 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8583 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8584 to rtx_insn_list *, and use its "insn" method rather than
8586 * cfgrtl.c (delete_insn): Use new function
8587 remove_node_from_insn_list rather than
8588 remove_node_from_expr_list.
8589 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8590 to rtx_insn_list *, and use its "insn" method rather than
8592 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8593 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8594 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8595 from remove_node_from_expr_list.
8596 * stmt.c (expand_label): When prepending to
8597 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8600 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8602 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8603 and "x_naked_return_label" from rtx to rtx_code_label *.
8605 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8607 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8608 (SET_NEXT_INSN): Likewise.
8609 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8611 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8612 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8613 to split out the SEQUENCE from local "bundle", strengthening the
8614 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8615 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8616 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8617 and the type of the elements of the "slot" array from rtx to
8619 (reorg_split_calls): Likewise for locals "insn" and "next", and
8620 the type of the elements of the "slot" array.
8622 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8624 (frv_function_prologue): Likewise for locals "insn", "next",
8626 (frv_register_nop): Introduce a local "nop_insn" to be the
8627 rtx_insn * containing rtx "nop".
8629 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8630 used as an insn and sometimes as a pattern, so rename it to
8631 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8632 using it where dealing with the core insn.
8634 * config/picochip/picochip.c (reorder_var_tracking_notes):
8635 Strengthen locals "insn", "next", "last_insn", "queue",
8636 "next_queue", "prev" from rtx to rtx_insn *.
8638 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8639 the second param is an rtx_insn ** rather than an rtx **.
8640 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8641 from rtx to rtx_sequence *, and introduce local named "sequence",
8642 using methods of rtx_sequence to clarify the code.
8643 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8645 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8646 Rename param "after" to "uncast_after", reintroducing "after" as a
8647 local rtx_insn * with a checked cast.
8648 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8649 reintroducing "after" as a local rtx_insn * with a checked cast.
8650 Strengthen local "last" from rtx to rtx_insn * and remove the
8651 now-redundant checked casts.
8652 (copy_delay_slot_insn): Strengthen return type and param from rtx
8655 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8656 "last" from rtx to rtx_insn *.
8658 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8660 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8661 param from rtx to rtx_insn *.
8663 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8665 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8666 and local "insn" from rtx to rtx_insn *.
8667 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8668 (unfilled_slots_next): Likewise.
8669 (function_return_label): Strengthen from rtx to rtx_code_label *.
8670 (function_simple_return_label): Likewise.
8671 (first_active_target_insn): Strengthen return type and param from
8673 (find_end_label): Strengthen return type from rtx to
8674 rtx_code_label *; strengthen locals as appropriate.
8675 (emit_delay_sequence): Strengthen return type, param "insn" and
8676 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8677 and local "li" from rtx to rtx_insn_list *, using methods of
8678 rtx_insn_list for clarity and typesafety.
8679 (add_to_delay_list): Strengthen return type and param "insn" from
8680 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8681 rtx_insn_list * and use methods of rtx_insn_list.
8682 (delete_from_delay_slot): Strengthen return type, param "insn",
8683 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8684 Strengthen local "seq" from rtx to rtx_sequence *, and local
8685 "delay_list" from rtx to rtx_insn_list *, using methods of
8686 rtx_sequence for clarity and type-safety.
8687 (delete_scheduled_jump): Add checked cast when invoking
8688 delete_from_delay_slot. Strengthen local "trial" from rtx to
8690 (optimize_skip): Strengthen return type and local "delay_list"
8691 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8693 (steal_delay_list_from_target): Strengthen return type, param
8694 "delay_list" and local "new_delay_list" from rtx to
8695 rtx_insn_list *. Strengthen param "seq" from rtx to
8696 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8698 Split out local "temp" into multiple more-tightly scoped locals:
8699 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8700 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8701 Strengthen locals named "trial" from rtx to rtx_insn *.
8702 (steal_delay_list_from_fallthrough): Strengthen return type and
8703 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8704 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8705 Strengthen local "trial" from rtx to rtx_insn *.
8706 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8707 to rtx_insn_list * and use its methods. Strengthen local "pat"
8708 from rtx to rtx_sequence * and use its methods. Strengthen locals
8709 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8710 (get_label_before): Strengthen return type and local "label" from
8712 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8713 "next_trial", "next", prev". Strengthen local "delay_list" from
8714 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8716 (follow_jumps): Strengthen return type, param "label" and locals
8717 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8718 (fill_slots_from_thread): Strengthen return type, param
8719 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8720 "insn", "thread", "opposite_thread" and locals "new_thread",
8721 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8722 "sequence" from a checked cast to rtx_sequence so that we can call
8723 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8724 with an rtx_sequence *.
8725 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8726 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8727 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8728 (relax_delay_slots): Strengthen param "first" and locals "insn",
8729 "next", "trial", "delay_insn", "target_label" from rtx to
8730 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8731 Introduce a local "trial_seq" for PATTERN (trial) of type
8732 rtx_sequence *, in both cases using methods of rtx_sequence.
8733 (dbr_schedule): Strengthen param "first" and locals "insn",
8734 "next", "epilogue_insn" from rtx to rtx_insn *.
8736 2014-08-28 Richard Biener <rguenther@suse.de>
8738 PR tree-optimization/62283
8739 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8740 Do not peel loops for alignment where the vector loop likely
8741 doesn't run at least VF times.
8743 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8745 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8746 important_candidates. Consider all important candidates if
8747 IVS doesn't give any result. Remove check on ivs->upto.
8748 (try_add_cand_for): Call iv_ca_add_use only once.
8750 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8751 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8752 Anna Tikhonova <anna.tikhonova@intel.com>
8753 Ilya Tocar <ilya.tocar@intel.com>
8754 Andrey Turetskiy <andrey.turetskiy@intel.com>
8755 Ilya Verbin <ilya.verbin@intel.com>
8756 Kirill Yukhin <kirill.yukhin@intel.com>
8757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8759 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8760 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8762 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8763 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8764 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8765 (define_insn "*mul<mode>3"): Add EVEX version.
8767 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8769 Anna Tikhonova <anna.tikhonova@intel.com>
8770 Ilya Tocar <ilya.tocar@intel.com>
8771 Andrey Turetskiy <andrey.turetskiy@intel.com>
8772 Ilya Verbin <ilya.verbin@intel.com>
8773 Kirill Yukhin <kirill.yukhin@intel.com>
8774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8776 * config/i386/sse.md
8777 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8778 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8779 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8780 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8781 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8782 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8783 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8784 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8785 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8786 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8787 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8788 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8789 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8790 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8791 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8792 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8794 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8795 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8796 Anna Tikhonova <anna.tikhonova@intel.com>
8797 Ilya Tocar <ilya.tocar@intel.com>
8798 Andrey Turetskiy <andrey.turetskiy@intel.com>
8799 Ilya Verbin <ilya.verbin@intel.com>
8800 Kirill Yukhin <kirill.yukhin@intel.com>
8801 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8803 * config/i386/sse.md
8804 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8805 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8806 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8808 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8810 Anna Tikhonova <anna.tikhonova@intel.com>
8811 Ilya Tocar <ilya.tocar@intel.com>
8812 Andrey Turetskiy <andrey.turetskiy@intel.com>
8813 Ilya Verbin <ilya.verbin@intel.com>
8814 Kirill Yukhin <kirill.yukhin@intel.com>
8815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8817 * config/i386/sse.md
8818 (define_mode_iterator VI128_256): New.
8819 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8821 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8822 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8823 Anna Tikhonova <anna.tikhonova@intel.com>
8824 Ilya Tocar <ilya.tocar@intel.com>
8825 Andrey Turetskiy <andrey.turetskiy@intel.com>
8826 Ilya Verbin <ilya.verbin@intel.com>
8827 Kirill Yukhin <kirill.yukhin@intel.com>
8828 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8830 * config/i386/sse.md
8831 (define_mode_iterator VI8_256_512): New.
8832 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8834 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8835 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8837 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8839 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8841 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8842 pointer to the cumulative reloc value and return the value for
8844 (compute_reloc_for_rtx): Take a const_rtx. Call
8845 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8846 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8847 for_each_rtx for the CONST case.
8849 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8851 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8852 (mark_constants_in_pattern): ...this new function to iterate over
8854 (mark_constants): Update accordingly.
8856 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8858 * varasm.c: Include rtl-iter.h.
8859 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8860 Remove the pointer to the cumulative hashval_t and just return
8861 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8862 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8863 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8865 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8867 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8868 Give real type of data parameter. Remove return value.
8869 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8870 to iterate over subrtxes.
8872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8874 * var-tracking.c (use_narrower_mode_test): Turn from being a
8875 for_each_rtx callback to being a function that examines each
8877 (adjust_mems): Update accordingly.
8879 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8881 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8882 callback to being a function that examines each subrtx itself.
8883 Remove handling of null rtxes.
8884 (add_uses): Update accordingly.
8886 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8888 * var-tracking.c: Include rtl-iter.h.
8889 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8890 to being a function that examines each subrtx itself.
8891 (use_type): Update accordingly.
8893 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8895 * store-motion.c: Include rtl-iter.h.
8896 (extract_mentioned_regs_1): Delete.
8897 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8898 for_each_rtx to iterate over subrtxes.
8900 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8902 * sel-sched.c: Include rtl-iter.h
8903 (count_occurrences_1): Delete.
8904 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8905 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8909 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8910 * rtlanal.c (tls_referenced_p_1): Delete.
8911 (tls_referenced_p): Take a const_rtx rather than an rtx.
8912 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8914 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8916 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8917 (for_each_inc_dec): Take an rtx rather than an rtx *.
8918 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8919 (cselib_record_sets): Likewise.
8920 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8921 (check_for_inc_dec): Likewise.
8922 * rtlanal.c (for_each_inc_dec_ops): Delete.
8923 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8924 rather than a pointer to the memory address. Replace
8925 for_each_inc_dec_ops argument with separate function and data
8926 arguments. Abort on non-autoinc addresses.
8927 (for_each_inc_dec_find_mem): Delete.
8928 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8929 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8931 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8933 * rtl.h (find_all_hard_regs): Declare.
8934 * rtlanal.c (find_all_hard_regs): New function.
8935 (record_hard_reg_uses_1): Delete.
8936 (record_hard_reg_uses): Use find_all_hard_regs.
8938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8940 * rtl.h (replace_label_data): Delete.
8941 (replace_label): Take the old label, new label and update-nuses flag
8942 as direct arguments. Return void.
8943 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8944 * rtlanal.c (replace_label): Update interface as above. Handle
8945 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8946 iterator. Use FOR_EACH_SUBRTX_PTR.
8948 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8950 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8951 with const_rtx parameters.
8952 * varasm.c (get_pool_constant): Likewise.
8953 * rtlanal.c (rtx_referenced_p_1): Delete.
8954 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8955 Assert that the rtx we're looking for is nonnull. Allow searches
8956 for constant pool SYMBOL_REFs.
8958 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8960 * reload1.c: Include rtl-iter.h.
8961 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8962 to being a function that examines each subrtx itself.
8963 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8965 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8967 * regcprop.c (cprop_find_used_regs_1): Delete.
8968 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8972 * regcprop.c: Include rtl-iter.h.
8973 (kill_value): Take a const_rtx.
8974 (kill_autoinc_value): Turn from being a for_each_rtx callback
8975 to being a function that examines each subrtx itself.
8976 (copyprop_hardreg_forward_1): Update accordingly.
8978 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8980 * reg-stack.c: Include rtl-iter.h.
8981 (subst_stack_regs_in_debug_insn): Delete.
8982 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8983 instead of for_each_rtx.
8985 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8987 * lower-subreg.c (find_decomposable_subregs): Turn from being
8988 a for_each_rtx callback to being a function that examines each
8989 subrtx itself. Remove handling of null rtxes.
8990 (decompose_multiword_subregs): Update accordingly.
8992 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8994 * lower-subreg.c (adjust_decomposed_uses): Delete.
8995 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8996 Remove handling of null rtxes.
8998 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9000 * lower-subreg.c: Include rtl-iter.h.
9001 (resolve_subreg_use): Turn from being a for_each_rtx callback
9002 to being a function that examines each subrtx itself. Remove
9003 handling of null rtxes.
9004 (resolve_reg_notes, resolve_simple_move): Update accordingly.
9005 (decompose_multiword_subregs): Likewise.
9007 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9009 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9010 to being a function that examines each subrtx itself.
9011 (simplify_using_condition, simplify_using_initial_values): Update
9014 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9016 * loop-iv.c: Include rtl-iter.h.
9017 (find_single_def_src): New function.
9018 (replace_single_def_regs): Turn from being a for_each_rtx callback
9019 to being a function that examines each subrtx itself.
9020 (replace_in_expr, simplify_using_initial_values): Update accordingly.
9022 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9024 * jump.c (eh_returnjump_p_1): Delete.
9025 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9026 Remove handling of null rtxes.
9028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9030 * jump.c: Include rtl-iter.h.
9031 (returnjump_p_1): Delete.
9032 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9033 Remove handling of null rtxes.
9035 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9037 * ira.c: Include rtl-iter.h.
9038 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9039 to being a function that examines each subrtx itself. Remove
9040 handling of null rtxes.
9041 (update_equiv_regs): Update call accordingly.
9043 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9045 * fwprop.c: Include rtl-iter.h.
9046 (varying_mem_p): Turn from being a for_each_rtx callback to being
9047 a function that examines each subrtx itself.
9048 (propagate_rtx): Update accordingly.
9050 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9052 * function.c: Include rtl-iter.h
9053 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9054 callback to being a function that examines each subrtx itself.
9055 Return the changed flag.
9056 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9057 (instantiate_virtual_regs): Update calls accordingly.
9059 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9061 * final.c: Include rtl-iter.h.
9062 (mark_symbol_ref_as_used): Delete.
9063 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9066 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9068 * emit-rtl.c: Include rtl-iter.h.
9069 (find_auto_inc): Turn from being a for_each_rtx callback to being
9070 a function that examines each subrtx itself. Assume the first operand
9071 to an RTX_AUTOINC is the automodified register.
9072 (try_split): Update call accordingly.
9074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9076 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9077 Return a bool, inverting the result so that 0/false means "not ok".
9078 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9079 subrtxes of a CONST.
9080 (mem_loc_descriptor, add_const_value_attribute)
9081 (resolve_addr_in_expr): Update calls accordingly.
9083 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9085 * dwarf2out.c: Include rtl-iter.h.
9086 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9087 Remove unused data parameter. Return a bool, inverting the result
9088 so that 0/false means "not ok".
9089 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
9090 instead of for_each_rtx.
9092 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9094 * dse.c: Include rtl-iter.h.
9095 (check_mem_read_rtx): Change void * parameter to real type.
9096 Remove return value.
9097 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
9098 for_each_rtx. Don't handle null rtxes.
9100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9102 * df-problems.c: Include rtl-iter.h.
9103 (find_memory): Turn from being a for_each_rtx callback to being
9104 a function that examines each subrtx itself. Continue to look for
9105 volatile references even after a nonvolatile one has been found.
9106 (can_move_insns_across): Update calls accordingly.
9108 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9110 * ddg.c (walk_mems_2, walk_mems_1): Delete.
9111 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9112 to iterate over subrtxes. Return a bool rather than an int.
9114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9116 * ddg.c: Include rtl-iter.h.
9117 (mark_mem_use_1): Rename to...
9118 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
9119 instead of for_each_rtx.
9120 (mem_read_insn_p): Update accordingly.
9122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9124 * cse.c (change_cc_mode_args): Delete.
9125 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9126 a function that examines each subrtx itself. Take the fields of
9127 change_cc_mode_args as argument and return void.
9128 (cse_change_cc_mode_insn): Update calls accordingly.
9130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9132 * cse.c (is_dead_reg): Change argument to const_rtx.
9133 (dead_debug_insn_data): Delete.
9134 (is_dead_debug_insn): Expand commentary. Turn from being a
9135 for_each_rtx callback to being a function that examines
9136 each subrtx itself. Take the fields of dead_debug_insn_data
9138 (delete_trivially_dead_insns): Update call accordingly.
9140 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9142 * cse.c (check_for_label_ref): Move earlier in file. Turn from
9143 being a for_each_rtx callback to being a function that examines
9145 (cse_extended_basic_block): Update call accordingly.
9147 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9149 * cse.c (check_dependence_data): Delete.
9150 (check_dependence): Change from being a for_each_rtx callback to being
9151 a function that examines all subrtxes itself. Don't handle null rtxes.
9152 (invalidate): Update call accordingly.
9154 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9156 * cse.c: Include rtl-iter.h.
9157 (approx_reg_cost_1): Delete.
9158 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9159 Don't handle null rtxes.
9161 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9163 * cfgcleanup.c: Include rtl-iter.h.
9164 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9165 to being a function that examines each subrtx itself.
9166 (thread_jump): Update accordingly.
9168 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9170 * combine-stack-adj.c: Include rtl-iter.h.
9171 (record_stack_refs_data): Delete.
9172 (record_stack_refs): Turn from being a for_each_rtx callback
9173 to being a function that examines each subrtx itself.
9174 Take a pointer to the reflist. Invert sense of return value
9175 so that true means success and false means failure. Don't
9177 (combine_stack_adjustments_for_block): Update accordingly.
9179 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9181 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9182 callback to a function that takes an rtx and returns a bool
9183 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9186 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9188 * combine.c: Include rtl-iter.h.
9189 (unmentioned_reg_p_1): Delete.
9190 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9191 Don't handle null rtxes.
9193 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9195 * calls.c: Include rtl-iter.h.
9196 (internal_arg_pointer_based_exp_1): Delete.
9197 (internal_arg_pointer_based_exp): Take a const_rtx.
9198 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9200 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9202 * caller-save.c: Include rtl-iter.h.
9203 (add_used_regs_1): Delete.
9204 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9205 to iterate over subrtxes. Assert that any remaining pseudos
9208 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9210 * bt-load.c: Include rtl-iter.h.
9211 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9212 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9213 to iterate over subrtxes.
9214 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9215 find_btr_use rather than btr_referenced_p.
9217 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9219 * alias.c: Include rtl-iter.h.
9220 (refs_newer_value_cb): Delete.
9221 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9223 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9225 * rtl-iter.h: New file.
9226 * rtlanal.c: Include it.
9227 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9228 (generic_subrtx_iterator <T>::add_single_to_queue)
9229 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9230 (generic_subrtx_iterator <T>::free_array): New functions.
9231 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9232 (generic_subrtx_iterator <const_rtx_accessor>)
9233 (generic_subrtx_iterator <rtx_var_accessor>
9234 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9235 (setup_reg_subrtx_bounds): New function.
9236 (init_rtlanal): Call it.
9238 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9241 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9243 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9245 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9247 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9249 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9251 * rtl.h (JUMP_LABEL_AS_INSN): New.
9253 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9255 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9257 (alloc_EXPR_LIST): Strengthen return type from rtx to
9259 (remove_free_EXPR_LIST_node): Likewise for param.
9260 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9261 from rtx to rtx_expr_list *.
9262 * sched-int.h (struct deps_desc): Strengthen fields
9263 "pending_read_mems" and "pending_write_mems" from rtx to
9266 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9267 rtx to rtx_expr_list *.
9268 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9269 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9271 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9272 from rtx to rtx_expr_list *.
9273 * loop-iv.c (simplify_using_initial_values): Strengthen local
9274 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9275 "pnote_next" from rtx * to rtx_expr_list **.
9276 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9277 param "exprp" from rtx * to rtx_expr_list **.
9278 (add_insn_mem_dependence): Strengthen local "mem_list" from
9279 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9281 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9282 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9283 param "old_mems_p" from rtx * to rtx_expr_list **.
9284 * var-tracking.c (struct adjust_mem_data): Strengthen field
9285 "side_effects" from rtx to rtx_expr_list *.
9286 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9288 (prepare_call_arguments): Likewise.
9290 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9292 * function.h (struct rtl_data): Strengthen field
9293 "x_stack_slot_list" from rtx to rtx_expr_list *.
9295 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9296 when assigning to stack_slot_list.
9298 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9300 * function.h (struct rtl_data): Strengthen field
9301 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9302 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9303 rtx * to rtx_expr_list **.
9305 * cfgbuild.c (make_edges): In loop over
9306 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9307 rtx_expr_list *, and use methods of the latter class to clarify
9309 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9310 rtx_expr_list *, and use methods of the latter class to clarify
9312 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9313 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9314 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9315 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9316 to rtx_expr_list *. Use methods of the latter class to clarify
9319 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9321 * function.h (struct expr_status): Strengthen field
9322 "x_forced_labels" from rtx to rtx_expr_list *.
9324 * cfgbuild.c (make_edges): Split local "x" into two locals,
9325 strengthening one from rtx to rtx_expr_list *, and using methods
9327 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9328 loop over forced_labels, introduce strengthen it from rtx to
9329 rtx_expr_list *, using methods to clarify the code.
9330 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9331 to rtx_expr_list *, using methods of said class to clarify the
9333 * reload1.c (set_initial_label_offsets): Split local "x" into two
9334 per-loop variables, strengthening the first from rtx to
9335 rtx_expr_list * and using methods.
9337 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9339 * coretypes.h (class rtx_expr_list): Add forward declaration.
9340 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9341 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9342 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9343 invariant: GET_CODE (X) == EXPR_LIST.
9344 (is_a_helper <rtx_expr_list *>::test): New.
9345 (rtx_expr_list::next): New.
9346 (rtx_expr_list::element): New.
9347 (gen_rtx_EXPR_LIST): New.
9349 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9351 * varasm.c (mark_constants): Convert a GET_CODE check into a
9352 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9353 Use methods of rtx_sequence to clarify the code.
9355 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9357 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9358 local "seq" via a checked cast, and use methods of rtx_sequence
9359 to simplify the code.
9361 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9363 * resource.c (mark_referenced_resources): Strengthen local
9364 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9365 using methods of rtx_sequence to clarify the code.
9366 (find_dead_or_set_registers): Within the switch statement, convert
9367 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9368 the JUMP_P handling, introduce another local "seq", adding a
9369 checked cast to rtx_sequence *. In both cases, use methods of
9370 rtx_sequence to clarify the code.
9371 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9372 via a checked cast, and use methods of rtx_sequence to simplify
9375 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9377 * reorg.c (redundant_insn): In two places in the function, replace
9378 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9379 usings methods of rtx_sequence to clarify the code.
9381 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9383 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9384 local "seq" with a checked cast, and use methods of rtx_sequence
9385 to clarify the code.
9387 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9389 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9390 with a checked cast, in the region for where we know it's a
9391 SEQUENCE. Use methods of rtx_sequence.
9393 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9395 * final.c (get_attr_length_1): Replace GET_CODE check with a
9396 dyn_cast, introducing local "seq" and the use of methods of
9398 (shorten_branches): Likewise, introducing local "body_seq".
9399 Strengthen local "inner_insn" from rtx to rtx_insn *.
9400 (reemit_insn_block_notes): Replace GET_CODE check with a
9401 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9402 Use methods of rtx_sequence.
9403 (final_scan_insn): Likewise, introducing local "seq" for when
9404 "body" is known to be a SEQUENCE, using its methods.
9406 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9408 * except.c (can_throw_external): Strengthen local "seq" from rtx
9409 to rtx_sequence *. Use methods of rtx_sequence.
9410 (insn_nothrow_p): Likewise.
9412 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9414 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9415 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9416 Use methods of rtx_sequence.
9417 (scan_trace): Likewise for local "pat".
9419 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9421 * coretypes.h (class rtx_sequence): Add forward declaration.
9422 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9423 invariant: GET_CODE (X) == SEQUENCE.
9424 (is_a_helper <rtx_sequence *>::test): New.
9425 (is_a_helper <const rtx_sequence *>::test): New.
9426 (rtx_sequence::len): New.
9427 (rtx_sequence::element): New.
9428 (rtx_sequence::insn): New.
9430 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9432 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9434 (alloc_INSN_LIST): Strengthen return type from rtx to
9436 (copy_INSN_LIST): Likewise for return type and param.
9437 (concat_INSN_LIST): Likewise for both params and return type.
9438 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9439 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9440 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9441 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9443 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9444 "implicit_sets", "control_uses", "clobbers" from rtx to
9446 (struct deps_desc): Likewise for fields "pending_read_insns",
9447 "pending_write_insns", "pending_jump_insns",
9448 "last_pending_memory_flush", "last_function_call",
9449 "last_function_call_may_noreturn", "sched_before_next_call",
9450 "sched_before_next_jump".
9451 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9452 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9454 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9455 from rtx to rtx_insn_list *.
9456 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9459 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9460 to rtx_insn_list **.
9461 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9463 (queue_insn): Likewise for local "link".
9464 (struct haifa_saved_data): Strengthen field "insn_queue" from
9465 rtx * to rtx_insn_list **.
9466 (save_backtrack_point): Update allocation of save->insn_queue to
9467 reflect the strengthening of elements from rtx to rtx_insn_list *.
9468 (queue_to_ready): Strengthen local "link" from rtx to
9469 rtx_insn_list *; use methods "next" and "insn" when traversing the
9471 (early_queue_to_ready): Likewise for locals "link", "next_link",
9473 (schedule_block): Update allocation of insn_queue to reflect the
9474 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9475 local "link" from rtx to rtx_insn_list *, and use methods when
9477 (add_to_speculative_block): Strengthen locals "twins" and
9478 "next_node" from rtx to rtx_insn_list *, and use methods when
9479 working with them. Strengthen local "twin" from rtx to
9480 rtx_insn *, eliminating a checked cast.
9481 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9482 from rtx to rtx_insn_list *, and use methods when working with
9485 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9486 from rtx to rtx_insn_list *, adding a checked cast.
9487 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9489 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9490 "newlink" from rtx to rtx_insn_list *. Strengthen local
9491 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9492 from rtx to rtx_insn *.
9493 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9494 from rtx to rtx_insn_list *. Use methods of the latter class.
9495 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9496 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9497 (remove_free_INSN_LIST_node): Strengthen return type and local
9498 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9499 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9500 rtx_insn_list *, using "insn" method.
9502 * sched-deps.c (add_dependence_list): Strengthen param "list"
9503 from rtx to rtx_insn_list *, and use methods when working with it.
9504 (add_dependence_list_and_free): Strengthen param "listp" from
9505 rtx * to rtx_insn_list **.
9506 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9507 to rtx_insn_list **, and use methods when working with *listp.
9508 (remove_from_both_dependence_lists): Strengthen param "listp" from
9509 rtx * to rtx_insn_list **
9510 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9511 to rtx_insn_list **. Eliminate local "link", in favor of two new
9512 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9514 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9515 by introducing local "cond_deps".
9516 (remove_from_deps): Strengthen param "insn" from rtx to
9519 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9520 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9521 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9522 Use methods of rtx_insn_list.
9524 * store-motion.c (struct st_expr): Strengthen fields
9525 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9526 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9528 (find_moveable_store): Split out "tmp" into multiple more-tightly
9529 scoped locals. Use methods of rtx_insn_list *.
9530 (compute_store_table): Strengthen local "tmp" from rtx to
9531 rtx_insn *. Use methods of rtx_insn_list *.
9533 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9535 * coretypes.h (class rtx_insn_list): Add forward declaration.
9536 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9537 (is_a_helper <rtx_insn_list *>::test): New.
9538 (rtx_insn_list::next): New.
9539 (rtx_insn_list::insn): New.
9540 (gen_rtx_INSN_LIST): Add prototype.
9541 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9542 * gengenrtl.c (special_rtx): Add INSN_LIST.
9544 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9546 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9547 "prev" from rtx to rtx_insn *.
9549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9551 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9552 functions. Require merely an rtx for now, not an rtx_insn *.
9553 (BLOCK_FOR_INSN): Likewise.
9554 (INSN_LOCATION): Likewise.
9555 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9557 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9559 * rtl.h (PATTERN): Convert this macro into a pair of inline
9560 functions, for now, requiring const_rtx and rtx.
9562 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9564 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9566 (final_postscan_insn): Likewise.
9567 (adjust_cost): Likewise.
9568 (adjust_priority): Likewise.
9569 (variable_issue): Likewise.
9570 (macro_fusion_pair_p): Likewise.
9571 (dfa_post_cycle_insn): Likewise.
9572 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9573 (first_cycle_multipass_issue): Likewise.
9574 (dfa_new_cycle): Likewise.
9575 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9576 (speculate_insn): Likewise for param "insn".
9577 (gen_spec_check): Likewise for params "insn" and "label".
9578 (get_insn_spec_ds): Likewise for param "insn".
9579 (get_insn_checked_ds): Likewise.
9580 (dispatch_do): Likewise.
9581 (dispatch): Likewise.
9582 (cannot_copy_insn_p): Likewise.
9583 (invalid_within_doloop): Likewise.
9584 (legitimate_combined_insn): Likewise.
9588 * doc/tm.texi: Automatically updated to reflect changes to
9591 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9593 (schedule_block): Likewise.
9594 (sched_init): Likewise.
9595 (sched_speculate_insn): Strengthen param "insn" from rtx to
9597 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9599 * hooks.c (hook_bool_rtx_true): Rename to...
9600 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9602 (hook_constcharptr_const_rtx_null): Rename to...
9603 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9604 first param from const_rtx to const rtx_insn *.
9605 (hook_bool_rtx_int_false): Rename to...
9606 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9607 param from rtx to rtx_insn *.
9608 (hook_void_rtx_int): Rename to...
9609 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9612 * hooks.h (hook_bool_rtx_true): Rename to...
9613 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9615 (hook_bool_rtx_int_false): Rename to...
9616 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9617 param from rtx to rtx_insn *.
9618 (hook_void_rtx_int): Rename to...
9619 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9621 (hook_constcharptr_const_rtx_null): Rename to...
9622 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9623 first param from const_rtx to const rtx_insn *.
9625 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9626 and local "prev" from rtx to rtx_insn *.
9628 * sched-int.h (sched_speculate_insn): Strengthen first param from
9631 * sel-sched.c (create_speculation_check): Likewise for local "label".
9632 * targhooks.c (default_invalid_within_doloop): Strengthen param
9633 "insn" from const_rtx to const rtx_insn *.
9634 * targhooks.h (default_invalid_within_doloop): Strengthen param
9635 from const_rtx to const rtx_insn *.
9637 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9638 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9640 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9642 (arc_invalid_within_doloop): Likewise, with const.
9644 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9645 (arm_cannot_copy_insn_p): Likewise for param "insn".
9646 (arm_unwind_emit): Likewise.
9648 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9651 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9652 (c6x_variable_issue): Likewise. Removed now-redundant checked
9654 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9656 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9657 Likewise for param "insn".
9658 (epiphany_mode_after): Likewise.
9659 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9660 params "insn", "dep_insn".
9661 (epiphany_mode_needed): Likewise for param "insn".
9662 (epiphany_mode_after): Likewise.
9664 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9665 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9666 (ix86_avx_u128_mode_needed): Likewise.
9667 (ix86_i387_mode_needed): Likewise.
9668 (ix86_mode_needed): Likewise.
9669 (ix86_avx_u128_mode_after): Likewise.
9670 (ix86_mode_after): Likewise.
9671 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9672 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9673 (ix86_adjust_priority): Likewise for param "insn".
9674 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9675 (do_dispatch): Likewise.
9676 (has_dispatch): Likewise.
9677 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9679 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9680 reflect renaming of default hook implementation from
9681 hook_constcharptr_const_rtx_null to
9682 hook_constcharptr_const_rtx_insn_null.
9683 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9685 (ia64_variable_issue): Likewise for param "insn".
9686 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9687 (ia64_dfa_new_cycle): Likewise.
9688 (ia64_get_insn_spec_ds): Likewise.
9689 (ia64_get_insn_checked_ds): Likewise.
9690 (ia64_speculate_insn): Likewise.
9691 (ia64_gen_spec_check): Likewise for params "insn", "label".
9692 (ia64_asm_unwind_emit): Likewise for param "insn".
9694 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9696 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9698 (m68k_sched_variable_issue): Likewise for param "insn".
9700 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9703 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9704 Likewise for params "insn", "dep".
9706 * config/mips/mips.c (mips_adjust_cost): Likewise.
9707 (mips_variable_issue): Likewise for param "insn".
9708 (mips_final_postscan_insn): Likewise.
9710 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9711 for params "insn", "dep".
9713 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9715 (pa_adjust_priority): Likewise for param "insn".
9717 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9718 Likewise for params "insn", "dep_insn".
9720 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9722 (rs6000_variable_issue): Likewise.
9723 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9724 (rs6000_debug_adjust_cost): Likewise.
9725 (rs6000_adjust_priority): Likewise for param "insn".
9726 (rs6000_use_sched_lookahead_guard): Likewise.
9727 (get_next_active_insn): Likewise for return type and both params.
9728 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9729 and locals "insn", "next_insn".
9730 (pad_groups): Likewise.
9732 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9734 (s390_cannot_copy_insn_p): Likewise.
9735 (s390_sched_variable_issue): Likewise for third param, eliminating
9737 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9738 default hook implementation from hook_constcharptr_const_rtx_null
9739 to hook_constcharptr_const_rtx_insn_null.
9741 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9742 from rtx to rtx_insn *.
9743 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9744 (sh_variable_issue): Likewise for param "insn".
9745 (sh_dfa_new_cycle): Likewise.
9746 (sh_mode_needed): Likewise.
9747 (sh_mode_after): Likewise.
9749 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9750 params "insn", "dep_insn".
9751 (hypersparc_adjust_cost): Likewise.
9752 (sparc_adjust_cost): Likewise.
9754 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9755 param, eliminated checked cast.
9756 (spu_sched_adjust_cost): Likewise for first and third params.
9758 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9759 params "insn" and "dep_insn" from rtx to rtx_insn *.
9761 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9763 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9765 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9766 (set_is_load_p): ...this, updating to work on a SET pattern rather
9768 (is_store_insn): Rename to...
9769 (set_is_store_p): ...this, updating to work on a SET pattern
9770 rather than an insn.
9771 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9772 top of function to where it is needed. Rewrite the bogus
9773 condition that checks for "insn" and "dep" being PARALLEL to
9774 instead use single_set, introducing locals "insn_set" and
9775 "dep_set". Given that we only ever returned "cost" for a non-pair
9776 of SETs, bail out early if we don't have a pair of SET.
9777 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9778 use the new locals "insn_set" and "dep_set", and update calls to
9779 is_load_insn and is_store_insn to be calls to set_is_load_p and
9782 2014-08-27 Guozhi Wei <carrot@google.com>
9785 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9786 amount before using it.
9788 2014-08-27 Richard Biener <rguenther@suse.de>
9790 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9791 get_maxval_strlen inside a more useful API.
9792 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9793 (gimple_fold_builtin): ... caller.
9794 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9795 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9796 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9797 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9798 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9799 gimple_fold_builtin_sprintf): Adjust to compute maxval
9802 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9805 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9807 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9809 Anna Tikhonova <anna.tikhonova@intel.com>
9810 Ilya Tocar <ilya.tocar@intel.com>
9811 Andrey Turetskiy <andrey.turetskiy@intel.com>
9812 Ilya Verbin <ilya.verbin@intel.com>
9813 Kirill Yukhin <kirill.yukhin@intel.com>
9814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9816 * config/i386/sse.md
9817 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9818 Use `concat_tg_mode' attribute to determine asm register size.
9820 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9821 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9822 Anna Tikhonova <anna.tikhonova@intel.com>
9823 Ilya Tocar <ilya.tocar@intel.com>
9824 Andrey Turetskiy <andrey.turetskiy@intel.com>
9825 Ilya Verbin <ilya.verbin@intel.com>
9826 Kirill Yukhin <kirill.yukhin@intel.com>
9827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9829 * config/i386/sse.md
9830 (define_mode_iterator VI48_AVX512VL): New.
9831 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9832 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9833 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9834 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9835 with VI1): Change mode iterator.
9836 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9837 with VI_ULOADSTORE_BW_AVX512VL): New.
9838 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9839 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9840 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9841 with VI1): Change mode iterator.
9842 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9843 with VI_ULOADSTORE_BW_AVX512VL): New.
9844 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9845 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9846 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9847 with VI1): Change mode iterator.
9848 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9849 with VI_ULOADSTORE_BW_AVX512VL): New.
9850 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9851 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9852 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9853 (define_insn "<avx512>_storedqu<mode>_mask" with
9854 VI48_AVX512VL): New.
9855 (define_insn "<avx512>_storedqu<mode>_mask" with
9856 VI12_AVX512VL): Ditto.
9858 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9859 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9860 Anna Tikhonova <anna.tikhonova@intel.com>
9861 Ilya Tocar <ilya.tocar@intel.com>
9862 Andrey Turetskiy <andrey.turetskiy@intel.com>
9863 Ilya Verbin <ilya.verbin@intel.com>
9864 Kirill Yukhin <kirill.yukhin@intel.com>
9865 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9867 * config/i386/sse.md
9868 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9869 (define_mode_iterator VI48_AVX512BW): New.
9870 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9871 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9872 with VI48_AVX2_48_AVX512F): New.
9873 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9874 with VI2_AVX512VL): Ditto.
9876 2014-08-27 Richard Biener <rguenther@suse.de>
9879 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9880 (fold_builtin_3): Do not fold strcat_chk here.
9881 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9883 (gimple_fold_builtin): Fold strcat_chk here.
9885 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9887 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9888 * dwarf2out.c (dwarf2out_decl): Make static.
9890 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9892 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9894 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9896 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9897 from rtx to rtx_insn *.
9898 (cselib_lookup_from_insn): Likewise for final param.
9899 (cselib_subst_to_values_from_insn): Likewise.
9900 (cselib_add_permanent_equiv): Likewise.
9902 * cselib.c (cselib_current_insn): Likewise for this variable.
9903 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9904 (cselib_lookup_from_insn): Likewise.
9905 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9906 "save_cselib_current_insn".
9907 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9909 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9910 from rtx to rtx_insn *.
9912 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9914 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9917 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9919 * df.h (df_dump_insn_problem_function): Strengthen first param of
9920 this callback from const_rtx to const rtx_insn *.
9921 (struct df_insn_info): Strengthen field "insn" from rtx to
9923 (DF_REF_INSN): Eliminate this function, reinstating the older
9925 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9926 (df_reg_defined): Likewise.
9927 (df_find_use): Likewise.
9928 (df_reg_used): Likewise.
9929 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9931 (df_dump_insn_bottom): Likewise.
9932 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9933 (df_insn_debug_regno): Likewise.
9934 (debug_df_insn): Likewise.
9935 (df_rd_simulate_one_insn): Likewise for param 2.
9936 (df_word_lr_simulate_defs): Likewise for param 1.
9937 (df_word_lr_simulate_uses): Likewise.
9938 (df_md_simulate_one_insn): Likewise for param 2.
9939 (df_simulate_find_noclobber_defs): Likewise for param 1.
9940 (df_simulate_find_defs): Likewise.
9941 (df_simulate_defs): Likewise.
9942 (df_simulate_uses): Likewise.
9943 (df_simulate_one_insn_backwards): Likewise for param 2.
9944 (df_simulate_one_insn_forwards): Likewise.
9945 (df_uses_create): Likewise for param 2.
9946 (df_insn_create_insn_record): Likewise for param 1.
9947 (df_insn_delete): Likewise.
9948 (df_insn_rescan): Likewise.
9949 (df_insn_rescan_debug_internal): Likewise.
9950 (df_insn_change_bb): Likewise.
9951 (df_notes_rescan): Likewise.
9952 * rtl.h (remove_death): Likewise for param 2.
9953 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9955 * sched-int.h (reemit_notes): Strengthen param from rtx to
9957 * valtrack.h (propagate_for_debug): Likewise for param 1.
9959 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9960 local "tmp_rtx" from const_rtx to const rtx_insn *.
9961 * combine.c (remove_death): Strengthen param "insn" from rtx to
9963 (move_deaths): Likewise for local "where_dead".
9964 * cse.c (delete_trivially_dead_insns): Introduce local
9965 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9966 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9968 (df_reg_defined): Likewise.
9969 (df_find_use): Likewise.
9970 (df_reg_used): Likewise.
9971 (df_dump_insn_problem_data): Strengthen param "insn" from
9972 const_rtx to const rtx_insn *.
9973 (df_dump_insn_top): Likewise.
9974 (df_dump_insn_bottom): Likewise.
9975 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9976 (df_insn_debug_regno): Likewise.
9977 (debug_df_insn): Likewise.
9978 (DF_REF_INSN): Delete.
9979 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9980 from rtx to rtx_insn *.
9981 (df_chain_insn_top_dump): Strengthen param "insn" from
9982 const_rtx to const rtx_insn *.
9983 (df_chain_insn_bottom_dump): Likewise.
9984 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9986 (df_word_lr_simulate_uses): Likewise.
9987 (df_print_note): Likewise.
9988 (df_remove_dead_and_unused_notes): Likewise.
9989 (df_set_unused_notes_for_mw): Likewise.
9990 (df_set_dead_notes_for_mw): Likewise.
9991 (df_create_unused_note): Likewise.
9992 (df_simulate_find_defs): Likewise.
9993 (df_simulate_find_uses): Likewise.
9994 (df_simulate_find_noclobber_defs): Likewise.
9995 (df_simulate_defs): Likewise.
9996 (df_simulate_uses): Likewise.
9997 (df_simulate_one_insn_backwards): Likewise.
9998 (df_simulate_one_insn_forwards): Likewise.
9999 (df_md_simulate_one_insn): Likewise.
10000 * df-scan.c (df_uses_create): Likewise.
10001 (df_insn_create_insn_record): Likewise.
10002 (df_insn_delete): Likewise.
10003 (df_insn_rescan): Likewise.
10004 (df_insn_rescan_debug_internal): Likewise.
10005 (df_insn_change_bb): Likewise.
10006 (df_notes_rescan): Likewise.
10007 (df_refs_add_to_chains): Likewise.
10008 (df_insn_refs_verify): Likewise.
10009 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10010 when invoking df_insn_delete.
10011 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10012 (set_unique_reg_note): Add checked cast.
10013 * final.c (cleanup_subreg_operands): Likewise.
10014 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10015 "insn" from rtx to rtx_insn *.
10016 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10017 "last" from rtx to rtx_insn *.
10018 * ira-emit.c (change_regs_in_insn): New function.
10019 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10020 Invoke change_regs_in_insn rather than change_regs.
10021 * ira.c (update_equiv_regs): Strengthen locals "insn",
10022 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
10023 for_each_rtx_in_insn rather than for_each_rtx.
10024 * recog.c (confirm_change_group): Add checked casts.
10025 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10027 (peep2_fill_buffer): Add checked cast.
10028 * rtlanal.c (remove_note): Likewise.
10029 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10030 locals "next" "end" from rtx to rtx_insn *.
10032 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10034 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10036 (struct reg_use_data): Likewise for field "insn".
10037 (insn_cost): Likewise for param.
10038 (real_insn_for_shadow): Likewise for return type and param.
10039 (increase_insn_priority): Likewise for param 1.
10040 (debug_dependencies): Likewise for both params.
10042 * haifa-sched.c (insn_delay): Likewise for param "insn".
10043 (real_insn_for_shadow): Likewise for return type and param "insn".
10044 (update_insn_after_change): Likewise for param "insn".
10045 (recompute_todo_spec): Likewise for param "next" and locals "pro",
10047 (insn_cost): Likewise for param "insn".
10048 (increase_insn_priority): Likewise.
10049 (calculate_reg_deaths): Likewise.
10050 (setup_insn_reg_pressure_info): Likewise.
10051 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10052 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10053 (model_recompute): Likewise.
10054 (must_restore_pattern_p): Likewise for param "next".
10055 (model_excess_cost): Likewise for param "insn".
10056 (queue_remove): Likewise.
10057 (adjust_priority): Likewise for param "prev".
10058 (update_register_pressure): Likewise for param "insn".
10059 (setup_insn_max_reg_pressure): Likewise for local "insn".
10060 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10061 (model_add_to_schedule): Likewise.
10062 (model_reset_queue_indices): Likewise for local "insn".
10063 (unschedule_insns_until): Strengthen local "recompute_vec" from
10064 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
10065 "con" from rtx to rtx_insn *.
10066 (restore_last_backtrack_point): Likewise for both locals "x". Add
10068 (estimate_insn_tick): Likewise for param "insn".
10069 (commit_schedule): Likewise for params "prev_head", "tail" and
10071 (verify_shadows): Likewise for locals "i1", "i2".
10072 (dump_insn_stream): Likewise for params "head", "tail" and locals
10073 "next_tail", "insn".
10074 (schedule_block): Likewise for locals "insn", "x". Add a checked
10076 (fix_inter_tick): Likewise for params "head", "tail".
10077 (create_check_block_twin): Likewise for local "jump".
10078 (haifa_change_pattern): Likewise for param "insn".
10079 (haifa_speculate_insn): Likewise.
10080 (dump_new_block_header): Likewise for params "head", "tail".
10081 (fix_jump_move): Likewise for param "jump".
10082 (move_block_after_check): Likewise.
10083 (sched_init_insn_luid): Likewise for param "insn".
10084 (sched_init_luids): Likewise for local "insn".
10085 (insn_luid): Likewise for param "insn".
10086 (init_h_i_d): Likewise.
10087 (haifa_init_h_i_d): Likewise for local "insn".
10088 (haifa_init_insn): Likewise for param "insn".
10089 * sched-deps.c (add_dependence): Likewise for local "real_pro",
10091 (create_insn_reg_use): Likewise for param "insn".
10092 (setup_insn_reg_uses): Likewise. Add a checked cast.
10093 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10094 "tail" from rtx to rtx_insn *.
10095 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10096 "insn", "next_tail".
10098 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10100 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10101 from rtx to rtx_insn *.
10102 (model_add_to_schedule): Likewise for locals "start", "end",
10105 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10107 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10109 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
10110 "to" and locals "insn", "next", "copy". Remove now-redundant
10113 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10115 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10116 rtx_insn * and param 4 from rtx * to rtx_insn **.
10117 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10118 param 2 from rtx * to rtx_insn **.
10120 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10121 rtx_insn * and final param from rtx * to rtx_insn **.
10123 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10124 from rtx to rtx_insn *.
10125 (try_head_merge_bb): Likewise for both locals named "move_upto".
10126 * df-problems.c (can_move_insns_across): Likewise for params
10127 "from", "to", "across_from", "across_to" and locals "insn",
10128 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
10130 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10131 from rtx to rtx_insn *.
10132 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10133 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10134 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10136 (noce_try_abs): Likewise.
10137 (noce_get_condition): Likewise for param "jump". Strengthen param
10138 "earliest" from rtx * to rtx_insn **.
10139 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10141 (find_cond_trap): Likewise.
10142 (dead_or_predicable): Likewise for local "earliest".
10143 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
10145 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10146 and local "prev". Strengthen param "earliest" from rtx * to
10148 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10149 Strengthen param "earliest" from rtx * to rtx_insn **.
10151 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10153 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10154 "to" and local "insn" from rtx to rtx_insn *.
10156 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10158 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10159 from rtx to rtx_insn *.
10160 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10161 (code_motion_path_driver): Likewise for local "last_insn".
10162 (simplify_changed_insns): Likewise for local "insn".
10164 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10166 * rtl.h (push_to_sequence): Strengthen param from rtx to
10168 (push_to_sequence2): Likewise for both params.
10169 (delete_insns_since): Likewise for param.
10170 (reorder_insns_nobb): Likewise for all three params.
10171 (set_new_first_and_last_insn): Likewise for both params.
10173 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10174 rtx_insn *. Remove now-redundant cast.
10175 (set_last_insn): Likewise.
10177 * builtins.c (expand_builtin_return): Strengthen local
10178 "call_fusage" from rtx to rtx_insn *.
10179 * cfgrtl.c (create_basic_block_structure): Likewise for local
10181 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10182 "first", "last" and local "insn".
10183 (delete_insns_since): Likewise for param "from".
10184 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10186 (push_to_sequence): Likewise for param "first" and local "last".
10187 (push_to_sequence2): Likewise for params "first" and "last".
10188 * lra.c (emit_add3_insn): Likewise for local "last".
10189 (lra_emit_add): Likewise.
10190 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10192 (process_address_1): Likewise for locals "insn", last".
10193 * modulo-sched.c (ps_first_note): Likewise for return type.
10194 * optabs.c (expand_binop_directly): Likewise for param "last".
10196 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10198 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10200 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10202 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10204 * function.h (struct sequence_stack): Strengthen fields "first"
10205 and "last" from rtx to rtx_insn *.
10206 (struct emit_status): Likewise for fields "x_first_insn" and
10209 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10210 (set_first_insn): Add checked cast.
10211 (get_last_insn): Remove now-redundant checked cast.
10212 (set_last_insn): Add checked cast.
10214 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10215 "saved_first" and "saved_last" from rtx to rtx_insn *.
10217 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10219 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10220 (unlink_insn_chain): Strengthen both params from rtx to
10223 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10225 (unlink_insn_chain): Likewise for params "first" and "last".
10226 Remove now-redundant checked cast.
10227 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10228 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10230 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10232 (add_insn): Likewise for param "insn" and local "prev".
10233 (add_insn_after_nobb): Likewise for both params and local "next".
10234 (add_insn_before_nobb): Likewise for both params and local "prev".
10235 (add_insn_after): Rename param "after" to "uncast_after",
10236 introducing local "after" with another checked cast.
10237 (add_insn_before): Rename params "insn" and "before", giving them
10238 "uncast_" prefixes, adding the old names back using checked casts.
10239 (emit_note_after): Likewise for param "after".
10240 (emit_note_before): Likewise for param "before".
10241 (emit_label): Add a checked cast.
10243 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10245 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10246 "insn" from rtx to rtx_insn *.
10248 * cselib.c (cselib_record_sets_hook): Likewise.
10250 * var-tracking.c (add_with_sets): Likewise, renaming back from
10251 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10254 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10256 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10257 and "header_" from rtx to rtx_insn *.
10258 (struct basic_block_d): Likewise for field "head_" within "x"
10259 field of union basic_block_il_dependent.
10260 (BB_HEAD): Drop function...
10261 (SET_BB_HEAD): ...and this function in favor of...
10262 (BB_HEAD): ...reinstate macro.
10263 (BB_END): Drop function...
10264 (SET_BB_END): ...and this function in favor of...
10265 (BB_END): ...reinstate macro.
10266 (BB_HEADER): Drop function...
10267 (SET_BB_HEADER): ...and this function in favor of...
10268 (BB_HEADER): ...reinstate macro.
10270 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10271 (fix_crossing_unconditional_branches): Likewise.
10272 * caller-save.c (save_call_clobbered_regs): Likewise.
10273 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10274 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10275 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10276 (merge_blocks_move_successor_nojumps): Likewise.
10277 (outgoing_edges_match): Update use of for_each_rtx to
10278 for_each_rtx_in_insn.
10279 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10280 (expand_gimple_cond): Likewise.
10281 (expand_gimple_tailcall): Likewise.
10282 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10284 (construct_exit_block): Drop use of SET_BB_END.
10285 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10287 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10288 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10289 SET_BB_HEAD and SET_BB_END.
10290 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10292 (rtl_delete_block): Drop use of SET_BB_HEAD.
10293 (rtl_split_block): Drop use of SET_BB_END.
10294 (emit_nop_for_unique_locus_between): Likewise.
10295 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10296 (block_label): Drop use of SET_BB_HEAD.
10297 (fixup_abnormal_edges): Drop use of SET_BB_END.
10298 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10299 (relink_block_chain): Likewise.
10300 (fixup_reorder_chain): Drop use of SET_BB_END.
10301 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10302 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10303 rtx_insn **. Drop use of SET_BB_HEADER.
10304 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10306 (BB_HEAD): Delete this function.
10307 (SET_BB_HEAD): Likewise.
10308 (BB_END): Likewise.
10309 (SET_BB_END): Likewise.
10310 (BB_HEADER): Likewise.
10311 (SET_BB_HEADER): Likewise.
10312 * emit-rtl.c (add_insn_after): Rename param "insn" to
10313 "uncast_insn", adding a new local "insn" and a checked cast to
10314 rtx_insn *. Drop use of SET_BB_END.
10315 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10316 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10317 (reorder_insns): Drop use of SET_BB_END.
10318 (emit_insn_after_1): Strengthen param "first" and locals "last",
10319 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10320 (emit_pattern_after_noloc): Add checked cast.
10321 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10322 (restore_other_notes): Likewise.
10323 (move_insn): Likewise.
10324 (sched_extend_bb): Likewise.
10325 (fix_jump_move): Likewise.
10326 * ifcvt.c (noce_process_if_block): Likewise.
10327 (dead_or_predicable): Likewise.
10328 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10329 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10330 * sel-sched-ir.c (sel_move_insn): Likewise.
10331 * sel-sched.c (move_nop_to_previous_block): Likewise.
10333 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10335 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10337 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10339 * basic-block.h (create_basic_block_structure): Strengthen params
10340 1 "head" and 2 "end" from rtx to rtx_insn *.
10341 * cfgrtl.c (create_basic_block_structure): Likewise.
10342 (rtl_create_basic_block): Update casts from void * to rtx to
10343 rtx_insn *, so that we can pass them as rtx_insn * to
10344 create_basic_block_structure.
10345 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10349 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10351 (check_for_inc_dec): Strengthen param "insn" from rtx to
10354 * cselib.h (cselib_process_insn): Likewise.
10356 * cselib.c (cselib_record_sets): Likewise.
10357 (cselib_process_insn): Likewise.
10359 * dse.c (struct insn_info): Likewise for field "insn".
10360 (check_for_inc_dec_1): Likewise for local "insn".
10361 (check_for_inc_dec): Likewise for param "insn".
10362 (scan_insn): Likewise.
10363 (dse_step1): Likewise for local "insn".
10365 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10366 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10368 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10370 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10371 from rtx to rtx_insn *.
10372 (DEP_PRO): Delete this function and...
10373 (SET_DEP_PRO): ...this function in favor of...
10374 (DEP_PRO): ...reinstate this macro.
10375 (DEP_CON): Delete this function and...
10376 (SET_DEP_CON): ...this function in favor of...
10377 (DEP_CON): ...reinstate this old macro.
10378 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10379 (init_dep): Likewise.
10380 (set_priorities): Likewise for both params.
10381 (sd_copy_back_deps): Likewise for params 1 and 2.
10383 * haifa-sched.c (priority): Likewise for param "insn" and local
10385 (set_priorities): Likewise for params "head" and "tail" and local
10387 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10389 (add_to_speculative_block): Add a checked cast.
10390 (create_check_block_twin): Drop use of SET_DEP_CON.
10391 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10394 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10395 Drop use of SET_DEP_PRO
10396 (init_dep): Strengthen params "pro" and "con" from rtx to
10398 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10399 use of SET_DEP_CON.
10402 (SET_DEP_PRO): Delete.
10403 (SET_DEP_CON): Delete.
10405 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10407 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10408 from rtx to rtx_insn *.
10409 (VINSN_INSN_RTX): Eliminate rvalue function and...
10410 (SET_VINSN_INSN): ...lvalue function in favor of...
10411 (VINSN_INSN_RTX): reinstate this old macro.
10413 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10414 in favor of VINSN_INSN_RTX.
10415 (VINSN_INSN_RTX): Delete this function.
10416 (SET_VINSN_INSN_RTX): Likewise.
10418 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10420 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10421 (BND_TO): Delete this function and...
10422 (SET_BND_TO): ...this functions in favor of...
10423 (BND_TO): ...reinstating this macro.
10424 (struct _fence): Strengthen field "executing_insns" from
10425 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10426 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10427 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10428 and param "insn" from rtx to insn_t.
10429 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10432 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10434 (rtx_vec_t): Likewise.
10435 (struct sched_deps_info_def): Strengthen param of "start_insn"
10436 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10437 "note_mem_dep" callback and first param of "note_dep" callback.
10439 * haifa-sched.c (add_to_speculative_block): Strengthen param
10440 "insn" from rtx to rtx_insn *.
10441 (clear_priorities): Likewise.
10442 (calc_priorities): Likewise for local "insn".
10444 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10445 Remove redundant checked cast.
10446 (haifa_note_mem_dep): Likewise for param "pending_insn".
10447 (haifa_note_dep): Likewise for param "elem".
10448 (note_mem_dep): Likewise for param "e".
10449 (sched_analyze_1): Add checked casts.
10450 (sched_analyze_2): Likewise.
10452 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10453 from rtx to rtx_insn *.
10454 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10455 from vec<rtx> * to vec<rtx_insn *> *.
10457 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10459 (flist_add): Strengthen param "executing_insns" from
10460 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10461 (advance_deps_context): Remove now-redundant checked cast.
10462 (init_fences): Replace uses of NULL_RTX with NULL.
10463 (merge_fences): Strengthen params "last_scheduled_insn" and
10464 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10465 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10466 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10467 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10468 an instruction, rather than doing double-duty as a pattern.
10469 (return_nop_to_pool): Update for change of insn_t.
10470 (deps_init_id): Remove now-redundant checked cast.
10471 (struct sched_scan_info_def): Strengthen param of "init_insn"
10472 callback from rtx to insn_t.
10473 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10474 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10476 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10477 "end" from rtx to rtx_insn *.
10478 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10479 (rtx insn_rtx, bool force_unique_p)
10480 (BND_TO): Delete function.
10481 (SET_BND_TO): Delete function.
10483 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10485 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10486 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10488 (undo_transformations): Likewise for param "insn".
10489 (update_liveness_on_insn): Likewise.
10490 (compute_live_below_insn): Likewise for param "insn" and local
10492 (update_data_sets): Likewise for param "insn".
10493 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10494 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10495 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10497 (move_cond_jump): Likewise for param "insn".
10498 (move_cond_jump): Drop use of SET_BND_TO.
10499 (compute_av_set_on_boundaries): Likewise.
10500 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10501 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10502 from rtx to rtx_insn *.
10503 (maybe_emit_renaming_copy): Likewise for param "insn".
10504 (maybe_emit_speculative_check): Likewise.
10505 (handle_emitting_transformations): Likewise.
10506 (remove_insn_from_stream): Likewise.
10507 (code_motion_process_successors): Strengthen local "succ" from rtx
10510 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10512 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10513 ilist_t, not _xlist_t;
10514 (ILIST_INSN): Define in terms of new union field "insn".
10515 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10517 (struct _list_node): Add new field "insn" to the union, of type
10519 (ilist_add): Replace macro with an inline function, requiring an
10521 (ilist_remove): Define this macro directly in terms of
10522 _list_remove, rather than indirectly via _xlist_remove.
10523 (ilist_clear): Likewise, in terms of _list_clear rather than
10525 (ilist_is_in_p): Replace macro with an inline function, requiring
10527 (_list_iter_cond_insn): New function.
10528 (ilist_iter_remove): Define this macro directly in terms of
10529 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10530 (ilist_iterator): Define directly in terms of _list_iterator
10531 rather than indirectly through _xlist_iterator.
10532 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10533 than in terms of _FOR_EACH_X.
10534 (FOR_EACH_INSN_1): Likewise.
10536 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10540 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10541 DECL_HARD_REGISTER and return for invalid register specifications.
10542 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10543 DECL_HARD_REGISTER, call expand_one_error_var.
10544 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10545 CC_REGNUM with non-MODE_CC modes.
10546 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10548 2014-08-26 Marek Polacek <polacek@redhat.com>
10551 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10553 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10555 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10556 qi cost; add di cost.
10557 (cortexa57_addrcost_table): Likewise.
10559 2014-08-26 Marek Polacek <polacek@redhat.com>
10562 * expr.c (is_aligning_offset): Remove logical not.
10564 2014-08-26 Marek Polacek <polacek@redhat.com>
10567 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10568 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10570 2014-08-26 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/62175
10573 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10574 expand possibly trapping operations.
10576 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10578 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10579 "insn" from rtx to rtx_insn *.
10580 (permute_load): Likewise for param "insn".
10581 (permute_store): Likewise.
10582 (handle_special_swappables): Likewise for local "insn".
10583 (replace_swap_with_copy): Likewise for locals "insn" and
10585 (rs6000_analyze_swaps): Likewise for local "insn".
10587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10589 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10594 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10595 "note_list" from rtx to rtx_insn *.
10596 (BB_NOTE_LIST): Replace this function and...
10597 (SET_BB_NOTE_LIST): ...this function with...
10598 (BB_NOTE_LIST): ...the former macro implementation.
10600 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10601 local "from_start" from rtx to rtx_insn *. Strengthen param
10602 "to_endp" from rtx * to rtx_insn **.
10604 * haifa-sched.c (concat_note_lists): Likewise.
10605 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10607 (sel_restore_notes): Likewise.
10608 (move_bb_info): Likewise.
10609 (BB_NOTE_LIST): Delete this function.
10610 (SET_BB_NOTE_LIST): Delete this function.
10611 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10612 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10616 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10617 from rtx * to rtx_insn **.
10618 (reorder2): Likewise.
10619 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10620 from rtx to rtx_insn *.
10622 * doc/tm.texi: Update mechanically for above change to target.def.
10624 * sched-int.h (note_list): Strengthen this variable from rtx to
10626 (remove_notes): Likewise for both params.
10627 (restore_other_notes): Likewise for return type and first param.
10628 (struct ready_list): Strengthen field "vec" from rtx * to
10630 (struct dep_replacement): Strenghten field "insn" from rtx to
10632 (struct deps_desc): Likewise for fields "last_debug_insn",
10634 (struct haifa_sched_info): Likewise for callback field
10635 "can_schedule_ready_p"'s param, for first param of "new_ready"
10636 callback field, for both params of "rank" callback field, for
10637 first field of "print_insn" callback field (with a const), for
10638 both params of "contributes_to_priority" callback, for param
10639 of "insn_finishes_block_p" callback, for fields "prev_head",
10640 "next_tail", "head", "tail", for first param of "add_remove_insn"
10641 callback, for first param of "begin_schedule_ready" callback, for
10642 both params of "begin_move_insn" callback, and for second param
10643 of "advance_target_bb" callback.
10644 (add_dependence): Likewise for params 1 and 2.
10645 (sched_analyze): Likewise for params 2 and 3.
10646 (deps_analyze_insn): Likewise for param 2.
10647 (ready_element): Likewise for return type.
10648 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10649 (try_ready): Strenghten param from rtx to rtx_insn *.
10650 (sched_emit_insn): Likewise for return type.
10651 (record_delay_slot_pair): Likewise for params 1 and 2.
10652 (add_delay_dependencies): Likewise for param.
10653 (contributes_to_priority): Likewise for both params.
10654 (find_modifiable_mems): Likewise.
10656 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10657 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10658 "first_older_only_insn" from rtx to rtx_insn *.
10659 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10662 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10663 "last_scheduled_iter0" from rtx to rtx_insn *.
10664 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10665 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10666 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10667 "insn" from rtx to rtx_insn *.
10668 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10670 (c6x_sched_reorder2): Strengthen param "ready" and locals
10671 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10672 "insn" from rtx to rtx_insn *.
10673 (c6x_variable_issue): Add a checked cast when assigning from insn
10674 to ss.last_scheduled_iter0.
10675 (split_delayed_branch): Strengthen param "insn" and local "i1"
10676 from rtx to rtx_insn *.
10677 (split_delayed_nonbranch): Likewise.
10678 (undo_split_delayed_nonbranch): Likewise for local "insn".
10679 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10680 "entry_after", "end_packet", "head_insn", "tail_insn",
10681 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10682 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10683 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10684 but add a checked cast on loop->start_label. Consolidate calls to
10685 avoid assigning result of gen_spkernel to "insn", now an
10688 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10689 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10691 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10692 rtx_insn **. Strengthen locals "top", "next" from rtx to
10694 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10695 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10696 (add_parameter_dependencies): Strengthen params "call", "head" and
10697 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10698 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10699 (add_dependee_for_func_arg): Likewise for param "arg" and local
10701 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10702 "tail" and locals "insn", "first_arg".
10704 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10705 for params "head", "tail" and locals "insn", "next", "next_tail".
10706 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10707 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10708 "insn", "lowest", "highest" from rtx to rtx_insn *.
10709 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10711 (ia64_sched_reorder2): Likewise.
10713 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10714 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10715 from rtx * to rtx_insn **.
10716 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10718 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10720 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10721 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10724 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10725 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10727 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10728 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10729 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10731 (vr4130_reorder): Likewise.
10732 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10734 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10736 (mips_sched_reorder): Likewise.
10737 (mips_sched_reorder2): Likewise.
10739 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10741 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10742 Strengthen local "tmp" from rtx to rtx_insn *.
10743 (rs6000_sched_reorder2): Likewise.
10745 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10746 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10747 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10748 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10750 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10751 "tmp2" from rtx to rtx_insn *.
10752 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10753 Strengthen local "insn" from rtx to rtx_insn *.
10754 (ready_reorder): Strengthen param "ready" from rtx * to
10755 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10756 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10757 (sh_reorder2): Likewise.
10759 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10760 local "insn" from rtx to rtx_insn *.
10762 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10764 (scheduled_insns): Strengthen this variable from vec<rtx> to
10766 (set_modulo_params): Likewise for locals "i1", "i2".
10767 (record_delay_slot_pair): Likewise for params "i1", "i2".
10768 (add_delay_dependencies): Likewise for param "insn".
10769 (cond_clobbered_p): Likewise.
10770 (recompute_todo_spec): Likewise for local "prev".
10771 (last_scheduled_insn): Likewise for this variable.
10772 (nonscheduled_insns_begin): Likewise.
10773 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10775 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10777 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10778 Strengthen local "insn" from rtx to rtx_insn *.
10779 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10780 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10781 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10782 (ready_remove_first): Likewise for return type and local "t".
10783 (ready_element): Likewise for return type.
10784 (ready_remove): Likewise for return type and local "t".
10785 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10786 (check_clobbered_conditions): Strengthen local "x" from rtx to
10787 rtx_insn *, adding a checked cast.
10788 (schedule_insn): Likewise for param "insn".
10789 (remove_notes): Likewise for params "head", "tail" and locals
10790 "next_tail", "insn", "next".
10791 (struct haifa_saved_data): Likewise for fields
10792 "last_scheduled_insn", "nonscheduled_insns_begin".
10793 (save_backtrack_point): Update for change to field "vec" of
10795 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10797 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10798 from rtx to rtx_insn *
10799 (resolve_dependencies): Strengthen param "insn" from rtx to
10801 (restore_other_notes): Likewise for return type, for param "head"
10802 and local "note_head".
10803 (undo_all_replacements): Likewise for local "insn".
10804 (first_nonscheduled_insn): Likewise for return type and local "insn".
10805 (queue_to_ready): Likewise for local "insn", adding checked casts.
10806 (early_queue_to_ready): Likewise for local "insn".
10807 (debug_ready_list_1): Strengthen local "p" from rtx * to
10809 (move_insn): Strengthen param "insn" and local "note" from rtx to
10811 (insn_finishes_cycle_p): Likewise for param "insn".
10812 (max_issue): Likewise for local "insn".
10813 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10815 (commit_schedule): Strengthen param "prev_head" and local "insn"
10816 from rtx to rtx_insn *
10817 (prune_ready_list): Likewise for local "insn".
10818 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10819 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10820 (set_priorities): Likewise for local "prev_head".
10821 (try_ready): Likewise for param "next".
10822 (fix_tick_ready): Likewise.
10823 (change_queue_index): Likewise.
10824 (sched_extend_ready_list): Update for change to field "vec" of
10826 (generate_recovery_code): Strengthen param "insn" from rtx to
10828 (begin_speculative_block): Likewise.
10829 (create_check_block_twin): Likewise for param "insn" and locals
10830 "label", "check", "twin". Introduce local "check_pat" to avoid
10831 "check" being used as a plain rtx before being used as an insn.
10832 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10833 extracting elements from ready_list.
10834 (sched_remove_insn): Strengthen param "insn" from rtx to
10836 (sched_emit_insn): Likewise for return type.
10837 (ready_remove_first_dispatch): Likewise for return type and local
10840 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10842 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10845 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10846 from rtx to rtx_insn *.
10847 (add_dependence_list): Likewise for param "insn". Add a checked
10849 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10850 to rtx_insn *. Strengthen param "list_p" from rtx * to
10852 (chain_to_prev_insn): Strengthen param "insn" and locals
10853 "prec_nonnote", "i" from rtx to rtx_insn *.
10854 (flush_pending_lists): Likewise for param "insn".
10855 (cur_insn): Likewise for this variable.
10856 (haifa_start_insn): Add a checked cast.
10857 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10858 (sched_analyze_reg): Likewise for param "insn".
10859 (sched_analyze_1): Likewise.
10860 (sched_analyze_2): Likewise. Add checked casts.
10861 (sched_analyze_insn): Likewise. Also for local "prev".
10862 (deps_analyze_insn): Likewise for param "insn".
10863 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10864 (add_dependence_1): Likewise for params "insn", "elem".
10865 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10866 (parse_add_or_inc): Likewise for param "insn".
10867 (find_inc): Likewise for local "inc_cand".
10868 (find_modifiable_mems): Likewise for params "head", "tail" and
10869 locals "insn", "next_tail".
10871 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10872 (begin_schedule_ready): Likewise for param "insn".
10873 (begin_move_insn): Likewise for params "insn" and "last".
10874 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10876 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10877 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10878 (ebb_add_remove_insn): Likewise for param "insn".
10879 (advance_target_bb): Likewise.
10881 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10883 (check_live): Likewise for param "insn".
10884 (init_ready_list): Likewise for local "insn".
10885 (can_schedule_ready_p): Likewise for param "insn".
10886 (begin_schedule_ready): Likewise.
10887 (new_ready): Likewise for param "next".
10888 (rgn_print_insn): Likewise for param "insn".
10889 (rgn_rank): Likewise for params "insn1", "insn2".
10890 (contributes_to_priority): Likewise for params "next", "insn".
10891 (rgn_insn_finishes_block_p): Likewise for param "insn".
10892 (add_branch_dependences): Likewise for params "head", "tail" and
10893 locals "insn", "last".
10894 (rgn_add_remove_insn): Likewise for param "insn".
10895 (advance_target_bb): Likewise.
10897 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10898 const_rtx to const rtx_insn *.
10900 * sel-sched-dump.h (sel_print_insn): Likewise.
10902 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10903 (deps_init_id): Likewise.
10905 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10906 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10909 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10911 * output.h (final_start_function): Strengthen param 1 from rtx to
10914 * final.c (final_start_function): Likewise, renaming back from
10915 "uncast_first" to "first", and dropping the checked cast from rtx
10918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10920 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10921 * final.c (final): Likewise. Rename param back from
10922 "uncast_first" to "first" and eliminate the checked cast from rtx
10925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10927 * output.h (shorten_branches): Strengthen param from rtx to
10930 * final.c (shorten_branches): Likewise, renaming param back from
10931 "uncast_first" to "first", and dropping the checked cast from rtx
10934 * genattr.c (gen_attr): Likewise when writing out the prototype of
10937 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10939 * sched-int.h (struct haifa_sched_info): Strengthen fields
10940 "prev_head" and "next_tail" from rtx to rtx_insn *.
10942 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10944 * rtl.h (rtx_jump_table_data::get_labels): New method.
10945 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10946 with use of the new rtx_jump_table_data::get_labels method.
10947 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10948 to rtx_jump_table_data *. Simplify by using get_labels method.
10949 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10950 a dyn_cast, introducing local "table", using it to replace
10951 label-lookup logic with a get_labels method call.
10952 (patch_jump_insn): Simplify using get_labels method.
10953 * dwarf2cfi.c (create_trace_edges): Likewise.
10954 * rtlanal.c (label_is_jump_target_p): Likewise.
10956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10958 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10961 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10962 (unshare_all_rtl_again): Likewise, also for local "p".
10964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10966 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10968 * cfgrtl.c (delete_insn_and_edges): Likewise.
10970 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10972 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10973 from rtx to rtx_insn *.
10975 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10977 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10979 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10980 locals "returnjump", "epilogue_end", "insn", "next".
10982 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10983 "returnjump" from rtx * to rtx_insn **.
10984 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10986 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10988 * basic-block.h (struct edge_def). Strengthen "r" within
10989 union edge_def_insns from rtx to rtx_insn *.
10991 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10992 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10994 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10995 from rtx to rtx_insn *.
10996 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10998 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10999 (reg_used_on_edge): Likewise.
11000 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11001 (gt_pch_nx): New overload for rtx_insn *&.
11002 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11003 from rtx to rtx_insn *.
11005 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11007 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11008 from rtx to rtx_insn *.
11009 (BB_FOOTER): Replace function with access macro.
11010 (SET_BB_FOOTER): Delete.
11012 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11014 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11015 (emit_barrier_after_bb): Likewise.
11016 (record_effective_endpoints): Likewise.
11017 (relink_block_chain): Likewise.
11018 (fixup_fallthru_exit_predecessor): Likewise.
11019 (cfg_layout_duplicate_bb): Likewise.
11020 (cfg_layout_split_block): Likewise.
11021 (cfg_layout_delete_block): Likewise.
11022 (cfg_layout_merge_blocks): Likewise.
11023 (BB_FOOTER): Delete function.
11024 (SET_BB_FOOTER): Delete function.
11025 * combine.c (update_cfg_for_uncondjump): Replace uses of
11026 SET_BB_FOOTER with BB_FOOTER.
11028 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11030 * except.h (struct eh_landing_pad_d): Strengthen field
11031 "landing_pad" from rtx to rtx_code_label *.
11033 * except.c (sjlj_emit_dispatch_table): Likewise for param
11035 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11037 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11039 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11040 first param from rtx to rtx_insn *.
11041 * config/xtensa/xtensa.c (struct machine_function): Likewise for
11042 field "set_frame_ptr_insn".
11043 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11044 "csend" from rtx to rtx_code_label *.
11045 (xtensa_expand_atomic): Likewise for local "csloop".
11046 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11048 (xtensa_call_tls_desc): Likewise for return type and locals
11049 "call_insn", "insns".
11050 (xtensa_legitimize_tls_address): Likewise for local "insns".
11051 (xtensa_expand_prologue): Likewise for locals "insn", "first".
11053 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11055 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11056 first param from rtx to rtx_insn *.
11057 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11062 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11063 Strengthen param 1 from rtx to rtx_insn *.
11064 (tilepro_output_cbranch): Likewise.
11065 (tilepro_adjust_insn_length): Likewise.
11066 (tilepro_final_prescan_insn): Likewise for sole param.
11068 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11069 Likewise for local "last".
11070 (cbranch_predicted_p): Likewise for param "insn".
11071 (tilepro_output_simple_cbranch_with_opcode): Likewise.
11072 (tilepro_output_cbranch_with_opcode): Likewise.
11073 (tilepro_output_cbranch): Likewise.
11074 (frame_emit_load): Likewise for return type and locals "seq",
11076 (emit_sp_adjust): Likewise for return type and local "insn".
11077 (tilepro_expand_epilogue): Likewise for locals "last_insn",
11079 (tilepro_adjust_insn_length): Likewise for param "insn".
11080 (next_insn_to_bundle): Likewise for return type and params
11082 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11083 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11085 (match_addli_pcrel): Likewise for param "insn".
11086 (replace_addli_pcrel): Likewise.
11087 (match_auli_pcrel): Likewise.
11088 (replace_auli_pcrel): Likewise.
11089 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11091 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11092 "queue", "next_queue", "prev".
11093 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11094 (tilepro_final_prescan_insn): Likewise for param "insn".
11096 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11098 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11099 Strengthen param 1 from rtx to rtx_insn *.
11100 (tilegx_output_cbranch): Likewise.
11101 (tilegx_adjust_insn_length): Likewise.
11102 (tilegx_final_prescan_insn): Likewise for sole param.
11104 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11106 (cbranch_predicted_p): Likewise for param "insn".
11107 (tilegx_output_simple_cbranch_with_opcode): Likewise.
11108 (tilegx_output_cbranch_with_opcode): Likewise.
11109 (tilegx_output_cbranch): Likewise.
11110 (frame_emit_load): Likewise for return type.
11111 (set_frame_related_p): Likewise for locals "seq", "insn".
11112 (emit_sp_adjust): Likewise for return type, and for local "insn".
11113 Introduce local "pat" for use in place of "insn" where the latter
11114 isn't an instruction.
11115 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11116 from rtx to rtx_insn *.
11117 (tilegx_adjust_insn_length): Likewise for param "insn".
11118 (next_insn_to_bundle): Likewise for return type and params "r" and
11120 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11122 (replace_insns): Likewise for params "old_insn", "new_insns".
11123 (replace_mov_pcrel_step1): Likewise for param "insn" and local
11125 (replace_mov_pcrel_step2): Likewise.
11126 (replace_mov_pcrel_step3): Likewise.
11127 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11129 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11130 "queue", "next_queue", "prev".
11131 (tilegx_output_mi_thunk): Likewise for local "insn".
11132 (tilegx_final_prescan_insn): Likewise for param "insn".
11134 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11136 * config/spu/spu.c (frame_emit_store): Strengthen return type from
11138 (frame_emit_load): Likewise.
11139 (frame_emit_add_imm): Likewise, also for local "insn".
11140 (spu_expand_prologue): Likewise for local "insn".
11141 (struct spu_bb_info): Likewise for field "prop_jump".
11142 (emit_nop_for_insn): Likewise for param "insn" and local
11144 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11146 (spu_emit_branch_hint): Likewise for params "before", "branch" and
11147 locals "hint", "insn".
11148 (get_branch_target): Likewise for param "branch".
11149 (insn_clobbers_hbr): Likewise for param "insn".
11150 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11151 locals "insn", "before_4", "before_16".
11152 (insert_hbrp): Likewise for local "insn".
11153 (spu_machine_dependent_reorg): Likewise for locals "branch",
11154 "insn", "next", "bbend".
11155 (uses_ls_unit): Likewise for param "insn".
11156 (get_pipe): Likewise.
11157 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11158 introducing a checked cast.
11159 (spu_sched_adjust_cost): Likewise for params "insn" and
11161 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11162 (spu_sms_res_mii): Likewise.
11164 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11166 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11167 from rtx to rtx_insn *.
11168 (output_cbranch): Likewise for param 6.
11169 (output_return): Likewise for param 1.
11170 (output_sibcall): Likewise.
11171 (output_v8plus_shift): Likewise.
11172 (output_v8plus_mult): Likewise.
11173 (output_v9branch): Likewise for param 7.
11174 (output_cbcond): Likewise for param 3.
11176 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11178 (sparc_legitimize_pic_address): Likewise.
11179 (sparc_emit_call_insn): Likewise.
11180 (emit_save_or_restore_regs): Likewise.
11181 (emit_window_save): Likewise for return type and local "insn".
11182 (sparc_expand_prologue): Likewise for local "insn".
11183 (sparc_flat_expand_prologue): Likewise.
11184 (output_return): Likewise for param "insn".
11185 (output_sibcall): Likewise for param "insn" and local "delay".
11186 (output_ubranch): Likewise for param "insn".
11187 (output_cbranch): Likewise.
11188 (output_cbcond): Likewise.
11189 (output_v9branch): Likewise.
11190 (output_v8plus_shift): Likewise.
11191 (sparc_output_mi_thunk): Likewise for local "insn".
11192 (get_some_local_dynamic_name): Likewise.
11193 (output_v8plus_mult): Likewise for param "insn".
11195 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11197 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11198 from rtx to rtx_insn *.
11199 (output_branchy_insn): Likewise for param 3.
11200 (output_far_jump): Likewise for param 1.
11201 (final_prescan_insn): Likewise.
11202 (sh_insn_length_adjustment): Likewise for sole param.
11204 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11205 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11207 (sh_emit_compare_and_set): Likewise for local "lab".
11208 (output_far_jump): Strengthen param "insn" and local "prev" from
11210 (output_branchy_insn): Likewise for param "insn" and local
11212 (output_ieee_ccmpeq): Likewise for param "insn".
11213 (struct label_ref_list_d): Strengthen field "label" from rtx to
11215 (pool_node): Likewise.
11216 (pool_window_label): Likewise for this global.
11217 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11218 (dump_table): Strengthen params "start", "barrier" and local
11219 "scan" from rtx to rtx_insn *.
11220 (broken_move): Likewise for param "insn".
11221 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11222 Strengthen param "first_mova" from rtx * to rtx_insn **.
11223 (mova_p): Likewise for param "insn".
11224 (fixup_mova): Likewise for param "mova".
11225 (find_barrier): Likewise for return type, params "mova" and
11226 "from", and locals "barrier_before_mova", "found_barrier",
11227 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11228 "label" from rtx to rtx_code_label *.
11229 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11231 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11232 (split_branches): Likewise for param "first" and local "insn".
11233 (final_prescan_insn): Likewise for param "insn".
11234 (sequence_insn_p): Likewise for locals "prev", "next".
11235 (sh_insn_length_adjustment): Likewise for param "insn".
11236 (sh_can_redirect_branch): Likewise for local "insn".
11237 (find_r0_life_regions): Likewise for locals "end", "insn".
11238 (sh_output_mi_thunk): Likewise for local "insns".
11240 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11242 * config/score/score.c (score_output_mi_thunk): Strengthen local
11243 "insn" from rtx to rtx_insn *.
11244 (score_prologue): Likewise.
11246 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11248 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11249 1 from rtx to rtx_insn *.
11250 (s390_emit_jump): Likewise for return type.
11251 (s390_emit_call): Likewise.
11252 (s390_load_got): Likewise.
11254 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11256 (s390_match_ccmode): Likewise for param "insn".
11257 (s390_emit_jump): Likewise for return type.
11258 (s390_split_branches): Likewise for local "label".
11259 (struct constant): Strengthen field "label" from rtx to
11261 (struct constant_pool): Likewise for field "label". Strengthen
11262 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11264 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11266 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11267 (s390_end_pool): Likewise.
11268 (s390_dump_pool): Likewise for local "insn".
11269 (s390_mainpool_start): Likewise.
11270 (s390_chunkify_start): Likewise.
11271 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11272 with insns. Strengthen locals "label", "jump", "barrier", "next",
11273 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11274 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11276 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11277 "jump", "label", "next_insn".
11278 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11279 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11281 (s390_load_got): Likewise for return type and local "insns".
11282 (s390_save_gprs_to_fprs): Likewise for local "insn".
11283 (s390_restore_gprs_from_fprs): Likewise.
11284 (pass_s390_early_mach::execute): Likewise.
11285 (s390_emit_prologue): Likewise for local "insns".
11286 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11288 (s390_emit_call): Strengthen return type and local "insn" from
11290 (s390_emit_tpf_eh_return): Likewise for local "insn".
11291 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11292 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11293 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11295 (s390_non_addr_reg_read_p): Likewise for param "insn".
11296 (find_cond_jump): Likewise for return type and param "insn".
11297 (s390_swap_cmp): Likewise for param "insn".
11298 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11299 "prev_insn", "next_insn".
11300 (s390_reorg): Likewise for locals "insn", "target".
11301 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11302 (s390_sched_variable_issue): For now, rename param "insn" to
11303 "uncast_insn", introducing a checked cast.
11304 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11306 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11307 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11311 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11312 param from rtx to rtx_insn *.
11313 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11315 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11317 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11318 4 from rtx to rtx_insn *.
11319 (rs6000_final_prescan_insn): Likewise for first param.
11320 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11322 (rs6000_get_some_local_dynamic_name): Likewise.
11323 (output_cbranch): Likewise for param "insn".
11324 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11325 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11326 (rs6000_emit_allocate_stack): Likewise for local "insn".
11327 (load_cr_save): Likewise.
11328 (restore_saved_cr): Likewise.
11329 (restore_saved_lr): Likewise.
11330 (emit_cfa_restores): Likewise.
11331 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11332 "deleted_debug_label".
11333 (rs6000_output_mi_thunk): Likewise for local "insn".
11334 (rs6000_final_prescan_insn): Likewise for param "insn".
11336 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11338 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11339 Strengthen param "insn" from rtx to rtx_insn *.
11340 * config/picochip/picochip.c (picochip_current_prescan_insn):
11341 Likewise for this variable.
11342 (picochip_final_prescan_insn): Likewise for param "insn".
11344 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11346 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11347 from rtx to rtx_insn *.
11348 (pa_output_indirect_call): Likewise.
11349 (pa_adjust_insn_length): Likewise.
11350 (pa_attr_length_millicode_call): Likewise.
11351 (pa_attr_length_call): Likewise.
11352 (pa_attr_length_indirect_call): Likewise.
11354 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11356 (pa_attr_length_millicode_call): Likewise.
11357 (pa_attr_length_call): Likewise.
11358 (pa_output_call): Likewise.
11359 (pa_attr_length_indirect_call): Likewise.
11360 (pa_output_indirect_call): Likewise.
11362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11364 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11365 Strengthen first param from rtx to rtx_insn *.
11366 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11371 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11372 type from rtx to rtx_insn *.
11373 (mips_expand_call): Likewise.
11374 (mips_adjust_insn_length): Likewise for first param.
11375 (mips_output_conditional_branch): Likewise.
11376 (mips_output_order_conditional_branch): Likewise.
11377 (mips_final_prescan_insn): Likewise.
11379 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11380 rtx_insn * for the SEQUENCE case.
11381 (SEQ_END): Likewise.
11382 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11383 (mips_emit_call_insn): Likewise, also for local "insn".
11384 (mips16_gp_pseudo_reg): Likewise for local "scan".
11385 (mips16_build_call_stub): Likewise for return type and for local
11386 "insn". Introduce a new local "pattern" so that "insn" can indeed
11388 (mips_expand_call): Strengthen return type and local "insn" from
11390 (mips_block_move_loop): Strengthen local "label" from rtx to
11392 (mips_expand_synci_loop): Likewise for locals "label",
11394 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11396 (mips16e_collect_argument_saves): Likewise for locals "insn",
11398 (mips_find_gp_ref): Likewise for param of callback for "pred"
11399 param, and for local "insn".
11400 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11401 (mips_insn_has_flexible_gp_ref_p): Likewise.
11402 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11404 (mips_epilogue_set_cfa): Likewise for local "insn".
11405 (mips_expand_epilogue): Likewise.
11406 (mips_adjust_insn_length): Likewise for param "insn".
11407 (mips_output_conditional_branch): Likewise.
11408 (mips_output_order_conditional_branch): Likewise.
11409 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11410 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11411 "falu2_turn_enabled_insn".
11412 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11413 "done_label" from rtx to rtx_code_label *.
11414 (struct mips16_constant): Likewise for field "label".
11415 (mips16_add_constant): Likewise for return type.
11416 (mips16_emit_constants_1): Strengthen return type and param "insn"
11417 from rtx to rtx_insn *.
11418 (mips16_emit_constants): Likewise for param "insn".
11419 (mips16_insn_length): Likewise.
11420 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11421 to rtx_code_label *.
11422 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11423 from rtx to rtx_insn *.
11424 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11425 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11426 (r10k_simplify_address): Strengthen param "insn" and local
11427 "def_insn" from rtx to rtx_insn *.
11428 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11430 (r10k_needs_protection_p_1): Update target type of cast of data
11431 from to rtx to rtx_insn *.
11432 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11433 rtx * to rtx_insn **.
11434 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11436 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11437 (mips_call_expr_from_insn): Likewise for param "insn".
11438 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11439 (mips_find_pic_call_symbol): Likewise for param "insn".
11440 (mips_annotate_pic_calls): Likewise for local "insn".
11441 (mips_sim_insn): Likewise for this variable.
11442 (struct mips_sim): Likewise for field "insn" within elements of
11444 (mips_sim_wait_reg): Likewise for param "insn".
11445 (mips_sim_wait_regs): Likewise.
11446 (mips_sim_wait_units): Likewise.
11447 (mips_sim_wait_insn): Likewise.
11448 (mips_sim_issue_insn): Likewise.
11449 (mips_sim_finish_insn): Likewise.
11450 (mips_seq_time): Likewise for param "seq" and local "insn".
11451 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11452 locals "first", "second".
11453 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11454 "last", "last2", "next".
11455 (mips_avoid_hazard): Likewise for params "after", "insn".
11456 (mips_reorg_process_insns): Likewise for locals "insn",
11457 "last_insn", "subinsn", "next_insn".
11458 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11459 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11461 (mips_output_mi_thunk): Likewise for local "insn".
11462 (mips_final_prescan_insn): Likewise for param "insn".
11464 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11466 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11467 Strengthen return type and local "insns" from rtx to rtx_insn *.
11468 (microblaze_legitimize_tls_address): Likewise for local "insns".
11469 (microblaze_block_move_loop): Strengthen local "label" from rtx
11470 to rtx_code_label *.
11471 (microblaze_expand_prologue): Strengthen two locals named "insn"
11472 from rtx to rtx_insn *.
11473 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11474 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11475 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11476 to rtx_code_label *.
11478 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11480 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11481 param from rtx to rtx_insn *.
11482 (mep_reuse_lo): Likewise for third param.
11483 (mep_use_post_modify_p): Likewise for first param.
11484 (mep_core_address_length): Likewise.
11485 (mep_cop_address_length): Likewise.
11486 (mep_final_prescan_insn): Likewise.
11487 (mep_store_data_bypass_p): Likewise for both params.
11488 (mep_mul_hilo_bypass_p): Likewise.
11489 (mep_ipipe_ldc_p): Likewise for param.
11491 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11492 (mep_rewrite_mult): Likewise.
11493 (mep_rewrite_mulsi3): Likewise.
11494 (mep_rewrite_maddsi3): Likewise.
11495 (mep_reuse_lo_p_1): Likewise.
11496 (mep_reuse_lo_p): Likewise.
11497 (mep_frame_expr): Likewise.
11498 (mep_make_parallel): Likewise for both params.
11499 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11501 (mep_use_post_modify_p): Likewise for param "insn".
11502 (mep_core_address_length): Likewise.
11503 (mep_cop_address_length): Likewise.
11504 (mep_reg_set_in_function): Likewise for local "insn".
11505 (mep_asm_without_operands_p): Likewise.
11506 (F): Likewise for return type and param "x".
11507 (add_constant): Likewise for local "insn".
11508 (maybe_dead_move): Likewise for return type and local "insn".
11509 (mep_expand_prologue): Likewise for local "insn".
11510 (mep_final_prescan_insn): Likewise for param "insn".
11511 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11512 "next", "follow", "x".
11513 (mep_insert_repeat_label_last): Likewise for return type, param
11514 "last_insn", and locals "next", "prev". Strengthen param "label"
11515 from rtx to rtx_code_label *.
11516 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11518 (struct mep_doloop_end): Likewise for fields "insn" and
11520 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11521 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11522 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11524 (mep_invert_branch): Likewise for params "insn" and "after".
11525 (mep_reorg_erepeat): Likewise for param "insns" and locals
11526 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11527 "l" from rtx to rtx_code_label *.
11528 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11529 from rtx to rtx_insn *.
11530 (mep_reorg_addcombine): Likewise for param "insns" and locals
11532 (add_sp_insn_p): Likewise for param "insn".
11533 (mep_reorg_noframe): Likewise for param "insns" and locals
11534 "start_frame_insn", "end_frame_insn", "next".
11535 (mep_reorg): Likewise for local "insns".
11536 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11538 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11539 (mep_mul_hilo_bypass_p): Likewise.
11540 (mep_ipipe_ldc_p): Likewise for param "insn".
11541 (mep_make_bundle): Likewise for return type, param "cop" and local
11542 "insn", splitting out the latter into a new local "seq" for when it
11543 is a SEQUENCE rather than an insn.
11544 (core_insn_p): Likewise for param "insn".
11545 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11546 "last", "first", "note", "prev", "core_insn".
11548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11550 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11552 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11553 (m68k_final_prescan_insn): Likewise for first param.
11555 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11556 (m68k_set_frame_related): Likewise for param "insn".
11557 (output_btst): Likewise for param "insn".
11558 (m68k_final_prescan_insn): Likewise.
11559 (m68k_move_to_reg): Likewise for local "insn".
11560 (m68k_call_tls_get_addr): Likewise for local "insns".
11561 (m68k_call_m68k_read_tp): Likewise.
11562 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11563 (m68k_output_mi_thunk): Likewise for local "insn".
11565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11567 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11568 first param from rtx to rtx_insn *.
11569 (iq2000_adjust_insn_length): Likewise.
11570 (iq2000_output_conditional_branch): Likewise.
11571 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11572 "insn" and local "nop_insn".
11573 (iq2000_annotate_frame_insn): Likewise for param "insn".
11574 (iq2000_expand_prologue): Likewise for both locals "insn".
11575 (iq2000_adjust_insn_length): Likewise for param "insn".
11576 (iq2000_output_conditional_branch): Likewise.
11578 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11580 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11581 "insns" from rtx to rtx_insn *.
11582 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11583 (struct spill_fill_data): Likewise for field "init_after" and for
11584 elements of array field "prev_insn".
11585 (spill_restore_mem): Likewise for locals "insn", "first".
11586 (do_spill): Likewise for local "insn".
11587 (do_restore): Likewise.
11588 (ia64_expand_prologue): Likewise.
11589 (ia64_expand_epilogue): Likewise.
11590 (emit_insn_group_barriers): Likewise for locals "insn",
11592 (emit_all_insn_group_barriers): Likewise for locals "insn",
11594 (dfa_stop_insn): Likewise for this global.
11595 (dfa_pre_cycle_insn): Likewise.
11596 (ia64_nop): Likewise.
11597 (final_emit_insn_group_barriers): Likewise for locals "insn",
11599 (emit_predicate_relation_info): Likewise for locals "head", "n",
11601 (ia64_reorg): Likewise for local "insn".
11602 (ia64_output_mi_thunk): Likewise.
11603 (expand_vec_perm_interleave_2): Likewise for local "seq".
11605 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11607 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11608 param 1 "insn" from rtx to rtx_insn *.
11609 (ix86_use_lea_for_mov): Likewise.
11610 (ix86_avoid_lea_for_addr): Likewise.
11611 (ix86_split_lea_for_addr): Likewise.
11612 (ix86_lea_for_add_ok): Likewise.
11613 (ix86_output_call_insn): Likewise.
11615 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11616 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11617 (ix86_output_function_epilogue): Likewise for locals "insn",
11618 "deleted_debug_label".
11619 (legitimize_tls_address): Likewise for local "insn".
11620 (get_some_local_dynamic_name): Likewise.
11621 (increase_distance): Likewise for params "prev", "next".
11622 (distance_non_agu_define_in_bb): Likewise for params "insn",
11623 "start" and locals "prev", "next".
11624 (distance_non_agu_define): Likewise for param "insn".
11625 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11626 locals "next", "prev".
11627 (distance_agu_use): Likewise for param "insn".
11628 (ix86_lea_outperforms): Likewise.
11629 (ix86_ok_to_clobber_flags): Likewise.
11630 (ix86_avoid_lea_for_add): Likewise.
11631 (ix86_use_lea_for_mov): Likewise.
11632 (ix86_avoid_lea_for_addr): Likewise.
11633 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11634 (ix86_split_lea_for_addr): Likewise for param "insn".
11635 (ix86_lea_for_add_ok): Likewise for param "insn".
11636 (ix86_expand_carry_flag_compare): Likewise for local
11638 (ix86_expand_int_movcc): Likewise.
11639 (ix86_output_call_insn): Likewise for param "insn".
11640 (ix86_output_call_insn): Likewise for local "i".
11641 (x86_output_mi_thunk): Introduce local "insn", using it in place
11642 of "tmp" when dealing with insns.
11643 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11645 (ix86_pad_returns): Likewise for locals "ret", "prev".
11646 (ix86_count_insn_bb): Likewise for local "insn".
11647 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11648 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11649 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11650 (expand_vec_perm_interleave2): Likewise for local "seq".
11651 (expand_vec_perm_vperm2f128_vblend): Likewise.
11652 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11653 call to for_each_rtx with for_each_rtx_in_insn.
11655 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11657 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11658 "label" from rtx to rtx_code_label *.
11659 (ix86_expand_prologue): Likewise.
11660 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11662 (ix86_split_idivmod): Likewise for locals "end_label" and
11664 (ix86_expand_branch): Likewise for local "label2".
11665 (ix86_expand_aligntest): Likewise for return type and local "label".
11666 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11668 (expand_movmem_epilogue): Likewise for the various locals named
11670 (expand_setmem_epilogue): Likewise.
11671 (expand_small_movmem_or_setmem): Likewise for local "label".
11672 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11673 Strengthen param "done_label" from rtx * to rtx_code_label **.
11674 Strengthen locals "loop_label" and "label" from rtx to
11676 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11677 Likewise for locals "loop_label", "label".
11678 (ix86_expand_set_or_movmem): Likewise for locals "label",
11679 "jump_around_label", "hot_label".
11680 (ix86_expand_strlensi_unroll_1): Likewise for locals
11681 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11683 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11684 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11685 "label2", "jump_label".
11686 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11688 (ix86_expand_lfloorceil): Likewise for local "label".
11689 (ix86_expand_rint): Likewise.
11690 (ix86_expand_floorceildf_32): Likewise.
11691 (ix86_expand_floorceil): Likewise.
11692 (ix86_expand_rounddf_32): Likewise.
11693 (ix86_expand_trunc): Likewise.
11694 (ix86_expand_truncdf_32): Likewise.
11695 (ix86_expand_round): Likewise.
11697 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11699 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11700 first param from rtx to rtx_insn *.
11701 (h8300_insn_length_from_table): Likewise.
11702 * config/h8300/h8300.c (F): Likewise for return type and param
11704 (Fpa): Add a checked cast to rtx_insn *.
11705 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11707 (final_prescan_insn): Likewise for param "insn".
11708 (h8300_binary_length): Likewise.
11709 (h8300_insn_length_from_table): Likewise.
11711 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11713 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11714 Strengthen first param "insn" from rtx to rtx_insn *.
11716 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11718 (frame_insn): Likewise for return type. Introduce local "insn"
11719 for use in place of local "x" for use as an rtx_insn *.
11720 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11721 (epiphany_expand_prologue): Likewise for local "insn".
11722 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11723 * config/epiphany/resolve-sw-modes.c
11724 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11727 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11729 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11730 param from rtx to rtx_insn *.
11731 (c6x_final_prescan_insn): Likewise for first param.
11733 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11734 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11735 (c6x_expand_compare): Strengthen local "insns" from rtx to
11737 (c6x_get_unit_specifier): Likewise for param "insn".
11738 (c6x_print_unit_specifier_field): Likewise.
11739 (c6x_final_prescan_insn): Likewise.
11740 (emit_add_sp_const): Likewise for local "insn".
11741 (c6x_expand_prologue): Likewise.
11743 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11745 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11746 param 1 from rtx to rtx_insn *.
11747 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11748 the various locals named "insn".
11749 (expand_epilogue_reg_restore): Likewise.
11750 (frame_related_constant_load): Likewise.
11751 (add_to_reg): Likewise.
11752 (emit_link_insn): Likewise.
11753 (do_link): Likewise.
11754 (expand_interrupt_handler_prologue): Likewise.
11755 (branch_dest): Likewise for param "branch".
11756 (asm_conditional_branch): Likewise for param "insn".
11757 (gen_one_bundle): Likewise for elements of param "slot" and local
11759 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11760 elements of local "slot".
11761 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11762 "queue", "next_queue", "prev".
11763 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11764 (add_sched_insns_for_speculation): Likewise for local "insn".
11766 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11768 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11769 from rtx to rtx_insn *.
11770 (output_movhi): Likewise.
11771 (output_movsisf): Likewise.
11772 (avr_out_tstsi): Likewise.
11773 (avr_out_tsthi): Likewise.
11774 (avr_out_tstpsi): Likewise.
11775 (avr_out_compare): Likewise.
11776 (avr_out_compare64): Likewise.
11777 (avr_out_movpsi): Likewise.
11778 (ashlqi3_out): Likewise.
11779 (ashlhi3_out): Likewise.
11780 (ashlsi3_out): Likewise.
11781 (ashrqi3_out): Likewise.
11782 (ashrhi3_out): Likewise.
11783 (ashrsi3_out): Likewise.
11784 (lshrqi3_out): Likewise.
11785 (lshrhi3_out): Likewise.
11786 (lshrsi3_out): Likewise.
11787 (avr_out_ashlpsi3): Likewise.
11788 (avr_out_ashrpsi3): Likewise.
11789 (avr_out_lshrpsi3): Likewise.
11790 (avr_out_fract): Likewise.
11791 (avr_out_sbxx_branch): Likewise.
11792 (avr_out_round): Likewise.
11793 (avr_out_xload): Likewise.
11794 (avr_out_movmem): Likewise.
11795 (adjust_insn_length): Likewise.
11796 (avr_out_lpm): Likewise.
11797 (reg_unused_after): Likewise.
11798 (_reg_unused_after): Likewise.
11799 (avr_jump_mode): Likewise for second param.
11800 (jump_over_one_insn): Likewise for first param.
11801 (avr_final_prescan_insn): Likewise.
11802 (out_shift_with_cnt): Likewise for second param.
11804 * config/avr/avr.c (get_sequence_length): Likewise for param
11805 "insns" and local "insn".
11806 (emit_push_byte): Likewise for local "insn".
11807 (emit_push_sfr): Likewise.
11808 (avr_prologue_setup_frame): Likewise for locals "insn",
11809 "fp_plus_insns", "sp_plus_insns".
11810 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11812 (avr_jump_mode): Likewise for param "insn".
11813 (avr_final_prescan_insn): Likewise.
11814 (avr_find_unused_d_reg): Likewise.
11815 (avr_out_lpm_no_lpmx): Likewise.
11816 (avr_out_lpm): Likewise.
11817 (avr_out_xload): Likewise.
11818 (output_movqi): Likewise.
11819 (output_movhi): Likewise.
11820 (out_movqi_r_mr): Likewise.
11821 (out_movhi_r_mr): Likewise.
11822 (out_movsi_r_mr): Likewise.
11823 (out_movsi_mr_r): Likewise.
11824 (output_movsisf): Likewise.
11825 (avr_out_load_psi): Likewise.
11826 (avr_out_store_psi): Likewise.
11827 (avr_out_movpsi): Likewise.
11828 (out_movqi_mr_r): Likewise.
11829 (avr_out_movhi_mr_r_xmega): Likewise.
11830 (out_movhi_mr_r): Likewise.
11831 (compare_condition): Likewise for param "insn" and local "next".
11832 (compare_sign_p): Likewise for param "insn".
11833 (compare_diff_p): Likewise.
11834 (compare_eq_p): Likewise.
11835 (avr_out_compare): Likewise.
11836 (avr_out_compare64): Likewise.
11837 (avr_out_tsthi): Likewise.
11838 (avr_out_tstpsi): Likewise.
11839 (avr_out_tstsi): Likewise.
11840 (out_shift_with_cnt): Likewise.
11841 (ashlqi3_out): Likewise.
11842 (ashlhi3_out): Likewise.
11843 (avr_out_ashlpsi3): Likewise.
11844 (ashlsi3_out): Likewise.
11845 (ashrqi3_out): Likewise.
11846 (ashrhi3_out): Likewise.
11847 (avr_out_ashrpsi3): Likewise.
11848 (ashrsi3_out): Likewise.
11849 (lshrqi3_out): Likewise.
11850 (lshrhi3_out): Likewise.
11851 (avr_out_lshrpsi3): Likewise.
11852 (lshrsi3_out): Likewise.
11853 (avr_out_fract): Likewise.
11854 (avr_out_round): Likewise.
11855 (avr_adjust_insn_length): Likewise.
11856 (reg_unused_after): Likewise.
11857 (_reg_unused_after): Likewise.
11858 (avr_compare_pattern): Likewise.
11859 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11860 and locals "branch1", "branch2", "insn2", "jump".
11861 (avr_reorg): Likewise for local "insn".
11862 (avr_2word_insn_p): Likewise for param "insn".
11863 (jump_over_one_insn_p): Likewise.
11864 (avr_out_sbxx_branch): Likewise.
11865 (avr_out_movmem): Likewise.
11867 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11869 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11870 param from rtx to rtx_insn *.
11871 (thumb1_final_prescan_insn): Likewise.
11872 (thumb2_final_prescan_insn): Likewise.
11874 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11876 (struct minipool_node): Likewise for field "insn".
11877 (dump_minipool): Likewise for param "scan".
11878 (create_fix_barrier): Likewise for local "from". Strengthen local
11879 "label" from rtx to rtx_code_label *.
11880 (push_minipool_barrier): Strengthen param "insn" from rtx to
11882 (push_minipool_fix): Likewise.
11883 (note_invalid_constants): Likewise.
11884 (thumb2_reorg): Likewise for local "insn".
11885 (arm_reorg): Likewise.
11886 (thumb2_final_prescan_insn): Likewise for param
11887 "insn" and local "first_insn".
11888 (arm_final_prescan_insn): Likewise for param "insn" and locals
11889 "start_insn", "this_insn".
11890 (arm_debugger_arg_offset): Likewise for param "insn".
11891 (thumb1_emit_multi_reg_push): Likewise for return type and local
11893 (thumb1_final_prescan_insn): Likewise for param "insn".
11894 (thumb_far_jump_used_p): Likewise for local "insn".
11895 (thumb1_expand_prologue): Likewise.
11896 (arm_expand_epilogue_apcs_frame): Likewise.
11897 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11898 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11899 from rtx to rtx_code_label *.
11900 (arm_split_atomic_op): Likewise for local "label".
11901 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11903 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11905 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11906 first param from rtx to rtx_insn *.
11907 (arc_verify_short): Likewise.
11908 (arc_short_long): Likewise.
11909 (arc_need_delay): Likewise.
11911 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11913 (arc_ccfsm_advance): Likewise for param "insn" and locals
11914 "start_insn", "this_insn".
11915 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11916 (arc_ccfsm_post_advance): Likewise for param "insn".
11917 (arc_next_active_insn): Likewise for return type and param "insn".
11918 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11919 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11920 (output_short_suffix): Likewise for local "insn".
11921 (arc_final_prescan_insn): Likewise for param "insn". Remove
11922 now-redundant checked cast.
11923 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11924 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11925 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11926 for use where lc_set became an insn.
11927 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11929 (arc_get_insn_variants): Likewise for local "prev".
11930 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11932 (arc_predicate_delay_insns): Likewise for local "insn".
11933 (arc_pad_return): Likewise for local "prev". For now, add a
11934 checked cast when extracting the insn from "final_sequence".
11935 (arc_short_long): Likewise for param "insn".
11936 (arc_need_delay): Likewise for param "insn" and local "next".
11937 (arc_label_align): Likewise for locals "prev", "next".
11939 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11941 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11942 "insn" from rtx to rtx_insn *.
11943 (alpha_gp_save_rtx): Likewise for local "seq".
11944 (alpha_instantiate_decls): Likewise for local "top".
11945 (get_some_local_dynamic_name): Likewise for local "insn".
11946 (alpha_does_function_need_gp): Likewise.
11947 (set_frame_related_p): Likewise for return type and for locals
11949 (emit_frame_store_1): Likewise for local "insn".
11950 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11951 (alpha_end_function): Likewise for local "insn".
11952 (alpha_output_mi_thunk_osf): Likewise.
11953 (alphaev4_insn_pipe): Likewise for param "insn".
11954 (alphaev5_insn_pipe): Likewise.
11955 (alphaev4_next_group): Likewise for return type and param 1
11957 (alphaev5_next_group): Likewise.
11958 (alpha_align_insns_1): Likewise for return type and param 1 of
11959 callback param "next_group", and for locals "i", "next", "prev",
11960 "where", "where2", "insn".
11962 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11964 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11965 rather than modifying the stmt.
11967 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11969 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11970 cgraph_state conversion.
11972 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11974 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11975 Strengthen local "insns" from rtx to rtx_insn *.
11976 (aarch64_set_frame_expr): Likewise for local "insn".
11977 (aarch64_save_or_restore_fprs): Likewise.
11978 (aarch64_save_or_restore_callee_save_registers): Likewise.
11979 (aarch64_expand_prologue): Likewise.
11980 (aarch64_expand_epilogue): Likewise.
11981 (aarch64_output_mi_thunk): Likewise.
11982 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11983 "label2" from rtx to rtx_code_label *.
11984 (aarch64_split_atomic_op): Likewise for local "label".
11986 2014-08-25 Martin Liska <mliska@suse.cz>
11988 * cgraph.h (symtab_node):
11989 (bool needed_p (void)): created from decide_is_symbol_needed
11990 (bool referred_to_p (void)): created from referred_to_p
11991 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11992 * cgraph.h (cgraph_node):
11993 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11994 (void expand (void)): created from expand_function
11995 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11996 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11997 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11998 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11999 * cgraph.h (varpool_node):
12000 (static void add (tree decl): created from varpool_add_new_variable
12001 * cgraph.h (cgraph_edge):
12002 void remove (void);
12003 (void remove_caller (void)): created from cgraph_edge_remove_caller
12004 (void remove_callee (void)): created from cgraph_edge_remove_callee
12005 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12006 created from cgraph_set_call_stmt
12007 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12008 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12009 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12010 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12011 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12012 created from cgraph_speculative_call_info
12013 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12014 int freq_scale, bool update_original)): created from cgraph_clone_edge
12015 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12016 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12017 (bool recursive_p (void)): created from cgraph_edge_recursive_p
12018 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12019 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12020 (static void rebuild_references (void)): created from cgraph_rebuild_references
12021 * cgraph.h (symbol_table):
12022 (create_reference): renamed from add_reference
12023 (maybe_create_reference): renamed from maybe_add_reference
12024 (void register_symbol (symtab_node *node)): new function
12025 (void clear_asm_symbols (void)): new function
12026 (void unregister (symtab_node *node)): new function
12027 (void release_symbol (cgraph_node *node, int uid)): new function
12028 (cgraph_node * allocate_cgraph_symbol (void)): new function
12029 (void initialize (void)): created from cgraph_init
12030 (symtab_node *first_symbol (void)):new function
12031 (asm_node *first_asm_symbol (void)):new function
12032 (symtab_node *first_defined_symbol (void)):new function
12033 (varpool_node *first_variable (void)):new function
12034 (varpool_node *next_variable (varpool_node *node)):new function
12035 (varpool_node *first_static_initializer (void)):new function
12036 (varpool_node *next_static_initializer (varpool_node *node)):new function
12037 (varpool_node *first_defined_variable (void)):new function
12038 (varpool_node *next_defined_variable (varpool_node *node)):new function
12039 (cgraph_node *first_defined_function (void)):new function
12040 (cgraph_node *next_defined_function (cgraph_node *node)):new function
12041 (cgraph_node *first_function (void)):new function
12042 (cgraph_node *next_function (cgraph_node *node)):new function
12043 (cgraph_node *first_function_with_gimple_body (void)):new function
12044 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12045 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12046 created from symtab_remove_unreachable_nodes
12047 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12048 (void process_new_functions (void)): created from cgraph_process_new_functions
12049 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12050 (bool output_variables (void)): created from varpool_node::output_variables
12051 (void output_asm_statements (void)): created from output_asm_statements
12052 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12053 (void compile (void)): created from compile
12054 (void output_weakrefs (void)): created from output_weakrefs
12055 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12056 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12057 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12058 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12059 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12060 created from cgraph_next_function_with_gimple_body
12061 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12062 created from cgraph_remove_edge_removal_hook
12063 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12064 created from cgraph_add_node_removal_hook
12065 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12066 created from cgraph_remove_node_removal_hook
12067 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12068 created from varpool_add_node_removal_hook
12069 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12070 created from varpool_remove_node_removal_hook
12071 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12072 created from cgraph_add_function_insertion_hook
12073 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12074 created from cgraph_remove_function_insertion_hook
12075 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12076 created from varpool_add_variable_insertion_hook
12077 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12078 created from varpool_remove_variable_insertion_hook
12079 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12080 created from cgraph_add_edge_duplication_hook
12081 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12082 created from cgraph_remove_edge_duplication_hook
12083 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12084 created from cgraph_add_node_duplication_hook
12085 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12086 created from cgraph_remove_node_duplication_hook
12087 (void call_edge_removal_hooks (cgraph_edge *e)):
12088 created from cgraph_call_edge_removal_hooks
12089 (void call_cgraph_insertion_hooks (cgraph_node *node)):
12090 created from call_function_insertion_hooks
12091 (void call_cgraph_removal_hooks (cgraph_node *node)):
12092 created from cgraph_call_node_removal_hooks
12093 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12094 created from cgraph_node::call_duplication_hooks
12095 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12096 created from cgraph_call_edge_duplication_hooks
12097 (void call_varpool_removal_hooks (varpool_node *node)):
12098 created from varpool_call_node_removal_hooks
12099 (void call_varpool_insertion_hooks (varpool_node *node)):
12100 created from varpool_call_variable_insertion_hooks
12101 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12102 created from insert_to_assembler_name_hash
12103 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12104 created from unlink_from_assembler_name_hash
12105 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12106 created from symtab_prevail_in_asm_name_hash
12107 (void symtab_initialize_asm_name_hash (void)):
12108 created from symtab_initialize_asm_name_hash
12109 (void change_decl_assembler_name (tree decl, tree name)):
12110 created from change_decl_assembler_name
12111 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12112 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12113 created from decl_assembler_name_hash
12114 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12115 created from decl_assembler_name_equal
12116 (static hashval_t hash_node_by_assembler_name (const void *p)):
12117 created from hash_node_by_assembler_name
12118 (static int eq_assembler_name (const void *p1, const void *p2)):
12119 created from eq_assembler_name
12121 2014-08-25 Marek Polacek <polacek@redhat.com>
12123 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12125 2014-08-25 Petr Murzin <petr.murzin@intel.com>
12127 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12128 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12129 SWI1248_AVX512BW mode iterator.
12131 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
12134 * config/sh/predicates.md (general_extend_operand): Disable
12135 TRUNCATE before reload completes.
12137 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
12139 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12141 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
12144 * config/sh/sh.opt (musermode): Allow negative form.
12145 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12146 targets that don't support it.
12147 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12148 Document -mno-usermode option.
12150 2014-08-24 Kito Cheng <kito@0xlab.org>
12152 * system.h (CALLER_SAVE_PROFITABLE): Poison.
12153 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12154 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12155 * doc/tm.texi: Regenerate.
12157 2014-08-24 Kito Cheng <kito@0xlab.org>
12159 * ira.c: Fix typo in comment.
12161 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
12163 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12164 Deprecate c++1y. Change language to reflect greater confidence in C++14.
12166 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12169 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12170 last_address when the current function is a thunk.
12171 (pa_asm_output_mi_thunk): When we don't have named sections or they
12172 are not being used, check that thunk can reach the stub table with a
12175 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12177 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12179 (pass_web::execute): Likewise for local "insn".
12181 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12183 * var-tracking.c (struct micro_operation_def): Strengthen field
12184 "insn" from rtx to rtx_insn *.
12185 (struct emit_note_data_def): Likewise.
12186 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12187 (vt_stack_adjustments): Likewise for local "insn".
12188 (adjust_insn): Likewise for param "insn".
12189 (val_store): Likewise.
12190 (val_resolve): Likewise.
12191 (struct count_use_info): Likewise for field "insn".
12192 (log_op_type): Likewise for param "insn".
12193 (reverse_op): Likewise.
12194 (prepare_call_arguments): Likewise.
12195 (add_with_sets): The initial param takes an insn, but we can't
12196 yet strengthen it from rtx to rtx_insn * since it's used as a
12197 cselib_record_sets_hook callback. For now rename initial param
12198 from "insn" to "uncast_insn", and introduce a local "insn" of
12199 the stronger rtx_insn * type, with a checked cast.
12200 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12202 (emit_note_insn_var_location): Likewise.
12203 (emit_notes_for_changes): Likewise.
12204 (emit_notes_for_differences): Likewise.
12205 (next_non_note_insn_var_location): Likewise for return type and
12207 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12208 (vt_initialize): Likewise for local "insn".
12209 (delete_debug_insns): Likewise for locals "insn" and "next".
12211 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12213 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12215 (mark_constant_pool): Likewise for local "insn".
12217 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12219 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12221 (dead_debug_promote_uses): Likewise.
12222 (dead_debug_insert_temp): Likewise.
12224 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12226 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12227 from const_rtx to const rtx_insn *.
12228 (store_killed_after): Likewise. Strengthen locals "last", "act"
12229 from rtx to rtx_insn *.
12230 (store_killed_before): Strengthen param "insn" from const_rtx to
12231 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12232 (find_moveable_store): Strengthen param "insn" from rtx to
12234 (compute_store_table): Likewise for local "insn".
12235 (insert_insn_start_basic_block): Likewise for param "insn" and
12236 locals "prev", "before", "insn".
12237 (insert_store): For now, add a checked cast to rtx_insn * on the
12238 result of gen_move_insn.
12239 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12241 (replace_store_insn): Likewise. For now, add a checked cast to
12242 rtx_insn * on the result of gen_move_insn.
12244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12246 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12248 (expand_sjlj_dispatch_table): Likewise.
12250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12252 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12253 "insn" from rtx to rtx_insn *.
12255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12257 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12258 "insn" from rtx to rtx_insn *.
12259 (dup_block_and_redirect): Likewise for param 3 "before".
12261 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12262 from rtx to rtx_insn *.
12263 (move_insn_for_shrink_wrap): Likewise.
12264 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12265 (dup_block_and_redirect): Likewise for param "before" and local
12267 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12269 (convert_to_simple_return): Likewise for local "start".
12271 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12272 Strengthen local "insn" from rtx to rtx_insn *, for use when
12273 invoking requires_stack_frame_p.
12275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12277 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12279 (speculate_expr): Likewise for locals "orig_insn_rtx",
12281 (eq_transformed_insns): Likewise for locals "i1", "i2".
12282 (check_for_new_jump): Likewise for return type and local "end".
12283 (find_new_jump): Likewise for return type and local "jump".
12284 (sel_split_edge): Likewise for local "jump".
12285 (sel_create_recovery_block): Likewise.
12286 (sel_redirect_edge_and_branch_force): Likewise.
12287 (sel_redirect_edge_and_branch): Likewise.
12289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12291 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12292 "new_insn" from rtx to rtx_insn *.
12293 (create_insn_rtx_with_rhs): Likewise for return type and for local
12295 (create_insn_rtx_with_lhs): Likewise.
12296 (create_speculation_check): Likewise for local "insn_rtx".
12297 (implicit_clobber_conflict_p): Likewise for local "insn".
12298 (get_expr_cost): Likewise.
12299 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12300 (move_cond_jump): Likewise for locals "next", "prev", "link",
12301 "head", "from", "to".
12303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12305 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12306 "next" from rtx to rtx_insn *.
12307 (find_conditional_protection): Likewise for local "next".
12308 (is_conditionally_protected): Likewise for local "insn1".
12309 (is_pfree): Likewise for locals "insn1", "insn2".
12311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12313 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12314 from rtx to rtx_insn *.
12316 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12317 locals "insn1", "insn2" from rtx to rtx_insn *.
12318 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12319 locals "insn", "prev", "last_jump", "next_tail".
12320 (schedule_ebb): Likewise for params "head", "tail".
12321 (schedule_ebbs): Likewise for locals "tail", "head".
12323 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12324 to rtx_insn on "last_insn" in one of the invocations of
12327 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12329 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12330 "elem", "insn" from rtx to rtx_insn *.
12331 (change_spec_dep_to_hard): Likewise.
12332 (get_back_and_forw_lists): Likewise for local "con".
12333 (sd_add_dep): Likewise for locals "elem", "insn".
12334 (sd_resolve_dep): Likewise for locals "pro", "con".
12335 (sd_unresolve_dep): Likewise.
12336 (sd_delete_dep): Likewise.
12337 (chain_to_prev_insn): Likewise for local "pro".
12338 (find_inc): Likewise for locals "pro", "con".
12340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12342 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12344 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12346 (modified_between_p): Strengthen local "insn" from rtx to
12348 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12349 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12354 * resource.c (next_insn_no_annul): Strengthen local "next" from
12356 (mark_referenced_resources): Likewise for local "insn".
12358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12360 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12362 (find_reloads): Likewise for param 1.
12363 (subst_reloads): Likewise for sole param.
12364 (find_equiv_reg): Likwise for param 2.
12365 (regno_clobbered_p): Likwise for param 2.
12366 (reload): Likewise for param 1.
12368 * caller-save.c (save_call_clobbered_regs): Strengthen local
12369 "insn" from rtx to rtx_insn *.
12370 (insert_one_insn): Likewise for local "insn".
12372 * reload.c (this_insn): Likewise for this global.
12373 (find_reloads): Likewise for param "insn".
12374 (find_reloads_toplev): Likewise.
12375 (find_reloads_address): Likewise.
12376 (subst_reg_equivs): Likewise.
12377 (update_auto_inc_notes): Likewise.
12378 (find_reloads_address_1): Likewise.
12379 (find_reloads_subreg_address): Likewise.
12380 (subst_reloads): Likewise.
12381 (find_equiv_reg): Likewise, also for local "p".
12382 (regno_clobbered_p): Likewise for param "insn".
12384 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12386 (spill_reg_store): Likewise for the elements of this array.
12387 (remove_init_insns): Likewise for local "equiv_insn".
12388 (will_delete_init_insn_p): Likewise for param "insn".
12389 (reload): Likewise for param ""first" and local "insn".
12390 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12392 (calculate_elim_costs_all_insns): Likewise.
12393 (delete_caller_save_insns): Likewise.
12394 (spill_failure): Likewise for param "insn".
12395 (delete_dead_insn): Likewise.
12396 (set_label_offsets): Likewise.
12397 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12399 (elimination_costs_in_insn): Likewise for param "insn".
12400 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12401 when referring to an insn.
12402 (set_initial_label_offsets): Likewise.
12403 (set_offsets_for_label): Strengthen param "insn" from rtx to
12405 (init_eliminable_invariants): Likewise for param "first" and local
12407 (fixup_eh_region_note): Likewise for param "insn".
12408 (reload_as_needed): Likewise for locals "prev", "insn",
12409 "old_next", "old_prev", "next".
12410 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12412 (reload_inheritance_insn): Strengthen elements of this array from
12414 (failed_reload): Likewise for param "insn".
12415 (choose_reload_regs): Likewise for local "insn". Replace use of
12416 NULL_RTX with NULL when referring to an insn.
12417 (input_reload_insns): Strengthen elements of this array from rtx
12419 (other_input_address_reload_insns): Likewise for this global.
12420 (other_input_reload_insns): Likewise for this global.
12421 (input_address_reload_insns): Likwise for the elements of this
12423 (inpaddr_address_reload_insns): Likwise for the elements of this
12425 (output_reload_insns): Likewise for the elements of this array.
12426 (output_address_reload_insns): Likewise for the elements of this
12428 (outaddr_address_reload_insns): Likewise for the elements of this
12430 (operand_reload_insns): Likewise for this global.
12431 (other_operand_reload_insns): Likewise for this global.
12432 (other_output_reload_insns): Likewise for the elements of this
12434 (new_spill_reg_store): Likewise for the elements of this
12436 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12437 Strengthen local "where" from rtx * to rtx_insn **.
12438 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12439 from rtx to rtx_insn *.
12440 (do_input_reload): Likewise for local "insn".
12441 (do_output_reload): Likewise for local "insn".
12442 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12443 (emit_insn_if_valid_for_reload): Likewise for return type and local
12444 "last". Add checked cast to rtx_insn when returning "insn" since
12445 this has been through emit_insn.
12446 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12447 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12448 returning "insn" since it's been through
12449 emit_insn_if_valid_for_reload at this point.
12450 (delete_output_reload): Strengthen param "insn" and locals
12451 "output_reload_insn", "i2" from rtx to rtx_insn *.
12452 (delete_address_reloads): Likewise for params "dead_insn",
12453 "current_insn" and locals "prev", "next".
12454 (delete_address_reloads_1): Likewise for params "dead_insn",
12455 "current_insn" and locals "prev", "i2".
12456 (inc_for_reload): Likewise for locals "last", "add_insn".
12457 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12460 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12461 param of this duplicate of the prototype from reload.h
12463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12465 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12467 (regstat_bb_compute_calls_crossed): Likewise.
12469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12471 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12473 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12475 (regrename_analyze): Strengthen local "insn" from rtx to
12477 (scan_rtx_reg): Likewise for param "insn".
12478 (scan_rtx_address): Likewise.
12479 (scan_rtx): Likewise.
12480 (restore_operands): Likewise.
12481 (record_out_operands): Likewise.
12482 (build_def_use): Likewise for local "insn". Replace use of
12483 NULL_RTX with NULL when dealing with an insn.
12485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12487 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12488 * reginfo.c (reg_scan): Likewise, also for local "insn".
12489 (reg_scan_mark_refs): Likewise for param "insn".
12490 (init_subregs_of_mode): Likewise for local "insn".
12492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12494 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12495 "insn" from rtx to rtx_insn *.
12496 (replace_oldest_value_reg): Likewise for param "insn".
12497 (replace_oldest_value_addr): Likewise.
12498 (replace_oldest_value_mem): Likewise.
12499 (apply_debug_insn_changes): Likewise for local "last_insn".
12500 (copyprop_hardreg_forward_1): Likewise for local "insn".
12502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12504 * reg-stack.c (next_flags_user): Strengthen return type and param
12505 "insn" from rtx to rtx_insn *.
12506 (straighten_stack): Likewise for param "insn".
12507 (check_asm_stack_operands): Likewise.
12508 (remove_regno_note): Likewise.
12509 (emit_pop_insn): Likewise for return type, param "insn", local
12511 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12512 "limit" from rtx to rtx_insn *.
12513 (swap_to_top): Likewise for param "insn".
12514 (move_for_stack_reg): Likewise.
12515 (move_nan_for_stack_reg): Likewise.
12516 (swap_rtx_condition): Likewise.
12517 (compare_for_stack_reg): Likewise.
12518 (subst_all_stack_regs_in_debug_insn): Likewise.
12519 (subst_stack_regs_pat): Likewise, and local "insn2".
12520 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12522 (subst_stack_regs): Likewise.
12523 (change_stack): Likewise.
12524 (convert_regs_1): Likewise for locals "insn", "next".
12526 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12528 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12530 (combine_set_extension): Likewise for param "curr_insn".
12531 (transform_ifelse): Likewise for param "def_insn".
12532 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12533 from vec<rtx> * to vec<rtx_insn *> *.
12534 (is_cond_copy_insn): Likewise for param "insn".
12535 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12536 to vec<rtx_insn *>.
12537 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12538 local "def_insn" from rtx to rtx_insn *.
12539 (get_sub_rtx): Likewise for param "def_insn".
12540 (merge_def_and_ext): Likewise.
12541 (combine_reaching_defs): Likewise.
12542 (add_removable_extension): Likewise for param "insn".
12543 (find_removable_extensions): Likewise for local "insn".
12544 (find_and_remove_re): Likewise for locals "curr_insn" and
12545 "def_insn". Strengthen locals "reinsn_del_list" and
12546 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12548 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12550 * recog.c (split_insn): Strengthen param "insn" and locals
12551 "first", "last" from rtx to rtx_insn *.
12552 (split_all_insns): Likewise for locals "insn", "next".
12553 (split_all_insns_noflow): Likewise.
12555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12557 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12559 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12560 (debug_rtx_find): Likewise for param 1 "x".
12562 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12563 const_rtx to const rtx_insn *. Likewise for local "insn".
12564 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12565 (debug_rtx_find): Likewise for param 1 "x".
12566 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12567 from const_rtx to const rtx_insn * within the appropriate cases of
12568 the switch statement.
12570 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12571 Strengthen local "insns" from rtx to rtx_insn * since this is
12572 passed to a call to debug_rtx_list.
12574 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12576 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12579 * function.c (stack_protect_epilogue): Add checked cast to
12580 rtx_insn for now when invoking predict_insn_def.
12582 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12584 (predict_insn_def): Likewise.
12585 (rtl_predict_edge): Likewise for local "last_insn".
12586 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12588 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12590 (bb_estimate_probability_locally): Likewise for local "last_insn".
12591 (expensive_function_p): Likewise for local "insn".
12593 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12594 local "jmp", since this is used when invoking predict_insn_def.
12596 2014-08-22 Marek Polacek <polacek@redhat.com>
12599 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12601 2014-08-22 Marek Polacek <polacek@redhat.com>
12604 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12605 a comparison in parens.
12606 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12609 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12611 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12614 * cprop.c (fis_get_condition): Likewise.
12616 * postreload.c (reload_cse_regs): Likewise for param "first".
12617 (reload_cse_simplify): Likewise for param "insn".
12618 (reload_cse_regs_1): Likewise for local "insn".
12619 (reload_cse_simplify_set): Likewise for param "insn".
12620 (reload_cse_simplify_operands): Likewise.
12621 (struct reg_use): Likewise for field "insn".
12622 (reload_combine_purge_insn_uses): Likewise for param "insn".
12623 (fixup_debug_insns): Likewise for params "from", "to" and local
12625 (try_replace_in_use): Likewise for local "use_insn".
12626 (reload_combine_recognize_const_pattern): Likewise for param
12627 "insn" and locals "add_moved_after_insn", "use_insn".
12628 (reload_combine_recognize_pattern): Likewise for param "insn" and
12630 (reload_combine): Likewise for locals "insn", "prev".
12631 (reload_combine_note_use): Likewise for param "insn".
12632 (move2add_use_add2_insn): Likewise.
12633 (move2add_use_add3_insn): Likewise.
12634 (reload_cse_move2add): Likewise, also for local "next".
12635 (move2add_note_store): Likewise for local "insn".
12637 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12639 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12641 (struct unoccr): Likewise.
12642 (struct modifies_mem): Likewise.
12643 (alloc_mem): Likewise for local "insn".
12644 (insert_expr_in_table): Likewise for param "insn".
12645 (dump_expr_hash_table_entry): Likewise for local "insn".
12646 (oprs_unchanged_p): Likewise for param "insn".
12647 (load_killed_in_block_p): Likewise for local "setter".
12648 (record_last_reg_set_info): Likewise for param "insn".
12649 (record_last_reg_set_info_regno): Likewise.
12650 (record_last_mem_set_info): Likewise.
12651 (record_last_set_info): Likewise for local "last_set_insn".
12652 (record_opr_changes): Likewise for param "insn".
12653 (hash_scan_set): Likewise.
12654 (compute_hash_table): Likewise for local "insn".
12655 (get_avail_load_store_reg): Likewise for param "insn".
12656 (eliminate_partially_redundant_load): Likewise, also for locals
12657 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12659 (eliminate_partially_redundant_loads): Likewise for local "insn".
12661 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12663 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12665 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12666 (expand_twoval_unop): Likewise for locals entry_last", "last".
12667 (expand_twoval_binop): Likewise.
12668 (expand_twoval_binop_libfunc): Likewise for local "insns".
12669 (widen_leading): Likewise for local "last".
12670 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12671 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12672 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12673 (expand_parity): Likewise for locals "last" and "seq".
12674 (expand_ffs): Likewise for local "seq". Strengthen local
12675 "nonzero_label" from rtx to rtx_code_label *.
12676 (expand_absneg_bit): Strengthen local "insns" from rtx to
12678 (expand_unop_direct): Likewise for local "last".
12679 (expand_unop): Likewise for locals "last", "insns".
12680 (expand_abs_nojump): Likewise for local "last".
12681 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12682 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12684 (expand_copysign_absneg): Strengthen local "label" from rtx to
12686 (expand_copysign_bit): Strengthen local "insns" from rtx to
12688 (struct no_conflict_data): Likewise for fields "first", "insn".
12689 (emit_libcall_block_1): Likewise for param "insns" and locals
12690 "next", "last", "insn".
12691 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12692 on "insns" when invoking emit_libcall_block_1. Ultimately we
12693 want to strengthen insns itself.
12694 (prepare_cmp_insn): Strengthen local "last" from rtx to
12696 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12697 (prepare_float_lib_cmp): Likewise for local "insns".
12698 (emit_conditional_move): Likewise for local "last".
12699 (emit_conditional_add): Likewise.
12700 (have_sub2_insn): Likewise for local "seq".
12701 (expand_float): Likewise for local "insns". Strengthen locals
12702 "label", "neglabel" from rtx to rtx_code_label *.
12703 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12704 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12705 (expand_fixed_convert): Likewise for local "insns" (to
12707 (expand_sfix_optab): Likewise for local "last".
12708 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12709 to rtx_code_label *.
12710 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12711 from rtx to rtx_insn *.
12712 (expand_atomic_fetch_op): Likewise for local "insn".
12713 (maybe_legitimize_operand_same_code): Likewise for local "last".
12714 (maybe_legitimize_operands): Likewise.
12716 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12718 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12719 "insn" from rtx to rtx_insn *.
12720 (ps_rtl_insn): Likewise for return type.
12721 (doloop_register_get): Likewise for params "head", "tail" and
12722 locals "insn", "first_insn_not_to_check".
12723 (schedule_reg_move): Likewise for local "this_insn".
12724 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12725 of gen_move_insn for now.
12726 (reset_sched_times): Strengthen local "insn" from rtx to
12728 (permute_partial_schedule): Likewise.
12729 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12730 (dump_insn_location): Likewise for param "insn".
12731 (loop_canon_p): Likewise for local "insn".
12732 (sms_schedule): Likewise.
12733 (print_partial_schedule): Likewise.
12734 (ps_has_conflicts): Likewise.
12736 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12738 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12739 "tailp" from rtx * to rtx_insn **.
12741 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12742 from rtx to rtx_insn *.
12743 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12744 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12745 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12747 * modulo-sched.c (const_iteration_count): Strengthen return type
12748 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12749 use of NULL_RTX with NULL when working with insns.
12750 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12752 (sms_schedule): Likewise.
12753 * sched-rgn.c (init_ready_list): Likewise, also for locals
12754 "src_head" and "src_next_tail".
12755 (compute_block_dependences): Likewise.
12756 (free_block_dependencies): Likewise.
12757 (debug_rgn_dependencies): Likewise.
12758 (free_rgn_deps): Likewise.
12759 (compute_priorities): Likewise.
12760 (schedule_region): Likewise.
12761 * sel-sched.c (find_ebb_boundaries): Likewise.
12763 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12764 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12766 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12768 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12769 from rtx to rtx_insn *.
12770 (new_seginfo): Likewise for param "insn".
12771 (create_pre_exit): Likewise for locals "last_insn",
12772 "before_return_copy", "return_copy".
12773 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12776 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12778 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12779 from rtx to rtx_insn *.
12780 (lra_push_insn): Likewise for 1st param.
12781 (lra_push_insn_and_update_insn_regno_info): Likewise.
12782 (lra_pop_insn): Likewise for return type.
12783 (lra_invalidate_insn_data): Likewise for 1st param.
12784 (lra_set_insn_deleted): Likewise.
12785 (lra_delete_dead_insn): Likewise.
12786 (lra_process_new_insns): Likewise for first 3 params.
12787 (lra_set_insn_recog_data): Likewise for 1st param.
12788 (lra_update_insn_recog_data): Likewise.
12789 (lra_set_used_insn_alternative): Likewise.
12790 (lra_invalidate_insn_regno_info): Likewise.
12791 (lra_update_insn_regno_info): Likewise.
12792 (lra_former_scratch_operand_p): Likewise.
12793 (lra_eliminate_regs_1): Likewise.
12794 (lra_get_insn_recog_data): Likewise.
12796 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12799 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12801 (substitute_within_insn): New.
12802 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12803 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12804 Replace call to "substitute" with call to substitute_within_insn.
12806 * lra-constraints.c (curr_insn): Strengthen from rtx to
12808 (get_equiv_with_elimination): Likewise for param "insn".
12809 (match_reload): Strengthen params "before" and "after" from rtx *
12811 (emit_spill_move): Likewise for return type. Add a checked cast
12812 to rtx_insn * on result of gen_move_insn for now.
12813 (check_and_process_move): Likewise for local "before". Replace
12814 NULL_RTX with NULL when referring to insns.
12815 (process_addr_reg): Strengthen params "before" and "after" from
12816 rtx * to rtx_insn **.
12817 (insert_move_for_subreg): Likewise.
12818 (simplify_operand_subreg): Strengthen locals "before" and "after"
12819 from rtx to rtx_insn *.
12820 (process_address_1): Strengthen params "before" and "after" from
12821 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12823 (process_address): Strengthen params "before" and "after" from
12824 rtx * to rtx_insn **.
12825 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12826 (curr_insn_transform): Strengthen locals "before" and "after"
12827 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12829 (loc_equivalence_callback): Update cast of "data", changing
12830 resulting type from rtx to rtx_insn *.
12831 (substitute_pseudo_within_insn): New.
12832 (inherit_reload_reg): Strengthen param "insn" from rtx to
12833 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12834 NULL when referring to insns. Add a checked cast to rtx_insn *
12835 when using usage_insn to invoke lra_update_insn_regno_info.
12836 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12837 likewise for locals "restore", "save". Add checked casts to
12838 rtx_insn * when using usage_insn to invoke
12839 lra_update_insn_regno_info and lra_process_new_insns. Replace
12840 NULL_RTX with NULL when referring to insns.
12841 (split_if_necessary): Strengthen param "insn" from rtx to
12843 (update_ebb_live_info): Likewise for params "head", "tail" and local
12845 (get_last_insertion_point): Likewise for return type and local "insn".
12846 (get_live_on_other_edges): Likewise for local "last".
12847 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12848 "prev_insn", "next_insn", "restore".
12849 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12850 (undo_optional_reloads): Likewise for local "insn".
12852 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12854 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12856 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12858 (spill_pseudos): Likewise for local "insn".
12859 (init_elimination): Likewise.
12860 (process_insn_for_elimination): Likewise for param "insn".
12862 * lra-lives.c (curr_insn): Likewise.;
12864 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12865 (remove_pseudos): Likewise for param "insn".
12866 (spill_pseudos): Likewise for local "insn".
12867 (lra_final_code_change): Likewise for locals "insn", "curr".
12869 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12870 (lra_set_insn_deleted): Likewise.
12871 (lra_delete_dead_insn): Likewise, and for local "prev".
12872 (new_insn_reg): Likewise for param "insn".
12873 (lra_set_insn_recog_data): Likewise.
12874 (lra_update_insn_recog_data): Likewise.
12875 (lra_set_used_insn_alternative): Likewise.
12876 (get_insn_freq): Likewise.
12877 (invalidate_insn_data_regno_info): Likewise.
12878 (lra_invalidate_insn_regno_info): Likewise.
12879 (lra_update_insn_regno_info): Likewise.
12880 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12882 (lra_push_insn_1): Strengthen param "insn" from rtx to
12884 (lra_push_insn): Likewise.
12885 (lra_push_insn_and_update_insn_regno_info): Likewise.
12886 (lra_pop_insn): Likewise for return type and local "insn".
12887 (push_insns): Likewise for params "from", "to", and local "insn".
12888 (setup_sp_offset): Likewise for params "from", "last" and locals
12890 (lra_process_new_insns): Likewise for params "insn", "before",
12891 "after" and local "last".
12892 (struct sloc): Likewise for field "insn".
12893 (lra_former_scratch_operand_p): Likewise for param "insn".
12894 (remove_scratches): Likewise for locals "insn", "last".
12895 (check_rtl): Likewise for local "insn".
12896 (add_auto_inc_notes): Likewise for param "insn".
12897 (update_inc_notes): Likewise for local "insn".
12898 (lra): Replace NULL_RTX with NULL when referring to insn.
12900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12902 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12904 (resolve_reg_notes): Likewise.
12905 (resolve_simple_move): Likewise for return type, param "insn", and
12906 locals "insns", "minsn".
12907 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12908 (resolve_use): Likewise.
12909 (resolve_debug): Likewise.
12910 (find_decomposable_shift_zext): Likewise.
12911 (resolve_shift_zext): Likewise for return type, param "insn", and
12912 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12913 (decompose_multiword_subregs): Likewise for local "insn",
12914 "orig_insn", "decomposed_shift", "end".
12916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12918 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12919 param "insns" from rtx to rtx_insn *.
12921 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12923 (struct iv_to_split): Likewise.
12924 (loop_exit_at_end_p): Likewise for local "insn".
12925 (split_edge_and_insert): Likewise for param "insns".
12926 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12927 and locals "seq", "jump".
12928 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12929 "branch_code"; update invocations of compare_and_jump_seq to
12930 eliminate NULL_RTX in favor of NULL.
12931 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12933 (reset_debug_uses_in_loop): Likewise.
12934 (analyze_insn_to_expand_var): Likewise for param "insn".
12935 (analyze_iv_to_split_insn): Likewise.
12936 (analyze_insns_in_loop): Likewise for local "insn".
12937 (insert_base_initialization): Likewise for param
12938 "insn" and local "seq".
12939 (split_iv): Likewise for param "insn" and local "seq".
12940 (expand_var_during_unrolling): Likewise for param "insn".
12941 (insert_var_expansion_initialization): Likewise for local "seq".
12942 (combine_var_copies_in_loop_exit): Likewise.
12943 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12945 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12946 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12951 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12953 (iv_analyze_result): Likewise.
12954 (iv_analyze_expr): Likewise.
12957 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12958 local "def_insn" from rtx to rtx_insn *.
12959 (get_biv_step_1): Likewise for local "insn".
12960 (iv_analyze_expr): Likewise for param "insn".
12961 (iv_analyze_def): Likewise for local "insn".
12962 (iv_analyze_op): Likewise for param "insn".
12963 (iv_analyze): Likewise.
12964 (iv_analyze_result): Likewise.
12966 (suitable_set_for_replacement): Likewise.
12967 (simplify_using_initial_values): Likewise for local "insn".
12968 (iv_number_of_iterations): Likewise for param "insn".
12969 (check_simple_exit): Add checked cast to rtx_insn when invoking
12970 iv_number_of_iterations for now (until get_condition is
12973 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12974 "insn" from rtx to rtx_insn *.
12975 (analyze_insns_in_loop): Likewise for local "insn".
12977 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12979 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12981 (struct invariant): Likewise.
12982 (hash_invariant_expr_1): Likewise for param "insn".
12983 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12984 (find_exits): Likewise for local "insn".
12985 (create_new_invariant): Likewise for param "insn".
12986 (check_dependencies): Likewise.
12987 (find_invariant_insn): Likewise.
12988 (record_uses): Likewise.
12989 (find_invariants_insn): Likewise.
12990 (find_invariants_bb): Likewise for local "insn".
12991 (get_pressure_class_and_nregs): Likewise for param "insn".
12992 (calculate_loop_reg_pressure): Likewise for local "insn".
12994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12996 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12998 (add_test): Likewise for locals "seq", "jump".
12999 (doloop_modify): Likewise for locals "sequence", "jump_insn".
13001 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13003 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13005 (rebuild_jump_labels_chain): Likewise for param "chain".
13007 * cfgexpand.c (pass_expand::execute): Add checked cast to
13008 rtx_insn * when calling rebuild_jump_labels_chain in region where
13009 we know e->insns.r is non-NULL.
13011 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13013 (rebuild_jump_labels): Likewise.
13014 (rebuild_jump_labels_chain): Likewise for param "chain".
13015 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13016 (init_label_info): Likewise for param "f".
13017 (maybe_propagate_label_ref): Likewise for params "jump_insn",
13018 "prev_nonjump_insn".
13019 (mark_all_labels): Likewise for param "f" and locals "insn",
13020 "prev_nonjump_insn".
13022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13024 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13025 from rtx to rtx_insn *insn.
13026 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13027 (ira_add_allocno_copy): Likewise.
13028 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13030 (ira_create_copy): Likewise.
13031 (ira_add_allocno_copy): Likewise.
13032 (create_bb_allocnos): Likewise for local "insn".
13033 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13034 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13035 process_regs_for_copy for rtx_insn * param.
13036 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13037 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
13038 process_regs_for_copy for rtx_insn * param.
13039 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13040 * ira-costs.c (record_reg_classes): Likewise for param "insn".
13041 (record_operand_costs): Likewise.
13042 (scan_one_insn): Likewise for return type, and for param "insn".
13043 (process_bb_for_costs): Likewise for local "insn".
13044 (process_bb_node_for_hard_reg_moves): Likewise.
13045 * ira-emit.c (struct move): Likewise for field "insn".
13046 (create_move): Eliminate use of NULL_RTX when dealing with an
13048 (emit_move_list): Strengthen return type and locals "result",
13049 "insn" from rtx to rtx_insn *insn.
13050 (emit_moves): Likewise for locals "insns", "tmp".
13051 (ira_emit): Likewise for local "insn".
13052 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13054 (find_call_crossed_cheap_reg): Likewise.
13055 (process_bb_node_lives): Likewise for local "insn".
13056 * ira.c (decrease_live_ranges_number): Likewise.
13057 (compute_regs_asm_clobbered): Likewise.
13058 (build_insn_chain): Likewise.
13059 (find_moveable_pseudos): Likewise, also locals "def_insn",
13060 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
13061 to rtx_insn **. Add a checked cast when assigning from
13062 "closest_use" into closest_uses array in a region where we know
13063 it's a non-NULL insn.
13064 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13066 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13067 "last_interesting_insn", "uin".
13068 (move_unallocated_pseudos): Likewise for locals "def_insn",
13069 "move_insn", "newinsn".
13071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13073 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13074 Strengthen locals "done_label", "do_error" from rtx to
13076 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13077 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
13079 (ubsan_expand_si_overflow_neg_check): Likewise for locals
13080 "done_label", "do_error" to rtx_code_label * and local "last" to
13082 (ubsan_expand_si_overflow_mul_check): Likewise for locals
13083 "done_label", "do_error", "large_op0", "small_op0_large_op1",
13084 "one_small_one_large", "both_ops_large", "after_hipart_neg",
13085 "after_lopart_neg", "do_overflow", "hipart_different" to
13086 rtx_code_label * and local "last" to rtx_insn *.
13088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13090 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13091 "insn" and "move_insn" from rtx to rtx_insn *.
13093 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13095 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13097 (cheap_bb_rtx_cost_p): Likewise.
13098 (first_active_insn): Likewise for return type and local "insn".
13099 (last_active_insn): Likewise for return type and locals "insn",
13101 (struct noce_if_info): Likewise for fields "jump", "insn_a",
13103 (end_ifcvt_sequence): Likewise for return type and locals "insn",
13105 (noce_try_move): Likewise for local "seq".
13106 (noce_try_store_flag): Likewise.
13107 (noce_try_store_flag_constants): Likewise.
13108 (noce_try_addcc): Likewise.
13109 (noce_try_store_flag_mask): Likewise.
13110 (noce_try_cmove): Likewise.
13111 (noce_try_minmax): Likewise.
13112 (noce_try_abs): Likewise.
13113 (noce_try_sign_mask): Likewise.
13114 (noce_try_bitop): Likewise.
13115 (noce_can_store_speculate_p): Likewise for local "insn".
13116 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13118 (check_cond_move_block): Likewise for local "insn".
13119 (cond_move_convert_if_block): Likewise.
13120 (cond_move_process_if_block): Likewise for locals "seq",
13122 (noce_find_if_block): Likewise for local "jump".
13123 (merge_if_block): Likewise for local "last".
13124 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13125 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13126 (block_has_only_trap): Likewise for return type and local "trap".
13127 (find_if_case_1): Likewise for local "jump".
13128 (dead_or_predicable): Likewise for locals "head", "end", "jump",
13131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13133 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13134 "last_insn", "loop_end" from rtx to rtx_insn *.
13136 * hw-doloop.c (scan_loop): Likewise for local "insn".
13137 (discover_loop): Likewise for param "tail_insn".
13138 (discover_loops): Likewise for local "tail".
13140 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13141 cast to rtx_insn * when assigning from an rtx local to a
13142 hwloop_info's "last_insn" field.
13144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13146 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13147 (add_delay_dependencies): Strengthen local "pro" from rtx to
13149 (recompute_todo_spec): Likewise.
13150 (dep_cost_1): Likewise for locals "insn", "used".
13151 (schedule_insn): Likewise for local "dbg".
13152 (schedule_insn): Likewise for locals "pro", "next".
13153 (unschedule_insns_until): Likewise for local "con".
13154 (restore_pattern): Likewise for local "next".
13155 (estimate_insn_tick): Likewise for local "pro".
13156 (resolve_dependencies): Likewise for local "next".
13157 (fix_inter_tick): Likewise.
13158 (fix_tick_ready): Likewise for local "pro".
13159 (add_to_speculative_block): Likewise for locals "check", "twin",
13161 (sched_extend_bb): Likewise for locals "end", "insn".
13162 (init_before_recovery): Likewise for local "x".
13163 (sched_create_recovery_block): Likewise for local "barrier".
13164 (create_check_block_twin): Likewise for local "pro".
13165 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13167 (unlink_bb_notes): Update for change to type of bb_header.
13168 Strengthen locals "prev", "label", "note", "next" from rtx to
13170 (clear_priorities): Likewise for local "pro".
13172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13174 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13176 (test_insn): Likewise for this global.
13177 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13179 (oprs_anticipatable_p): Likewise.
13180 (oprs_available_p): Likewise.
13181 (insert_expr_in_table): Strengthen param "insn" from rtx to
13183 (hash_scan_set): Likewise.
13184 (hash_scan_clobber): Likewise.
13185 (hash_scan_call): Likewise.
13186 (hash_scan_insn): Likewise.
13187 (compute_hash_table_work): Likewise for local "insn".
13188 (process_insert_insn): Likewise for return type and local "pat".
13189 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13190 "pat", "pat_end", "maybe_cc0_setter".
13191 (pre_edge_insert): Likewise for local "insn".
13192 (pre_insert_copy_insn): Likewise for param "insn".
13193 (pre_insert_copies): Likewise for local "insn".
13194 (struct set_data): Likewise for field "insn".
13195 (single_set_gcse): Likewise for param "insn".
13196 (gcse_emit_move_after): Likewise.
13197 (pre_delete): Likewise for local "insn".
13198 (update_bb_reg_pressure): Likewise for param "from" and local
13200 (should_hoist_expr_to_dom): Likewise for param "from".
13201 (hoist_code): Likewise for local "insn".
13202 (get_pressure_class_and_nregs): Likewise for param "insn".
13203 (calculate_bb_reg_pressure): Likewise for local "insn".
13204 (compute_ld_motion_mems): Likewise.
13206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13208 * genpeep.c (main): Rename param back from "uncast_ins1" to
13209 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13212 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13214 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13217 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13218 documentation to state it is only for VSX operations.
13220 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13221 constraint only active if VSX.
13223 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13224 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13225 (lfiwzx): Likewise.
13227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13229 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13230 Strengthen local "insn" from rtx to rtx_insn *.
13231 (use_killed_between): Likewise for param "target_insn".
13232 (all_uses_available_at): Likewise for param "target_insn" and
13234 (update_df_init): Likewise for params "def_insn", "insn".
13235 (update_df): Likewise for param "insn".
13236 (try_fwprop_subst): Likewise for param "def_insn" and local
13238 (free_load_extend): Likewise for param "insn".
13239 (forward_propagate_subreg): Likewise for param "def_insn" and
13241 (forward_propagate_asm): Likewise for param "def_insn" and local
13243 (forward_propagate_and_simplify): Likewise for param "def_insn"
13244 and local "use_insn".
13245 (forward_propagate_into): Likewise for locals "def_insn" and
13248 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13250 * function.c (emit_initial_value_sets): Strengthen local "seq"
13251 from rtx to rtx_insn *.
13252 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13254 (instantiate_virtual_regs): Likewise for local "insn".
13255 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13256 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13257 (expand_function_end): Likewise for locals "insn" and "seq".
13258 (epilogue_done): Likewise for local "insn".
13259 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13261 (reposition_prologue_and_epilogue_notes): Likewise for locals
13262 "insn", "last", "note", "first".
13263 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13264 (pass_match_asm_constraints::execute): Likewise for local "insn".
13266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13268 * output.h (final_scan_insn): Strengthen return type from rtx to
13270 (final_forward_branch_p): Likewise for param.
13271 (current_output_insn): Likewise for this global.
13273 * final.c (rtx debug_insn): Likewise for this variable.
13274 (current_output_insn): Likewise.
13275 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13276 adding "insn" back in as an rtx_insn * with a checked cast, so
13277 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13279 (compute_alignments): Strengthen local "label" from rtx to
13281 (shorten_branches): Rename param from "first" to "uncast_first",
13282 introducing a new local rtx_insn * "first" using a checked cast to
13283 effectively strengthen "first" from rtx to rtx_insn * without
13284 affecting the type signature. Strengthen locals "insn", "seq",
13285 "next", "label" from rtx to rtx_insn *.
13286 (change_scope): Strengthen param "orig_insn" and local "insn" from
13288 (final_start_function): Rename param from "first" to "uncast_first",
13289 introducing a new local rtx_insn * "first" using a checked cast to
13290 effectively strengthen "first" from rtx to rtx_insn * without
13291 affecting the type signature. Strengthen local "insn" from rtx to
13293 (dump_basic_block_info): Strengthen param "insn" from rtx to
13295 (final): Rename param from "first" to "uncast_first",
13296 introducing a new local rtx_insn * "first" using a checked cast to
13297 effectively strengthen "first" from rtx to rtx_insn * without
13298 affecting the type signature. Strengthen locals "insn", "next"
13299 from rtx to rtx_insn *.
13300 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13302 (call_from_call_insn): Strengthen param "insn" from rtx to
13304 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13305 introducing a new local rtx_insn * "insn" using a checked cast to
13306 effectively strengthen "insn" from rtx to rtx_insn * without
13307 affecting the type signature. Strengthen return type and locals
13308 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13309 now-redundant checked cast to rtx_insn * from both invocations of
13310 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13311 introducing a local "call_insn" for use when invoking
13312 call_from_call_insn.
13313 (notice_source_line): Strengthen param "insn" from rtx to
13315 (leaf_function_p): Likewise for local "insn".
13316 (final_forward_branch_p): Likewise.
13317 (leaf_renumber_regs): Likewise for param "first".
13318 (rest_of_clean_state): Likewise for locals "insn" and "next".
13319 (self_recursive_call_p): Likewise for param "insn".
13320 (collect_fn_hard_reg_usage): Likewise for local "insn".
13321 (get_call_fndecl): Likewise for param "insn".
13322 (get_call_cgraph_rtl_info): Likewise.
13323 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13324 introducing a new local rtx_insn * "insn" using a checked cast to
13325 effectively strengthen "insn" from rtx to rtx_insn * without
13326 affecting the type signature.
13328 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13329 cast when assigning from param "insn" to current_output_insn.
13330 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13331 so that we can assign it back to current_output_insn.
13333 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13335 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13336 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13337 atmxt540s and atmxt540sreva devices.
13338 * config/avr/avr-tables.opt: Regenerate.
13339 * config/avr/t-multilib: Regenerate.
13340 * doc/avr-mmcu.texi: Regenerate.
13342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13344 * expr.c (convert_move): Strengthen local "insns" from rtx to
13346 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13347 "top_label" from rtx to rtx_code_label *.
13348 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13350 (emit_single_push_insn): Likewise for locals "prev", "last".
13351 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13352 to rtx_code_label *.
13353 (store_constructor): Likewise for locals "loop_start", "loop_end".
13354 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13356 (expand_expr_real_2): Likewise.
13357 (expand_expr_real_1): Strengthen local "label" from rtx to
13360 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13362 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13363 from rtx to rtx_insn *.
13364 (store_bit_field_1): Likewise.
13365 (extract_bit_field_1): Likewise.
13366 (expand_mult_const): Likewise for local "insns".
13367 (expmed_mult_highpart): Strengthen local "label" from rtx to
13369 (expand_smod_pow2): Likewise.
13370 (expand_sdiv_pow2): Likewise.
13371 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13372 rtx_insn *. Strengthen locals "label", "label1", "label2",
13373 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13374 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13375 (emit_store_flag): Likewise.
13376 (emit_store_flag_force): Strengthen local "label" from rtx to
13378 (do_cmp_and_jump): Likewise for param "label".
13380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13382 * explow.c (force_reg): Strengthen local "insn" from rtx to
13384 (adjust_stack_1): Likewise.
13385 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13386 "final_label", "available_label", "space_available" from rtx to
13388 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13389 (anti_adjust_stack_and_probe): Likewise.
13391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13393 * except.h (sjlj_emit_function_exit_after): Strengthen param
13394 "after" from rtx to rtx_insn *. This is only called with
13395 result of get_last_insn (in function.c) so type-change should be
13398 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13399 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13400 to rtx_insn *. These fields are only used from except.c so this
13401 type-change should be self-contained to this patch.
13403 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13404 local "last" from rtx to rtx_insn *.
13405 (dw2_build_landing_pads): Likewise for local "seq".
13406 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13407 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13408 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13410 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13412 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13413 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13414 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13415 referring to an insn. Strengthen local "dispatch_label" from
13416 rtx to rtx_code_label *.
13417 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13419 (expand_eh_return): Strengthen local "around_label" from
13420 rtx to rtx_code_label *.
13421 (convert_to_eh_region_ranges): Strengthen locals "iter",
13422 "last_action_insn", "first_no_action_insn",
13423 "first_no_action_insn_before_switch",
13424 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13428 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13429 from rtx to rtx_insn *.
13430 (cached_next_real_insn): Likewise.
13431 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13432 working with insns.
13433 (dwarf2out_var_location): Strengthen locals "next_real",
13434 "next_note", "expected_next_loc_note", "last_start", "insn" from
13437 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13439 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13440 from rtx to rtx_insn *.
13441 (create_pseudo_cfg): Likewise for local "insn".
13443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13445 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13446 from rtx to rtx_insn *.
13447 (df_bb_regno_last_def_find): Likewise.
13449 * df-problems.c (df_rd_bb_local_compute): Likewise.
13450 (df_lr_bb_local_compute): Likewise.
13451 (df_live_bb_local_compute): Likewise.
13452 (df_chain_remove_problem): Likewise.
13453 (df_chain_create_bb): Likewise.
13454 (df_word_lr_bb_local_compute): Likewise.
13455 (df_remove_dead_eq_notes): Likewise for param "insn".
13456 (df_note_bb_compute): Likewise for local "insn".
13457 (simulate_backwards_to_point): Likewise.
13458 (df_md_bb_local_compute): Likewise.
13460 * df-scan.c (df_scan_free_bb_info): Likewise.
13461 (df_scan_start_dump): Likewise.
13462 (df_scan_start_block): Likewise.
13463 (df_install_ref_incremental): Likewise for local "insn".
13464 (df_insn_rescan_all): Likewise.
13465 (df_reorganize_refs_by_reg_by_insn): Likewise.
13466 (df_reorganize_refs_by_insn_bb): Likewise.
13467 (df_recompute_luids): Likewise.
13468 (df_bb_refs_record): Likewise.
13469 (df_update_entry_exit_and_calls): Likewise.
13470 (df_bb_verify): Likewise.
13472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13474 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13475 "first_note" from rtx to rtx_insn *.
13476 (get_node_of_insn): Likewise for param 2 "insn".
13477 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13479 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13481 (mem_write_insn_p): Likewise.
13482 (mem_access_insn_p): Likewise.
13483 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13484 (def_has_ccmode_p): Likewise for param "insn".
13485 (add_cross_iteration_register_deps): Likewise for locals
13486 "def_insn" and "use_insn".
13487 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13488 (build_intra_loop_deps): Likewise for local "src_insn".
13489 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13491 (get_node_of_insn): Likewise for param "insn".
13493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13495 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13496 (deletable_insn_p): Strengthen param "insn" from rtx to
13497 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13498 find_call_stack_args, since this is guarded by CALL_P (insn).
13499 (marked_insn_p): Strengthen param "insn" from rtx to
13501 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13502 invoking find_call_stack_args, since this is guarded by
13504 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13505 rtx_insn *; we know this is an insn since this was called by
13506 mark_nonreg_stores.
13507 (mark_nonreg_stores_2): Likewise.
13508 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13510 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13511 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13513 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13514 from rtx to rtx_insn *.
13515 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13516 "next", "ref_insn".
13517 (delete_unmarked_insns): Likewise for locals "insn", "next".
13518 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13519 (mark_reg_dependencies): Likewise for param "insn".
13520 (rest_of_handle_ud_dce): Likewise for local "insn".
13521 (word_dce_process_block): Likewise.
13522 (dce_process_block): Likewise.
13524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13526 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13527 from rtx to rtx_insn *.
13528 (struct change_cc_mode_args): Likewise for field "insn".
13529 (this_insn): Strengthen from rtx to rtx_insn *.
13530 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13532 (validate_canon_reg): Strengthen param "insn" from rtx to
13534 (canon_reg): Likewise.
13535 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13537 (record_jump_equiv): Strengthen param "insn" from rtx to
13539 (try_back_substitute_reg): Likewise, also for locals "prev",
13541 (find_sets_in_insn): Likewise for param "insn".
13542 (canonicalize_insn): Likewise.
13543 (cse_insn): Likewise. Add a checked cast.
13544 (invalidate_from_clobbers): Likewise for param "insn".
13545 (invalidate_from_sets_and_clobbers): Likewise.
13546 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13548 (cse_prescan_path): Strengthen local "insn" from rtx to
13550 (cse_extended_basic_block): Likewise for locals "insn" and
13552 (cse_main): Likewise for param "f".
13553 (check_for_label_ref): Likewise for local "insn".
13554 (set_live_p): Likewise for second param ("insn").
13555 (insn_live_p): Likewise for first param ("insn") and for local
13557 (cse_change_cc_mode_insn): Likewise for first param "insn".
13558 (cse_change_cc_mode_insns): Likewise for first and second params
13560 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13562 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13565 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13567 Anna Tikhonova <anna.tikhonova@intel.com>
13568 Ilya Tocar <ilya.tocar@intel.com>
13569 Andrey Turetskiy <andrey.turetskiy@intel.com>
13570 Ilya Verbin <ilya.verbin@intel.com>
13571 Kirill Yukhin <kirill.yukhin@intel.com>
13572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13574 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13576 * config/i386/sse.md
13577 (define_mode_iterator VI248_AVX2): Delete.
13578 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13579 (define_mode_iterator VI48_AVX2): Ditto.
13580 (define_insn <shift_insn><mode>3): Delete.
13581 (define_insn "<shift_insn><mode>3<mask_name>" with
13582 VI2_AVX2_AVX512BW): New.
13583 (define_insn "<shift_insn><mode>3<mask_name>" with
13586 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13588 Anna Tikhonova <anna.tikhonova@intel.com>
13589 Ilya Tocar <ilya.tocar@intel.com>
13590 Andrey Turetskiy <andrey.turetskiy@intel.com>
13591 Ilya Verbin <ilya.verbin@intel.com>
13592 Kirill Yukhin <kirill.yukhin@intel.com>
13593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13595 * config/i386/sse.md
13596 (define_mode_iterator VI4F_BRCST32x2): New.
13597 (define_mode_attr 64x2_mode): Ditto.
13598 (define_mode_attr 32x2mode): Ditto.
13599 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13600 with VI4F_BRCST32x2): Ditto.
13601 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13602 with V16FI mode iterator): Ditto.
13603 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13604 with V16FI): Ditto.
13605 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13606 with VI8F_BRCST64x2): Ditto.
13608 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13609 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13610 Anna Tikhonova <anna.tikhonova@intel.com>
13611 Ilya Tocar <ilya.tocar@intel.com>
13612 Andrey Turetskiy <andrey.turetskiy@intel.com>
13613 Ilya Verbin <ilya.verbin@intel.com>
13614 Kirill Yukhin <kirill.yukhin@intel.com>
13615 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13617 * config/i386/sse.md
13618 (define_mode_iterator VI8_AVX512VL): New.
13619 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13621 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13623 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13624 (define_mode_iterator V48_AVX512VL): New.
13625 (define_mode_iterator V12_AVX512VL): Ditto.
13626 (define_insn <avx512>_load<mode>_mask): Split into two similar
13627 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13628 Refactor output template.
13629 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13633 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13635 (reg_available_p): Likewise for param "insn".
13636 (insert_set_in_table): Likewise.
13637 (hash_scan_set): Likewise.
13638 (hash_scan_insn): Likewise.
13639 (make_set_regs_unavailable): Likewise.
13640 (compute_hash_table_work): Likewise for local "insn".
13641 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13643 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13644 (try_replace_reg): Likewise.
13645 (find_avail_set): Likewise.
13646 (cprop_jump): Likewise for params "setcc", "jump".
13647 (constprop_register): Likewise for param "insn".
13648 (cprop_insn): Likewise.
13649 (do_local_cprop): Likewise.
13650 (local_cprop_pass): Likewise for local "insn".
13651 (bypass_block): Likewise for params "setcc" and "jump".
13652 (bypass_conditional_jumps): Likewise for locals "setcc" and
13654 (one_cprop_pass): Likewise for local "insn".
13656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13658 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13659 from rtx to rtx_insn *.
13660 (struct comparison): Likewise, also for field "prev_clobber".
13661 (conforming_compare): Likewise for param "insn".
13662 (arithmetic_flags_clobber_p): Likewise.
13663 (find_flags_uses_in_insn): Likewise.
13664 (find_comparison_dom_walker::before_dom_children): Likewise for
13665 locals "insn", "next", "last_clobber".
13666 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13670 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13671 "insn" from rtx to rtx_insn *.
13672 (single_set_for_csa): Likewise for param "insn".
13673 (record_one_stack_ref): Likewise.
13674 (try_apply_stack_adjustment): Likewise.
13675 (struct record_stack_refs_data): Likewise for field "insn".
13676 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13677 (prev_active_insn_bb): Likewise for return type and param "insn".
13678 (next_active_insn_bb): Likewise.
13679 (force_move_args_size_note): Likewise for params "prev" and "last"
13680 and locals "test", "next_candidate", "prev_candidate".
13681 (combine_stack_adjustments_for_block): Strengthen locals
13682 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13685 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13687 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13688 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13689 (subst_insn): Likewise for this variable.
13690 (added_links_insn): Likewise.
13691 (struct insn_link): Likewise for field "insn".
13692 (alloc_insn_link): Likewise for param "insn".
13693 (struct undobuf): Likewise for field "other_insn".
13694 (find_single_use): Likewise for param "insn" and local "next".
13695 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13696 (delete_noop_moves): Likewise for locals "insn", "next".
13697 (create_log_links): Likewise for locals "insn", "use_insn".
13698 Strengthen local "next_use" from rtx * to rtx_insn **.
13699 (insn_a_feeds_b): Likewise for params "a", "b".
13700 (combine_instructions): Likewise for param "f" and locals "insn",
13701 "next", "prev", "first", "last_combined_insn", "link", "link1",
13702 "temp". Replace use of NULL_RTX with NULL when referring to
13704 (setup_incoming_promotions): Likewise for param "first"
13705 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13706 (can_combine_p): Likewise for params "insn", "i3", "pred",
13707 "pred2", "succ", "succ2" and for local "p".
13708 (combinable_i3pat): Likewise for param "i3".
13709 (cant_combine_insn_p): Likewise for param "insn".
13710 (likely_spilled_retval_p): Likewise.
13711 (adjust_for_new_dest): Likewise.
13712 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13713 (try_combine): Likewise for return type and for params "i3", "i2",
13714 "i1", "i0", "last_combined_insn", and for locals "insn",
13715 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13716 "i0_insn". Eliminate local "tem" in favor of new locals
13717 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13718 checked cast for now to rtx_insn * on the return type of
13719 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13721 (find_split_point): Strengthen param "insn" from rtx to
13723 (simplify_set): Likewise for local "other_insn".
13724 (recog_for_combine): Likewise for param "insn".
13725 (record_value_for_reg): Likewise.
13726 (record_dead_and_set_regs_1): Likewise for local
13727 "record_dead_insn".
13728 (record_dead_and_set_regs): Likewise for param "insn".
13729 (record_promoted_value): Likewise.
13730 (check_promoted_subreg): Likewise.
13731 (get_last_value_validate): Likewise.
13732 (reg_dead_at_p): Likewise.
13733 (move_deaths): Likewise for param "to_insn".
13734 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13735 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13736 in favor of new locals "tem_note" and "tem_insn", the latter being
13738 (distribute_links): Strengthen locals "place", "insn" from rtx to
13741 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13743 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13745 (can_delete_label_p): Require a const rtx_code_label * rather than
13747 (delete_insn): Add checked cast to rtx_code_label * when we know
13748 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13750 (delete_insn_chain): Strengthen locals "prev" and "current" from
13751 rtx to rtx_insn *. Add a checked cast when assigning from
13752 "finish" (strengthening the params will come later). Add a
13753 checked cast to rtx_note * in region where we know
13755 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13757 (compute_bb_for_insn): Likewise.
13758 (free_bb_for_insn): Likewise for local "insn".
13759 (compute_bb_for_insn): Likewise.
13760 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13761 local "insn" from rtx to rtx_insn *
13762 (flow_active_insn_p): Require a const rtx_insn * rather than a
13764 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13766 (can_fallthru): Likewise for locals "insn" and "insn2".
13767 (bb_note): Likewise for local "note".
13768 (first_insn_after_basic_block_note): Likewise for local "note" and
13770 (rtl_split_block): Likewise for locals "insn" and "next".
13771 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13773 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13774 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13776 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13777 them), "kill_from", "barrier", "new_insn".
13778 (patch_jump_insn): Likewise for params "insn", "old_label".
13779 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13780 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13781 "old_label", "new_label".
13782 (rtl_tidy_fallthru_edge): Likewise for local "q".
13783 (rtl_split_edge): Likewise for locals "before", "last".
13784 (commit_one_edge_insertion): Likewise for locals "before",
13785 "after", "insns", "tmp", "last", adding a checked cast where
13786 currently necessary.
13787 (commit_edge_insertions): Likewise.
13788 (rtl_dump_bb): Likewise for locals "insn", "last".
13789 (print_rtl_with_bb): Likewise for local "x".
13790 (rtl_verify_bb_insns): Likewise for local "x".
13791 (rtl_verify_bb_pointers): Likewise for local "insn".
13792 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13794 (rtl_verify_fallthru): Likewise for local "insn".
13795 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13796 (purge_dead_edges): Likewise for local "insn".
13797 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13798 (skip_insns_after_block): Likewise for return type and for locals
13799 "insn", "last_insn", "next_head", "prev".
13800 (record_effective_endpoints): Likewise for locals "next_insn",
13802 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13803 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13804 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13805 (duplicate_insn_chain): For now, add checked cast from rtx to
13806 rtx_insn * when returning insn.
13807 (cfg_layout_duplicate_bb): Likewise for local "insn".
13808 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13809 "prev", "remaints".
13810 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13811 (rtl_block_empty_p): Likewise.
13812 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13813 "split_point", "last".
13814 (rtl_block_ends_with_call_p): Likewise for local "insn".
13815 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13817 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13818 "split_at_insn" from rtx to rtx_insn *.
13819 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13820 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13821 to const rtx_insn *.
13822 (rtl_account_profile_record): Likewise.
13824 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13826 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13828 (average_num_loop_insns): Likewise.
13829 (init_set_costs): Likewise for local "seq".
13830 (seq_cost): Likewise for param "seq", from const_rtx to const
13833 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13835 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13840 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13841 "f1" and "f2" from rtx * to rtx_insn **.
13842 (flow_find_head_matching_sequence): Likewise.
13844 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13845 "cbranch_insn" from rtx to rtx_insn *.
13846 (thread_jump): Likewise for local "insn".
13847 (try_forward_edges): Likewise for local "last".
13848 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13849 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13851 (can_replace_by): Likewise for params "i1", "i2".
13852 (old_insns_match_p): Likewise.
13853 (merge_notes): Likewise.
13854 (walk_to_nondebug_insn): Likewise for param "i1".
13855 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13856 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13857 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13858 (flow_find_head_matching_sequence): Strengthen params "f1" and
13859 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13860 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13862 (outgoing_edges_match): Likewise for locals "last1", "last2".
13863 (try_crossjump_to_edge): Likewise for local "insn".
13864 Replace call to for_each_rtx with for_each_rtx_in_insn.
13866 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13867 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13868 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13869 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13870 (try_optimize_cfg): Strengthen local "last" from rtx to
13872 (delete_dead_jumptables): Likewise for locals "insn", "next",
13875 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13876 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13877 "rtx else_first_tail", to reflect the basic-block.h changes above.
13879 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13881 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13883 (purge_dead_tablejump_edges): Likewise.
13884 (find_bb_boundaries): Likewise for locals "insn", "end",
13885 "flow_transfer_insn".
13887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13889 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13890 "ins" and "prev" from rtx to rtx_insn *.
13892 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13894 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13896 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13897 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13899 (load_register_parameters): Likewise for local "before_arg".
13900 (check_sibcall_argument_overlap): Likewise for param "insn".
13901 (expand_call): Likewise for locals "normal_call_insns",
13902 "tail_call_insns", "insns", "before_call", "after_args",
13903 "before_arg", "last", "prev". Strengthen one of the "last" from
13904 rtx to rtx_call_insn *.
13905 (fixup_tail_calls): Strengthen local "insn" from rtx to
13907 (emit_library_call_value_1): Likewise for locals "before_call" and
13910 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13912 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13913 and "last" from rtx to rtx_insn *.
13914 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13915 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13917 (expand_errno_check): Strengthen local "lab" from rtx to
13919 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13921 (expand_builtin_mathfn_2): Likewise.
13922 (expand_builtin_mathfn_ternary): Likewise.
13923 (expand_builtin_mathfn_3): Likewise.
13924 (expand_builtin_interclass_mathfn): Likewise for local "last".
13925 (expand_builtin_int_roundingfn): Likewise for local "insns".
13926 (expand_builtin_int_roundingfn_2): Likewise.
13927 (expand_builtin_strlen): Likewise for local "before_strlen".
13928 (expand_builtin_strncmp): Likewise for local "seq".
13929 (expand_builtin_signbit): Likewise for local "last".
13930 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13931 from rtx to rtx_code_label *.
13932 (expand_stack_restore): Strengthen local "prev" from rtx to
13935 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13937 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13939 (struct btr_def_s): Likewise.
13940 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13942 (add_btr_def): Likewise.
13943 (new_btr_user): Likewise.
13944 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13946 (link_btr_uses): Likewise.
13947 (move_btr_def): Likewise for locals "insp", "old_insn",
13948 "new_insn". Add checked cast to rtx_insn * for now on result of
13950 (can_move_up): Strengthen param "insn" from const_rtx to
13953 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13955 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13957 (get_uncond_jump_length): Likewise for locals "label", "jump".
13958 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13960 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13961 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13962 (find_jump_block): Likewise for local "insn".
13963 (fix_crossing_conditional_branches): Likewise for locals
13964 "old_jump", "new_jump".
13965 (fix_crossing_unconditional_branches): Likewise for locals
13966 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13967 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13969 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13971 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13973 (struct mem_insn): Likewise for field "insn".
13974 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13975 (reg_next_inc_use): Likewise.
13976 (reg_next_def): Likewise.
13977 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13978 from rtx to rtx_insn *.
13979 (move_insn_before): Likewise for param "next_insn" and local "insns".
13980 (attempt_change): Likewise for local "mov_insn".
13981 (try_merge): Likewise for param "last_insn".
13982 (get_next_ref): Likewise for return type and local "insn".
13983 Strengthen param "next_array" from rtx * to rtx_insn **.
13984 (parse_add_or_inc): Strengthen param "insn" from rtx to
13986 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13988 (merge_in_block): Likewise for locals "insn", "curr",
13990 (pass_inc_dec::execute): Update allocations of the arrays to
13991 reflect the stronger types.
13993 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13995 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13996 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13997 from rtx to rtx_code_label *.
13999 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14001 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14004 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14006 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14007 generated a warning and prevented bootstrapping the compiler.
14009 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14011 * rtl.h (delete_related_insns): Strengthen return type from rtx to
14014 * jump.c (delete_related_insns): Likewise, also for locals "next"
14017 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14019 * genautomata.c (output_internal_insn_latency_func): When writing
14020 the function "internal_insn_latency" to insn-automata.c,
14021 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14022 allowing the optional guard function of (define_bypass) clauses to
14023 expect a pair of rtx_insn *, rather than a pair of rtx.
14024 (output_insn_latency_func): When writing the function
14025 "insn_latency", add an "uncast_" prefix to params "insn" and
14026 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14027 using checked casts from the params, thus enabling the above
14028 change to the generated "internal_insn_latency" function.
14030 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
14032 PR tree-optimization/62091
14033 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14034 handle correctly arrays.
14035 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14036 inheritance binfos.
14037 (record_known_type): Walk into inner type.
14038 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14039 condition on no type changes.
14041 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14043 * genattrtab.c (write_attr_get): Within the generated get_attr_
14044 functions, rename param "insn" to "uncast_insn" and reintroduce
14045 "insn" as an local rtx_insn * using a checked cast, so that "insn"
14046 is an rtx_insn * within insn-attrtab.c
14048 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14050 * output.h (peephole): Strengthen return type from rtx to
14052 * rtl.h (delete_for_peephole): Likewise for both params.
14053 * genpeep.c (main): In generated "peephole" function, strengthen
14054 return type and local "insn" from rtx to rtx_insn *. For now,
14055 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14056 rtx_insn *, with a checked cast.
14057 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14058 locals "insn", "next", "prev" from rtx to rtx_insn *.
14060 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
14062 PR tree-optimization/62112
14063 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14064 * gimple-iterator.h (gsi_replace): Return bool.
14065 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14066 moved from ref_may_alias_global_p.
14067 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14069 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14070 (stmt_kills_ref_p_1): Rename...
14071 (stmt_kills_ref_p): ... to this.
14072 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14073 stmt_kills_ref_p): Declare.
14074 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14075 Move the self-assignment case...
14076 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14078 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14080 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14082 * emit-rtl.c (try_split): Likewise, also for locals "before" and
14083 "after". For now, don't strengthen param "trial", which requires
14084 adding checked casts when returning it.
14086 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14088 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14089 "label" from rtx to rtx_code_label *. Strengthen param 1 of
14090 "var_location" hook from rtx to rtx_insn *.
14091 (debug_nothing_rtx): Delete in favor of...
14092 (debug_nothing_rtx_code_label): New prototype.
14093 (debug_nothing_rtx_rtx): Delete unused prototype.
14094 (debug_nothing_rtx_insn): New prototype.
14096 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14097 invoking debug_hooks->var_location (in two places, one in a NOTE
14098 case of a switch statement, the other guarded by a CALL_P
14099 conditional. Add checked cast to rtx_code_label * when invoking
14100 debug_hooks->label (within CODE_LABEL case of switch statement).
14102 * dbxout.c (dbx_debug_hooks): Update "label" hook from
14103 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14104 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14105 (xcoff_debug_hooks): Likewise.
14106 * debug.c (do_nothing_debug_hooks): Likewise.
14107 (debug_nothing_rtx): Delete in favor of...
14108 (debug_nothing_rtx_insn): New function.
14109 (debug_nothing_rtx_rtx): Delete unused function.
14110 (debug_nothing_rtx_code_label): New function.
14111 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14112 debug_nothing_rtx to debug_nothing_rtx_code_label.
14113 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14115 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14116 debug_nothing_rtx to debug_nothing_rtx_insn.
14117 (sdbout_label): Strengthen param "insn" from rtx to
14119 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14120 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14121 "var_location" hook from debug_nothing_rtx to
14122 debug_nothing_rtx_insn.
14124 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14126 * recog.h (insn_output_fn): Update this function typedef to match
14127 the changes below to the generated output functions, strengthening
14128 the 2nd param from rtx to rtx_insn *.
14130 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14131 insn when invoking an output function, to match the new signature
14132 of insn_output_fn with a stronger second param.
14134 * genconditions.c (write_header): In the generated code for
14135 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14136 to match the other changes in this patch.
14138 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14139 the generated "gen_" functions from rtx to rtx_insn * within their
14142 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14143 the subfunctions within the generated "recog_", "split", "peephole2"
14144 function trees from rtx to rtx_insn *. For now, the top-level
14145 generated functions ("recog", "split", "peephole2") continue to
14146 take a plain rtx for "insn", to avoid introducing dependencies on
14147 other patches. Rename this 2nd param from "insn" to
14148 "uncast_insn", and reintroduce "insn" as a local variable of type
14149 rtx_insn *, initialized at the top of the generated function with
14150 a checked cast on "uncast_insn".
14151 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14152 the generated "gen_" functions from rtx to rtx_insn * within their
14155 * genoutput.c (process_template): Strengthen the 2nd param within
14156 the generated "output_" functions "insn" from rtx to rtx_insn *.
14158 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14160 * tree-profile.c (tree_profiling): Skip external functions
14161 when doing coverage instrumentation.
14162 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14164 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14166 * config/rs6000/altivec.h (vec_cpsgn): New #define.
14167 (vec_mergee): Likewise.
14168 (vec_mergeo): Likewise.
14169 (vec_cntlz): Likewise.
14170 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14171 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14172 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14173 VMRGEW, and VMRGOW.
14174 * doc/extend.texi: Document various forms of vec_cpsgn,
14175 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14176 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14177 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14178 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14179 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14181 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14183 * config/rs6000/rs6000.c (context.h): New include.
14184 (tree-pass.h): Likewise.
14185 (make_pass_analyze_swaps): New decl.
14186 (rs6000_option_override): Register pass_analyze_swaps.
14187 (swap_web_entry): New subsclass of web_entry_base (df.h).
14188 (special_handling_values): New enum.
14189 (union_defs): New function.
14190 (union_uses): Likewise.
14191 (insn_is_load_p): Likewise.
14192 (insn_is_store_p): Likewise.
14193 (insn_is_swap_p): Likewise.
14194 (rtx_is_swappable_p): Likewise.
14195 (insn_is_swappable_p): Likewise.
14196 (chain_purpose): New enum.
14197 (chain_contains_only_swaps): New function.
14198 (mark_swaps_for_removal): Likewise.
14199 (swap_const_vector_halves): Likewise.
14200 (adjust_subreg_index): Likewise.
14201 (permute_load): Likewise.
14202 (permute_store): Likewise.
14203 (handle_special_swappables): Likewise.
14204 (replace_swap_with_copy): Likewise.
14205 (dump_swap_insn_table): Likewise.
14206 (rs6000_analyze_swaps): Likewise.
14207 (pass_data_analyze_swaps): New pass_data.
14208 (pass_analyze_swaps): New rtl_opt_pass.
14209 (make_pass_analyze_swaps): New function.
14210 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14212 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14214 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14215 type from rtx to rtx_insn *.
14216 (create_copy_of_insn_rtx): Likewise.
14217 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14218 (create_copy_of_insn_rtx): Likewise, also for local "res".
14220 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14222 * rtl.h (find_first_parameter_load): Strengthen return type from
14224 * rtlanal.c (find_first_parameter_load): Strengthen return type
14225 from rtx to rtx_insn *. Add checked cast for now, to postpone
14226 strengthening the params.
14228 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14231 * diagnostic.c: Set default caret.
14232 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14234 * diagnostic.h (struct diagnostic_context):
14236 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14238 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14239 (sel_bb_head): Strengthen return type insn_t (currently just an
14240 rtx) to rtx_insn *.
14241 (sel_bb_end): Likewise.
14243 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14244 (sel_bb_head): Strengthen return type and local "head" from
14245 insn_t (currently just an rtx) to rtx_insn *.
14246 (sel_bb_end): Likewise for return type.
14247 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14250 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14252 * basic-block.h (get_last_bb_insn): Strengthen return type from
14254 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14257 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14260 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14262 (diagnostic_report_diagnostic): ... from here.
14263 * toplev.c (general_init): Move code to c-family.
14265 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14267 * df.h (web_entry_base): Replace existing struct web_entry with a
14268 new class web_entry_base with only the predecessor member.
14269 (unionfind_root): Remove declaration and move to class member.
14270 (unionfind_union): Remove declaration and move to friend
14272 (union_defs): Remove declaration.
14273 * web.c (web_entry_base::unionfind_root): Modify to be member
14274 function and adjust accessors.
14275 (unionfind_union): Modify to be friend function and adjust
14277 (web_entry): New subclass of web_entry_base containing the reg
14279 (union_match_dups): Modify for struct -> class changes.
14280 (union_defs): Likewise.
14281 (entry_register): Likewise.
14282 (pass_web::execute): Likewise.
14284 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14286 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14287 builtin define __VEC_ELEMENT_REG_ORDER__.
14289 2014-08-20 Martin Jambor <mjambor@suse.cz>
14290 Wei Mi <wmi@google.com>
14293 PR middle-end/61776
14294 * tree-ssa-operands.c (update_stmt_operands): Remove
14295 MODIFIED_NORETURN_CALLS.
14296 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14297 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14298 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14299 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14300 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14301 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14302 (gimple_call_set_ctrl_altering): New func.
14303 (gimple_call_ctrl_altering_p): Ditto.
14304 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14305 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14306 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14307 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14308 remove MODIFIED_NORETURN_CALLS.
14310 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14312 * coverage.c (coverage_compute_profile_id): Return non-0;
14313 also handle symbols with unique name.
14314 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14316 2014-08-20 Steve Ellcey <sellcey@mips.com>
14318 PR middle-end/49191
14319 * doc/sourcebuild.texi (non_strict_align): New.
14321 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14323 * cgraphunit.c (ipa_passes, compile): Reshedule
14324 symtab_remove_unreachable_nodes passes; update comments.
14325 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14326 TODO_remove_functions before the pass; the functions ought to be
14328 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14329 TODO_remove_functions.
14330 * passes.c (pass_data_early_local_passes): Do not schedule function
14332 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14334 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14337 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14338 before setting the option.
14339 * diagnostic.c (diagnostic_classify_diagnostic): Record
14340 command-line status.
14342 2014-08-20 Richard Biener <rguenther@suse.de>
14345 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14346 to build uint{16,32,64}_type_node.
14348 2014-08-20 Terry Guo <terry.guo@arm.com>
14350 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14351 with immediate_operand.
14353 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14355 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14356 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14359 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14361 PR preprocessor/51303
14362 * incpath.c (remove_duplicates): Use cpp_warning.
14364 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14368 * doc/options.texi (CPP): Document it.
14369 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14370 * optc-gen.awk: Handle CPP.
14371 * opth-gen.awk: Likewise.
14373 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14375 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14377 (duplicate_insn_chain): Likewise.
14378 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14379 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14380 checked cast for now (until we can strengthen the params in the
14382 (duplicate_insn_chain): Likewise.
14384 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14386 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14388 (prev_cc0_setter): Likewise.
14390 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14391 rtx_insn *, adding checked casts for now as necessary.
14392 (prev_cc0_setter): Likewise.
14394 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14396 * expr.h (emit_move_insn): Strengthen return type from rtx to
14398 (emit_move_insn_1): Likewise.
14399 (emit_move_complex_push): Likewise.
14400 (emit_move_complex_parts): Likewise.
14402 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14403 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14405 (emit_move_complex_push): Strengthen return type from rtx to
14407 (emit_move_complex): Likewise, also for local "ret".
14408 (emit_move_ccmode): Likewise.
14409 (emit_move_multi_word): Likewise for return type and locals
14410 "last_insn", "seq".
14411 (emit_move_insn_1): Likewise for return type and locals "result",
14413 (emit_move_insn): Likewise for return type and local "last_insn".
14414 (compress_float_constant): Likewise.
14416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14418 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14419 from rtx to rtx_insn *.
14421 * rtl.h (emit_insn_before): Likewise.
14422 (emit_insn_before_noloc): Likewise.
14423 (emit_insn_before_setloc): Likewise.
14424 (emit_jump_insn_before): Likewise.
14425 (emit_jump_insn_before_noloc): Likewise.
14426 (emit_jump_insn_before_setloc): Likewise.
14427 (emit_call_insn_before): Likewise.
14428 (emit_call_insn_before_noloc): Likewise.
14429 (emit_call_insn_before_setloc): Likewise.
14430 (emit_debug_insn_before): Likewise.
14431 (emit_debug_insn_before_noloc): Likewise.
14432 (emit_debug_insn_before_setloc): Likewise.
14433 (emit_label_before): Likewise.
14434 (emit_insn_after): Likewise.
14435 (emit_insn_after_noloc): Likewise.
14436 (emit_insn_after_setloc): Likewise.
14437 (emit_jump_insn_after): Likewise.
14438 (emit_jump_insn_after_noloc): Likewise.
14439 (emit_jump_insn_after_setloc): Likewise.
14440 (emit_call_insn_after): Likewise.
14441 (emit_call_insn_after_noloc): Likewise.
14442 (emit_call_insn_after_setloc): Likewise.
14443 (emit_debug_insn_after): Likewise.
14444 (emit_debug_insn_after_noloc): Likewise.
14445 (emit_debug_insn_after_setloc): Likewise.
14446 (emit_label_after): Likewise.
14447 (emit_insn): Likewise.
14448 (emit_debug_insn): Likewise.
14449 (emit_jump_insn): Likewise.
14450 (emit_call_insn): Likewise.
14451 (emit_label): Likewise.
14452 (gen_clobber): Likewise.
14453 (emit_clobber): Likewise.
14454 (gen_use): Likewise.
14455 (emit_use): Likewise.
14458 (emit_barrier_before): Strengthen return type from rtx to
14460 (emit_barrier_after): Likewise.
14461 (emit_barrier): Likewise.
14463 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14464 from rtx to rtx_insn *. Add checked casts for now when converting
14465 "last" from rtx to rtx_insn *.
14466 (emit_insn_before_noloc): Likewise for return type.
14467 (emit_jump_insn_before_noloc): Likewise.
14468 (emit_call_insn_before_noloc): Likewise.
14469 (emit_debug_insn_before_noloc): Likewise.
14470 (emit_barrier_before): Strengthen return type and local "insn"
14471 from rtx to rtx_barrier *.
14472 (emit_label_before): Strengthen return type from rtx to
14473 rtx_insn *. Add checked cast for now when returning param
14474 (emit_pattern_after_noloc): Strengthen return type from rtx to
14475 rtx_insn *. Add checked casts for now when converting "last" from
14477 (emit_insn_after_noloc): Strengthen return type from rtx to
14479 (emit_jump_insn_after_noloc): Likewise.
14480 (emit_call_insn_after_noloc): Likewise.
14481 (emit_debug_insn_after_noloc): Likewise.
14482 (emit_barrier_after): Strengthen return type from rtx to
14484 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14485 Add checked cast for now when converting "label" from rtx to
14487 (emit_pattern_after_setloc): Strengthen return type from rtx to
14488 rtx_insn *. Add checked casts for now when converting "last" from
14490 (emit_pattern_after): Strengthen return type from rtx to
14492 (emit_insn_after_setloc): Likewise.
14493 (emit_insn_after): Likewise.
14494 (emit_jump_insn_after_setloc): Likewise.
14495 (emit_jump_insn_after): Likewise.
14496 (emit_call_insn_after_setloc): Likewise.
14497 (emit_call_insn_after): Likewise.
14498 (emit_debug_insn_after_setloc): Likewise.
14499 (emit_debug_insn_after): Likewise.
14500 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14501 when converting "last" from rtx to rtx_insn *.
14502 (emit_pattern_before): Strengthen return type from rtx to
14504 (emit_insn_before_setloc): Likewise.
14505 (emit_insn_before): Likewise.
14506 (emit_jump_insn_before_setloc): Likewise.
14507 (emit_jump_insn_before): Likewise.
14508 (emit_call_insn_before_setloc): Likewise.
14509 (emit_call_insn_before): Likewise.
14510 (emit_debug_insn_before_setloc): Likewise.
14511 (emit_debug_insn_before): Likewise.
14512 (emit_insn): Strengthen return type and locals "last", "insn",
14513 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14514 within cases where we know we have an insn.
14515 (emit_debug_insn): Likewise.
14516 (emit_jump_insn): Likewise.
14517 (emit_call_insn): Strengthen return type and local "insn" from rtx
14519 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14520 a checked cast to rtx_insn * for now on "label".
14521 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14522 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14523 (emit_use): Likewise.
14524 (gen_use): Likewise, also for local "seq".
14525 (emit): Likewise for return type and local "insn".
14526 (rtx_insn): Likewise for return type and local "new_rtx".
14528 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14529 from rtx to rtx_barrier *.
14531 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14532 changed return type from rtx to rtx_insn *, we must update
14533 "emit_fn" type, and this in turn means updating...
14534 (frame_insn): ...this. Strengthen return type from rtx to
14535 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14537 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14539 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14540 rtx to rtx_jump_table_data *. Also for local.
14541 * rtl.h (emit_jump_table_data): Likewise.
14543 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14545 * basic-block.h (create_basic_block_structure): Strengthen third
14546 param "bb_note" from rtx to rtx_note *.
14547 * rtl.h (emit_note_before): Strengthen return type from rtx to
14549 (emit_note_after): Likewise.
14550 (emit_note): Likewise.
14551 (emit_note_copy): Likewise. Also, strengthen param similarly.
14552 * function.h (struct rtl_data): Strengthen field
14553 "x_stack_check_probe_note" from rtx to rtx_note *.
14555 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14556 from rtx to rtx_note *.
14557 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14558 "bb_note" from rtx to rtx_note *.
14559 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14560 when calling emit_note_copy.
14561 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14563 (emit_note_after): Likewise.
14564 (emit_note_before): Likewise.
14565 (emit_note_copy): Likewise. Also, strengthen param similarly.
14566 (emit_note): Likewise.
14567 * except.c (emit_note_eh_region_end): Likewise for return type.
14568 Strengthen local "next" from rtx to rtx_insn *.
14569 (convert_to_eh_region_ranges): Strengthen local "note"
14570 from rtx to rtx_note *.
14571 * final.c (change_scope): Likewise.
14572 (reemit_insn_block_notes): Likewise, for both locals named "note".
14573 Also, strengthen local "insn" from rtx to rtx_insn *.
14574 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14576 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14577 strengthen local "seq" from rtx to rtx_insn *.
14578 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14580 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14582 (get_bb_note_from_pool): Strengthen return type from rtx to
14584 (sel_create_basic_block): Strengthen local "new_bb_note" from
14585 insn_t to rtx_note *.
14586 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14587 "note" from rtx to rtx_note *.
14588 (emit_notes_in_bb): Likewise.
14590 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14592 * function.h (struct rtl_data): Strengthen field
14593 "x_parm_birth_insn" from rtx to rtx_insn *.
14594 * function.c (struct assign_parm_data_all): Strengthen fields
14595 "first_conversion_insn" and "last_conversion_insn" from rtx to
14598 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14600 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14601 to rtx_insn *; also for local "var_end_seq".
14602 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14603 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14605 (expand_gimple_cond): Likewise for locals "last2" and "last".
14606 (mark_transaction_restart_calls): Likewise for local "insn".
14607 (expand_gimple_stmt): Likewise for return type and locals "last"
14609 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14610 (avoid_complex_debug_insns): Likewise for param "insn".
14611 (expand_debug_locations): Likewise for locals "insn", "last",
14612 "prev_insn" and "insn2".
14613 (expand_gimple_basic_block): Likewise for local "last".
14614 (construct_exit_block): Likewise for locals "head", "end",
14616 (pass_expand::execute): Likewise for locals "var_seq",
14617 "var_ret_seq", "next".
14619 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14621 * asan.h (asan_emit_stack_protection): Strengthen return type from
14623 * asan.c (asan_emit_stack_protection): Likewise. Add local
14624 "insns" to hold the return value.
14626 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14628 * basic-block.h (bb_note): Strengthen return type from rtx to
14630 * sched-int.h (bb_note): Likewise.
14631 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14635 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14638 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14639 "insn" from rtx to rtx_insn *.
14640 (make_debug_insn_raw): Strengthen return type from rtx to
14641 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14642 (make_jump_insn_raw): Strengthen return type from rtx to
14643 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14644 (make_call_insn_raw): Strengthen return type from rtx to
14645 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14646 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14647 callback from rtx to rtx_insn *; likewise for local "insn" and
14648 "next", adding a checked cast to rtx_insn in the relevant cases of
14649 the switch statement.
14650 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14651 callback from rtx to rtx_insn *.
14652 (emit_pattern_after_setloc): Likewise.
14653 (emit_pattern_after): Likewise.
14654 (emit_pattern_before_setloc): Likewise.
14655 (emit_pattern_before): Likewise.
14657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14659 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14661 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14662 accepting an rtx_insn *.
14663 (last_call_insn): Strengthen return type from rtx to
14666 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14668 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14669 "insns" from rtx to rtx_insn *.
14670 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14671 locals "insn" and "prev".
14673 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14675 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14676 rtx_jump_table_data **.
14678 * cfgbuild.c (make_edges): Introduce local "table", using it in
14679 place of "tmp" for jump table data.
14680 (find_bb_boundaries): Strengthen local "table" from rtx to
14681 rtx_jump_table_data *.
14682 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14683 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14684 (try_crossjump_to_edge): Likewise.
14685 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14687 (patch_jump_insn): Introduce local "table", using it in place of
14688 "tmp" for jump table data.
14689 (force_nonfallthru_and_redirect): Introduce local "table", so that
14690 call to tablejump_p can receive an rtx_jump_table_data **. Update
14691 logic around the call to overwrite "note" appropriately if
14692 tablejump_p returns non-zero.
14693 (get_last_bb_insn): Introduce local "table", using it in place of
14694 "tmp" for jump table data.
14695 * dwarf2cfi.c (create_trace_edges): Likewise.
14697 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14698 from rtx to rtx_jump_table_data *.
14699 (create_fix_barrier): Strengthen local "tmp" from rtx to
14700 rtx_jump_table_data *.
14701 (arm_reorg): Likewise for local "table".
14703 * config/s390/s390.c (s390_chunkify_start): Likewise.
14705 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14707 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14708 rtx to rtx_jump_table_data *.
14710 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14711 rtx_jump_table_data **. Add a checked cast when writing through
14712 the pointer: we know there that local "table" is non-NULL and that
14713 JUMP_TABLE_DATA_P (table) holds.
14714 (label_is_jump_target_p): Introduce local "table", using it in
14715 place of "tmp" for jump table data.
14717 2014-08-19 Marek Polacek <polacek@redhat.com>
14720 * doc/invoke.texi: Document -Wbool-compare.
14722 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14724 * rtl.h (entry_of_function): Strengthen return type from rtx to
14726 * cfgrtl.c (entry_of_function): Likewise.
14728 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14730 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14731 rtx_insn *, adding a checked cast for now.
14732 (get_last_insn): Likewise.
14734 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14736 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14739 * emit-rtl.c (gen_label_rtx): Likewise.
14741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14743 * rtl.h (previous_insn): Strengthen return type from rtx to
14745 (next_insn): Likewise.
14746 (prev_nonnote_insn): Likewise.
14747 (prev_nonnote_insn_bb): Likewise.
14748 (next_nonnote_insn): Likewise.
14749 (next_nonnote_insn_bb): Likewise.
14750 (prev_nondebug_insn): Likewise.
14751 (next_nondebug_insn): Likewise.
14752 (prev_nonnote_nondebug_insn): Likewise.
14753 (next_nonnote_nondebug_insn): Likewise.
14754 (prev_real_insn): Likewise.
14755 (next_real_insn): Likewise.
14756 (prev_active_insn): Likewise.
14757 (next_active_insn): Likewise.
14759 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14760 rtx_insn *, adding a checked cast.
14761 (previous_insn): Likewise.
14762 (next_nonnote_insn): Likewise.
14763 (next_nonnote_insn_bb): Likewise.
14764 (prev_nonnote_insn): Likewise.
14765 (prev_nonnote_insn_bb): Likewise.
14766 (next_nondebug_insn): Likewise.
14767 (prev_nondebug_insn): Likewise.
14768 (next_nonnote_nondebug_insn): Likewise.
14769 (prev_nonnote_nondebug_insn): Likewise.
14770 (next_real_insn): Likewise.
14771 (prev_real_insn): Likewise.
14772 (next_active_insn): Likewise.
14773 (prev_active_insn): Likewise.
14775 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14776 param "stepfunc" so that it returns an rtx_insn * rather than an
14777 rtx, to track the change to prev_nonnote_insn_bb, which is the
14778 only function this is called with.
14779 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14781 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14783 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14786 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14788 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14789 (class rtx_nonjump_insn): Likewise.
14790 (class rtx_jump_insn): Likewise.
14791 (class rtx_call_insn): Likewise.
14792 (class rtx_jump_table_data): Likewise.
14793 (class rtx_barrier): Likewise.
14794 (class rtx_code_label): Likewise.
14795 (class rtx_note): Likewise.
14797 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14798 adding the invariant DEBUG_INSN_P (X).
14799 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14800 the invariant NONJUMP_INSN_P (X).
14801 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14802 the invariant JUMP_P (X).
14803 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14804 the invariant CALL_P (X).
14805 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14806 invariant JUMP_TABLE_DATA_P (X).
14807 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14808 invariant BARRIER_P (X).
14809 (class rtx_code_label): New, a subclass of rtx_insn, adding
14810 the invariant LABEL_P (X).
14811 (class rtx_note): New, a subclass of rtx_insn, adding
14812 the invariant NOTE_P(X).
14813 (is_a_helper <rtx_debug_insn *>::test): New.
14814 (is_a_helper <rtx_nonjump_insn *>::test): New.
14815 (is_a_helper <rtx_jump_insn *>::test): New.
14816 (is_a_helper <rtx_call_insn *>::test): New.
14817 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14818 overloaded for both rtx and rtx_insn *.
14819 (is_a_helper <rtx_barrier *>::test): New.
14820 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14821 for both rtx and rtx_insn *.
14822 (is_a_helper <rtx_note *>::test): New.
14824 2014-08-19 Marek Polacek <polacek@redhat.com>
14826 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14827 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14828 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14829 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14831 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14833 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14834 rtx_insn *. To help with transition, for now, convert from an
14835 access macro into a pair of functions: BND_TO, returning an
14837 (SET_BND_TO): New function, for use where BND_TO is used as an
14840 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14842 (BND_TO): New function, adding a checked cast.
14843 (SET_BND_TO): New function.
14845 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14847 (compute_av_set_on_boundaries): Likewise.
14849 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14851 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14852 destination if it is used in source.
14853 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14854 (*popcount<mode>2_falsedep_1): Likewise.
14856 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14859 * configure.ac: Set install_gold_as_default to no first.
14860 * configure: Regenerated.
14862 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14864 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14865 "note_list" field will eventually be an rtx_insn *. To help with
14866 transition, for now, convert from an access macro into a pair of
14867 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14868 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14871 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14872 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14874 * sel-sched-ir.c (init_bb): Likewise.
14875 (sel_restore_notes): Likewise.
14876 (move_bb_info): Likewise.
14877 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14878 (SET_BB_NOTE_LIST): New function.
14880 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14882 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14883 field will eventually be an rtx_insn *. To help with transition,
14884 for now, convert from an access macro into a pair of functions:
14885 VINSN_INSN_RTX, returning an rtx_insn *, and...
14886 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14887 is used as an lvalue.
14889 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14890 SET_VINSN_INSN_RTX where it's used as an lvalue.
14891 (VINSN_INSN_RTX): New function.
14892 (SET_VINSN_INSN_RTX): New function.
14894 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14896 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14897 eventually be rtx_insn *, but to help with transition, for now,
14898 convert from an access macro into a pair of functions: DEP_PRO
14899 returning an rtx_insn * and...
14900 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14901 lvalue, returning an rtx&.
14902 (DEP_CON): Analogous changes to DEP_PRO above.
14903 (SET_DEP_CON): Likewise.
14905 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14906 an lvalue to SET_DEP_CON.
14907 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14908 (sd_copy_back_deps): Likewise for DEP_CON.
14909 (DEP_PRO): New function, adding a checked cast for now.
14910 (DEP_CON): Likewise.
14911 (SET_DEP_PRO): New function.
14912 (SET_DEP_CON): Likewise.
14914 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14916 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14917 (extra_options): Add i386/cygwin.opt.
14918 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14919 (CPP_SPEC): Accept -pthread.
14920 (LINK_SPEC): Ditto.
14921 (GOMP_SELF_SPECS): Update comment.
14922 * config/i386/cygwin.opt: New file for -pthread flag.
14924 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14926 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14927 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14928 that we can return an rtx_insn *.
14930 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14932 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14933 when building executables, not DLLs. Add --large-address-aware
14934 under the same conditions.
14935 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14936 when building executables, not DLLs. Add --large-address-aware
14937 under the same conditions when using -m32.
14939 * config/i386/cygwin-stdint.h: Throughout, make type
14940 definitions dependent on target architecture, not host.
14942 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14944 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14945 the return type from rtx to rtx_insn *, which will enable various
14946 conversions in followup patches. For now this is is done by a
14948 (NEXT_INSN): Likewise.
14949 (SET_PREV_INSN): Convert to an inline function. This is intended
14950 for use as an lvalue, and so returns an rtx& to allow in-place
14952 (SET_NEXT_INSN): Likewise.
14954 2014-07-08 Mark Wielaard <mjw@redhat.com>
14957 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14959 2014-08-19 Marek Polacek <polacek@redhat.com>
14962 * cgraphunit.c (handle_alias_pairs): Fix condition.
14964 2014-08-19 Richard Biener <rguenther@suse.de>
14966 * gimple-fold.c (fold_gimple_assign): Properly build a
14967 null-pointer constant when devirtualizing addresses.
14969 2014-07-07 Mark Wielaard <mjw@redhat.com>
14971 * dwarf2out.c (decl_quals): New function.
14972 (modified_type_die): Take one cv_quals argument instead of two,
14973 one for const and one for volatile.
14974 (add_type_attribute): Likewise.
14975 (generic_parameter_die): Call add_type_attribute with one modifier
14977 (base_type_for_mode): Likewise.
14978 (add_bounds_info): Likewise.
14979 (add_subscript_info): Likewise.
14980 (gen_array_type_die): Likewise.
14981 (gen_descr_array_type_die): Likewise.
14982 (gen_entry_point_die): Likewise.
14983 (gen_enumeration_type_die): Likewise.
14984 (gen_formal_parameter_die): Likewise.
14985 (gen_subprogram_die): Likewise.
14986 (gen_variable_die): Likewise.
14987 (gen_const_die): Likewise.
14988 (gen_field_die): Likewise.
14989 (gen_pointer_type_die): Likewise.
14990 (gen_reference_type_die): Likewise.
14991 (gen_ptr_to_mbr_type_die): Likewise.
14992 (gen_inheritance_die): Likewise.
14993 (gen_subroutine_type_die): Likewise.
14994 (gen_typedef_die): Likewise.
14995 (force_type_die): Likewise.
14997 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14999 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15001 * configure: Regenerate.
15003 2014-08-19 Richard Biener <rguenther@suse.de>
15005 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15006 DECL_EXTERNALs in BLOCKs as non-references.
15007 * tree-streamer-out.c (streamer_write_chain): Likewise.
15009 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
15010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15011 Anna Tikhonova <anna.tikhonova@intel.com>
15012 Ilya Tocar <ilya.tocar@intel.com>
15013 Andrey Turetskiy <andrey.turetskiy@intel.com>
15014 Ilya Verbin <ilya.verbin@intel.com>
15015 Kirill Yukhin <kirill.yukhin@intel.com>
15016 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15018 * config/i386/sse.md
15019 (define_mode_iterator VI48_AVX512F): Delete.
15020 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15021 (define_mode_iterator VI2_AVX512VL): Ditto.
15022 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15025 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15027 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15028 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15029 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15030 with VI48_AVX512F_AVX512VL): New.
15031 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15032 with VI2_AVX512VL): Ditto.
15034 2014-08-19 Marek Polacek <polacek@redhat.com>
15036 * doc/invoke.texi: Document -Wc99-c11-compat.
15038 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15040 * rtl.h (PREV_INSN): Split macro in two: the existing one,
15041 for rvalues, and...
15042 (SET_PREV_INSN): New macro, for use as an lvalue.
15043 (NEXT_INSN, SET_NEXT_INSN): Likewise.
15045 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15046 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15047 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15048 (fixup_abnormal_edges): Likewise.
15049 (unlink_insn_chain): Likewise.
15050 (fixup_reorder_chain): Likewise.
15051 (cfg_layout_delete_block): Likewise.
15052 (cfg_layout_merge_blocks): Likewise.
15053 * combine.c (update_cfg_for_uncondjump): Likewise.
15054 * emit-rtl.c (link_insn_into_chain): Likewise.
15055 (remove_insn): Likewise.
15056 (delete_insns_since): Likewise.
15057 (reorder_insns_nobb): Likewise.
15058 (emit_insn_after_1): Likewise.
15059 * final.c (rest_of_clean_state): Likewise.
15060 (final_scan_insn): Likewise.
15061 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15062 * haifa-sched.c (concat_note_lists): Likewise.
15063 (remove_notes): Likewise.
15064 (restore_other_notes): Likewise.
15065 (move_insn): Likewise.
15066 (unlink_bb_notes): Likewise.
15067 (restore_bb_notes): Likewise.
15068 * jump.c (delete_for_peephole): Likewise.
15069 * optabs.c (emit_libcall_block_1): Likewise.
15070 * reorg.c (emit_delay_sequence): Likewise.
15071 (fill_simple_delay_slots): Likewise.
15072 * sel-sched-ir.c (sel_move_insn): Likewise.
15073 (sel_remove_insn): Likewise.
15074 (get_bb_note_from_pool): Likewise.
15075 * sel-sched.c (move_nop_to_previous_block): Likewise.
15077 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15078 * config/c6x/c6x.c (gen_one_bundle): Likewise.
15079 (c6x_gen_bundles): Likewise.
15080 (hwloop_optimize): Likewise.
15081 * config/frv/frv.c (frv_function_prologue): Likewise.
15082 (frv_register_nop): Likewise.
15083 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15084 (ia64_reorg): Likewise.
15085 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15086 (mep_make_bundle): Likewise.
15087 (mep_bundle_insns): Likewise.
15088 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15089 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15090 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15094 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
15095 return type from rtx to rtx_insn *.
15096 (BB_END): Likewise.
15097 (BB_HEADER): Likewise.
15098 (BB_FOOTER): Likewise.
15099 (SET_BB_HEAD): Convert to a function.
15100 (SET_BB_END): Likewise.
15101 (SET_BB_HEADER): Likewise.
15102 (SET_BB_FOOTER): Likewise.
15104 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15105 Strengthen the return type from rtx to rtx_insn *. For now, this
15106 is done by adding a checked cast, but this will eventually
15107 become a field lookup.
15108 (BB_END): Likewise.
15109 (BB_HEADER): Likewise.
15110 (BB_FOOTER): Likewise.
15111 (SET_BB_HEAD): New function, from macro of same name. This is
15112 intended for use as an lvalue, and so returns an rtx& to allow
15113 in-place modification.
15114 (SET_BB_END): Likewise.
15115 (SET_BB_HEADER): Likewise.
15116 (SET_BB_FOOTER): Likewise.
15118 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15120 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15121 for rvalues, and...
15122 (SET_BB_HEAD): New macro, for use as a lvalue.
15123 (BB_END, SET_BB_END): Likewise.
15124 (BB_HEADER, SET_BB_HEADER): Likewise.
15125 (BB_FOOTER, SET_BB_FOOTER): Likewise.
15127 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15128 of BB_* macros into SET_BB_* macros.
15129 (fix_crossing_unconditional_branches): Likewise.
15130 * caller-save.c (save_call_clobbered_regs): Likewise.
15131 (insert_one_insn): Likewise.
15132 * cfgbuild.c (find_bb_boundaries): Likewise.
15133 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15134 (outgoing_edges_match): Likewise.
15135 (try_optimize_cfg): Likewise.
15136 * cfgexpand.c (expand_gimple_cond): Likewise.
15137 (expand_gimple_tailcall): Likewise.
15138 (expand_gimple_basic_block): Likewise.
15139 (construct_exit_block): Likewise.
15140 * cfgrtl.c (delete_insn): Likewise.
15141 (create_basic_block_structure): Likewise.
15142 (rtl_delete_block): Likewise.
15143 (rtl_split_block): Likewise.
15144 (emit_nop_for_unique_locus_between): Likewise.
15145 (rtl_merge_blocks): Likewise.
15146 (block_label): Likewise.
15147 (try_redirect_by_replacing_jump): Likewise.
15148 (emit_barrier_after_bb): Likewise.
15149 (fixup_abnormal_edges): Likewise.
15150 (record_effective_endpoints): Likewise.
15151 (relink_block_chain): Likewise.
15152 (fixup_reorder_chain): Likewise.
15153 (fixup_fallthru_exit_predecessor): Likewise.
15154 (cfg_layout_duplicate_bb): Likewise.
15155 (cfg_layout_split_block): Likewise.
15156 (cfg_layout_delete_block): Likewise.
15157 (cfg_layout_merge_blocks): Likewise.
15158 * combine.c (update_cfg_for_uncondjump): Likewise.
15159 * emit-rtl.c (add_insn_after): Likewise.
15160 (remove_insn): Likewise.
15161 (reorder_insns): Likewise.
15162 (emit_insn_after_1): Likewise.
15163 * haifa-sched.c (get_ebb_head_tail): Likewise.
15164 (restore_other_notes): Likewise.
15165 (move_insn): Likewise.
15166 (sched_extend_bb): Likewise.
15167 (fix_jump_move): Likewise.
15168 * ifcvt.c (noce_process_if_block): Likewise.
15169 (dead_or_predicable): Likewise.
15170 * ira.c (update_equiv_regs): Likewise.
15171 * reg-stack.c (change_stack): Likewise.
15172 * sel-sched-ir.c (sel_move_insn): Likewise.
15173 * sel-sched.c (move_nop_to_previous_block): Likewise.
15175 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15176 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15178 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15180 * rtl.h (for_each_rtx_in_insn): New function.
15181 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15183 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15185 * coretypes.h (class rtx_insn): Add forward declaration.
15187 * rtl.h: Include is-a.h.
15188 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15189 workaround to ensure gengtype knows inheritance is occurring,
15190 whilst continuing to use the pre-existing special-casing for
15192 (class rtx_insn): New subclass of rtx_def, adding the
15193 invariant that we're dealing with something we can sanely use
15194 INSN_UID, NEXT_INSN, PREV_INSN on.
15195 (is_a_helper <rtx_insn *>::test): New.
15196 (is_a_helper <const rtx_insn *>::test): New.
15198 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15200 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15202 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15204 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15207 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15209 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15210 to BUILT_IN_UNREACHABLE.
15212 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15215 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15217 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15218 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15219 (ffs<mode>2): Do not expand with tzcnt for
15220 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15221 (ffssi2_no_cmove): Ditto.
15222 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15223 (ctz<mode>2): New expander.
15224 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15225 (*ctz<mode>2_falsedep): New insn.
15226 (*ctz<mode>2): Rename from ctz<mode>2.
15227 (clz<mode>2_lzcnt): New expander.
15228 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15229 (*clz<mode>2_lzcnt_falsedep): New insn.
15230 (*clz<mode>2): Rename from ctz<mode>2.
15231 (popcount<mode>2): New expander.
15232 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15233 (*popcount<mode>2_falsedep): New insn.
15234 (*popcount<mode>2): Rename from ctz<mode>2.
15235 (*popcount<mode>2_cmp): Remove.
15236 (*popcountsi2_cmp_zext): Ditto.
15238 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15240 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15241 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15242 * config/microblaze/microblaze.h
15243 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15245 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15248 * configure.ac: Set install_gold_as_default to no for
15250 * configure: Regenerated.
15252 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15254 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15255 * config.in: Add undef of HAVE_isl.
15256 * configure: Regenerate.
15257 * configure.ac: Add definition of HAVE_isl.
15258 * graphite-blocking.c: Add checking of HAVE_isl.
15259 * graphite-dependences.c: Likewise.
15260 * graphite-interchange.c: Likewise.
15261 * graphite-isl-ast-to-gimple.c: Likewise.
15262 * graphite-optimize-isl.c: Likewise.
15263 * graphite-poly.c: Likewise.
15264 * graphite-scop-detection.c: Likewise.
15265 * graphite-sese-to-poly.c: Likewise.
15266 * graphite.c: Likewise.
15267 * toplev.c: Replace the checking of HAVE_cloog with the checking
15270 2014-08-18 Richard Biener <rguenther@suse.de>
15272 PR tree-optimization/62090
15273 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15274 (fold_builtin_3): Do not fold snprintf.
15275 (fold_builtin_4): Likewise.
15276 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15277 moved from builtins.c.
15278 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15279 (gimple_fold_builtin): Do not fold sprintf here.
15281 2014-08-18 Richard Biener <rguenther@suse.de>
15283 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15285 (maybe_canonicalize_mem_ref_addr): ... this function.
15286 (fold_stmt_1): Apply it here before all simplification.
15288 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15291 * cgraph.h (cgraph_node::create_indirect_edge): Add
15292 compute_indirect_info param.
15293 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15294 indirect_info only when it is required.
15295 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15296 indirect_info fore cloned indirect edge.
15298 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15299 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15300 Anna Tikhonova <anna.tikhonova@intel.com>
15301 Ilya Tocar <ilya.tocar@intel.com>
15302 Andrey Turetskiy <andrey.turetskiy@intel.com>
15303 Ilya Verbin <ilya.verbin@intel.com>
15304 Kirill Yukhin <kirill.yukhin@intel.com>
15305 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15307 * config/i386/sse.md
15308 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15309 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15311 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15313 Anna Tikhonova <anna.tikhonova@intel.com>
15314 Ilya Tocar <ilya.tocar@intel.com>
15315 Andrey Turetskiy <andrey.turetskiy@intel.com>
15316 Ilya Verbin <ilya.verbin@intel.com>
15317 Kirill Yukhin <kirill.yukhin@intel.com>
15318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15320 * config/i386/sse.md
15321 (define_mode_iterator VF1_AVX512VL): New.
15322 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15323 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15326 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15328 Anna Tikhonova <anna.tikhonova@intel.com>
15329 Ilya Tocar <ilya.tocar@intel.com>
15330 Andrey Turetskiy <andrey.turetskiy@intel.com>
15331 Ilya Verbin <ilya.verbin@intel.com>
15332 Kirill Yukhin <kirill.yukhin@intel.com>
15333 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15335 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15336 * config/i386/i386.md
15337 (define_code_iterator any_float): New.
15338 (define_code_attr floatsuffix): New.
15339 * config/i386/sse.md
15340 (define_mode_iterator VF1_128_256VL): New.
15341 (define_mode_iterator VF2_512_256VL): New.
15342 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15344 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15345 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15347 (define_mode_attr qq2pssuff): New.
15348 (define_mode_attr sselongvecmode): New.
15349 (define_mode_attr sselongvecmodelower): New.
15350 (define_mode_attr sseintvecmode3): New.
15351 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15353 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15354 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15355 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15356 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15358 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15359 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15360 Anna Tikhonova <anna.tikhonova@intel.com>
15361 Ilya Tocar <ilya.tocar@intel.com>
15362 Andrey Turetskiy <andrey.turetskiy@intel.com>
15363 Ilya Verbin <ilya.verbin@intel.com>
15364 Kirill Yukhin <kirill.yukhin@intel.com>
15365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15367 * config/i386/sse.md
15368 (define_mode_iterator VF2_AVX512VL): New.
15369 (define_mode_attr sseintvecmode2): New.
15370 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15371 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15372 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15374 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15376 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15378 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15381 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15383 Anna Tikhonova <anna.tikhonova@intel.com>
15384 Ilya Tocar <ilya.tocar@intel.com>
15385 Andrey Turetskiy <andrey.turetskiy@intel.com>
15386 Ilya Verbin <ilya.verbin@intel.com>
15387 Kirill Yukhin <kirill.yukhin@intel.com>
15388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15390 * config/i386/i386.md
15391 (define_insn "*movoi_internal_avx"): Add evex version.
15392 (define_insn "*movti_internal"): Ditto.
15394 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15396 Anna Tikhonova <anna.tikhonova@intel.com>
15397 Ilya Tocar <ilya.tocar@intel.com>
15398 Andrey Turetskiy <andrey.turetskiy@intel.com>
15399 Ilya Verbin <ilya.verbin@intel.com>
15400 Kirill Yukhin <kirill.yukhin@intel.com>
15401 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15403 * config/i386/i386.md
15404 (define_attr "isa"): Add avx512dq, noavx512dq.
15405 (define_attr "enabled"): Ditto.
15406 * config/i386/sse.md
15407 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15409 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15411 Anna Tikhonova <anna.tikhonova@intel.com>
15412 Ilya Tocar <ilya.tocar@intel.com>
15413 Andrey Turetskiy <andrey.turetskiy@intel.com>
15414 Ilya Verbin <ilya.verbin@intel.com>
15415 Kirill Yukhin <kirill.yukhin@intel.com>
15416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15418 * config/i386/i386.c
15419 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15420 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15421 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15422 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15423 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15424 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15425 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15426 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15427 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15428 * config/i386/sse.md
15429 (define_mode_iterator VMOVE): Allow V4TI mode.
15430 (define_mode_iterator V_AVX512VL): New.
15431 (define_mode_iterator V): New handling for AVX512VL.
15432 (define_insn "avx512f_load<mode>_mask"): Delete.
15433 (define_insn "<avx512>_load<mode>_mask"): New.
15434 (define_insn "avx512f_store<mode>_mask"): Delete.
15435 (define_insn "<avx512>_store<mode>_mask"): New.
15438 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15441 * asan.c (instrument_derefs): Fix bitfield check.
15443 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15445 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15446 * config/rs6000/htm.md (ttest): Remove clobber.
15447 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15448 (and_operand): Reformat.
15449 (and_2rld_operand): New predicate.
15450 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15452 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15453 parameter. Handle AND directly.
15454 (rs6000_split_logical_di): Remove last parameter.
15455 (rs6000_split_logical): Remove last parameter. Remove obsolete
15457 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15458 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15459 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15460 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15461 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15462 and 5 anonymous splitters): Delete.
15463 (and<mode>3): New expander.
15464 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15465 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15466 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15467 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15468 (floatdisf2_internal1): Remove clobbers.
15469 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15470 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15471 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15472 (and<mode>3 for BOOL_128): Remove clobber.
15473 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15474 rs6000_split_logical.
15475 (*bool<mode>3_internal for BOOL_128): Adjust call of
15476 rs6000_split_logical.
15477 (*boolc<mode>3_internal1 for BOOL_128,
15478 *boolc<mode>3_internal2 for BOOL_128,
15479 *boolcc<mode>3_internal1 for BOOL_128,
15480 *boolcc<mode>3_internal2 for BOOL_128,
15481 *eqv<mode>3_internal1 for BOOL_128,
15482 *eqv<mode>3_internal2 for BOOL_128,
15483 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15484 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15486 (*vec_reload_and_reg_<mptrsize>): Delete.
15488 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15490 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15491 and split, *boolccsi3_internal3 and split): Delete.
15492 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15493 *boolccdi3_internal3 and split): Delete.
15494 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15495 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15497 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15499 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15500 and split, *boolcsi3_internal3 and split): Delete.
15501 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15502 *boolcdi3_internal3 and split): Delete.
15503 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15505 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15507 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15508 <'u'>: Also support printing the low-order 16 bits.
15509 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15510 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15511 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15512 *booldi3_internal3 and split): Delete.
15513 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15514 *bool<mode>3_dot2): New.
15515 (two anonymous define_splits for non_logical_cint_operand): Merge.
15517 2014-08-17 Marek Polacek <polacek@redhat.com>
15518 Manuel López-Ibáñez <manu@gcc.gnu.org>
15521 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15522 (diagnostic_show_locus): Don't print caret diagnostic
15523 if a column is larger than the line_width.
15525 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15527 * common.opt: Make the ISL AST generator to be the main code generator
15530 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15532 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15534 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15537 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15539 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15540 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15541 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15543 * config/pa/pa.md (begin_brtab): Delete insn.
15544 (end_brtab): Likewise.
15546 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15548 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15550 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15552 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15553 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15554 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15555 (get_dynamic_type): Remove.
15556 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15557 (clear_speculation): Bring to ipa-deivrt.h
15558 (get_class_context): Rename to ...
15559 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15560 (contains_type_p): Update.
15561 (get_dynamic_type): Rename to ...
15562 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15563 (possible_polymorphic_call_targets): UPdate.
15564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15565 * ipa-prop.c (ipa_analyze_call_uses): Update.
15567 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15569 * doc/invoke.texi (SH options): Document missing processor variant
15570 options. Remove references to Hitachi. Undocument deprecated mspace
15573 2014-08-15 Jason Merrill <jason@redhat.com>
15575 * tree.c (type_hash_canon): Uncomment assert.
15577 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15579 * input.h (in_system_header_at): Add comment.
15581 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15584 * diagnostic.c (build_message_string): Make it extern.
15585 * diagnostic.h (build_message_string): Make it extern.
15587 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15589 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15590 load/store from/to non-floating class pseudo.
15592 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15594 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15596 2014-08-15 Richard Biener <rguenther@suse.de>
15598 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15599 (get_constraint_for_ssa_var): Remove dead code.
15600 (get_constraint_for_1): Adjust.
15601 (find_what_var_points_to): Likewise.
15602 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15604 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15607 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15608 (_mm512_mask_cmpge_epu32_mask): Ditto.
15609 (_mm512_cmpge_epu32_mask): Ditto.
15610 (_mm512_mask_cmpge_epi64_mask): Ditto.
15611 (_mm512_cmpge_epi64_mask): Ditto.
15612 (_mm512_mask_cmpge_epu64_mask): Ditto.
15613 (_mm512_cmpge_epu64_mask): Ditto.
15614 (_mm512_mask_cmple_epi32_mask): Ditto.
15615 (_mm512_cmple_epi32_mask): Ditto.
15616 (_mm512_mask_cmple_epu32_mask): Ditto.
15617 (_mm512_cmple_epu32_mask): Ditto.
15618 (_mm512_mask_cmple_epi64_mask): Ditto.
15619 (_mm512_cmple_epi64_mask): Ditto.
15620 (_mm512_mask_cmple_epu64_mask): Ditto.
15621 (_mm512_cmple_epu64_mask): Ditto.
15622 (_mm512_mask_cmplt_epi32_mask): Ditto.
15623 (_mm512_cmplt_epi32_mask): Ditto.
15624 (_mm512_mask_cmplt_epu32_mask): Ditto.
15625 (_mm512_cmplt_epu32_mask): Ditto.
15626 (_mm512_mask_cmplt_epi64_mask): Ditto.
15627 (_mm512_cmplt_epi64_mask): Ditto.
15628 (_mm512_mask_cmplt_epu64_mask): Ditto.
15629 (_mm512_cmplt_epu64_mask): Ditto.
15630 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15631 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15632 (_mm512_cmpneq_epu32_mask): Ditto.
15633 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15634 (_mm512_cmpneq_epi64_mask): Ditto.
15635 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15636 (_mm512_cmpneq_epu64_mask): Ditto.
15637 (_mm512_castpd_ps): Ditto.
15638 (_mm512_castpd_si512): Ditto.
15639 (_mm512_castps_pd): Ditto.
15640 (_mm512_castps_si512): Ditto.
15641 (_mm512_castsi512_ps): Ditto.
15642 (_mm512_castsi512_pd): Ditto.
15643 (_mm512_castpd512_pd128): Ditto.
15644 (_mm512_castps512_ps128): Ditto.
15645 (_mm512_castsi512_si128): Ditto.
15646 (_mm512_castpd512_pd256): Ditto.
15647 (_mm512_castps512_ps256): Ditto.
15648 (_mm512_castsi512_si256): Ditto.
15649 (_mm512_castpd128_pd512): Ditto.
15650 (_mm512_castps128_ps512): Ditto.
15651 (_mm512_castsi128_si512): Ditto.
15652 (_mm512_castpd256_pd512): Ditto.
15653 (_mm512_castps256_ps512): Ditto.
15654 (_mm512_castsi256_si512): Ditto.
15655 (_mm512_cmpeq_epu32_mask): Ditto.
15656 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15657 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15658 (_mm512_cmpeq_epu64_mask): Ditto.
15659 (_mm512_cmpgt_epu32_mask): Ditto.
15660 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15661 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15662 (_mm512_cmpgt_epu64_mask): Ditto.
15663 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15664 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15665 * config/i386/i386.c (enum ix86_builtins): Add
15666 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15667 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15668 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15669 (bdesc_args): Add __builtin_ia32_si512_256si,
15670 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15671 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15672 __builtin_ia32_pd512_pd.
15673 (ix86_expand_args_builtin): Handle new FTYPEs.
15674 * config/i386/sse.md (castmode): Add 512-bit modes.
15675 (AVX512MODE2P): New.
15676 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15677 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15679 2014-08-15 Richard Biener <rguenther@suse.de>
15681 * fold-const.c (tree_swap_operands_p): Put all constants
15682 last, also strip sign-changing NOPs when considering further
15683 canonicalization. Canonicalize also when optimizing for size.
15685 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15687 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15688 one_match > zero_match case to just before simple_sequence.
15690 2014-08-15 Richard Biener <rguenther@suse.de>
15692 * data-streamer.h (streamer_string_index, string_for_index):
15694 * data-streamer-out.c (streamer_string_index): Make static.
15695 * data-streamer-in.c (string_for_index): Likewise.
15696 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15697 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15699 2014-08-15 Richard Biener <rguenther@suse.de>
15701 PR tree-optimization/62031
15702 * tree-data-ref.c (dr_analyze_indices): Do not set
15703 DR_UNCONSTRAINED_BASE.
15704 (dr_may_alias_p): All indirect accesses have to go the
15705 formerly DR_UNCONSTRAINED_BASE path.
15706 * tree-data-ref.h (struct indices): Remove
15707 unconstrained_base member.
15708 (DR_UNCONSTRAINED_BASE): Remove.
15710 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15712 PR middle-end/62092
15713 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15714 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15715 in OMP_CLAUSE_MAP in some outer target region.
15717 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15719 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15720 name_expansion_cache.
15721 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15722 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15723 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15724 (difference_cannot_overflow_p): New parameter. Use affine
15725 expansion for equality check.
15726 (iv_elimination_compare_lt): Pass new argument.
15728 2014-08-14 DJ Delorie <dj@redhat.com>
15730 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15731 variables to the accumulator.
15733 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15734 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15735 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15736 with far-far moves.
15738 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15739 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15740 (umulqihi3_virt): Likewise.
15741 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15742 (umulqihi3_real): Likewise.
15744 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15746 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15748 PR tree-optimization/62091
15749 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15750 function_entry_reached.
15751 (walk_aliased_vdefs): Clear it here.
15752 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15754 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15756 * ipa-utils.h (compare_virtual_tables): Declare.
15757 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15759 2014-08-14 Marek Polacek <polacek@redhat.com>
15762 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15763 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15765 2014-08-14 Tom de Vries <tom@codesourcery.com>
15767 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15769 2014-08-14 Tom de Vries <tom@codesourcery.com>
15771 PR rtl-optimization/62004
15772 PR rtl-optimization/62030
15773 * ifcvt.c (rtx_interchangeable_p): New function.
15774 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15775 * emit-rtl.h (mem_attrs_eq_p): Declare.
15777 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15779 * graphite-scop-detection.c:
15780 Add inclusion of cp-tree.h.
15781 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15782 in case they are pointers to object types
15784 2014-08-14 Richard Biener <rguenther@suse.de>
15786 * BASE-VER: Change to 5.0.0
15788 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15790 Anna Tikhonova <anna.tikhonova@intel.com>
15791 Ilya Tocar <ilya.tocar@intel.com>
15792 Andrey Turetskiy <andrey.turetskiy@intel.com>
15793 Ilya Verbin <ilya.verbin@intel.com>
15794 Kirill Yukhin <kirill.yukhin@intel.com>
15795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15797 * config/i386/sse.md (define_mode_attr avx512): New.
15798 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15800 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15801 (define_mode_attr ssse3_avx2): Ditto.
15802 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15803 (define_mode_attr avx2_avx512bw): New.
15804 (define_mode_attr ssedoublemodelower): New.
15805 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15806 V32HI, V64QI modes.
15807 (define_mode_attr ssebytemode): Allow V8DI modes.
15808 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15809 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15810 (define_mode_attr ssePSmode2): New.
15811 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15812 V16HI, V32HI modes.
15813 (define_mode_attr dbpsadbwmode): New.
15814 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15815 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15816 (vi8_sse4_1_avx2_avx512): New.
15817 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15819 (define_mode_attr blendbits): Move before its immediate use.
15821 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15822 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15823 Anna Tikhonova <anna.tikhonova@intel.com>
15824 Ilya Tocar <ilya.tocar@intel.com>
15825 Andrey Turetskiy <andrey.turetskiy@intel.com>
15826 Ilya Verbin <ilya.verbin@intel.com>
15827 Kirill Yukhin <kirill.yukhin@intel.com>
15828 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15830 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15831 * config/i386/subst.md
15832 (define_mode_iterator SUBST_V): Update.
15833 (define_mode_iterator SUBST_A): Ditto.
15834 (define_subst_attr "mask_operand7"): New.
15835 (define_subst_attr "mask_operand10"): New.
15836 (define_subst_attr "mask_operand_arg34") : New.
15837 (define_subst_attr "mask_expand_op3"): New.
15838 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15839 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15840 (define_subst_attr "mask_avx512vl_condition"): New.
15841 (define_subst_attr "round_mask_operand4"): Ditto.
15842 (define_subst_attr "round_mask_scalar_op3"): Delete.
15843 (define_subst_attr "round_mask_op4"): New.
15844 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15846 (define_subst_attr "round_modev8sf_condition"): New.
15847 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15849 (define_subst_attr "round_saeonly_mask_operand4"): New.
15850 (define_subst_attr "round_saeonly_mask_op4"): New.
15851 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15852 V8DImode, V16SImode.
15853 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15854 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15855 (define_subst_attr "mask_expand4_args"): New.
15856 (define_subst "mask_expand4"): New.
15858 2014-08-14 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.md
15868 (define_attr "isa"): Add avx512bw,noavx512bw.
15869 (define_attr "enabled"): Ditto.
15870 (define_split): Add 32/64-bit mask logic.
15871 (define_insn "*k<logic>qi"): New.
15872 (define_insn "*k<logic>hi"): New.
15873 (define_insn "*anddi_1"): Add mask version.
15874 (define_insn "*andsi_1"): Ditto.
15875 (define_insn "*<code><mode>_1"): Ditto.
15876 (define_insn "*<code>hi_1"): Ditto.
15877 (define_insn "kxnor<mode>"): New.
15878 (define_insn "kunpcksi"): New.
15879 (define_insn "kunpckdi"): New.
15880 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15881 (define_insn "*one_cmplhi2_1"): Ditto.
15883 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15884 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15885 Anna Tikhonova <anna.tikhonova@intel.com>
15886 Ilya Tocar <ilya.tocar@intel.com>
15887 Andrey Turetskiy <andrey.turetskiy@intel.com>
15888 Ilya Verbin <ilya.verbin@intel.com>
15889 Kirill Yukhin <kirill.yukhin@intel.com>
15890 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15892 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15895 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15896 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15897 Anna Tikhonova <anna.tikhonova@intel.com>
15898 Ilya Tocar <ilya.tocar@intel.com>
15899 Andrey Turetskiy <andrey.turetskiy@intel.com>
15900 Ilya Verbin <ilya.verbin@intel.com>
15901 Kirill Yukhin <kirill.yukhin@intel.com>
15902 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15904 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15906 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15907 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15908 xmm/ymm16+ when availble.
15909 * config/i386/i386.h
15910 (HARD_REGNO_NREGS): Add mask regs.
15911 (VALID_AVX512F_REG_MODE): Ditto.
15912 (VALID_AVX512F_REG_MODE) : Define.
15913 (VALID_MASK_AVX512BW_MODE): Ditto.
15914 (reg_class) (MASK_REG_P(X)): Define.
15915 * config/i386/i386.md: Do not split long moves with mask register,
15916 use kmovb if avx512bw is availible.
15917 (movdi_internal): Handle mask registers.
15919 2014-08-14 Richard Biener <rguenther@suse.de>
15921 PR tree-optimization/62081
15922 * tree-ssa-loop.c (pass_fix_loops): New pass.
15923 (pass_tree_loop::gate): Do not fixup loops here.
15924 * tree-pass.h (make_pass_fix_loops): Declare.
15925 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15927 2014-08-14 Richard Biener <rguenther@suse.de>
15929 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15930 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15932 2014-08-14 Richard Biener <rguenther@suse.de>
15934 PR tree-optimization/62090
15935 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15936 (fold_builtin_2): Do not fold sprintf.
15937 (fold_builtin_3): Likewise.
15938 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15939 moved from builtins.c.
15940 (gimple_fold_builtin): Fold sprintf.
15942 2014-08-14 Richard Biener <rguenther@suse.de>
15944 PR rtl-optimization/62079
15945 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15948 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15950 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15951 current_function_decl.
15953 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15955 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15956 cgraph_function_node to cgraph_node::function_symbol
15959 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15961 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15962 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15964 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15966 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15969 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15971 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15974 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15977 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15978 any registers that are used in mem_insn.
15980 2014-08-12 Steve Ellcey <sellcey@mips.com>
15982 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15984 2014-08-12 Steve Ellcey <sellcey@mips.com>
15986 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15987 (MULTILIB_DIRNAMES): Ditto.
15988 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15989 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15990 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15991 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15992 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15993 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15995 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15998 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15999 of __ARM_SIZEOF_WCHAR_T.
16001 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16004 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16005 Remove unnecessary attributes.
16007 2014-08-12 Yury Gribov <y.gribov@samsung.com>
16009 * internal-fn.c (init_internal_fns): Fix off-by-one.
16011 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
16012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16013 Anna Tikhonova <anna.tikhonova@intel.com>
16014 Ilya Tocar <ilya.tocar@intel.com>
16015 Andrey Turetskiy <andrey.turetskiy@intel.com>
16016 Ilya Verbin <ilya.verbin@intel.com>
16017 Kirill Yukhin <kirill.yukhin@intel.com>
16018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16020 * config/i386/i386.c (standard_sse_constant_opcode): Use
16021 vpxord/vpternlog if avx512 is availible.
16023 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
16025 PR middle-end/62103
16026 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16027 bitfields, that is when size doesn't match the size of type or the
16028 size of the constructor.
16030 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16032 * config/rs6000/constraints.md (wh constraint): New constraint,
16033 for FP registers if direct move is available.
16034 (wi constraint): New constraint, for VSX/FP registers that can
16035 handle 64-bit integers.
16036 (wj constraint): New constraint for VSX/FP registers that can
16037 handle 64-bit integers for direct moves.
16038 (wk constraint): New constraint for VSX/FP registers that can
16039 handle 64-bit doubles for direct moves.
16040 (wy constraint): Make documentation match implementation.
16042 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16043 scalar_in_vmx_p field to simplify tests of whether SFmode or
16044 DFmode can go in the Altivec registers.
16045 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16046 (rs6000_setup_reg_addr_masks): Likewise.
16047 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16048 field, and wh/wi/wj/wk constraints.
16049 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16050 the wh/wi/wj/wk constraints.
16051 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16052 upper registers, prefer VSX registers unless the operation is a
16053 memory operation with REG+OFFSET addressing.
16055 * config/rs6000/vsx.md (VSr mode attribute): Add support for
16056 DImode. Change SFmode to use ww constraint instead of d to allow
16057 SF registers in the upper registers.
16060 (VSr5): Fix thinko in comment.
16061 (VSa): New mode attribute that is an alternative to wa, that
16062 returns the VSX register class that a mode can go in, but may not
16063 be the preferred register class.
16064 (VS_64dm): New mode attribute for appropriate register classes for
16065 referencing 64-bit elements of vectors for direct moves and normal
16067 (VS_64reg): Likewise.
16068 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16069 register allocator to only registers the data type can handle.
16070 (vsx_le_perm_load_<mode>): Likewise.
16071 (vsx_le_perm_store_<mode>): Likewise.
16072 (vsx_xxpermdi2_le_<mode>): Likewise.
16073 (vsx_xxpermdi4_le_<mode>): Likewise.
16074 (vsx_lxvd2x2_le_<mode>): Likewise.
16075 (vsx_lxvd2x4_le_<mode>): Likewise.
16076 (vsx_stxvd2x2_le_<mode>): Likewise.
16077 (vsx_add<mode>3): Likewise.
16078 (vsx_sub<mode>3): Likewise.
16079 (vsx_mul<mode>3): Likewise.
16080 (vsx_div<mode>3): Likewise.
16081 (vsx_tdiv<mode>3_internal): Likewise.
16082 (vsx_fre<mode>2): Likewise.
16083 (vsx_neg<mode>2): Likewise.
16084 (vsx_abs<mode>2): Likewise.
16085 (vsx_nabs<mode>2): Likewise.
16086 (vsx_smax<mode>3): Likewise.
16087 (vsx_smin<mode>3): Likewise.
16088 (vsx_sqrt<mode>2): Likewise.
16089 (vsx_rsqrte<mode>2): Likewise.
16090 (vsx_tsqrt<mode>2_internal): Likewise.
16091 (vsx_fms<mode>4): Likewise.
16092 (vsx_nfma<mode>4): Likewise.
16093 (vsx_eq<mode>): Likewise.
16094 (vsx_gt<mode>): Likewise.
16095 (vsx_ge<mode>): Likewise.
16096 (vsx_eq<mode>_p): Likewise.
16097 (vsx_gt<mode>_p): Likewise.
16098 (vsx_ge<mode>_p): Likewise.
16099 (vsx_xxsel<mode>): Likewise.
16100 (vsx_xxsel<mode>_uns): Likewise.
16101 (vsx_copysign<mode>3): Likewise.
16102 (vsx_float<VSi><mode>2): Likewise.
16103 (vsx_floatuns<VSi><mode>2): Likewise.
16104 (vsx_fix_trunc<mode><VSi>2): Likewise.
16105 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16106 (vsx_x<VSv>r<VSs>i): Likewise.
16107 (vsx_x<VSv>r<VSs>ic): Likewise.
16108 (vsx_btrunc<mode>2): Likewise.
16109 (vsx_b2trunc<mode>2): Likewise.
16110 (vsx_floor<mode>2): Likewise.
16111 (vsx_ceil<mode>2): Likewise.
16112 (vsx_<VS_spdp_insn>): Likewise.
16113 (vsx_xscvspdp): Likewise.
16114 (vsx_xvcvspuxds): Likewise.
16115 (vsx_float_fix_<mode>2): Likewise.
16116 (vsx_set_<mode>): Likewise.
16117 (vsx_extract_<mode>_internal1): Likewise.
16118 (vsx_extract_<mode>_internal2): Likewise.
16119 (vsx_extract_<mode>_load): Likewise.
16120 (vsx_extract_<mode>_store): Likewise.
16121 (vsx_splat_<mode>): Likewise.
16122 (vsx_xxspltw_<mode>): Likewise.
16123 (vsx_xxspltw_<mode>_direct): Likewise.
16124 (vsx_xxmrghw_<mode>): Likewise.
16125 (vsx_xxmrglw_<mode>): Likewise.
16126 (vsx_xxsldwi_<mode>): Likewise.
16127 (vsx_xscvdpspn): Tighten constraints to only use register classes
16129 (vsx_xscvspdpn): Likewise.
16130 (vsx_xscvdpspn_scalar): Likewise.
16132 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16133 wj, and wk constraints.
16134 (GPR_REG_CLASS_P): New helper macro for register classes targeting
16135 general purpose registers.
16137 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16139 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16140 DImode instead of wm. Use wk constraint for direct move of DFmode
16142 (extendsidi2_lfiwax): Likewise.
16143 (lfiwax): Likewise.
16144 (lfiwzx): Likewise.
16145 (movdi_internal64): Likewise.
16147 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16148 wk constraints. Make the wy constraint documentation match them
16151 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
16153 Replacement of isl_int by isl_val
16154 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16155 (compute_bounds_for_param): use isl_val instead of isl_int
16156 (compute_bounds_for_loop): likewise
16157 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16158 (build_linearized_memory_access): use isl_val instead of isl_int
16159 (pdr_stride_in_loop): likewise
16160 * graphite-optimize-isl.c:
16161 (getPrevectorMap): use isl_val instead of isl_int
16163 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16164 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16165 (extern the_isl_ctx): declare
16166 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16167 (extract_affine_gmp): likewise
16169 (build_loop_iteration_domains): likewise
16170 (add_param_constraints): likewise
16172 2014-08-11 Richard Biener <rguenther@suse.de>
16174 PR tree-optimization/62075
16175 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16176 handle uses in patterns.
16178 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16179 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16180 Anna Tikhonova <anna.tikhonova@intel.com>
16181 Ilya Tocar <ilya.tocar@intel.com>
16182 Andrey Turetskiy <andrey.turetskiy@intel.com>
16183 Ilya Verbin <ilya.verbin@intel.com>
16184 Kirill Yukhin <kirill.yukhin@intel.com>
16185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16187 * common/config/i386/i386-common.c
16188 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16189 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16190 (ix86_handle_option): Handle OPT_mavx512vl.
16191 * config/i386/cpuid.h (bit_AVX512VL): Define.
16192 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16193 set -mavx512vl accordingly.
16194 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16195 OPTION_MASK_ISA_AVX512VL.
16196 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16197 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16198 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16199 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16200 * config/i386/i386.h (TARGET_AVX512VL): Define.
16201 (TARGET_AVX512VL_P(x)): Ditto.
16202 * config/i386/i386.opt: Add mavx512vl.
16204 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16206 PR tree-optimization/62073
16207 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16210 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16212 Anna Tikhonova <anna.tikhonova@intel.com>
16213 Ilya Tocar <ilya.tocar@intel.com>
16214 Andrey Turetskiy <andrey.turetskiy@intel.com>
16215 Ilya Verbin <ilya.verbin@intel.com>
16216 Kirill Yukhin <kirill.yukhin@intel.com>
16217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16219 * common/config/i386/i386-common.c
16220 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16221 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16222 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16223 (ix86_handle_option): Handle OPT_mavx512bw.
16224 * config/i386/cpuid.h (bit_AVX512BW): Define.
16225 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16226 set -mavx512bw accordingly.
16227 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16228 OPTION_MASK_ISA_AVX512BW.
16229 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16230 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16231 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16232 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16233 * config/i386/i386.h (TARGET_AVX512BW): Define.
16234 (TARGET_AVX512BW_P(x)): Ditto.
16235 * config/i386/i386.opt: Add mavx512bw.
16237 2014-08-11 Richard Biener <rguenther@suse.de>
16239 PR tree-optimization/62070
16240 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16241 Remove SSA checking.
16243 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16245 * asan.c (asan_check_flags): New enum.
16246 (build_check_stmt_with_calls): Removed function.
16247 (build_check_stmt): Split inlining logic to
16248 asan_expand_check_ifn.
16249 (instrument_derefs): Rename parameter.
16250 (instrument_mem_region_access): Rename parameter.
16251 (instrument_strlen_call): Likewise.
16252 (asan_expand_check_ifn): New function.
16253 (asan_instrument): Remove old code.
16254 (pass_sanopt::execute): Change handling of
16255 asan-instrumentation-with-call-threshold.
16256 (asan_clear_shadow): Fix formatting.
16257 (asan_function_start): Likewise.
16258 (asan_emit_stack_protection): Likewise.
16259 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16260 Update description.
16261 * internal-fn.c (expand_ASAN_CHECK): New function.
16262 * internal-fn.def (ASAN_CHECK): New internal function.
16263 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16264 Update description.
16265 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16266 * tree.c: Small comment fix.
16268 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16270 * gimple.c (gimple_call_fnspec): Support internal functions.
16271 (gimple_call_return_flags): Use const.
16272 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16273 * internal-fn.def: Add fnspec information.
16274 * internal-fn.h (internal_fn_fnspec): New function.
16275 (init_internal_fns): Declare new function.
16276 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16277 (init_internal_fns): New function.
16278 * tree-core.h: Update macro call.
16279 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16281 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16283 * lto-streamer.h (struct output_block::symbol): Change from
16284 struct symtab_node to plain symtab_node.
16285 (referenced_from_this_partition_p): Change first parameter
16286 from struct symtab_node to plain symtab_node.
16288 2014-08-10 Marek Polacek <polacek@redhat.com>
16291 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16293 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16295 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16296 DECL correctly; do not give up on types in static storage.
16298 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16300 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16302 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16304 * graphite-isl-ast-to-gimple.c:
16305 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16307 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16309 2014-08-08 Guozhi Wei <carrot@google.com>
16311 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16313 2014-08-08 Cary Coutant <ccoutant@google.com>
16315 * dwarf2out.c (get_skeleton_type_unit): Remove.
16316 (output_skeleton_debug_sections): Remove skeleton type units.
16317 (output_comdat_type_unit): Likewise.
16318 (dwarf2out_finish): Likewise.
16320 2014-08-07 Yi Yang <ahyangyi@google.com>
16322 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16324 2014-08-08 Richard Biener <rguenther@suse.de>
16326 * lto-streamer.h (struct lto_input_block): Make it a class
16327 with a constructor.
16328 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16329 (struct lto_function_header, struct lto_simple_header,
16330 struct lto_simple_header_with_strings,
16331 struct lto_decl_header, struct lto_function_header): Make
16332 a simple inheritance hieararchy. Remove unused fields.
16333 (struct lto_asm_header): Remove.
16334 * lto-streamer-out.c (produce_asm): Adjust.
16335 (lto_output_toplevel_asms): Likewise.
16336 (produce_asm_for_decls): Likewise.
16337 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16338 * data-streamer-in.c (string_for_index): Likewise.
16339 * ipa-inline-analysis.c (inline_read_section): Likewise.
16340 * ipa-prop.c (ipa_prop_read_section): Likewise.
16341 (read_replacements_section): Likewise.
16342 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16343 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16344 (lto_destroy_simple_input_block): Likewise.
16345 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16346 (lto_input_toplevel_asms): Likewise.
16348 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16350 Anna Tikhonova <anna.tikhonova@intel.com>
16351 Ilya Tocar <ilya.tocar@intel.com>
16352 Andrey Turetskiy <andrey.turetskiy@intel.com>
16353 Ilya Verbin <ilya.verbin@intel.com>
16354 Kirill Yukhin <kirill.yukhin@intel.com>
16355 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16357 * common/config/i386/i386-common.c
16358 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16359 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16360 (ix86_handle_option): Handle OPT_mavx512dq.
16361 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16362 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16363 set -mavx512dq accordingly.
16364 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16365 OPTION_MASK_ISA_AVX512DQ.
16366 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16367 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16368 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16369 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16370 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16371 (TARGET_AVX512DQ_P(x)): Ditto.
16372 * config/i386/i386.opt: Add mavx512dq.
16374 2014-08-08 Richard Biener <rguenther@suse.de>
16376 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16377 target_percent, target_percent_s): Export.
16378 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16379 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16380 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16381 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16382 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16383 Move to gimple-fold.c.
16384 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16386 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16387 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16388 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16389 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16390 (rewrite_call_expr_array): Remove.
16391 (fold_builtin_sprintf_chk): Likewise.
16392 (fold_builtin_snprintf_chk): Likewise.
16393 (fold_builtin_varargs): Remove handling of sprintf_chk,
16394 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16395 (gimple_fold_builtin_sprintf_chk): Remove.
16396 (gimple_fold_builtin_snprintf_chk): Likewise.
16397 (gimple_fold_builtin_varargs): Likewise.
16398 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16399 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16400 * gimple.c (gimple_seq_add_seq_without_update): New function.
16401 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16402 * gimple-fold.c: Include output.h.
16403 (gsi_replace_with_seq_vops): New function, split out from ...
16404 (gimplify_and_update_call_from_tree): ... here.
16405 (replace_call_with_value): New function.
16406 (replace_call_with_call_and_fold): Likewise.
16407 (var_decl_component_p): Moved from builtins.c.
16408 (gimple_fold_builtin_memory_op): Moved from builtins.c
16409 fold_builtin_memory_op and rewritten to GIMPLE.
16410 (gimple_fold_builtin_memset): Likewise.
16411 (gimple_fold_builtin_strcpy): Likewise.
16412 (gimple_fold_builtin_strncpy): Likewise.
16413 (gimple_fold_builtin_strcat): Likewise.
16414 (gimple_fold_builtin_fputs): Likewise.
16415 (gimple_fold_builtin_memory_chk): Likewise.
16416 (gimple_fold_builtin_stxcpy_chk): Likewise.
16417 (gimple_fold_builtin_stxncpy_chk): Likewise.
16418 (gimple_fold_builtin_snprintf_chk): Likewise.
16419 (gimple_fold_builtin_sprintf_chk): Likewise.
16420 (gimple_fold_builtin_strlen): New function.
16421 (gimple_fold_builtin_with_strlen): New function split out from
16422 gimple_fold_builtin.
16423 (gimple_fold_builtin): Change signature and handle
16424 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16425 here. Call gimple_fold_builtin_with_strlen.
16426 (gimple_fold_call): Adjust.
16428 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16430 * calls.c (precompute_arguments): Check
16431 promoted_for_signed_and_unsigned_p and set the promoted mode.
16432 (promoted_for_signed_and_unsigned_p): New function.
16433 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16434 and set the promoted mode.
16435 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16436 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16437 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16440 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16442 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16443 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16444 (expand_call): Likewise.
16445 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16446 to get promoted mode.
16447 * combine.c (record_promoted_value): Skip > 0 comparison with
16448 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16449 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16450 of SUBREG_PROMOTED_UNSIGNED_P.
16451 (convert_modes): Likewise.
16452 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16453 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16454 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16455 SUBREG_PROMOTED_UNSIGNED_SET.
16456 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16457 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16458 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16459 SUBREG_PROMOTED_SET.
16460 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16461 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16462 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16463 of SUBREG_PROMOTED_UNSIGNED_P.
16464 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16465 (SUBREG_PROMOTED_SET): New define.
16466 (SUBREG_PROMOTED_GET): Likewise.
16467 (SUBREG_PROMOTED_SIGN): Likewise.
16468 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16469 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16470 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16471 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16472 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16473 (nonzero_bits1): Skip > 0 comparison with the results as
16474 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16475 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16476 of !SUBREG_PROMOTED_UNSIGNED_P.
16477 * simplify-rtx.c (simplify_unary_operation_1): Use new
16478 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16479 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16480 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16481 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16483 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16485 * ipa-devirt.c: Include gimple-pretty-print.h
16486 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16488 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16489 (get_polymorphic_call_info): Fix return value
16490 (type_change_info): New sturcture based on ipa-prop
16492 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16493 based on ipa-prop variant.
16494 (extr_type_from_vtbl_ptr_store): New function
16495 based on ipa-prop variant.
16496 (record_known_type): New function.
16497 (check_stmt_for_type_change): New function.
16498 (get_dynamic_type): New function.
16499 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16500 * tree-ssa-pre.c: ipa-utils.h
16501 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16502 machinery; sanity check with ipa-prop devirtualization.
16503 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16506 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16508 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16509 * alias.c, cfgexpand.c, cgraphbuild.c,
16510 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16511 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16512 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16513 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16514 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16515 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16516 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16517 dse.c, except.c, gengtype.c, gimple-expr.c,
16518 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16519 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16520 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16521 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16522 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16523 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16525 * pointer-set.c: Remove file.
16526 * pointer-set.h: Remove file.
16528 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16530 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16531 * config/arm/types.md (f_sels, f_seld): Delete.
16533 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16535 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16536 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16537 (aarch64_movdi_<mode>high): Likewise.
16538 (aarch64_mov<mode>high_di): Likewise.
16539 (aarch64_movdi_<mode>low): Likewise.
16540 (aarch64_mov<mode>low_di): Likewise.
16541 (aarch64_movtilow_tilow): Likewise.
16542 Add comment explaining usage of fp,simd attributes and of
16543 TARGET_FLOAT and TARGET_SIMD.
16545 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16546 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16548 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16549 Use MOVN when one of the half-words is 0xffff.
16551 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16553 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16555 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16557 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16558 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16559 (rfs_str): String corresponding to RFS_* constants.
16560 (rank_for_schedule_stats_t): New typedef.
16561 (rank_for_schedule_stats): New static variable.
16562 (rfs_result): New static function.
16563 (rank_for_schedule): Track statistics for deciding heuristics.
16564 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16566 (ready_sort): Use them for debug printouts.
16567 (schedule_block): Init statistics state. Print statistics on
16568 rank_for_schedule decisions.
16570 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16572 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16574 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16576 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16579 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16581 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16582 function to not conflict.
16583 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16584 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16585 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16586 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16587 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16590 2014-08-07 Marek Polacek <polacek@redhat.com>
16592 * fold-const.c (fold_binary_loc): Add folding of
16593 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16595 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16597 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16598 instead of type size.
16599 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16601 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16603 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16604 (*thumb1_movqi_insn): Likewise.
16605 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16607 2014-08-07 Tom de Vries <tom@codesourcery.com>
16609 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16610 (glibc_2_11_or_earlier): Remove effective-target keywords.
16612 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16614 * config/arm/arm.c (bdesc_2arg): Fix typo.
16615 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16617 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16619 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16621 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16624 * haifa-sched.c (advance_one_cycle): Fix dump.
16625 (schedule_block): Don't advance cycle if we are already at the
16626 beginning of the cycle.
16628 2014-08-06 Martin Jambor <mjambor@suse.cz>
16631 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16633 2014-08-06 Richard Biener <rguenther@suse.de>
16636 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16638 (lto_input_tree): Pop SCCs here.
16640 2014-08-06 Richard Biener <rguenther@suse.de>
16642 PR tree-optimization/61320
16643 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16644 handle misaligned loads.
16646 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16648 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16649 (aarch64_expand_vec_perm_const): Check for dup before zip.
16651 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16653 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16654 CONST_INT_P instead of GET_CODE and compare.
16655 (aarch64_select_cc_mode): Likewise.
16656 (aarch64_print_operand): Likewise.
16657 (aarch64_rtx_costs): Likewise.
16658 (aarch64_simd_valid_immediate): Likewise.
16659 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16660 (aarch64_simd_emit_pair_result_insn): Likewise.
16662 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16664 * gdbhooks.py (find_gcc_source_dir): New helper function.
16665 (class PassNames): New class, locating and parsing passes.def.
16666 (class BreakOnPass): New command "break-on-pass".
16668 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16670 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16673 2014-08-05 Richard Biener <rguenther@suse.de>
16675 PR rtl-optimization/61672
16676 * emit-rtl.h (mem_attrs_eq_p): Declare.
16677 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16678 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16679 * cfgcleanup.c (merge_memattrs): Likewise.
16680 Include emit-rtl.h.
16682 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16684 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16685 rather than singleton vectors.
16686 (vqdmlsls_lane_s32): Likewise.
16688 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16690 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16691 Use VSDQ_HSI mode iterator.
16692 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16693 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16694 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16695 Use BUILTIN_VDQHS macro.
16696 (sqrdmulh_laneq): Likewise.
16697 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16698 (vqdmlals_laneq_s32): Likewise.
16699 (vqdmlslh_laneq_s16): Likewise.
16700 (vqdmlsls_laneq_s32): Likewise.
16701 (vqdmulhh_laneq_s16): Likewise.
16702 (vqdmulhs_laneq_s32): Likewise.
16703 (vqrdmulhh_laneq_s16): Likewise.
16704 (vqrdmulhs_laneq_s32): Likewise.
16706 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16708 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16709 (vmuld_laneq_f64): Likewise.
16710 (vmuls_laneq_f32): Likewise.
16711 (vmul_n_f64): Likewise.
16712 (vmuld_lane_f64): Reimplement in C.
16713 (vmuls_lane_f32): Likewise.
16715 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16717 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16719 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16721 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16723 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16724 (rbitsi2): Likewise.
16725 (*arm_rev): Set predicable and predicable_short_it attributes.
16727 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16729 * convert.c (convert_to_integer): Guard transformation to lrint by
16732 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16734 * config/aarch64/aarch64-builtins.c
16735 (aarch64_simd_builtin_type_mode): Delete.
16736 (v8qi_UP): Remap to V8QImode.
16737 (v4hi_UP): Remap to V4HImode.
16738 (v2si_UP): Remap to V2SImode.
16739 (v2sf_UP): Remap to V2SFmode.
16740 (v1df_UP): Remap to V1DFmode.
16741 (di_UP): Remap to DImode.
16742 (df_UP): Remap to DFmode.
16743 (v16qi_UP):V16QImode.
16744 (v8hi_UP): Remap to V8HImode.
16745 (v4si_UP): Remap to V4SImode.
16746 (v4sf_UP): Remap to V4SFmode.
16747 (v2di_UP): Remap to V2DImode.
16748 (v2df_UP): Remap to V2DFmode.
16749 (ti_UP): Remap to TImode.
16750 (ei_UP): Remap to EImode.
16751 (oi_UP): Remap to OImode.
16752 (ci_UP): Map to CImode.
16753 (xi_UP): Remap to XImode.
16754 (si_UP): Remap to SImode.
16755 (sf_UP): Remap to SFmode.
16756 (hi_UP): Remap to HImode.
16757 (qi_UP): Remap to QImode.
16758 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16759 (VAR1): Build builtin name.
16760 (aarch64_init_simd_builtins): Remove dead code.
16762 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16764 * graphite-isl-ast-to-gimple.c:
16765 (set_options): New function.
16766 (scop_to_isl_ast): Add calling of set_options.
16768 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16770 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16771 (analyze_iv_to_split_insn): Don't initialize them.
16772 (get_ivts_expr): Removed.
16773 (allocate_basic_variable, insert_base_initialization): Use
16774 SET_SRC instead of *get_ivts_expr.
16775 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16777 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16779 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16780 (translate_isl_ast_for_loop): Add checking of the
16781 flag_loop_parallelize_all.
16782 (ast_build_before_for): New function.
16783 (scop_to_isl_ast): Add checking of the
16784 flag_loop_parallelize_all.
16785 * graphite-dependences.c: Move the defenition of the
16786 scop_get_dependences from graphite-optimize-isl.c to this file.
16787 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16788 (carries_deps): Add checking of the x's value.
16789 * graphite-optimize-isl.c: Move the defenition of the
16790 scop_get_dependences to graphite-dependences.c.
16791 * graphite-poly.h: Add declarations of scop_get_dependences
16794 2014-08-04 Rohit <rohitarulraj@freescale.com>
16797 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16799 (alt_reg_names): Likewise.
16800 (rs6000_dwarf_register_span): For SPE high registers, replace
16801 dwarf register numbers with GCC hard register numbers.
16802 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16803 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16804 register number for the corresponding GCC hard register number.
16805 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16806 newly added GCC hard register numbers for SPE high registers.
16807 (DWARF_FRAME_REGISTERS): Likewise.
16808 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16809 (DWARF_FRAME_REGNUM): Likewise.
16810 (FIXED_REGISTERS): Likewise.
16811 (CALL_USED_REGISTERS): Likewise.
16812 (CALL_REALLY_USED_REGISTERS): Likewise.
16813 (REG_ALLOC_ORDER): Likewise.
16814 (enum reg_class): Likewise.
16815 (REG_CLASS_NAMES): Likewise.
16816 (REG_CLASS_CONTENTS): Likewise.
16817 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16819 2014-08-04 Richard Biener <rguenther@suse.de>
16821 * gimple-fold.h (gimple_fold_builtin): Remove.
16822 * gimple-fold.c (gimple_fold_builtin): Make static.
16823 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16824 fold_stmt, not gimple_fold_builtin.
16826 2014-08-04 Martin Liska <mliska@suse.cz>
16828 * cgraph.h (csi_end_p): Removed.
16829 (csi_next): Likewise.
16830 (csi_node): Likewise.
16831 (csi_start): Likewise.
16832 (cgraph_node_in_set_p): Likewise.
16833 (cgraph_node_set_size): Likewise.
16834 (vsi_end_p): Likewise.
16835 (vsi_next): Likewise.
16836 (vsi_node): Likewise.
16837 (vsi_start): Likewise.
16838 (varpool_node_set_size): Likewise.
16839 (cgraph_node_set_nonempty_p): Likewise.
16840 (varpool_node_set_nonempty_p): Likewise.
16841 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16843 * ipa-inline-transform.c: Likewise.
16844 * ipa-utils.c (cgraph_node_set_new): Removed.
16845 (cgraph_node_set_add): Likewise.
16846 (cgraph_node_set_remove): Likewise.
16847 (cgraph_node_set_find): Likewise.
16848 (dump_cgraph_node_set): Likewise.
16849 (debug_cgraph_node_set): Likewise.
16850 (free_cgraph_node_set): Likewise.
16851 (varpool_node_set_new): Likewise.
16852 (varpool_node_set_add): Likewise.
16853 (varpool_node_set_remove): Likewise.
16854 (varpool_node_set_find): Likewise.
16855 (dump_varpool_node_set): Likewise.
16856 (free_varpool_node_set): Likewise.
16857 (debug_varpool_node_set): Likewise.
16858 * tree-emutls.c (struct tls_var_data):
16859 (emutls_index): Removed.
16860 (emutls_decl): Likewise.
16861 (gen_emutls_addr): Function implementation uses newly added
16862 hash_map<varpool_node *, tls_var_data>.
16863 (clear_access_vars): Likewise.
16864 (create_emultls_var): Likewise.
16865 (ipa_lower_emutls): Likewise.
16866 (reset_access): New function.
16868 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16870 * config/i386/i386.c (ix86_option_override_internal): Add
16871 PTA_RDRND and PTA_MOVBE for bdver4.
16873 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16874 James Greenhalgh <james.greenhalgh@arm.com>
16876 * doc/md.texi (clrsb): Document.
16877 (clz): Change reference to x into operand 1.
16879 (popcount): Likewise.
16881 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16884 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16885 move to subtarget in serial version if result is ignored.
16887 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16888 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16890 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16891 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16892 (sched_analyze_insn): Update use of try_group_insn to
16893 sched_macro_fuse_insns.
16894 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16895 arguments that are not conditional jumps.
16897 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16899 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16900 family information. Handle BTVER2 cpu with cpuid family value.
16902 2014-08-04 Tom de Vries <tom@codesourcery.com>
16904 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16905 (glibc_2_11_or_earlier): Document effective-target keywords.
16907 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16909 * ipa-devirt.c (odr_type_warn_count): Add type.
16910 (possible_polymorphic_call_targets): Set it.
16911 (ipa_devirt): Use it.
16913 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16915 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16917 * ipa-devirt.c: Include hash-map.h
16918 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16919 (clear_speculation): Break out of ...
16920 (get_class_context): ... here; speed up handling obviously useless
16922 (odr_type_warn_count, decl_warn_count): New structures.
16923 (final_warning_record): New structure.
16924 (final_warning_records): New static variable.
16925 (possible_polymorphic_call_targets): Cleanup handling of
16926 speculative info; do not build speculation when user do not care;
16927 record info about warnings when asked for.
16928 (add_decl_warning): New function.
16929 (type_warning_cmp): New function.
16930 (decl_warning_cmp): New function.
16931 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16932 (gate): Enable pass when warnings are requested.
16933 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16936 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16938 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16940 (hash_map::remove): New method.
16941 (hash_map::traverse): New method.
16942 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16943 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16944 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16945 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16946 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16947 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16950 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16952 * hash-set.h: new File.
16953 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16954 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16955 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16956 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16957 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16958 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16959 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16960 varpool.c: Use hash_set instead of pointer_set.
16962 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16964 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16966 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16968 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16969 for frame access when strict_p is false.
16971 2014-08-01 Renlin Li <renlin.li@arm.com>
16972 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16974 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16975 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16976 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16978 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16980 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16981 aarch64_mem_pair_offset.
16983 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16985 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16987 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16988 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16990 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16992 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16994 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16996 PR regression/61510
16997 * cgraphunit.c (analyze_functions): Use get_create rather than get
16998 for decls which are clones of abstract functions.
17000 2014-08-01 Martin Liska <mliska@suse.cz>
17002 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17003 * ipa-prop.h (count_formal_params): Global function created from static.
17004 * ipa-prop.c (count_formal_params): Likewise.
17005 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17006 profiles for semantically equivalent functions.
17007 * passes.c (do_per_function): If we load body of a function
17008 during WPA, this condition should behave same.
17009 * varpool.c (ctor_for_folding): More tolerant assert for variable
17010 aliases created during WPA.
17012 2014-08-01 Martin Liska <mliska@suse.cz>
17014 * doc/invoke.texi (Options That Control Optimization): Documentation
17015 for -foptimize-strlen introduced. Optimization levels default options
17018 2014-08-01 Jakub Jelinek <jakub@redhat.com>
17020 * opts.c (common_handle_option): Handle -fsanitize=alignment.
17021 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17022 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17024 * stor-layout.h (min_align_of_type): New prototype.
17025 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17026 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
17028 * ubsan.c: Include builtins.h.
17029 (ubsan_expand_bounds_ifn): Change return type to bool,
17030 always return true.
17031 (ubsan_expand_null_ifn): Change return type to bool, change
17032 argument to gimple_stmt_iterator *. Handle both null and alignment
17033 sanitization, take type from ckind argument's type rather than
17035 (instrument_member_call): Removed.
17036 (instrument_mem_ref): Remove t argument, add mem and base arguments.
17037 Handle both null and alignment sanitization, don't say whole
17038 struct access is member access. Build 3 argument IFN_UBSAN_NULL
17039 call instead of 2 argument.
17040 (instrument_null): Adjust instrument_mem_ref caller. Don't
17041 instrument calls here.
17042 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17043 like SANITIZE_NULL.
17044 * stor-layout.c (min_align_of_type): New function.
17045 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17046 Or it into SANITIZE_UNDEFINED.
17047 * doc/invoke.texi (-fsanitize=alignment): Document.
17049 2014-07-31 Andi Kleen <ak@linux.intel.com>
17051 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17053 2014-07-31 Andi Kleen <ak@linux.intel.com>
17055 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17057 (vn_reference_compute_hash): Dito.
17058 (vn_nary_op_compute_hash): Dito.
17059 (vn_phi_compute_hash): Dito.
17060 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17062 2014-07-31 Andi Kleen <ak@linux.intel.com>
17064 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17065 Rename to inchash:add_expr_commutative. Convert to inchash.
17066 (iterative_hash_hashable_expr): Rename to
17067 inchash:add_hashable_expr. Convert to inchash.
17068 (avail_expr_hash): Dito.
17070 2014-07-31 Andi Kleen <ak@linux.intel.com>
17072 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17073 Convert to inchash.
17075 2014-07-31 Andi Kleen <ak@linux.intel.com>
17077 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17079 2014-07-31 Andi Kleen <ak@linux.intel.com>
17081 * Makefile.in (OBJS): Add rtlhash.o
17082 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17083 (loc_checksum): Dito.
17084 (loc_checksum_ordered): Dito.
17085 (hash_loc_operands): Dito.
17087 (hash_loc_list): Dito.
17088 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17089 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17090 * rtlhash.c: New file.
17091 * rtlhash.h: New file.
17093 2014-07-31 Andi Kleen <ak@linux.intel.com>
17095 * inchash.h (inchash): Change inchash class to namespace.
17096 (class hash): ... Rename from inchash.
17097 (add_object): Move from macro to class template.
17098 * lto-streamer-out.c (hash_tree): Change inchash
17100 * tree.c (build_type_attribute_qual_variant): Dito.
17101 (type_hash_list): Dito.
17102 (attribute_hash_list): Dito.
17103 (iterative_hstate_expr): Rename to inchash::add_expr
17104 (build_range_type_1): Change inchash to inchash::hash
17105 and use hash::add_expr.
17106 (build_array_type_1): Dito.
17107 (build_function_type): Dito
17108 (build_method_type_directly): Dito.
17109 (build_offset_type): Dito.
17110 (build_complex_type): Dito.
17111 (make_vector_type): Dito.
17112 * tree.h (iterative_hash_expr): Dito.
17114 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
17116 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17118 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17120 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17121 correct alphabetical position.
17122 (vpaddd_f64): Rewrite using builtins.
17123 (vpaddd_s64): Move to correct alphabetical position.
17126 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
17129 * config/sh/sh.c (sh_legitimate_address_p,
17130 sh_legitimize_reload_address): Handle reg+reg address modes when
17131 ALLOW_INDEXED_ADDRESS is false.
17132 * config/sh/predicates.md (general_movsrc_operand,
17133 general_movdst_operand): Likewise.
17135 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17137 * config/aarch64/aarch64-builtins.c
17138 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17141 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17143 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17144 the generated mask based on BYTES_BIG_ENDIAN.
17145 (aarch64_simd_check_vect_par_cnst_half): New.
17146 * config/aarch64/aarch64-protos.h
17147 (aarch64_simd_check_vect_par_cnst_half): New.
17148 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17149 the check out to aarch64_simd_check_vect_par_cnst_half.
17150 (vect_par_cnst_lo_half): Likewise.
17151 * config/aarch64/aarch64-simd.md
17152 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17153 (move_hi_quad_<mode>): Always generate a low mask.
17155 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17157 * doc/invoke.texi (AVR Options): Add documentation about
17158 __AVR_DEVICE_NAME__ built-in macro.
17160 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
17163 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17164 constraints are satisfied.
17165 (<shift>di3_neon): Likewise.
17167 2014-07-31 Richard Biener <rguenther@suse.de>
17169 PR tree-optimization/61964
17170 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17171 by structural equality.
17173 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17175 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17176 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17177 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17179 * gcc.c (sanitize_spec_function): Support new option.
17180 (SANITIZER_SPEC): Remove now redundant check.
17181 * opts.c (common_handle_option): Support new option.
17182 (finish_options): Check for incompatibilities.
17183 * toplev.c (process_options): Split userspace-specific checks.
17185 2014-07-31 Richard Biener <rguenther@suse.de>
17187 * lto-streamer.h (struct output_block): Remove global.
17188 (struct data_in): Remove labels, num_named_labels and
17189 num_unnamed_labels.
17190 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17191 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17193 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17196 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17197 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17198 (isolate_path): New argument to avoid inserting a trap.
17199 (find_implicit_erroneous_behaviour): Handle returning the address
17200 of a local variable.
17201 (find_explicit_erroneous_behaviour): Likewise.
17203 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17206 * toplev.c (init_random_seed): Move piece of code never called to
17208 (set_random_seed): see above.
17210 2014-07-31 Tom de Vries <tom@codesourcery.com>
17212 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17214 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17216 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17217 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17219 2014-07-31 Richard Biener <rguenther@suse.de>
17221 * data-streamer.h (streamer_write_data_stream): Declare here,
17223 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17224 * lto-cgraph.c (lto_output_node): Adjust.
17225 (lto_output_varpool_node): Likewise.
17226 * data-streamer-out.c (streamer_string_index): Likewise.
17227 (streamer_write_data_stream, lto_append_block): Move from ...
17228 * lto-section-out.c (lto_output_data_stream,
17229 lto_append_block): ... here.
17231 2014-07-30 Mike Stump <mikestump@comcast.net>
17233 * configure.ac: Also check for popen.
17234 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17235 * configure: Regenerate.
17236 * config.in: Regenerate.
17238 2014-07-30 Martin Jambor <mjambor@suse.cz>
17240 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17241 parameter to gimple.
17243 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17245 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17246 address as second parameter to __tpf_eh_return routine.
17248 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17250 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17253 2014-07-30 Tom Tromey <tromey@redhat.com>
17256 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17257 * doc/extend.texi (Type Attributes): Document designated_init
17260 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17262 * graphite-isl-ast-to-gimple.c:
17263 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17264 (gcc_expression_from_isl_expression): Pass type to
17265 gcc_expression_from_isl_ast_expr_id.
17267 2014-07-30 Richard Biener <rguenther@suse.de>
17269 * lto-streamer.h (lto_write_data): New function.
17270 * langhooks.c (lhd_append_data): Do not free block.
17271 * lto-section-out.c (lto_write_data): New function writing
17272 raw data to the current section.
17273 (lto_write_stream): Adjust for langhook semantic change.
17274 (lto_destroy_simple_output_block): Write header directly.
17275 * lto-opts.c (lto_write_options): Write options directly.
17276 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17277 (lto_output_toplevel_asms): Likewise.
17278 (copy_function_or_variable): Copy data directly.
17279 (write_global_references): Output index table directly.
17280 (lto_output_decl_state_refs): Likewise.
17281 (write_symbol): Write data directly.
17282 (produce_symtab): Adjust.
17283 (produce_asm_for_decls): Output header and refs directly.
17285 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17287 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17288 to speculative_targets
17289 (get_class_context): Fix handling of contextes without outer type;
17290 avoid matching non-polymorphic types in LTO.
17291 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17292 parameter to speculative_targetsp; handle speculation.
17293 (dump_possible_polymorphic_call_targets): Update dumping.
17295 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17297 * common.opt (Wodr): Enable by default.
17299 2014-07-29 Olivier Hainque <hainque@adacore.com>
17301 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17303 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17306 * gengtype.c (strtoken): New function.
17307 (create_user_defined_type): Replace strtok with strtoken.
17309 2014-07-29 Nathan Sidwell <nathan@acm.org>
17311 * gcov-io.c (gcov_var): Make hidden.
17312 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17313 (gcov_do_dump): Declare.
17314 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17316 2014-07-29 Martin Jambor <mjambor@suse.cz>
17318 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17319 parameter to gimple.
17320 (sra_modify_assign): Likewise.
17322 2014-07-29 Richard Biener <rguenther@suse.de>
17324 PR middle-end/52478
17325 * expr.c (expand_expr_real_2): Revert last change.
17327 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17329 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17330 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17331 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17333 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17334 (contains_type_p): Forward declare.
17335 (polymorphic_call_target_hasher::hash): Hash speculative info.
17336 (polymorphic_call_target_hasher::equal): Compare speculative info.
17337 (get_class_context): Handle speuclation.
17338 (contains_type_p): Update.
17339 (get_polymorphic_call_info_for_decl): Update.
17340 (walk_ssa_copies): Break out from ...
17341 (get_polymorphic_call_info): ... here; set speculative context
17343 * ipa-prop.c (ipa_write_indirect_edge_info,
17344 ipa_read_indirect_edge_info): Stream speculative context.
17345 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17346 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17347 SPECULATIVE_MAYBE_DERIVED_TYPE).
17348 (possible_polymorphic_call_targets overriders): Update.
17349 (dump_possible_polymorphic_call_targets overriders): Update.
17350 (dump_possible_polymorphic_call_target_p overriders): Update.
17352 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17354 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17355 ipa-devirt path; fix thinko there.
17357 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17359 * config/i386/i386.c (ix86_return_in_memory): Replace one
17360 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17362 2014-07-28 Marek Polacek <polacek@redhat.com>
17364 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17366 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17368 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17369 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17370 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17371 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17372 (USE_LD_AS_NEEDED): Likewise.
17373 (ASM_APP_ON): Likewise.
17374 (ASM_APP_OFF): Likewise.
17375 (TARGET_POSIX_IO): Likewise.
17376 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17377 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17378 (USE_LD_AS_NEEDED): Likewise.
17379 (ASM_APP_ON): Likewise.
17380 (ASM_APP_OFF): Likewise.
17381 (TARGET_POSIX_IO): Likewise.
17383 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17385 PR middle-end/61734
17386 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17387 operators other than the equality operators.
17389 2014-07-28 Richard Biener <rguenther@suse.de>
17391 PR middle-end/52478
17392 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17393 sure to register SImode ones, not only >= word_mode ones.
17394 * expr.c (expand_expr_real_2): When expanding -ftrapv
17395 binops do not use OPTAB_LIB_WIDEN.
17397 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17399 PR middle-end/61919
17400 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17401 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17402 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17403 inserting them in the insn stream.
17405 2014-07-28 Marek Polacek <polacek@redhat.com>
17407 PR middle-end/61913
17408 * common.opt (Wodr): Add Var.
17410 2014-07-28 Richard Biener <rguenther@suse.de>
17412 PR tree-optimization/61921
17413 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17414 if there is a varpool node before dereferencing it.
17416 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17418 * graphite-sese-to-poly.c:
17419 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17420 id of the pbb), which contains pointer to the pbb1.
17422 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17424 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17426 * graphite-isl-ast-to-gimple.c:
17427 (graphite_create_new_guard): New function.
17428 (translate_isl_ast_node_if): New function.
17429 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17431 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17433 2014-07-27 Anthony Green <green@moxielogic.com>
17435 * config.gcc: Add moxie-*-moxiebox* configuration.
17436 * config/moxie/moxiebox.h: New file.
17438 2014-07-26 Andrew Pinski <apinski@cavium.com>
17440 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17441 from the read only register.
17443 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17445 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17446 as the allocation class if it isn't likely to be spilled.
17448 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17450 * rtl.h (tls_referenced_p): Declare.
17451 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17452 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17453 (mips_cannot_force_const_mem): Use tls_referenced_p.
17454 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17455 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17456 instead of pa_tls_referenced_p.
17457 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17458 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17459 (pa_legitimate_constant_p): Likewise.
17460 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17461 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17462 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17463 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17464 rs6000_tls_referenced_p.
17465 (rs6000_tls_symbol_ref_1): Delete.
17467 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17470 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17471 Optimize inverse of a VEC_CONCAT.
17473 2014-07-25 Xinliang David Li <davidxl@google.com>
17475 * params.def: New parameter.
17476 * coverage.c (get_coverage_counts): Check new flag.
17477 (coverage_compute_profile_id): Check new flag.
17478 (coverage_begin_function): Check new flag.
17479 (coverage_end_function): Check new flag.
17480 * value-prof.c (coverage_node_map_initialized_p): New function.
17481 (init_node_map): Populate map with all functions.
17482 * doc/invoke.texi: Document new parameter.
17484 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17485 Richard Biener <rguenther@suse.de>
17487 * lto-streamer-out.c (struct sccs): Turn to ...
17488 (class DFS): ... this one; refactor the DFS walk so it can
17489 be re-done on per-SCC basis.
17490 (DFS::DFS): New constructor.
17491 (DFS::~DFS): New destructor.
17492 (hash_tree): Add new MAP argument holding in-SCC hash values;
17493 remove POINTER_TYPE hashing hack.
17494 (scc_entry_compare): Rename to ...
17495 (DFS::scc_entry_compare): ... this one.
17496 (hash_scc): Rename to ...
17497 (DFS::hash_scc): ... this one; pass output_block instead
17498 of streamer_cache; work harder to get unique and stable SCC
17500 (DFS_write_tree): Rename to ...
17501 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17502 (lto_output_tree): Update.
17504 2014-07-25 Andi Kleen <ak@linux.intel.com>
17506 * lto-streamer-out.c (hash_tree): Convert to inchash.
17508 2014-07-25 Andi Kleen <ak@linux.intel.com>
17510 * tree.c (build_type_attribute_qual_variant): Use inchash.
17511 (type_hash_list): Dito.
17512 (attribute_hash_list): Dito
17513 (iterative_hstate_expr): Dito.
17514 (iterative_hash_expr): Dito.
17515 (build_range_type_1): Dito.
17516 (build_array_type_1): Dito.
17517 (build_function_type): Dito.
17518 (build_method_type_directly): Dito.
17519 (build_offset_type): Dito.
17520 (build_complex_type): Dito.
17521 (make_vector_type): Dito.
17522 * tree.h (iterative_hash_expr): Add compat wrapper.
17523 (iterative_hstate_expr): Add.
17525 2014-07-25 Andi Kleen <ak@linux.intel.com>
17527 * Makefile.in (OBJS): Add inchash.o.
17528 (PLUGIN_HEADERS): Add inchash.h.
17529 * ipa-devirt.c: Include inchash.h.
17530 * lto-streamer-out.c: Dito.
17531 * tree-ssa-dom.c: Dito.
17532 * tree-ssa-pre.c: Dito.
17533 * tree-ssa-sccvn.c: Dito.
17534 * tree-ssa-tail-merge.c: Dito.
17536 * tree.c (iterative_hash_hashval_t): Move to ...
17537 (iterative_hash_host_wide_int): Move to ...
17538 * inchash.c: Here. New file.
17539 * tree.h (iterative_hash_hashval_t): Move to ...
17540 (iterative_hash_host_wide_int): Move to ...
17541 * inchash.h: Here. New file.
17543 2014-07-25 Richard Biener <rguenther@suse.de>
17545 PR middle-end/61762
17546 PR middle-end/61894
17547 * fold-const.c (native_encode_int): Add and handle offset
17548 parameter to do partial encodings of expr.
17549 (native_encode_fixed): Likewise.
17550 (native_encode_real): Likewise.
17551 (native_encode_complex): Likewise.
17552 (native_encode_vector): Likewise.
17553 (native_encode_string): Likewise.
17554 (native_encode_expr): Likewise.
17555 * fold-const.c (native_encode_expr): Add offset parameter
17557 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17558 (fold_ctor_reference): Handle all reads from tcc_constant
17561 2014-07-25 Richard Biener <rguenther@suse.de>
17563 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17564 as possibly unused.
17566 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17568 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17570 2014-07-24 Kyle McMartin <kyle@redhat.com>
17572 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17574 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17576 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17578 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17580 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17581 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17582 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17584 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17586 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17587 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17588 aggregate types. Instead, *all* aggregate types, except for single-
17589 element or homogeneous float/vector aggregates, are quadword-aligned
17590 if required by their type alignment. Issue -Wpsabi note when a type
17591 is now treated differently than before.
17593 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17595 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17596 does not fit fully into floating-point registers, and there is still
17597 space in the register parameter area, use GPRs to pass those parts
17598 of the argument. Issue -Wpsabi note if any parameter is now treated
17599 differently than before.
17600 (rs6000_arg_partial_bytes): Update.
17602 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17604 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17606 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17608 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17609 * toplev.c (initialize_rtl): Don't use it. Move previously
17610 "language-dependent" calls to...
17611 (backend_init): ...here.
17612 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17613 Assert that RTL initialization hasn't happend yet.
17615 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17617 PR rtl-optimization/61629
17618 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17619 they have already been initialized.
17621 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17623 PR middle-end/61268
17624 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17625 DECL_INCOMING_RTL and entry_parm.
17626 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17627 * calls.c (load_register_parameters): Likewise argument values.
17628 (emit_library_call_value_1, store_one_arg): Likewise argument
17630 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17632 * explow.c (validize_mem): Modify the argument in-place.
17634 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17636 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17637 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17639 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17641 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17642 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17644 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17646 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17647 (aarch64_save_callee_saves): New parameter "skip_wb".
17648 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17650 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17652 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17654 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17656 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17658 * graphite-isl-ast-to-gimple.c:
17659 (graphite_create_new_loop): Add calling of isl_id_free to properly
17660 decrement reference counts.
17662 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17664 2014-07-24 Martin Liska <mliska@suse.cz>
17665 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17667 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17668 (rs6000_code_end): Likewise.
17670 2014-07-24 Martin Liska <mliska@suse.cz>
17672 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17673 symtab_node funtion used.
17674 (rs6000_xcoff_declare_object_name): Likewise.
17676 2014-07-24 Martin Liska <mliska@suse.cz>
17678 * cgraphunit.c (compile): Correct function used.
17680 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17682 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17685 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17688 * varasm.c (bss_initializer_p): Handle offlined ctors.
17689 (align_variable, get_variable_align): Likewise.
17690 (make_decl_one_only): Likewise.
17691 (default_binds_local_p_1): Likewise.
17692 (decl_binds_to_current_def_p): Likewise.
17693 (get_variable_section): Get constructor if it is offlined.
17694 (assemble_variable_contents): Sanity check that the caller
17695 streamed in the ctor in LTO.
17697 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17699 * graphite-isl-ast-to-gimple.c:
17700 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17701 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17702 isl_ast_op_pdiv_r to the different case.
17704 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17706 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17708 PR middle-end/61876
17709 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17710 when flag_errno_math is on.
17712 2014-07-24 Martin Liska <mliska@suse.cz>
17714 * cgraph.h (varpool_node):
17715 (availability get_availability (void)):
17716 created from cgraph_variable_initializer_availability
17717 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17718 created from: cgraph_variable_initializer_availability
17719 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17720 (void finalize_named_section_flags (void)):
17721 created from varpool_finalize_named_section_flags
17722 (bool assemble_decl (void)): created from varpool_assemble_decl
17723 (void analyze (void)): created from varpool_analyze_node
17724 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17725 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17726 (void remove_initializer (void)): created from varpool_remove_initializer
17727 (tree get_constructor (void)): created from varpool_get_constructor
17728 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17729 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17730 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17731 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17732 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17733 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17734 (static bool output_variables (void)): created from varpool_output_variables
17735 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17736 created from varpool_extra_name_alias
17737 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17738 (static void dump_varpool (FILE *f)): created from dump_varpool
17739 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17740 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17741 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17742 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17743 (void assemble_aliases (void)): created from assemble_aliases
17745 2014-07-24 Martin Liska <mliska@suse.cz>
17747 * cgraph.h (symtab_node):
17748 (void register_symbol (void)): created from symtab_register_node
17749 (void remove (void)): created from symtab_remove_node
17750 (void dump (FILE *f)): created from dump_symtab_node
17751 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17752 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17753 (struct ipa_ref *add_reference (symtab_node *referred_node,
17754 enum ipa_ref_use use_type)): created from add_reference
17755 (struct ipa_ref *add_reference (symtab_node *referred_node,
17756 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17757 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17758 gimple stmt)): created from maybe_add_reference
17759 (bool semantically_equivalent_p (symtab_node *target)): created from
17760 symtab_semantically_equivalent_p
17761 (void remove_from_same_comdat_group (void)): created from
17762 remove_from_same_comdat_group
17763 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17764 symtab_add_to_same_comdat_group
17765 (void dissolve_same_comdat_group_list (void)): created from
17766 symtab_dissolve_same_comdat_group_list
17767 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17768 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17769 created from symtab_alias_ultimate_target
17770 (inline symtab_node *next_defined_symbol (void)): created from
17771 symtab_next_defined_symbol
17772 (bool resolve_alias (symtab_node *target)): created from
17773 symtab_resolve_alias
17774 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17775 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17776 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17777 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17778 (void set_section (const char *section)): created from set_section_1
17779 (enum availability get_availability (void)): created from symtab_node_availability
17780 (void make_decl_local (void)): created from symtab_make_decl_local
17781 (bool real_symbol_p (void)): created from symtab_read_node
17782 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17783 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17784 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17785 symtab_in_same_comdat_p;
17786 (bool address_taken_from_non_vtable_p (void)): created from
17787 address_taken_from_non_vtable_p
17788 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17789 (static void dump_table (FILE *)): created from dump_symtab
17790 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17791 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17792 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17793 symtab_used_from_object_file_p
17794 (void dump_base (FILE *)): created from dump_symtab_base
17795 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17796 (void unregister (void)): created from symtab_unregister_node
17797 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17798 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17799 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17800 symtab_nonoverwritable_alias_1
17801 * cgraph.h (cgraph_node):
17802 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17803 created from cgraph_remove_node_and_inline_clones
17804 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17805 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17806 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17807 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17808 created from cgraph_function_node
17809 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17810 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17811 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17812 created from cgraph_create_clone
17813 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17814 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17815 created from cgraph_create_virtual_clone
17816 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17817 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17818 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17819 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17820 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17821 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17822 created from cgraph_function_version_info
17823 (struct cgraph_function_version_info *insert_new_function_version (void)):
17824 created from insert_new_cgraph_node_version
17825 (struct cgraph_function_version_info *function_version (void)): created from
17826 get_cgraph_node_version
17827 (void analyze (void)): created from analyze_function
17828 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17829 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17830 tree real_alias) cgraph_add_thunk
17831 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17832 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17833 created from cgraph_function_or_thunk_node
17834 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17835 created from expand_thunk
17836 (void reset (void)): created from cgraph_reset_node
17837 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17838 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17839 (void remove (void)): created from cgraph_remove_node
17840 (void dump (FILE *f)): created from dump_cgraph_node
17841 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17842 (bool get_body (void)): created from cgraph_get_body
17843 (void release_body (void)): created from cgraph_release_function_body
17844 (void unnest (void)): created from cgraph_unnest_node
17845 (void make_local (void)): created from cgraph_make_node_local
17846 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17847 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17848 gcov_type count, int freq)): created from cgraph_create_edge
17849 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17850 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17851 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17852 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17853 created from cgraph_create_edge_including_clones
17854 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17855 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17856 (void remove_callers (void)): created from cgraph_node_remove_callers
17857 (void remove_callees (void)): created from cgraph_node_remove_callees
17858 (enum availability get_availability (void)): created from cgraph_function_body_availability
17859 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17860 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17861 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17862 (void call_duplication_hooks (cgraph_node *node2)): created from
17863 cgraph_call_node_duplication_hooks
17864 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17865 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17866 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17867 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17868 (void call_function_insertion_hooks (void)):
17869 created from cgraph_call_function_insertion_hooks
17870 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17871 (bool local_p (void)): created from cgraph_local_node
17872 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17873 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17874 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17875 (inline bool only_called_directly_or_aliased_p (void)):
17876 created from cgraph_only_called_directly_or_aliased_p
17877 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17878 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17879 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17880 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17881 (bool can_remove_if_no_direct_calls_p (void)):
17882 created from cgraph_can_remove_if_no_direct_calls_p
17883 (inline bool has_gimple_body_p (void)):
17884 created from cgraph_function_with_gimple_body_p
17885 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17886 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17887 (static inline void debug_cgraph (void)): created from debug_cgraph
17888 (static void record_function_versions (tree decl1, tree decl2)):
17889 created from record_function_versions
17890 (static void delete_function_version (tree decl)):
17891 created from delete_function_version
17892 (static void add_new_function (tree fndecl, bool lowered)):
17893 created from cgraph_add_new_function
17894 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17895 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17896 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17897 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17898 (static cgraph_node *get_for_asmname (tree asmname)):
17899 created from cgraph_node_for_asm
17900 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17901 created from cgraph_same_body_alias
17902 (static bool used_from_object_file_p_worker (cgraph_node *node,
17903 void *): new function
17904 (static bool non_local_p (cgraph_node *node, void *)):
17905 created from cgraph_non_local_node_p_1
17906 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17907 created from verify_cgraph
17908 (static bool make_local (cgraph_node *node, void *)):
17909 created from cgraph_make_node_local
17910 (static cgraph_node *create_alias (tree alias, tree target)):
17911 created from cgraph_create_function_alias
17912 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17913 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17914 created from cgraph_create_edge_1
17915 * cgraph.h (varpool_node):
17916 (void remove (void)): created from varpool_remove_node
17917 (void dump (FILE *f)): created from dump_varpool_node
17919 2014-07-24 Richard Biener <rguenther@suse.de>
17922 * tree-ssa-structalias.c (create_variable_info_for_1):
17923 Use varpool_get_constructor.
17924 (create_variable_info_for): Likewise.
17926 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17928 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17929 subtract outgoing area size when restoring stack_pointer_rtx.
17931 2014-07-24 Nick Clifton <nickc@redhat.com>
17933 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17934 that operations are taking place in parallel.
17935 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17937 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17939 * omp-low.c (extract_omp_for_data): Add missing break statement.
17941 2014-07-24 Richard Biener <rguenther@suse.de>
17943 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17944 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17945 and adjust MOVE_RATIO query accordingly.
17946 (estimate_num_insns): Adjust callers.
17947 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17948 * ipa-cp.c (gather_context_independent_values,
17949 estimate_local_effects): Likewise.
17950 * ipa-split.c (consider_split): Likewise.
17952 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17954 * config/i386/driver-i386.c: Remove names of unused arguments and
17955 unnecessary unused attributes.
17956 * config/i386/host-mingw32.c: Likewise.
17957 * config/i386/i386.c: Likewise.
17958 * config/i386/winnt-stubs.c: Likewise.
17959 * config/i386/winnt.c: Likewise.
17961 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17963 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17964 (aarch64_gen_loadwb_pair): New helper function.
17965 (aarch64_expand_epilogue): Simplify code using new helper functions.
17966 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17968 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17970 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17971 (aarch64_gen_storewb_pair): New helper function.
17972 (aarch64_expand_prologue): Simplify code using new helper functions.
17973 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17975 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17977 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17978 Rename to aarch64_save_callee_saves, remove restore code.
17979 (aarch64_restore_callee_saves): New function.
17981 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17983 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17984 (aarch64_save_callee_saves): New function to handle reg save
17985 for both core and vectore regs.
17987 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17989 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17990 (aarch64_gen_store_pair): New helper function.
17991 (aarch64_save_or_restore_callee_save_registers)
17992 (aarch64_save_or_restore_fprs): Use new helper functions.
17994 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17996 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17997 (aarch64_save_or_restore_callee_save_registers)
17998 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18000 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18002 * config/aarch64/aarch64.c
18003 (aarch64_save_or_restore_callee_save_registers)
18004 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18006 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18008 * config/aarch64/aarch64.c
18009 (aarch64_save_or_restore_callee_save_registers)
18010 (aarch64_save_or_restore_fprs): Remove 'increment'.
18012 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18014 * config/aarch64/aarch64.c
18015 (aarch64_save_or_restore_callee_save_registers)
18016 (aarch64_save_or_restore_fprs): Use register offset in
18017 cfun->machine->frame.reg_offset.
18019 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18021 * config/aarch64/aarch64.c
18022 (aarch64_save_or_restore_callee_save_registers)
18023 (aarch64_save_or_restore_fprs): Remove base_rtx.
18025 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18027 * config/aarch64/aarch64.c
18028 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18029 to 'start_offset'. Remove local variable 'start_offset'.
18031 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18033 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18034 type to HOST_WIDE_INT.
18036 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18038 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18039 (aarch64_save_or_restore_fprs)
18040 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18042 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18044 * config/arm/t-rtems-eabi: Add
18045 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18046 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18047 mbig-endian/mthumb/march=armv7-r, and
18048 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18051 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18052 Chris Johns <chrisj@rtems.org>
18053 Joel Sherrill <joel.sherrill@oarcorp.com>
18055 * config.gcc: Add nios2-*-rtems*.
18056 * config/nios2/rtems.h: New file.
18057 * gcc/config/nios2/t-rtems: New file.
18059 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18062 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18063 constant numbers, not general constants.
18064 (rs6000_expand_vector_init): Ditto.
18066 2014-07-23 Nathan Sidwell <nathan@acm.org>
18068 * gcov-tool.c (gcov_list): Declare here.
18069 (set_gcov_list): Remove.
18070 (gcov_output_files): Set gcov_list directly.
18072 2014-07-23 Host Schirmeier <horst@schirmeier.com>
18074 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18076 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18078 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18079 callee-saved registers are available for padding purpose
18080 and r3 is not mandatory, then prefer use those callee-saved
18083 2014-07-23 Richard Biener <rguenther@suse.de>
18085 * params.def (PARAM_MAX_COMBINE_INSNS): New.
18086 * combine.c: Include statistics.h and params.h.
18087 (combine_instructions): Guard three and four insn combines
18088 with max-combine-insns value. Record statistics for combines
18090 * doc/invoke.texi (max-combine-insns): Document new param.
18092 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18094 * graphite-isl-ast-to-gimple.c:
18095 (translate_isl_ast_node_block): New function.
18096 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18098 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18099 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18101 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18103 * graphite-isl-ast-to-gimple.c:
18104 (get_max_schedule_dimensions): New function.
18105 (extend_schedule): Likewise.
18106 (generate_isl_schedule): Add calling of extend_schedule and
18107 get_max_schedule_dimensions.
18109 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18111 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18112 (case UNSPEC): Handle UNSPEC_RBIT.
18114 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18116 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18117 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18119 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18121 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18123 2014-07-22 Roman Gareev <gareevroman@gmail.com>
18125 * graphite-isl-ast-to-gimple.c:
18126 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18127 (ivs_params_clear):
18128 (build_iv_mapping): New function.
18129 (translate_isl_ast_node_user): Likewise.
18130 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18132 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18133 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18134 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18136 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18139 * config/arm/arm.md (setmem): New pattern.
18140 * config/arm/arm-protos.h (struct tune_params): New fields.
18141 (arm_gen_setmem): New prototype.
18142 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18143 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18144 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18145 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18146 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18147 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18148 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18149 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18150 (arm_const_inline_cost): New function.
18151 (arm_block_set_max_insns): New function.
18152 (arm_block_set_non_vect_profit_p): New function.
18153 (arm_block_set_vect_profit_p): New function.
18154 (arm_block_set_unaligned_vect): New function.
18155 (arm_block_set_aligned_vect): New function.
18156 (arm_block_set_unaligned_non_vect): New function.
18157 (arm_block_set_aligned_non_vect): New function.
18158 (arm_block_set_vect, arm_gen_setmem): New functions.
18160 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18162 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18164 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
18167 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18168 out of #ifdef __OPTIMIZE__.
18170 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18172 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18173 different trapping status if -fnon-call-exceptions is enabled.
18175 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18177 * expr.c (store_field): Handle VOIDmode for calls that return values
18178 in multiple locations.
18180 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18182 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18183 (altivec_vsldoi_<mode>): Likewise.
18185 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18187 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18188 to the number of characters in the line.
18190 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18192 * graphite-isl-ast-to-gimple.c: Add using of
18193 build_nonstandard_integer_type instead of int128_integer_type_node.
18195 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18197 * toplev.c (output_stack_usage): Adjust the location of the warning.
18199 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18201 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18202 (*membar_storeload): Disable for LEON3.
18204 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18206 PR rtl-optimization/61461
18207 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18209 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18212 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18213 Fix instruction constraint.
18214 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18216 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18218 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18220 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18222 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18223 GNU coding standards.
18224 (nds32_register_move_cost): Likewise.
18225 (nds32_memory_move_cost): Likewise.
18226 (nds32_address_cost): Likewise.
18228 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18230 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18232 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18234 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18235 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18236 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18237 (HAVE_sync_compare_and_swapqi): Define.
18238 (HAVE_sync_compare_and_swaphi): Likewise.
18239 (HAVE_sync_compare_and_swapsi): Likewise.
18241 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18243 * config/mips/p5600.md: Add missing cpu tests.
18245 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18247 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18248 (vmla_f64): Likewise.
18249 (vfms_f64): Likewise.
18250 (vmls_f64): Likewise.
18252 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18254 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18255 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18257 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18259 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18260 (vmlal_high_lane_s32): Likewise.
18261 (vmlal_high_lane_u16): Likewise.
18262 (vmlal_high_lane_u32): Likewise.
18263 (vmlsl_high_lane_s16): Likewise.
18264 (vmlsl_high_lane_s32): Likewise.
18265 (vmlsl_high_lane_u16): Likewise.
18266 (vmlsl_high_lane_u32): Likewise.
18268 2014-07-17 Terry Guo <terry.guo@arm.com>
18270 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18271 (alus_reg): Renamed to alus_sreg.
18272 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18273 from alu_reg to alu_sreg. Change type of dsp instructions from
18274 alu_reg to alu_dsp_reg.
18275 * config/arm/thumb1.md: Likewise.
18276 * config/arm/thumb2.md: Likewise.
18277 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18278 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18279 with alu_sreg and alus_sreg.
18280 * config/arm/arm1026ejs.md (alu_op): Likewise.
18281 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18282 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18283 * config/arm/fa526.md (526_alu_op): Likewise.
18284 * config/arm/fa606te.md (606te_alu_op): Likewise.
18285 * config/arm/fa626te.md (626te_alu_op): Likewise.
18286 * config/arm/fa726te.md (726te_alu_op): Likewise.
18287 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18288 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18289 alu_sreg, alu_dsp_reg and alus_sreg.
18290 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18291 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18292 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18293 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18294 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18295 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18296 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18297 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18298 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18299 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18300 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18301 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18302 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18303 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18304 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18305 alus_reg to alus_sreg.
18307 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18309 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18312 2014-07-17 Richard Biener <rguenther@suse.de>
18314 PR rtl-optimization/61801
18315 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18316 don't set reg_pending_barrier if it appears in a debug-insn.
18318 2014-07-16 DJ Delorie <dj@redhat.com>
18320 * config/rx/rx.c (rx_option_override): Fix alignment values.
18321 (rx_align_for_label): Likewise.
18323 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18326 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18327 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18328 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18330 (cris_print_index, cris_print_operand, cris_constant_index_p)
18331 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18332 (cris_address_cost): Ditto last CONSTANT_P.
18333 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18334 callers changed. Yield cris_offsettable_symbol for non-PIC
18335 constant symbolic expressions including labels. Yield cris_unspec
18337 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18338 target to pic_offset_table_rtx for calls that will likely go
18339 through PLT, const0_rtx when they can't. All callers changed.
18340 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18341 symbolic expressions to be PICified. Remove second, redundant,
18342 assert on can_create_pseudo_p returning non-zero. Use
18343 replace_equiv_address_nv, not replace_equiv_address, for final
18345 * config/cris/cris.md ("movsi"): Move variable t to pattern
18346 toplevel. Adjust assert for new cris_symbol_type member. Use
18347 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18348 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18350 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18351 ("call", "call_value"): Use second incoming operand as a marker
18352 for pic-offset-table-register being used.
18353 ("*expanded_call_non_v32", "*expanded_call_v32")
18354 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18355 second incoming operand to CALL, match cris_call_type_marker.
18356 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18357 ("*expanded_call_side"): Ditto. Fix typo in comment.
18358 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18360 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18361 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18362 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18363 users changed. Add members cris_offsettable_symbol and cris_unspec.
18364 (cris_symbol_type): Rename from cris_pic_symbol_type.
18365 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18367 * config/cris/cris-protos.h (cris_symbol_type_of,
18368 cris_expand_pic_call_address): Adjust prototypes.
18369 (cris_legitimate_constant_p): New prototype.
18371 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18372 an existing tmake_file. Don't add t-slibgcc and t-linux.
18374 2014-07-17 Jason Merrill <jason@redhat.com>
18377 * symtab.c (symtab_remove_from_same_comdat_group): Also
18378 set_comdat_group to NULL_TREE.
18379 (verify_symtab): Fix diagnostic.
18381 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18384 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18386 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18388 Support location tracking for built-in macro tokens
18389 * input.h (is_location_from_builtin_token): New function declaration.
18390 * input.c (is_location_from_builtin_token): New function definition.
18391 * toplev.c (general_init): Tell libcpp what the pre-defined
18392 spelling location for built-in tokens is.
18394 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18396 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18397 on the FUNCTION_DECL.
18399 2014-07-16 Richard Biener <rguenther@suse.de>
18402 * doc/extend.texi (always_inline): Clarify.
18404 2014-07-15 Eric Christopher <echristo@gmail.com>
18406 * doc/invoke.texi (Link Options): Document -z option.
18408 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18410 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18411 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18413 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18415 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18417 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18419 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18420 varpool_assemble_decl.
18421 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18424 2014-07-15 Michael Matz <matz@suse.de>
18426 PR rtl-optimization/61772
18427 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18429 2014-07-15 Richard Biener <rguenther@suse.de>
18431 * opts.c (default_options_table): Disable bit-ccp at -Og.
18433 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18435 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18437 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18439 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18440 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18441 call langhook for unknown declaration.
18442 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18443 * tree.h (DECL_ARGUMENTS): Update.
18444 * print-tree.c (print_node): Update.
18445 * tree-core.h (tree_decl_non_common): Remove arguments.
18446 (tree_function_decl): Add arguments.
18448 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18450 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18452 2014-07-14 Richard Biener <rguenther@suse.de>
18454 PR tree-optimization/61779
18455 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18456 simplifying a condition.
18458 2014-07-14 Richard Biener <rguenther@suse.de>
18460 * builtins.c (c_strlen): Make only_value == 2 really only
18461 affect warning generation.
18463 2014-07-14 Richard Biener <rguenther@suse.de>
18465 PR tree-optimization/61757
18466 PR tree-optimization/61783
18467 PR tree-optimization/61787
18468 * tree-ssa-dom.c (record_equality): Revert canonicalization
18469 change and add comment.
18470 (propagate_rhs_into_lhs): Revert previous fix, removing
18471 loop depth restriction again.
18473 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18475 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18476 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18477 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18478 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18479 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18480 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18481 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18483 2014-07-14 Richard Biener <rguenther@suse.de>
18485 * cgraph.h (decl_in_symtab_p): Make inline.
18487 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18489 PR middle-end/61294
18490 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18493 * config/i386/i386.c (classify_argument): Don't merge classes above
18496 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18498 * cgraph.h (symtab_node): Add nonzero_address.
18499 (decl_in_symtab_p): Break out from ...
18500 (symtab_get_node): ... here.
18501 * fold-const.c: Include cgraph.h
18502 (tree_single_nonzero_warnv_p): Use symtab to determine
18503 if symbol is non-zero.
18504 * symtab.c (symtab_node::nonzero_address): New method.
18506 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18508 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18509 forgotten in previous commit.
18511 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18513 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18515 * ipa-devirt.c: Include stor-layout.h and intl.h
18516 (odr_subtypes_equivalent_p): New function.
18517 (warn_odr): New function.
18518 (warn_type_mismatch): New function.
18519 (odr_types_equivalent_p): New function.
18520 (add_type_duplicate): Use it.
18521 * common.opt (Wodr): New flag.
18522 * doc/invoke.texi (Wodr): Document new warning.
18524 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18526 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18527 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18528 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18529 (varpool_get_constructor): Push CTORS_IN timevar.
18530 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18532 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18534 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18535 Remove VOID_FTYPE_PUSHORT.
18536 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18537 Change code to USHORT_FTYPE_VOID.
18538 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18539 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18540 (ix86_atomic_assign_expand_fenv): Update for
18541 __builtin_ia32_fnstsw changes.
18542 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18543 (fnstsw): Change operand 0 to nonimmediate operand.
18545 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18547 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18548 (varpool_get_constructor): New function.
18549 (varpool_ctor_useable_for_folding_p): Break out from ...
18550 (ctor_for_folding): ... here; use varpool_get_constructor.
18551 (varpool_assemble_decl): Likewise.
18552 * lto-streamer.h (struct output_block): Turn cgraph_node
18554 (lto_input_variable_constructor): Declare.
18555 * ipa-visibility.c (function_and_variable_visibility): Use
18556 varpool_get_constructor.
18557 * cgraph.h (varpool_get_constructor): Declare.
18558 (varpool_ctor_useable_for_folding_p): New function.
18559 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18560 parameter; return error_mark_node for non-trivial constructors.
18561 (lto_write_tree_1, DFS_write_tree): Update use of
18562 get_symbol_initial_value.
18563 (output_function): Update initialization of symbol.
18564 (output_constructor): New function.
18565 (copy_function): Rename to ..
18566 (copy_function_or_variable): ... this one; handle vars too.
18567 (lto_output): Output variable sections.
18568 * lto-streamer-in.c (input_constructor): New function.
18569 (lto_read_body): Rename from ...
18570 (lto_read_body_or_constructor): ... this one; handle vars too.
18571 (lto_input_variable_constructor): New function.
18572 * ipa-prop.c (ipa_prop_write_jump_functions,
18573 ipa_prop_write_all_agg_replacement): Update.
18574 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18575 (output_cgraph_opt_summary): Set symbol to NULL.
18577 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18579 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18580 non-polymorphic types.
18581 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18582 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18583 of types is not polymorphic.
18585 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18587 * lra-constraints.c (remove_inheritance_pseudos): Process
18588 destination pseudo too.
18590 2014-07-11 Rong Xu <xur@google.com>
18592 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18595 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18597 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18598 * config/avr/avr-devices.c (AVR_MCU): Same.
18599 (avr_mcu_types): add text start value to end of device list.
18600 * config/avr/avr-mcus.def: Add text section start for all devices.
18601 (ata5782): Add new avr5 device.
18603 * config/avr/avr-tables.opt: Regenerate.
18604 * config/avr/avr.h: Add declaration for text section start handler.
18605 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18607 (LINK_SPEC): Include text section start handler to linker spec.
18608 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18609 pass -Ttext option to linker if the text section start for the device
18611 * config/avr/t-multilib: Regenerate.
18612 * doc/avr-mmcu.texi: Regenerate.
18614 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18616 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18617 * config/rs6000/aix52.h (LINK_SPEC): Same.
18618 * config/rs6000/aix53.h (LINK_SPEC): Same.
18619 * config/rs6000/aix61.h (LINK_SPEC): Same.
18620 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18622 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18624 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18625 (graphite_verify): New function.
18626 (ivs_params_clear): New function.
18627 (gcc_expression_from_isl_ast_expr_id): New function.
18628 (gcc_expression_from_isl_expr_int): New function.
18629 (binary_op_to_tree): New function.
18630 (ternary_op_to_tree): New function.
18631 (unary_op_to_tree): New function.
18632 (nary_op_to_tree): New function.
18633 (gcc_expression_from_isl_expr_op): New function.
18634 (gcc_expression_from_isl_expression): New function.
18635 (graphite_create_new_loop): New function.
18636 (translate_isl_ast_for_loop): New function.
18637 (get_upper_bound): New function.
18638 (graphite_create_new_loop_guard): New function.
18639 (translate_isl_ast_node_for): New function.
18640 (translate_isl_ast): New function.
18641 (add_parameters_to_ivs_params): New function.
18642 (scop_to_isl_ast): New parameter ip.
18643 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18645 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18647 * config/xtensa/predicates.md (call expander): Update for
18648 DECL_SECTION_NAME being string.
18650 2014-07-11 Richard Biener <rguenther@suse.de>
18652 PR middle-end/61473
18653 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18654 can be implemented with a single load followed by a single store.
18655 (c_strlen): Only warn when only_value is not 2.
18657 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18659 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18661 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18664 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18665 (*movhi_bytes): Likewise.
18666 (*arm_movqi_insn): Likewise.
18668 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18671 * config/alpha/alpha.c: Include tree-pass.h, context.h
18672 and pass_manager.h.
18673 (pass_data_handle_trap_shadows): New pass.
18674 (pass_handle_trap_shadows::gate): New pass gate function.
18675 (make_pass_handle_trap_shadows): New function.
18676 (rest_of_handle_trap_shadows): Ditto.
18678 (alpha_align_insns_1): Rename from alpha_align_insns.
18679 (pass_data_align_insns): New pass.
18680 (pass_align_insns::gate): New pass gate function.
18681 (make_pass_aling_insns): New function.
18682 (rest_of_align_insns): Ditto.
18683 (alpha_align_insns): Ditto.
18685 (alpha_option_override): Declare handle_trap_shadows info
18686 and align_insns_info. Register handle_trap_shadows and align_insns
18688 (alpha_reorg): Do not call alpha_trap_shadows and
18689 alpha_align_insn from here.
18691 (alpha_pad_function_end): Do not skip BARRIERs.
18693 2014-07-10 Rong Xu <xur@google.com>
18695 Add gcov-tool: an offline gcda profile processing tool support.
18696 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18697 (gcov_is_error): Ditto.
18698 (gcov_read_string): Ditto.
18699 (gcov_read_sync): Ditto.
18700 * gcov-io.h: Move counter defines to gcov-counter.def.
18701 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18702 * coverage.c: Ditto.
18703 * gcov-tool.c: Offline gcda profile processing tool.
18704 (unlink_gcda_file): Remove one gcda file.
18705 (unlink_profile_dir): Remove gcda files from the profile path.
18706 (gcov_output_files): Output gcda files to an output dir.
18707 (profile_merge): Merge two profiles in directory.
18708 (print_merge_usage_message): Print merge usage.
18709 (merge_usage): Print merge usage and exit.
18710 (do_merge): Driver for profile merge sub-command.
18711 (profile_rewrite): Rewrite profile.
18712 (print_rewrite_usage_message): Print rewrite usage.
18713 (rewrite_usage): Print rewrite usage and exit.
18714 (do_rewrite): Driver for profile rewrite sub-command.
18715 (print_usage): Print gcov-info usage and exit.
18716 (print_version): Print gcov-info version.
18717 (process_args): Process arguments.
18718 (main): Main routine for gcov-tool.
18719 * Makefile.in: Build and install gcov-tool.
18720 * gcov-counter.def: New file split from gcov-io.h.
18721 * doc/gcc.texi: Include gcov-tool.texi.
18722 * doc/gcov-tool.texi: Document for gcov-tool.
18724 2014-07-10 Richard Biener <rguenther@suse.de>
18726 PR tree-optimization/61757
18727 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18728 (propagate_rhs_into_lhs): Revert part of last change.
18730 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18732 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18735 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18737 PR middle-end/53590
18738 * function.c (allocate_struct_function): Revert r188667 change.
18740 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18742 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18744 * doc/install.texi: Remove links to defunct package providers for
18747 2014-07-09 Tom de Vries <tom@codesourcery.com>
18749 * final.c (get_call_fndecl): Declare.
18750 (self_recursive_call_p): New function.
18751 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18753 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18755 * ipa-devirt.c (record_node): Walk through aliases.
18757 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18759 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18761 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18764 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18766 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18768 * ipa-visibility.c (function_and_variable_visibility): Remove
18769 temporary hack disabling local aliases on AIX.
18771 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18773 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18774 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18776 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18778 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18779 * rs6000/rs6000.c: Inline output of .set instruction.
18780 (declare_alias_data): New struct.
18781 (rs6000_declare_alias): New function.
18782 (rs6000_xcoff_declare_function_name): Use it.
18783 (rs6000_xcoff_declare_object_name): New function.
18784 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18785 (ASM_OUTPUT_DEF): Turn to empty definition.
18787 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18790 * hash-table.h: use hash_table::value_type instead of
18791 Descriptor::value_type in the return types of several methods.
18793 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18795 * tree-pass.h (pass_data): Remove has_execute member.
18796 * passes.c (execute_one_pass): Don't check pass->has_execute.
18797 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18798 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18799 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18800 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18801 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18802 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18803 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18804 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18805 gimple-low.c, gimple-ssa-isolate-paths.c,
18806 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18807 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18808 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18809 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18810 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18811 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18812 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18813 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18814 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18815 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18816 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18817 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18818 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18819 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18820 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18821 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18822 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18823 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18824 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18825 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18826 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18827 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18828 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18829 web.c: Remove initializer for pass_data::has_execute.
18831 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18833 * graphite-htab.h: Use hash_map instead of hash_table.
18834 * graphite-clast-to-gimple.c: Adjust.
18835 * passes.c: Use hash_map instead of hash_table.
18836 * sese.c: Likewise.
18837 * sese.h: Remove now unused code.
18839 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18842 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18845 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18847 PR rtl-optimization/61673
18848 * combine.c (simplify_comparison): Test just mode's sign bit
18849 in tmode rather than the sign bit and any bits above it.
18851 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18853 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18854 Add __isl_give to the declaration.
18855 (generate_isl_schedule): Likewise.
18856 (scop_to_isl_ast): Likewise.
18858 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18860 * config/arm/arm.c (cortexa5_extra_costs): New table.
18861 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18863 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18865 PR tree-optimization/61725
18866 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18867 range, use range_includes_zerop_p instead of integer_zerop on
18868 vr0->min, only use log2 of max if min is not negative.
18870 2014-07-08 Richard Biener <rguenther@suse.de>
18872 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18873 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18874 restriction on loop depth difference.
18875 (record_equality): Likewise.
18876 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18877 (loop_depth_of_name): Remove.
18878 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18879 restriction on loop depth difference.
18880 (init_copy_prop): Likewise.
18882 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18884 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18886 (walk_aliased_vdefs): Likewise.
18887 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18888 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18889 (detect_type_change_from_memory_writes): Check if entry was reached.
18891 2014-07-08 Richard Biener <rguenther@suse.de>
18893 PR tree-optimization/61681
18894 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18895 NONLOCAL inside ESCAPED.
18897 2014-07-08 Richard Biener <rguenther@suse.de>
18899 PR tree-optimization/61680
18900 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18901 Handle properly all read-write dependences with group accesses.
18903 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18905 PR tree-optimization/61576
18906 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18907 block containing reduction statement is predecessor of phi basi block.
18909 2014-07-08 Marek Polacek <polacek@redhat.com>
18912 * fold-const.c (round_up_loc): Change the parameter type.
18914 * fold-const.h (round_up_loc): Adjust declaration.
18915 * stor-layout.c (finalize_record_size): Check for too large types.
18917 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18919 * symtab.c: Include calls.h.
18920 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18922 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18924 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18925 little-endian code generation.
18926 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18927 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18928 (spe_evmergehilo): Rename to...
18929 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18930 (spe_evmergelo): Rename to...
18931 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18932 (spe_evmergelohi): Rename to...
18933 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18934 (spe_evmergehi, spe_evmergehilo): New expanders.
18935 (spe_evmergelo, spe_evmergelohi): Likewise.
18936 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18937 (*frob_tf_ti): Likewise.
18938 (*frob_<mode>_di_2): Likewise.
18939 (*frob_tf_di_8_2): Likewise.
18940 (*frob_di_<mode>): Likewise.
18941 (*frob_ti_tf): Likewise.
18942 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18943 (*frob_ti_<mode>_8_2): Likewise.
18944 (*frob_ti_tf_2): Likewise.
18945 (mov_si<mode>_e500_subreg0): Rename to...
18946 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18948 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18949 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18950 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18951 the big endianness only.
18952 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18953 (*mov_si<mode>_e500_subreg0_2): Rename to...
18954 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18955 big big endianness only.
18956 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18957 (*mov_si<mode>_e500_subreg4): Rename to...
18958 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18960 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18961 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18962 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18963 the big endianness only.
18964 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18966 (*mov_si<mode>_e500_subreg4_2): Rename to...
18967 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18969 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18970 (*mov_sitf_e500_subreg8): Rename to...
18971 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18973 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18974 (*mov_sitf_e500_subreg8_2): Rename to...
18975 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18977 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18978 (*mov_sitf_e500_subreg12): Rename to...
18979 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18981 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18982 (*mov_sitf_e500_subreg12_2): Rename to...
18983 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18985 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18987 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18989 * asan.c (instrument_strlen_call): Do not instrument first byte
18990 in strlen if already instrumented.
18992 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18994 * config/arm/arm.opt (mwords-little-endian): Delete.
18995 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18996 of TARGET_LITTLE_WORDS.
18997 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18998 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19000 * doc/invoke.texi: Remove references to -mwords-little-endian.
19002 2014-07-07 Jakub Jelinek <jakub@redhat.com>
19004 * expmed.c (struct init_expmed_rtl): Change all fields but
19005 pow2 and cint from struct rtx_def to rtx.
19006 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19007 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
19010 2014-07-06 Marek Polacek <polacek@redhat.com>
19013 * doc/invoke.texi: Document -Wsizeof-array-argument.
19015 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19017 * wide-int.h (wide_int_storage): Change declaration from struct
19020 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
19022 * cgraph.c (cgraph_create_indirect_edge): Update call of
19023 get_polymorphic_call_info.
19024 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19025 (possible_polymorphic_call_targets): Add parameter call.
19026 (decl_maybe_in_construction_p): New predicate.
19027 (get_polymorphic_call_info): Add parameter call;
19028 use decl_maybe_in_construction_p.
19029 * gimple-fold.c (fold_gimple_assign): Update use of
19030 possible_polymorphic_call_targets.
19031 (gimple_fold_call): Likewise.
19032 * ipa-prop.c: Inlcude calls.h
19033 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19034 (param_type_may_change_p): New predicate.
19035 (detect_type_change_from_memory_writes): Break out from ...
19036 (detect_type_change): ... this one; use param_type_may_change_p.
19037 (detect_type_change_ssa): Use param_type_may_change_p.
19038 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19040 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
19043 * config/arm/arm-protos.h (arm_legitimate_address_p,
19044 arm_is_constant_pool_ref): Add prototypes.
19045 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19046 (arm_is_constant_pool_ref) New function.
19047 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19048 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19049 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19050 operand. Remove pool_range and neg_pool_range attributes.
19051 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19052 pool_range and neg_pool_range attributes.
19053 * config/arm/constraints.md (Uh): New constraint.
19054 (Uq): Don't allow constant pool references.
19056 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
19058 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19059 (move_lo_quad_internal_be_<mode>): Likewise.
19060 (move_lo_quad_<mode>): Convert to define_expand.
19061 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19062 (aarch64_simd_move_hi_quad_be_<mode>): New.
19063 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19064 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19065 (aarch64_combinez_be<mode>): New.
19066 (aarch64_combine<mode>): Convert to define_expand.
19067 (aarch64_combine_internal<mode>): New.
19068 (aarch64_simd_combine<mode>): Remove bogus RTL description.
19070 2014-07-04 Tom de Vries <tom@codesourcery.com>
19072 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19073 combination of earlyclobber and read/write modifiers.
19075 2014-07-04 Tom de Vries <tom@codesourcery.com>
19077 * config/aarch64/aarch64-simd.md
19078 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19080 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
19083 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19085 2014-07-04 Jakub Jelinek <jakub@redhat.com>
19087 PR middle-end/61654
19088 * cgraphunit.c (expand_thunk): Call free_dominance_info.
19090 PR tree-optimization/61684
19091 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19092 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19094 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19095 Kito Cheng <kito@0xlab.org>
19096 Monk Chiang <sh.chiang04@gmail.com>
19098 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19099 (nds32_symbol_load_store_p): Move to ...
19100 (nds32_fp_as_gp_check_available): Move to ...
19101 * config/nds32/nds32-fp-as-gp.c: ... here.
19102 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19103 extern declaration.
19105 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19106 Kito Cheng <kito@0xlab.org>
19107 Monk Chiang <sh.chiang04@gmail.com>
19109 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19110 (nds32_expand_store_multiple): Move to ...
19111 (nds32_expand_movmemqi): Move to ...
19112 * config/nds32/nds32-memory-manipulation.c: ... here.
19114 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19115 Kito Cheng <kito@0xlab.org>
19116 Monk Chiang <sh.chiang04@gmail.com>
19118 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19119 (nds32_output_casesi_pc_relative): Move to ...
19120 (nds32_output_casesi): Move to ...
19121 (nds32_mem_format): Move to ...
19122 (nds32_output_16bit_store): Move to ...
19123 (nds32_output_16bit_load): Move to ...
19124 (nds32_output_32bit_store): Move to ...
19125 (nds32_output_32bit_load): Move to ...
19126 (nds32_output_32bit_load_s): Move to ...
19127 (nds32_output_stack_push): Move to ...
19128 (nds32_output_stack_pop): Move to ...
19129 * config/nds32/nds32-md-auxiliary.c: ... here.
19131 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19132 Ling-Hua Tseng <uranus@tinlans.org>
19134 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19135 the purpose of this file.
19137 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19138 Kito Cheng <kito@0xlab.org>
19139 Monk Chiang <sh.chiang04@gmail.com>
19141 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19142 (nds32_address_cost): Move implementation to ...
19143 * config/nds32/nds32-cost.c: ... here.
19144 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19145 (nds32_address_cost_impl): Declare.
19147 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19148 Kito Cheng <kito@0xlab.org>
19149 Monk Chiang <sh.chiang04@gmail.com>
19151 * config/nds32/nds32.c
19152 (nds32_consecutive_registers_load_store_p): Move to ...
19153 (nds32_valid_multiple_load_store): Move to ...
19154 (nds32_valid_stack_push_pop): Move to ...
19155 (nds32_can_use_bclr_p): Move to ...
19156 (nds32_can_use_bset_p): Move to ...
19157 (nds32_can_use_btgl_p): Move to ...
19158 (nds32_can_use_bitci_p): Move to ...
19159 * config/nds32/nds32-predicates.c: ... here.
19161 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19162 Kito Cheng <kito@0xlab.org>
19163 Monk Chiang <sh.chiang04@gmail.com>
19165 * config/nds32/nds32.c
19166 (nds32_expand_builtin_null_ftype_reg): Move to ...
19167 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19168 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19169 (nds32_init_builtins): Move implementation to ...
19170 (nds32_expand_builtin): Move implementation to ...
19171 * config/nds32/nds32-intrinsic.c: ... here.
19172 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19173 (nds32_expand_builtin_impl): Declare.
19175 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19176 Kito Cheng <kito@0xlab.org>
19177 Monk Chiang <sh.chiang04@gmail.com>
19179 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19180 (nds32_emit_section_tail_template): Move to ...
19181 (nds32_emit_isr_jmptbl_section): Move to ...
19182 (nds32_emit_isr_vector_section): Move to ...
19183 (nds32_emit_isr_reset_conten): Move to ...
19184 (nds32_check_isr_attrs_conflict): Move to ...
19185 (nds32_construct_isr_vectors_information): Move to ...
19186 (nds32_asm_file_start): Move implementation to ...
19187 (nds32_asm_file_end): Move implementation to ...
19188 * config/nds32/nds32-isr.c: ... here.
19189 * config/nds32/nds32-protos.h
19190 (nds32_check_isr_attrs_conflict): Declare.
19191 (nds32_construct_isr_vectors_information): Declare.
19192 (nds32_asm_file_start_for_isr): Declare.
19193 (nds32_asm_file_end_for_isr): Declare.
19195 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19196 Kito Cheng <kito@0xlab.org>
19197 Monk Chiang <sh.chiang04@gmail.com>
19199 * config.gcc (nds32*): Add new modules to extra_objs.
19200 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19201 (nds32be-*-*): Likewise.
19202 * config/nds32/nds32-cost.c: New file.
19203 * config/nds32/nds32-fp-as-gp.c: New file.
19204 * config/nds32/nds32-intrinsic.c: New file.
19205 * config/nds32/nds32-isr.c: New file.
19206 * config/nds32/nds32-md-auxiliary.c: New file.
19207 * config/nds32/nds32-memory-manipulation.c: New file.
19208 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19209 * config/nds32/nds32-predicates.c: New file.
19210 * config/nds32/t-nds32: New file.
19212 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19214 PR tree-optimization/61682
19215 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19216 using cases and when one of the operands is equal to 1.
19218 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19220 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19221 ashr<mode>3): Correct mode of operands[2].
19222 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19223 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19224 Correct mode of operands[2]. Fix split condition.
19226 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19228 * arm.md (arch): Add armv6_or_vfpv3.
19229 (arch_enabled): Add test for the above.
19230 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19232 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19234 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19236 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19237 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19238 HWI 1 and negate the unsigned value.
19239 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19240 use AND instead of shift.
19241 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19243 2014-07-03 Marek Polacek <polacek@redhat.com>
19245 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19246 (-fsanitize=float-divide-by-zero): Move to the table with
19247 -fsanitize=undefined suboptions.
19248 (-fsanitize=float-cast-overflow): Likewise.
19250 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19252 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19253 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19256 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19258 * loop-invariant.c (struct invariant): Add a new member: eqno;
19259 (find_identical_invariants): Update eqno;
19260 (create_new_invariant): Init eqno;
19261 (get_inv_cost): Compute comp_cost with eqno;
19263 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19265 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19266 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19267 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19268 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19269 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19271 2014-07-02 Christian Bruel <christian.bruel@st.com>
19275 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19276 (make_preds_opaque): Delete.
19277 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19278 (commit_mode_sets): New function.
19279 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19280 Process all modes at once.
19281 * basic-block.h (pre_edge_lcm_avs): Declare.
19282 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19283 Call clear_aux_for_edges. Fix comments.
19284 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19285 (pre_edge_rev_lcm): Idem.
19286 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19288 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19289 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19291 * config/i386/i386.c (x96_emit_mode_set): Idem.
19292 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19293 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19294 (fpscr_toggle) Disallow from delay slot.
19295 * target.def (emit_mode_set): Add prev_mode parameter.
19296 * doc/tm.texi: Regenerate.
19298 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19300 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19303 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19305 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19306 vtable_pointer_value_to_vtable): Constify.
19307 (contains_polymorphic_type_p): Declare.
19308 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19309 vtable_pointer_value_to_vtable): Constify.
19310 (contains_polymorphic_type_p): New predicate.
19311 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19313 (ipa_set_ancestor_jf): Likewise.
19314 (detect_type_change): Return false in easy cases.
19315 (compute_complex_assign_jump_func): Require type to contain
19317 (compute_known_type_jump_func): Likewise.
19319 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19321 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19323 (type_in_anonymous_namespace_p): Constify argument.
19324 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19325 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19326 (main_odr_variant): New function.
19327 (hash_type_name): Make static; update assert; do not ICE on
19329 (types_same_for_odr): Bring here from tree.c; simplify and remove
19330 old structural comparing code that doesn't work for templates.
19331 (odr_hasher::equal): Update assert.
19332 (add_type_duplicate): Return true when bases should be computed;
19333 replace incomplete loader by complete; do not output duplicated
19334 warnings; do not ICE on non-records; set odr_violated flag.
19335 (get_odr_type): Be ready to replace incomplete type by complete
19336 one; work on ODR variants instead of main variants; reorder item
19337 in array so bases have still smaller indexes.
19338 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19339 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19341 2014-07-01 Cary Coutant <ccoutant@google.com>
19343 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19345 (resolve_addr_in_expr): When replacing the rtx in a location list
19346 entry, get a new address table entry.
19347 (dwarf2out_finish): Call index_location_lists even if there are no
19348 addr_index_table entries yet.
19350 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19352 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19353 change for not being obvious.
19355 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19357 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19360 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19362 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19363 (vcagt_f64): Likewise.
19364 (vcale_f64): Likewise.
19365 (vcaled_f64): Likewise.
19366 (vcales_f32): Likewise.
19367 (vcalt_f64): Likewise.
19368 (vcaltd_f64): Likewise.
19369 (vcalts_f32): Likewise.
19371 2014-07-01 Marek Polacek <polacek@redhat.com>
19373 * doc/invoke.texi: Document -Wint-conversion.
19375 2014-07-01 Marek Polacek <polacek@redhat.com>
19378 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19380 2014-07-01 Martin Liska <mliska@suse.cz>
19382 IPA REF alias refactoring
19383 * cgraph.h (iterate_direct_aliases): New function.
19384 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19385 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19386 FOR_EACH_ALIAS added.
19387 (cgraph_for_node_and_aliases): Likewise.
19388 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19389 * ipa-inline.c (reset_edge_caches): Likewise.
19390 (update_caller_keys): Likewise.
19391 * trans-mem.c (ipa_tm_execute): Likewise.
19392 *varpool.c (varpool_analyze_node): Likewise.
19393 (varpool_for_node_and_aliases): Likewise.
19394 * ipa-ref.h (first_alias): New function.
19395 (last_alias): Likewise.
19396 (has_aliases_p): Likewise.
19397 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19398 is sensitive to IPA_REF_ALIASes.
19399 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19400 are put at the beginning of the list.
19401 (symtab_node::iterate_direct_aliases): New function.
19403 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19406 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19408 (write_ts_type_common_tree_pointers): Do not stream fields not set
19409 for incomplete types; do not stream duplicated fields for variants;
19410 sanity check that variant and type match.
19411 (write_ts_type_non_common_tree_pointers): Likewise.
19412 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19413 TYPE_SIZE whether type is complete.
19414 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19415 write_ts_type_common_tree_pointers
19416 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19418 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19420 * var-tracking.c (add_stores): Return instead of asserting if old
19421 and new values for conditional store are the same.
19423 2014-06-30 Richard Henderson <rth@redhat.com>
19427 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19428 the cfg if there were any changes.
19429 * passes.def: Revert move of peephole2 after reorder_blocks;
19430 move duplicate_computed_gotos before peephole2.
19432 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19434 * except.c (emit_note_eh_region_end): New helper function.
19435 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19436 emit EH_REGION_END note.
19437 * jump.c (cleanup_barriers): Do not split a call and its
19438 corresponding CALL_ARG_LOCATION note.
19440 2014-06-30 Jeff Law <law@redhat.com>
19442 PR tree-optimization/61607
19443 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19444 deeper into the SSA_NAME_VALUE chain.
19446 2014-06-30 Marek Polacek <polacek@redhat.com>
19448 * convert.c (convert_to_integer): Don't instrument conversions if the
19449 function has no_sanitize_undefined attribute.
19450 * ubsan.c: Don't run the ubsan pass if the function has
19451 no_sanitize_undefined attribute.
19453 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19455 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19456 -fsanitize=undefined suboptions.
19458 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19460 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19461 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19462 against bigendian and adjust indices.
19464 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19466 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19468 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19471 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19472 Add alternative; make early clobber. Adjust both split patterns
19473 to use operand 0 as the working register.
19475 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19477 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19478 as ira_object_id_map might be NULL, or 1.
19480 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19482 * loop-invariant.c (get_inv_cost): Handle register class.
19483 (gain_for_invariant): Check the register pressure of the inv
19484 and its overlapped register class, other than all.
19486 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19488 * doc/invoke.texi (Optimize Options): Fix descriptions of
19489 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19491 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19493 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19496 2014-06-29 Tobias Grosser <tobias@grosser.es>
19499 * graphite-isl-ast-to-gimple.c: Add missing guards.
19501 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19503 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19504 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19505 * flag-types.h: Add new enum fgraphite_generator.
19506 * graphite-isl-ast-to-gimple.c: New.
19507 * graphite-isl-ast-to-gimple.h: New.
19508 * graphite.c (graphite_transform_loops): Add choice of Graphite
19509 code generator, which depends on flag_graphite_code_gen.
19511 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19513 * graphite-dependences.c (subtract_commutative_associative_deps):
19514 Add NULL checking of the following variables: must_raw_no_source,
19515 may_raw_no_source, must_war_no_source, may_war_no_source,
19516 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19517 must_war, may_war, must_waw, may_waw.
19519 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19521 * graphite-clast-to-gimple.c: gloog is renamed to
19522 graphite_regenerate_ast_cloog. gloog_error is renamed to
19523 graphite_regenerate_error.
19524 * graphite-clast-to-gimple.h: The definition of the struct
19525 bb_pbb_def is moved to graphite-htab.h.
19526 Add inclusion of the hash-table.h.
19527 * graphite-htab.h: The declaration of the function gloog is moved
19528 to graphite-clast-to-gimple.h and renamed to
19529 graphite_regenerate_ast_cloog.
19530 * graphite.c (graphite_transform_loops): gloog is renamed
19531 to graphite_regenerate_ast_cloog.
19533 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19535 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19537 (write_ts_type_common_tree_pointers): Do not stream fields not set
19538 for incomplete types; do not stream duplicated fields for variants;
19539 sanity check that variant and type match.
19540 (write_ts_type_non_common_tree_pointers): Likewise.
19541 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19542 TYPE_SIZE whether type is complete.
19543 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19544 write_ts_type_common_tree_pointers
19545 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19547 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19549 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19551 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19553 * tree-inline.c (remap_type_1): Do not duplicate fields
19554 that are shared in between type and its main variant.
19556 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19558 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19560 (ipa_set_ancestor_jf) Likewise.
19561 (check_stmt_for_type_change): Check that we work on main variant.
19562 (detect_type_change): Look into main variant.
19563 (compute_known_type_jump_func): Check that main variant has BINFO.
19565 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19567 * ipa-devirt.c (set_type_binfo): New function.
19568 (add_type_duplicate): Use it.
19569 (get_odr_type): Sanity check that binfos points to main variants.
19570 (get_class_context): Be sure the context's outer_type is main variant.
19571 (contains_type_p): Walk main variant.
19572 (get_polymorphic_call_info_for_decl): Set outer_type to be
19574 (get_polymorphic_call_info): Likewise.
19575 (possible_polymorphic_call_targets): Sanity check that we operate
19578 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19580 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19582 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19584 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19585 accidental change due to wide-int branch merge.
19587 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19589 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19590 compressed debug support.
19591 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19592 * configure: Regenerate.
19593 * config.in: Regenerate.
19594 * common.opt (compressed_debug_sections): New enum.
19595 (gz, gz=): New options.
19596 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19597 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19598 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19599 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19600 LINK_COMPRESS_DEBUG_SPEC.
19601 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19602 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19603 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19604 (Debugging Options): Document -gz[=type].
19606 2014-06-27 Martin Jambor <mjambor@suse.cz>
19609 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19610 args_to_skip, use those from node instead. Copy args_to_skip and
19611 combined_args_to_skip from node to the new thunk.
19612 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19613 (cgraph_create_virtual_clone): Moved computation of
19614 combined_args_to_skip...
19615 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19617 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19619 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19620 redundant diagnostic machinary.
19622 2014-06-27 Richard Biener <rguenther@suse.de>
19624 * tree-ssa-math-opts.c (bswap_replace): Fix
19625 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19627 2014-06-27 Martin Liska <mliska@suse.cz>
19629 * gimple.h (gimple_location_safe): New function introduced.
19630 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19631 of gimple_location_safe replaces gimple_location.
19632 (gimple_fold_call): Likewise.
19633 * ipa-devirt.c (ipa_devirt): Likewise.
19634 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19635 * ipa.c (walk_polymorphic_call_targets): Likewise.
19636 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19638 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19640 PR tree-optimization/57233
19641 PR tree-optimization/61299
19642 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19644 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19645 would be lowered to scalar shifts, check if corresponding
19646 shifts and vector BIT_IOR_EXPR are supported and don't lower
19647 or lower just to narrower vector type in that case.
19648 * expmed.c (expand_shift_1): Fix up handling of vector
19649 shifts and rotates.
19651 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19654 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19656 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19658 * doc/invoke.texi (-fsemantic-interposition): Document.
19659 * common.opt (fsemantic-interposition): New flag.
19660 * varasm.c (decl_replaceable_p): Use it.
19662 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19665 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19666 extraction other than index 3.
19668 2014-06-26 Teresa Johnson <tejohnson@google.com>
19670 * doc/invoke.texi: Fix typo.
19671 * dumpfile.c: Add support for documented -fdump-* options
19672 optimized/missed/note/optall.
19674 2014-06-26 Martin Jambor <mjambor@suse.cz>
19676 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19677 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19678 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19679 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19680 * opts.c (default_options_optimization): Set
19681 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19682 * doc/invoke.texi (allow-load-data-races)
19683 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19684 (allow-store-data-races): Document the new default.
19686 2014-06-26 Martin Jambor <mjambor@suse.cz>
19688 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19689 renamed to ipa_impossible_devirt_target. Fix typo.
19690 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19691 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19692 ipa_impossible_devirt_target.
19694 2014-06-26 Richard Biener <rguenther@suse.de>
19696 PR tree-optimization/61607
19697 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19698 explaining why we restrict copies on loop depth.
19699 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19701 (record_equivalences_from_phis): Instead add it here.
19703 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19705 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19706 (LTO_WRAPPER_OBJS): New variable.
19707 (lto-wrapper$(exeext)): Use it.
19708 * collect2.c: Include "collect-utils.h".
19709 (verbose, debug): Remove variables.
19710 (at_file_supplied): No longer static.
19711 (tool_name): New variable.
19712 (do_wait, fork_execute, maybe_unlink): Don't declare.
19713 (tool_cleanup): No longer static.
19714 (notice): Remove function.
19715 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19716 fork_execute calls.
19717 (collect_wait, do_wait, collect_execute): Remove functions.
19718 (maybe_unlink): No longer static.
19719 * collect2.h (verbose, debug): Don't declare.
19720 (at_file_supplied): Declare.
19721 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19723 (collect_execute): Replace with implementation from collect2, plus a
19724 new arg use_atfile. All callers changed.
19725 (collect_wait): Replace with implementation from collect2.
19726 (maybe_unlink_file): Remove function.
19727 (fork_execute): Replace with implementation from collect2, plus a
19728 new arg use_atfile. All callers changed.
19729 (do_wait): Add call to utils_cleanup to the error path.
19730 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19731 (tool_cleanup): Adjust declarations.
19732 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19733 * tlink.c: Include "collect-utils.h".
19734 (tlink_execute): New arg use_atfile. All callers changed.
19735 (tlink_init, tlink_execute): Remove declarations.
19737 * collect-utils.c (save_temps): New variable.
19738 (do_wait): Use it instead of debug. Use fatal_error.
19739 * collect-utils.h (save_temps): Declare.
19740 * collect2.c (verbose): Rename from vflag. All uses changed.
19741 (tool_cleanup): New function, copied from collect_atexit.
19742 (collect_atexit, handler): Just call it.
19743 * collect2.h (verbose): Declaration renamed from vflag.
19744 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19747 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19748 (lto-wrapper$(exeext)): Link with collect-utils.o.
19749 * collect-utils.c: New file.
19750 * collect-utils.h: New file.
19751 * lto-wrapper.c: Include "collect-utils.h".
19752 (args_name): Delete variable.
19753 (tool_name): New variable.
19754 (tool_cleanup): New function.
19755 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19756 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19757 (fork_execute): Remove functions.
19759 2014-06-26 Nick Clifton <nickc@redhat.com>
19761 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19763 * doc/extend.texi (Function Attributes): Fix typo in description
19764 of RX vector attribute.
19766 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19768 * config.gcc (supported_defaults): Error when passing either
19769 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19771 2014-06-26 Richard Biener <rguenther@suse.de>
19773 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19774 propagating volatile pointers.
19776 2014-06-26 Richard Biener <rguenther@suse.de>
19778 PR tree-optimization/61607
19779 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19780 loop if we redirected its latch edge.
19781 (thread_block_1): Do not cancel loops prematurely.
19783 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19785 * toplev.c (backend_init_target): Move init_emit_regs and
19787 (backend_init) ... here; skip ira_init_once and backend_init_target.
19788 (target_reinit) ... and here; clear
19789 this_target_rtl->lang_dependent_initialized.
19790 (lang_dependent_init_target): Clear
19791 this_target_rtl->lang_dependent_initialized;
19792 break out rtl initialization to ...
19793 (initialize_rtl): ... here; call also backend_init_target
19795 * toplev.h (initialize_rtl): New function.
19796 * function.c: Include toplev.h
19797 (init_function_start): Call initialize_rtl.
19798 * rtl.h (target_rtl): Add target_specific_initialized,
19799 lang_dependent_initialized.
19801 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19802 Jakub Jelinek <jakub@redhat.com>
19804 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19806 2014-06-25 Tom de Vries <tom@codesourcery.com>
19808 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19810 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19812 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19813 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19814 Issue a strict overflow warning if appropriate.
19816 2014-06-25 Martin Liska <mliska@suse.cz>
19818 IPA REF refactoring
19819 * Makefile.in: Removed header file (ipa-ref-inline.h).
19820 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19822 (cgraph_speculative_call_info): Likewise.
19823 (cgraph_for_node_thunks_and_aliases): Likewise.
19824 (cgraph_for_node_and_aliases): Likewise.
19825 (verify_cgraph_node): Likewise.
19826 * cgraph.h: Batch of IPA REF functions become member functions of
19827 symtab_node: add_reference, maybe_add_reference, clone_references,
19828 clone_referring, clone_reference, find_reference,
19829 remove_stmt_references, remove_all_references,
19830 remove_all_referring, dump_references, dump_referring,
19831 has_alias_p, iterate_reference, iterate_referring.
19832 * cgraphbuild.c (record_reference): New IPA REF function used.
19833 (record_type_list): Likewise.
19834 (record_eh_tables): Likewise.
19835 (mark_address): Likewise.
19836 (mark_load): Likewise.
19837 (mark_store): Likewise.
19838 (pass_build_cgraph_edges): Likewise.
19839 (rebuild_cgraph_edge): Likewise.
19840 (cgraph_rebuild_references): Likewise.
19841 (pass_remove_cgraph_callee_edges): Likewise.
19842 * cgraphclones.c (cgraph_clone_node): Likewise.
19843 (cgraph_create_virtual_clone): Likewise.
19844 (cgraph_materialize_clone): Likewise.
19845 (cgraph_materialize_all_clones): Likewise.
19846 * cgraphunit.c (cgraph_reset_node): Likewise.
19847 (cgraph_reset_node): Likewise.
19848 (analyze_function): Likewise.
19849 (assemble_thunks_and_aliases): Likewise.
19850 (expand_function): Likewise.
19851 * ipa-comdats.c (propagate_comdat_group): Likewise.
19852 (enqueue_references): Likewise.
19853 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19854 (create_specialized_node): Likewise.
19855 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19856 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19857 * ipa-inline.c (reset_edge_caches): Likewise.
19858 (update_caller_keys): Likewise.
19859 (execute): Likewise.
19860 * ipa-prop.c (remove_described_reference): Likewise.
19861 (propagate_controlled_uses): Likewise.
19862 (ipa_edge_duplication_hook): Likewise.
19863 (ipa_modify_call_arguments): Likewise.
19864 * ipa-pure-const.c (propagate_pure_const): Likewise.
19865 * ipa-ref-inline.h: Header file removed, functions moved
19866 to symtab_node class.
19867 * ipa-ref.c (remove_reference): New class member function.
19868 (cannot_lead_to_return): New class member function.
19869 (referring_ref_list): Likewise.
19870 (referred_ref_list): Likewise.
19871 Rest of functions moved to symtab_node class.
19872 * ipa-ref.h: New member functions remove_reference,
19873 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19875 ipa_ref_list class has new member functions: first_reference,
19876 first_referring, clear, nreferences.
19877 * ipa-reference.c (analyze_function): New IPA REF function used.
19878 (write_node_summary_p): Likewise.
19879 (ipa_reference_write_optimization_summary): Likewise.
19880 * ipa-split.c (split_function): Likewise.
19881 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19882 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19883 (function_and_variable_visibility): Likewise.
19884 * ipa.c (has_addr_references_p): Likewise.
19885 (process_references): Argument type changed.
19886 (symtab_remove_unreachable_nodes): New IPA REF function used.
19887 (process_references): Likewise.
19888 (set_writeonly_bit): Likewise.
19889 * lto-cgraph.c: Implementation of new symtab_node member functions
19890 that uses new IPA REF functions.
19891 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19893 * lto-streamer-out.c (output_symbol_p): Likewise.
19894 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19896 * symtab.c: Implementation of new IPA REF API.
19897 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19898 (ipa_tm_create_version): Likewise.
19899 (ipa_tm_execute): Likewise.
19900 * tree-emutls.c (gen_emutls_addr): Likewise.
19901 * tree-inline.c (copy_bb): Likewise.
19902 (delete_unreachable_blocks_update_callgraph): Likewise.
19903 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19904 (varpool_for_node_and_aliases): Likewise.
19906 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19908 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19910 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19913 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19914 tree_node * instead of tree_node *.
19916 (print_fold_checksum): Likewise.
19917 (fold_check_failed): Likewise.
19918 (debug_fold_checksum): Likewise.
19919 (fold_build1_stat_loc): Likewise.
19920 (fold_build2_stat_loc): Likewise.
19921 (fold_build3_stat_loc): Likewise.
19922 (fold_build_call_array_loc): Likewise.
19924 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19926 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19927 implementation with call to...
19928 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19930 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19933 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19935 PR tree-optimization/57742
19936 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19937 after replacing the statement.
19939 2014-06-25 Nick Clifton <nickc@redhat.com>
19941 * config/v850/v850.c (GHS_default_section_names): Change to const
19943 (GHS_current_section_names): Likewise.
19944 (v850_insert_attributes): Do not build strings, just assign the
19945 names directly. Change the type of 'chosen_section' to const
19947 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19948 directly to the array entry.
19949 * config/v850/v850.h (GHS_default_section_names): Change to const
19951 (GHS_current_section_names): Likewise.
19953 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19955 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19956 (LANG_HOOKS_DECLS): Add it.
19957 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19959 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19960 * langhooks.h (struct lang_hooks_for_decls): Add
19961 omp_clause_linear_ctor hook.
19962 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19963 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19964 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19965 combined simd loop use omp_clause_linear_ctor hook.
19967 2014-06-24 Cong Hou <congh@google.com>
19969 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19970 pattern recognition.
19971 (type_conversion_p): PROMOTION is true if it's a type promotion
19972 conversion, and false otherwise. Return true if the given expression
19973 is a type conversion one.
19974 * tree-vectorizer.h: Adjust the number of patterns.
19975 * tree.def: Add SAD_EXPR.
19976 * optabs.def: Add sad_optab.
19977 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19978 * expr.c (expand_expr_real_2): Likewise.
19979 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19980 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19981 * optabs.c (optab_for_tree_code): Likewise.
19982 * tree-cfg.c (estimate_operator_cost): Likewise.
19983 * tree-ssa-operands.c (get_expr_operands): Likewise.
19984 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19985 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19986 * doc/generic.texi: Add document for SAD_EXPR.
19987 * doc/md.texi: Add document for ssad and usad.
19989 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19991 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19992 qualification in cast.
19994 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19996 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19997 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19998 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19999 (tree_function_decl): ... here.
20000 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20001 streaming of vindex to ...
20002 (write_ts_function_decl_tree_pointers): ... here.
20003 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20004 Do not stream DECL_VINDEX.
20005 (lto_input_ts_function_decl_tree_pointers): Stream it here.
20007 2014-06-24 Catherine Moore <clm@codesourcery.com>
20008 Sandra Loosemore <sandra@codesourcery.com>
20010 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20011 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20012 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20014 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20016 * doc/invoke.texi (Warning Options): Remove duplicated
20017 -Wmaybe-uninitialized.
20019 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20021 PR tree-optimization/57742
20022 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20023 (handle_builtin_malloc, handle_builtin_memset): New functions.
20024 (strlen_optimize_stmt): Call them.
20025 * passes.def: Move strlen after loop+dom but before vrp.
20027 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20030 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20031 model family 6 CPU with has_longmode never use a CPU without
20034 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
20037 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20040 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20042 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20043 * dominance.c (iterate_fix_dominators): Use hash_map instead of
20045 * hash-map.h: New file.
20046 * ipa-comdats.c: Use hash_map instead of pointer_map.
20048 * lto-section-out.c: Adjust.
20049 * lto-streamer.h: Replace pointer_map with hash_map.
20050 * symtab.c (verify_symtab): Likewise.
20051 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20052 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20053 * tree-streamer.h: Likewise.
20054 * tree-streamer.c: Adjust.
20055 * pointer-set.h: Remove pointer_map.
20057 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20059 * hash-table.h: Add a template arg to choose between storing values
20060 and storing pointers to values, and then provide partial
20061 specializations for both.
20062 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20063 should store, not the type values should point to.
20064 * tree-into-ssa.c (var_info_hasher): Likewise.
20065 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20066 * tree-complex.c: Adjust.
20067 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20068 table instead of int_tree_map *.
20069 * tree-parloops.c: Adjust.
20070 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20071 type is being stored.
20072 * tree-vectorizer.c: Adjust.
20074 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20076 * hash-table.h: Remove a layer of indirection from hash_table so that
20077 it contains the hash table's data instead of a pointer to the data.
20078 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20079 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20080 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20081 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20082 fold-const.c, gcse.c, ggc-common.c,
20083 gimple-ssa-strength-reduction.c, gimplify.c,
20084 graphite-clast-to-gimple.c, graphite-dependences.c,
20085 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20086 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20087 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20088 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20089 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20090 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20091 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20092 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20093 tree-ssa-live.c, tree-ssa-loop-im.c,
20094 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20095 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20096 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20097 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20098 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20099 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20100 vtable-verify.c, vtable-verify.h: Adjust.
20102 2014-06-24 Richard Biener <rguenther@suse.de>
20104 PR tree-optimization/61572
20105 * tree-ssa-sink.c (statement_sink_location): Do not sink
20106 loads from hard registers.
20108 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20110 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20111 not mentioned in clauses use private clause if the iterator is
20112 declared in #pragma omp for simd, and when adding lastprivate
20113 instead, add it to the outer #pragma omp for too. Diagnose
20114 if the variable is private in outer context. For simd collapse > 1
20115 loops, replace all iterators with temporaries.
20116 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20117 same even in collapse > 1 loops.
20119 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20120 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20122 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20123 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20125 (gimplify_adjust_omp_clauses): Likewise.
20126 * omp-low.c (lower_rec_simd_input_clauses,
20127 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20128 safelen the same as safelen(1).
20129 * tree-nested.c (convert_nonlocal_omp_clauses,
20130 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
20131 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20132 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20133 Fixup handling of GIMPLE_OMP_TARGET.
20134 (convert_tramp_reference_stmt, convert_gimple_call): Handle
20137 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
20139 PR tree-optimization/61554
20140 * tree-ssa-propagate.c: Include "bitmap.h".
20141 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20142 properly update constructor/destructor.
20143 (substitute_and_fold_dom_walker::before_dom_children):
20144 Remove call to gimple_purge_dead_eh_edges, add bb->index to
20145 need_eh_cleaup instead.
20146 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20149 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20151 * varpool.c (dump_varpool_node): Dump used_by_single_function.
20152 * tree-pass.h (make_pass_ipa_single_use): New pass.
20153 * cgraph.h (used_by_single_function): New flag.
20154 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20156 * passes.def (pass_ipa_single_use): Scedule.
20157 * ipa.c (BOTTOM): New macro.
20158 (meet): New function
20159 (propagate_single_user): New function.
20160 (ipa_single_use): New function.
20161 (pass_data_ipa_single_use): New pass.
20162 (pass_ipa_single_use): New pass.
20163 (pass_ipa_single_use::gate): New gate.
20164 (make_pass_ipa_single_use): New function.
20166 2014-06-23 Kai Tietz <ktietz@redhat.com>
20169 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20170 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20172 2014-06-23 Richard Biener <rguenther@suse.de>
20174 * tree-ssa-loop.c (gate_loop): New function.
20175 (pass_tree_loop::gate): Call it.
20176 (pass_data_tree_no_loop, pass_tree_no_loop,
20177 make_pass_tree_no_loop): New.
20178 * tree-vectorizer.c: Include tree-scalar-evolution.c
20179 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20181 (pass_slp_vectorize::clone): New method.
20182 * timevar.def (TV_TREE_NOLOOP): New.
20183 * tree-pass.h (make_pass_tree_no_loop): Declare.
20184 * passes.def (pass_tree_no_loop): New pass group with
20187 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20190 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20191 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20193 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20195 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20196 "yes" where needed.
20198 2014-06-23 Alan Modra <amodra@gmail.com>
20201 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20202 to zero on debug statements.
20204 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20207 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20208 Ignore third operand if present by marking qualifier_internal.
20210 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20212 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20214 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20215 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20216 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20217 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20218 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20219 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20220 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20221 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20222 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20223 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20224 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20225 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20226 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20227 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20228 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20229 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20230 logic in GCC vector extensions
20232 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20233 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20234 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20235 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20236 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20237 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20238 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20239 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20240 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20241 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20243 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20245 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20248 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20249 (vget_low_s64): Use __GET_LOW macro.
20250 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20251 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20252 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20253 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20254 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20256 (vcombine_s64): Use GCC vector extensions; remove cast.
20257 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20258 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20259 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20260 Fix type signature; remove cast.
20262 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20265 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20267 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20269 (BUILTIN_VD1): New.
20270 (BUILTIN_VD_RE): Remove.
20271 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20272 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20273 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20274 variant but not df.
20275 (vreinterpretv1df*, vreinterpret*v1df): New.
20276 (vreinterpretdf*, vreinterpret*df): Remove.
20277 * config/aarch64/aarch64-simd.md (aarch64_create,
20278 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20279 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20281 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20282 (vcreate_f64): Remove cast, use v1df builtin.
20283 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20284 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20285 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20286 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20287 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20288 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20289 add range check using __builtin_aarch64_im_lane_boundsi.
20290 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20291 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20292 type signature, use gcc vector extensions.
20293 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20294 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20295 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20296 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20297 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20298 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20299 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20300 vreinterpret_u64_f64): Use v1df builtin not df.
20302 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20304 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20307 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20309 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20312 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20314 * loop-invariant.c (pre_check_invariant_p): New function.
20315 (find_invariant_insn): Call pre_check_invariant_p.
20317 2014-06-22 Richard Henderson <rth@redhat.com>
20320 * compare-elim.c (struct comparison): Add eh_note.
20321 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20322 a redundant comparison in a different EH region. Purge EH edges if
20325 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20327 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20328 (var_shift): Use it.
20329 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20330 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20331 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20332 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20333 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20334 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20335 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20336 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20337 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20338 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20339 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20340 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20341 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20342 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20343 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20344 *rotldi3_internal15be): Use the new attribute. Merge register and
20345 integer alternatives.
20347 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20349 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20350 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20351 split, *ashrdi3_internal3 and split): Delete, merge into...
20352 (ashr<mode>3): New expander.
20353 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20354 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20356 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20358 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20359 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20360 *rotldi3_internal3 and split): Delete, merge into...
20361 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20362 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20363 Use "rotlw" extended mnemonic.
20365 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20367 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20368 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20369 and split, *ashldi3_internal3 and split): Delete, merge into...
20370 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20371 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20373 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20375 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20376 (lshrsi3, two anonymous define_insns and define_splits,
20377 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20378 *lshrdi3_internal3 and split): Delete, merge into...
20379 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20380 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20382 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20384 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20385 Remove "O" alternative.
20387 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20389 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20390 (mips_move_from_gpr_cost): Likewise.
20391 (mips_register_move_cost): Update accordingly.
20392 (mips_secondary_reload_class): Remove name of in_p.
20394 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20397 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20398 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20400 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20402 * config/nios2/nios2.c: Include "builtins.h".
20404 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20406 * cgraph.h (tls_model_names): New variable.
20407 * print-tree.c (print_node): Simplify.
20408 * varpool.c (tls_model_names): New variable.
20409 (dump_varpool_node): Output tls model.
20411 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20413 * ipa-visibility.c (function_and_variable_visibility): Disable
20414 temporarily local aliases for some targets.
20416 2014-06-20 Marek Polacek <polacek@redhat.com>
20418 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20419 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20420 into SANITIZE_UNDEFINED.
20421 * doc/invoke.texi: Describe -fsanitize=bounds.
20422 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20423 functions created in the FEs.
20424 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20425 (expand_UBSAN_BOUNDS): New function.
20426 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20427 * internal-fn.h: Don't define internal functions here.
20428 * opts.c (common_handle_option): Add -fsanitize=bounds.
20429 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20430 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20431 * tree-core.h: Define internal functions here.
20432 (struct tree_base): Add ifn field.
20433 * tree-pretty-print.c: Include "internal-fn.h".
20434 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20435 * tree.c (get_callee_fndecl): Likewise.
20436 (build_call_expr_internal_loc): New function.
20437 * tree.def (CALL_EXPR): Update description.
20438 * tree.h (CALL_EXPR_IFN): Define.
20439 (build_call_expr_internal_loc): Declare.
20440 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20442 (ubsan_type_descriptor): Change bool parameter to enum
20443 ubsan_print_style. Adjust the code. Add handling of
20445 (ubsan_expand_bounds_ifn): New function.
20446 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20447 (ubsan_build_overflow_builtin): Likewise.
20448 (instrument_bool_enum_load): Likewise.
20449 (ubsan_instrument_float_cast): Likewise.
20450 * ubsan.h (enum ubsan_print_style): New enum.
20451 (ubsan_expand_bounds_ifn): Declare.
20452 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20454 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20456 * config/rs6000/rs6000.md: Append `DONE' to preparation
20457 statements of `bswap' pattern splitters.
20459 2014-06-20 Tom de Vries <tom@codesourcery.com>
20461 * target.def (call_fusage_contains_non_callee_clobbers): Update
20463 * doc/tm.texi: Regenerate.
20465 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20466 Max Ostapenko <m.ostapenko@partner.samsung.com>
20469 * asan.c (instrument_strlen_call): Fixed instrumentation of
20472 2014-06-20 Martin Jambor <mjambor@suse.cz>
20475 * ipa-prop.c (impossible_devirt_target): New function.
20476 (try_make_edge_direct_virtual_call): Use it, also instead of
20479 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20480 Max Ostapenko <m.ostapenko@partner.samsung.com>
20483 * asan.c (build_check_stmt): Add condition.
20485 2014-06-20 Martin Jambor <mjambor@suse.cz>
20488 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20491 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20493 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20495 (VCONQ): Make comment more helpful.
20497 * config/aarch64/aarch64-simd.md
20498 (aarch64_sqdmulh_lane<mode>):
20499 Use VCOND for operands 2. Update lane checking and flipping logic.
20500 (aarch64_sqrdmulh_lane<mode>): Likewise.
20501 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20502 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20503 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20504 attribute of operand 3 to VCOND.
20505 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20506 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20507 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20508 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20509 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20510 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20512 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20513 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20514 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20515 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20516 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20517 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20518 operand to VCOND. Update lane flipping and bounds checking logic.
20519 (aarch64_sqdmlal2_lane<mode>): Likewise.
20520 (aarch64_sqdmlsl_lane<mode>): Likewise.
20521 (aarch64_sqdmull_lane<mode>): Likewise.
20522 (aarch64_sqdmull2_lane<mode>): Likewise.
20523 (aarch64_sqdmlal_laneq<mode>):
20524 Replace VCON usage with VCONQ.
20525 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20526 (aarch64_sqdmlal2_laneq<mode>): Emit
20527 aarch64_sqdmlal2_laneq<mode>_internal insn.
20528 Replace VCON with VCONQ.
20529 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20530 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20531 (aarch64_sqdmull_laneq<mode>): Emit
20532 aarch64_sqdmull_laneq<mode>_internal insn.
20533 Replace VCON with VCONQ.
20534 (aarch64_sqdmull2_laneq<mode>): Emit
20535 aarch64_sqdmull2_laneq<mode>_internal insn.
20536 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20537 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20538 of 3rd argument to int16x4_t.
20539 (vqdmlalh_lane_s16): Likewise.
20540 (vqdmlslh_lane_s16): Likewise.
20541 (vqdmull_high_lane_s16): Likewise.
20542 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20543 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20544 (vqdmlsl_lane_s16): Likewise.
20545 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20546 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20547 (vqdmlals_lane_s32): Likewise.
20548 (vqdmlsls_lane_s32): Likewise.
20549 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20550 (vqdmulls_lane_s32): Likewise.
20551 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20552 (vqdmlsl_lane_s32): Likewise.
20553 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20554 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20555 (vqrdmulhh_lane_s16): Likewise.
20556 (vqdmlsl_high_lane_s16): Likewise.
20557 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20558 (vqdmlsl_high_lane_s32): Likewise.
20559 (vqrdmulhs_lane_s32): Likewise.
20561 2014-06-20 Tom de Vries <tom@codesourcery.com>
20563 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20564 get_call_reg_set_usage.
20566 2014-06-20 Tom de Vries <tom@codesourcery.com>
20568 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20569 it contains all call_used_regs.
20571 2014-06-20 Tom de Vries <tom@codesourcery.com>
20573 * final.c (collect_fn_hard_reg_usage): Add and use variable
20574 function_used_regs.
20576 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20578 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20579 (set_init_priority, get_init_priority, set_fini_priority,
20580 get_fini_priority): New methods.
20581 * tree.c (init_priority_for_decl): Remove.
20582 (init_ttree): Do not initialize init priority.
20583 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20584 (decl_priority_info): Remove.
20585 (decl_init_priority_insert): Rewrite.
20586 (decl_fini_priority_insert): Rewrite.
20587 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20588 tree_priority_map_marked_p): Remove.
20589 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20590 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20591 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20592 not output priorities.
20593 (pack_ts_function_decl_value_fields): Likewise.
20594 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20595 not input priorities.
20596 (unpack_ts_function_decl_value_fields): Likewise.
20597 * symtab.c (symbol_priority_map): Declare.
20598 (init_priority_hash): Declare.
20599 (symtab_unregister_node): Unregister from priority hash, too.
20600 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20602 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20603 (symbol_priority_info): New function.
20604 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20606 * tree-core.h (tree_priority_map): Remove.
20608 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20610 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20611 0xff to uint64_t before shifting it up.
20613 2014-06-20 Julian Brown <julian@codesourcery.com>
20614 Chung-Lin Tang <cltang@codesourcery.com>
20616 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20617 TARGET_THUMB1_ONLY. Add comments.
20619 2014-06-19 Tom de Vries <tom@codesourcery.com>
20621 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20622 return type to void.
20623 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20625 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20627 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20628 as "move", from depends_on.
20630 2014-06-19 Terry Guo <terry.guo@arm.com>
20632 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20635 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20637 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20639 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20641 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20644 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20645 addresses here if reload in progress or completed.
20647 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20649 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20650 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20651 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20652 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20653 (mips_register_priority): New function that implements the target
20654 hook TARGET_REGISTER_PRIORITY.
20655 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20656 (mips_lra_p): Likewise for TARGET_LRA_P.
20657 (TARGET_REGISTER_PRIORITY): Define macro.
20658 (TARGET_SPILL_CLASS): Likewise.
20659 (TARGET_LRA_P): Likewise.
20660 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20662 (REG_CLASS_NAMES): Likewise.
20663 (REG_CLASS_CONTENTS): Likewise.
20664 (BASE_REG_CLASS): Use M16_SP_REGS.
20665 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20666 New set attribute to enable alternatives depending on the register
20668 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20669 (*lea64): Disable pattern for MIPS16.
20670 * config/mips/mips.opt (mlra): New option.
20672 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20674 * lra-constraints.c (base_to_reg): New function.
20675 (process_address): Use new function.
20677 2014-06-18 Tom de Vries <tom@codesourcery.com>
20679 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20680 * config/aarch64/aarch64.c
20681 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20682 (aarch64_emit_call_insn): New function.
20683 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20685 * config/aarch64/aarch64.md (define_expand "call_internal")
20686 (define_expand "call_value_internal", define_expand "sibcall_internal")
20687 (define_expand "sibcall_value_internal"): New.
20688 (define_expand "call", define_expand "call_value")
20689 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20690 expand variant and aarch64_emit_call_insn.
20692 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20693 Tom de Vries <tom@codesourcery.com>
20695 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20696 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20698 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20699 clobbers to CALL_INSN_FUNCTION_USAGE.
20700 (define_expand "sibcall_internal")
20701 (define_expand "sibcall_value_internal"): New.
20702 (define_expand "call", define_expand "call_value"): Add argument to
20703 arm_emit_call_insn.
20704 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20705 (define_expand "sibcall_value"): Use sibcall_value_internal and
20706 arm_emit_call_insn.
20708 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20710 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20712 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20714 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20717 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20719 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20720 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20721 annotations. Fix DWARF information.
20723 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20725 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20726 __udivmoddi4, and fixups for negative operands.
20728 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20730 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20732 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20734 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20737 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20739 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20742 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20744 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20745 describing register usage on function entry and exit.
20747 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20749 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20750 (__aeabi_ldivmod): Fix whitespace.
20752 2014-06-18 Andreas Schwab <schwab@suse.de>
20754 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20755 Remove blank line after @item.
20757 2014-06-18 Richard Henderson <rth@redhat.com>
20760 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20762 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20764 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20765 POST_MODIFY for neon loads and stores.
20766 (arm_print_operand): Output post-index register for neon loads and
20769 2014-06-18 Richard Biener <rguenther@suse.de>
20771 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20773 2014-06-18 Richard Biener <rguenther@suse.de>
20775 * tree-pass.h (make_pass_dce_loop): Remove.
20776 * passes.def: Replace pass_dce_loop with pass_dce.
20777 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20778 changed free niter estimates and reset the scev cache.
20779 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20780 make_pass_dce_loop): Remove.
20781 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20782 (fini_copy_prop): Return whether something changed. Always
20783 let substitute_and_fold perform DCE and free niter estimates
20784 and reset the scev cache if so.
20785 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20786 (pass_data_copy_prop): Do not unconditionally schedule
20787 cleanup-cfg or update-ssa.
20789 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20791 PR tree-optimization/61518
20792 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20793 reduction var is used in reduction stmt or phi-function only.
20795 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20797 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20799 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20801 PR tree-optimization/61517
20802 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20803 whose rhs's first tree is the source expression instead of the
20805 (find_bswap_or_nop): Likewise.
20806 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20807 gimple stmt whose rhs's first tree is the source. In the memory source
20808 case, move the stmt to be replaced close to one of the original load to
20809 avoid the problem of a store between the load and the stmt's original
20811 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20814 2014-06-18 Andreas Schwab <schwab@suse.de>
20816 PR rtl-optimization/54555
20817 * postreload.c (move2add_use_add2_insn): Substitute
20818 STRICT_LOW_PART only if it is cheaper.
20820 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20822 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20823 Do not use unspec as call operand. Use memory_operand instead of
20824 memory_nox32_operand and add "m" operand constraint. Disable
20825 pattern for TARGET_X32.
20826 (*sibcall_pop_memory): Ditto.
20827 (*sibcall_value_memory): Ditto.
20828 (*sibcall_value_pop_memory): Ditto.
20829 (sibcall peepholes): Merge SImode and DImode patterns using
20830 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20831 Disable pattern for TARGET_X32. Check if eliminated register is
20832 really dead after call insn. Generate call RTX without unspec operand.
20833 (sibcall_value peepholes): Ditto.
20834 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20835 instead of memory_nox32_operand. Check if eliminated register is
20836 really dead after call insn. Generate call RTX without unspec operand.
20837 (sibcall_value_pop peepholes): Ditto.
20838 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20840 2014-06-18 Terry Guo <terry.guo@arm.com>
20843 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20846 2014-06-18 Olivier Hainque <hainque@adacore.com>
20848 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20849 memorization of the end of block source location.
20850 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20851 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20852 end source location info we have on the block entry/exit code we
20855 2014-06-18 Richard Biener <rguenther@suse.de>
20857 * common.opt (fssa-phiopt): New option.
20858 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20860 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20861 * doc/invoke.texi (-fssa-phiopt): Document.
20863 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20865 * genattrtab.c (n_bypassed): New variable.
20866 (process_bypasses): Initialise n_bypassed.
20867 Count number of bypassed reservations.
20868 (make_automaton_attrs): Allocate space for bypassed reservations
20869 rather than number of bypasses.
20871 2014-06-18 Richard Biener <rguenther@suse.de>
20873 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20874 we propagated anything.
20875 (substitute_and_fold_dom_walker::before_dom_children): Something
20876 changed if we propagated into PHI arguments.
20877 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20880 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20882 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20884 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20885 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20886 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20887 Introduces alternative way of loads group permutaions.
20888 (vect_transform_grouped_load): Try alternative way of permutations.
20890 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20892 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20893 changed in ORT_TARGET region, don't jump to do_outer.
20894 (struct gimplify_adjust_omp_clauses_data): New type.
20895 (gimplify_adjust_omp_clauses_1): Adjust for data being
20896 a struct gimplify_adjust_omp_clauses_data pointer instead
20897 of tree *. Pass pre_p as a new argument to
20898 lang_hooks.decls.omp_finish_clause hook.
20899 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20900 splay_tree_foreach to pass both list_p and pre_p.
20901 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20902 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20903 gimplify_adjust_omp_clauses callers.
20904 * langhooks.c (lhd_omp_finish_clause): New function.
20905 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20906 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20907 * langhooks.h (struct lang_hooks_for_decls): Add a new
20908 gimple_seq * argument to omp_finish_clause hook.
20909 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20910 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20911 (scan_omp_parallel, lower_omp_for): When adding
20912 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20913 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20914 * tree-nested.c (convert_nonlocal_omp_clauses,
20915 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20916 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20918 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20920 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20921 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20923 2014-06-17 Xinliang David Li <davidxl@google.com>
20925 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20926 * passes.c (pass_init_dump_file): Do not set initialize
20927 flag to false unconditionally.
20929 2014-06-17 Richard Biener <rguenther@suse.de>
20931 * genopinit.c (main): Use vec<>::qsort method.
20932 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20934 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20936 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20938 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20939 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20940 (mips_move_to_gpr_cost): Remove ST_REGS case.
20941 (mips_move_from_gpr_cost): Likewise.
20942 (mips_register_move_cost): Likewise.
20943 (mips_secondary_reload_class): Likewise.
20945 2014-06-17 Richard Biener <rguenther@suse.de>
20947 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20948 (pass_all_optimizations): Move 3rd copy-prop pass from after
20949 fre to before ifcombine/phiopt.
20951 2014-06-17 Richard Biener <rguenther@suse.de>
20953 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20954 and allow all blocks to be forwarders.
20956 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20959 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20960 variable 'size'; calculate 'size' right in the front; use
20961 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20962 pcum->aapcs_stack_words.
20964 2014-06-17 Nick Clifton <nickc@redhat.com>
20966 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20967 (umulhi3, mulsidi3, umulsidi3): Likewise.
20969 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20971 PR middle-end/61508
20972 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20973 check for section name.
20975 2014-06-17 Richard Biener <rguenther@suse.de>
20977 * tree-ssa-propagate.c: Include domwalk.h.
20978 (substitute_and_fold): Outline main worker into a domwalker ...
20979 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20980 Schedule stmts we can fully propagate for removal. Remove
20982 (substitute_and_fold): Apply a dominator walk to perform
20983 substitution. Process stmts scheduled for removal here.
20985 2014-06-17 Richard Biener <rguenther@suse.de>
20987 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20988 of PHI node moving.
20990 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20992 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20993 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20994 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20995 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20996 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20998 (get_fpscr) : Likewise.
21000 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21002 PR rtl-optimization/61325
21003 * lra-constraints.c (valid_address_p): Add forward declaration.
21004 (simplify_operand_subreg): Check address validity before and after
21005 alter_reg of memory subreg.
21007 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
21009 * config/i386/i386.c (decide_alg): Correctly handle
21010 maximum size of stringop algorithm.
21012 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21014 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21016 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21018 PR rtl-optimization/61522
21019 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21021 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
21024 * symtab.c (symtab_node::reset_section): New method.
21025 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21027 * cgraph.h (reset_section): Declare.
21028 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21029 do not consider comdat locals.
21030 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21032 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21033 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21034 reset sections of symbols dragged out of the comdats.
21035 (function_and_variable_visibility): Reset sections of
21038 2014-06-16 Richard Biener <rguenther@suse.de>
21040 PR tree-optimization/61482
21041 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21042 [-INF(OVF), +INF(OVF)] range.
21044 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21046 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21047 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21048 handling 32-bit multiplication.
21050 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
21052 PR middle-end/61430
21053 * lra-lives.c (process_bb_lives): Skip creating copy during
21054 insn scan when src/dest has constrained to same regno.
21056 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21058 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21059 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21061 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21063 * asan.c (check_func): New function.
21064 (maybe_create_ssa_name): Likewise.
21065 (build_check_stmt_with_calls): Likewise.
21066 (use_calls_p): Likewise.
21067 (report_error_func): Change interface.
21068 (build_check_stmt): Allow non-integer lengths; add support
21070 (asan_instrument): Likewise.
21071 (instrument_mem_region_access): Moved code to build_check_stmt.
21072 (instrument_derefs): Likewise.
21073 (instrument_strlen_call): Likewise.
21074 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21075 * doc/invoke.texi: Describe new parameter.
21076 * params.def: Define new parameter.
21077 * params.h: Likewise.
21078 * sanitizer.def: Describe new builtins.
21080 2014-06-16 Richard Biener <rguenther@suse.de>
21082 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21083 Make all defs available at the end.
21084 (eliminate): If we remove a PHI node schedule cfg-cleanup.
21086 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21089 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21091 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21094 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21095 initialization. Replace remaining use of uid.
21097 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21099 * c-family/c-common.c (handle_tls_model_attribute): Use
21100 set_decl_tls_model.
21101 * c-family/c-common.c (handle_tls_model_attribute): Use
21102 set_decl_tls_model.
21103 * cgraph.h (struct varpool_node): Add tls_model.
21104 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21105 * tree.h (DECL_TLS_MODEL): Update.
21106 (DECL_THREAD_LOCAL_P): Check that variable is static.
21107 (decl_tls_model): Declare.
21108 (set_decl_tls_model): Declare.
21109 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21110 set symbol prorperties.
21111 (get_emutls_init_templ_addr): Cleanup.
21112 (new_emutls_decl): Update.
21113 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21114 (lto_input_varpool_node): Likewise.
21115 * lto-streamer-out.c (hash_tree): Likewise.
21116 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21117 not stream DECL_TLS_MODEL.
21118 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21119 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21121 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21123 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21125 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21127 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21128 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21130 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21131 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21132 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21133 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21134 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21135 (df_get_artificial_defs, df_get_artificial_uses)
21136 (df_single_def, df_single_use): Update accordingly.
21137 (df_refs_chain_dump): Take the first element in a linked list as
21138 parameter, rather than a pointer to an array of pointers.
21139 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21140 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21141 (df_chain_create_bb_process_use): Likewise.
21142 (df_md_bb_local_compute_process_def): Likewise.
21143 * fwprop.c (process_defs, process_uses): Likewise.
21144 (register_active_defs, update_uses): Likewise.
21145 (forward_propagate_asm): Update for new df_ref linking.
21146 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21147 (df_null_ref_rec, df_null_mw_rec): Likewise.
21148 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21150 (df_scan_free_bb_info): Remove check for null artificial_defs.
21151 (df_install_ref_incremental): Adjust for new df_ref linking.
21152 Use a single-element insertion rather than a full sort.
21153 (df_ref_chain_delete_du_chain): Take the first element
21154 in a linked list as parameter, rather than a pointer to an array of
21156 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21157 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21158 (df_insn_info_delete): Remove check for null defs and call to
21159 df_scan_free_mws_vec.
21160 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21161 null rather than df_null_*_rec.
21162 (df_insn_rescan_debug_internal): Likewise, and update null
21163 checks in the same way. Remove check for null defs.
21164 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21165 Move a single element rather doing a full sort.
21166 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21168 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21169 Initialize df_ref and df_mw_hardreg lists to null rather than
21171 (df_ref_compare): Take df_refs as parameter, transferring the
21172 old interface to...
21173 (df_ref_ptr_compare): ...this new function.
21174 (df_sort_and_compress_refs): Update accordingly.
21175 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21176 old interface to...
21177 (df_mw_ptr_compare): ...this new function.
21178 (df_sort_and_compress_mws): Update accordingly.
21179 (df_install_refs, df_install_mws): Return a linked list rather than
21180 an array of pointers.
21181 (df_refs_add_to_chains): Assert that old lists are empty rather
21183 (df_insn_refs_verify): Don't handle null defs speciailly.
21184 * web.c (union_match_dups): Update for new df_ref linking.
21186 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21188 * df.h (df_ref_create, df_ref_remove): Delete.
21189 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21190 (df_ref_remove): Likewise.
21192 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21194 * df.h (df_single_def, df_single_use): New functions.
21195 * ira.c (find_moveable_pseudos): Use them.
21197 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21199 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21200 * df-problems.c (df_note_bb_compute): Use it.
21201 * regstat.c (regstat_bb_compute_ri): Likewise.
21203 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21205 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21206 * cse.c (cse_extended_basic_block): Use them.
21207 * dce.c (mark_artificial_use): Likewise.
21208 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21209 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21210 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21211 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21212 (df_simulate_initialize_backwards): Likewise.
21213 (df_simulate_finalize_backwards): Likewise.
21214 (df_simulate_initialize_forwards): Likewise.
21215 (df_md_simulate_artificial_defs_at_top): Likewise.
21216 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21217 * regrename.c (init_rename_info): Likewise.
21218 * regstat.c (regstat_bb_compute_ri): Likewise.
21219 (regstat_bb_compute_calls_crossed): Likewise.
21221 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21223 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21224 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21225 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21226 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21227 * combine.c (create_log_links): Likewise.
21228 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21229 (try_eliminate_compare): Likewise.
21230 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21231 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21232 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21233 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21234 (word_dce_process_block, dce_process_block): Likewise.
21235 * ddg.c (def_has_ccmode_p): Likewise.
21236 * df-core.c (df_bb_regno_first_def_find): Likewise.
21237 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21238 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21239 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21240 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21241 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21242 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21243 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21244 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21245 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21246 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21247 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21248 * fwprop.c (local_ref_killed_between_p): Likewise.
21249 (all_uses_available_at, free_load_extend): Likewise.
21250 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21251 * hw-doloop.c (scan_loop): Likewise.
21252 * ifcvt.c (dead_or_predicable): Likewise.
21253 * init-regs.c (initialize_uninitialized_regs): Likewise.
21254 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21255 (process_bb_node_lives): Likewise.
21256 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21257 (find_moveable_pseudos): Likewise.
21258 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21259 * recog.c (peep2_find_free_register): Likewise.
21260 * ree.c (get_defs): Likewise.
21261 * regstat.c (regstat_bb_compute_ri): Likewise.
21262 (regstat_bb_compute_calls_crossed): Likewise.
21263 * sched-deps.c (find_inc, find_mem): Likewise.
21264 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21265 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21266 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21267 (prepare_shrink_wrap): Likewise.
21268 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21269 * web.c (union_defs, pass_web::execute): Likewise.
21270 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21271 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21273 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21275 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21276 to inheritance pseudos.
21277 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21279 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21282 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21283 (BU_MISC_2): Rename to ...
21284 (BU_LDBL128_2): ... this.
21285 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21286 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21287 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21288 RS6000_BTM_LDBL128.
21289 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21290 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21291 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21292 (unpacktf_1): Likewise.
21293 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21294 (__builtin_longdouble_dw1): Likewise.
21295 * doc/sourcebuild.texi (longdouble128): Document.
21297 2014-06-13 Jeff Law <law@redhat.com>
21299 PR rtl-optimization/61094
21300 PR rtl-optimization/61446
21301 * ree.c (combine_reaching_defs): Get the mode for the copy from
21302 the extension insn rather than the defining insn.
21304 2014-06-13 Dehao Chen <dehao@google.com>
21306 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21308 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21310 * doc/install.texi (--enable-linker-plugin-configure-flags)
21311 (--enable-linker-plugin-flags): Document new flags.
21313 2014-06-13 Martin Jambor <mjambor@suse.cz>
21316 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21317 cache_token if returning early.
21319 2014-06-13 Nick Clifton <nickc@redhat.com>
21321 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21322 requested alignment is active.
21323 (LABEL_ALIGN): Likewise.
21324 (LOOP_ALIGN): Likewise.
21326 2014-06-13 Richard Biener <rguenther@suse.de>
21328 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21329 Rewrite to propagate the VN result into all uses where
21330 possible and to remove stmts becoming dead because of that.
21331 (eliminate): Generalize stmt removal handling, remove in
21332 reverse dominator order to support proper debug stmt
21333 generation. Update stmts before removing stmts.
21334 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21336 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21338 PR tree-optimization/61375
21339 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21340 symbolic number cannot be represented in an uint64_t.
21341 (find_bswap_or_nop_1): Likewise.
21343 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21345 * symtab.c (symtab_node::reset_section): New method.
21346 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21348 * cgraph.h (reset_section): Declare.
21349 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21350 do not consider comdat locals.
21351 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21353 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21354 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21355 reset sections of symbols dragged out of the comdats.
21356 (function_and_variable_visibility): Reset sections of
21359 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21361 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21362 to use symtab and decl_binds_to_current_def_p
21363 * tree-vectorizer.c (increase_alignment): Increase alignment
21364 of alias target, too.
21366 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21368 PR middle-end/61486
21369 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21370 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21371 if outer combined construct is distribute.
21372 (gimplify_omp_for): For OMP_DISTRIBUTE set
21373 gimplify_omp_ctxp->distribute.
21374 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21375 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21376 mapping into decl map.
21378 2014-06-12 Jason Merrill <jason@redhat.com>
21380 * common.opt (fabi-version): Change default to 0.
21382 2014-06-12 Jason Merrill <jason@redhat.com>
21384 * toplev.c (process_options): Reject -fabi-version=1.
21386 2014-06-12 Jeff Law <law@redhat.com>
21388 PR tree-optimization/61009
21389 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21390 value when we stop processing a block due to problematic PHIs.
21392 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21394 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21395 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21396 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21397 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21398 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21399 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21400 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21401 are not in the spec.
21403 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21406 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21407 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21410 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21412 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21414 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21417 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21418 loading from address spaces.
21420 2014-06-12 Martin Liska <mliska@suse.cz>
21423 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21424 statement is reachable.
21426 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21428 * symtab.c (section_hash): New hash.
21429 (symtab_unregister_node): Clear section before freeing.
21430 (hash_section_hash_entry): New haser.
21431 (eq_sections): New function.
21432 (symtab_node::set_section_for_node): New method.
21433 (set_section_1): Update.
21434 (symtab_node::set_section): Take string instead of tree as parameter.
21435 (symtab_resolve_alias): Update.
21436 * cgraph.h (section_hash_entry_d): New structure.
21437 (section_hash_entry): New typedef.
21438 (cgraph_node): Change comdat_group_ to x_comdat_group,
21439 change section_ to x_section and turn into section_hash_entry;
21440 update accestors; put set_section_for_node offline.
21441 * tree.c (decl_section_name): Turn into string.
21442 (set_decl_section_name): Change parameter to be string.
21443 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21444 * sdbout.c (sdbout_one_type): Update.
21445 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21446 * varasm.c (IN_NAMED_SECTION, get_named_section,
21447 resolve_unique_section, hot_function_section, get_named_text_section,
21448 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21449 make_decl_rtl, default_unique_section): Update.
21450 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21451 (c6x_elf_unique_section): Update.
21452 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21453 * config/pa/pa.c (pa_function_section): Update.
21454 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21455 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21456 * config/arc/arc.c (arc_in_small_data_p): Update.
21457 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21458 * config/mcore/mcore.c (mcore_unique_section): Update.
21459 * config/mips/mips.c (mips16_build_function_stub): Update.
21460 (mips16_build_call_stub): Update.
21461 (mips_function_rodata_section): Update.
21462 (mips_in_small_data_p): Update.
21463 * config/score/score.c (score_in_small_data_p): Update.
21464 * config/rx/rx.c (rx_in_small_data): Update.
21465 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21466 (rs6000_xcoff_asm_named_section): Update.
21467 (rs6000_xcoff_unique_section): Update.
21468 * config/frv/frv.c (frv_string_begins_with): Update.
21469 (frv_in_small_data_p): Update.
21470 * config/v850/v850.c (v850_encode_data_area): Update.
21471 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21472 (bfin_handle_l1_data_attribute): Update.
21473 (bfin_handle_l2_attribute): Update.
21474 * config/mep/mep.c (mep_unique_section): Update.
21475 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21477 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21478 (h8300_handle_tiny_data_attribute): Update.
21479 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21480 (m32r_in_small_data_p): Update.
21481 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21482 * config/i386/i386.c (ix86_in_large_data_p): Update.
21483 * config/i386/winnt.c (i386_pe_unique_section): Update.
21484 * config/darwin.c (darwin_function_section): Update.
21485 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21486 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21487 (new_emutls_decl): Update.
21488 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21489 input_varpool_node): Update.
21490 (ead_string_cst): Turn to ...
21491 (read_string): ... this one.
21492 * dwarf2out.c (secname_for_decl): Update.
21493 * asan.c (asan_protect_global): Update.
21495 2014-06-11 DJ Delorie <dj@redhat.com>
21497 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21499 * config/rx/rx.c (rx_option_override): Likewise.
21500 (rx_align_for_label): Likewise.
21502 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21504 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21506 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21509 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21511 * common.md: New file.
21512 * doc/md.texi: Update description of generic, machine-independent
21514 * config/s390/constraints.md (e): Delete.
21515 * Makefile.in (md_file): Include common.md.
21516 * config/m32c/t-m32c (md_file): Likewise.
21517 * genpreds.c (general_mem): New array.
21518 (generic_constraint_letters): Remove constraints now defined by
21520 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21521 Allow the first character to be '<' or '>' as well.
21522 * genoutput.c (general_mem): New array.
21523 (indep_constraints): Remove constraints now defined by common.md.
21524 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21525 Remove special handling of 'm'.
21526 * ira-costs.c (record_reg_classes): Remove special handling of
21527 constraints now defined by common.md.
21528 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21529 * ira-lives.c (single_reg_class): Likewise.
21530 (ira_implicitly_set_insn_hard_regs): Likewise.
21531 * lra-constraints.c (reg_class_from_constraints): Likewise.
21532 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21533 * postreload.c (reload_cse_simplify_operands): Likewise.
21534 * reload.c (push_secondary_reload, scratch_reload_class)
21535 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21536 * reload1.c (maybe_fix_stack_asms): Likewise.
21537 * targhooks.c (default_secondary_reload): Likewise.
21538 * stmt.c (parse_output_constraint): Likewise.
21539 * recog.c (preprocess_constraints): Likewise.
21540 (constrain_operands, peep2_find_free_register): Likewise.
21541 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21542 must be handled specially.
21544 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21546 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21547 * genpreds.c (have_const_dbl_constraints): Delete.
21548 (add_constraint): Don't set it.
21549 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21550 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21551 constraints using the lookup_constraint logic.
21552 * ira-lives.c (single_reg_class): Likewise.
21553 * ira.c (ira_setup_alts): Likewise.
21554 * lra-constraints.c (process_alt_operands): Likewise.
21555 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21556 * reload.c (find_reloads): Likewise.
21558 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21560 * genpreds.c (const_int_start, const_int_end): New variables.
21561 (choose_enum_order): Output CONST_INT constraints before memory
21563 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21565 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21566 * ira.c (ira_setup_alts): Likewise.
21567 * lra-constraints.c (process_alt_operands): Likewise.
21568 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21569 * reload.c (find_reloads): Likewise.
21571 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21573 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21574 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21575 * recog.c (preprocess_constraints): Update accordingly.
21577 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21579 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21580 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21581 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21582 * genpreds.c (print_type_tree): New function.
21583 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21584 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21585 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21586 Write out enum constraint_type and get_constraint_type.
21587 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21588 constraint_num rather than a constraint string.
21589 (satisfies_address_constraint_p): Likewise.
21590 (reg_class_from_constraints): Avoid old constraint macros.
21591 (process_alt_operands, process_address_1): Likewise.
21592 (curr_insn_transform): Likewise.
21593 * ira-costs.c (record_reg_classes): Likewise.
21594 (record_operand_costs): Likewise.
21595 * ira-lives.c (single_reg_class): Likewise.
21596 (ira_implicitly_set_insn_hard_regs): Likewise.
21597 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21598 * postreload.c (reload_cse_simplify_operands): Likewise.
21599 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21600 (constrain_operands, peep2_find_free_register): Likewise.
21601 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21602 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21603 * reload1.c (maybe_fix_stack_asms): Likewise.
21604 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21605 * targhooks.c (default_secondary_reload): Likewise.
21606 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21607 to EXTRA_CONSTRAINT_STR.
21608 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21610 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21612 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21613 (write_constraint_satisfied_p_array): ...this new function.
21614 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21616 (write_insn_preds_c): Update accordingly.
21618 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21620 * genpreds.c (write_lookup_constraint): Rename to...
21621 (write_lookup_constraint_1): ...this.
21622 (write_lookup_constraint_array): New function.
21623 (write_tm_preds_h): Define lookup_constraint as an inline function
21624 that uses write_lookup_constraint_array where possible.
21625 (write_insn_preds_c): Update for the changes above.
21627 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21629 * doc/md.texi (regclass_for_constraint): Rename to...
21630 (reg_class_for_constraint): ...this.
21631 * genpreds.c (num_constraints, enum_order, register_start)
21632 (register_end, satisfied_start, memory_start, memory_end)
21633 (address_start, address_end): New variables.
21634 (add_constraint): Count the number of constraints.
21635 (choose_enum_order): New function.
21636 (write_enum_constraint_num): Iterate over enum_order.
21637 (write_regclass_for_constraint): Rename to...
21638 (write_reg_class_for_constraint_1): ...this and update output
21640 (write_constraint_satisfied_p): Rename to...
21641 (write_constraint_satisfied_p_1): ...this and update output
21642 accordingly. Do nothing if all extra constraints are register
21644 (write_insn_extra_memory_constraint): Delete.
21645 (write_insn_extra_address_constraint): Delete.
21646 (write_range_function): New function.
21647 (write_tm_preds_h): Define constraint_satisfied_p and
21648 reg_class_for_constraint as inline functions that do a range check
21649 before calling the out-of-line function. Use write_range_function
21650 to implement insn_extra_{register,memory,address}_constraint,
21651 the first of which is new.
21652 (write_insn_preds_c): Update after above changes to write_* functions.
21653 (main): Call choose_enum_order.
21655 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21657 PR tree-optimization/61306
21658 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21659 expression instead of its size.
21660 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21661 false to prevent optimization when the result is unpredictable due to
21662 arithmetic right shift of signed type with highest byte is set.
21663 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21664 (init_symbolic_number): Likewise.
21665 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21666 when the result is unpredictable due to sign extension.
21668 2014-06-11 Terry Guo <terry.guo@arm.com>
21670 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21671 (*thumb1_addsi3): Ditto.
21672 (*thumb_subdi3): Ditto.
21673 (thumb1_subsi3_insn): Ditto.
21674 (*thumb_mulsi3): Ditto.
21675 (*thumb_mulsi3_v6): Ditto.
21676 (*thumb1_andsi3_insn): Ditto.
21677 (thumb1_bicsi3): Ditto.
21678 (*thumb1_iorsi3_insn): Ditto.
21679 (*thumb1_xorsi3_insn): Ditto.
21680 (*thumb1_ashlsi3): Ditto.
21681 (*thumb1_ashrsi3): Ditto.
21682 (*thumb1_lshrsi3): Ditto.
21683 (*thumb1_rotrsi3): Ditto.
21684 (*thumb1_negdi2): Ditto.
21685 (*thumb1_negsi2): Ditto.
21686 (*thumb1_abssi2): Ditto.
21687 (*thumb1_neg_abssi2): Ditto.
21688 (*thumb1_one_cmplsi2): Ditto.
21689 (*thumb1_zero_extendhisi2): Ditto.
21690 (*thumb1_zero_extendqisi2): Ditto.
21691 (*thumb1_zero_extendqisi2_v6): Ditto.
21692 (thumb1_extendhisi2): Ditto.
21693 (thumb1_extendqisi2): Ditto.
21694 (*thumb1_movdi_insn): Ditto.
21695 (*thumb1_movsi_insn): Ditto.
21696 (*thumb1_movhi_insn): Ditto.
21697 (thumb_movhi_clobber): Ditto.
21698 (*thumb1_movqi_insn): Ditto.
21699 (*thumb1_movhf): Ditto.
21700 (*thumb1_movsf_insn): Ditto.
21701 (*thumb_movdf_insn): Ditto.
21702 (movmem12b): Ditto.
21704 (cbranchqi4): Ditto.
21705 (cbranchsi4_insn): Ditto.
21706 (cbranchsi4_scratch): Ditto.
21707 (*negated_cbranchsi4): Ditto.
21708 (*tbit_cbranch): Ditto.
21709 (*tlobits_cbranch): Ditto.
21710 (*tstsi3_cbranch): Ditto.
21711 (*cbranchne_decr1): Ditto.
21712 (*addsi3_cbranch): Ditto.
21713 (*addsi3_cbranch_scratch): Ditto.
21714 (*thumb_cmpdi_zero): Ditto.
21715 (cstoresi_eq0_thumb1): Ditto.
21716 (cstoresi_ne0_thumb1): Ditto.
21717 (*cstoresi_eq0_thumb1_insn): Ditto.
21718 (*cstoresi_ne0_thumb1_insn): Ditto.
21719 (cstoresi_nltu_thumb1): Ditto.
21720 (cstoresi_ltu_thumb1): Ditto.
21721 (thumb1_addsi3_addgeu): Ditto.
21722 (*thumb_jump): Ditto.
21723 (*call_reg_thumb1_v5): Ditto.
21724 (*call_reg_thumb1): Ditto.
21725 (*call_value_reg_thumb1_v5): Ditto.
21726 (*call_value_reg_thumb1): Ditto.
21727 (*call_insn): Ditto.
21728 (*call_value_insn): Ditto.
21729 (thumb1_casesi_internal_pic): Ditto.
21730 (thumb1_casesi_dispatch): Ditto.
21731 (*thumb1_indirect_jump): Ditto.
21732 (prologue_thumb1_interwork): Ditto.
21733 (*epilogue_insns): Ditto.
21734 (consttable_1): Ditto.
21735 (consttable_2): Ditto.
21736 (tablejump): Ditto.
21737 (*thumb1_tablejump): Ditto.
21738 (thumb_eh_return): Ditto.
21739 (define_peephole2): Two of them are thumb1 only and got moved into
21740 new file thumb1.md.
21741 (define_split): Six of them are thumb1 only and got moved into new
21743 * config/arm/thumb1.md: New file comprised of above thumb1 only
21746 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21748 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21749 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21751 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21752 (aarch64_crc_builtin_datum): New struct.
21753 (aarch64_crc_builtin_data): New.
21754 (aarch64_init_crc32_builtins): New function.
21755 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21756 (aarch64_crc32_expand_builtin): New.
21757 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21758 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21759 __ARM_FEATURE_CRC32 when appropriate.
21760 (TARGET_CRC32): Define.
21761 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21762 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21763 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21764 (aarch64_<crc_variant>): New pattern.
21765 * config/aarch64/arm_acle.h: New file.
21766 * config/aarch64/iterators.md (CRC): New int iterator.
21767 (crc_variant, crc_mode): New int attributes.
21768 * doc/aarch64-acle-intrinsics.texi: New file.
21769 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21770 Include aarch64-acle-intrinsics.texi.
21772 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21774 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21775 check for stores group of length 3.
21776 (vect_permute_store_chain): New permutations for stores group of
21778 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21779 of vec_perm_shuffle for the new permutations.
21781 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21783 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21784 table rewriting temporarily on targets not supporting ONE_ONLY.
21786 2014-06-11 Richard Biener <rguenther@suse.de>
21788 PR middle-end/61437
21790 2014-06-04 Richard Biener <rguenther@suse.de>
21792 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21793 TREE_PUBLIC and DECL_EXTERNAL decls.
21795 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21797 * varasm.c (set_implicit_section): New function.
21798 (resolve_unique_section): Use it to set implicit section
21800 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21801 (default_function_section): Likewise.
21802 (decl_binds_to_current_def_p): Constify argument.
21803 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21804 * asan.c (asan_protect_global): Use
21805 symtab_get_node (decl)->implicit_section.
21806 * symtab.c (dump_symtab_base): Dump implicit sections.
21807 (verify_symtab_base): Verify sanity of sectoins and comdats.
21808 (symtab_resolve_alias): Alias share the section of its target.
21809 (set_section_1): New function.
21810 (symtab_node::set_section): Move here, recurse to aliases.
21811 (verify_symtab): Check for duplicated symtab lists.
21812 * tree-core.h (implicit_section_name_p): Remove.
21813 * tree-vect-data-refs.c: Include varasm.h.
21814 (vect_can_force_dr_alignment_p): Fix conditional on when
21815 decl bints to current definition; use
21816 symtab_get_node (decl)->implicit_section.
21817 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21818 * cgraph.h (struct symtab_node): Add implicit_section.
21819 (set_section): Rename to ...
21820 (set_section_for_node): ... this one.
21821 (set_section): Declare.
21822 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21823 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21824 input_overwrite_node, input_varpool_node): Stream implicit_section.
21825 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21826 removal; it will fail in LTO.
21828 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21830 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21831 Change second alternative type to f_mcr.
21832 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21833 and 12th alternatives' types to f_mcr and f_mrc.
21834 (*movdi_aarch64): Same for 12th and 13th alternatives.
21835 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21836 (aarch64_movtilow_tilow): Change type to fmov.
21838 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21840 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21841 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21843 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21845 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21847 (aarch64_sqrdmulh_lane<mode>): Likewise.
21848 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21849 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21850 (aarch64_sqdmulh_laneq<mode>): New expander.
21851 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21852 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21853 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21854 (aarch64_sqdmulh_lane<mode>): New expander.
21855 (aarch64_sqrdmulh_lane<mode>): Likewise.
21856 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21857 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21858 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21859 (aarch64_sqdmlal_laneq<mode>): Likewise.
21860 (aarch64_sqdmlsl_lane<mode>): Likewise.
21861 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21862 (aarch64_sqdmlal2_lane<mode>): Likewise.
21863 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21864 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21865 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21866 (aarch64_sqdmull_lane<mode>): Likewise.
21867 (aarch64_sqdmull_laneq<mode>): Likewise.
21868 (aarch64_sqdmull2_lane<mode>): Likewise.
21869 (aarch64_sqdmull2_laneq<mode>): Likewise.
21871 2014-06-10 Richard Biener <rguenther@suse.de>
21873 PR tree-optimization/61438
21874 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21875 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21876 insertion of IVs if running PRE.
21877 (eliminate): Adjust.
21878 (pass_pre::execute): Likewise.
21879 (pass_fre::execute): Likewise.
21881 2014-06-10 Richard Biener <rguenther@suse.de>
21883 PR middle-end/61456
21884 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21885 Do not use the main variant for the type comparison.
21886 (ncr_compar): Likewise.
21887 (nonoverlapping_component_refs_p): Likewise.
21889 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21891 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21892 REG_CFA_RESTORE mode.
21894 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21896 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21897 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21898 expand_vec_perm_pblendv.
21900 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21902 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21904 Simplify description of __crc32d and __crc32cd intrinsics.
21905 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21908 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21911 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21912 * config.in: Regenerate.
21913 * configure: Likewise.
21915 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21917 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21919 (intersect_static_var_sets): Remove.
21920 (propagate): Do not prune local statics.
21922 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21925 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21926 Set lastprivate_firstprivate even if omp_private_outer_ref
21927 langhook returns true.
21928 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21929 langhook, call unshare_expr on new_var and call
21930 build_outer_var_ref to get the last argument.
21932 2014-06-10 Marek Polacek <polacek@redhat.com>
21935 * doc/extend.texi: Add cindex for transparent_union.
21937 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21939 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21940 init_symbolic_number ().
21942 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21944 PR middle-end/61141
21945 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21946 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21947 (verify_rtl_sharing): Likewise.
21949 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21952 * tree.c (build_qualified_type): Use a canonical type for
21955 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21957 * config/arm/arm-modes.def: Remove XFmode.
21959 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21962 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21963 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21964 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21965 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21966 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21967 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21968 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21969 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21970 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21972 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21974 * tree-core.h (tree_decl_with_vis): Remove section_name.
21976 2014-06-09 Kito Cheng <kito@0xlab.org>
21978 * ira.c (ira): Don't call init_caller_save if LRA enabled
21979 since LRA use its own infrastructure to handle that.
21981 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21983 * symtab.c (dump_symtab_base): Update dumping.
21984 (symtab_make_decl_local): Clear only DECL_COMDAT.
21985 * tree-vect-data-refs.c (Check that variable is static before
21986 tampering with sections.
21987 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21988 (cgraph_create_virtual_clone): Likewise.
21989 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21990 (decl_section_name, set_decl_section_name): New accessors.
21991 (find_decls_types_r): Do not walk section name
21992 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21993 (decl_comdat_group, decl_comdat_group_id): Constify.
21994 (decl_section_name, set_decl_section_name): Update.
21995 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21996 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21997 (cgraph_make_node_local_1): Clear section and comdat group.
21998 * cgraph.h (set_comdat_group): Sanity check.
21999 (get_section, set_section): New.
22000 * ipa-comdats.c (ipa_comdats): Use get_section.
22001 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22002 * lto-streamer-out.c: Do not follow section names.
22003 * c-family/c-common.c (handle_section_attribute): Update.
22004 * lto-cgraph.c (lto_output_node): Output section.
22005 (lto_output_varpool_node): Likewise.
22006 (read_comdat_group): Rename to ...
22007 (read_identifier): ... this one.
22008 (read_string_cst): New function.
22009 (input_node, input_varpool_node): Input section names.
22010 * tree-emutls.c (get_emutls_init_templ_addr): Update.
22011 (new_emutls_decl): Update.
22012 (secname_for_decl): Check section names only of static vars.
22013 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22014 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22015 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22016 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22017 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22018 * config/mcore/mcore.c (mcore_unique_section): Likewise.
22019 * config/mips/mips.c (mips16_build_function_stub): Likewise.
22020 * config/v850/v850.c (v850_insert_attributes): Likewise.
22021 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22023 (h8300_handle_tiny_data_attribute): Likewise.
22024 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22025 (bfin_handle_l2_attribute): Likewise.
22027 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22029 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22030 remove static initializer.
22032 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22034 * varasm.c (use_blocks_for_decl_p): Check symbol table
22035 instead of alias attribute.
22036 (place_block_symbol): Recurse on aliases.
22038 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22040 * ipa-visibility.c: Include varasm.h
22041 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22043 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22045 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22046 outputting aliases.
22048 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
22050 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22051 from test_insn into GGC space escape via SET_SRC.
22053 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
22055 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22056 call statement, if any.
22057 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22058 statements, if any. Tidy up.
22060 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22063 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22064 iterators, VSX_D that handles 64-bit types, and VSX_LE that
22065 handles swapping the two 64-bit double words on little endian
22066 systems. Include V1TImode and optionally TImode in VSX_LE so that
22067 these types are properly swapped. Change all of the insns and
22068 splits that do the 64-bit swaps to use VSX_LE.
22069 (vsx_le_perm_load_<mode>): Likewise.
22070 (vsx_le_perm_store_<mode>): Likewise.
22071 (splitters for little endian memory operations): Likewise.
22072 (vsx_xxpermdi2_le_<mode>): Likewise.
22073 (vsx_lxvd2x2_le_<mode>): Likewise.
22074 (vsx_stxvd2x2_le_<mode>): Likewise.
22076 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
22079 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22080 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22081 and corresponding splitters. Zero extend general register
22082 or memory input operand to XMM temporary. Enable for
22083 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22084 (floatunssi<mode>2): Update expander predicate.
22086 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
22088 PR rtl-optimization/61325
22089 * lra-constraints.c (process_address_1): Check scale equal to one
22090 to prevent transformation: base + scale * index => base + new_reg.
22092 2014-06-06 Richard Biener <rguenther@suse.de>
22094 PR tree-optimization/59299
22095 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22097 (nearest_common_dominator_of_uses): Likewise.
22098 (statement_sink_location): Adjust. Support sinking loads.
22100 2014-06-06 Martin Jambor <mjambor@suse.cz>
22102 * ipa-prop.c (get_place_in_agg_contents_list): New function.
22103 (build_agg_jump_func_from_list): Likewise.
22104 (determine_known_aggregate_parts): Renamed to
22105 determine_locally_known_aggregate_parts. Moved some functionality
22106 to the two functions above, removed bound checks.
22108 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
22110 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22111 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22112 (aarch64_progress_pointer): Likewise.
22113 (aarch64_copy_one_part_and_move_pointers): Likewise.
22114 (aarch64_expand_movmen): Likewise.
22115 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22116 * config/aarch64/aarch64.md (movmem<mode>): New.
22118 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
22120 * targhooks.c (default_add_stmt_cost): Call target specific
22121 hook instead of default one.
22123 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22125 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22126 endianness instead of host endianness.
22127 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22130 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22133 * function.c (instantiate_decls): Process the saved static chain.
22134 (expand_function_start): If not optimizing, save the static chain
22136 * tree-nested.c (convert_all_function_calls): Always create the static
22137 chain for nested functions if not optimizing.
22139 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22141 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22143 2014-06-06 Richard Biener <rguenther@suse.de>
22145 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22146 (construct_init_block): Likewise.
22147 (construct_exit_block): Likewise.
22148 (pass_expand::execute): Likewise.
22149 * graphite.c (graphite_transforms): Replace check for current_loops
22150 with a check for > 1 loops.
22151 (pass_graphite_transforms::execute): Adjust.
22152 * ipa-split.c (split_function): Remove check for current_loops.
22153 * omp-low.c (expand_parallel_call): Likewise.
22154 (expand_omp_for_init_counts): Likewise.
22155 (extract_omp_for_update_vars): Likewise.
22156 (expand_omp_for_generic): Likewise.
22157 (expand_omp_sections): Likewise.
22158 (expand_omp_target): Likewise.
22159 * tracer.c (tail_duplicate): Likewise.
22160 (pass_tracer::execute): Likewise.
22161 * trans-mem.c (expand_transaction): Likewise.
22162 * tree-complex.c (expand_complex_div_wide): Likewise.
22163 * tree-eh.c (lower_resx): Likewise.
22164 (cleanup_empty_eh_merge_phis): Likewise.
22165 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22166 current_loops with a check for > 1 loops.
22167 (pass_predcom::execute): Adjust.
22168 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22169 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22170 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22171 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22172 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22173 * tree-switch-conversion.c (process_switch): Likewise.
22174 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22175 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22176 (execute_vrp): Likewise.
22177 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22179 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22181 * rtl.h (insn_location): Declare.
22182 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22183 with UNKNOWN_LOCATION.
22184 * emit-rtl.c (insn_location): New function.
22185 * final.c (notice_source_line): Check that the instruction has a
22186 location before retrieving it and use insn_location.
22187 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22188 * print-rtl.c (print_rtx): Likewise.
22190 2014-06-06 Richard Biener <rguenther@suse.de>
22192 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22194 2014-06-06 Christian Bruel <christian.bruel@st.com>
22196 PR tree-optimization/43934
22197 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22200 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22202 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22203 return NO_REGS for extra address and memory constraints. Handle
22204 operands that match (or are equivalent to something that matches)
22205 extra constant constraints. Ignore other non-register operands.
22207 2014-06-06 Alan Modra <amodra@gmail.com>
22210 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22211 * doc/tm.texi: Regenerate.
22212 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22213 Use throughout in place of REG_PARM_STACK_SPACE.
22214 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22215 "incoming" param. Pass to rs6000_function_parms_need_stack.
22216 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22217 prototype_p when incoming. Use function decl when incoming
22218 to handle K&R style functions.
22219 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22220 (INCOMING_REG_PARM_STACK_SPACE): Define.
22222 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22225 * cfgexpand.c (expand_debug_expr): Use address space of nested
22226 TREE_TYPE for ADDR_EXPR and MEM_REF.
22228 2014-06-05 Jeff Law <law@redhat.com>
22230 PR tree-optimization/61289
22231 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22232 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22233 looking for those which match LHS. All callers changed.
22234 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22235 parameters and code which manipulated them. All callers changed.
22236 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22237 and DST_MAP parameters. Simplify invalidation code by just calling
22238 invalidate_equivalences. All callers changed.
22239 (thread_across_edge): Simplify now that we don't need to maintain
22240 the map of equivalences to invalidate.
22242 2014-06-05 Kai Tietz <ktietz@redhat.com>
22243 Richard Henderson <rth@redhat.com>
22246 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22247 checking for !TARGET_X32.
22248 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22249 (sibcall_intern): New define_insn, plus required peepholes.
22250 (sibcall_pop_intern): Likewise.
22251 (sibcall_value_intern): Likewise.
22252 (sibcall_value_pop_intern): Likewise.
22254 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22256 * tree-inline.c (tree_function_versioning): Check DF info existence
22257 before accessing it.
22259 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22261 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22263 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22264 aarch64_frame hard_fp_offset and frame_size.
22265 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22266 frame_size; remove original_frame_size.
22267 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22268 (aarch64_initial_elimination_offset): Remove frame_size and
22269 offset. Use aarch64_frame frame_size.
22271 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22272 Jiong Wang <jiong.wang@arm.com>
22273 Renlin <renlin.li@arm.com>
22275 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22276 initialization of R30 offset. Update offset. Iterate core
22277 regisers upto X30. Remove X29, X30 specific code.
22279 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22280 Jiong Wang <jiong.wang@arm.com>
22282 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22283 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22284 (aarch64_register_saved_on_entry): Adjust test.
22286 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22288 * config/aarch64/aarch64.h (machine_function): Move
22289 saved_varargs_size from here...
22290 (aarch64_frame): ... to here.
22292 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22293 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22294 (aarch64_initial_elimination_offset)
22295 (aarch64_setup_incoming_varargs): Adjust location of
22296 saved_varargs_size.
22298 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22300 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22303 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22304 Prachi Godbole <Prachi.Godbole@imgtec.com>
22306 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22307 mips32r5 entry to use PROCESSOR_P5600.
22308 * config/mips/mips-tables.opt: Regenerate.
22309 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22310 * config/mips/mips.c (mips_fmadd_bypass): New function.
22311 (mips_rtx_cost_data): Add costs for p5600.
22312 (mips_issue_rate): Add support for p5600.
22313 (mips_multipass_dfa_lookahead): Likewise.
22314 * config/mips/mips.h (TUNE_P5600): New define.
22315 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22316 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22317 * config/mips/mips.md: Include p5600.md.
22318 (processor): Add p5600.
22319 * config/mips/p5600.md: New file.
22321 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22323 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22324 * config/i386/predicates.md (palignr_operand): New.
22325 Indicates if permutation is suitable for palignr instruction.
22327 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22329 PR tree-optimization/61319
22330 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22331 stmt belongs to loop.
22333 2014-06-05 Richard Biener <rguenther@suse.de>
22335 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22336 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22337 (lookup_tmp_var): Adjust.
22338 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22340 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22342 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22344 2014-06-05 Marek Polacek <polacek@redhat.com>
22347 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22349 2014-06-04 Tom de Vries <tom@codesourcery.com>
22351 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22354 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22356 PR tree-optimization/61385
22357 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22359 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22361 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22362 changed to use fatal_error.
22363 (main): Ensure lto_wrapper_cleanup is run atexit.
22365 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22367 * lra-constraints.c (valid_address_p): Move earlier in file.
22368 (address_eliminator): New structure.
22369 (satisfies_memory_constraint_p): New function.
22370 (satisfies_address_constraint_p): Likewise.
22371 (process_alt_operands, process_address, curr_insn_transform): Use them.
22373 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22375 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22377 (target_lra_int, default_target_lra_int, this_target_lra_int)
22378 (op_alt_data): Delete.
22379 * lra.h (lra_init): Delete.
22380 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22381 (init_insn_code_data_once): Remove op_alt_data handling.
22382 (finish_insn_code_data_once): Likewise.
22383 (init_op_alt_data): Delete.
22384 (get_static_insn_data): Initialize operand_alternative to null.
22385 (free_insn_recog_data): Cast operand_alternative before freeing it.
22386 (setup_operand_alternative): Take the operand_alternative as
22387 parameter and assume it isn't already cached in the static
22389 (lra_set_insn_recog_data): Update accordingly.
22390 (lra_init): Delete.
22391 * ira.c (ira_init): Don't call lra_init.
22392 * target-globals.h (this_target_lra_int): Declare.
22393 (target_globals): Remove lra_int.
22394 (restore_target_globals): Update accordingly.
22395 * target-globals.c: Don't include lra-int.h.
22396 (default_target_globals, save_target_globals): Remove lra_int.
22398 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22400 * recog.h (operand_alternative): Convert reg_class, reject,
22401 matched and matches into bitfields.
22402 (preprocess_constraints): New overload.
22403 (preprocess_insn_constraints): New function.
22404 (preprocess_constraints): Take the insn as parameter.
22405 (recog_op_alt): Change into a pointer.
22406 (target_recog): Add x_op_alt.
22407 * recog.c (asm_op_alt): New variable.
22408 (recog_op_alt): Change into a pointer.
22409 (preprocess_constraints): New overload, replacing the old function
22410 definition with one that doesn't use global state.
22411 (preprocess_insn_constraints): New function.
22412 (preprocess_constraints): Use them. Take the insn as parameter.
22413 Use asm_op_alt for asms.
22414 (recog_init): Free existing x_op_alt entries.
22415 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22417 (make_early_clobber_and_input_conflicts): Likewise.
22418 (process_bb_node_lives): Pass the insn to process_constraints.
22419 * reg-stack.c (check_asm_stack_operands): Likewise.
22420 (subst_asm_stack_regs): Likewise.
22421 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22422 * regrename.c (build_def_use): Likewise.
22423 * sched-deps.c (sched_analyze_insn): Likewise.
22424 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22425 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22426 (note_invalid_constants): Likewise.
22427 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22428 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22431 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22433 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22434 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22436 (make_early_clobber_and_input_conflicts): Likewise.
22437 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22439 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22441 * recog.h (alternative_class): New function.
22442 (which_op_alt): Return a const recog_op_alt.
22443 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22444 (subst_asm_stack_regs): Likewise.
22445 * config/arm/arm.c (note_invalid_constants): Likewise.
22446 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22447 the operand_alternative; use alternative class instead.
22448 * sel-sched.c (get_reg_class): Likewise.
22449 * regrename.c (build_def_use): Likewise.
22450 (hide_operands, restore_operands, record_out_operands): Update type
22453 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22455 * recog.h (recog_op_alt): Convert to a flat array.
22456 (which_op_alt): New function.
22457 * recog.c (recog_op_alt): Convert to a flat array.
22458 (preprocess_constraints): Update accordingly, grouping all
22459 operands of the same alternative together, rather than the
22461 * ira-lives.c (check_and_make_def_conflict): Likewise.
22462 (make_early_clobber_and_input_conflicts): Likewise.
22463 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22464 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22465 (subst_asm_stack_regs): Likewise.
22466 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22467 * regrename.c (hide_operands, record_out_operands): Likewise.
22468 (build_def_use): Likewise.
22469 * sel-sched.c (get_reg_class): Likewise.
22470 * config/arm/arm.c (note_invalid_constants): Likewise.
22472 2014-06-04 Jason Merrill <jason@redhat.com>
22476 * gimplify.c (gimplify_arg): Non-static.
22477 * gimplify.h: Declare it.
22479 2014-06-04 Richard Biener <rguenther@suse.de>
22481 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22482 TREE_PUBLIC and DECL_EXTERNAL decls.
22484 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22486 * regcprop.c (copyprop_hardreg_forward_1): Account for
22487 HARD_REGNO_CALL_PART_CLOBBERED.
22489 2014-06-04 Richard Biener <rguenther@suse.de>
22491 * configure.ac: Check whether the underlying type of int64_t
22492 is long or long long.
22493 * configure: Regenerate.
22494 * config.in: Likewise.
22495 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22496 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22498 2014-06-04 Richard Biener <rguenther@suse.de>
22500 PR tree-optimization/60098
22501 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22503 (dse_optimize_stmt): Simplify, now that we found a kill
22506 2014-06-04 Richard Biener <rguenther@suse.de>
22508 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22509 of accesses with non-invariant address.
22511 2014-06-04 Martin Liska <mliska@suse.cz>
22513 * cgraph.h (cgraph_make_wrapper): New function introduced.
22514 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22515 * ipa-inline.h (inline_analyze_function): The function is global.
22516 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22518 2014-06-04 Martin Liska <mliska@suse.cz>
22520 * tree.h (private_lookup_attribute_starting): New function.
22521 (lookup_attribute_starting): Likewise.
22522 * tree.c (private_lookup_attribute_starting): Likewise.
22524 2014-06-04 Martin Liska <mliska@suse.cz>
22526 * cgraph.h (expand_thunk): New argument added.
22527 (address_taken_from_non_vtable_p): New global function.
22528 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22529 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22530 * cgraphunit.c (analyze_function): Likewise.
22531 (assemble_thunks_and_aliases): Argument added to call.
22532 (expand_thunk): New argument forces to produce GIMPLE thunk.
22534 2014-06-04 Martin Liska <mliska@suse.cz>
22536 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22537 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22538 * profile.c (branch_prob): Likewise.
22540 2014-06-04 Martin Jambor <mjambor@suse.cz>
22543 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22544 handler for switch on an ipa_ref_use enum.
22545 * ipa-reference.c (analyze_function): Likewise.
22547 2014-06-04 Kai Tietz <ktietz@redhat.com>
22549 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22550 from old call-instruction.
22552 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22554 * config/aarch64/aarch64.c (aarch64_classify_address)
22555 (aarch64_legitimize_reload_address): Support full addressing modes
22557 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22558 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22560 2014-06-03 Andrew Pinski <apinski@cavium.com>
22562 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22565 2014-06-03 Andrew Pinski <apinski@cavium.com>
22567 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22568 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22570 2014-06-03 Kai Tietz <ktietz@redhat.com>
22572 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22575 2014-06-03 Dehao Chen <dehao@google.com>
22577 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22580 2014-06-03 Marek Polacek <polacek@redhat.com>
22583 * doc/invoke.texi: Document -Wswitch-bool.
22584 * function.c (stack_protect_epilogue): Cast controlling expression of
22586 * gengtype.c (walk_type): Generate switch expression with its
22587 controlling expression cast to int.
22589 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22591 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22593 * config/avr/avr-tables.opt: Regenerate.
22594 * config/avr/t-multilib: Regenerate.
22595 * doc/avr-mmcu.texi: Regenerate.
22597 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22598 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22600 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22601 (ata6617c, ata664251): Add new avr35 devices.
22602 (ata6612c): Add new avr4 device.
22603 (ata6613c, ata6614q): Add new avr5 devices.
22604 * config/avr/avr-tables.opt: Regenerate.
22605 * config/avr/t-multilib: Regenerate.
22606 * doc/avr-mmcu.texi: Regenerate.
22608 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22610 * gcc/config/aarch64/aarch64-builtins.c
22611 (aarch64_types_binop_ssu_qualifiers): New static data.
22612 (TYPES_BINOP_SSU): Define.
22613 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22614 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22615 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22616 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22617 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22618 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22619 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22620 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22621 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22622 suffix to builtin function name, remove cast.
22623 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22624 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22625 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22627 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22629 * gcc/config/aarch64/aarch64-builtins.c
22630 (aarch64_types_binop_uus_qualifiers,
22631 aarch64_types_shift_to_unsigned_qualifiers,
22632 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22633 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22634 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22635 sqshlu_n, uqshl_n): Update qualifiers.
22636 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22637 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22638 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22639 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22640 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22641 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22642 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22643 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22644 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22645 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22646 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22647 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22648 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22649 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22650 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22651 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22652 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22653 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22654 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22655 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22656 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22657 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22658 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22659 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22660 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22661 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22662 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22664 2014-06-03 Teresa Johnson <tejohnson@google.com>
22666 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22668 2014-06-02 Jason Merrill <jason@redhat.com>
22671 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22673 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22675 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22678 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22680 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22682 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22683 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22684 * config/aarch64/iterators.md (REVERSE): New iterator.
22685 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22686 (rev_op): New int_attribute.
22687 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22688 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22689 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22690 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22691 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22692 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22693 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22694 Replace temporary __asm__ with __builtin_shuffle.
22696 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22698 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22700 * config/mips/mips-tables.opt: Regenerate.
22701 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22702 to use mips_isa_rev rather than ISA_MIPS32R2.
22703 * config/mips/mips.h (ISA_MIPS32R3): New define.
22704 (ISA_MIPS32R5): New define.
22705 (ISA_MIPS64R3): New define.
22706 (ISA_MIPS64R5): New define.
22707 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22708 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22709 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22711 (MIPS_ISA_SYNCI_SPEC): Likewise.
22712 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22713 (LINK_SPEC): Added mips32r3 and mips32r5.
22714 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22715 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22716 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22717 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22718 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22719 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22720 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22722 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22724 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22726 * config/mips/mips.opt (mxpa): New option.
22727 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22730 2014-06-03 Martin Jambor <mjambor@suse.cz>
22733 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22736 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22738 PR tree-optimization/61328
22739 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22740 initialization from find_bswap_or_nop_1.
22741 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22742 in source_expr2 before using the size value the function sets. Also
22743 make use of init_symbolic_number () in both the old place and
22744 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22745 doing recursion in the GIMPLE_BINARY_RHS case.
22747 2014-06-03 Richard Biener <rguenther@suse.de>
22749 PR tree-optimization/61383
22750 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22753 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22755 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22756 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22757 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22758 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22760 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22761 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22762 * system.h: ...here and make it unconditional.
22763 * target.def (conditional_register_usage): Mention
22764 define_register_constraint instead of old-style constraint macros.
22765 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22766 * doc/tm.texi: Regenerate.
22767 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22768 protected by !USE_MD_CONSTRAINTS.
22769 * config/frv/frv.md: Remove quote from old version of documentation.
22770 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22771 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22772 CONST_DOUBLE_OK_FOR_LETTER.
22773 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22775 2014-06-02 Andrew Pinski <apinski@cavium.com>
22777 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22778 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22779 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22780 file whose name depends on -mabi= and -mbig-endian.
22781 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22782 Handle LP64 better and handle ilp32 too.
22783 (MULTILIB_OPTIONS): Delete.
22784 (MULTILIB_DIRNAMES): Delete.
22786 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22788 * expr.h: Remove prototypes of functions defined in builtins.c.
22789 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22790 Remove prototypes of functions defined in builtins.c.
22791 * builtins.h: Update prototype list to include all exported functions.
22792 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22793 no_c99_libc_has_function): Move to targhooks.c
22794 (build_string_literal, build_call_expr_loc_array,
22795 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22797 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22798 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22799 no_c99_libc_has_function): Relocate from builtins.c.
22800 * tree.c: Include builtins.h.
22801 (build_call_expr_loc_array, build_call_expr_loc_vec,
22802 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22804 * fold-const.h (fold_fma): Move prototype to builtins.h.
22805 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22806 * asan.c: Include builtins.h.
22807 * cfgexpand.c: Likewise.
22808 * convert.c: Likewise.
22809 * emit-rtl.c: Likewise.
22810 * except.c: Likewise.
22811 * expr.c: Likewise.
22812 * fold-const.c: Likewise.
22813 * gimple-fold.c: Likewise.
22814 * gimple-ssa-strength-reduction.c: Likewise.
22815 * gimplify.c: Likewise.
22816 * ipa-inline.c: Likewise.
22817 * ipa-prop.c: Likewise.
22818 * lto-streamer-out.c: Likewise.
22819 * stmt.c: Likewise.
22820 * tree-inline.c: Likewise.
22821 * tree-object-size.c: Likewise.
22822 * tree-sra.c: Likewise.
22823 * tree-ssa-ccp.c: Likewise.
22824 * tree-ssa-forwprop.c: Likewise.
22825 * tree-ssa-loop-ivcanon.c: Likewise.
22826 * tree-ssa-loop-ivopts.c: Likewise.
22827 * tree-ssa-math-opts.c: Likewise.
22828 * tree-ssa-reassoc.c: Likewise.
22829 * tree-ssa-threadedge.c: Likewise.
22830 * tree-streamer-in.c: Likewise.
22831 * tree-vect-data-refs.c: Likewise.
22832 * tree-vect-patterns.c: Likewise.
22833 * tree-vect-stmts.c: Likewise.
22834 * config/aarch64/aarch64.c: Likewise.
22835 * config/alpha/alpha.c: Likewise.
22836 * config/arc/arc.c: Likewise.
22837 * config/arm/arm.c: Likewise.
22838 * config/avr/avr.c: Likewise.
22839 * config/bfin/bfin.c: Likewise.
22840 * config/c6x/c6x.c: Likewise.
22841 * config/cr16/cr16.c: Likewise.
22842 * config/cris/cris.c: Likewise.
22843 * config/epiphany/epiphany.c: Likewise.
22844 * config/fr30/fr30.c: Likewise.
22845 * config/frv/frv.c: Likewise.
22846 * config/h8300/h8300.c: Likewise.
22847 * config/i386/i386.c: Likewise.
22848 * config/i386/winnt.c: Likewise.
22849 * config/ia64/ia64.c: Likewise.
22850 * config/iq2000/iq2000.c: Likewise.
22851 * config/lm32/lm32.c: Likewise.
22852 * config/m32c/m32c.c: Likewise.
22853 * config/m32r/m32r.c: Likewise.
22854 * config/m68k/m68k.c: Likewise.
22855 * config/mcore/mcore.c: Likewise.
22856 * config/mep/mep.c: Likewise.
22857 * config/microblaze/microblaze.c: Likewise.
22858 * config/mips/mips.c: Likewise.
22859 * config/mmix/mmix.c: Likewise.
22860 * config/mn10300/mn10300.c: Likewise.
22861 * config/moxie/moxie.c: Likewise.
22862 * config/msp430/msp430.c: Likewise.
22863 * config/nds32/nds32.c: Likewise.
22864 * config/pa/pa.c: Likewise.
22865 * config/pdp11/pdp11.c: Likewise.
22866 * config/picochip/picochip.c: Likewise.
22867 * config/rl78/rl78.c: Likewise.
22868 * config/rs6000/rs6000.c: Likewise.
22869 * config/rx/rx.c: Likewise.
22870 * config/s390/s390.c: Likewise.
22871 * config/score/score.c: Likewise.
22872 * config/sh/sh.c: Likewise.
22873 * config/sparc/sparc.c: Likewise.
22874 * config/spu/spu.c: Likewise.
22875 * config/stormy16/stormy16.c: Likewise.
22876 * config/tilegx/tilegx.c: Likewise.
22877 * config/tilepro/tilepro.c: Likewise.
22878 * config/v850/v850.c: Likewise.
22879 * config/vax/vax.c: Likewise.
22880 * config/xtensa/xtensa.c: Likewise.
22882 2014-06-02 Jeff Law <law@redhat.com>
22884 PR rtl-optimization/61094
22885 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22886 was marked as do_no_reextend. If a copy is needed to eliminate
22887 an extension, then mark it as do_not_reextend.
22889 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22891 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22893 2014-06-02 Richard Henderson <rth@redhat.com>
22896 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22897 addresses inside asms. Use output_operand_lossage instead of
22900 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22903 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22904 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22906 2014-06-02 Tom de Vries <tom@codesourcery.com>
22908 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22909 case that x has VOIDmode.
22911 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22913 * varasm.c (copy_constant): Delete function.
22914 (build_constant_desc): Don't call it.
22916 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22919 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22920 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22921 with immediate_operand.
22923 2014-06-02 Andreas Schwab <schwab@suse.de>
22925 * config/ia64/ia64.c
22926 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22927 pending_data_specs first.
22929 2014-06-02 Richard Biener <rguenther@suse.de>
22931 PR tree-optimization/61378
22932 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22933 valueized_anything.
22935 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22937 * config/i386/constraints.md (Bw): Rename from 'w'.
22938 (Bz): Rename from 'z'.
22939 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22941 2014-06-01 Kai Tietz <ktietz@redhat.com>
22944 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22945 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22946 instead of m constraint.
22948 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22950 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22951 a separate alternative where the scratch operand 2 is marked as
22954 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22956 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22957 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22958 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22959 and __builtins_arm_get_fpscr.
22960 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22961 __builtins_arm_get_fpscr.
22962 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22963 __builtins_arm_ldfpscr.
22964 (arm_atomic_assign_expand_fenv): New function.
22965 * config/arm/vfp.md (set_fpscr): New pattern.
22966 (get_fpscr) : Likewise.
22967 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22969 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22970 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22972 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22974 * asan.c (report_error_func): Add SLOW_P argument, use
22975 BUILT_IN_ASAN_*_N if set.
22976 (build_check_stmt): Likewise.
22977 (instrument_derefs): If T has insufficient alignment,
22978 force same handling as for odd sizes.
22980 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22981 BUILT_IN_ASAN_REPORT_STORE_N): New.
22982 * asan.c (struct asan_mem_ref): Change access_size type to
22984 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22985 update_mem_ref_hash_table): Likewise.
22986 (asan_mem_ref_hasher::hash): Hash in a HWI.
22987 (report_error_func): Change size_in_bytes argument to HWI.
22988 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22990 (build_shadow_mem_access): New function.
22991 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22992 Handle size_in_bytes not power of two or larger than 16.
22993 (instrument_derefs): Don't give up if size_in_bytes is not
22994 power of two or is larger than 16.
22996 2014-05-30 Kai Tietz <ktietz@redhat.com>
22999 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23000 for sibling-tail-calls.
23001 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23003 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23004 (sibcall_insn_operand): Add check for sibcall_memory_operand.
23006 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23008 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23009 * config/avr/avr-tables.opt: Regenerate.
23010 * config/avr/t-multilib: Regenerate.
23011 * doc/avr-mmcu.texi: Regenerate.
23013 2014-05-30 Ian Lance Taylor <iant@google.com>
23015 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23018 2014-05-30 Tom de Vries <tom@codesourcery.com>
23020 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23023 2014-05-30 Tom de Vries <tom@codesourcery.com>
23025 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23026 * lra.c (initialize_lra_reg_info_element): Add init of
23027 actual_call_used_reg_set field.
23028 (lra): Call lra_create_live_ranges before lra_inheritance for
23030 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23032 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23033 instead of call_used_reg_set for -fuse-caller-save.
23034 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23036 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23038 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23040 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23042 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
23044 * ira.c (ira_get_dup_out_num): Check for output operands at
23045 the start of the loop. Handle cases where an included alternative
23046 follows an excluded one.
23048 2014-05-29 Mike Stump <mikestump@comcast.net>
23051 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23052 post ld passes when lto is used.
23054 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
23056 PR rtl-optimization/61325
23057 * lra-constraints.c (process_address): Rename to process_address_1.
23058 (process_address): New function.
23060 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
23062 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23063 TYPES_BINOPV): New static data.
23064 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23066 * config/aarch64/aarch64-simd.md (aarch64_ext,
23067 aarch64_im_lane_boundsi): New patterns.
23068 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23070 (aarch64_evpc_ext): New function.
23072 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23074 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23075 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23076 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23077 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23078 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23080 2014-05-29 Tom de Vries <tom@codesourcery.com>
23082 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23084 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
23085 Richard Sandiford <rdsandiford@googlemail.com>
23087 * arm/iterators.md (shiftable_ops): New code iterator.
23088 (t2_binop0, arith_shift_insn): New code attributes.
23089 * arm/predicates.md (shift_nomul_operator): New predicate.
23090 * arm/arm.md (insn_enabled): Delete.
23091 (enabled): Remove insn_enabled test.
23092 (*arith_shiftsi): Delete. Replace with ...
23093 (*<arith_shift_insn>_multsi): ... new pattern.
23094 (*<arith_shift_insn>_shiftsi): ... new pattern.
23095 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23097 2014-05-29 Radovan Obradovic <robradovic@mips.com>
23098 Tom de Vries <tom@codesourcery.com>
23100 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23101 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23103 (mips_split_call): Use POST_CALL_TMP_REG.
23104 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23106 2014-05-29 Tom de Vries <tom@codesourcery.com>
23108 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23109 with #ifdef STACK_REGS.
23111 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
23113 * varasm.c (get_variable_section): Walk aliases.
23114 (place_block_symbol): Walk aliases.
23116 2014-05-28 Tom de Vries <tom@codesourcery.com>
23119 2014-05-28 Tom de Vries <tom@codesourcery.com>
23121 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23122 * lra.c (initialize_lra_reg_info_element): Add init of
23123 actual_call_used_reg_set field.
23124 (lra): Call lra_create_live_ranges before lra_inheritance for
23126 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23128 * lra-constraints.c (need_for_call_save_p): Use
23129 actual_call_used_reg_set instead of call_used_reg_set for
23131 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23133 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23135 * doc/md.texi: Document that the % constraint character must
23136 be at the beginning of the string.
23137 * genoutput.c (validate_insn_alternatives): Check that '=',
23138 '+' and '%' only appear at the beginning of a constraint.
23139 * ira.c (commutative_constraint_p): Delete.
23140 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23141 at the start of the string.
23142 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23144 * config/arm/neon.md (bicdi3_neon): Likewise.
23145 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23146 (slt_si, sltu_si): Likewise.
23147 * config/vax/vax.md (sbcdi3): Likewise.
23148 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23149 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23150 (mul64): Move '%' to beginning of constraint.
23151 * config/arm/arm.md (*xordi3_insn): Likewise.
23152 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23153 (xorsi3): Likewise.
23155 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23157 * doc/md.texi: Document the restrictions on the "enabled" attribute.
23159 2014-05-28 Jason Merrill <jason@redhat.com>
23162 * cgraph.h (symtab_node::get_comdat_group_id): New.
23163 * cgraphunit.c (analyze_functions): Call it.
23164 * symtab.c (dump_symtab_node): Likewise.
23165 * tree.c (decl_comdat_group_id): New.
23166 * tree.h: Declare it.
23167 * lto-streamer-out.c (write_symbol): Use it.
23168 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23170 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23172 PR bootstrap/PR61146
23173 * wide-int.cc: Do not include longlong.h when compiling with clang.
23175 2014-05-28 Richard Biener <rguenther@suse.de>
23177 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23178 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23179 (vrp_visit_assignment_or_call): Print less vertical space.
23180 (vrp_visit_stmt): Likewise.
23181 (vrp_visit_phi_node): Likewise. For a PHI argument with
23182 VR_VARYING range consider recording it as copy.
23184 2014-05-28 Richard Biener <rguenther@suse.de>
23187 2014-05-28 Richard Biener <rguenther@suse.de>
23189 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23191 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23193 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23194 sufficiently aligned and an offset is used at the same time.
23195 (expand_expr_real_1): Likewise.
23197 2014-05-28 Richard Biener <rguenther@suse.de>
23199 PR middle-end/61045
23200 * fold-const.c (fold_comparison): When folding
23201 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23202 the sign of the remaining constant operand stays the same.
23204 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23206 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23207 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23208 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23210 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23211 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23212 (m32bit-doubles) Likewise.
23213 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23214 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23217 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23219 * configure.ac ($gcc_cv_ld_clearcap): New test.
23220 * configure: Regenerate.
23221 * config.in: Regenerate.
23222 * config/sol2.opt (mclear-hwcap): New option.
23223 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23224 * config/sol2-clearcap.map: Moved here from
23225 testsuite/gcc.target/i386/clearcap.map.
23226 * config/sol2-clearcapv2.map: Move here from
23227 gcc.target/i386/clearcapv2.map.
23228 * config/t-sol2 (install): Depend on install-clearcap-map.
23229 (install-clearcap-map): New target.
23230 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23233 2014-05-28 Richard Biener <rguenther@suse.de>
23235 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23236 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23237 ... here and remove the rest.
23238 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23240 2014-05-28 Richard Biener <rguenther@suse.de>
23242 PR tree-optimization/61335
23243 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23244 new range fails, drop to varying.
23246 2014-05-28 Olivier Hainque <hainque@adacore.com>
23248 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23249 (CPP_SPEC): Add entry for -mcpu=8548.
23250 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23251 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23253 2014-05-28 Tom de Vries <tom@codesourcery.com>
23255 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23256 * lra.c (initialize_lra_reg_info_element): Add init of
23257 actual_call_used_reg_set field.
23258 (lra): Call lra_create_live_ranges before lra_inheritance for
23260 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23262 * lra-constraints.c (need_for_call_save_p): Use
23263 actual_call_used_reg_set instead of call_used_reg_set for
23265 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23267 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23268 Tom de Vries <tom@codesourcery.com>
23270 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23272 (@item -fuse-caller-save): New item.
23274 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23275 Tom de Vries <tom@codesourcery.com>
23277 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23278 OPT_fuse_caller_save.
23280 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23281 Tom de Vries <tom@codesourcery.com>
23283 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23284 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23285 get_call_reg_set_usage.
23286 * resource.c (mark_set_resources, mark_target_live_regs): Use
23287 get_call_reg_set_usage.
23288 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23290 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23291 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23292 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23293 * ira-build.c (ira_create_allocno): Init
23294 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23295 (create_cap_allocno, propagate_allocno_info)
23296 (propagate_some_info_from_allocno)
23297 (copy_info_to_removed_store_destinations): Handle
23298 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23299 * ira-costs.c (ira_tune_allocno_costs): Use
23300 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23302 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23303 Tom de Vries <tom@codesourcery.com>
23305 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23306 and function_used_regs_valid fields.
23307 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23308 find_all_hard_reg_sets.
23309 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23310 (get_call_reg_set_usage): New function.
23311 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23312 * regs.h (get_call_reg_set_usage): Declare.
23314 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23317 * config/dbx.h (License): Add Runtime Library Exception.
23318 * config/newlib-stdint.h (License): Same.
23319 * config/rtems.h (License): Same
23320 * config/initfini-array.h (License): Same
23321 * config/v850/v850.h (License): Same.
23322 * config/v850/v850-opts.h (License): Same
23323 * config/v850/rtems.h (License): Same.
23325 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23328 * doc/extend.texi (Local Labels): Note that label differences are
23329 not supported for AVR.
23331 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23332 Olivier Hainque <hainque@adacore.com>
23334 * rtl.h (set_for_reg_notes): Declare.
23335 * emit-rtl.c (set_for_reg_notes): New function.
23336 (set_unique_reg_note): Use it.
23337 * optabs.c (add_equal_note): Likewise
23339 2014-05-27 Andrew Pinski <apinski@cavium.com>
23341 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23342 Use <w> for the register in assembly template.
23343 (stack_protect_test): Use the mode of operands[0] for the result.
23344 (stack_protect_test_<mode>): Use <w> for the register
23345 in assembly template.
23347 2014-05-27 DJ Delorie <dj@redhat.com>
23349 * config/rx/rx.c (add_vector_labels): New.
23350 (rx_output_function_prologue): Call it.
23351 (rx_handle_func_attribute): Don't require empty arguments.
23352 (rx_handle_vector_attribute): New.
23353 (rx_attribute_table): Add "vector" attribute.
23354 * doc/extend.texi (interrupt, vector): Document new/changed
23355 RX-specific attributes.
23357 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23359 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23361 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23362 predicate to detect a negative quotient.
23364 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23366 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23367 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23368 Add X - Y CMP 0 to X CMP Y transformation.
23369 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23371 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23373 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23376 2014-05-27 Steve Ellcey <sellcey@mips.com>
23378 * config/mips/mips.c: Add include of cgraph.h.
23380 2014-05-27 Richard Biener <rguenther@suse.de>
23382 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23384 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23387 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23388 * config/arm/arm-cores.def (License): Same.
23389 * config/arm/arm-opts.h (License): Same.
23390 * config/arm/aout.h (License): Same.
23391 * config/arm/bpabi.h (License): Same.
23392 * config/arm/elf.h (License): Same.
23393 * config/arm/linux-elf.h (License): Same.
23394 * config/arm/linux-gas.h (License): Same.
23395 * config/arm/netbsd-elf.h (License): Same.
23396 * config/arm/uclinux-eabi.h (License): Same.
23397 * config/arm/uclinux-elf.h (License): Same.
23398 * config/arm/vxworks.h (License): Same.
23400 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23402 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23403 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23404 (arm_init_neon_builtins): Handle NEON_BSWAP.
23405 Define required type nodes.
23406 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23407 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23408 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23409 * config/arm/iterators.md (VDQHSD): New mode iterator.
23411 2014-05-27 Richard Biener <rguenther@suse.de>
23413 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23414 Try using literal operands when comparing value-ranges failed.
23416 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23418 * ira.c (commutative_operand): Adjust for change to recog_data.
23419 [Missing from previous commit.]
23421 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23423 * system.h (TEST_BIT): New macro.
23424 * recog.h (alternative_mask): New type.
23425 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23426 (recog_data_d): Replace alternative_enabled_p array with
23427 enabled_alternatives.
23428 (target_recog): New structure.
23429 (default_target_recog, this_target_recog): Declare.
23430 (get_enabled_alternatives, recog_init): Likewise.
23431 * recog.c (default_target_recog, this_target_recog): New variables.
23432 (get_enabled_alternatives): New function.
23433 (extract_insn): Use it.
23434 (recog_init): New function.
23435 (preprocess_constraints, constrain_operands): Adjust for change to
23437 * postreload.c (reload_cse_simplify_operands): Likewise.
23438 * reload.c (find_reloads): Likewise.
23439 * ira-costs.c (record_reg_classes): Likewise.
23440 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23441 all alternatives after a disabled one would be skipped.
23442 (ira_implicitly_set_insn_hard_regs): Likewise.
23443 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23444 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23445 with enabled_alternatives.
23446 * lra.c (free_insn_recog_data): Update accordingly.
23447 (lra_update_insn_recog_data): Likewise.
23448 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23449 * lra-constraints.c (process_alt_operands): Likewise. Handle
23450 only_alternative as part of the enabled mask.
23451 * target-globals.h (this_target_recog): Declare.
23452 (target_globals): Add a recog field.
23453 (restore_target_globals): Restore this_target_recog.
23454 * target-globals.c: Include recog.h.
23455 (default_target_globals): Initialize recog field.
23456 (save_target_globals): Likewise.
23457 * reginfo.c (reinit_regs): Call recog_init.
23458 * toplev.c (backend_init_target): Likewise.
23460 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23462 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23463 rather than any named insn's code.
23465 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23468 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23469 * config/arm/arm-cores.def (License): Same.
23471 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23473 * tree.h (decl_comdat_group): Declare.
23474 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23475 * tree.c (decl_comdat_group): Here.
23477 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23479 PR rtl-optimization/61222
23480 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23481 the shift, truncate the PLUS operand to the result mode.
23483 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23486 * config/i386/i386.c (ix86_rtx_costs)
23487 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23490 2014-05-26 Martin Jambor <mjambor@suse.cz>
23492 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23495 2014-05-26 Richard Biener <rguenther@suse.de>
23497 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23498 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23499 Provide specializations.
23500 (wi::int_traits <HOST_WIDE_INT>,
23501 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23503 2014-05-26 Alan Modra <amodra@gmail.com>
23506 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23507 params and return a bool. Remove dead code. Update comment.
23508 Assert we have a const_int source. Remove bogus code from
23509 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23510 handling of constants > 2G and reg_equal note, from..
23511 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23512 return value. Update comment. If we can, use a new pseudo
23513 for intermediate calculations.
23514 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23516 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23517 call to rs6000_emit_set_const in splitter.
23518 (movdi_internal64+2, +3): Likewise.
23520 2014-05-26 Richard Biener <rguenther@suse.de>
23522 * system.h: Define __STDC_FORMAT_MACROS before
23523 including inttypes.h.
23524 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23525 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23526 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23527 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23528 HOST_WIDEST_INT_C): Remove.
23529 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23530 if C99 inttypes.h is not available.
23531 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23532 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23533 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23534 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23535 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23536 (struct output_info): Likewise.
23537 (print_statistics): Adjust.
23538 (dump_bitmap_statistics): Likewise.
23539 * bt-load.c (migrate_btr_defs): Print with PRId64.
23540 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23541 (MAX_SAFE_MULTIPLIER): Adjust.
23542 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23543 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23544 dump_cgraph_node): Likewise.
23545 * final.c (dump_basic_block_info): Likewise.
23546 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23547 * gcov.c (format_gcov): Likewise.
23548 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23550 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23551 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23552 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23553 Use PRId64 for dumping.
23554 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23555 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23556 (add_allocno_hard_regs): Adjust.
23557 * loop-doloop.c (doloop_modify): Print using PRId64.
23558 * loop-iv.c (inverse): Compute in uint64_t.
23559 (determine_max_iter, iv_number_of_iterations): Likewise.
23560 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23561 Print using PRId64.
23562 * lto-streamer-out.c (write_symbol): Use uint64_t.
23563 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23564 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23565 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23566 * modulo-sched.c (const_iteration_count): Use int64_t.
23567 (sms_schedule): Dump using PRId64.
23568 * predict.c (dump_prediction): Likewise.
23569 * pretty-print.h (pp_widest_integer): Remove.
23570 * profile.c (get_working_sets, is_edge_inconsistent,
23571 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23572 * tree-pretty-print.c (pp_double_int): Remove case handling
23573 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23574 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23576 (pass_optimize_bswap::execute): Remove restriction on hosts.
23577 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23578 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23579 * tree.c (widest_int_cst_value): Remove.
23580 * tree.h (widest_int_cst_value): Likewise.
23581 * value-prof.c (dump_histogram_value): Print using PRId64.
23582 * gengtype.c (main): Also inject int64_t.
23583 * ggc-page.c (struct max_alignment): Use int64_t.
23584 * alloc-pool.c (struct allocation_object_def): Likewise.
23585 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23587 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23588 * doc/tm.texi: Regenerated.
23589 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23590 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23591 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23592 mmix_output_register_setting): Use [u]int64_t in prototypes.
23593 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23594 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23595 mmix_output_octa, mmix_output_shifted_value): Adjust.
23596 (mmix_intval): Adjust. Remove unreachable case.
23597 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23599 2014-05-26 Richard Biener <rguenther@suse.de>
23601 * configure.ac: Drop __int64 type check. Insist that we
23602 found uint64_t and int64_t.
23603 * hwint.h (HOST_BITS_PER___INT64): Remove.
23604 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23605 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23606 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23607 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23608 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23609 for dst_q_src_df_rms_cdt.
23610 * configure: Regenerate.
23611 * config.in: Likewise.
23613 2014-05-26 Michael Tautschnig <mt@debian.org>
23616 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23617 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23619 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23621 PR rtl-optimization/61278
23622 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23624 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23626 PR rtl-optimization/61220
23627 Part of PR rtl-optimization/61225
23628 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23629 insn; skip split_edge for a block with only one successor.
23631 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23633 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23636 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23638 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23639 (update_vtable_references): New function.
23640 (function_and_variable_visibility): Rewrite also vtable initializers.
23641 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23643 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23645 * ggc.h (ggc_grow): New function.
23646 * ggc-none.c (ggc_grow): New function.
23647 * ggc-page.c (ggc_grow): Likewise.
23649 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23651 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23652 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23653 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23654 varpool_externally_visible_p, can_replace_by_local_alias,
23655 update_visibility_by_resolution_info, function_and_variable_visibility,
23656 pass_data_ipa_function_and_variable_visibility,
23657 make_pass_ipa_function_and_variable_visibility,
23658 whole_program_function_and_variable_visibility,
23659 pass_data_ipa_whole_program_visibility,
23660 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23661 * cgraph.h (cgraph_local_node_p): Declare.
23662 * ipa-visibility.c: New file.
23663 * Makefile.in (OBJS): Add ipa-visiblity.o
23665 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23667 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23668 that var decl is available.
23670 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23672 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23673 symtab_node pointer.
23674 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23675 (find_decls_types_r): Do not walk COMDAT_GROUP.
23676 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23677 * varasm.c (make_decl_one_only): Use set_comdat_group;
23678 create node if needed.
23679 * ipa-inline-transform.c (save_inline_function_body): Update
23680 way we decl->symtab mapping.
23681 * symtab.c (symtab_hash, hash_node, eq_node
23682 symtab_insert_node_to_hashtable): Remove.
23683 (symtab_register_node): Update.
23684 (symtab_unregister_node): Update.
23685 (symtab_get_node): Reimplement as inline function.
23686 (symtab_add_to_same_comdat_group): Update.
23687 (symtab_dissolve_same_comdat_group_list): Update.
23688 (dump_symtab_base): Update.
23689 (verify_symtab_base): Update.
23690 (symtab_make_decl_local): Update.
23691 (fixup_same_cpp_alias_visibility): Update.
23692 (symtab_nonoverwritable_alias): Update.
23693 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23694 * ipa.c (update_visibility_by_resolution_info): UPdate.
23695 * bb-reorder.c: Include cgraph.h
23696 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23697 with comdat groups.
23698 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23699 * cgraph.c (cgraph_get_create_node): Update.
23700 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23702 (symtab_get_node): Make inline.
23703 (symtab_insert_node_to_hashtable): Remove.
23704 (symtab_can_be_discarded): Update.
23705 (decl_comdat_group): New function.
23706 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23708 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23710 (read_comdat_group): New function.
23711 (input_node, input_varpool_node): Use it.
23712 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23714 * mips.c (mips_start_unique_function): Likewise.
23715 (ix86_code_end): Likewise.
23716 (rs6000_code_end): Likweise.
23717 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23719 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23721 * gengtype-state.c (fatal_reading_state): Bring offline.
23722 * optabs.c (widening_optab_handler): Bring offline.
23723 * optabs.h (widening_optab_handler): Likewise.
23724 * final.c (get_attr_length_1): Likewise.
23726 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23728 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23730 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23732 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23733 (ppc440-compare): Include shift with dot.
23734 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23735 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23737 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23739 (e6500_sfx2): Include it.
23740 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23741 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23742 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23743 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23744 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23745 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23746 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23747 *lshiftrt_internal1le, *lshiftrt_internal1be,
23748 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23749 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23750 *rotldi3_internal10le, *rotldi3_internal10be,
23751 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23752 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23753 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23754 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23755 define_insns): Use type "shift" in the appropriate alternatives.
23757 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23759 * config/rs6000/rs6000.md (type): Add "logical". Delete
23761 (dot): Adjust comment.
23762 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23763 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23764 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23765 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23766 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23767 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23768 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23769 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23771 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23772 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23773 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23774 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23775 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23776 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23777 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23778 * config/rs6000/8540.md (ppc8540_su): Adjust.
23779 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23780 cell-cmp-microcoded): Adjust.
23781 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23782 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23783 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23784 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23785 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23786 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23787 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23788 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23789 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23791 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23792 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23793 Adjust. Adjust comment.
23794 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23795 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23797 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23799 * config/rs6000/rs6000.md (type): Add "add".
23800 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23801 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23802 define_insns): Use it.
23803 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23805 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23806 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23807 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23808 * config/rs6000/601.md (ppc601-integer): Adjust.
23809 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23810 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23811 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23812 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23813 * config/rs6000/8540.md (ppc8540_su): Adjust.
23814 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23815 cell-cmp-microcoded): Adjust.
23816 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23817 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23818 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23819 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23820 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23821 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23822 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23823 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23824 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23826 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23827 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23828 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23829 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23831 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23833 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23834 "delayed_compare", "var_delayed_compare".
23835 (var_shift): New attribute.
23836 (cell_micro): Adjust.
23837 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23838 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23839 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23840 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23841 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23842 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23843 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23844 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23845 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23846 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23847 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23848 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23849 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23850 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23851 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23852 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23853 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23854 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23855 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23856 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23857 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23858 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23859 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23860 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23861 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23863 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23864 * config/rs6000/440.md (ppc440-integer): Adjust.
23865 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23866 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23867 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23868 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23869 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23870 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23871 * config/rs6000/8540.md (ppc8540_su): Adjust.
23872 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23873 cell-cmp-microcoded): Adjust.
23874 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23875 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23876 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23877 e500mc64_delayed): Adjust.
23878 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23879 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23880 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23881 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23882 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23883 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23884 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23885 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23886 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23888 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23889 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23891 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23893 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23894 (bits): New mode_attr.
23895 (idiv_ldiv): Delete mode_attr.
23896 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23897 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23898 rs6000_adjust_priority, is_nonpipeline_insn,
23899 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23901 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23902 * config/rs6000/440.md (ppc440-idiv): Adjust.
23903 * config/rs6000/476.md (ppc476-idiv): Adjust.
23904 * config/rs6000/601.md (ppc601-idiv): Adjust.
23905 * config/rs6000/603.md (ppc603-idiv): Adjust.
23906 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23907 ppc620-ldiv): Adjust.
23908 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23909 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23910 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23911 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23912 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23913 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23914 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23915 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23916 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23917 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23918 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23919 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23920 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23921 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23922 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23923 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23924 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23925 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23927 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23929 * config/rs6000/rs6000.md (type): Delete "insert_word",
23930 "insert_dword". Add "insert".
23931 (size): Update comment.
23932 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23933 insn_must_be_first_in_group): Adjust.
23934 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23935 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23936 *insvsi_internal6, insvdi_internal): Adjust.
23938 * config/rs6000/40x.md (ppc403-integer): Adjust.
23939 * config/rs6000/440.md (ppc440-integer): Adjust.
23940 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23941 * config/rs6000/601.md (ppc601-integer): Adjust.
23942 * config/rs6000/603.md (ppc603-integer): Adjust.
23943 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23944 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23945 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23946 * config/rs6000/8540.md (ppc8540_su): Adjust.
23947 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23948 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23949 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23950 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23951 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23952 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23953 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23954 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23955 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23956 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23957 * config/rs6000/power7.md (power7-integer): Adjust.
23958 * config/rs6000/power8.md (power8-1cyc): Adjust.
23959 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23960 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23962 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23964 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23965 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23966 (size): New attribute.
23967 (dot): New attribute.
23968 (cell_micro): Adjust.
23969 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23970 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23971 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23972 umuldi3_highpart): Adjust.
23973 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23974 rs6000_adjust_priority, is_nonpipeline_insn,
23975 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23977 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23978 ppc405-imul3): Adjust.
23979 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23980 * config/rs6000/476.md (ppc476-imul): Adjust.
23981 * config/rs6000/601.md (ppc601-imul): Adjust.
23982 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23983 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23984 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23985 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23986 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23988 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23989 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23990 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23991 cell-imul): Adjust.
23992 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23993 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23994 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23995 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23996 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23997 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23998 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23999 power4-lmul, power4-imul, power4-imul3): Adjust.
24000 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24001 power5-lmul, power5-imul, power5-imul3): Adjust.
24002 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24003 power6-lmul, power6-imul, power6-imul3): Adjust.
24004 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24005 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24007 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24008 rs64a-lmul): Adjust.
24009 * config/rs6000/titan.md (titan_imul): Adjust.
24011 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24013 * config/rs6000/rs6000.md (type): Add new value "halfmul".
24014 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24015 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24016 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24017 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24018 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24019 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24020 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24021 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24022 * config/rs6000/titan.md: Delete nonsensical comment.
24023 (titan_imul): Add type imul3.
24024 (titan_mulhw): Remove type imul3; add type halfmul.
24026 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24028 * config/rs6000/rs6000.md (type): Reorder, reformat.
24030 2014-05-23 Martin Jambor <mjambor@suse.cz>
24032 PR tree-optimization/53787
24033 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24034 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24035 analysis_done, update all uses.
24036 * ipa-prop.c: Include domwalk.h
24037 (param_analysis_info): Removed.
24038 (param_aa_status): New type.
24039 (ipa_bb_info): Likewise.
24040 (func_body_info): Likewise.
24041 (ipa_get_bb_info): New function.
24042 (aa_overwalked): Likewise.
24043 (find_dominating_aa_status): Likewise.
24044 (parm_bb_aa_status_for_bb): Likewise.
24045 (parm_preserved_before_stmt_p): Changed to use new param AA info.
24046 (load_from_unmodified_param): Accept func_body_info as a parameter
24047 instead of parms_ainfo.
24048 (parm_ref_data_preserved_p): Changed to use new param AA info.
24049 (parm_ref_data_pass_through_p): Likewise.
24050 (ipa_load_from_parm_agg_1): Likewise. Update callers.
24051 (compute_complex_assign_jump_func): Changed to use new param AA info.
24052 (compute_complex_ancestor_jump_func): Likewise.
24053 (ipa_compute_jump_functions_for_edge): Likewise.
24054 (ipa_compute_jump_functions): Removed.
24055 (ipa_compute_jump_functions_for_bb): New function.
24056 (ipa_analyze_indirect_call_uses): Likewise, moved variable
24058 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24059 and info, moved variable declarations down.
24060 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24062 (ipa_analyze_stmt_uses): Likewise.
24063 (ipa_analyze_params_uses): Removed.
24064 (ipa_analyze_params_uses_in_bb): New function.
24065 (ipa_analyze_controlled_uses): Likewise.
24066 (free_ipa_bb_info): Likewise.
24067 (analysis_dom_walker): New class.
24068 (ipa_analyze_node): Handle node-specific forbidden analysis,
24069 initialize and free func_body_info, use dominator walker.
24070 (ipcp_modif_dom_walker): New class.
24071 (ipcp_transform_function): Create and free func_body_info, use
24072 ipcp_modif_dom_walker, moved a lot of functionality there.
24074 2014-05-23 Marek Polacek <polacek@redhat.com>
24075 Jakub Jelinek <jakub@redhat.com>
24077 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24078 * gcc.c (sanitize_spec_function): Likewise.
24079 * convert.c (convert_to_integer): Include "ubsan.h". Add
24080 floating-point to integer instrumentation.
24081 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24082 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24083 SANITIZE_NONDEFAULT.
24084 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24085 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24086 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24087 * ubsan.c: Include "realmpfr.h" and "dfp.h".
24088 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24089 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24090 float/double/long double.
24091 (ubsan_instrument_float_cast): New function.
24092 * ubsan.h (ubsan_instrument_float_cast): Declare.
24094 2014-05-23 Jiong Wang <jiong.wang@arm.com>
24096 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24098 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
24099 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24100 Adjust for tailcalling through registers.
24101 * config/aarch64/aarch64.h (enum reg_class): New caller save
24103 (REG_CLASS_NAMES): Likewise.
24104 (REG_CLASS_CONTENTS): Likewise.
24105 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24106 Allow tailcalling without decls.
24108 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24110 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24111 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24113 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24114 gsi, and variables v_* to v*.
24116 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
24118 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24120 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24122 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24123 * omp-low.c: Update accordingly.
24125 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24126 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24127 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24128 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24129 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24130 GF_OMP_TARGET_KIND_UPDATE.
24132 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24133 Explicitly enumerate the expected region types.
24135 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
24138 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
24139 documentation; the old documentation didn't clearly state the
24140 constraints on the contents of the pointed-to storage.
24142 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24144 Fix bootstrap error on ia64
24145 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24146 Return default value.
24148 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
24150 PR tree-optimization/54733
24151 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24153 (find_bswap_or_nop_load): New.
24154 (find_bswap_1): Renamed to ...
24155 (find_bswap_or_nop_1): This. Also add support for memory source.
24156 (find_bswap): Renamed to ...
24157 (find_bswap_or_nop): This. Also add support for memory source and
24158 detection of bitwise operations equivalent to load in target
24160 (execute_optimize_bswap): Likewise. Also move its leading comment back
24161 in place and split statement transformation into ...
24162 (bswap_replace): This.
24164 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24166 PR rtl-optimization/61215
24167 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24168 simplify_gen_subreg until final substitution.
24170 2014-05-23 Alan Modra <amodra@gmail.com>
24173 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24174 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24175 Use "Y" constraint rather than "m".
24177 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24179 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24181 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24182 New function declaration.
24183 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24184 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24185 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24186 (aarch64_init_builtins) : Initialize builtins
24187 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24188 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24189 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24190 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24191 and __builtins_aarch64_set_fpsr.
24192 (aarch64_atomic_assign_expand_fenv): New function.
24193 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24194 (get_fpcr) : Likewise.
24195 (set_fpsr) : Likewise.
24196 (get_fpsr) : Likewise.
24197 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24198 and UNSPECV_SET_FPSR.
24199 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24200 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24201 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24203 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24205 PR rtl-optimization/60969
24206 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24207 constraints. Set up mem cost for NO_REGS case.
24209 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24211 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24213 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24215 * config/darwin.c: Include "lto-section-names.h".
24216 (LTO_SEGMENT_NAME): Don't define.
24217 * config/i386/winnt.c: Include "lto-section-names.h".
24218 * lto-streamer.c: Include "lto-section-names.h".
24219 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24220 * lto-wrapper.c: Include "lto-section-names.h".
24221 (LTO_SECTION_NAME_PREFIX): Don't define.
24222 * lto-section-names.h: New file.
24223 * cgraphunit.c: Include "lto-section-names.h".
24225 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24227 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24229 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24232 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24234 2014-05-22 Nick Clifton <nickc@redhat.com>
24236 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24238 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24240 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24241 -> (T)A transformation to integer types.
24243 2014-05-22 Teresa Johnson <tejohnson@google.com>
24245 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24246 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24247 (gcov_rewrite): Use gcov_nonruntime_assert.
24248 (gcov_open): Ditto.
24249 (gcov_write_words): Ditto.
24250 (gcov_write_length): Ditto.
24251 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24252 gcc_assert from IN_LIBGCOV code.
24253 (gcov_read_summary): Use gcov_error to flag profile corruption.
24254 (gcov_sync): Use gcov_nonruntime_assert.
24255 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24256 (gcov_histo_index): Use gcov_nonruntime_assert.
24257 (static void gcov_histogram_merge): Ditto.
24258 (compute_working_sets): Ditto.
24259 * gcov-io.h (gcov_nonruntime_assert): Define.
24260 (gcov_error): Define for !IN_LIBGCOV
24262 2014-05-22 Richard Biener <rguenther@suse.de>
24264 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24265 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24266 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24267 and deallocation site.
24268 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24269 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24270 passing through the incoming points-to set.
24271 (handle_lhs_call): Use flags argument instead of recomputing it.
24272 (find_func_aliases_for_call): Call handle_lhs_call with proper
24275 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24277 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24278 all padding bits in REAL_VALUE_TYPE are cleared.
24280 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24282 Cleanup and improve multipass_dfa_lookahead_guard
24283 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24284 (core2i7_first_cycle_multipass_begin,)
24285 (core2i7_first_cycle_multipass_issue,)
24286 (core2i7_first_cycle_multipass_backtrack): Update signature.
24287 * config/ia64/ia64.c
24288 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24289 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24290 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24292 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24293 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24295 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24297 * doc/tm.texi: Regenerate.
24299 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24300 * haifa-sched.c (ready_try): Make signed to allow negative values.
24301 (rebug_ready_list_1): Update.
24302 (choose_ready): Simplify.
24303 (sched_extend_ready_list): Update.
24305 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24307 Remove IA64 speculation tweaking flags
24308 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24309 speculation tuning flags.
24310 (msched-prefer-non-data-spec-insns,)
24311 (msched-prefer-non-control-spec-insns): Obsolete options.
24312 * haifa-sched.c (choose_ready): Remove handling of
24313 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24314 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24315 and PREFER_NON_DATA_SPEC.
24316 * sel-sched.c (process_spec_exprs): Remove handling of
24317 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24319 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24321 Improve scheduling debug output
24322 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24323 (advance_one_cycle): Update.
24324 (schedule_insn, queue_to_ready): Add debug printouts.
24325 (debug_ready_list_1): New static function.
24326 (debug_ready_list): Update.
24327 (max_issue): Add debug printouts.
24328 (dump_insn_stream): New static function.
24329 (schedule_block): Use it. Also better indent printouts.
24331 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24333 Fix sched_insn debug counter
24334 * haifa-sched.c (schedule_insn): Update.
24335 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24336 (save_backtrack_point, restore_backtrack_point): Update.
24337 (first_nonscheduled_insn): New static function.
24338 (queue_to_ready, choose_ready): Use it.
24339 (schedule_block): Init nonscheduled_insns_begin.
24340 (sched_emit_insn): Update.
24343 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24345 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24347 (aarch64_secondary_reload) : LikeWise.
24348 (aarch64_class_max_nregs) : Remove CORE_REGS.
24349 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24350 (REG_CLASS_NAMES) : Likewise.
24351 (REG_CLASS_CONTENTS) : LikeWise.
24352 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24354 2014-05-21 Guozhi Wei <carrot@google.com>
24357 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24359 (vqdmulhq_n_s16): Likewise.
24361 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24363 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24365 2014-05-21 Marek Polacek <polacek@redhat.com>
24368 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24370 2014-05-21 Martin Jambor <mjambor@suse.cz>
24372 * doc/invoke.texi (Optimize Options): Document parameters
24373 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24374 ipa-cp-array-index-hint-bonus.
24376 2014-05-21 Mark Wielaard <mjw@redhat.com>
24379 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24380 version >= 3 or not strict DWARF.
24381 * langhooks.h (struct lang_hooks_for_types): Add
24382 enum_underlying_base_type.
24383 * langhooks.c (lhd_enum_underlying_base_type): New function.
24384 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24385 enum_underlying_base_type.
24386 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24387 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24388 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24390 2014-05-21 Richard Biener <rguenther@suse.de>
24392 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24394 2014-05-21 John Marino <gnugcc@marino.st>
24396 * config.gcc (*-*-dragonfly*): New target.
24397 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24398 * configure: Regenerate.
24399 * config/dragonfly-stdint.h: New.
24400 * config/dragonfly.h: New.
24401 * config/dragonfly.opt: New.
24402 * config/i386/dragonfly.h: New.
24403 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24405 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24407 * tree.def (VOID_CST): New.
24408 * tree-core.h (TI_VOID): New.
24409 * tree.h (void_node): New.
24410 * tree.c (tree_node_structure_for_code, tree_code_size)
24411 (iterative_hash_expr): Handle VOID_CST.
24412 (build_common_tree_nodes): Initialize void_node.
24414 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24416 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24418 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24420 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24423 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24424 flag_reorder_blocks_and_partition.
24425 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24427 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24430 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24432 (*addc_r_t): Add new insn_and_split.
24434 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24436 PR middle-end/61252
24437 * omp-low.c (handle_simd_reference): New function.
24438 (lower_rec_input_clauses): Use it. Defer adding reference
24439 initialization even for reduction without placeholder if in simd,
24440 handle it properly later on.
24442 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24444 PR tree-optimization/60899
24445 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24446 assume all static symbols will have definition wile parsing and
24447 check the do have definition later in compilation; check that
24448 variable referring symbol will be output before concluding that
24449 reference is safe; be conservative for referring local statics;
24450 be more precise about when comdat is output in other partition.
24452 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24455 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24457 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24458 (ipa_inline): Loop inline_to_all_callers until no more aliases
24461 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24463 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24464 set writeonly flag only for vars actually written to.
24466 2014-05-20 Dehao Chen <dehao@google.com>
24468 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24469 and callee count to get clone count.
24470 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24471 count in copy_body.
24473 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24475 PR rtl-optimization/61243
24476 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24478 2014-05-20 Xinliang David Li <davidxl@google.com>
24480 * cgraphunit.c (walk_polymorphic_call_targets): Add
24481 dbgcnt and fopt-info support.
24482 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24483 * ipa-devirt.c (ipa_devirt): Ditto.
24484 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24485 * ipa.c (walk_polymorphic_call_targets): Ditto.
24486 * gimple-fold.c (fold_gimple_assign): Ditto.
24487 (gimple_fold_call): Ditto.
24488 * dbgcnt.def: New counter.
24490 2014-05-20 DJ Delorie <dj@redhat.com>
24492 * config/msp430/msp430.md (split): Don't allow subregs when
24493 splitting SImode adds.
24494 (andneghi): Fix subtraction logic.
24495 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24497 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24499 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24501 * except.c (switch_to_exception_section, resolve_unique_section,
24502 get_named_text_section, default_function_rodata_section,
24503 align_variable, get_block_for_decl, default_section_type_flags):
24504 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24505 * symtab.c (symtab_add_to_same_comdat_group,
24506 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24507 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24509 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24510 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24511 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24512 (c6x_function_in_section_p): Likewise.
24513 * config/darwin.c (machopic_select_section): Likewise.
24514 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24515 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24516 * config/mep/mep.c (mep_select_section): LIkewise.
24517 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24519 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24521 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24522 EH region of calls to pure functions that can throw an exception.
24523 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24524 (copy_reference_ops_from_call): Also copy the EH region of the call if
24525 it can throw an exception.
24527 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24529 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24530 nested VEC_SELECTs that are inverses of each other.
24532 2014-05-20 Richard Biener <rguenther@suse.de>
24534 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24535 (extract_and_process_scc_for_name): not here.
24536 (cond_dom_walker::before_dom_children): Only process
24537 stmts that end the BB in interesting ways.
24538 (run_scc_vn): Mark param uses as visited.
24540 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24542 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24545 2014-05-20 Nick Clifton <nickc@redhat.com>
24547 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24548 (msp430_gimplify_va_arg_expr): New function.
24549 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24551 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24552 operand 0 in order to prevent confusion about the number of
24553 registers involved.
24555 2014-05-20 Richard Biener <rguenther@suse.de>
24557 PR tree-optimization/61221
24558 * tree-ssa-pre.c (el_to_update): Remove.
24559 (eliminate_dom_walker::before_dom_children): Handle released
24560 VDEFs by value-numbering them to the associated VUSE. Update
24561 stmt immediately for substituted call address.
24562 (eliminate): Remove delayed stmt updating code.
24563 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24564 possibly late re-numbered vuses.
24565 (vn_reference_lookup_2): Adjust.
24566 (vn_reference_lookup_pieces): Likewise.
24567 (vn_reference_lookup): Likewise.
24569 2014-05-20 Richard Biener <rguenther@suse.de>
24571 * config.gcc: Remove need_64bit_hwint.
24572 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24573 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24575 * config.in: Regenerate.
24576 * configure: Likewise.
24578 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24580 * doc/extend.texi: Create Label Attributes section,
24581 move all label attributes into it and reference it.
24583 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24585 * arm.c (thumb1_reorg): When scanning backwards skip anything
24586 that's not a proper insn.
24588 2014-05-19 Richard Biener <rguenther@suse.de>
24590 PR tree-optimization/61221
24591 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24592 Do nothing for unreachable blocks.
24593 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24594 Improve unreachability detection.
24596 2014-05-19 Richard Biener <rguenther@suse.de>
24598 PR tree-optimization/61209
24599 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24601 2014-05-19 Nick Clifton <nickc@redhat.com>
24603 * except.c (init_eh): Fix computation of builtin setjmp buffer
24604 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24606 2014-05-19 Richard Biener <rguenther@suse.de>
24608 PR tree-optimization/61184
24609 * tree-vrp.c (is_negative_overflow_infinity): Use
24610 TREE_OVERFLOW_P and do that check first.
24611 (is_positive_overflow_infinity): Likewise.
24612 (is_overflow_infinity): Likewise.
24613 (vrp_operand_equal_p): Properly treat operands with
24614 differing overflow as not equal.
24616 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24618 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24619 shift simplification where it was intended.
24621 2014-05-19 Christian Bruel <christian.bruel@st.com>
24624 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24626 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24629 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24632 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24634 * reg-notes.def (CROSSING_JUMP): Likewise.
24635 * rtl.h (rtx_def): Update comment for jump flag.
24636 (CROSSING_JUMP_P): Define.
24637 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24638 of a REG_CROSSING_JUMP note.
24639 * cfghooks.c (tidy_fallthru_edges): Likewise.
24640 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24641 * emit-rtl.c (try_split): Likewise.
24642 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24643 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24644 * jump.c (redirect_jump_2): Likewise.
24645 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24646 (relax_delay_slots): Likewise.
24647 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24648 (bbit_di): Likewise.
24649 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24650 * config/sh/sh.md (jump_compact): Likewise.
24651 * bb-reorder.c (rotate_loop): Likewise.
24652 (pass_duplicate_computed_gotos::execute): Likewise.
24653 (add_reg_crossing_jump_notes): Rename to...
24654 (update_crossing_jump_flags): ...this.
24655 (pass_partition_blocks::execute): Update accordingly.
24657 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24659 * tree.h: Remove extraneous template <>.
24661 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24663 * ipa.c (symtab_remove_unreachable_nodes): Remove
24664 symbol from comdat group if its body was eliminated.
24665 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24666 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24667 (symtab_unregister_node): ... this one.
24668 (verify_symtab_base): More strict checking of comdats.
24669 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24671 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24673 * tree-pass.h (make_pass_ipa_comdats): New pass.
24674 * timevar.def (TV_IPA_COMDATS): New timevar.
24675 * passes.def (pass_ipa_comdats): Add.
24676 * Makefile.in (OBJS): Add ipa-comdats.o
24677 * ipa-comdats.c: New file.
24679 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24681 * ipa.c (update_visibility_by_resolution_info): New function.
24682 (function_and_variable_visibility): Use it.
24684 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24686 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24688 (FOR_EACH_DEFINED_SYMBOL): New macro.
24689 (varpool_first_static_initializer, varpool_next_static_initializer,
24690 varpool_first_defined_variable, varpool_next_defined_variable):
24692 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24694 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24696 * ggc-page.c (ggc_handle_finalizers): Add comment.
24698 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24700 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24701 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24702 (ggc_internal_cleared_alloc): Likewise.
24703 * ggc-page.c (finalizer): New class.
24704 (vec_finalizer): Likewise.
24705 (globals::finalizers): New member.
24706 (globals::vec_finalizers): Likewise.
24707 (ggc_internal_alloc): Record the finalizer if any for the block being
24709 (ggc_handle_finalizers): New function.
24710 (ggc_collect): Call ggc_handle_finalizers.
24711 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24713 (ggc_internal_cleared_alloc): Likewise.
24714 (finalize): New function.
24715 (need_finalization_p): Likewise.
24716 (ggc_alloc): Install the type's destructor as the finalizer if it
24717 might do something.
24718 (ggc_cleared_alloc): Likewise.
24719 (ggc_vec_alloc): Likewise.
24720 (ggc_cleared_vec_alloc): Likewise.
24722 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24724 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24726 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24728 * alias.c (record_alias_subset): Adjust.
24729 * bitmap.c (bitmap_element_allocate): Likewise.
24730 (bitmap_gc_alloc_stat): Likewise.
24731 * cfg.c (init_flow): Likewise.
24732 (alloc_block): Likewise.
24733 (unchecked_make_edge): Likewise.
24734 * cfgloop.c (alloc_loop): Likewise.
24735 (flow_loops_find): Likewise.
24736 (rescan_loop_exit): Likewise.
24737 * cfgrtl.c (init_rtl_bb_info): Likewise.
24738 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24739 (cgraph_allocate_node): Likewise.
24740 (cgraph_create_edge_1): Likewise.
24741 (cgraph_allocate_init_indirect_info): Likewise.
24742 * cgraphclones.c (cgraph_clone_edge): Likewise.
24743 * cgraphunit.c (add_asm_node): Likewise.
24744 (init_lowered_empty_function): Likewise.
24745 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24746 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24747 (alpha_use_linkage): Likewise.
24748 * config/arc/arc.c (arc_init_machine_status): Likewise.
24749 * config/arm/arm.c (arm_init_machine_status): Likewise.
24750 * config/avr/avr.c (avr_init_machine_status): Likewise.
24751 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24752 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24753 * config/cris/cris.c (cris_init_machine_status): Likewise.
24754 * config/darwin.c (machopic_indirection_name): Likewise.
24755 (darwin_build_constant_cfstring): Likewise.
24756 (darwin_enter_string_into_cfstring_table): Likewise.
24757 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24758 * config/frv/frv.c (frv_init_machine_status): Likewise.
24759 * config/i386/i386.c (get_dllimport_decl): Likewise.
24760 (ix86_init_machine_status): Likewise.
24761 (assign_386_stack_local): Likewise.
24762 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24763 (i386_pe_maybe_record_exported_symbol): Likewise.
24764 (i386_pe_record_stub): Likewise.
24765 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24766 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24767 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24768 (m32c_note_pragma_address): Likewise.
24769 * config/mep/mep.c (mep_init_machine_status): Likewise.
24770 (mep_note_pragma_flag): Likewise.
24771 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24772 (mips16_local_alias): Likewise.
24773 (mips_init_machine_status): Likewise.
24774 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24775 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24776 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24777 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24778 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24779 * config/pa/pa.c (pa_init_machine_status): Likewise.
24780 (pa_get_deferred_plabel): Likewise.
24781 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24782 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24783 (rs6000_init_machine_status): Likewise.
24784 (output_toc): Likewise.
24785 * config/s390/s390.c (s390_init_machine_status): Likewise.
24786 * config/score/score.c (score_output_external): Likewise.
24787 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24788 * config/spu/spu.c (spu_init_machine_status): Likewise.
24789 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24790 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24791 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24792 * coverage.c (coverage_end_function): Likewise.
24793 * dbxout.c (dbxout_init): Likewise.
24794 * doc/gty.texi: Don't mention variable_size attribute.
24795 * dwarf2cfi.c (new_cfi): Adjust.
24796 (new_cfi_row): Likewise.
24797 (copy_cfi_row): Likewise.
24798 (create_cie_data): Likewise.
24799 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24800 (new_loc_descr): Likewise.
24801 (find_AT_string_in_table): Likewise.
24802 (add_addr_table_entry): Likewise.
24803 (new_die): Likewise.
24804 (add_var_loc_to_decl): Likewise.
24805 (clone_die): Likewise.
24806 (clone_as_declaration): Likewise.
24807 (break_out_comdat_types): Likewise.
24808 (new_loc_list): Likewise.
24809 (add_loc_descr_to_each): Likewise.
24810 (add_location_or_const_value_attribute): Likewise.
24811 (add_linkage_name): Likewise.
24812 (lookup_filename): Likewise.
24813 (dwarf2out_var_location): Likewise.
24814 (new_line_info_table): Likewise.
24815 (dwarf2out_init): Likewise.
24816 (mem_loc_descriptor): Likewise.
24817 (loc_descriptor): Likewise.
24818 (add_const_value_attribute): Likewise.
24819 (tree_add_const_value_attribute): Likewise.
24820 (comp_dir_string): Likewise.
24821 (dwarf2out_vms_debug_main_pointer): Likewise.
24822 (string_cst_pool_decl): Likewise.
24823 * emit-rtl.c (set_mem_attrs): Likewise.
24824 (get_reg_attrs): Likewise.
24825 (start_sequence): Likewise.
24826 (init_emit): Likewise.
24827 (init_emit_regs): Likewise.
24828 * except.c (init_eh_for_function): Likewise.
24829 (gen_eh_region): Likewise.
24830 (gen_eh_region_catch): Likewise.
24831 (gen_eh_landing_pad): Likewise.
24832 (add_call_site): Likewise.
24833 * function.c (add_frame_space): Likewise.
24834 (insert_temp_slot_address): Likewise.
24835 (assign_stack_temp_for_type): Likewise.
24836 (get_hard_reg_initial_val): Likewise.
24837 (allocate_struct_function): Likewise.
24838 (prepare_function_start): Likewise.
24839 (types_used_by_var_decl_insert): Likewise.
24840 * gengtype.c (variable_size_p): Remove function.
24841 (enum alloc_quantity): Remove enum.
24842 (write_typed_alloc_def): Remove function.
24843 (write_typed_struct_alloc_def): Likewise.
24844 (write_typed_typedef_alloc_def): Likewise.
24845 (write_typed_alloc_defns): Likewise.
24847 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24848 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24849 * ggc.h (ggc_alloc): new function.
24850 (ggc_cleared_alloc): Likewise.
24851 (ggc_vec_alloc): Template on type of vector element, and remove
24852 element size argument.
24853 (ggc_cleared_vec_alloc): Likewise.
24854 * gimple.c (gimple_build_omp_for): Adjust.
24855 (gimple_copy): Likewise.
24856 * ipa-cp.c (get_replacement_map): Likewise.
24857 (find_aggregate_values_for_callers_subset): Likewise.
24858 (known_aggs_to_agg_replacement_list): Likewise.
24859 * ipa-devirt.c (get_odr_type): Likewise.
24860 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24861 (read_agg_replacement_chain): Likewise.
24862 * loop-iv.c (get_simple_loop_desc): Likewise.
24863 * lto-cgraph.c (input_node_opt_summary): Likewise.
24864 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24865 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24866 (input_eh_region): Likewise.
24867 (input_eh_lp): Likewise.
24868 (input_cfg): Likewise.
24869 * optabs.c (set_optab_libfunc): Likewise.
24870 (init_tree_optimization_optabs): Likewise.
24871 (set_conv_libfunc): Likewise.
24872 * passes.c (do_per_function_toporder): Likewise.
24873 * rtl.h: Don't use variable_size gty attribute.
24874 * sese.c (if_region_set_false_region): Adjust.
24875 * stringpool.c (gt_pch_save_stringpool): Likewise.
24876 * target-globals.c (save_target_globals): Likewise.
24877 * toplev.c (general_init): Likewise.
24878 * trans-mem.c (record_tm_replacement): Likewise.
24879 (split_bb_make_tm_edge): Likewise.
24880 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24881 * tree-data-ref.h (lambda_vector_new): Likewise.
24882 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24883 * tree-iterator.c (tsi_link_before): Likewise.
24884 (tsi_link_after): Likewise.
24885 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24886 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24887 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24888 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24889 * tree-ssa.c (init_tree_ssa): Adjust.
24890 * tree-ssanames.c (set_range_info): Likewise.
24891 (get_ptr_info): Likewise.
24892 (duplicate_ssa_name_ptr_info): Likewise.
24893 (duplicate_ssa_name_range_info): Likewise.
24894 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24895 (unpack_ts_fixed_cst_value_fields): Likewise.
24896 * tree.c (build_fixed): Likewise.
24897 (build_real): Likewise.
24898 (build_string): Likewise.
24899 (decl_priority_info): Likewise.
24900 (decl_debug_expr_insert): Likewise.
24901 (decl_value_expr_insert): Likewise.
24902 (decl_debug_args_insert): Likewise.
24903 (type_hash_add): Likewise.
24904 (build_omp_clause): Likewise.
24905 * ubsan.c (decl_for_type_insert): Likewise.
24906 * varasm.c (get_unnamed_section): Likewise.
24907 (get_noswitch_section): Likewise.
24908 (get_section): Likewise.
24909 (get_block_for_section): Likewise.
24910 (create_block_symbol): Likewise.
24911 (build_constant_desc): Likewise.
24912 (create_constant_pool): Likewise.
24913 (force_const_mem): Likewise.
24914 (record_tm_clone_pair): Likewise.
24915 * varpool.c (varpool_create_empty_node): Likewise.
24917 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24919 * dwarf2out.c (tree_add_const_value_attribute): Call
24920 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24921 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24922 instead of ggc_internal_<x>alloc_stat.
24923 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24924 (ggc_realloc): Likewise.
24925 * ggc-none.c (ggc_internal_alloc): Likewise.
24926 (ggc_internal_cleared_alloc): Likewise.
24927 * ggc-page.c: Likewise.
24928 * ggc.h (ggc_internal_alloc_stat): Likewise.
24929 (ggc_internal_alloc): Remove macro.
24930 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24931 (ggc_internal_cleared_alloc): Remove macro.
24932 (GGC_RESIZEVEC): Adjust.
24933 (ggc_resizevar): Remove macro.
24934 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24935 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24936 (ggc_internal_vec_cleared_alloc): Remove macro.
24937 (ggc_alloc_atomic_stat): Drop _stat suffix.
24938 (ggc_alloc_atomic): Remove macro.
24939 (ggc_alloc_cleared_atomic): Remove macro.
24940 (ggc_alloc_string_stat): Drop _stat suffix.
24941 (ggc_alloc_string): Remove macro.
24942 (ggc_alloc_rtx_def_stat): Adjust.
24943 (ggc_alloc_tree_node_stat): Likewise.
24944 (ggc_alloc_cleared_tree_node_stat): Likewise.
24945 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24946 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24947 * gimple.c (gimple_build_omp_for): Likewise.
24948 (gimple_copy): Likewise.
24949 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24950 * toplev.c (realloc_for_line_map): Adjust.
24951 * tree-data-ref.h (lambda_vector_new): Likewise.
24952 * tree-phinodes.c (allocate_phi_node): Likewise.
24953 * tree.c (grow_tree_vec_stat): Likewise.
24954 * vec.h (va_gc::reserve): Adjust.
24956 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24958 * config/microblaze/microblaze.c (break_handler): New Declaration.
24959 (microblaze_break_function_p,microblaze_is_break_handler): New.
24960 (compute_frame_size): Use microblaze_break_function_p.
24961 Add the test of break_handler.
24962 (microblaze_function_prologue) : Add the test of variable
24963 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24964 (microblaze_function_epilogue) : Add the test of break_handler.
24965 (microblaze_globalize_label) : Add the test of break_handler.
24966 Check the name by BREAK_HANDLER_NAME.
24968 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24970 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24971 microblaze_is_break_handler test.
24972 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24973 Use SYMBOL_REF_DECL.
24975 * config/microblaze/microblaze-protos.h
24976 (microblaze_break_function_p,microblaze_is_break_handler):
24979 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24980 new MicroBlaze break_handler functions.
24982 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24984 * doc/extend.texi (Size of an asm): Move node text according
24985 to its @menu entry position.
24987 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24989 PR tree-optimization/61140
24990 PR tree-optimization/61150
24991 PR tree-optimization/61197
24992 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24994 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24996 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24998 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
25000 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25001 __SIZEOF_INT128__ is defined.
25003 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25005 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25006 (rs6000_delegitimize_address): Use it.
25008 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25010 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25011 inplace argument. Store the new address in the original MEM when true.
25012 * emit-rtl.c (change_address_1): Likewise.
25013 (adjust_address_1, adjust_automodify_address_1, offset_address):
25014 Update accordingly.
25015 * rtl.h (plus_constant): Add an inplace argument.
25016 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
25017 when true. Avoid generating (plus X (const_int 0)).
25018 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25019 in-place. Pass true to plus_constant.
25020 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25022 2014-05-16 Dehao Chen <dehao@google.com>
25024 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25026 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25029 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25031 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25033 2014-05-16 Dehao Chen <dehao@google.com>
25035 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25036 optimize_function_for_size_p.
25037 * regs.h (REG_FREQ_FROM_BB): Likewise.
25039 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25042 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25043 negt_reg_operand cases.
25044 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25046 * config/sh/predicates.md (cbranch_treg_value): Simplify.
25048 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25050 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25053 2014-05-16 David Malcolm <dmalcolm@redhat.com>
25056 2014-04-29 David Malcolm <dmalcolm@redhat.com>
25058 * tree-cfg.c (dump_function_to_file): Dump the return type of
25059 functions, in a line to itself before the function body, mimicking
25060 the layout of a C function.
25062 2014-05-16 Dehao Chen <dehao@google.com>
25064 * cfghooks.c (make_forwarder_block): Use direct computation to
25065 get fall-through edge's count and frequency.
25067 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
25069 * config/arc/arc.c (arc_init): Fix typo in error message.
25070 * config/i386/i386.c (ix86_expand_builtin): Likewise.
25071 (split_stack_prologue_scratch_regno): Likewise.
25072 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25073 word from error message.
25075 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25077 * ira-costs.c: Fix typo in comment.
25079 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
25081 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25083 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
25085 * varpool.c (dump_varpool_node): Dump write-only flag.
25086 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25088 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25089 write-only variables.
25090 * ipa.c (process_references): New function.
25091 (set_readonly_bit): New function.
25092 (set_writeonly_bit): New function.
25093 (clear_addressable_bit): New function.
25094 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25095 fix handling of aliases.
25096 * cgraph.h (struct varpool_node): Add writeonly flag.
25098 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
25100 PR rtl-optimization/60969
25101 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25102 Calculate costs for this case.
25104 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
25106 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25107 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25109 2014-05-16 Richard Biener <rguenther@suse.de>
25111 PR tree-optimization/61194
25112 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25113 bool patterns ending in a COND_EXPR.
25115 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25117 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25119 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25121 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25122 where we were unable to cost an RTX.
25124 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25126 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25129 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25130 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25132 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25134 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25135 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25137 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25138 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25140 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25141 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25146 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25147 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25149 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25152 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25153 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25155 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25156 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25158 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25159 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25161 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25162 rotates and shifts.
25164 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25165 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25167 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25168 ZERO_EXTEND and SIGN_EXTEND better.
25170 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25171 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25173 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25174 logical operations.
25176 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25177 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25179 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25180 costs when costing loads and stores to memory.
25182 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25183 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25185 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25188 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25190 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25192 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25193 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25195 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25197 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25199 (aarch64_rtx_mult_cost): New.
25200 (aarch64_rtx_costs): Use it, refactor as appropriate.
25202 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25203 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25205 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25206 emit instructions, return number of instructions which would
25208 (aarch64_add_constant): Update call to aarch64_build_constant.
25209 (aarch64_output_mi_thunk): Likewise.
25210 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25213 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25215 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25216 (TARGET_RTX_COSTS): Call it.
25218 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25220 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25221 (cortexa57_vector_cost): Likewise.
25222 (cortexa57_tunings): Use them.
25224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25226 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25227 (cpu_addrcost_table): Use it.
25228 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25229 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25232 2014-05-16 Richard Biener <rguenther@suse.de>
25234 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25235 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25236 (visit_phi): Ignore edges marked as not executable.
25237 (class cond_dom_walker): New.
25238 (cond_dom_walker::before_dom_children): Value-number
25239 control statements and mark successor edges as not
25240 executable if possible.
25241 (run_scc_vn): First walk all control statements in
25242 dominator order, marking edges as not executable.
25243 * tree-inline.c (copy_edges_for_bb): Be not confused
25244 about random edge flags.
25246 2014-05-16 Richard Biener <rguenther@suse.de>
25248 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25250 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25253 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25254 (__TM_simple_begin): Use it.
25255 (__TM_begin): Likewise.
25257 2014-05-15 Martin Jambor <mjambor@suse.cz>
25260 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25261 type_preserved flag when the indirect edge is polymorphic.
25263 2014-05-15 Martin Jambor <mjambor@suse.cz>
25265 PR tree-optimization/61090
25266 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25267 build_ref_for_model.
25269 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25271 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25272 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25274 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25276 PR tree-optimization/61158
25277 * fold-const.c (fold_binary_loc): If X is zero-extended and
25278 shiftc >= prec, make sure zerobits is all ones instead of
25279 invoking undefined behavior.
25281 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25283 * regcprop.h: New file.
25284 * regcprop.c (skip_debug_insn_p): New decl.
25285 (replace_oldest_value_reg): Check skip_debug_insn_p.
25286 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25287 * shrink-wrap.c: Include regcprop.h.
25288 (prepare_shrink_wrap): Call
25289 copyprop_hardreg_forward_bb_without_debug_insn.
25291 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25293 * shrink-wrap.h: Update comment.
25294 * shrink-wrap.c: Update comment.
25295 (next_block_for_reg): Rename to live_edge_for_reg.
25296 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25297 (move_insn_for_shrink_wrap): Split live_edge.
25298 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25300 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25302 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25304 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25305 * config/sparc/sparc.md (fptype_ut699): New attribute.
25306 (in_branch_delay): Return false if -mfix-ut699 is specified and
25307 fptype_ut699 is set to single.
25308 (truncdfsf2): Add fptype_ut699 attribute.
25309 (fix_truncdfsi2): Likewise.
25310 (floatsisf2): Change fptype attribute.
25311 (fix_truncsfsi2): Likewise.
25312 (negtf2_notv9): Delete.
25313 (negtf2_v9): Likewise.
25314 (negtf2_hq): New instruction.
25315 (negtf2): New instruction and splitter.
25316 (negdf2_notv9): Rewrite.
25317 (abstf2_notv9): Delete.
25318 (abstf2_hq_v9): Likewise.
25319 (abstf2_v9): Likewise.
25320 (abstf2_hq): New instruction.
25321 (abstf2): New instruction and splitter.
25322 (absdf2_notv9): Rewrite.
25324 2014-05-14 Cary Coutant <ccoutant@google.com>
25327 * opts.c (common_handle_option): Don't special-case "-g".
25328 (set_debug_level): Default to at least level 2 with "-g".
25330 2014-05-14 DJ Delorie <dj@redhat.com>
25332 * config/msp430/msp430.c (msp430_builtin): Add
25333 MSP430_BUILTIN_DELAY_CYCLES.
25334 (msp430_init_builtins): Register void __delay_cycles(long long).
25335 (msp430_builtin_decl): Add it.
25336 (cg_magic_constant): New.
25337 (msp430_expand_delay_cycles): New.
25338 (msp430_expand_builtin): Call it.
25339 (msp430_print_operand_raw): Change integer printing from "int" to
25341 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25342 (delay_cycles_start): New.
25343 (delay_cycles_end): New.
25344 (delay_cycles_32): New.
25345 (delay_cycles_32x): New.
25346 (delay_cycles_16): New.
25347 (delay_cycles_16x): New.
25348 (delay_cycles_2): New.
25349 (delay_cycles_1): New.
25350 * doc/extend.texi: Document __delay_cycles().
25352 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25354 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25355 length attribute computation.
25357 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25360 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25362 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25365 * config/sparc/sparc.md: Fix types of low and high in DI constant
25366 splitter. Use gen_int_mode in some other splitters.
25368 2014-05-14 Martin Jambor <mjambor@suse.cz>
25371 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25373 2014-05-14 James Norris <jnorris@codesourcery.com>
25375 * omp-low.c (expand_parallel_call): Remove shadow variable.
25376 (expand_omp_taskreg): Likewise.
25378 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25380 * common/config/i386/i386-common.c
25381 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25382 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25383 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25384 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25385 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25386 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25387 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25388 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25389 xsavecintrin.h, xsavesintrin.h.
25390 (x86_64-*-*): Ditto.
25391 * config/i386/clflushoptintrin.h: New.
25392 * config/i386/xsavecintrin.h: Ditto.
25393 * config/i386/xsavesintrin.h: Ditto.
25394 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25395 (bit_XSAVES): Ditto.
25396 (bit_XSAVES): Ditto.
25397 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25398 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25400 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25401 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25402 OPTION_MASK_ISA_XSAVES.
25403 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25404 -mxsavec, -mxsaves.
25405 (PTA_CLFLUSHOPT) Define.
25406 (PTA_XSAVEC): Ditto.
25407 (PTA_XSAVES): Ditto.
25408 (ix86_option_override_internal): Handle new options.
25409 (ix86_valid_target_attribute_inner_p): Ditto.
25410 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25411 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25412 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25413 (bdesc_special_args): Add __builtin_ia32_xsaves,
25414 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25415 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25416 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25417 (ix86_expand_builtin): Handle new builtins.
25418 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25419 (TARGET_CLFLUSHOPT_P): Ditto.
25420 (TARGET_XSAVEC): Ditto.
25421 (TARGET_XSAVEC_P): Ditto.
25422 (TARGET_XSAVES): Ditto.
25423 (TARGET_XSAVES_P): Ditto.
25424 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25425 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25426 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25428 (ANY_XRSTOR64): Ditto.
25430 (xrstor): Change into <xrstor>.
25431 (xrstor_rex64): Change into <xrstor>_rex64.
25432 (xrstor64): Change into <xrstor>64
25434 * config/i386/i386.opt (mclflushopt): New.
25437 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25439 * doc/invoke.texi: Document new options.
25441 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25443 PR rtl-optimization/60866
25444 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25445 Default it to -1. Pass it down to init_simplejump_data.
25446 (init_simplejump_data): New parameter old_seqno. Pass it down
25447 to get_seqno_for_a_jump.
25448 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25449 initializing new jump seqno as a last resort. Add comment.
25450 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25451 jump and pass it down to sel_init_new_insn.
25452 (sel_redirect_edge_and_branch_force): Likewise.
25454 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25456 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25457 shifted values to avoid build warning.
25459 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25461 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25462 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25463 (cfg_layout_merge_blocks): Likewise.
25464 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25466 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25468 PR rtl-optimization/60901
25469 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25470 bb predecessor belongs to the same scheduling region. Adjust comment.
25472 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25474 * doc/sourcebuild.texi: (dfp_hw): Document.
25475 (p8vector_hw): Likewise.
25476 (powerpc_eabi_ok): Likewise.
25477 (powerpc_elfv2): Likewise.
25478 (powerpc_htm_ok): Likewise.
25479 (ppc_recip_hw): Likewise.
25480 (vsx_hw): Likewise.
25482 2014-05-13 Cary Coutant <ccoutant@google.com>
25484 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25486 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25488 * gengtype-parse.c (require3): Eliminate in favor of...
25490 (require_template_declaration): Update to support optional single *
25493 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25494 (create_user_defined_type): Handle a single level of explicit
25495 pointerness within template arguments.
25496 (struct write_types_data): Add field "kind".
25497 (filter_type_name): Handle "*" character.
25498 (write_user_func_for_structure_ptr): Require a write_types_data
25499 rather than just a prefix string, so that we can look up the kind
25500 of the wtd and use it as an index into wrote_user_func_for_ptr,
25501 ensuring that such functions are written at most once. Support
25502 subclasses by invoking the marking function of the ultimate base class.
25503 (write_user_func_for_structure_body): Require a write_types_data
25504 rather than just a prefix string, so that we can pass this to
25505 write_user_func_for_structure_ptr.
25506 (write_func_for_structure): Likewise.
25507 (ggc_wtd): Add initializer of new "kind" field.
25508 (pch_wtd): Likewise.
25510 * gengtype.h (enum write_types_kinds): New.
25511 (struct type): Add field wrote_user_func_for_ptr to the "s"
25514 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25516 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25517 instead of const_binop.
25518 (fold_binary_loc): Likewise.
25520 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25522 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25523 calculation to match get_ref_base_and_extent.
25525 2014-05-13 Catherine Moore <clm@codesourcery.com>
25526 Sandra Loosemore <sandra@codesourcery.com>
25528 * configure.ac: Fix assembly for explicit JALR relocation check.
25529 * configure: Regenerate.
25531 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25533 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25534 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25535 Remove associated type declarations and initialisations.
25536 (arm_expand_neon_builtin): Likewise.
25537 (neon_emit_pair_result_insn): Delete.
25538 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25539 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25540 (neon_vzip<mode>): Likewise.
25541 (neon_vuzp<mode>): Likewise.
25543 2014-05-13 Richard Biener <rguenther@suse.de>
25546 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25547 it needs revisiting whether the call still may be tail-called.
25549 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25551 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25552 * rtl.h (block_symbol): Reduce number of fields to 2.
25553 (rtx_def): Add u2.symbol_ref_flags.
25554 (SYMBOL_REF_FLAGS): Use it.
25555 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25556 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25557 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25558 Lower index of SYMBOL_REF_DATA.
25559 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25560 Print SYMBOL_REF_FLAGS at the same time.
25561 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25563 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25565 * rtl.def (VAR_LOCATION): Remove "i" field.
25566 * rtl.h (rtx_def): Add u2.var_location_status.
25567 (PAT_VAR_LOCATION_STATUS): Use it.
25568 (gen_rtx_VAR_LOCATION): Declare.
25569 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25570 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25571 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25573 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25575 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25576 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25578 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25580 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25581 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25582 * rtl.h (rtx_def): Add insn_uid to u2 field.
25583 (RTX_FLAG_CHECK8): Delete in favor of...
25584 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25585 (INSN_DELETED_P): Update accordingly.
25586 (INSN_UID): Use u2.insn_uid.
25587 (INSN_CHAIN_CODE_P): Define.
25588 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25589 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25590 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25591 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25592 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25593 indices accordingly.
25594 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25595 Update indices for insn-chain rtxes.
25596 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25597 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25598 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25599 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25600 * combine.c (try_combine): Likewise.
25601 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25603 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25605 * rtl.def (REG): Remove middle field.
25606 * rtl.h (rtx_def): Add orignal_regno to u2.
25607 (ORIGINAL_REGNO): Use it instead of field 1.
25608 (REG_ATTRS): Lower field index accordingly.
25609 * gengtype.c (adjust_field_rtx_def): Remove handling of
25610 ORIGINAL_REGNO. Move REG_ATTRS index down.
25611 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25612 code that prints the REGNO.
25614 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25616 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25619 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25621 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25623 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25625 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25626 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25628 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25630 * config/aarch64/aarch64-protos.h
25631 (aarch64_hard_regno_caller_save_mode): New prototype.
25632 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25634 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25636 2014-05-13 Christian Bruel <christian.bruel@st.com>
25638 * target.def (mode_switching): New hook vector.
25639 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25640 (mode_exit, modepriority_to_mode): Likewise.
25641 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25642 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25643 * target.h: Include tm.h and hard-reg-set.h.
25644 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25645 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25646 * doc/tm.texi Regenerate.
25647 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25648 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25649 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25650 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25651 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25652 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25653 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25654 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25655 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25656 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25657 (ix86_emit_mode_set): Hookify.
25658 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25660 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25661 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25662 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25663 (epiphany_mode_priority_to_mode): Remove declaration.
25664 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25665 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25666 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25668 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25669 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25670 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25672 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25675 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25676 is const0_rtx, return immediately. Don't test count == 0 when
25679 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25681 * Makefile.in: add shrink-wrap.o.
25682 * config/i386/i386.c: include "shrink-wrap.h"
25683 * function.c: Likewise.
25684 (requires_stack_frame_p, next_block_for_reg,
25685 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25686 dup_block_and_redirect): Move to shrink-wrap.c
25687 (thread_prologue_and_epilogue_insns): Extract three code segments
25688 as functions in shrink-wrap.c
25689 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25691 * shrink-wrap.c: New file.
25692 * shrink-wrap.h: New file.
25694 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25696 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25697 reference to Solaris.
25699 2014-05-12 Mike Stump <mikestump@comcast.net>
25702 * genattrtab.c (filename): Add.
25703 (convert_set_attr_alternative): Improve error message.
25704 (check_defs): Restore read_md_filename for error messages.
25705 (gen_insn): Save filename.
25707 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25709 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25710 -fno-local-ivars and -fivar-visibility.
25711 * c-family/c.opt: Make -Wshadow also implicitly enable
25714 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25716 * doc/tm.texi: Remove reference to deleted macro.
25717 * doc/tm.texi.in: Likewise.
25719 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25722 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25725 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25728 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25729 * config/arm/aout.h (License): Same.
25730 * config/arm/bpabi.h (License): Same.
25731 * config/arm/elf.h (License): Same.
25732 * config/arm/linux-elf.h (License): Same.
25733 * config/arm/linux-gas.h (License): Same.
25734 * config/arm/netbsd-elf.h (License): Same.
25735 * config/arm/uclinux-eabi.h (License): Same.
25736 * config/arm/uclinux-elf.h (License): Same.
25737 * config/arm/vxworks.h (License): Same.
25739 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25741 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25742 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25743 number of operands to 3.
25744 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25745 * tree-nested.c (convert_nonlocal_omp_clauses,
25746 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25747 * gimplify.c (gimplify_scan_omp_clauses): Handle
25748 OMP_CLAUSE_LINEAR_STMT.
25749 * omp-low.c (lower_rec_input_clauses): Fix typo.
25750 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25751 cast between Fortran boolean_type_node and C _Bool if
25754 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25756 PR tree-optimization/61136
25757 * wide-int.h (multiple_of_p): Define a version that doesn't return
25759 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25760 integer_zerop/const_binop pair.
25761 (multiple_of_p): Likewise, converting both operands to widest_int
25764 2014-05-09 Teresa Johnson <tejohnson@google.com>
25766 * cgraphunit.c (analyze_functions): Use correct dump file.
25768 2014-05-09 Florian Weimer <fweimer@redhat.com>
25770 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25772 (stack_protect_return_slot_p): New function.
25773 (expand_used_vars): Call stack_protect_decl_p and
25774 stack_protect_return_slot_p for -fstack-protector-strong.
25776 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25777 Andrew Haley <aph@redhat.com>
25778 Richard Sandiford <rdsandiford@googlemail.com>
25780 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25783 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25785 PR middle-end/61111
25786 * fold-const.c (fold_binary_loc): Changed width of mask.
25788 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25790 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25791 unsigned int initializers for regno_in, regno_out.
25793 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25796 * config/avr/avr.md (cc): Add new attribute set_vzn.
25797 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25798 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25799 with INC, DEC or NEG.
25800 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25801 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25802 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25804 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25807 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25809 * wide-int.cc (UTItype): Define.
25810 (UDWtype): Define for appropriate W_TYPE_SIZE.
25812 2014-05-09 Richard Biener <rguenther@suse.de>
25814 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25815 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25816 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25817 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25818 ssa_propagate): Adjust.
25820 2014-05-08 Jeff Law <law@redhat.com>
25822 PR tree-optimization/61009
25823 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25824 tri-state rather than a boolean. When a block is too big to
25825 thread through, inform caller via negative return value.
25826 (thread_across_edge): If a block was too big for normal threading,
25827 then it's too big for a joiner too, so remove temporary equivalences
25828 and return immediately.
25830 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25831 Matthias Klose <doko@ubuntu.com>
25834 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25836 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25839 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25841 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25844 * config/alpha/alpha.c: Include gimple-iterator.h.
25845 (alpha_gimple_fold_builtin): New function. Move
25846 ALPHA_BUILTIN_UMULH folding from ...
25847 (alpha_fold_builtin): ... here.
25848 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25850 2014-05-08 Wei Mi <wmi@google.com>
25853 * config/i386/i386.c (ix86_compute_frame_layout): Update
25854 preferred_stack_boundary for call, expanded from tls descriptor.
25855 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25856 to depend on SP register.
25857 (*tls_local_dynamic_base_32_gnu): Ditto.
25858 (*tls_local_dynamic_32_once): Ditto.
25859 (tls_global_dynamic_64_<mode>): Set
25860 ix86_tls_descriptor_calls_expanded_in_cfun.
25861 (tls_local_dynamic_base_64_<mode>): Ditto.
25862 (tls_global_dynamic_32): Set
25863 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25864 to depend on SP register.
25865 (tls_local_dynamic_base_32): Ditto.
25867 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25869 * config/arm/arm_neon.h: Update comment.
25870 * config/arm/neon-docgen.ml: Delete.
25871 * config/arm/neon-gen.ml: Delete.
25872 * doc/arm-neon-intrinsics.texi: Update comment.
25874 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25876 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25878 (vand, vorr, veor, vorn, vbic): Remove.
25879 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25881 (neon_vsub_unspec): Likewise.
25882 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25884 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25886 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25887 (vadd_s16): Likewise.
25888 (vadd_s32): Likewise.
25889 (vadd_f32): Likewise.
25890 (vadd_u8): Likewise.
25891 (vadd_u16): Likewise.
25892 (vadd_u32): Likewise.
25893 (vadd_s64): Likewise.
25894 (vadd_u64): Likewise.
25895 (vaddq_s8): Likewise.
25896 (vaddq_s16): Likewise.
25897 (vaddq_s32): Likewise.
25898 (vaddq_s64): Likewise.
25899 (vaddq_f32): Likewise.
25900 (vaddq_u8): Likewise.
25901 (vaddq_u16): Likewise.
25902 (vaddq_u32): Likewise.
25903 (vaddq_u64): Likewise.
25904 (vmul_s8): Likewise.
25905 (vmul_s16): Likewise.
25906 (vmul_s32): Likewise.
25907 (vmul_f32): Likewise.
25908 (vmul_u8): Likewise.
25909 (vmul_u16): Likewise.
25910 (vmul_u32): Likewise.
25911 (vmul_p8): Likewise.
25912 (vmulq_s8): Likewise.
25913 (vmulq_s16): Likewise.
25914 (vmulq_s32): Likewise.
25915 (vmulq_f32): Likewise.
25916 (vmulq_u8): Likewise.
25917 (vmulq_u16): Likewise.
25918 (vmulq_u32): Likewise.
25919 (vsub_s8): Likewise.
25920 (vsub_s16): Likewise.
25921 (vsub_s32): Likewise.
25922 (vsub_f32): Likewise.
25923 (vsub_u8): Likewise.
25924 (vsub_u16): Likewise.
25925 (vsub_u32): Likewise.
25926 (vsub_s64): Likewise.
25927 (vsub_u64): Likewise.
25928 (vsubq_s8): Likewise.
25929 (vsubq_s16): Likewise.
25930 (vsubq_s32): Likewise.
25931 (vsubq_s64): Likewise.
25932 (vsubq_f32): Likewise.
25933 (vsubq_u8): Likewise.
25934 (vsubq_u16): Likewise.
25935 (vsubq_u32): Likewise.
25936 (vsubq_u64): Likewise.
25937 (vand_s8): Likewise.
25938 (vand_s16): Likewise.
25939 (vand_s32): Likewise.
25940 (vand_u8): Likewise.
25941 (vand_u16): Likewise.
25942 (vand_u32): Likewise.
25943 (vand_s64): Likewise.
25944 (vand_u64): Likewise.
25945 (vandq_s8): Likewise.
25946 (vandq_s16): Likewise.
25947 (vandq_s32): Likewise.
25948 (vandq_s64): Likewise.
25949 (vandq_u8): Likewise.
25950 (vandq_u16): Likewise.
25951 (vandq_u32): Likewise.
25952 (vandq_u64): Likewise.
25953 (vorr_s8): Likewise.
25954 (vorr_s16): Likewise.
25955 (vorr_s32): Likewise.
25956 (vorr_u8): Likewise.
25957 (vorr_u16): Likewise.
25958 (vorr_u32): Likewise.
25959 (vorr_s64): Likewise.
25960 (vorr_u64): Likewise.
25961 (vorrq_s8): Likewise.
25962 (vorrq_s16): Likewise.
25963 (vorrq_s32): Likewise.
25964 (vorrq_s64): Likewise.
25965 (vorrq_u8): Likewise.
25966 (vorrq_u16): Likewise.
25967 (vorrq_u32): Likewise.
25968 (vorrq_u64): Likewise.
25969 (veor_s8): Likewise.
25970 (veor_s16): Likewise.
25971 (veor_s32): Likewise.
25972 (veor_u8): Likewise.
25973 (veor_u16): Likewise.
25974 (veor_u32): Likewise.
25975 (veor_s64): Likewise.
25976 (veor_u64): Likewise.
25977 (veorq_s8): Likewise.
25978 (veorq_s16): Likewise.
25979 (veorq_s32): Likewise.
25980 (veorq_s64): Likewise.
25981 (veorq_u8): Likewise.
25982 (veorq_u16): Likewise.
25983 (veorq_u32): Likewise.
25984 (veorq_u64): Likewise.
25985 (vbic_s8): Likewise.
25986 (vbic_s16): Likewise.
25987 (vbic_s32): Likewise.
25988 (vbic_u8): Likewise.
25989 (vbic_u16): Likewise.
25990 (vbic_u32): Likewise.
25991 (vbic_s64): Likewise.
25992 (vbic_u64): Likewise.
25993 (vbicq_s8): Likewise.
25994 (vbicq_s16): Likewise.
25995 (vbicq_s32): Likewise.
25996 (vbicq_s64): Likewise.
25997 (vbicq_u8): Likewise.
25998 (vbicq_u16): Likewise.
25999 (vbicq_u32): Likewise.
26000 (vbicq_u64): Likewise.
26001 (vorn_s8): Likewise.
26002 (vorn_s16): Likewise.
26003 (vorn_s32): Likewise.
26004 (vorn_u8): Likewise.
26005 (vorn_u16): Likewise.
26006 (vorn_u32): Likewise.
26007 (vorn_s64): Likewise.
26008 (vorn_u64): Likewise.
26009 (vornq_s8): Likewise.
26010 (vornq_s16): Likewise.
26011 (vornq_s32): Likewise.
26012 (vornq_s64): Likewise.
26013 (vornq_u8): Likewise.
26014 (vornq_u16): Likewise.
26015 (vornq_u32): Likewise.
26016 (vornq_u64): Likewise.
26018 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26020 * wide-int.cc (UTItype): Define.
26021 (UDWtype): Define for appropriate W_TYPE_SIZE.
26023 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
26025 PR tree-optimization/59100
26026 * tree-ssa-phiopt.c: Include tree-inline.h.
26027 (neutral_element_p, absorbing_element_p): New functions.
26028 (value_replacement): Handle conditional binary operations with a
26029 neutral or absorbing element.
26031 2014-05-08 Richard Biener <rguenther@suse.de>
26033 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26034 folding the expression.
26035 (valueize_expr): Remove.
26036 (visit_reference_op_load): Do not valueize the result of
26038 (simplify_binary_expression): Likewise.
26039 (simplify_unary_expression): Likewise.
26041 2014-05-08 Richard Biener <rguenther@suse.de>
26043 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26044 looking at TYPE_ARG_TYPES.
26046 2014-05-08 Richard Biener <rguenther@suse.de>
26048 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26049 pointer propagation special-case.
26051 2014-05-08 Bin Cheng <bin.cheng@arm.com>
26053 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26054 core part of address expressions.
26056 2014-05-08 Alan Modra <amodra@gmail.com>
26059 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26060 loads and stores when -mno-strict-align at any alignment.
26061 (expand_block_clear): Similarly. Also correct calculation of
26064 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
26066 PR middle-end/39246
26067 * tree-complex.c (expand_complex_move): Keep line info when expanding
26069 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26070 of complex expression. Use new argument to display correct location
26071 for values coming from phi statement.
26072 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26073 (warn_uninitialized_phi): Pass location of phi argument to
26075 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26076 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26078 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26080 * config/rs6000/predicates.md (indexed_address_mem): New.
26081 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26082 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26083 fpstore_ux, fpstore_u.
26084 (sign_extend, indexed, update): New.
26085 (cell_micro): Adjust.
26086 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26087 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26088 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26089 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26090 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26091 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26092 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26093 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26094 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26095 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26096 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26097 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26098 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26099 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26100 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26102 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26103 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26104 *vsx_extract_<mode>_store): Adjust.
26105 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26106 is_cracked_insn, insn_must_be_first_in_group,
26107 insn_must_be_last_in_group): Adjust.
26109 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26111 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26112 ppc440-fpstore): Adjust.
26113 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26114 ppc476-fpstore): Adjust.
26115 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26116 ppc601-fpstore): Adjust.
26117 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26119 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26121 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26122 ppc7450-fpstore): Adjust.
26123 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26124 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26125 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26127 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26128 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26129 cell-fpstore, cell-fpstore-update): Adjust.
26130 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26131 ppce300c3_store, ppce300c3_fpstore): Adjust.
26132 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26133 e500mc_fpstore): Adjust.
26134 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26135 e500mc64_store, e500mc64_fpstore): Adjust.
26136 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26137 e5500_fpstore): Adjust.
26138 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26139 e6500_fpstore): Adjust.
26140 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26142 * config/rs6000/power4.md (power4-load, power4-load-ext,
26143 power4-load-ext-update, power4-load-ext-update-indexed,
26144 power4-load-update-indexed, power4-load-update, power4-fpload,
26145 power4-fpload-update, power4-store, power4-store-update,
26146 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26148 * config/rs6000/power5.md (power5-load, power5-load-ext,
26149 power5-load-ext-update, power5-load-ext-update-indexed,
26150 power5-load-update-indexed, power5-load-update, power5-fpload,
26151 power5-fpload-update, power5-store, power5-store-update,
26152 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26154 * config/rs6000/power6.md (power6-load, power6-load-ext,
26155 power6-load-update, power6-load-update-indexed,
26156 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26157 power6-fpload-update, power6-store, power6-store-update,
26158 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26160 * config/rs6000/power7.md (power7-load, power7-load-ext,
26161 power7-load-update, power7-load-update-indexed,
26162 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26163 power7-fpload-update, power7-store, power7-store-update,
26164 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26166 * config/rs6000/power8.md (power8-load, power8-load-update,
26167 power8-load-ext, power8-load-ext-update, power8-fpload,
26168 power8-fpload-update, power8-store, power8-store-update-indexed,
26169 power8-fpstore, power8-fpstore-update): Adjust.
26170 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26172 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26173 titan_lsu_store, titan_lsu_fpstore): Adjust.
26174 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26176 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26179 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26180 unrolled byte insns. Emit address increments after move insns.
26182 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26184 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26185 const_gimple, rather than a gimple.
26186 (gimple_call_builtin_p): Likewise, for the three variants.
26188 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26189 (gimple_call_builtin_p): Likewise, for the three variants.
26191 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26193 PR tree-optimization/61095
26194 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26196 2014-05-07 Richard Biener <rguenther@suse.de>
26198 PR tree-optimization/61034
26199 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26200 (maybe_skip_until): Use translate to take into account
26201 lattices when trying to do disambiguations.
26202 (get_continuation_for_phi_1): Likewise.
26203 (get_continuation_for_phi): Adjust for added translate arguments.
26204 (walk_non_aliased_vuses): Likewise.
26205 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26206 (walk_non_aliased_vuses): Likewise.
26207 (call_may_clobber_ref_p_1): Declare.
26208 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26209 calls. Stop early if we are only supposed to disambiguate.
26210 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26212 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26214 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26215 Emit an error when the function has arguments.
26217 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26219 * cfgloop.h (unswitch_loops): Remove.
26220 * doc/passes.texi: Remove references to loop-unswitch.c
26221 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26223 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26225 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26226 check for loads group of length 3.
26227 (vect_permute_load_chain): New permutations for loads group of
26229 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26230 of vec_perm_shuffle for the new permutations.
26232 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26234 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26235 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26236 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26237 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26238 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26239 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26240 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26241 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26243 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26245 * loop-unswitch.c: Delete.
26247 2014-05-07 Richard Biener <rguenther@suse.de>
26249 * config.gcc: Always set need_64bit_hwint to yes.
26251 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26253 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26254 of using optimize_size.
26256 2014-05-06 Mike Stump <mikestump@comcast.net>
26258 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26260 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26262 * config/i386/sse.md (*mov<mode>_internal)
26263 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26264 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26265 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26266 (*<code><mode>3, *andnot<mode>3<mask_name>)
26267 (<mask_codefor><code><mode>3<mask_name>): Only consider
26268 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26270 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26273 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26275 * lra-constraints.c (valid_address_p): Move earlier in file.
26276 Add a constraint argument to the address_info version.
26277 (satisfies_memory_constraint_p): New function.
26278 (satisfies_address_constraint_p): Likewise.
26279 (process_alt_operands, curr_insn_transform): Use them.
26280 (process_address): Pass the constraint to valid_address_p when
26281 checking address operands.
26283 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26285 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26286 to their respective blocks. Fix inadvertent use of "node".
26288 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26290 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26292 (init_emit_once): ...here.
26293 * rtl.h (init_derived_machine_modes): Declare.
26294 * toplev.c (do_compile): Call it even if no_backend.
26296 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26297 Mike Stump <mikestump@comcast.net>
26298 Richard Sandiford <rdsandiford@googlemail.com>
26299 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26301 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26302 (rtx_equal_for_memref_p): Update comment.
26303 (adjust_offset_for_component_ref): Use wide-int interfaces.
26304 * builtins.c (get_object_alignment_2): Likewise.
26305 (c_readstr): Likewise.
26306 (target_char_cast): Add comment.
26307 (determine_block_size): Use wide-int interfaces.
26308 (expand_builtin_signbit): Likewise.
26309 (fold_builtin_int_roundingfn): Likewise.
26310 (fold_builtin_bitop): Likewise.
26311 (fold_builtin_bswap): Likewise.
26312 (fold_builtin_logarithm): Use signop.
26313 (fold_builtin_pow): Likewise.
26314 (fold_builtin_memory_op): Use wide-int interfaces.
26315 (fold_builtin_object_size): Likewise.
26316 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26317 nb_iterations_estimate.
26318 (record_niter_bound): Use wide-int interfaces.
26319 (get_estimated_loop_iterations_int): Likewise.
26320 (get_estimated_loop_iterations): Likewise.
26321 (get_max_loop_iterations): Likewise.
26322 * cfgloop.h: Include wide-int.h.
26323 (struct nb_iter_bound): Change bound to widest_int.
26324 (struct loop): Change nb_iterations_upper_bound and
26325 nb_iterations_estimate to widest_int.
26326 (record_niter_bound): Switch to use widest_int.
26327 (get_estimated_loop_iterations): Likewise.
26328 (get_max_loop_iterations): Likewise.
26329 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26330 update for wide-int.
26331 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26332 * combine.c (try_combine): Likewise.
26333 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26334 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26336 (aarch64_float_const_representable_p): Likewise.
26337 * config/arc/arc.c: Include wide-int.h.
26338 (arc_can_use_doloop_p): Use wide-int interfaces.
26339 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26340 (vfp3_const_double_index): Likewise.
26341 * config/avr/avr.c (avr_out_round): Likewise.
26342 (avr_fold_builtin): Likewise.
26343 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26344 (bfin_can_use_doloop_p): Likewise.
26345 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26346 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26347 * config/i386/i386.c: Include wide-int.h.
26348 (ix86_data_alignment): Use wide-int interfaces.
26349 (ix86_local_alignment): Likewise.
26350 (ix86_emit_swsqrtsf): Update real_from_integer.
26351 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26352 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26353 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26354 (zero_constant): Likewise.
26355 (input_operand): Likewise.
26356 (splat_input_operand): Likewise.
26357 (non_logical_cint_operand): Change const_double to const_wide_int.
26358 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26359 (easy_altivec_constant): Remove comment.
26360 (paired_expand_vector_init): Use CONSTANT_P.
26361 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26362 (rs6000_emit_move): Update checks.
26363 (rs6000_aggregate_candidate): Use wide-int interfaces.
26364 (rs6000_expand_ternop_builtin): Likewise.
26365 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26366 (rs6000_assemble_integer): Likewise.
26367 (rs6000_hash_constant): Likewise.
26368 (output_toc): Likewise.
26369 (rs6000_rtx_costs): Likewise.
26370 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26371 * config/rs6000/rs6000-c.c: Include wide-int.h.
26372 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26373 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26374 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26375 Handle CONST_WIDE_INT.
26376 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26377 Use tree_fits_uhwi_p.
26378 * config/sparc/sparc.c: Include wide-int.h.
26379 (sparc_fold_builtin): Use wide-int interfaces.
26380 * config/vax/vax.c: Include wide-int.h.
26381 (vax_float_literal): Use real_from_integer.
26382 * coretypes.h (struct hwivec_def): New.
26384 (const_hwivec): New.
26385 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26386 (equiv_constant): Handle CONST_WIDE_INT.
26387 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26388 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26389 * dbxout.c (stabstr_U): Use wide-int interfaces.
26390 (dbxout_type): Update to use cst_fits_shwi_p.
26391 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26392 (TARGET_SUPPORTS_WIDE_INT): Add default.
26393 * dfp.c: Include wide-int.h.
26394 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26395 decimal_real_to_integer.
26396 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26397 decimal_real_to_integer.
26398 * doc/generic.texi (Constant expressions): Update for wide_int.
26399 * doc/rtl.texi (const_double): Likewise.
26400 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26401 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26402 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26403 (REAL_VALUE_FROM_INT): Remove.
26404 (TARGET_SUPPORTS_WIDE_INT): New.
26405 * doc/tm.texi: Regenerate.
26406 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26407 * double-int.h: Include wide-int.h.
26408 (struct wi::int_traits): New.
26409 * dwarf2out.c (get_full_len): New.
26410 (dw_val_equal_p): Add case dw_val_class_wide_int.
26411 (size_of_loc_descr): Likewise.
26412 (output_loc_operands): Likewise.
26413 (insert_double): Remove.
26414 (insert_wide_int): New.
26415 (add_AT_wide): New.
26416 (print_die): Add case dw_val_class_wide_int.
26417 (attr_checksum): Likewise.
26418 (attr_checksum_ordered): Likewise.
26419 (same_dw_val_p): Likewise.
26420 (size_of_die): Likewise.
26421 (value_format): Likewise.
26422 (output_die): Likewise.
26423 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26425 (clz_loc_descriptor): Use wide-int interfaces.
26426 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26427 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26428 (round_up_to_align): Use wide-int interfaces.
26429 (field_byte_offset): Likewise.
26430 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26431 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26432 CONST_DOUBLE handling. Use wide-int interfaces.
26433 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26434 (gen_enumeration_type_die): Use add_AT_wide.
26435 (hash_loc_operands): Add case dw_val_class_wide_int.
26436 (compare_loc_operands): Likewise.
26437 * dwarf2out.h: Include wide-int.h.
26438 (wide_int_ptr): New.
26439 (enum dw_val_class): Add dw_val_class_wide_int.
26440 (struct dw_val_struct): Add val_wide.
26441 * emit-rtl.c (const_wide_int_htab): New.
26442 (const_wide_int_htab_hash): New.
26443 (const_wide_int_htab_eq): New.
26444 (lookup_const_wide_int): New.
26445 (const_double_htab_hash): Use wide-int interfaces.
26446 (const_double_htab_eq): Likewise.
26447 (rtx_to_double_int): Conditionally compile for wide-int.
26448 (immed_double_int_const): Rename to immed_wide_int_const and
26449 update for wide-int.
26450 (immed_double_const): Conditionally compile for wide-int.
26451 (init_emit_once): Use wide-int interfaces.
26452 * explow.c (plus_constant): Likewise.
26453 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26454 (lshift_value): Use wide-int interfaces.
26455 (expand_mult): Likewise.
26456 (choose_multiplier): Likewise.
26457 (expand_smod_pow2): Likewise.
26458 (make_tree): Likewise.
26459 * expr.c (convert_modes): Consolidate handling of constants.
26460 Use wide-int interfaces.
26461 (emit_group_load_1): Add note.
26462 (store_expr): Update comment.
26463 (get_inner_reference): Use wide-int interfaces.
26464 (expand_constructor): Update comment.
26465 (expand_expr_real_2): Use wide-int interfaces.
26466 (expand_expr_real_1): Likewise.
26467 (reduce_to_bit_field_precision): Likewise.
26468 (const_vector_from_tree): Likewise.
26469 * final.c: Include wide-int-print.h.
26470 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26471 * fixed-value.c: Include wide-int.h.
26472 (fixed_from_string): Use wide-int interfaces.
26473 (fixed_to_decimal): Likewise.
26474 (fixed_convert_from_real): Likewise.
26475 (real_convert_from_fixed): Likewise.
26476 * fold-const.h (mem_ref_offset): Return an offset_int.
26477 (div_if_zero_remainder): Remove code parameter.
26478 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26479 Use wide-int interfaces.
26480 (may_negate_without_overflow_p): Use wide-int interfaces.
26481 (negate_expr_p): Likewise.
26482 (fold_negate_expr): Likewise.
26483 (int_const_binop_1): Likewise.
26484 (const_binop): Likewise.
26485 (fold_convert_const_int_from_int): Likewise.
26486 (fold_convert_const_int_from_real): Likewise.
26487 (fold_convert_const_int_from_fixed): Likewise.
26488 (fold_convert_const_fixed_from_int): Likewise.
26489 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26490 (sign_bit_p): Use wide-int interfaces.
26491 (make_range_step): Likewise.
26492 (build_range_check): Likewise. Pass an integer of the correct type
26493 instead of using integer_one_node.
26494 (range_predecessor): Pass an integer of the correct type instead
26495 of using integer_one_node.
26496 (range_successor): Likewise.
26497 (merge_ranges): Likewise.
26498 (unextend): Use wide-int interfaces.
26499 (extract_muldiv_1): Likewise.
26500 (fold_div_compare): Likewise.
26501 (fold_single_bit_test): Likewise.
26502 (fold_sign_changed_comparison): Likewise.
26503 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26504 (fold_plusminus_mult_expr): Use wide-int interfaces.
26505 (native_encode_int): Likewise.
26506 (native_interpret_int): Likewise.
26507 (fold_unary_loc): Likewise.
26508 (pointer_may_wrap_p): Likewise.
26509 (size_low_cst): Likewise.
26510 (mask_with_tz): Likewise.
26511 (fold_binary_loc): Likewise.
26512 (fold_ternary_loc): Likewise.
26513 (multiple_of_p): Likewise.
26514 (tree_call_nonnegative_warnv_p): Update calls to
26515 tree_int_cst_min_precision and real_from_integer.
26516 (fold_negate_const): Use wide-int interfaces.
26517 (fold_abs_const): Likewise.
26518 (fold_relational_const): Use tree_int_cst_lt.
26519 (round_up_loc): Use wide-int interfaces.
26520 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26521 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26522 * gengtype.c: Remove include of double-int.h.
26523 (do_typedef): Use wide-int interfaces.
26524 (open_base_files): Add wide-int.h.
26525 (main): Add offset_int and widest_int typedefs.
26526 * gengtype-lex.l: Handle "^".
26527 (CXX_KEYWORD): Add "static".
26528 * gengtype-parse.c (require3): New.
26529 (require_template_declaration): Handle constant template arguments
26530 and nested templates.
26531 * gengtype-state.c: Don't include "double-int.h".
26532 * genpreds.c (write_one_predicate_function): Update comment.
26533 (write_tm_constrs_h): Add check for hval and lval use in
26535 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26536 (add_to_sequence): Likewise.
26537 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26538 and const_double_operand.
26539 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26541 * gimple-fold.c (get_base_constructor): Likewise.
26542 (fold_array_ctor_reference): Likewise.
26543 (fold_nonarray_ctor_reference): Likewise.
26544 (fold_const_aggregate_ref_1): Likewise.
26545 (gimple_val_nonnegative_real_p): Likewise.
26546 (gimple_fold_indirect_ref): Likewise.
26547 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26548 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26549 (struct slsr_cand_d): Change index to be widest_int.
26550 (struct incr_info_d): Change incr to be widest_int.
26551 (alloc_cand_and_find_basis): Use wide-int interfaces.
26552 (slsr_process_phi): Likewise.
26553 (backtrace_base_for_ref): Likewise. Return a widest_int.
26554 (restructure_reference): Take a widest_int instead of a double_int.
26555 (slsr_process_ref): Use wide-int interfaces.
26556 (create_mul_ssa_cand): Likewise.
26557 (create_mul_imm_cand): Likewise.
26558 (create_add_ssa_cand): Likewise.
26559 (create_add_imm_cand): Take a widest_int instead of a double_int.
26560 (slsr_process_add): Use wide-int interfaces.
26561 (slsr_process_cast): Likewise.
26562 (slsr_process_copy): Likewise.
26563 (dump_candidate): Likewise.
26564 (dump_incr_vec): Likewise.
26565 (replace_ref): Likewise.
26566 (cand_increment): Likewise. Return a widest_int.
26567 (cand_abs_increment): Likewise.
26568 (replace_mult_candidate): Take a widest_int instead of a double_int.
26569 (replace_unconditional_candidate): Use wide-int interfaces.
26570 (incr_vec_index): Take a widest_int instead of a double_int.
26571 (create_add_on_incoming_edge): Likewise.
26572 (create_phi_basis): Use wide-int interfaces.
26573 (replace_conditional_candidate): Likewise.
26574 (record_increment): Take a widest_int instead of a double_int.
26575 (record_phi_increments): Use wide-int interfaces.
26576 (phi_incr_cost): Take a widest_int instead of a double_int.
26577 (lowest_cost_path): Likewise.
26578 (total_savings): Likewise.
26579 (analyze_increments): Use wide-int interfaces.
26580 (ncd_with_phi): Take a widest_int instead of a double_int.
26581 (ncd_of_cand_and_phis): Likewise.
26582 (nearest_common_dominator_for_cands): Likewise.
26583 (insert_initializers): Use wide-int interfaces.
26584 (all_phi_incrs_profitable): Likewise.
26585 (replace_one_candidate): Likewise.
26586 (replace_profitable_candidates): Likewise.
26587 * godump.c: Include wide-int-print.h.
26588 (go_output_typedef): Use wide-int interfaces.
26589 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26590 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26591 (build_loop_iteration_domains): Likewise.
26592 * hooks.h: Include wide-int.h rather than double-int.h.
26593 (hook_bool_dint_dint_uint_bool_true): Delete.
26594 (hook_bool_wint_wint_uint_bool_true): Declare.
26595 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26596 (hook_bool_wint_wint_uint_bool_true): New.
26597 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26599 (ubsan_expand_si_overflow_mul_check): Likewise.
26600 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26601 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26602 (get_ancestor_addr_info): Likewise.
26603 (ipa_modify_call_arguments): Likewise.
26604 * loop-doloop.c (doloop_modify): Likewise.
26605 (doloop_optimize): Likewise.
26606 * loop-iv.c (iv_number_of_iterations): Likewise.
26607 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26608 (unroll_loop_constant_iterations): Likewise.
26609 (decide_unroll_runtime_iterations): Likewise.
26610 (unroll_loop_runtime_iterations): Likewise.
26611 (decide_peel_simple): Likewise.
26612 (decide_unroll_stupid): Likewise.
26613 * lto-streamer-in.c (streamer_read_wi): Add.
26614 (input_cfg): Use wide-int interfaces.
26615 (lto_input_tree_1): Likewise.
26616 * lto-streamer-out.c (streamer_write_wi): Add.
26617 (hash_tree): Use wide-int interfaces.
26618 (output_cfg): Likewise.
26619 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26620 (GTFILES): Add wide-int.h and signop.h.
26621 (TAGS): Look for .cc files too.
26622 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26623 * optabs.c (expand_subword_shift): Likewise.
26624 (expand_doubleword_shift): Likewise.
26625 (expand_absneg_bit): Likewise.
26626 (expand_copysign_absneg): Likewise.
26627 (expand_copysign_bit): Likewise.
26628 * postreload.c (reload_cse_simplify_set): Likewise.
26629 * predict.c (predict_iv_comparison): Likewise.
26630 * pretty-print.h: Include wide-int-print.h.
26632 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26633 * print-tree.c: Include wide-int-print.h.
26634 (print_node_brief): Use wide-int interfaces.
26635 (print_node): Likewise.
26636 * read-rtl.c (validate_const_wide_int): New.
26637 (read_rtx_code): Add CONST_WIDE_INT case.
26638 * real.c: Include wide-int.h.
26639 (real_to_integer2): Delete.
26640 (real_to_integer): New function, returning a wide_int.
26641 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26642 (ten_to_ptwo): Update call to real_from_integer.
26643 (real_digit): Likewise.
26644 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26645 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26646 (REAL_VALUE_TO_INT): Delete.
26647 (real_to_integer): Declare a wide-int form.
26648 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26649 * recog.c (const_int_operand): Improve comment.
26650 (const_scalar_int_operand): New.
26651 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26652 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26653 (split_double): Likewise.
26654 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26655 (rtx_size): Likewise.
26656 (rtx_alloc_stat_v): New.
26657 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26658 (cwi_output_hex): New.
26659 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26660 (cwi_check_failed_bounds): New.
26661 * rtl.def (CONST_WIDE_INT): New.
26662 * rtl.h: Include <utility> and wide-int.h.
26663 (struct hwivec_def): New.
26664 (CWI_GET_NUM_ELEM): New.
26665 (CWI_PUT_NUM_ELEM): New.
26666 (struct rtx_def): Add num_elem and hwiv.
26667 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26668 (CASE_CONST_UNIQUE): Likewise.
26669 (CASE_CONST_ANY): Likewise.
26670 (CONST_SCALAR_INT_P): Likewise.
26671 (CONST_WIDE_INT_P): New.
26673 (HWIVEC_CHECK): New.
26674 (cwi_check_failed_bounds): New.
26676 (HWIVEC_CHECK): New.
26677 (CONST_WIDE_INT_VEC) New.
26678 (CONST_WIDE_INT_NUNITS) New.
26679 (CONST_WIDE_INT_ELT) New.
26680 (rtx_mode_t): New type.
26681 (wi::int_traits <rtx_mode_t>): New.
26683 (wi::min_value): New.
26684 (wi::max_value): New.
26686 (const_wide_int_alloc): New.
26687 (immed_wide_int_const): New.
26688 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26689 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26690 * signop.h: New file.
26691 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26692 (simplify_const_unary_operation): Use wide-int interfaces.
26693 (simplify_binary_operation_1): Likewise.
26694 (simplify_const_binary_operation): Likewise.
26695 (simplify_const_relational_operation): Likewise.
26696 (simplify_immed_subreg): Likewise.
26697 * stmt.c (expand_case): Likewise.
26698 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26699 signop rather than a bool.
26700 * stor-layout.c (layout_type): Use wide-int interfaces.
26701 (initialize_sizetypes): Update calls to
26702 set_min_and_max_values_for_integral_type.
26703 (set_min_and_max_values_for_integral_type): Take a signop rather
26704 than a bool. Use wide-int interfaces.
26705 (fixup_signed_type): Update accordingly. Remove
26706 HOST_BITS_PER_DOUBLE_INT limit.
26707 (fixup_unsigned_type): Likewise.
26708 * system.h (STATIC_CONSTANT_P): New.
26709 (STATIC_ASSERT): New.
26710 * target.def (can_use_doloop_p): Take widest_ints rather than
26712 * target.h: Include wide-int.h rather than double-int.h.
26713 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26715 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26716 rather than INT_CST_LT_UNSIGNED.
26717 (can_use_doloop_if_innermost): Take widest_ints rather than
26719 * tree-affine.c: Include wide-int-print.h.
26720 (double_int_ext_for_comb): Delete.
26721 (wide_int_ext_for_comb): New.
26722 (aff_combination_zero): Use wide-int interfaces.
26723 (aff_combination_const): Take a widest_int instead of a double_int.
26724 (aff_combination_elt): Use wide-int interfaces.
26725 (aff_combination_scale): Take a widest_int instead of a double_int.
26726 (aff_combination_add_elt): Likewise.
26727 (aff_combination_add_cst): Likewise.
26728 (aff_combination_add): Use wide-int interfaces.
26729 (aff_combination_convert): Likewise.
26730 (tree_to_aff_combination): Likewise.
26731 (add_elt_to_tree): Take a widest_int instead of a double_int.
26732 (aff_combination_to_tree): Use wide-int interfaces.
26733 (aff_combination_remove_elt): Likewise.
26734 (aff_combination_add_product): Take a widest_int instead of
26736 (aff_combination_mult): Use wide-int interfaces.
26737 (aff_combination_expand): Likewise.
26738 (double_int_constant_multiple_p): Delete.
26739 (wide_int_constant_multiple_p): New.
26740 (aff_combination_constant_multiple_p): Take a widest_int pointer
26741 instead of a double_int pointer.
26742 (print_aff): Use wide-int interfaces.
26743 (get_inner_reference_aff): Take a widest_int pointer
26744 instead of a double_int pointer.
26745 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26746 * tree-affine.h: Include wide-int.h.
26747 (struct aff_comb_elt): Change type of coef to widest_int.
26748 (struct affine_tree_combination): Change type of offset to widest_int.
26749 (double_int_ext_for_comb): Delete.
26750 (wide_int_ext_for_comb): New.
26751 (aff_combination_const): Use widest_int instead of double_int.
26752 (aff_combination_scale): Likewise.
26753 (aff_combination_add_elt): Likewise.
26754 (aff_combination_constant_multiple_p): Likewise.
26755 (get_inner_reference_aff): Likewise.
26756 (aff_comb_cannot_overlap_p): Likewise.
26757 (aff_combination_zero_p): Use wide-int interfaces.
26758 * tree.c: Include tree.h.
26759 (init_ttree): Use make_int_cst.
26760 (tree_code_size): Removed code for INTEGER_CST case.
26761 (tree_size): Add INTEGER_CST case.
26762 (make_node_stat): Update comment.
26763 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26764 (build_int_cst_type): Use wide-int interfaces.
26765 (double_int_to_tree): Likewise.
26766 (double_int_fits_to_tree_p): Delete.
26767 (force_fit_type_double): Delete.
26768 (force_fit_type): New.
26769 (int_cst_hash_hash): Use wide-int interfaces.
26770 (int_cst_hash_eq): Likewise.
26771 (build_int_cst_wide): Delete.
26772 (wide_int_to_tree): New.
26773 (cache_integer_cst): Use wide-int interfaces.
26774 (build_low_bits_mask): Likewise.
26775 (cst_and_fits_in_hwi): Likewise.
26776 (real_value_from_int_cst): Likewise.
26777 (make_int_cst_stat): New.
26778 (integer_zerop): Use wide_int interfaces.
26779 (integer_onep): Likewise.
26780 (integer_all_onesp): Likewise.
26781 (integer_pow2p): Likewise.
26782 (integer_nonzerop): Likewise.
26783 (tree_log2): Likewise.
26784 (tree_floor_log2): Likewise.
26785 (tree_ctz): Likewise.
26786 (int_size_in_bytes): Likewise.
26787 (mem_ref_offset): Return an offset_int rather than a double_int.
26788 (build_type_attribute_qual_variant): Use wide_int interfaces.
26789 (type_hash_eq): Likewise
26790 (tree_int_cst_equal): Likewise.
26791 (tree_int_cst_lt): Delete.
26792 (tree_int_cst_compare): Likewise.
26793 (tree_fits_shwi_p): Use wide_int interfaces.
26794 (tree_fits_uhwi_p): Likewise.
26795 (tree_int_cst_sign_bit): Likewise.
26796 (tree_int_cst_sgn): Likewise.
26797 (tree_int_cst_min_precision): Take a signop rather than a bool.
26798 (simple_cst_equal): Use wide_int interfaces.
26799 (compare_tree_int): Likewise.
26800 (iterative_hash_expr): Likewise.
26801 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26803 (get_type_static_bounds): Use wide_int interfaces.
26804 (tree_int_cst_elt_check_failed): New.
26805 (build_common_tree_nodes): Reordered to set prec before filling in
26807 (int_cst_value): Check cst_and_fits_in_hwi.
26808 (widest_int_cst_value): Use wide_int interfaces.
26809 (upper_bound_in_type): Likewise.
26810 (lower_bound_in_type): Likewise.
26811 (num_ending_zeros): Likewise.
26812 (drop_tree_overflow): Likewise.
26813 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26814 (gen_conditions_for_pow_cst_base): Likewise.
26815 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26816 (group_case_labels_stmt): Use wide-int interfaces.
26817 (verify_gimple_assign_binary): Likewise.
26818 (print_loop): Likewise.
26819 * tree-chrec.c (tree_fold_binomial): Likewise.
26820 * tree-core.h (struct tree_base): Add int_length.
26821 (struct tree_int_cst): Change rep of value.
26822 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26823 (dr_may_alias_p): Likewise.
26824 (max_stmt_executions_tree): Likewise.
26825 * tree.def (INTEGER_CST): Update comment.
26826 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26827 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26828 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26829 (dequeue_and_dump): Use wide-int interfaces.
26830 * tree.h: Include wide-int.h.
26831 (NULL_TREE): Moved to earlier loc in file.
26832 (TREE_INT_CST_ELT_CHECK): New.
26833 (tree_int_cst_elt_check_failed): New.
26835 (TREE_INT_CST): Delete.
26836 (TREE_INT_CST_LOW): Use wide-int interfaces.
26837 (TREE_INT_CST_HIGH): Delete.
26838 (TREE_INT_CST_NUNITS): New.
26839 (TREE_INT_CST_EXT_NUNITS): Likewise.
26840 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26841 (TREE_INT_CST_ELT): Likewise.
26842 (INT_CST_LT): Delete.
26843 (tree_int_cst_elt_check): New (two forms).
26844 (type_code_size): Update comment.
26845 (make_int_cst_stat, make_int_cst): New.
26846 (tree_to_double_int): Delete.
26847 (double_int_fits_to_tree_p): Delete.
26848 (force_fit_type_double): Delete.
26849 (build_int_cstu): Replace with out-of-line function.
26850 (build_int_cst_wide): Delete.
26851 (tree_int_cst_lt): Define inline.
26852 (tree_int_cst_le): New.
26853 (tree_int_cst_compare): Define inline.
26854 (tree_int_cst_min_precision): Take a signop rather than a bool.
26855 (wi::int_traits <const_tree>): New.
26856 (wi::int_traits <tree>): New.
26857 (wi::extended_tree): New.
26858 (wi::int_traits <wi::extended_tree>): New.
26859 (wi::to_widest): New.
26860 (wi::to_offset): New.
26861 (wi::fits_to_tree_p): New.
26862 (wi::min_value): New.
26863 (wi::max_value): New.
26864 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26865 (copy_tree_body_r): Likewise.
26866 * tree-object-size.c (compute_object_offset): Likewise.
26867 (addr_object_size): Likewise.
26868 * tree-predcom.c: Include wide-int-print.h.
26869 (struct dref_d): Change type of offset to widest_int.
26870 (dump_dref): Call wide-int printer.
26871 (aff_combination_dr_offset): Use wide-int interfaces.
26872 (determine_offset): Take a widest_int pointer rather than a
26873 double_int pointer.
26874 (split_data_refs_to_components): Use wide-int interfaces.
26875 (suitable_component_p): Likewise.
26876 (order_drefs): Likewise.
26877 (add_ref_to_chain): Likewise.
26878 (valid_initializer_p): Likewise.
26879 (determine_roots_comp): Likewise.
26880 * tree-pretty-print.c: Include wide-int-print.h.
26881 (dump_generic_node): Use wide-int interfaces.
26882 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26883 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26884 (move_fixed_address_to_symbol): Likewise.
26885 (move_hint_to_base): Likewise.
26886 (move_pointer_to_base): Likewise.
26887 (move_variant_to_index): Likewise.
26888 (most_expensive_mult_to_index): Likewise.
26889 (addr_to_parts): Likewise.
26890 (copy_ref_info): Likewise.
26891 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26892 (indirect_refs_may_alias_p): Likewise.
26893 (stmt_kills_ref_p_1): Likewise.
26894 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26895 * tree-ssa-ccp.c: Update comment at top of file. Include
26897 (struct prop_value_d): Change type of mask to widest_int.
26898 (extend_mask): New function.
26899 (dump_lattice_value): Use wide-int interfaces.
26900 (get_default_value): Likewise.
26901 (set_constant_value): Likewise.
26902 (set_value_varying): Likewise.
26903 (valid_lattice_transition): Likewise.
26904 (set_lattice_value): Likewise.
26905 (value_to_double_int): Delete.
26906 (value_to_wide_int): New.
26907 (get_value_from_alignment): Use wide-int interfaces.
26908 (get_value_for_expr): Likewise.
26909 (do_dbg_cnt): Likewise.
26910 (ccp_finalize): Likewise.
26911 (ccp_lattice_meet): Likewise.
26912 (bit_value_unop_1): Use widest_ints rather than double_ints.
26913 (bit_value_binop_1): Likewise.
26914 (bit_value_unop): Use wide-int interfaces.
26915 (bit_value_binop): Likewise.
26916 (bit_value_assume_aligned): Likewise.
26917 (evaluate_stmt): Likewise.
26918 (ccp_fold_stmt): Likewise.
26919 (visit_cond_stmt): Likewise.
26920 (ccp_visit_stmt): Likewise.
26921 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26922 (constant_pointer_difference): Likewise.
26923 (associate_pointerplus): Likewise.
26924 (combine_conversions): Likewise.
26925 * tree-ssa-loop.h: Include wide-int.h.
26926 (struct tree_niter_desc): Change type of max to widest_int.
26927 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26928 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26929 (remove_redundant_iv_tests): Likewise.
26930 (canonicalize_loop_induction_variables): Likewise.
26931 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26932 (constant_multiple_of): Take a widest_int pointer instead of
26933 a double_int pointer.
26934 (get_computation_aff): Use wide-int interfaces.
26935 (ptr_difference_cost): Likewise.
26936 (difference_cost): Likewise.
26937 (get_loop_invariant_expr_id): Likewise.
26938 (get_computation_cost_at): Likewise.
26939 (iv_elimination_compare_lt): Likewise.
26940 (may_eliminate_iv): Likewise.
26941 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26942 instead of double_int.
26943 (max_loop_iterations): Likewise.
26944 (max_stmt_executions): Likewise.
26945 (estimated_stmt_executions): Likewise.
26946 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26947 (split_to_var_and_offset): Use wide-int interfaces.
26948 (determine_value_range): Likewise.
26949 (bound_difference_of_offsetted_base): Likewise.
26950 (bounds_add): Take a widest_int instead of a double_int.
26951 (number_of_iterations_ne_max): Use wide-int interfaces.
26952 (number_of_iterations_ne): Likewise.
26953 (number_of_iterations_lt_to_ne): Likewise.
26954 (assert_loop_rolls_lt): Likewise.
26955 (number_of_iterations_lt): Likewise.
26956 (number_of_iterations_le): Likewise.
26957 (number_of_iterations_cond): Likewise.
26958 (number_of_iterations_exit): Likewise.
26959 (finite_loop_p): Likewise.
26960 (derive_constant_upper_bound_assign): Likewise.
26961 (derive_constant_upper_bound): Return a widest_int.
26962 (derive_constant_upper_bound_ops): Likewise.
26963 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26964 (record_estimate): Take a widest_int rather than a double_int.
26965 (record_nonwrapping_iv): Use wide-int interfaces.
26966 (double_int_cmp): Delete.
26967 (wide_int_cmp): New.
26968 (bound_index): Take a widest_int rather than a double_int.
26969 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26970 (maybe_lower_iteration_bound): Likewise.
26971 (estimate_numbers_of_iterations_loop): Likewise.
26972 (estimated_loop_iterations): Take a widest_int pointer than than
26973 a double_int pointer.
26974 (estimated_loop_iterations_int): Use wide-int interfaces.
26975 (max_loop_iterations): Take a widest_int pointer than than
26976 a double_int pointer.
26977 (max_loop_iterations_int): Use wide-int interfaces.
26978 (max_stmt_executions): Take a widest_int pointer than than
26979 a double_int pointer.
26980 (estimated_stmt_executions): Likewise.
26981 (n_of_executions_at_most): Use wide-int interfaces.
26982 (scev_probably_wraps_p): Likewise.
26983 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26984 to real_to_integer.
26985 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26987 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26988 double_ints. Adjust for trailing_wide_ints <3> representation.
26989 (set_nonzero_bits): Likewise.
26990 (get_range_info): Return wide_ints rather than double_ints.
26991 Adjust for trailing_wide_ints <3> representation.
26992 (get_nonzero_bits): Likewise.
26993 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26995 * tree-ssanames.h (struct range_info_def): Replace min, max and
26996 nonzero_bits with a trailing_wide_ints <3>.
26997 (set_range_info): Use wide_int_refs rather than double_ints.
26998 (set_nonzero_bits): Likewise.
26999 (get_range_info): Return wide_ints rather than double_ints.
27000 (get_nonzero_bits): Likewise.
27001 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27002 * tree-ssa-pre.c (phi_translate_1): Likewise.
27003 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27004 (acceptable_pow_call): Likewise.
27005 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27007 (vn_reference_fold_indirect): Likewise.
27008 (vn_reference_maybe_forwprop_address): Likewise.
27009 (valueize_refs_1): Likewise.
27010 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27011 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27012 tree_int_cst_lt and tree_int_cst_le.
27013 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27015 (streamer_alloc_tree): Likewise.
27016 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27017 (streamer_write_tree_header): Likewise.
27018 (streamer_write_integer_cst): Likewise.
27019 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27020 (build_constructors): Likewise.
27021 (array_value_type): Likewise.
27022 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27023 (vect_check_gather): Likewise.
27024 * tree-vect-generic.c (build_replicated_const): Likewise.
27025 (expand_vector_divmod): Likewise.
27026 * tree-vect-loop.c (vect_transform_loop): Likewise.
27027 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27028 (vect_do_peeling_for_alignment): Likewise.
27029 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27030 * tree-vrp.c: Include wide-int.h.
27031 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27032 (extract_range_from_assert): Use wide-int interfaces.
27033 (vrp_int_const_binop): Likewise.
27034 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27035 double_int pointers.
27036 (ranges_from_anti_range): Use wide-int interfaces.
27037 (quad_int_cmp): Delete.
27038 (quad_int_pair_sort): Likewise.
27039 (extract_range_from_binary_expr_1): Use wide-int interfaces.
27040 (extract_range_from_unary_expr_1): Likewise.
27041 (adjust_range_with_scev): Likewise.
27042 (masked_increment): Take and return wide_ints rather than double_ints.
27043 (register_edge_assert_for_2): Use wide-int interfaces.
27044 (check_array_ref): Likewise.
27045 (search_for_addr_array): Likewise.
27046 (maybe_set_nonzero_bits): Likewise.
27047 (union_ranges): Pass an integer of the correct type instead of
27048 using integer_one_node.
27049 (intersect_ranges): Likewise.
27050 (simplify_truth_ops_using_ranges): Likewise.
27051 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27052 (range_fits_type_p): Likewise.
27053 (simplify_cond_using_ranges): Likewise. Take a signop rather than
27055 (simplify_conversion_using_ranges): Use wide-int interfaces.
27056 (simplify_float_conversion_using_ranges): Likewise.
27057 (vrp_finalize): Likewise.
27058 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27059 (gimple_stringops_transform): Likewise.
27060 * varasm.c (decode_addr_const): Likewise.
27061 (const_hash_1): Likewise.
27062 (const_rtx_hash_1): Likewise
27063 (output_constant): Likewise.
27064 (array_size_for_constructor): Likewise.
27065 (output_constructor_regular_field): Likewise.
27066 (output_constructor_bitfield): Likewise.
27067 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27068 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27070 * gencheck.c: Define BITS_PER_UNIT.
27071 * wide-int.cc: New.
27073 * wide-int-print.cc: New.
27074 * wide-int-print.h: New.
27076 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27078 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27080 2014-05-06 Richard Biener <rguenther@suse.de>
27082 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27083 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27084 (TODO_verify_all): Adjust.
27085 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27086 TODO_verify_stmts and TODO_verify_rtl_sharing.
27087 * bb-reorder.c: Likewise.
27088 * cfgexpand.c: Likewise.
27089 * cprop.c: Likewise.
27091 * function.c: Likewise.
27092 * fwprop.c: Likewise.
27093 * gcse.c: Likewise.
27094 * gimple-ssa-isolate-paths.c: Likewise.
27095 * gimple-ssa-strength-reduction.c: Likewise.
27096 * ipa-split.c: Likewise.
27097 * loop-init.c: Likewise.
27098 * loop-unroll.c: Likewise.
27099 * lower-subreg.c: Likewise.
27100 * modulo-sched.c: Likewise.
27101 * postreload-gcse.c: Likewise.
27102 * predict.c: Likewise.
27103 * recog.c: Likewise.
27104 * sched-rgn.c: Likewise.
27105 * store-motion.c: Likewise.
27106 * tracer.c: Likewise.
27107 * trans-mem.c: Likewise.
27108 * tree-call-cdce.c: Likewise.
27109 * tree-cfg.c: Likewise.
27110 * tree-cfgcleanup.c: Likewise.
27111 * tree-complex.c: Likewise.
27112 * tree-eh.c: Likewise.
27113 * tree-emutls.c: Likewise.
27114 * tree-if-conv.c: Likewise.
27115 * tree-into-ssa.c: Likewise.
27116 * tree-loop-distribution.c: Likewise.
27117 * tree-object-size.c: Likewise.
27118 * tree-parloops.c: Likewise.
27119 * tree-pass.h: Likewise.
27120 * tree-sra.c: Likewise.
27121 * tree-ssa-ccp.c: Likewise.
27122 * tree-ssa-copy.c: Likewise.
27123 * tree-ssa-copyrename.c: Likewise.
27124 * tree-ssa-dce.c: Likewise.
27125 * tree-ssa-dom.c: Likewise.
27126 * tree-ssa-dse.c: Likewise.
27127 * tree-ssa-forwprop.c: Likewise.
27128 * tree-ssa-ifcombine.c: Likewise.
27129 * tree-ssa-loop-ch.c: Likewise.
27130 * tree-ssa-loop-ivcanon.c: Likewise.
27131 * tree-ssa-loop.c: Likewise.
27132 * tree-ssa-math-opts.c: Likewise.
27133 * tree-ssa-phiopt.c: Likewise.
27134 * tree-ssa-phiprop.c: Likewise.
27135 * tree-ssa-pre.c: Likewise.
27136 * tree-ssa-reassoc.c: Likewise.
27137 * tree-ssa-sink.c: Likewise.
27138 * tree-ssa-strlen.c: Likewise.
27139 * tree-ssa-tail-merge.c: Likewise.
27140 * tree-ssa-uncprop.c: Likewise.
27141 * tree-switch-conversion.c: Likewise.
27142 * tree-tailcall.c: Likewise.
27143 * tree-vect-generic.c: Likewise.
27144 * tree-vectorizer.c: Likewise.
27145 * tree-vrp.c: Likewise.
27146 * tsan.c: Likewise.
27147 * var-tracking.c: Likewise.
27148 * bt-load.c: Likewise.
27149 * cfgcleanup.c: Likewise.
27150 * combine-stack-adj.c: Likewise.
27151 * combine.c: Likewise.
27152 * compare-elim.c: Likewise.
27153 * config/epiphany/resolve-sw-modes.c: Likewise.
27154 * config/i386/i386.c: Likewise.
27155 * config/mips/mips.c: Likewise.
27156 * config/s390/s390.c: Likewise.
27157 * config/sh/sh_treg_combine.cc: Likewise.
27158 * config/sparc/sparc.c: Likewise.
27161 * final.c: Likewise.
27162 * ifcvt.c: Likewise.
27163 * mode-switching.c: Likewise.
27164 * passes.c: Likewise.
27165 * postreload.c: Likewise.
27167 * reg-stack.c: Likewise.
27168 * regcprop.c: Likewise.
27169 * regrename.c: Likewise.
27172 2014-05-06 Richard Biener <rguenther@suse.de>
27174 PR middle-end/61070
27175 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27176 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27178 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27181 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27183 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27184 Tom de Vries <tom@codesourcery.com>
27186 * target.def (call_fusage_contains_non_callee_clobbers): New
27188 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27190 (@node Miscellaneous Register Hooks): New node.
27191 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27192 * doc/tm.texi: Regenerate.
27194 2014-05-05 Marek Polacek <polacek@redhat.com>
27197 * opts.c (common_handle_option): Call error_at instead of warning_at.
27199 2014-05-05 Richard Biener <rguenther@suse.de>
27201 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27202 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27203 under the TODO_verify_il umbrella.
27205 2014-05-05 Richard Biener <rguenther@suse.de>
27207 * passes.c (execute_function_todo): Move TODO_verify_flow under
27208 the TODO_verify_ul umbrella.
27210 2014-05-05 Richard Biener <rguenther@suse.de>
27212 PR middle-end/61010
27213 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27214 X & CST away from a CST that is the mask of a mode.
27216 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27218 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27219 int argument to enum machine_mode.
27220 (picochip_class_max_nregs): Ditto.
27221 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27222 (picochip_class_max_nregs): Ditto.
27224 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27226 * target.def: Add new target hook.
27227 * doc/tm.texi: Regenerate.
27228 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27229 * targhooks.c (default_keep_leaf_when_profiled): New function.
27231 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27232 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27234 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27236 PR tree-optimization/60363
27237 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27238 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27239 (update_destination_phis): New parameter.
27240 (create_edge_and_update_destination_phis): Ditto.
27241 (ssa_fix_duplicate_block_edges): Pass new arguments.
27242 (thread_single_edge): Ditto.
27244 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27246 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27247 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27248 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27249 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27250 Use RS6000_BTM_HARD_FLOAT.
27251 (BU_MISC_2): Likewise.
27252 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27253 RS6000_BTM_HARD_FLOAT.
27254 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27255 is explicitly used.
27256 (rs6000_invalid_builtin): Add hard floating builtin support.
27257 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27258 hard float builtins.
27259 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27261 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27263 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27264 Add missing function* argument.
27266 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27268 * lra-constraints.c (valid_address_p): Move earlier in file.
27269 Add a constraint argument to the address_info version.
27270 (satisfies_memory_constraint_p): New function.
27271 (satisfies_address_constraint_p): Likewise.
27272 (process_alt_operands, curr_insn_transform): Use them.
27273 (process_address): Pass the constraint to valid_address_p when
27274 checking address operands.
27276 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27278 * config/mips/mips.c (mips_isa_rev): New variable.
27279 (mips_set_architecture): Set it.
27280 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27282 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27283 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27284 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27285 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27286 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27287 conditions in terms of mips_isa_rev.
27288 (mips_isa_rev): Declare.
27290 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27292 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27293 (prob_unlikely, prob_likely): Make variables const.
27295 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27297 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27299 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27301 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27303 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27305 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27306 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27307 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27309 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27310 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27312 Replace usage of ROUND_REG with sh_round_reg.
27313 Use CEIL instead of ROUND_ADVANCE.
27315 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27318 * config/sh/sh.c: Include stdlib headers before everything else.
27320 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27322 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27323 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27324 (gimplify_adjust_omp_clauses): Simd region is never
27325 directly nested in combined parallel. Instead, for linear
27326 with copyin/copyout, if in combined for simd loop, make decl
27327 firstprivate/lastprivate on OMP_FOR.
27328 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27329 expand_omp_for_static_chunk): When setting endvar, also set
27330 fd->loop.v to the same value.
27332 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27334 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27336 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27338 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27341 2014-05-02 Marek Polacek <polacek@redhat.com>
27343 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27345 2014-05-02 Kito Cheng <kito@0xlab.org>
27347 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27348 to a C expression marco.
27349 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27350 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27351 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27352 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27353 HONOR_REG_ALLOC_ORDER.
27354 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27356 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27358 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27360 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27362 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27364 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27366 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27367 (convert_scalar_cond_reduction): Likewise.
27368 (predicate_scalar_phi): Add recognition and transformation
27369 of simple conditioanl reduction to be vectorizable.
27371 2014-05-01 Marek Polacek <polacek@redhat.com>
27374 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27376 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27378 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27379 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27380 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27381 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27382 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27383 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27384 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27385 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27387 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27389 * config/arc/arc.opt (mlra): Move comment above option name
27390 to avoid mis-parsing as language options.
27392 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27394 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27395 * config/sol2.h: ... here.
27396 * config/sol2-10.h: Remove.
27398 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27399 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27400 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27401 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27402 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27403 * config/sol2.h: ... here.
27404 (SECTION_NAME_FORMAT): Don't redefine.
27405 (STARTFILE_ARCH32_SPEC): Rename to ...
27406 (STARTFILE_ARCH_SPEC): ... this.
27407 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27408 * config/sparc/sol2.h: ... here.
27409 (SECTION_NAME_FORMAT): Don't undef.
27410 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27411 (SUBTARGET_EXTRA_SPECS): Remove.
27412 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27414 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27415 (MD_STARTFILE_PREFIX): Remove.
27416 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27417 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27418 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27419 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27420 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27421 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27422 * config/i386/sol2.h: ... here.
27423 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27424 * config/i386/sol2-bi.h: Remove.
27425 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27426 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27428 * config/i386/t-sol2-64: Rename to ...
27429 * config/i386/t-sol2: ... this.
27430 * config/sparc/t-sol2-64: Rename to ...
27431 * config/sparc/t-sol2: ... this.
27433 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27434 sol2_tm_file_head, sol2_tm_file_tail.
27435 Include ${cpu_type}/sol2.h before sol2.h.
27437 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27438 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27439 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27440 Reflect i386/t-sol2-64 renaming.
27441 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27442 Reflect sparc/t-sol2-64 renaming.
27444 2014-04-30 Richard Biener <rguenther@suse.de>
27446 * passes.c (execute_function_todo): Move TODO_verify_stmts
27447 and TODO_verify_ssa under the TODO_verify_il umbrella.
27448 * tree-ssa.h (verify_ssa): Adjust prototype.
27449 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27450 we should verify SSA operands.
27451 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27452 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27453 whether we should verify whether not throwing stmts have EH info.
27454 * graphite-scop-detection.c (create_sese_edges): Adjust.
27455 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27456 * tree-eh.c (lower_try_finally_switch): Do not add the
27457 default case label twice.
27459 2014-04-30 Marek Polacek <polacek@redhat.com>
27461 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27462 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27463 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27464 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27466 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27468 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27469 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27470 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27471 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27472 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27473 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27474 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27475 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27477 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27479 * tree-cfg.c (dump_function_to_file): Dump the return type of
27480 functions, in a line to itself before the function body, mimicking
27481 the layout of a C function.
27483 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27485 PR tree-optimization/60971
27486 * tree-tailcall.c (process_assignment): Reject conversions which
27489 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27491 * calls.c (initialize_argument_information): Always treat
27492 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27493 (expand_call): Likewise.
27494 (emit_library_call_calue_1): Likewise.
27495 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27496 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27499 2014-04-29 Nick Clifton <nickc@redhat.com>
27501 * config/msp430/msp430.md (umulsidi): Fix typo.
27502 (mulhisi3): Enable even inside interrupt handlers.
27503 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27504 bigger return address pushed in large mode.
27506 2014-04-29 Nick Clifton <nickc@redhat.com>
27508 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27509 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27511 * config/m32r/m32r.c (init_reg_tables): Likewise.
27512 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27513 enum to hold the modes.
27515 2014-04-29 Richard Biener <rguenther@suse.de>
27517 * dominance.c (free_dominance_info): Add overload with
27518 function parameter.
27519 (dom_info_state): Likewise.
27520 (dom_info_available_p): Likewise.
27521 * basic-block.h (free_dominance_info, dom_info_state,
27522 dom_info_available_p): Declare overloads.
27523 * passes.c (execute_function_todo): Verify that verifiers
27524 don't change dominator info state. Drop dominator info
27525 for IPA pass invocations.
27526 * cgraph.c (release_function_body): Restore asserts that
27527 dominator information is released.
27529 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27531 * doc/invoke.texi: Fix typo.
27532 * tree-vrp.c: Fix typos.
27533 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27535 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27537 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27539 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27541 * config/aarch64/aarch64-builtins.c
27542 (aarch64_types_storestruct_lane_qualifiers): New.
27543 (TYPES_STORESTRUCT_LANE): Likewise.
27544 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27545 (st3_lane): Likewise.
27546 (st4_lane): Likewise.
27547 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27548 (vec_store_lanesci_lane<mode>): Likewise.
27549 (vec_store_lanesxi_lane<mode>): Likewise.
27550 (aarch64_st2_lane<VQ:mode>): Likewise.
27551 (aarch64_st3_lane<VQ:mode>): Likewise.
27552 (aarch64_st4_lane<VQ:mode>): Likewise.
27553 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27554 * config/aarch64/arm_neon.h
27555 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27556 use new macro arguments.
27557 (__ST3_LANE_FUNC): Likewise.
27558 (__ST4_LANE_FUNC): Likewise.
27559 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27560 (V_THREE_ELEM): Likewise.
27561 (V_FOUR_ELEM): Likewise.
27563 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27565 * doc/gimple.texi: Replace the description of the now-defunct
27566 union gimple_statement_d with a diagram showing the
27567 gimple_statement_base class hierarchy and its relationships to
27568 the GSS_ and GIMPLE_ enums.
27570 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27572 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27573 * config/aarch64/aarch64.c
27574 (aarch64_cannot_change_mode_class): Weaken conditions.
27575 (aarch64_modes_tieable_p): New.
27576 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27578 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27580 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27581 (loadsync_<mode>): Change mode.
27582 (load_quadpti, store_quadpti): New.
27583 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27584 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27586 2014-04-28 Martin Jambor <mjambor@suse.cz>
27588 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27589 same alias type as the original statement.
27590 (subreplacement_assignment_data): New type.
27591 (handle_unscalarized_data_in_subtree): New type of parameter,
27592 generate new memory accesses with same alias type as the original
27594 (load_assign_lhs_subreplacements): Likewise.
27595 (sra_modify_constructor_assign): Generate new memory accesses with
27596 same alias type as the original statement.
27598 2014-04-28 Richard Biener <rguenther@suse.de>
27600 * tree-pass.h (TODO_verify_il): Define.
27601 (TODO_verify_all): Complete properly.
27602 * passes.c (execute_function_todo): Move existing loop-closed
27603 SSA verification under TODO_verify_il.
27604 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27605 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27606 Fix tree sharing issue.
27608 2014-04-28 Richard Biener <rguenther@suse.de>
27610 PR middle-end/60092
27611 * builtins.def (DEF_C11_BUILTIN): Add.
27612 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27613 * coretypes.h (enum function_class): Add function_c11_misc.
27614 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27615 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27616 (call_may_clobber_ref_p_1): Likewise.
27617 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27618 (mark_all_reaching_defs_necessary_1): Likewise.
27619 (propagate_necessity): Likewise.
27620 (eliminate_unnecessary_stmts): Likewise.
27621 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27623 2014-04-28 Richard Biener <rguenther@suse.de>
27625 * tree-vrp.c (vrp_var_may_overflow): Remove.
27626 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27627 with overflow immediately bump to one before that value and
27628 let iteration figure out overflow status.
27630 2014-04-28 Richard Biener <rguenther@suse.de>
27632 * configure.ac: Do valgrind header checks unconditionally.
27633 Add --enable-valgrind-annotations.
27634 * system.h: Guard valgrind header inclusion with
27635 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27636 * alloc-pool.c (pool_alloc, pool_free): Use
27637 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27638 to guard possibly dead code.
27639 * config.in: Regenerated.
27640 * configure: Likewise.
27642 2014-04-28 Jeff Law <law@redhat.com>
27644 PR tree-optimization/60902
27645 * tree-ssa-threadedge.c
27646 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27647 over real defs when invalidating outputs from statements that do not
27648 produce useful outputs for threading.
27650 2014-04-28 Richard Biener <rguenther@suse.de>
27652 PR tree-optimization/60979
27653 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27654 SCOPs that end in a block with a successor with abnormal
27657 2014-04-28 Richard Biener <rguenther@suse.de>
27659 * tree-pass.h (execute_pass_list): Adjust prototype.
27660 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27661 (do_per_function): Change callback signature, push all actual
27662 work to the callbals.
27663 (do_per_function_toporder): Likewise.
27664 (execute_function_dump): Adjust.
27665 (execute_function_todo): Likewise.
27666 (clear_last_verified): Likewise.
27667 (verify_curr_properties): Likewise.
27668 (update_properties_after_pass): Likewise.
27669 (execute_pass_list_1): Split out from ...
27670 (execute_pass_list): ... here. Adjust.
27671 (execute_ipa_pass_list): Likewise.
27672 * cgraphunit.c (cgraph_add_new_function): Adjust.
27673 (analyze_function): Likewise.
27674 (expand_function): Likewise.
27675 * cgraph.c (release_function_body): Free dominance info
27676 here instead of asserting it was magically freed elsewhere.
27678 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27680 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27681 * configure: Regenerate.
27682 * config/sparc/sparc.opt (muser-mode): New option.
27683 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27685 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27686 * doc/invoke.texi (SPARC options): Document -muser-mode.
27688 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27690 * cselib.c (find_slot_memmode): Delete.
27691 (cselib_hasher): Change compare_type to a struct.
27692 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27694 (preserve_constants_and_equivs): Adjust for new compare_type.
27695 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27696 (wrap_constant): Delete.
27697 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27699 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27701 * doc/install.texi (Building with profile feedback): Remove
27704 2014-04-26 Tom de Vries <tom@codesourcery.com>
27706 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27709 2014-04-25 Cary Coutant <ccoutant@google.com>
27712 * dwarf2out.c (should_move_die_to_comdat): A type definition
27713 can contain a subprogram definition, but don't move it to a
27715 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27716 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27718 (clone_tree_hash): Rename to...
27719 (clone_tree_partial): ...this; change callers. Copy
27720 DW_TAG_subprogram DIEs as declarations.
27721 (copy_decls_walk): Don't copy children of a declaration into a
27724 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27727 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27730 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27732 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27733 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27735 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27738 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27740 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27742 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27744 PR tree-optimization/60930
27745 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27746 creating a multiply candidate by folding two constant
27747 multiplicands when the result overflows.
27749 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27751 PR tree-optimization/60960
27752 * tree-vect-generic.c (expand_vector_operation): Only call
27753 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27755 2014-04-25 Tom de Vries <tom@codesourcery.com>
27757 * expr.c (clobber_reg_mode): New function.
27758 * expr.h (clobber_reg): New function.
27760 2014-04-25 Tom de Vries <tom@codesourcery.com>
27762 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27765 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27766 Tom de Vries <tom@codesourcery.com>
27768 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27770 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27771 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27772 new argument to find_all_hard_reg_sets call.
27774 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27776 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27777 Use HOST_WIDE_INT_C for mask literal.
27778 (aarch_rev16_shleft_mask_imm_p): Likewise.
27780 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27783 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27785 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27787 PR preprocessor/56540
27788 * config/i386/i386-c.c (ix86_target_macros): Define
27789 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27791 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27793 * configure.ac (tga_func): Remove.
27794 (LIB_TLS_SPEC): Remove.
27795 * configure: Regenerate.
27796 * config.in: Regenerate.
27797 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27799 2014-04-25 Richard Biener <rguenther@suse.de>
27802 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27803 call stmt use/clobber sets during stmt walk instead of
27804 walking the possibly incomplete set of caller edges.
27806 2014-04-25 Richard Biener <rguenther@suse.de>
27809 * passes.c (apply_ipa_transforms): Inline into only caller ...
27810 (execute_one_pass): ... here. Properly bring in function
27811 bodies for nodes we want to apply IPA transforms to.
27813 2014-04-24 Cong Hou <congh@google.com>
27815 PR tree-optimization/60896
27816 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27817 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27818 (vect_mark_pattern_stmts): Set the def type of all statements in
27819 PATTERN_DEF_SEQ as vect_internal_def.
27821 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27823 * doc/extend.texi (PowerPC Built-in Functions): Document new
27824 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27825 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27827 * config/rs6000/predicates.md (const_0_to_3_operand): New
27828 predicate to match 0..3 integer constants.
27830 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27831 to support adding miscellaneous builtin functions.
27832 (BU_DFP_MISC_2): Likewise.
27833 (BU_P7_MISC_1): Likewise.
27834 (BU_P7_MISC_2): Likewise.
27835 (BU_P8V_MISC_3): Likewise.
27836 (BU_MISC_1): Likewise.
27837 (BU_MISC_2): Likewise.
27838 (DIVWE): Add extended divide builtin functions.
27839 (DIVWEO): Likewise.
27840 (DIVWEU): Likewise.
27841 (DIVWEUO): Likewise.
27843 (DIVDEO): Likewise.
27844 (DIVDEU): Likewise.
27845 (DIVDEUO): Likewise.
27846 (DXEX): Add decimal floating-point builtin functions.
27848 (DDEDPD): Likewise.
27849 (DDEDPDQ): Likewise.
27850 (DENBCD): Likewise.
27851 (DENBCDQ): Likewise.
27855 (DSCLIQ): Likewise.
27857 (DSCRIQ): Likewise.
27858 (CDTBCD): Add new BCD builtin functions.
27859 (CBCDTD): Likewise.
27860 (ADDG6S): Likewise.
27861 (BCDADD): Likewise.
27862 (BCDADD_LT): Likewise.
27863 (BCDADD_EQ): Likewise.
27864 (BCDADD_GT): Likewise.
27865 (BCDADD_OV): Likewise.
27866 (BCDSUB): Likewise.
27867 (BCDSUB_LT): Likewise.
27868 (BCDSUB_EQ): Likewise.
27869 (BCDSUB_GT): Likewise.
27870 (BCDSUB_OV): Likewise.
27871 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27872 (UNPACK_TD): Likewise.
27873 (PACK_TF): Likewise.
27874 (UNPACK_TF): Likewise.
27875 (UNPACK_TF_0): Likewise.
27876 (UNPACK_TF_1): Likewise.
27877 (PACK_V1TI): Likewise.
27878 (UNPACK_V1TI): Likewise.
27880 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27881 support for decimal floating point builtin functions.
27882 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27883 functions that take constant arguments.
27884 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27885 (rs6000_init_builtins): Setup long double, _Decimal64, and
27886 _Decimal128 types for new builtin functions.
27887 (builtin_function_type): Set the unsigned flags appropriately for
27888 the new builtin functions.
27889 (rs6000_opt_masks): Add support for decimal floating point builtin
27892 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27893 floating point builtin functions.
27894 (RS6000_BTM_COMMON): Likewise.
27895 (RS6000_BTI_long_double): Likewise.
27896 (RS6000_BTI_dfloat64): Likewise.
27897 (RS6000_BTI_dfloat128): Likewise.
27898 (long_double_type_internal_node): Likewise.
27899 (dfloat64_type_internal_node): Likewise.
27900 (dfloat128_type_internal_node): Likewise.
27902 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27903 2.07 bcd arithmetic instructions.
27904 (UNSPEC_BCDSUB): Likewise.
27905 (UNSPEC_BCD_OVERFLOW): Likewise.
27906 (UNSPEC_BCD_ADD_SUB): Likewise.
27907 (bcd_add_sub): Likewise.
27908 (BCD_TEST): Likewise.
27909 (bcd<bcd_add_sub>): Likewise.
27910 (bcd<bcd_add_sub>_test): Likewise.
27911 (bcd<bcd_add_sub>_test2): Likewise.
27912 (bcd<bcd_add_sub>_<code>): Likewise.
27913 (peephole2 for combined bcd ops): Likewise.
27915 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27916 decimal floating point builtin functions.
27917 (UNSPEC_DENBCD): Likewise.
27918 (UNSPEC_DXEX): Likewise.
27919 (UNSPEC_DIEX): Likewise.
27920 (UNSPEC_DSCLI): Likewise.
27921 (UNSPEC_DSCRI): Likewise.
27922 (D64_D128): Likewise.
27923 (dfp_suffix): Likewise.
27924 (dfp_ddedpd_<mode>): Likewise.
27925 (dfp_denbcd_<mode>): Likewise.
27926 (dfp_dxex_<mode>): Likewise.
27927 (dfp_diex_<mode>): Likewise.
27928 (dfp_dscli_<mode>): Likewise.
27929 (dfp_dscri_<mode>): Likewise.
27931 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27933 (UNSPEC_CDTBCD): Likewise.
27934 (UNSPEC_CBCDTD): Likewise.
27935 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27936 (UNSPEC_DIVEO): Likewise.
27937 (UNSPEC_DIVEU): Likewise.
27938 (UNSPEC_DIVEUO): Likewise.
27939 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27940 pack/unpack 128-bit types.
27941 (UNSPEC_PACK_128BIT): Likewise.
27942 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27943 (udiv<mode>3): Use idiv_ldiv mode attribute.
27944 (div<mode>3): Likewise.
27945 (addg6s): Add new BCD builtin functions.
27946 (cdtbcd): Likewise.
27947 (cbcdtd): Likewise.
27948 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27949 (div_extend): Likewise.
27950 (div<div_extend>_<mode>"): Likewise.
27951 (FP128_64): Add support for new builtin functions to pack/unpack
27953 (unpack<mode>): Likewise.
27954 (unpacktf_0): Likewise.
27955 (unpacktf_1): Likewise.
27956 (unpack<mode>_dm): Likewise.
27957 (unpack<mode>_nodm): Likewise.
27958 (pack<mode>): Likewise.
27959 (unpackv1ti): Likewise.
27960 (packv1ti): Likewise.
27962 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27964 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27967 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27969 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27970 * gimplify.c (omp_is_private): Change last argument's type to int.
27971 Only diagnose lastprivate if the simd argument is 1, only diagnose
27972 linear if the simd argument is 2.
27973 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27974 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27975 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27976 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27977 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27978 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27979 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27980 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27981 * tree-nested.c (convert_nonlocal_omp_clauses,
27982 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27984 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27987 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27990 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27992 * flag-types.h (enum ivar_visibility): Add.
27994 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27996 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27997 function * argument.
27999 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
28001 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28003 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28004 Tom de Vries <tom@codesourcery.com>
28006 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28007 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28009 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28010 * emit-rtl.c (try_split): Same.
28012 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28013 Tom de Vries <tom@codesourcery.com>
28015 * common.opt (fuse-caller-save): New option.
28017 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
28019 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28020 elements for big-endian.
28022 2014-04-24 Richard Biener <rguenther@suse.de>
28024 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28025 during TER and instead use the sepops interface for expanding
28026 non-GIMPLE_SINGLE_RHS.
28028 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28030 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28031 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28033 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28035 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28036 assembler 64-bit option.
28037 * configure: Regenerate.
28039 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28041 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28042 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28043 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28044 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28045 (TARGET_CRYPTO): Take TARGET_SIMD into account.
28047 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28049 * config/aarch64/aarch64-builtins.c
28050 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28051 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28052 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28053 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28055 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28056 (Vrevsuff): New mode attribute.
28058 2014-04-24 Terry Guo <terry.guo@arm.com>
28060 * config/arm/arm.h (machine_function): Define variable
28061 after_arm_reorg here.
28062 * config/arm/arm.c (after_arm_reorg): Remove the definition.
28063 (arm_split_constant): Update the way to access variable
28065 (arm_reorg): Ditto.
28066 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28068 2014-04-23 Tom de Vries <tom@codesourcery.com>
28070 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28072 2014-04-23 David Malcolm <dmalcolm@redhat.com>
28074 * is-a.h: Update comments to reflect the following changes to the
28075 "pointerness" of the API, making the template parameter match the
28076 return type, allowing use of is-a.h with typedefs of pointers.
28077 (is_a_helper::cast): Return a T rather then a pointer to a T, so
28078 that the return type matches the parameter to the is_a_helper.
28080 (dyn_cast): Likewise.
28082 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28083 pointer from the is-a.h API.
28085 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28086 (is_a_helper <cgraph_node *>::test): ...this, matching change to
28088 (is_a_helper <varpool_node>::test): Likewise, convert to...
28089 (is_a_helper <varpool_node *>::test): ...this.
28091 (varpool_first_variable): Update for removal of implicit pointer
28092 from the is-a.h API.
28093 (varpool_next_variable): Likewise.
28094 (varpool_first_static_initializer): Likewise.
28095 (varpool_next_static_initializer): Likewise.
28096 (varpool_first_defined_variable): Likewise.
28097 (varpool_next_defined_variable): Likewise.
28098 (cgraph_first_defined_function): Likewise.
28099 (cgraph_next_defined_function): Likewise.
28100 (cgraph_first_function): Likewise.
28101 (cgraph_next_function): Likewise.
28102 (cgraph_first_function_with_gimple_body): Likewise.
28103 (cgraph_next_function_with_gimple_body): Likewise.
28104 (cgraph_alias_target): Likewise.
28105 (varpool_alias_target): Likewise.
28106 (cgraph_function_or_thunk_node): Likewise.
28107 (varpool_variable_node): Likewise.
28108 (symtab_real_symbol_p): Likewise.
28109 * cgraphunit.c (referred_to_p): Likewise.
28110 (analyze_functions): Likewise.
28111 (handle_alias_pairs): Likewise.
28112 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28113 * gimple-ssa.h (gimple_vuse_op): Likewise.
28114 (gimple_vdef_op): Likewise.
28115 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28116 * gimple.c (gimple_build_asm_1): Likewise.
28117 (gimple_build_try): Likewise.
28118 (gimple_build_resx): Likewise.
28119 (gimple_build_eh_dispatch): Likewise.
28120 (gimple_build_omp_for): Likewise.
28121 (gimple_omp_for_set_clauses): Likewise.
28123 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28124 (is_a_helper <gimple_statement_asm *>::test): ...this.
28125 (is_a_helper <gimple_statement_bind>::test): Convert to...
28126 (is_a_helper <gimple_statement_bind *>::test): ...this.
28127 (is_a_helper <gimple_statement_call>::test): Convert to...
28128 (is_a_helper <gimple_statement_call *>::test): ...this.
28129 (is_a_helper <gimple_statement_catch>::test): Convert to...
28130 (is_a_helper <gimple_statement_catch *>::test): ...this.
28131 (is_a_helper <gimple_statement_resx>::test): Convert to...
28132 (is_a_helper <gimple_statement_resx *>::test): ...this.
28133 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28134 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28135 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28136 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28137 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28138 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28139 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28140 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28141 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28142 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28143 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28144 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28145 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28146 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28147 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28148 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28149 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28150 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28151 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28152 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28153 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28154 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28155 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28156 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28157 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28158 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28159 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28160 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28161 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28162 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28163 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28164 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28165 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28166 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28167 (is_a_helper <gimple_statement_phi>::test): Convert to...
28168 (is_a_helper <gimple_statement_phi *>::test): ...this.
28169 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28170 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28171 (is_a_helper <gimple_statement_try>::test): Convert to...
28172 (is_a_helper <gimple_statement_try *>::test): ...this.
28173 (is_a_helper <gimple_statement_wce>::test): Convert to...
28174 (is_a_helper <gimple_statement_wce *>::test): ...this.
28175 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28176 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28177 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28178 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28179 (is_a_helper <const gimple_statement_call>::test): Convert to...
28180 (is_a_helper <const gimple_statement_call *>::test): ...this.
28181 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28182 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28183 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28184 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28185 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28186 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28187 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28188 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28189 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28191 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28193 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28195 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28197 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28198 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28199 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28201 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28202 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28204 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28205 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28206 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28207 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28208 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28209 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28211 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28212 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28213 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28214 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28216 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28217 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28218 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28219 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28220 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28221 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28222 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28223 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28224 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28225 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28226 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28227 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28228 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28229 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28230 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28231 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28233 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28235 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28236 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28238 (gimple_use_ops): Update for removal of implicit pointer from the
28240 (gimple_set_use_ops): Likewise.
28241 (gimple_vuse): Likewise.
28242 (gimple_vdef): Likewise.
28243 (gimple_vuse_ptr): Likewise.
28244 (gimple_vdef_ptr): Likewise.
28245 (gimple_set_vuse): Likewise.
28246 (gimple_set_vdef): Likewise.
28247 (gimple_omp_return_set_lhs): Likewise.
28248 (gimple_omp_return_lhs): Likewise.
28249 (gimple_omp_return_lhs_ptr): Likewise.
28250 (gimple_call_fntype): Likewise.
28251 (gimple_call_set_fntype): Likewise.
28252 (gimple_call_set_internal_fn): Likewise.
28253 (gimple_call_use_set): Likewise.
28254 (gimple_call_clobber_set): Likewise.
28255 (gimple_bind_vars): Likewise.
28256 (gimple_bind_set_vars): Likewise.
28257 (gimple_bind_body_ptr): Likewise.
28258 (gimple_bind_set_body): Likewise.
28259 (gimple_bind_add_stmt): Likewise.
28260 (gimple_bind_block): Likewise.
28261 (gimple_bind_set_block): Likewise.
28262 (gimple_asm_ninputs): Likewise.
28263 (gimple_asm_noutputs): Likewise.
28264 (gimple_asm_nclobbers): Likewise.
28265 (gimple_asm_nlabels): Likewise.
28266 (gimple_asm_input_op): Likewise.
28267 (gimple_asm_input_op_ptr): Likewise.
28268 (gimple_asm_output_op): Likewise.
28269 (gimple_asm_output_op_ptr): Likewise.
28270 (gimple_asm_set_output_op): Likewise.
28271 (gimple_asm_clobber_op): Likewise.
28272 (gimple_asm_set_clobber_op): Likewise.
28273 (gimple_asm_label_op): Likewise.
28274 (gimple_asm_set_label_op): Likewise.
28275 (gimple_asm_string): Likewise.
28276 (gimple_catch_types): Likewise.
28277 (gimple_catch_types_ptr): Likewise.
28278 (gimple_catch_handler_ptr): Likewise.
28279 (gimple_catch_set_types): Likewise.
28280 (gimple_catch_set_handler): Likewise.
28281 (gimple_eh_filter_types): Likewise.
28282 (gimple_eh_filter_types_ptr): Likewise.
28283 (gimple_eh_filter_failure_ptr): Likewise.
28284 (gimple_eh_filter_set_types): Likewise.
28285 (gimple_eh_filter_set_failure): Likewise.
28286 (gimple_eh_must_not_throw_fndecl): Likewise.
28287 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28288 (gimple_eh_else_n_body_ptr): Likewise.
28289 (gimple_eh_else_e_body_ptr): Likewise.
28290 (gimple_eh_else_set_n_body): Likewise.
28291 (gimple_eh_else_set_e_body): Likewise.
28292 (gimple_try_eval_ptr): Likewise.
28293 (gimple_try_cleanup_ptr): Likewise.
28294 (gimple_try_set_eval): Likewise.
28295 (gimple_try_set_cleanup): Likewise.
28296 (gimple_wce_cleanup_ptr): Likewise.
28297 (gimple_wce_set_cleanup): Likewise.
28298 (gimple_phi_capacity): Likewise.
28299 (gimple_phi_num_args): Likewise.
28300 (gimple_phi_result): Likewise.
28301 (gimple_phi_result_ptr): Likewise.
28302 (gimple_phi_set_result): Likewise.
28303 (gimple_phi_arg): Likewise.
28304 (gimple_phi_set_arg): Likewise.
28305 (gimple_resx_region): Likewise.
28306 (gimple_resx_set_region): Likewise.
28307 (gimple_eh_dispatch_region): Likewise.
28308 (gimple_eh_dispatch_set_region): Likewise.
28309 (gimple_omp_critical_name): Likewise.
28310 (gimple_omp_critical_name_ptr): Likewise.
28311 (gimple_omp_critical_set_name): Likewise.
28312 (gimple_omp_for_clauses): Likewise.
28313 (gimple_omp_for_clauses_ptr): Likewise.
28314 (gimple_omp_for_set_clauses): Likewise.
28315 (gimple_omp_for_collapse): Likewise.
28316 (gimple_omp_for_index): Likewise.
28317 (gimple_omp_for_index_ptr): Likewise.
28318 (gimple_omp_for_set_index): Likewise.
28319 (gimple_omp_for_initial): Likewise.
28320 (gimple_omp_for_initial_ptr): Likewise.
28321 (gimple_omp_for_set_initial): Likewise.
28322 (gimple_omp_for_final): Likewise.
28323 (gimple_omp_for_final_ptr): Likewise.
28324 (gimple_omp_for_set_final): Likewise.
28325 (gimple_omp_for_incr): Likewise.
28326 (gimple_omp_for_incr_ptr): Likewise.
28327 (gimple_omp_for_set_incr): Likewise.
28328 (gimple_omp_for_pre_body_ptr): Likewise.
28329 (gimple_omp_for_set_pre_body): Likewise.
28330 (gimple_omp_parallel_clauses): Likewise.
28331 (gimple_omp_parallel_clauses_ptr): Likewise.
28332 (gimple_omp_parallel_set_clauses): Likewise.
28333 (gimple_omp_parallel_child_fn): Likewise.
28334 (gimple_omp_parallel_child_fn_ptr): Likewise.
28335 (gimple_omp_parallel_set_child_fn): Likewise.
28336 (gimple_omp_parallel_data_arg): Likewise.
28337 (gimple_omp_parallel_data_arg_ptr): Likewise.
28338 (gimple_omp_parallel_set_data_arg): Likewise.
28339 (gimple_omp_task_clauses): Likewise.
28340 (gimple_omp_task_clauses_ptr): Likewise.
28341 (gimple_omp_task_set_clauses): Likewise.
28342 (gimple_omp_task_child_fn): Likewise.
28343 (gimple_omp_task_child_fn_ptr): Likewise.
28344 (gimple_omp_task_set_child_fn): Likewise.
28345 (gimple_omp_task_data_arg): Likewise.
28346 (gimple_omp_task_data_arg_ptr): Likewise.
28347 (gimple_omp_task_set_data_arg): Likewise.
28348 (gimple_omp_taskreg_clauses): Likewise.
28349 (gimple_omp_taskreg_clauses_ptr): Likewise.
28350 (gimple_omp_taskreg_set_clauses): Likewise.
28351 (gimple_omp_taskreg_child_fn): Likewise.
28352 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28353 (gimple_omp_taskreg_set_child_fn): Likewise.
28354 (gimple_omp_taskreg_data_arg): Likewise.
28355 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28356 (gimple_omp_taskreg_set_data_arg): Likewise.
28357 (gimple_omp_task_copy_fn): Likewise.
28358 (gimple_omp_task_copy_fn_ptr): Likewise.
28359 (gimple_omp_task_set_copy_fn): Likewise.
28360 (gimple_omp_task_arg_size): Likewise.
28361 (gimple_omp_task_arg_size_ptr): Likewise.
28362 (gimple_omp_task_set_arg_size): Likewise.
28363 (gimple_omp_task_arg_align): Likewise.
28364 (gimple_omp_task_arg_align_ptr): Likewise.
28365 (gimple_omp_task_set_arg_align): Likewise.
28366 (gimple_omp_single_clauses): Likewise.
28367 (gimple_omp_single_clauses_ptr): Likewise.
28368 (gimple_omp_single_set_clauses): Likewise.
28369 (gimple_omp_target_clauses): Likewise.
28370 (gimple_omp_target_clauses_ptr): Likewise.
28371 (gimple_omp_target_set_clauses): Likewise.
28372 (gimple_omp_target_child_fn): Likewise.
28373 (gimple_omp_target_child_fn_ptr): Likewise.
28374 (gimple_omp_target_set_child_fn): Likewise.
28375 (gimple_omp_target_data_arg): Likewise.
28376 (gimple_omp_target_data_arg_ptr): Likewise.
28377 (gimple_omp_target_set_data_arg): Likewise.
28378 (gimple_omp_teams_clauses): Likewise.
28379 (gimple_omp_teams_clauses_ptr): Likewise.
28380 (gimple_omp_teams_set_clauses): Likewise.
28381 (gimple_omp_sections_clauses): Likewise.
28382 (gimple_omp_sections_clauses_ptr): Likewise.
28383 (gimple_omp_sections_set_clauses): Likewise.
28384 (gimple_omp_sections_control): Likewise.
28385 (gimple_omp_sections_control_ptr): Likewise.
28386 (gimple_omp_sections_set_control): Likewise.
28387 (gimple_omp_for_set_cond): Likewise.
28388 (gimple_omp_for_cond): Likewise.
28389 (gimple_omp_atomic_store_set_val): Likewise.
28390 (gimple_omp_atomic_store_val): Likewise.
28391 (gimple_omp_atomic_store_val_ptr): Likewise.
28392 (gimple_omp_atomic_load_set_lhs): Likewise.
28393 (gimple_omp_atomic_load_lhs): Likewise.
28394 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28395 (gimple_omp_atomic_load_set_rhs): Likewise.
28396 (gimple_omp_atomic_load_rhs): Likewise.
28397 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28398 (gimple_omp_continue_control_def): Likewise.
28399 (gimple_omp_continue_control_def_ptr): Likewise.
28400 (gimple_omp_continue_set_control_def): Likewise.
28401 (gimple_omp_continue_control_use): Likewise.
28402 (gimple_omp_continue_control_use_ptr): Likewise.
28403 (gimple_omp_continue_set_control_use): Likewise.
28404 (gimple_transaction_body_ptr): Likewise.
28405 (gimple_transaction_label): Likewise.
28406 (gimple_transaction_label_ptr): Likewise.
28407 (gimple_transaction_set_body): Likewise.
28408 (gimple_transaction_set_label): Likewise.
28410 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28411 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28412 * ipa-ref.c (ipa_record_reference): Likewise.
28413 * ipa-reference.c (analyze_function): Likewise.
28414 (ipa_reference_write_optimization_summary): Likewise.
28415 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28416 (address_taken_from_non_vtable_p): Likewise.
28417 (comdat_can_be_unshared_p_1): Likewise.
28418 * lto-cgraph.c (lto_output_ref): Likewise.
28419 (add_references): Likewise.
28420 (compute_ltrans_boundary): Likewise.
28421 (output_symtab): Likewise.
28422 (input_ref): Likewise.
28423 (input_cgraph_1): Likewise.
28424 (output_cgraph_opt_summary): Likewise.
28425 * lto-streamer-out.c (lto_output): Likewise.
28426 (output_symbol_p): Likewise.
28427 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28428 (lsei_start_function_in_partition): Likewise.
28429 (lsei_next_variable_in_partition): Likewise.
28430 (lsei_start_variable_in_partition): Likewise.
28431 * symtab.c (insert_to_assembler_name_hash): Likewise.
28432 (unlink_from_assembler_name_hash): Likewise.
28433 (symtab_unregister_node): Likewise.
28434 (symtab_remove_node): Likewise.
28435 (dump_symtab_node): Likewise.
28436 (verify_symtab_base): Likewise.
28437 (verify_symtab_node): Likewise.
28438 (symtab_make_decl_local): Likewise.
28439 (symtab_alias_ultimate_target): Likewise.
28440 (symtab_resolve_alias): Likewise.
28441 (symtab_get_symbol_partitioning_class): Likewise.
28442 * tree-phinodes.c (allocate_phi_node): Likewise.
28443 (reserve_phi_args_for_new_edge): Likewise.
28444 (remove_phi_args): Likewise.
28445 * varpool.c (varpool_node_for_asm): Likewise.
28446 (varpool_remove_unreferenced_decls): Likewise.
28448 2014-04-23 Jeff Law <law@redhat.com>
28450 PR tree-optimization/60902
28451 * tree-ssa-threadedge.c
28452 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28453 invalidate outputs from statements that do not produce useful
28454 outputs for threading.
28456 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28458 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28459 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28460 machine descriptions for Stack Smashing Protector.
28462 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28464 * aarch64.md (<optab>_rol<mode>3): New pattern.
28465 (<optab>_rolsi3_uxtw): Likewise.
28466 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28468 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28470 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28471 (arm_cortex_a12_tune): Likewise.
28473 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28475 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28477 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28479 * config/arm/arm.md (arm_rev16si2): New pattern.
28480 (arm_rev16si2_alt): Likewise.
28481 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28483 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28485 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28486 (rev16<mode>2_alt): Likewise.
28487 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28488 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28489 (aarch_rev16_shleft_mask_imm_p): Likewise.
28490 (aarch_rev16_p_1): Likewise.
28491 (aarch_rev16_p): Likewise.
28492 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28493 (aarch_rev16_shright_mask_imm_p): Likewise.
28494 (aarch_rev16_shleft_mask_imm_p): Likewise.
28496 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28498 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28499 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28501 (cortex_a53_extra_costs): Likewise.
28502 (cortex_a57_extra_costs): Likewise.
28503 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28504 (cortexa7_extra_costs): Likewise.
28505 (cortexa8_extra_costs): Likewise.
28506 (cortexa12_extra_costs): Likewise.
28507 (cortexa15_extra_costs): Likewise.
28508 (v7m_extra_costs): Likewise.
28509 (arm_new_rtx_costs): Handle BSWAP.
28511 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28513 * config/arm/arm.c (cortexa8_extra_costs): New table.
28514 (arm_cortex_a8_tune): New tuning struct.
28515 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28517 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28519 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28521 2014-04-23 Richard Biener <rguenther@suse.de>
28523 * Makefile.in (OBJS): Remove loop-unswitch.o.
28524 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28525 * passes.def (pass_rtl_unswitch): Likewise.
28526 * loop-init.c (gate_rtl_unswitch): Likewise.
28527 (rtl_unswitch): Likewise.
28528 (pass_data_rtl_unswitch): Likewise.
28529 (pass_rtl_unswitch): Likewise.
28530 (make_pass_rtl_unswitch): Likewise.
28531 * rtl.h (reversed_condition): Likewise.
28532 (compare_and_jump_seq): Likewise.
28533 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28535 * loop-unroll.c (compare_and_jump_seq): Likewise.
28537 2014-04-23 Richard Biener <rguenther@suse.de>
28539 PR tree-optimization/60903
28540 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28541 commented code block.
28542 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28543 loop flags to newly created BBs and edges.
28545 2014-04-23 Nick Clifton <nickc@redhat.com>
28547 * config/msp430/msp430.c (msp430_handle_option): Move function
28549 (msp430_option_override): Simplify mcu and mcpu option handling.
28550 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28551 support for -mhwmult command line option.
28552 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28553 -mhwmult command line option.
28554 (msp430_hwmult_enabled): Delete.
28555 (msp43o_output_labelref): Add support for -mhwmult command line option.
28556 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28557 (umulsidi3): Likewise.
28558 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28559 (mcpu, mlarge, msmall): Likewise.
28560 (mhwmult): New option.
28561 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28563 (msp430_is_f5_mcu): Remove prototype.
28564 (msp430_use_f5_series_hwmult): Add prototype.
28565 * config/msp430/msp430-opts.h: New file.
28566 * common/config/msp430: New directory.
28567 * common/config/msp430/msp430-common.c: New file.
28568 * config.gcc (msp430): Remove target_has_targetm_common.
28569 * doc/invoke.texi: Document -mhwmult command line option.
28571 2014-04-23 Nick Clifton <nickc@redhat.com>
28573 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28574 default-manifest.o if it can be found in the search path.
28575 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28577 2014-04-23 Terry Guo <terry.guo@arm.com>
28579 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28581 2014-04-23 Richard Biener <rguenther@suse.de>
28583 PR middle-end/60895
28584 * tree-inline.c (declare_return_variable): Use mark_addressable.
28586 2014-04-23 Richard Biener <rguenther@suse.de>
28588 PR middle-end/60891
28589 * loop-init.c (loop_optimizer_init): Make sure to apply
28590 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28592 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28595 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28597 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28598 if flag_sanitize_undefined_trap_on_error.
28599 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28600 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28601 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28602 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28603 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28604 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28605 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28606 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28607 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28608 * ubsan.c (ubsan_instrument_unreachable): Return
28609 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28610 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28611 if flag_sanitize_undefined_trap_on_error and
28612 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28613 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28614 instrument_bool_enum_load): Emit __builtin_trap () if
28615 flag_sanitize_undefined_trap_on_error and
28616 __builtin_handle_*_abort () if !flag_sanitize_recover.
28617 * doc/invoke.texi (-fsanitize-recover,
28618 -fsanitize-undefined-trap-on-error): Document.
28620 2014-04-22 Christian Bruel <christian.bruel@st.com>
28622 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28623 Force immediates to SImode.
28625 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28627 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28628 (lroundsfsi2): New.
28629 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28630 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28631 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28632 (nios2_fpu_insn): Add entry for round.
28633 (N2FPU_NO_ERRNO_P): Define.
28634 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28636 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28638 2014-04-22 Richard Henderson <rth@redhat.com>
28640 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28641 (add<GPI>3_compare0): Remove leading * from name.
28642 (add<GPI>3_carryin): Likewise.
28643 (sub<GPI>3_compare0): Likewise.
28644 (sub<GPI>3_carryin): Likewise.
28645 (<su_optab>mulditi3): New expander.
28646 (multi3): New expander.
28647 (madd<GPI>): Remove leading * from name.
28649 2014-04-22 Martin Jambor <mjambor@suse.cz>
28651 * cgraphclones.c (cgraph_function_versioning): Copy
28652 ipa_transforms_to_apply instead of asserting it is empty.
28654 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28657 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28658 on count_exp to get mode.
28660 2014-04-22 Andrew Pinski <apinski@cavium.com>
28662 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28663 Handle TLS for ILP32.
28664 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28665 (tlsie_small_<mode>): this and handle PTR.
28666 (tlsie_small_sidi): New pattern.
28667 (tlsle_small): Change to an expand to handle ILP32.
28668 (tlsle_small_<mode>): New pattern.
28669 (tlsdesc_small): Rename to ...
28670 (tlsdesc_small_<mode>): this and handle PTR.
28672 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28674 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28676 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28678 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28679 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28680 (aarch64_types_signed_poly_qualifiers): Likewise.
28681 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28682 (aarch64_types_poly_signed_qualifiers): Likewise.
28683 (TYPES_REINTERP_SS): Type macro added.
28684 (TYPES_REINTERP_SU): Likewise.
28685 (TYPES_REINTERP_SP): Likewise.
28686 (TYPES_REINTERP_US): Likewise.
28687 (TYPES_REINTERP_PS): Likewise.
28688 (aarch64_fold_builtin): New expression folding added.
28689 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28690 Declarations removed.
28691 (REINTERP_SS): Declarations added.
28692 (REINTERP_US): Likewise.
28693 (REINTERP_PS): Likewise.
28694 (REINTERP_SU): Likewise.
28695 (REINTERP_SP): Likewise.
28696 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28697 (vreinterpretq_p8_f64): Likewise.
28698 (vreinterpret_p16_f64): Likewise.
28699 (vreinterpretq_p16_f64): Likewise.
28700 (vreinterpret_f32_f64): Likewise.
28701 (vreinterpretq_f32_f64): Likewise.
28702 (vreinterpret_f64_f32): Likewise.
28703 (vreinterpret_f64_p8): Likewise.
28704 (vreinterpret_f64_p16): Likewise.
28705 (vreinterpret_f64_s8): Likewise.
28706 (vreinterpret_f64_s16): Likewise.
28707 (vreinterpret_f64_s32): Likewise.
28708 (vreinterpret_f64_s64): Likewise.
28709 (vreinterpret_f64_u8): Likewise.
28710 (vreinterpret_f64_u16): Likewise.
28711 (vreinterpret_f64_u32): Likewise.
28712 (vreinterpret_f64_u64): Likewise.
28713 (vreinterpretq_f64_f32): Likewise.
28714 (vreinterpretq_f64_p8): Likewise.
28715 (vreinterpretq_f64_p16): Likewise.
28716 (vreinterpretq_f64_s8): Likewise.
28717 (vreinterpretq_f64_s16): Likewise.
28718 (vreinterpretq_f64_s32): Likewise.
28719 (vreinterpretq_f64_s64): Likewise.
28720 (vreinterpretq_f64_u8): Likewise.
28721 (vreinterpretq_f64_u16): Likewise.
28722 (vreinterpretq_f64_u32): Likewise.
28723 (vreinterpretq_f64_u64): Likewise.
28724 (vreinterpret_s64_f64): Likewise.
28725 (vreinterpretq_s64_f64): Likewise.
28726 (vreinterpret_u64_f64): Likewise.
28727 (vreinterpretq_u64_f64): Likewise.
28728 (vreinterpret_s8_f64): Likewise.
28729 (vreinterpretq_s8_f64): Likewise.
28730 (vreinterpret_s16_f64): Likewise.
28731 (vreinterpretq_s16_f64): Likewise.
28732 (vreinterpret_s32_f64): Likewise.
28733 (vreinterpretq_s32_f64): Likewise.
28734 (vreinterpret_u8_f64): Likewise.
28735 (vreinterpretq_u8_f64): Likewise.
28736 (vreinterpret_u16_f64): Likewise.
28737 (vreinterpretq_u16_f64): Likewise.
28738 (vreinterpret_u32_f64): Likewise.
28739 (vreinterpretq_u32_f64): Likewise.
28741 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28743 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28744 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28745 (vreinterpret_p8_s8): Likewise.
28746 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28747 (vreinterpret_p8_s16): Likewise.
28748 (vreinterpret_p8_s32): Likewise.
28749 (vreinterpret_p8_s64): Likewise.
28750 (vreinterpret_p8_f32): Likewise.
28751 (vreinterpret_p8_u8): Likewise.
28752 (vreinterpret_p8_u16): Likewise.
28753 (vreinterpret_p8_u32): Likewise.
28754 (vreinterpret_p8_u64): Likewise.
28755 (vreinterpret_p8_p16): Likewise.
28756 (vreinterpretq_p8_s8): Likewise.
28757 (vreinterpretq_p8_s16): Likewise.
28758 (vreinterpretq_p8_s32): Likewise.
28759 (vreinterpretq_p8_s64): Likewise.
28760 (vreinterpretq_p8_f32): Likewise.
28761 (vreinterpretq_p8_u8): Likewise.
28762 (vreinterpretq_p8_u16): Likewise.
28763 (vreinterpretq_p8_u32): Likewise.
28764 (vreinterpretq_p8_u64): Likewise.
28765 (vreinterpretq_p8_p16): Likewise.
28766 (vreinterpret_p16_s8): Likewise.
28767 (vreinterpret_p16_s16): Likewise.
28768 (vreinterpret_p16_s32): Likewise.
28769 (vreinterpret_p16_s64): Likewise.
28770 (vreinterpret_p16_f32): Likewise.
28771 (vreinterpret_p16_u8): Likewise.
28772 (vreinterpret_p16_u16): Likewise.
28773 (vreinterpret_p16_u32): Likewise.
28774 (vreinterpret_p16_u64): Likewise.
28775 (vreinterpret_p16_p8): Likewise.
28776 (vreinterpretq_p16_s8): Likewise.
28777 (vreinterpretq_p16_s16): Likewise.
28778 (vreinterpretq_p16_s32): Likewise.
28779 (vreinterpretq_p16_s64): Likewise.
28780 (vreinterpretq_p16_f32): Likewise.
28781 (vreinterpretq_p16_u8): Likewise.
28782 (vreinterpretq_p16_u16): Likewise.
28783 (vreinterpretq_p16_u32): Likewise.
28784 (vreinterpretq_p16_u64): Likewise.
28785 (vreinterpretq_p16_p8): Likewise.
28786 (vreinterpret_f32_s8): Likewise.
28787 (vreinterpret_f32_s16): Likewise.
28788 (vreinterpret_f32_s32): Likewise.
28789 (vreinterpret_f32_s64): Likewise.
28790 (vreinterpret_f32_u8): Likewise.
28791 (vreinterpret_f32_u16): Likewise.
28792 (vreinterpret_f32_u32): Likewise.
28793 (vreinterpret_f32_u64): Likewise.
28794 (vreinterpret_f32_p8): Likewise.
28795 (vreinterpret_f32_p16): Likewise.
28796 (vreinterpretq_f32_s8): Likewise.
28797 (vreinterpretq_f32_s16): Likewise.
28798 (vreinterpretq_f32_s32): Likewise.
28799 (vreinterpretq_f32_s64): Likewise.
28800 (vreinterpretq_f32_u8): Likewise.
28801 (vreinterpretq_f32_u16): Likewise.
28802 (vreinterpretq_f32_u32): Likewise.
28803 (vreinterpretq_f32_u64): Likewise.
28804 (vreinterpretq_f32_p8): Likewise.
28805 (vreinterpretq_f32_p16): Likewise.
28806 (vreinterpret_s64_s8): Likewise.
28807 (vreinterpret_s64_s16): Likewise.
28808 (vreinterpret_s64_s32): Likewise.
28809 (vreinterpret_s64_f32): Likewise.
28810 (vreinterpret_s64_u8): Likewise.
28811 (vreinterpret_s64_u16): Likewise.
28812 (vreinterpret_s64_u32): Likewise.
28813 (vreinterpret_s64_u64): Likewise.
28814 (vreinterpret_s64_p8): Likewise.
28815 (vreinterpret_s64_p16): Likewise.
28816 (vreinterpretq_s64_s8): Likewise.
28817 (vreinterpretq_s64_s16): Likewise.
28818 (vreinterpretq_s64_s32): Likewise.
28819 (vreinterpretq_s64_f32): Likewise.
28820 (vreinterpretq_s64_u8): Likewise.
28821 (vreinterpretq_s64_u16): Likewise.
28822 (vreinterpretq_s64_u32): Likewise.
28823 (vreinterpretq_s64_u64): Likewise.
28824 (vreinterpretq_s64_p8): Likewise.
28825 (vreinterpretq_s64_p16): Likewise.
28826 (vreinterpret_u64_s8): Likewise.
28827 (vreinterpret_u64_s16): Likewise.
28828 (vreinterpret_u64_s32): Likewise.
28829 (vreinterpret_u64_s64): Likewise.
28830 (vreinterpret_u64_f32): Likewise.
28831 (vreinterpret_u64_u8): Likewise.
28832 (vreinterpret_u64_u16): Likewise.
28833 (vreinterpret_u64_u32): Likewise.
28834 (vreinterpret_u64_p8): Likewise.
28835 (vreinterpret_u64_p16): Likewise.
28836 (vreinterpretq_u64_s8): Likewise.
28837 (vreinterpretq_u64_s16): Likewise.
28838 (vreinterpretq_u64_s32): Likewise.
28839 (vreinterpretq_u64_s64): Likewise.
28840 (vreinterpretq_u64_f32): Likewise.
28841 (vreinterpretq_u64_u8): Likewise.
28842 (vreinterpretq_u64_u16): Likewise.
28843 (vreinterpretq_u64_u32): Likewise.
28844 (vreinterpretq_u64_p8): Likewise.
28845 (vreinterpretq_u64_p16): Likewise.
28846 (vreinterpret_s8_s16): Likewise.
28847 (vreinterpret_s8_s32): Likewise.
28848 (vreinterpret_s8_s64): Likewise.
28849 (vreinterpret_s8_f32): Likewise.
28850 (vreinterpret_s8_u8): Likewise.
28851 (vreinterpret_s8_u16): Likewise.
28852 (vreinterpret_s8_u32): Likewise.
28853 (vreinterpret_s8_u64): Likewise.
28854 (vreinterpret_s8_p8): Likewise.
28855 (vreinterpret_s8_p16): Likewise.
28856 (vreinterpretq_s8_s16): Likewise.
28857 (vreinterpretq_s8_s32): Likewise.
28858 (vreinterpretq_s8_s64): Likewise.
28859 (vreinterpretq_s8_f32): Likewise.
28860 (vreinterpretq_s8_u8): Likewise.
28861 (vreinterpretq_s8_u16): Likewise.
28862 (vreinterpretq_s8_u32): Likewise.
28863 (vreinterpretq_s8_u64): Likewise.
28864 (vreinterpretq_s8_p8): Likewise.
28865 (vreinterpretq_s8_p16): Likewise.
28866 (vreinterpret_s16_s8): Likewise.
28867 (vreinterpret_s16_s32): Likewise.
28868 (vreinterpret_s16_s64): Likewise.
28869 (vreinterpret_s16_f32): Likewise.
28870 (vreinterpret_s16_u8): Likewise.
28871 (vreinterpret_s16_u16): Likewise.
28872 (vreinterpret_s16_u32): Likewise.
28873 (vreinterpret_s16_u64): Likewise.
28874 (vreinterpret_s16_p8): Likewise.
28875 (vreinterpret_s16_p16): Likewise.
28876 (vreinterpretq_s16_s8): Likewise.
28877 (vreinterpretq_s16_s32): Likewise.
28878 (vreinterpretq_s16_s64): Likewise.
28879 (vreinterpretq_s16_f32): Likewise.
28880 (vreinterpretq_s16_u8): Likewise.
28881 (vreinterpretq_s16_u16): Likewise.
28882 (vreinterpretq_s16_u32): Likewise.
28883 (vreinterpretq_s16_u64): Likewise.
28884 (vreinterpretq_s16_p8): Likewise.
28885 (vreinterpretq_s16_p16): Likewise.
28886 (vreinterpret_s32_s8): Likewise.
28887 (vreinterpret_s32_s16): Likewise.
28888 (vreinterpret_s32_s64): Likewise.
28889 (vreinterpret_s32_f32): Likewise.
28890 (vreinterpret_s32_u8): Likewise.
28891 (vreinterpret_s32_u16): Likewise.
28892 (vreinterpret_s32_u32): Likewise.
28893 (vreinterpret_s32_u64): Likewise.
28894 (vreinterpret_s32_p8): Likewise.
28895 (vreinterpret_s32_p16): Likewise.
28896 (vreinterpretq_s32_s8): Likewise.
28897 (vreinterpretq_s32_s16): Likewise.
28898 (vreinterpretq_s32_s64): Likewise.
28899 (vreinterpretq_s32_f32): Likewise.
28900 (vreinterpretq_s32_u8): Likewise.
28901 (vreinterpretq_s32_u16): Likewise.
28902 (vreinterpretq_s32_u32): Likewise.
28903 (vreinterpretq_s32_u64): Likewise.
28904 (vreinterpretq_s32_p8): Likewise.
28905 (vreinterpretq_s32_p16): Likewise.
28906 (vreinterpret_u8_s8): Likewise.
28907 (vreinterpret_u8_s16): Likewise.
28908 (vreinterpret_u8_s32): Likewise.
28909 (vreinterpret_u8_s64): Likewise.
28910 (vreinterpret_u8_f32): Likewise.
28911 (vreinterpret_u8_u16): Likewise.
28912 (vreinterpret_u8_u32): Likewise.
28913 (vreinterpret_u8_u64): Likewise.
28914 (vreinterpret_u8_p8): Likewise.
28915 (vreinterpret_u8_p16): Likewise.
28916 (vreinterpretq_u8_s8): Likewise.
28917 (vreinterpretq_u8_s16): Likewise.
28918 (vreinterpretq_u8_s32): Likewise.
28919 (vreinterpretq_u8_s64): Likewise.
28920 (vreinterpretq_u8_f32): Likewise.
28921 (vreinterpretq_u8_u16): Likewise.
28922 (vreinterpretq_u8_u32): Likewise.
28923 (vreinterpretq_u8_u64): Likewise.
28924 (vreinterpretq_u8_p8): Likewise.
28925 (vreinterpretq_u8_p16): Likewise.
28926 (vreinterpret_u16_s8): Likewise.
28927 (vreinterpret_u16_s16): Likewise.
28928 (vreinterpret_u16_s32): Likewise.
28929 (vreinterpret_u16_s64): Likewise.
28930 (vreinterpret_u16_f32): Likewise.
28931 (vreinterpret_u16_u8): Likewise.
28932 (vreinterpret_u16_u32): Likewise.
28933 (vreinterpret_u16_u64): Likewise.
28934 (vreinterpret_u16_p8): Likewise.
28935 (vreinterpret_u16_p16): Likewise.
28936 (vreinterpretq_u16_s8): Likewise.
28937 (vreinterpretq_u16_s16): Likewise.
28938 (vreinterpretq_u16_s32): Likewise.
28939 (vreinterpretq_u16_s64): Likewise.
28940 (vreinterpretq_u16_f32): Likewise.
28941 (vreinterpretq_u16_u8): Likewise.
28942 (vreinterpretq_u16_u32): Likewise.
28943 (vreinterpretq_u16_u64): Likewise.
28944 (vreinterpretq_u16_p8): Likewise.
28945 (vreinterpretq_u16_p16): Likewise.
28946 (vreinterpret_u32_s8): Likewise.
28947 (vreinterpret_u32_s16): Likewise.
28948 (vreinterpret_u32_s32): Likewise.
28949 (vreinterpret_u32_s64): Likewise.
28950 (vreinterpret_u32_f32): Likewise.
28951 (vreinterpret_u32_u8): Likewise.
28952 (vreinterpret_u32_u16): Likewise.
28953 (vreinterpret_u32_u64): Likewise.
28954 (vreinterpret_u32_p8): Likewise.
28955 (vreinterpret_u32_p16): Likewise.
28956 (vreinterpretq_u32_s8): Likewise.
28957 (vreinterpretq_u32_s16): Likewise.
28958 (vreinterpretq_u32_s32): Likewise.
28959 (vreinterpretq_u32_s64): Likewise.
28960 (vreinterpretq_u32_f32): Likewise.
28961 (vreinterpretq_u32_u8): Likewise.
28962 (vreinterpretq_u32_u16): Likewise.
28963 (vreinterpretq_u32_u64): Likewise.
28964 (vreinterpretq_u32_p8): Likewise.
28965 (vreinterpretq_u32_p16): Likewise.
28967 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28969 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28971 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28973 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28974 (vqnegd_s64): Likewise.
28975 (vqabs_s64): Likewise.
28976 (vqabsd_s64): Likewise.
28978 2014-04-22 Richard Henderson <rth@redhat.com>
28980 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28981 computation to the top of the loop.
28983 2014-04-22 Renlin <renlin.li@arm.com>
28984 Jiong Wang <jiong.wang@arm.com>
28986 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28987 * config/aarch64/aarch64.c (aarch64_layout_frame)
28988 (aarch64_initial_elimination_offset): Likewise.
28990 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28992 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28995 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28997 * machmode.h (bitwise_mode_for_mode): Declare.
28998 * stor-layout.h (bitwise_type_for_mode): Likewise.
28999 * stor-layout.c (bitwise_mode_for_mode): New function.
29000 (bitwise_type_for_mode): Likewise.
29001 * builtins.c (fold_builtin_memory_op): Use it instead of
29002 int_mode_for_mode and build_nonstandard_integer_type.
29004 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29006 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29007 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29008 (*-*-solaris2*): Simplify.
29009 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29010 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29011 *-*-solaris2.9* handling.
29013 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29015 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29016 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29017 handling, simplify.
29018 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29019 * configure: Regenerate.
29021 * config/i386/sol2-9.h: Remove.
29023 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29024 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29025 Remove Solaris 9 references.
29027 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
29029 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29030 (floatuns<GPI:mode><GPF:mode>2): Remove.
29031 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29032 and floatuns conversions.
29033 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29034 and floatuns conversions.
29035 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29036 (w1,w2): New mode attributes for inequal width conversions.
29038 2014-04-22 Renlin Li <Renlin.Li@arm.com>
29040 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29041 the output asm format.
29043 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29045 * config/aarch64/aarch64-simd.md
29046 (aarch64_cm<optab>di): Always split.
29047 (*aarch64_cm<optab>di): New.
29048 (aarch64_cmtstdi): Always split.
29049 (*aarch64_cmtstdi): New.
29051 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29053 PR tree-optimization/60823
29054 * omp-low.c (ipa_simd_modify_function_body): Go through
29055 all SSA_NAMEs and for those refering to vector arguments
29056 which are going to be replaced adjust SSA_NAME_VAR and,
29057 if it is a default definition, change it into a non-default
29058 definition assigned at the beginning of function from new_decl.
29059 (ipa_simd_modify_stmt_ops): Rewritten.
29060 * tree-dfa.c (set_ssa_default_def): When removing default def,
29061 check for NULL loc instead of NULL *loc.
29063 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29065 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29066 restrictions on core registers for DImode values in Thumb2.
29068 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29070 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29071 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29073 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29075 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29076 (*iordi_notzesidi_di): Likewise.
29077 (*iordi_notsesidi_di): Likewise.
29079 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29081 * config/arm/arm-protos.h (tune_params): New struct members.
29082 * config/arm/arm.c: Initialise tune_params per processor.
29083 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29084 for speed, based on new tune_params.
29086 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29088 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29089 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29090 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29091 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29092 * config/aarch64/arm_neon.h (vrnd_f64): Added.
29093 (vrnda_f64): Likewise.
29094 (vrndi_f64): Likewise.
29095 (vrndm_f64): Likewise.
29096 (vrndn_f64): Likewise.
29097 (vrndp_f64): Likewise.
29098 (vrndx_f64): Likewise.
29100 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29102 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29103 GET_MODE_SIZE argument is enum machine_mode.
29105 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29108 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29109 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29111 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
29113 PR middle-end/60281
29114 * asan.c (asan_emit_stack_protection): Force the base to align to
29115 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
29116 appropriate bits if STRICT_ALIGNMENT.
29117 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29119 (expand_used_vars): Leave a space in the stack frame for alignment
29120 if STRICT_ALIGNMENT.
29122 2014-04-21 David Malcolm <dmalcolm@redhat.com>
29124 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29126 (gimple_store_p): Likewise.
29127 (gimple_assign_load_p): Likewise.
29128 (gimple_assign_cast_p): Likewise.
29129 (gimple_clobber_p): Likewise.
29131 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29132 rather than a gimple.
29133 (gimple_assign_cast_p): Likewise.
29135 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29138 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29139 If mode is DDmode and TARGET_E500_DOUBLE allow move.
29141 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29142 more debug information for E500 if -mdebug=reg.
29144 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
29147 * config/i386/i386.c (ix86_expand_builtin)
29148 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29149 register for target RTX.
29150 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29152 2014-04-18 Cong Hou <congh@google.com>
29154 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29155 the widen-mult pattern by handling two operands with different sizes,
29156 and operands whose size is smaller than half of the result type.
29158 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29160 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29161 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29162 (do_estimate_edge_time): Compute it.
29163 * ipa-inline.c (want_inline_small_function_p): Bypass
29164 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29166 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29168 * ipa-inline.c (spec_rem): New static variable.
29169 (dump_overall_stats): New function.
29170 (dump_inline_stats): New function.
29172 2014-04-18 Richard Henderson <rth@redhat.com>
29174 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29175 to GET_MODE_SIZE, not a reg_class_t.
29177 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29179 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29180 (vsx_xxmrglw_<mode>): Likewise.
29182 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29185 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29186 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29187 (rs6000_init_hard_regno_mode_ok): Likewise.
29189 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29191 * ipa-inline.c (inline_small_functions): Account only non-cold
29193 * doc/invoke.texi (inline-unit-growth): Update documentation.
29195 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29197 * config/rs6000/rs6000.md (addti3, subti3): New.
29199 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29202 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29203 comment. Check optimize_insn_for_size_p instead of
29204 optimize_insn_for_speed_p.
29206 2014-04-17 Martin Jambor <mjambor@suse.cz>
29208 * gimple-iterator.c (gsi_start_edge): New function.
29209 * gimple-iterator.h (gsi_start_edge): Declare.
29210 * tree-sra.c (single_non_eh_succ): New function.
29211 (disqualify_ops_if_throwing_stmt): Renamed to
29212 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29213 having one non-EH successor BB.
29214 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29215 generate loads into replacements.
29216 (sra_modify_assign): Likewise and and also use the simple path for
29218 (sra_modify_function_body): Commit statements on edges.
29220 2014-04-17 Richard Biener <rguenther@suse.de>
29222 PR middle-end/60849
29223 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29224 comparison results and add clarifying comment.
29226 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29228 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29229 (blank_mode): Initialize it.
29230 (emit_mode_size_inline, emit_mode_nunits_inline,
29231 emit_mode_inner_inline): New functions.
29232 (emit_insn_modes_h): Call them and surround their output with
29233 #if GCC_VERSION >= 4001 ... #endif.
29234 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29235 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29236 mode_* arrays if the argument is __builtin_constant_p.
29237 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29238 is enum machine_mode.
29240 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29242 * passes.c (opt_pass::execute): Adjust.
29243 (pass_manager::execute_pass_mode_switching): Likewise.
29244 (early_local_passes::execute): Likewise.
29245 (execute_one_pass): Pass cfun to the pass's execute method.
29246 * tree-pass.h (opt_pass::execute): Add function * argument.
29247 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29248 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29249 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29250 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29251 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29252 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29253 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29254 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29255 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29256 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29257 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29258 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29259 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29260 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29261 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29262 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29263 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29264 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29265 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29266 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29267 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29268 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29269 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29270 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29271 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29272 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29273 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29274 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29275 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29278 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29280 * passes.c (opt_pass::gate): Take function * argument.
29281 (gate_all_early_local_passes): Merge into
29282 (early_local_passes::gate): this.
29283 (gate_all_early_optimizations): Merge into
29284 (all_early_optimizations::gate): this.
29285 (gate_all_optimizations): Mege into
29286 (all_optimizations::gate): this.
29287 (gate_all_optimizations_g): Merge into
29288 (all_optimizations_g::gate): this.
29289 (gate_rest_of_compilation): Mege into
29290 (rest_of_compilation::gate): this.
29291 (gate_postreload): Merge into
29292 (postreload::gate): this.
29293 (dump_one_pass): Pass cfun to the pass's gate method.
29294 (execute_ipa_summary_passes): Likewise.
29295 (execute_one_pass): Likewise.
29296 (ipa_write_summaries_2): Likewise.
29297 (ipa_write_optimization_summaries_1): Likewise.
29298 (ipa_read_summaries_1): Likewise.
29299 (ipa_read_optimization_summaries_1): Likewise.
29300 (execute_ipa_stmt_fixups): Likewise.
29301 * tree-pass.h (opt_pass::gate): Add function * argument.
29302 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29303 combine-stack-adj.c, combine.c, compare-elim.c,
29304 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29305 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29306 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29307 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29308 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29309 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29310 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29311 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29312 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29313 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29314 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29315 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29316 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29317 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29318 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29319 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29320 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29321 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29322 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29323 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29324 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29325 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29326 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29327 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29328 var-tracking.c, vtable-verify.c, web.c: Adjust.
29330 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29332 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29333 * configure: Regenerate.
29335 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29337 * passes.c (dump_one_pass): don't check pass->has_gate.
29338 (execute_ipa_summary_passes): Likewise.
29339 (execute_one_pass): Likewise.
29340 (ipa_write_summaries_2): Likewise.
29341 (ipa_write_optimization_summaries_1): Likewise.
29342 (ipa_read_optimization_summaries_1): Likewise.
29343 (execute_ipa_stmt_fixups): Likewise.
29344 * tree-pass.h (pass_data::has_gate): Remove.
29345 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29346 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29347 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29348 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29349 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29350 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29351 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29352 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29353 gimple-low.c, gimple-ssa-isolate-paths.c,
29354 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29355 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29356 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29357 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29358 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29359 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29360 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29361 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29362 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29363 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29364 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29365 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29366 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29367 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29368 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29369 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29370 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29371 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29372 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29373 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29374 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29375 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29378 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29380 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29382 * passes.c (pass_manager::register_dump_files_1): Merge into
29383 (pass_manager::register_dump_files): this, and remove its handling of
29384 properties since the pass always has the properties anyway.
29385 (pass_manager::pass_manager): Adjust.
29387 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29389 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29390 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29391 dealing with properties.
29392 (pass_manager::register_dump_files): Adjust.
29394 2014-03-20 Mark Wielaard <mjw@redhat.com>
29396 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29397 then represent the bound as normal constant value.
29399 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29402 Forward port from 4.8 branch
29403 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29405 * config/i386/bmiintrin.h (_blsi_u32): New.
29406 (_blsi_u64): Ditto.
29407 (_blsr_u32): Ditto.
29408 (_blsr_u64): Ditto.
29409 (_blsmsk_u32): Ditto.
29410 (_blsmsk_u64): Ditto.
29411 (_tzcnt_u32): Ditto.
29412 (_tzcnt_u64): Ditto.
29414 2014-04-17 Kito Cheng <kito@0xlab.org>
29416 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29418 2014-04-17 Richard Biener <rguenther@suse.de>
29420 PR middle-end/60849
29421 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29422 boolean results for comparisons.
29424 2014-04-17 Richard Biener <rguenther@suse.de>
29426 PR tree-optimization/60836
29427 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29428 initial PHI args to be gimple values.
29430 2014-04-17 Richard Biener <rguenther@suse.de>
29432 PR tree-optimization/60841
29433 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29434 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29435 of stmts to SLP build.
29436 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29437 (vect_analyze_slp): Likewise.
29438 (vect_analyze_slp_instance): Likewise.
29439 (vect_build_slp_tree): Limit overall SLP tree growth.
29440 * tree-vectorizer.h (vect_analyze_data_refs,
29441 vect_analyze_slp): Adjust prototypes.
29443 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29445 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29448 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29450 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29451 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29452 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29453 for TARGET_SLOW_PSHUFB
29455 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29457 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29458 * config/i386/i386.c (intel_cost): Ditto.
29460 2014-04-17 Joey Ye <joey.ye@arm.com>
29462 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29464 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29466 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29467 with -fuse-profile.
29469 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29471 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29472 (type_all_derivations_known_p): New predicate.
29473 (type_all_ctors_visible_p): New predicate.
29474 (type_possibly_instantiated_p): New predicate.
29475 (get_odr_type): Compute all_derivations_known.
29476 (dump_odr_type): Dump the flag.
29477 (maybe_record_type): Cleanup.
29478 (record_target_from_binfo): Add bases_to_consider array;
29479 record bases for types w/o instances and skip CXX destructor.
29480 (possible_polymorphic_call_targets_1): Add bases_to_consider
29481 and consider_construction parameters; check if type may have instance.
29482 (get_polymorphic_call_info): Set maybe_in_construction to true
29483 when we know nothing.
29484 (record_targets_from_bases): Skip CXX destructors; they are
29485 never called for types in construction.
29486 (possible_polymorphic_call_targets): Do not record target when
29487 type may not have instance.
29489 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29492 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29493 external aliases alive, too.
29495 2014-04-16 Andrew Pinski <apinski@cavium.com>
29497 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29500 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29502 * final.c (compute_alignments): Do not apply loop alignment to a block
29503 falling through to the exit.
29505 2014-04-16 Catherine Moore <clm@codesourcery.com>
29507 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29508 Adjust constraints for microMIPS store patterns.
29510 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29512 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29514 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29516 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29517 (append_use): Run at -O0.
29518 (append_vdef): Likewise.
29519 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29520 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29522 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29524 PR tree-optimization/60844
29525 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29526 (propagate_op_to_single_use, remove_visited_stmt_chain,
29527 linearize_expr, repropagate_negates, reassociate_bb): Use it
29528 instead of gsi_remove.
29530 2014-04-16 Martin Jambor <mjambor@suse.cz>
29532 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29533 ipa_transforms_to_apply.
29534 (cgraph_function_versioning): Assert that old_node has empty
29535 ipa_transforms_to_apply.
29536 * trans-mem.c (ipa_tm_create_version): Likewise.
29537 * tree-inline.c (tree_function_versioning): Do not duplicate
29538 ipa_transforms_to_apply.
29540 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29543 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29545 Pass necessary as flags on 64-bit Solaris/x86.
29546 Use lowercase relocs for x86_64-*-*.
29547 * configure: Regenerate.
29549 2014-04-15 Jan Hubicka <jh@suse.cz>
29551 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29552 (maybe_record_node, likely_target_p): Use it.
29554 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29557 Revert following patch
29559 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29562 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29563 software floating point or no floating point registers, do not
29564 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29565 in GPRs that occurs after we tested for GPRs that would never be
29568 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29569 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29570 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29571 specifically allow DDmode, since that does not use the SPE SIMD
29574 2014-03-21 Mark Wielaard <mjw@redhat.com>
29576 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29577 as unsigned or int depending on type and value used.
29579 2014-04-15 Richard Biener <rguenther@suse.de>
29581 PR rtl-optimization/56965
29582 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29583 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29585 * alias.c (true_dependence_1): Do not call
29586 nonoverlapping_component_refs_p.
29587 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29588 nonoverlapping_component_refs_p.
29589 (indirect_refs_may_alias_p): Likewise.
29591 2014-04-15 Teresa Johnson <tejohnson@google.com>
29593 * cfg.c (dump_bb_info): Fix flags check.
29594 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29596 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29598 PR rtl-optimization/60663
29599 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29602 2014-04-15 Richard Biener <rguenther@suse.de>
29604 * lto-streamer.h (LTO_major_version): Bump to 4.
29606 2014-04-15 Richard Biener <rguenther@suse.de>
29608 * common.opt (lto_partition_model): New enum.
29609 (flto-partition=): Merge separate options with a single with argument,
29610 add -flto-partition=one support.
29611 * flag-types.h (enum lto_partition_model): Declare.
29612 * opts.c (finish_options): Remove duplicate -flto-partition=
29614 * lto-wrapper.c (run_gcc): Adjust.
29616 2014-04-15 Richard Biener <rguenther@suse.de>
29618 * alias.c (ncr_compar): New function.
29619 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29621 2014-04-15 Richard Biener <rguenther@suse.de>
29623 * alias.c (record_component_aliases): Do not walk BINFOs.
29625 2014-04-15 Richard Biener <rguenther@suse.de>
29627 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29628 Add struct function argument and adjust.
29629 (find_func_aliases_for_call): Likewise.
29630 (find_func_aliases): Likewise.
29631 (find_func_clobbers): Likewise.
29632 (intra_create_variable_infos): Likewise.
29633 (compute_points_to_sets): Likewise.
29634 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29636 2014-04-15 Richard Biener <rguenther@suse.de>
29638 * tree.c (iterative_hash_expr): Use enum tree_code_class
29639 to store TREE_CODE_CLASS.
29640 (tree_block): Likewise.
29641 (tree_set_block): Likewise.
29642 * tree.h (fold_build_pointer_plus_loc): Use
29643 convert_to_ptrofftype_loc.
29645 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29648 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29651 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29653 * cfgloop.h (struct loop): Move force_vectorize down.
29654 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29655 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29656 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29657 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29658 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29659 * tree-core.h (enum annot_expr_kind): Add new kind values.
29660 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29661 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29663 * tree.def (ANNOTATE_EXPR): Tweak comment.
29665 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29667 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29670 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29672 * tree.h (TYPE_IDENTIFIER): Declare.
29673 * tree.c (subrange_type_for_debug_p): Use it.
29674 * godump.c (go_format_type): Likewise.
29675 * dwarf2out.c (is_cxx_auto, modified_type_die,
29676 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29677 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29679 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29682 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29684 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29686 * config/i386/i386.c (examine_argument): Return bool. Return true if
29687 parameter should be passed in memory.
29688 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29689 (construct_container): Update calls to examine_argument.
29690 (function_arg_advance_64): Ditto.
29691 (return_in_memory_32): Merge with ix86_return_in_memory.
29692 (return_in_memory_64): Ditto.
29693 (return_in_memory_ms_64): Ditto.
29695 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29697 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29698 * coverage.c (coverage_compute_profile_id): Handle externally visible
29701 2014-04-14 Martin Jambor <mjambor@suse.cz>
29703 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29704 DECL_DISREGARD_INLINE_LIMITS functions.
29706 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29709 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29711 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29714 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29715 optimize_insn_for_speed_p instead of
29716 optimize_function_for_speed_p.
29718 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29720 * doc/invoke.texi (free): Document AArch64.
29722 2014-04-14 Richard Biener <rguenther@suse.de>
29724 PR tree-optimization/60042
29725 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29726 (insert_into_preds_of_block): Do not prevent PHI insertion
29727 for REFERENCE exprs here ...
29728 (eliminate_dom_walker::before_dom_children): ... but prevent
29729 their use here under similar conditions when applied to the
29730 IL after PRE optimizations.
29732 2014-04-14 Richard Biener <rguenther@suse.de>
29734 * passes.def: Move early points-to after early SRA.
29736 2014-04-14 Richard Biener <rguenther@suse.de>
29738 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29739 check for which sign-changes we allow when forwarding
29740 a converted value into a switch.
29742 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29744 * stor-layout.c (place_field): Finalize non-constant offset for the
29747 2014-04-14 Richard Biener <rguenther@suse.de>
29749 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29751 (expand_switch_using_bit_tests_p): Likewise.
29752 (process_switch): Compute and pass on speed_p based on the
29754 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29755 optimize_bb_for_speed_p.
29757 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29759 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29760 * function.h (struct function): Rename has_force_vect_loops into
29761 has_force_vectorize_loops.
29762 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29763 (input_struct_function_base): Likewise.
29764 * lto-streamer-out.c (output_cfg): Likewise.
29765 (output_struct_function_base): Likewise.
29766 * omp-low.c (expand_omp_simd): Likewise.
29767 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29768 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29769 (version_loop_for_if_conversion): Likewise.
29770 (tree_if_conversion): Likewise.
29771 (main_tree_if_conversion): Likewise.
29772 (gate_tree_if_conversion): Likewise.
29773 * tree-inline.c (copy_loops): Likewise.
29774 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29775 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29776 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29777 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29778 * tree-vectorizer.c (vectorize_loops): Likewise.
29779 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29781 2014-04-14 Richard Biener <rguenther@suse.de>
29784 * lto-streamer-out.c (wrap_refs): New function.
29785 (lto_output): Wrap symbol references in global initializes in
29786 type-preserving MEM_REFs.
29788 2014-04-14 Christian Bruel <christian.bruel@st.com>
29790 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29792 2014-04-14 Christian Bruel <christian.bruel@st.com>
29794 * config/sh/sh.md (setmemqi): New expand pattern.
29795 * config/sh/sh.h (CLEAR_RATIO): Define.
29796 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29797 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29799 2014-04-14 Richard Biener <rguenther@suse.de>
29801 PR middle-end/55022
29802 * fold-const.c (negate_expr_p): Don't negate directional rounding
29804 (fold_negate_expr): Likewise.
29806 2014-04-14 Richard Biener <rguenther@suse.de>
29808 PR tree-optimization/59817
29809 PR tree-optimization/60453
29810 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29811 recursion to catch all CHRECs in the scalar evolution and restrict
29812 the predicate for the remains appropriately.
29814 2014-04-12 Catherine Moore <clm@codesourcery.com>
29816 * config/mips/constraints.md: Add new register constraint "kb".
29817 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29818 (*movhi_internal): Likewise.
29819 (*movqi_internal): Likewise.
29820 * config/mips/mips.h (M16_STORE_REGS): New register class.
29821 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29822 (REG_CLASS_CONTENTS): Likewise.
29823 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29825 2014-04-11 Tobias Burnus <burnus@net-b.de>
29828 * doc/invoke.texi (-Wformat-signedness): Document it.
29829 (Wformat=2): Mention that this enables -Wformat-signedness.
29831 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29833 * common/config/epiphany/epiphany-common.c
29834 (epiphany_option_optimization_table): Enable section anchors by
29835 default at -O1 or higher.
29836 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29837 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29838 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29839 carries no extra cost.
29840 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29841 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29842 * config/epiphany/predicates.md (memclob_operand): New predicate.
29843 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29844 Use memclob_operand predicate and X constraint for operand 3.
29846 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29848 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29849 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29852 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29854 PR rtl-optimization/60651
29855 * mode-switching.c (optimize_mode_switching): Make sure to emit
29856 sets of a lower numbered entity before sets of a higher numbered
29857 entity to a mode of the same or lower priority.
29858 When creating a seginfo for a basic block that starts with a code
29859 label, move the insertion point past the code label.
29860 (new_seginfo): Document and enforce requirement that
29861 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29862 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29863 * doc/tm.texi: Regenerate.
29865 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29868 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29870 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29872 * BASE-VER: Set to 4.10.0.
29874 2014-04-11 Tobias Burnus <burnus@net-b.de>
29877 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29878 * doc/gcc.texi (Service): Update description in the @menu
29879 * doc/invoke.texi (Option Summary): Remove misplaced and
29882 2014-04-11 Steve Ellcey <sellcey@mips.com>
29883 Jakub Jelinek <jakub@redhat.com>
29885 PR middle-end/60556
29886 * expr.c (convert_move): Use emit_store_flag_force instead of
29887 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29890 2014-04-11 Richard Biener <rguenther@suse.de>
29892 PR middle-end/60797
29893 * varasm.c (assemble_alias): Avoid endless error reporting
29894 recursion by setting TREE_ASM_WRITTEN.
29896 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29898 * config/s390/s390.md: Add a splitter for NOT rtx.
29900 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29902 PR rtl-optimization/60663
29903 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29905 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29906 Jakub Jelinek <jakub@redhat.com>
29909 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29910 flag from decl_node to node.
29912 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29915 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29916 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29917 ameliorating the cases where it can be.
29919 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29922 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29924 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29925 (loadsync_<mode>): Change mode.
29926 (load_quadpti, store_quadpti): New.
29927 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29928 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29929 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29931 2014-04-09 Cong Hou <congh@google.com>
29934 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29937 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29939 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29940 instead of vnor to exploit possible fusion opportunity in the
29942 (altivec_expand_vec_perm_const_le): Likewise.
29944 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29946 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29947 (loadsync_<mode>): Change mode.
29948 (load_quadpti, store_quadpti): New.
29949 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29950 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29952 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29955 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29956 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29957 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29959 2014-04-08 Richard Biener <rguenther@suse.de>
29961 PR middle-end/60706
29962 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29963 a 64bit widest int print double-int similar to on HWI64 hosts.
29965 2014-04-08 Richard Biener <rguenther@suse.de>
29967 PR tree-optimization/60785
29968 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29969 default defs properly.
29971 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29973 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29974 (Weffc++): Likewise.
29976 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29978 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29979 set completep to false rather than true.
29981 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29984 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29985 ARM_TARGET2_DWARF_FORMAT.
29987 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29990 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29991 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29994 2014-04-07 Richard Biener <rguenther@suse.de>
29996 PR tree-optimization/60766
29997 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29998 (may_eliminate_iv): Convert cand_value_at result to desired type.
30000 2014-04-07 Jason Merrill <jason@redhat.com>
30003 * common.opt (-fno-gnu-unique): Add.
30004 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30006 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30008 * haifa-sched.c: Fix outdated function reference and minor
30009 grammar errors in introductory comment.
30011 2014-04-07 Richard Biener <rguenther@suse.de>
30013 PR middle-end/60750
30014 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30015 for noreturn calls.
30016 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30018 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
30021 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30022 size accounting for thunks.
30023 (pa_asm_output_mi_thunk): Use final_start_function() and
30024 final_end_function() to output function start and end directives.
30026 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
30028 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30029 device specific ISA/ feature information. Remove short_sp and
30030 errata_skip ds. Add avr_device_specific_features enum to have device
30032 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30033 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30034 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30035 updated device specific info.
30036 * config/avr/avr-mcus.def: Merge device specific details to
30037 dev_attribute field.
30038 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30040 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30041 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30042 assembler if RMW isa supported by current device.
30043 * config/avr/genmultilib.awk: Update as device info structure changed.
30044 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30046 2014-04-04 Cong Hou <congh@google.com>
30048 PR tree-optimization/60656
30049 * tree-vect-stmts.c (supportable_widening_operation):
30050 Fix a bug that elements in a vector with vect_used_by_reduction
30051 property are incorrectly reordered when the operation on it is not
30052 consistant with the one in reduction operation.
30054 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
30056 PR rtl-optimization/60155
30057 * gcse.c (record_set_data): New function.
30058 (single_set_gcse): New function.
30059 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30060 (hoist_code): Likewise.
30061 (get_pressure_class_and_nregs): Likewise.
30063 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
30065 * explow.c (probe_stack_range): Emit a final optimization blockage.
30067 2014-04-04 Anthony Green <green@moxielogic.com>
30069 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30072 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
30075 * lto-cgraph.c (input_overwrite_node): Check that partitioning
30076 flags are set only during streaming.
30077 * ipa.c (process_references, walk_polymorphic_call_targets,
30078 symtab_remove_unreachable_nodes): Drop bodies of always inline
30079 after early inlining.
30080 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30082 2014-04-04 Jakub Jelinek <jakub@redhat.com>
30083 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30086 * dwarf2out.c (const_ok_for_output_1): Reject expressions
30089 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30092 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30094 (cortex_a53_fdivd): Likewise.
30096 2014-04-04 Martin Jambor <mjambor@suse.cz>
30099 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30100 Adjust all callers.
30101 * cgraph.c (clone_of_p): Also return true if thunks match.
30102 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30103 cgraph_function_or_thunk_node and an obsolete comment.
30104 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30106 (build_function_decl_skip_args): Likewise.
30107 (set_new_clone_decl_and_node_flags): New function.
30108 (duplicate_thunk_for_node): Likewise.
30109 (redirect_edge_duplicating_thunks): Likewise.
30110 (cgraph_clone_node): New parameter args_to_skip, pass it to
30111 redirect_edge_duplicating_thunks which is called instead of
30112 cgraph_redirect_edge_callee.
30113 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30114 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30116 2014-04-04 Jeff Law <law@redhat.com>
30119 * config/arm/predicates.md (const_int_I_operand): New predicate.
30120 (const_int_M_operand): Similarly.
30121 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30123 (insv_t2, extv_reg, extzv_t2): Likewise.
30124 (load_multiple_with_writeback): Similarly for const_int_I_operand.
30125 (pop_multiple_with_writeback_and_return): Likewise.
30126 (vfp_pop_multiple_with_writeback): Likewise
30128 2014-04-04 Richard Biener <rguenther@suse.de>
30131 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30132 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30134 * gimplify.h (gimple_add_tmp_var_fn): Declare.
30135 * gimplify.c (gimple_add_tmp_var_fn): New function.
30136 * gimple-expr.h (create_tmp_reg_fn): Declare.
30137 * gimple-expr.c (create_tmp_reg_fn): New function.
30138 * gimple-low.c (record_vars_into): Don't change cfun.
30139 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30140 code generation without cfun.
30142 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
30145 * Makefile.in (install-driver): Fix shell scripting.
30147 2014-04-03 Cong Hou <congh@google.com>
30149 PR tree-optimization/60505
30150 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30151 threshold of number of iterations below which no vectorization
30153 * tree-vect-loop.c (new_loop_vec_info):
30154 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30155 * tree-vect-loop.c (vect_analyze_loop_operations):
30156 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30157 * tree-vect-loop.c (vect_transform_loop):
30158 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30159 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30160 of iterations of the loop and see if we should build the epilogue.
30162 2014-04-03 Richard Biener <rguenther@suse.de>
30164 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30165 (streamer_tree_cache_create): Adjust.
30166 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30167 to allow optional nodes array.
30168 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30169 (streamer_tree_cache_append): Likewise.
30170 (streamer_tree_cache_create): Create nodes array optionally
30171 as specified by parameter.
30172 * lto-streamer-out.c (create_output_block): Avoid maintaining
30173 the node array in the writer cache.
30174 (DFS_write_tree): Remove assertion.
30175 (produce_asm_for_decls): Free the out decl state hash table early.
30176 * lto-streamer-in.c (lto_data_in_create): Adjust for
30177 streamer_tree_cache_create prototype change.
30179 2014-04-03 Richard Biener <rguenther@suse.de>
30181 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30182 set TREE_CHAIN to NULL_TREE.
30184 2014-04-03 Richard Biener <rguenther@suse.de>
30186 PR tree-optimization/60740
30187 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30188 over all GIMPLE_COND operands.
30190 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30192 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30193 (Weffc++): Remove Scott's numbering, merge lists and reference
30196 2014-04-03 Nick Clifton <nickc@redhat.com>
30198 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30201 2014-04-03 Martin Jambor <mjambor@suse.cz>
30203 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30204 mention gcc_unreachable before failing.
30205 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30208 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30211 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30212 inconsistent code and instead mark the context inconsistent.
30213 (possible_polymorphic_call_targets): For inconsistent contexts
30214 return empty complete list.
30216 2014-04-02 Anthony Green <green@moxielogic.com>
30218 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30219 (extendqisi2, extendhisi2): Define.
30220 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30221 (WCHAR_TYPE): Change to unsigned int.
30223 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30225 PR tree-optimization/60733
30226 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30227 insertion point for PHI candidates to be the end of the feeding
30228 block for the PHI argument.
30230 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30232 PR rtl-optimization/60650
30233 * lra-constraints.c (process_alt_operands): Decrease reject for
30234 earlyclobber matching.
30236 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30238 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30240 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30242 * config/spu/spu.c (pad_bb): Do not crash when the last
30243 insn is CODE_FOR_blockage.
30245 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30247 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30248 lies outside the target mode.
30250 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30253 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30254 software floating point or no floating point registers, do not
30255 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30256 in GPRs that occurs after we tested for GPRs that would never be
30259 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30260 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30261 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30262 specifically allow DDmode, since that does not use the SPE SIMD
30265 2014-04-02 Richard Biener <rguenther@suse.de>
30267 PR middle-end/60729
30268 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30269 MODE_INTs. Properly use negv_optab.
30270 (expand_abs): Likewise.
30272 2014-04-02 Richard Biener <rguenther@suse.de>
30275 * Makefile.in (install-driver): Guard extra installs with special
30278 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30280 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30281 Document vec_vgbbd.
30283 2014-04-01 Richard Henderson <rth@redhat.com>
30286 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30287 alternative enabled before register allocation.
30289 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30291 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30292 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30294 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30295 (nios2_got_address): Update nios2_large_got_address call site.
30296 (nios2_delegitimize_address): New function.
30297 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30298 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30299 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30301 2014-04-01 Martin Husemann <martin@duskware.de>
30303 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30306 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30308 PR rtl-optimization/60604
30309 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30310 check from register_operand.
30311 (register_operand): Redefine in terms of general_operand.
30312 (nonmemory_operand): Use register_operand for the non-constant cases.
30314 2014-04-01 Richard Biener <rguenther@suse.de>
30316 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30318 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30320 * doc/invoke.texi (mapp-regs): Clarify.
30322 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30324 * config/i386/avx512fintrin.h (__v32hi): Define type.
30325 (__v64qi): Likewise.
30326 (_mm512_set1_epi8): Define.
30327 (_mm512_set1_epi16): Define.
30328 (_mm512_set4_epi32): Define.
30329 (_mm512_set4_epi64): Define.
30330 (_mm512_set4_pd): Define.
30331 (_mm512_set4_ps): Define.
30332 (_mm512_setr4_epi64): Define.
30333 (_mm512_setr4_epi32): Define.
30334 (_mm512_setr4_pd): Define.
30335 (_mm512_setr4_ps): Define.
30336 (_mm512_setzero_epi32): Define.
30338 2014-03-31 Martin Jambor <mjambor@suse.cz>
30340 PR middle-end/60647
30341 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30342 callsite_arguments_match_p. Updated all callers. Also check types of
30343 corresponding formal parameters and actual arguments.
30344 (not_all_callers_have_enough_arguments_p) Renamed to
30345 some_callers_have_mismatched_arguments_p.
30347 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30349 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30351 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30354 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30357 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30359 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30360 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30362 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30363 Use FMAMODE_NOVF512 mode iterator.
30364 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30365 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30366 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30367 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30369 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30370 Use VF_128_256 mode iterator.
30371 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30374 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30376 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30377 static chain if needed.
30379 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30382 * lra-constraints.c (index_part_to_reg): New.
30383 (process_address): Use it.
30385 2014-03-27 Jeff Law <law@redhat.com>
30386 Jakub Jelinek <jakub@redhat.com>
30389 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30390 gen_rtx_{PLUS,MULT} to build up the address expression.
30392 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30393 creating non-canonical RTL.
30395 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30398 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30399 functions; reorganize to make cheap checks first.
30400 (inline_small_functions): Do not estimate growth when dumping;
30402 * ipa-inline.h (inline_summary): Add min_size.
30403 (growth_likely_positive): New function.
30404 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30405 (set_cond_stmt_execution_predicate): Cleanup.
30406 (estimate_edge_size_and_time): Compute min_size.
30407 (estimate_calls_size_and_time): Likewise.
30408 (estimate_node_size_and_time): Likewise.
30409 (inline_update_overall_summary): Update min_size.
30410 (do_estimate_edge_time): Likewise.
30411 (do_estimate_edge_size): Update.
30412 (do_estimate_edge_hints): Update.
30413 (growth_likely_positive): New function.
30415 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30418 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30419 also if addr has VOIDmode.
30421 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30423 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30424 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30426 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30427 instructions as well as AdvancedSIMD loads.
30429 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30431 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30432 Use crypto_aese type.
30433 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30434 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30435 crypto_aese, crypto_aesmc. Move to types.md.
30436 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30438 * config/arm/iterators.md (crypto_type): Likewise.
30440 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30442 * cgraph.c: Include expr.h and tree-dfa.h.
30443 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30446 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30449 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30450 regs from checking multi-reg pseudos.
30452 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30454 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30456 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30458 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30459 if it would clobber the stack pointer, even temporarily.
30461 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30463 * mode-switching.c: Make small adjustments to the top comment.
30465 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30467 * config/rs6000/constraints.md (wD constraint): New constraint to
30468 match the constant integer to get the top DImode/DFmode out of a
30469 vector in a VSX register.
30471 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30472 match the constant integer to get the top DImode/DFmode out of a
30473 vector in a VSX register.
30475 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30478 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30481 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30482 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30484 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30485 Optimize vec_extract of 64-bit values, where the value being
30486 extracted is in the top word, where we can use scalar
30487 instructions. Add direct move and store support. Combine the big
30488 endian/little endian vector select load support into a single insn.
30489 (vsx_extract_<mode>_internal1): Likewise.
30490 (vsx_extract_<mode>_internal2): Likewise.
30491 (vsx_extract_<mode>_load): Likewise.
30492 (vsx_extract_<mode>_store): Likewise.
30493 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30494 combined into vsx_extract_<mode>_load.
30495 (vsx_extract_<mode>_one_le): Likewise.
30497 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30498 define the top 64-bit vector element.
30500 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30503 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30504 Document vec_vbpermq builtin.
30507 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30508 enable use of xxsldwi and xxpermdi builtin functions.
30509 (vec_xxpermdi): Likewise.
30511 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30512 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30514 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30516 PR rtl-optimization/60650
30517 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30519 (find_spills_for): New.
30520 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30521 Spill all pseudos on the second iteration.
30523 2014-03-27 Marek Polacek <polacek@redhat.com>
30526 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30529 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30531 * config/s390/s390.c (s390_can_use_return_insn): Check for
30532 call-saved FPRs on 31 bit.
30534 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30536 PR middle-end/60682
30537 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30538 if they need regimplification, just drop them instead of
30539 calling gimple_regimplify_operands on them.
30541 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30544 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30545 (aarch64_frame_pointer_required): Adjust logic.
30546 (aarch64_can_eliminate): Adjust logic.
30547 (aarch64_override_options_after_change): Adjust logic.
30549 2014-03-27 Dehao Chen <dehao@google.com>
30551 * ipa-inline.c (early_inliner): Update node's inline info.
30553 2014-03-26 Dehao Chen <dehao@google.com>
30555 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30556 compiler inserted conditional jumps for NAN float check.
30558 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30560 * ubsan.h (ubsan_create_data): Change second argument's type
30561 to const location_t *.
30562 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30564 (ubsan_create_data): Change second argument to const location_t *PLOC.
30565 Create Loc field whenever PLOC is non-NULL.
30566 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30567 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30571 * real.c (real_to_integer2): Change type of low to UHWI.
30573 2014-03-26 Tobias Burnus <burnus@net-b.de>
30575 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30576 (CILK_SELF_SPECS): New define.
30577 (driver_self_specs): Use it.
30579 2014-03-26 Richard Biener <rguenther@suse.de>
30581 * tree-pretty-print.c (percent_K_format): Implement special
30582 case for LTO and its stripped down BLOCK tree.
30584 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30587 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30589 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30590 one range is range_int_cst_p, but not both, at least optimize
30591 addition/subtraction of 0 and multiplication by 0 or 1.
30592 * gimple-fold.c (gimple_fold_call): Fold
30593 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30594 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30595 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30597 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30599 PR rtl-optimization/60452
30600 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30601 <case REG>: Return 1 for invalid offsets from the frame pointer.
30603 2014-03-26 Marek Polacek <polacek@redhat.com>
30606 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30609 2014-03-26 Marek Polacek <polacek@redhat.com>
30612 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30615 2014-03-26 Marek Polacek <polacek@redhat.com>
30618 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30619 multiplication in unsigned type.
30621 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30623 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30625 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30627 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30629 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30632 * cif-code.def (UNREACHABLE) New code.
30633 * ipa-inline.c (inline_small_functions): Skip edges to
30634 __builtlin_unreachable.
30635 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30636 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30637 predicate to __bulitin_unreachable.
30638 (set_cond_stmt_execution_predicate): Fix issue when
30639 invert_tree_comparison returns ERROR_MARK.
30640 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30641 propagate to inline clones.
30642 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30644 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30645 * cgraphclones.c (cgraph_clone_node): If call destination is already
30646 ureachable, do not redirect it back.
30647 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30650 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30652 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30653 Do not modify inline clones.
30655 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30657 * config/i386/i386.md (general_sext_operand): New mode attr.
30658 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30659 don't generate (sign_extend (const_int)).
30660 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30661 operands[2]. Use We constraint instead of <i> and
30662 <general_sext_operand> predicate instead of <general_operand>.
30663 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30664 * config/i386/constraints.md (We): New constraint.
30665 * config/i386/predicates.md (x86_64_sext_operand,
30666 sext_operand): New predicates.
30668 2014-03-25 Martin Jambor <mjambor@suse.cz>
30671 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30672 inconsistent devirtualizations to __builtin_unreachable.
30674 2014-03-25 Marek Polacek <polacek@redhat.com>
30677 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30679 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30681 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30682 order of elements for big-endian.
30684 2014-03-25 Richard Biener <rguenther@suse.de>
30686 PR middle-end/60635
30687 * gimplify-me.c (gimple_regimplify_operands): Update the
30690 2014-03-25 Martin Jambor <mjambor@suse.cz>
30693 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30694 (lto_output_varpool_node): Likewise.
30695 (input_overwrite_node): Likewise.
30696 (input_varpool_node): Likewise.
30698 2014-03-25 Richard Biener <rguenther@suse.de>
30700 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30701 (run_gcc): Likewise.
30703 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30705 * combine.c (simplify_compare_const): Add MODE argument.
30706 Handle mode_width 0 as very large mode_width.
30707 (try_combine, simplify_comparison): Adjust callers.
30709 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30710 type to avoid signed integer overflow.
30711 * explow.c (plus_constant): Likewise.
30713 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30715 * doc/generic.texi: Correct typos.
30717 2014-03-24 Tobias Burnus <burnus@net-b.de>
30719 * doc/invoke.texi (-flto): Expand section about
30720 using static libraries with LTO.
30722 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30724 PR rtl-optimization/60501
30725 * optabs.def (addptr3_optab): New optab.
30726 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30727 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30728 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30730 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30732 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30734 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30736 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30739 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30740 (_mm256_undefined_ps): Define.
30741 (_mm256_undefined_pd): Define.
30742 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30743 (_mm_undefined_pd): Define.
30744 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30745 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30746 (_mm512_undefined_ps): Define.
30747 (_mm512_undefined_pd): Define.
30748 Use _mm*_undefined_*.
30749 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30751 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30753 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30754 (lshr_simd): DI mode added.
30755 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30756 (aarch64_ushr_simddi): Likewise.
30757 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30758 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30759 (vshrd_n_u64): Likewise.
30761 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30763 * Makefile.in (s-macro_list): Depend on cc1.
30765 2014-03-23 Teresa Johnson <tejohnson@google.com>
30767 * ipa-utils.c (ipa_print_order): Use specified dump file.
30769 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30771 PR rtl-optimization/60601
30772 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30774 * gcc.c (eval_spec_function): Initialize save_growing_value.
30776 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30779 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30780 code == MINUS_EXPR, never swap op0 with op1.
30782 * toplev.c (init_local_tick): Avoid signed integer multiplication
30784 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30785 shift by first operand's bitsize.
30787 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30790 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30791 redefine to 1 or 0.
30792 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30793 TARGET_ISA_64BIT_P(x).
30795 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30797 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30798 pattern for vector nor instead of subtract from splat(-1).
30799 (altivec_expand_vec_perm_const_le): Likewise.
30801 2014-03-21 Richard Henderson <rth@twiddle.net>
30804 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30805 related insns after epilogue_completed.
30807 2014-03-21 Martin Jambor <mjambor@suse.cz>
30810 * cgraph.h (symtab_node): New flag body_removed.
30811 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30812 when removing bodies.
30813 * symtab.c (dump_symtab_base): Dump body_removed flag.
30814 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30815 had their bodies removed.
30817 2014-03-21 Martin Jambor <mjambor@suse.cz>
30820 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30823 2014-03-21 Richard Biener <rguenther@suse.de>
30825 PR tree-optimization/60577
30826 * tree-core.h (struct tree_base): Document nothrow_flag use
30827 in DECL_NONALIASED.
30828 * tree.h (DECL_NONALIASED): New.
30829 (may_be_aliased): Adjust.
30830 * coverage.c (build_var): Set DECL_NONALIASED.
30832 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30834 * expr.c (expand_expr_real_1): Remove outdated comment.
30836 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30838 PR middle-end/60597
30839 * ira.c (adjust_cleared_regs): Call copy_rtx on
30840 *reg_equiv[REGNO (loc)].src_p before passing it to
30841 simplify_replace_fn_rtx.
30844 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30845 into CONST, put pic register as first operand of PLUS. Use
30846 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30848 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30850 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30852 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30854 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30855 around for store forwarding issue in the FPU on the UT699.
30856 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30857 loads and operations if -mfix-ut699 is specified.
30858 (divtf3_hq): Tweak attribute.
30859 (sqrttf2_hq): Likewise.
30861 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30863 * calls.c (store_one_arg): Remove incorrect const qualification on the
30864 type of the temporary.
30865 * cfgexpand.c (expand_return): Likewise.
30866 * expr.c (expand_constructor): Likewise.
30867 (expand_expr_real_1): Likewise.
30869 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30871 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30874 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30877 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30879 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30881 * config/arm/aarch-common-protos.h
30882 (alu_cost_table): Fix spelling of "extend".
30883 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30885 2014-03-19 Richard Biener <rguenther@suse.de>
30887 PR middle-end/60553
30888 * tree-core.h (tree_type_common): Re-order pointer members
30889 to reduce recursion depth during GC walks.
30891 2014-03-19 Marek Polacek <polacek@redhat.com>
30894 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30895 before accessing it.
30897 2014-03-19 Richard Biener <rguenther@suse.de>
30900 * lto-streamer-in.c (input_function): In WPA stage do not drop
30903 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30905 PR tree-optimization/60559
30906 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30907 with build_zero_cst assignment.
30909 2014-03-18 Kai Tietz <ktietz@redhat.com>
30911 PR rtl-optimization/56356
30912 * sdbout.c (sdbout_parms): Verify that parms'
30913 incoming argument is valid.
30914 (sdbout_reg_parms): Likewise.
30916 2014-03-18 Richard Henderson <rth@redhat.com>
30919 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30920 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30921 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30923 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30925 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30926 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30927 Italicize plugin event names in description. Explain that
30928 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30929 Remind that no GCC functions should be called after PLUGIN_FINISH.
30930 Explain what pragmas with expansion are.
30932 2014-03-18 Martin Liska <mliska@suse.cz>
30934 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30935 gimple call statement is update.
30936 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30937 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30939 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30942 * ubsan.c (ubsan_instrument_unreachable): Call
30943 initialize_sanitizer_builtins.
30944 (ubsan_pass): Likewise.
30947 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30948 varpool_finalize_decl instead of rest_of_decl_compilation.
30950 2014-03-18 Richard Biener <rguenther@suse.de>
30952 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30953 by using bitmap_and_compl instead of bitmap_and_compl_into.
30954 (df_rd_transfer_function): Likewise.
30956 2014-03-18 Richard Biener <rguenther@suse.de>
30958 * doc/lto.texi (fresolution): Fix typo.
30960 2014-03-18 Richard Biener <rguenther@suse.de>
30962 * doc/invoke.texi (flto): Update for changes in 4.9.
30964 2014-03-18 Richard Biener <rguenther@suse.de>
30966 * doc/loop.texi: Remove section on the removed lambda framework.
30967 Update loop docs with recent changes in preserving loop structure.
30969 2014-03-18 Richard Biener <rguenther@suse.de>
30971 * doc/lto.texi (-fresolution): Document.
30973 2014-03-18 Richard Biener <rguenther@suse.de>
30975 * doc/contrib.texi: Adjust my name.
30977 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30980 * internal-fn.c: Include diagnostic-core.h.
30981 (expand_BUILTIN_EXPECT): New function.
30982 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30983 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30984 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30985 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30986 IFN_BUILTIN_EXPECT.
30987 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30988 Revert 3 argument __builtin_expect code.
30989 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30990 * gimple-fold.c (gimple_fold_call): Likewise.
30991 * tree.h (fold_builtin_expect): New prototype.
30992 * builtins.c (build_builtin_expect_predicate): Add predictor
30993 argument, if non-NULL, create 3 argument __builtin_expect.
30994 (fold_builtin_expect): No longer static. Add ARG2 argument,
30995 pass it through to build_builtin_expect_predicate.
30996 (fold_builtin_2): Adjust caller.
30997 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30998 * internal-fn.def (BUILTIN_EXPECT): New.
31000 2014-03-18 Tobias Burnus <burnus@net-b.de>
31003 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31004 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31005 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31007 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
31010 * predict.c (combine_predictions_for_bb): Fix up formatting.
31011 (expr_expected_value_1, expr_expected_value): Add predictor argument,
31012 fill what it points to if non-NULL.
31013 (tree_predict_by_opcode): Adjust caller, use the predictor.
31014 * predict.def (PRED_COMPARE_AND_SWAP): Add.
31016 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
31018 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31019 proper constant for the store mode.
31021 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
31023 * symtab.c (change_decl_assembler_name): Fix transparent alias
31024 chain construction.
31026 2014-03-16 Renlin Li <Renlin.Li@arm.com>
31028 * config/aarch64/aarch64.c: Correct the comments about the
31029 aarch64 stack layout.
31031 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
31033 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31034 check for GF_OMP_FOR_KIND_FOR.
31036 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
31038 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31039 ymm and zmm register names.
31041 2014-03-17 Jakub Jelinek <jakub@redhat.com>
31044 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31045 note creation for the 2010-08-31 changes.
31047 2014-03-17 Marek Polacek <polacek@redhat.com>
31049 PR middle-end/60534
31050 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31051 as -fno-tree-loop-vectorize.
31052 (expand_omp_simd): Likewise.
31054 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
31056 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31057 (eligible_for_call_delay): New prototype.
31058 * config/sparc/sparc.c (tls_call_delay): Rename into...
31059 (eligible_for_call_delay): ...this. Return false if the instruction
31060 cannot be put in the delay slot of a branch.
31061 (eligible_for_restore_insn): Simplify.
31062 (eligible_for_return_delay): Return false if the instruction cannot be
31063 put in the delay slot of a branch and simplify.
31064 (eligible_for_sibcall_delay): Return false if the instruction cannot be
31065 put in the delay slot of a branch.
31066 * config/sparc/sparc.md (fix_ut699): New attribute.
31067 (tls_call_delay): Delete.
31068 (in_call_delay): Reimplement.
31069 (eligible_for_sibcall_delay): Rename into...
31070 (in_sibcall_delay): ...this.
31071 (eligible_for_return_delay): Rename into...
31072 (in_return_delay): ...this.
31073 (in_branch_delay): Reimplement.
31074 (in_uncond_branch_delay): Delete.
31075 (in_annul_branch_delay): Delete.
31077 2014-03-14 Richard Henderson <rth@redhat.com>
31080 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31081 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31082 (*floathi<X87MODEF>2_i387_with_temp): Remove.
31083 (floathi splitters): Remove.
31084 (float<SWI48x>xf2): New pattern.
31085 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
31086 code that tried to handle DImode for 32-bit, but which was excluded
31087 by the pattern's condition. Drop allocation of stack temporary.
31088 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31089 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31090 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31091 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31092 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31093 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31094 (*float<SWI48><MODEF>2_sse_interunit): Remove.
31095 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31096 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31097 (*float<SWI48x><X87MODEF>2_i387): Remove.
31098 (all float _with_temp splitters): Remove.
31099 (*float<SWI48x><MODEF>2_i387): New pattern.
31100 (*float<SWI48><MODEF>2_sse): New pattern.
31101 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31102 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31104 2014-03-14 Jakub Jelinek <jakub@redhat.com>
31105 Marek Polacek <polacek@redhat.com>
31107 PR middle-end/60484
31108 * common.opt (dump_base_name_prefixed): New Variable.
31109 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31110 if x_dump_base_name_prefixed is already set, set it at the end.
31112 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
31114 PR rtl-optimization/60508
31115 * lra-constraints.c (get_reload_reg): Add new parameter
31117 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31118 Pass the new parameter values.
31120 2014-03-14 Richard Biener <rguenther@suse.de>
31122 * common.opt: Revert unintented changes from r205065.
31123 * opts.c: Likewise.
31125 2014-03-14 Richard Biener <rguenther@suse.de>
31127 PR middle-end/60518
31128 * cfghooks.c (split_block): Properly adjust all loops the
31129 block was a latch of.
31131 2014-03-14 Martin Jambor <mjambor@suse.cz>
31134 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31137 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
31140 * config/avr/avr.c (avr_set_current_function): Pass function name
31141 through default_strip_name_encoding before sanity checking instead
31142 of skipping the first char of the assembler name.
31144 2014-03-13 Richard Henderson <rth@redhat.com>
31147 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31148 (ix86_force_to_memory, ix86_free_from_memory): Remove.
31149 * config/i386/i386-protos.h: Likewise.
31150 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31151 in the expander instead of a splitter.
31152 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31153 any possibility of requiring a memory.
31154 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31155 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31156 (fp branch splitters): Update for ix86_split_fp_branch.
31157 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31158 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31159 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31160 (*fop_<MODEF>_2_i387): Remove f/r alternative.
31161 (*fop_<MODEF>_3_i387): Likewise.
31162 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31163 (splitters for the fop_* register patterns): Remove.
31164 (fscalexf4_i387): Rename from *fscalexf4_i387.
31165 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31167 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31169 PR tree-optimization/59779
31170 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31171 type for bitsize and maxsize instead of HOST_WIDE_INT.
31173 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31175 PR rtl-optimization/57320
31176 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31177 the CFG after thread_prologue_and_epilogue_insns.
31179 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31181 PR rtl-optimization/57189
31182 * lra-constraints.c (process_alt_operands): Disfavor spilling
31185 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31187 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31189 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31191 PR tree-optimization/59025
31192 PR middle-end/60418
31193 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31194 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31196 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31199 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31200 calls of avr_out_plus_1.
31202 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31204 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31205 BB's single pred and update the father loop's latch info later.
31207 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31209 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31213 (VEC_base): Likewise.
31214 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31215 registers, we need to swap double words in little endian mode.
31217 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31218 to be a container mode for 128-bit integer operations added in ISA
31219 2.07. Unlike TImode and PTImode, the preferred register set is
31220 the Altivec/VMX registers for the 128-bit operations.
31222 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31224 (rs6000_split_128bit_ok_p): Likewise.
31226 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31227 macros for creating ISA 2.07 normal and overloaded builtin
31228 functions with 3 arguments.
31229 (BU_P8V_OVERLOAD_3): Likewise.
31230 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31231 for use as overloaded functions.
31232 (VPERM_1TI_UNS): Likewise.
31233 (VSEL_1TI): Likewise.
31234 (VSEL_1TI_UNS): Likewise.
31235 (ST_INTERNAL_1ti): Likewise.
31236 (LD_INTERNAL_1ti): Likewise.
31237 (XXSEL_1TI): Likewise.
31238 (XXSEL_1TI_UNS): Likewise.
31239 (VPERM_1TI): Likewise.
31240 (VPERM_1TI_UNS): Likewise.
31241 (XXPERMDI_1TI): Likewise.
31242 (SET_1TI): Likewise.
31243 (LXVD2X_V1TI): Likewise.
31244 (STXVD2X_V1TI): Likewise.
31245 (VEC_INIT_V1TI): Likewise.
31246 (VEC_SET_V1TI): Likewise.
31247 (VEC_EXT_V1TI): Likewise.
31248 (EQV_V1TI): Likewise.
31249 (NAND_V1TI): Likewise.
31250 (ORC_V1TI): Likewise.
31251 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31252 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31253 overloaded builtin.
31254 (VADDUQM): Likewise.
31255 (VSUBCUQ): Likewise.
31256 (VADDEUQM): Likewise.
31257 (VADDECUQ): Likewise.
31258 (VSUBEUQM): Likewise.
31259 (VSUBECUQ): Likewise.
31261 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31262 __int128_t and __uint128_t types.
31263 (__uint128_type): Likewise.
31264 (altivec_categorize_keyword): Add support for vector __int128_t,
31265 vector __uint128_t, vector __int128, and vector unsigned __int128
31266 as a container type for TImode operations that need to be done in
31267 VSX/Altivec registers.
31268 (rs6000_macro_to_expand): Likewise.
31269 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31270 to support 128-bit integer instructions vaddcuq, vadduqm,
31271 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31272 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31274 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31275 for V1TImode, and set up preferences to use VSX/Altivec registers.
31276 Setup VSX reload handlers.
31277 (rs6000_debug_reg_global): Likewise.
31278 (rs6000_init_hard_regno_mode_ok): Likewise.
31279 (rs6000_preferred_simd_mode): Likewise.
31280 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31281 (easy_altivec_constant): Likewise.
31282 (output_vec_const_move): Likewise.
31283 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31285 (rs6000_expand_vector_extract): Likewise.
31286 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31288 (rs6000_const_vec): Add support for V1TImode.
31289 (rs6000_emit_le_vsx_load): Swap double words when loading or
31290 storing TImode/V1TImode.
31291 (rs6000_emit_le_vsx_store): Likewise.
31292 (rs6000_emit_le_vsx_move): Likewise.
31293 (rs6000_emit_move): Add support for V1TImode.
31294 (altivec_expand_ld_builtin): Likewise.
31295 (altivec_expand_st_builtin): Likewise.
31296 (altivec_expand_vec_init_builtin): Likewise.
31297 (altivec_expand_builtin): Likewise.
31298 (rs6000_init_builtins): Add support for V1TImode type. Add
31299 support for ISA 2.07 128-bit integer builtins. Define type names
31300 for the VSX/Altivec vector types.
31301 (altivec_init_builtins): Add support for overloaded vector
31302 functions with V1TImode type.
31303 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31304 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31306 (rs6000_split_128bit_ok_p): Likewise.
31307 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31308 __int128_t and vector __uint128_t.
31310 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31311 and mode attributes.
31313 (VSX_M2): Likewise.
31318 (VS_scalar): Likewise.
31319 (VS_double): Likewise.
31320 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31322 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31323 we support the ISA 2.07 128-bit integer arithmetic instructions.
31324 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31325 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31326 and TImode types for use with the builtin functions.
31327 (V1TI_type_node): Likewise.
31328 (unsigned_V1TI_type_node): Likewise.
31329 (intTI_type_internal_node): Likewise.
31330 (uintTI_type_internal_node): Likewise.
31332 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31333 128-bit builtin functions.
31334 (UNSPEC_VADDEUQM): Likewise.
31335 (UNSPEC_VADDECUQ): Likewise.
31336 (UNSPEC_VSUBCUQ): Likewise.
31337 (UNSPEC_VSUBEUQM): Likewise.
31338 (UNSPEC_VSUBECUQ): Likewise.
31339 (VM): Add V1TImode to vector mode iterators.
31341 (VI_unit): Likewise.
31342 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31343 (altivec_vaddcuq): Likewise.
31344 (altivec_vsubuqm): Likewise.
31345 (altivec_vsubcuq): Likewise.
31346 (altivec_vaddeuqm): Likewise.
31347 (altivec_vaddecuq): Likewise.
31348 (altivec_vsubeuqm): Likewise.
31349 (altivec_vsubecuq): Likewise.
31351 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31353 (BOOL_128): Likewise.
31354 (BOOL_REGS_OUTPUT): Likewise.
31355 (BOOL_REGS_OP1): Likewise.
31356 (BOOL_REGS_OP2): Likewise.
31357 (BOOL_REGS_UNARY): Likewise.
31358 (BOOL_REGS_AND_CR0): Likewise.
31360 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31361 128-bit integer builtin support.
31362 (vec_vadduqm): Likewise.
31363 (vec_vaddecuq): Likewise.
31364 (vec_vaddeuqm): Likewise.
31365 (vec_vsubecuq): Likewise.
31366 (vec_vsubeuqm): Likewise.
31367 (vec_vsubcuq): Likewise.
31368 (vec_vsubuqm): Likewise.
31370 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31371 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31372 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31373 128-bit integer add/subtract to ISA 2.07.
31375 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31377 * config/arc/arc.c (arc_predicate_delay_insns):
31378 Fix third argument passed to conditionalize_nonjump.
31380 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31382 * config/aarch64/aarch64-builtins.c
31383 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31384 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31385 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31386 instead of __builtin_lfloor.
31387 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31389 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31391 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31392 (tree_ssa_ifcombine_bb_1): New function.
31393 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31394 is an empty forwarder block to then_bb or vice versa and then_bb
31395 and else_bb are effectively swapped.
31397 2014-03-12 Christian Bruel <christian.bruel@st.com>
31400 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31401 REG_CFA_DEF_CFA note.
31402 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31403 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31405 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31407 PR tree-optimization/60454
31408 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31410 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31412 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31413 Do not define target_cpu_default2 to generic.
31414 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31415 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31416 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31418 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31419 Marc Glisse <marc.glisse@inria.fr>
31421 PR tree-optimization/60502
31422 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31423 instead of build_low_bits_mask.
31425 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31427 PR middle-end/60482
31428 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31429 if there are multiple uses, but op doesn't live on E edge.
31430 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31431 clobber stmts before __builtin_unreachable.
31433 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31435 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31436 hard_frame_pointer_rtx.
31437 * cse.c (cse_insn): Remove volatile check.
31438 * cselib.c (cselib_process_insn): Likewise.
31439 * dse.c (scan_insn): Likewise.
31441 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31443 * config/arc/arc.c (conditionalize_nonjump): New function,
31445 (arc_ifcvt): ... this.
31446 (arc_predicate_delay_insns): Use it.
31448 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31450 * config/arc/predicates.md (extend_operand): During/after reload,
31451 allow const_int_operand.
31452 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31453 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31454 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31456 (umulsi3_highpart_i): Likewise.
31458 2014-03-11 Richard Biener <rguenther@suse.de>
31460 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31461 Add asserts to guard possible wrong-code bugs.
31463 2014-03-11 Richard Biener <rguenther@suse.de>
31465 PR tree-optimization/60429
31466 PR tree-optimization/60485
31467 * tree-ssa-structalias.c (set_union_with_increment): Properly
31468 take into account all fields that overlap the shifted vars.
31469 (do_sd_constraint): Likewise.
31470 (do_ds_constraint): Likewise.
31471 (get_constraint_for_ptr_offset): Likewise.
31473 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31475 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31476 (nios2_compute_frame_layout):
31477 Add calculation of cfun->machine->fp_save_offset.
31478 (nios2_expand_prologue): Correct setting of frame pointer register
31480 (nios2_expand_epilogue): Update recovery of stack pointer from
31481 frame pointer accordingly.
31482 (nios2_initial_elimination_offset): Update calculation of offset
31483 for eliminating to HARD_FRAME_POINTER_REGNUM.
31485 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31488 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31489 cgraph_get_create_node on VAR_DECLs.
31491 2014-03-10 Richard Biener <rguenther@suse.de>
31493 PR middle-end/60474
31494 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31496 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31498 * config/vms/vms.opt (vms_float_format): New variable.
31500 2014-03-08 Tobias Burnus <burnus@net-b.de>
31502 * doc/invoke.texi (-fcilkplus): Update implementation status.
31504 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31505 Richard Biener <rguenther@suse.de>
31507 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31508 consistently accross all TUs.
31509 (run_gcc): Enable -fshort-double automatically at link at link-time
31510 and disallow override.
31512 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31515 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31516 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31517 if they can't be used.
31519 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31521 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31522 for Solaris 11/x86 ld.
31523 * configure: Regenerate.
31525 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31527 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31528 (LIB_TLS_SPEC): Save as ld_tls_libs.
31529 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31530 (HAVE_AS_IX86_TLSLDM): New test.
31531 * configure, config.in: Regenerate.
31532 * config/i386/i386.c (legitimize_tls_address): Fall back to
31533 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31534 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31535 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31536 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31538 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31540 * common.opt (fira-loop-pressure): Mark as optimization.
31542 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31544 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31545 an OpenMP mappable type.
31547 2014-03-06 Matthias Klose <doko@ubuntu.com>
31549 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31550 MULTILIB_OSDIRNAMES is not defined.
31552 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31553 Meador Inge <meadori@codesourcery.com>
31556 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31557 (arm_legitimize_address): Call legitimize_tls_address for any
31558 arm_tls_referenced_p expression, handle constant addend. Call it
31559 before testing for !TARGET_ARM.
31560 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31562 2014-03-06 Richard Biener <rguenther@suse.de>
31564 PR middle-end/60445
31568 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31570 * tree-streamer.c (record_common_node): Assert we don't record
31571 nodes with type double.
31572 (preload_common_node): Skip type double, complex double and double
31573 pointer since it is now frontend dependent due to fshort-double option.
31575 2014-03-06 Richard Biener <rguenther@suse.de>
31577 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31578 or -fno-lto is specified and the linker has full plugin support.
31579 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31580 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31581 * lto-wrapper.c (merge_and_complain): Merge compile-time
31582 optimization levels.
31583 (run_gcc): And pass it through to the link options.
31585 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31589 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31591 * cselib.c (remove_useless_values): Skip to avoid quadratic
31592 behavior if the condition moved from...
31593 (cselib_process_insn): ... here holds.
31595 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31598 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31599 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31602 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31603 (TM_H): Add x86-tune.def.
31605 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31607 * config/aarch64/aarch64.c (generic_tunings):
31608 Use cortexa57_extra_costs.
31610 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31613 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31614 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31615 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31618 2014-03-04 Heiher <r@hev.cc>
31620 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31621 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31623 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31625 * config/i386/predicates.md (const2356_operand): Change to ...
31626 (const2367_operand): ... this.
31627 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31629 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31630 (*avx512pf_scatterpf<mode>sf): Ditto.
31631 (avx512pf_scatterpf<mode>df): Ditto.
31632 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31633 (*avx512pf_scatterpf<mode>df): Ditto.
31634 * config/i386/i386.c (ix86_expand_builtin): Update
31635 incorrect hint operand error message.
31637 2014-03-04 Richard Biener <rguenther@suse.de>
31639 * lto-section-in.c (lto_get_section_data): Fix const cast.
31641 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31643 * tree-streamer.c (record_common_node): Assert we don't record
31644 nodes with type double.
31645 (preload_common_node): Skip type double, complex double and double
31646 pointer since it is now frontend dependent due to fshort-double option.
31648 2014-03-04 Richard Biener <rguenther@suse.de>
31651 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31652 (lto_input_toplevel_asms): Likewise.
31653 * lto-section-in.c (lto_get_section_data): Instead do it here
31656 2014-03-04 Richard Biener <rguenther@suse.de>
31658 PR tree-optimization/60382
31659 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31660 dead PHIs a reduction.
31662 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31664 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31666 (_mm_prefetch): Move out of GCC target("sse") pragma.
31667 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31668 GCC target("prfchw") pragma.
31669 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31671 * config/i386/i386.c (ix86_option_override_internal): Enable
31672 -mprfchw with -mprefetchwt1.
31674 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31676 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31679 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31681 * opts.h (CL_PCH_IGNORE): Define.
31682 * targhooks.c (option_affects_pch_p):
31683 Return false for options that have CL_PCH_IGNORE set.
31684 * opt-functions.awk: Process PchIgnore.
31685 * doc/options.texi: Document PchIgnore.
31687 * config/arc/arc.opt (misize): Add PchIgnore property.
31689 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31691 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31692 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31693 constraint on constants to permit them being loaded into
31694 GENERAL_REGS or BASE_REGS.
31696 2014-03-03 Nick Clifton <nickc@redhat.com>
31698 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31699 anti-cacnonical alternatives.
31700 (negandhi3_real): New pattern.
31701 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31703 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31705 * config/avr/avr-mcus.def: Remove atxmega16x1.
31706 * config/avr/avr-tables.opt: Regenerate.
31707 * config/avr/t-multilib: Regenerate.
31708 * doc/avr-mmcu.texi: Regenerate.
31710 2014-03-03 Tobias Grosser <tobias@grosser.es>
31711 Mircea Namolaru <mircea.namolaru@inria.fr>
31713 PR tree-optimization/58028
31714 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31717 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31719 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31720 not handled by recognizers.
31722 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31724 PR middle-end/60175
31725 * function.c (expand_function_end): Don't emit
31726 clobber_return_register sequence if clobber_after is a BARRIER.
31727 * cfgexpand.c (construct_exit_block): Append instructions before
31728 return_label to prev_bb.
31730 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31732 * config/rs6000/constraints.md: Document reserved use of "wc".
31734 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31737 * ipa.c (function_and_variable_visibility): When dissolving comdat
31738 group, also set all symbols to local.
31740 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31745 2013-12-14 Jan Hubicka <jh@suse.cz>
31746 PR middle-end/58477
31747 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31749 2014-03-02 Jon Beniston <jon@beniston.com>
31755 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31756 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31757 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31758 (simple_return, *simple_return): New patterns
31759 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31760 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31762 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31764 * dwarf2out.c (gen_subprogram_die): Tidy.
31766 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31769 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31770 (*mov_t_msb_neg_negc): ... this new insn.
31772 2014-02-28 Jason Merrill <jason@redhat.com>
31775 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31778 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31781 * dwarf2out.c (decltype_auto_die): New static.
31782 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31783 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31784 (is_cxx_auto): Likewise.
31786 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31788 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31789 we are not using general regs only.
31791 2014-02-28 Richard Biener <rguenther@suse.de>
31794 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31795 previous fix and only allow to remove trivial pre-headers
31796 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31797 (remove_forwarder_block): Properly update the latch of a loop.
31799 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31802 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31803 (cselib_preserved_hash_table): New.
31804 (preserve_constants_and_equivs): Move preserved vals to it.
31805 (cselib_find_slot): Look it up first.
31806 (cselib_init): Initialize it.
31807 (cselib_finish): Release it.
31808 (dump_cselib_table): Dump it.
31810 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31813 * cselib.c (remove_useless_values): Skip to avoid quadratic
31814 behavior if the condition moved from...
31815 (cselib_process_insn): ... here holds.
31817 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31820 * var-tracking.c (vt_initialize): Apply the same condition to
31821 preserve the CFA base value.
31823 2014-02-28 Joey Ye <joey.ye@arm.com>
31826 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31827 if reload in progress or completed.
31829 2014-02-28 Tobias Burnus <burnus@net-b.de>
31831 PR middle-end/60147
31832 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31835 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31837 * doc/tm.texi.in (Condition Code Status): Update documention for
31838 relative locations of cc0-setter and cc0-user.
31840 2014-02-27 Jeff Law <law@redhat.com>
31842 PR rtl-optimization/52714
31843 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31844 into two independent simple sets, if I3 is a jump, ensure the
31845 pattern we place into I3 is a (set (pc) ...).
31847 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31848 Jeff Law <law@redhat.com>
31850 PR rtl-optimization/49847
31851 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31852 are in different blocks.
31853 * doc/tm.texi (Condition Code Status): Update documention for
31854 relative locations of cc0-setter and cc0-user.
31856 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31859 * lra.c (lra_emit_add): Check SUBREG too.
31861 2014-02-27 Andreas Schwab <schwab@suse.de>
31863 * config/m68k/m68k.c (m68k_option_override): Disable
31864 -flive-range-shrinkage for classic m68k.
31865 (m68k_override_options_after_change): Likewise.
31867 2014-02-27 Marek Polacek <polacek@redhat.com>
31869 PR middle-end/59223
31870 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31871 -Wmaybe-uninitialized.
31873 2014-02-27 Alan Modra <amodra@gmail.com>
31876 * reload1.c (emit_input_reload_insns): When reload_override_in,
31877 set old to rl->in_reg when rl->in_reg is a subreg.
31879 2014-02-26 Richard Biener <rguenther@suse.de>
31882 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31884 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31886 * common/config/i386/predicates.md (const1256_operand): Remove.
31887 (const2356_operand): New.
31888 (const_1_to_2_operand): Remove.
31889 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31890 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31891 (*avx512pf_gatherpf<mode>sf): Ditto.
31892 (avx512pf_gatherpf<mode>df): Ditto.
31893 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31894 (*avx512pf_gatherpf<mode>df): Ditto.
31895 (avx512pf_scatterpf<mode>sf): Ditto.
31896 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31897 (*avx512pf_scatterpf<mode>sf): Ditto.
31898 (avx512pf_scatterpf<mode>df): Ditto.
31899 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31900 (*avx512pf_scatterpf<mode>df): Ditto.
31901 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31903 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31905 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31906 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31907 (_mm512_mask_testn_epi64_mask): Move to ...
31908 * config/i386/avx512cdintrin.h: Here.
31909 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31910 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31911 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31912 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31913 TARGET_AVX512F from TARGET_AVX512CD.
31915 2014-02-26 Richard Biener <rguenther@suse.de>
31918 * ipa.c (walk_polymorphic_call_targets): Properly guard
31919 call to inline_update_overall_summary.
31921 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31924 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31925 and latches only if requested. Fix latch if it is removed.
31926 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31927 LOOPS_HAVE_PREHEADERS.
31929 2014-02-25 Andrew Pinski <apinski@cavium.com>
31931 * builtins.c (expand_builtin_thread_pointer): Create a new target
31932 when the target is NULL.
31934 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31936 PR rtl-optimization/60317
31937 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31938 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31939 * lra-assigns.c: Include params.h.
31940 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31941 other reload pseudos considerations.
31943 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31945 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31946 to use canonical form for nor<mode>3.
31948 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31951 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31954 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31956 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31957 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31958 (ix86_handle_option): Handle OPT_mprefetchwt1.
31959 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31960 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31962 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31963 OPTION_MASK_ISA_PREFETCHWT1.
31964 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31965 (PTA_PREFETCHWT1): New.
31966 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31967 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31968 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31969 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31970 (*prefetch_avx512pf_<mode>_: Change into ...
31971 (*prefetch_prefetchwt1_<mode>: This.
31972 * config/i386/i386.opt (mprefetchwt1): New.
31973 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31974 (_mm_prefetch): Handle intent to write.
31975 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31977 2014-02-25 Richard Biener <rguenther@suse.de>
31979 PR middle-end/60291
31980 * emit-rtl.c (mem_attrs_htab): Remove.
31981 (mem_attrs_htab_hash): Likewise.
31982 (mem_attrs_htab_eq): Likewise.
31983 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31984 (init_emit_once): Do not allocate mem_attrs_htab.
31986 2014-02-25 Richard Biener <rguenther@suse.de>
31989 * lto-opts.c (lto_write_options): Output non-explicit conservative
31990 -fwrapv, -fno-trapv and -fno-strict-overflow.
31991 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31992 (run_gcc): And pass them through.
31994 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31996 * sel-sched.c (calculate_new_fences): New parameter ptime.
31997 Calculate it as a maximum over all fence cycles.
31998 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31999 Print the final schedule timing when sched_verbose.
32001 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
32003 PR rtl-optimization/60292
32004 * sel-sched.c (fill_vec_av_set): Do not reset target availability
32005 bit fot the fence instruction.
32007 2014-02-24 Alangi Derick <alangiderick@gmail.com>
32009 * calls.h: Fix typo in comment.
32011 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
32013 * config/pa/pa.c (pa_output_move_double): Don't valididate when
32014 adjusting offsetable addresses.
32016 2014-02-24 Guozhi Wei <carrot@google.com>
32018 * sparseset.h (sparseset_pop): Fix the wrong index.
32020 2014-02-24 Walter Lee <walt@tilera.com>
32022 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32023 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32025 * common/config/tilegx/tilegx-common.c
32026 (TARGET_DEFAULT_TARGET_FLAGS): Define.
32027 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32028 (LINK_SPEC): Ditto.
32029 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32030 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32031 (tilegx_gimplify_va_arg_expr): Handle big endian.
32032 (tilegx_expand_unaligned_load): Ditto.
32033 (tilegx_expand_unaligned_store): Ditto.
32034 (TARGET_RETURN_IN_MSB): New.
32035 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32036 (TARGET_ENDIAN_DEFAULT): New.
32037 (TARGET_BIG_ENDIAN): Handle big endian.
32038 (BYTES_BIG_ENDIAN): Ditto.
32039 (WORDS_BIG_ENDIAN): Ditto.
32040 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32041 (ENDIAN_SPEC): New.
32042 (EXTRA_SPECS): New.
32043 * config/tilegx/tilegx.md (extv): Handle big endian.
32045 (insn_st<n>): Ditto.
32046 (insn_st<n>_add<bitsuffix>): Ditto.
32047 (insn_stnt<n>): Ditto.
32048 (insn_stnt<n>_add<bitsuffix>):Ditto.
32049 (vec_interleave_highv8qi): Handle big endian.
32050 (vec_interleave_highv8qi_be): New.
32051 (vec_interleave_highv8qi_le): New.
32052 (insn_v1int_h): Handle big endian.
32053 (vec_interleave_lowv8qi): Handle big endian.
32054 (vec_interleave_lowv8qi_be): New.
32055 (vec_interleave_lowv8qi_le): New.
32056 (insn_v1int_l): Handle big endian.
32057 (vec_interleave_highv4hi): Handle big endian.
32058 (vec_interleave_highv4hi_be): New.
32059 (vec_interleave_highv4hi_le): New.
32060 (insn_v2int_h): Handle big endian.
32061 (vec_interleave_lowv4hi): Handle big endian.
32062 (vec_interleave_lowv4hi_be): New.
32063 (vec_interleave_lowv4hi_le): New.
32064 (insn_v2int_l): Handle big endian.
32065 (vec_interleave_highv2si): Handle big endian.
32066 (vec_interleave_highv2si_be): New.
32067 (vec_interleave_highv2si_le): New.
32068 (insn_v4int_h): Handle big endian.
32069 (vec_interleave_lowv2si): Handle big endian.
32070 (vec_interleave_lowv2si_be): New.
32071 (vec_interleave_lowv2si_le): New.
32072 (insn_v4int_l): Handle big endian.
32073 * config/tilegx/tilegx.opt (mbig-endian): New option.
32074 (mlittle-endian): New option.
32075 * doc/install.texi: Document tilegxbe-linux.
32076 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32078 2014-02-24 Martin Jambor <mjambor@suse.cz>
32081 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32082 there are no parameter descriptors.
32084 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
32086 PR rtl-optimization/60268
32087 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32088 initialization to ...
32089 (sched_rgn_init): ... here.
32090 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32092 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32094 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32097 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32099 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32102 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32104 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32105 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32107 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32109 * config/microblaze/predicates.md: Add cmp_op predicate.
32110 * config/microblaze/microblaze.md: Add branch_compare instruction
32111 which uses cmp_op predicate and emits cmp insn before branch.
32112 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32113 to microblaze_expand_conditional_branch and consolidate logic.
32114 (microblaze_expand_conditional_branch): emit branch_compare
32115 insn instead of handling cmp op separate from branch insn.
32117 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32119 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32122 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32124 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32125 define_insn with define_expand and new define_insn
32126 *altivec_lve<VI_char>x_internal.
32127 (altivec_stve<VI_char>x): Replace define_insn with define_expand
32128 and new define_insn *altivec_stve<VI_char>x_internal.
32129 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32131 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32133 (altivec_expand_stvex_be): New function.
32135 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
32137 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32138 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32139 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32140 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32142 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
32145 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32146 instead of emit_move_insn.
32148 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32150 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32151 vspltw with vsldoi.
32152 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32153 gen_altivec_vsumsws.
32155 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32157 * config/rs6000/altivec.md (altivec_lvxl): Rename as
32158 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32159 (altivec_lvxl_<mode>): New define_expand incorporating
32160 -maltivec=be semantics where needed.
32161 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32162 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32163 semantics where needed.
32164 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32165 (altivec_stvx_<mode>): New define_expand incorporating
32166 -maltivec=be semantics where needed.
32167 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32168 VM2 iterator instead of V4SI.
32169 (altivec_stvxl_<mode>): New define_expand incorporating
32170 -maltivec=be semantics where needed.
32171 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32172 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32173 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32174 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32175 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32176 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32177 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32178 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32179 ALTIVEC_BUILTIN_STVXL.
32180 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32181 (altivec_expand_stvx_be): Likewise.
32182 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32183 (altivec_expand_lvx_be): Likewise.
32184 (altivec_expand_stvx_be): Likewise.
32185 (altivec_expand_builtin): Add cases for
32186 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32187 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32188 (altivec_init_builtins): Add definitions for
32189 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32190 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32192 2014-02-21 Catherine Moore <clm@codesourcery.com>
32194 * doc/invoke.texi (mvirt, mno-virt): Document.
32195 * config/mips/mips.opt (mvirt): New option.
32196 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32198 2014-02-21 Richard Biener <rguenther@suse.de>
32200 PR tree-optimization/60276
32201 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32202 (STMT_VINFO_MIN_NEG_DIST): New macro.
32203 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32204 STMT_VINFO_MIN_NEG_DIST.
32205 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32206 made for negative dependence distances still hold.
32208 2014-02-21 Richard Biener <rguenther@suse.de>
32210 PR middle-end/60291
32211 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32212 DECL_INITIAL for globals not in the current function context.
32214 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32216 PR tree-optimization/56490
32217 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32218 * tree-ssa-uninit.c: Include params.h.
32219 (compute_control_dep_chain): Add num_calls argument, return false
32220 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32221 num_calls to recursive call.
32222 (find_predicates): Change dep_chain into normal array,
32223 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32224 variable and adjust compute_control_dep_chain caller.
32225 (find_def_preds): Likewise.
32227 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32229 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32230 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32232 2014-02-21 Nick Clifton <nickc@redhat.com>
32234 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32235 (pushhi1): Likewise.
32236 (popqi1): Add mode to pre_dec.
32237 (pophi1): Likewise.
32239 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32241 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32242 mode for mask of V8SFmode permutation.
32244 2014-02-20 Richard Henderson <rth@redhat.com>
32247 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32248 a new pseudo for OLDVAL.
32250 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32253 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32254 gen_reg_rtx if d->testing_p.
32255 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32256 if d->testing_p and we will certainly return true.
32257 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32260 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32262 * emit-rtl.c (gen_reg_rtx): Assert that
32263 crtl->emit.regno_pointer_align_length is non-zero.
32265 2014-02-20 Richard Henderson <rth@redhat.com>
32268 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32269 on failure the store back into EXPECT.
32271 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32272 Sandra Loosemore <sandra@codesourcery.com>
32274 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32275 * config/nios2/nios2.c (nios2_function_profiler): Add
32276 -fPIC (flag_pic == 2) support.
32277 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32278 (nios2_large_offset_p): New function.
32279 (nios2_unspec_reloc_p): Move up position, update to use
32280 nios2_large_offset_p.
32281 (nios2_unspec_address): Remove function.
32282 (nios2_unspec_offset): New function.
32283 (nios2_large_got_address): New function.
32284 (nios2_got_address): Add large offset support.
32285 (nios2_legitimize_tls_address): Update usage of removed and new
32287 (nios2_symbol_binds_local_p): New function.
32288 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32289 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32290 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32291 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32292 processing for (const (unspec ...)).
32293 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32295 2014-02-20 Richard Biener <rguenther@suse.de>
32297 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32298 doing the substitution.
32299 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32301 2014-02-20 Martin Jambor <mjambor@suse.cz>
32304 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32305 info when checking whether lattices are bottom.
32307 2014-02-20 Richard Biener <rguenther@suse.de>
32309 PR middle-end/60221
32310 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32313 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32316 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32317 parameter specifying the scaling.
32318 (inline_call): Update.
32319 (want_inline_recursively): Guard division by zero.
32320 (recursive_inlining): Update.
32321 * ipa-inline.h (clone_inlined_nodes): Update.
32323 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32326 * config/i386/i386.c (classify_argument): Pass structures of size
32327 64 bytes or less in register.
32329 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32330 Kirill Yukhin <kirill.yukhin@intel.com>
32332 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32333 (_mm_rcp28_round_ss): Ditto.
32334 (_mm_rsqrt28_round_sd): Ditto.
32335 (_mm_rsqrt28_round_ss): Ditto.
32336 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32337 (_mm_rcp14_round_ss): Ditto.
32338 (_mm_rsqrt14_round_sd): Ditto.
32339 (_mm_rsqrt14_round_ss): Ditto.
32340 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32341 the first input operand, get rid of match_dup.
32342 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32344 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32346 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32347 operand as the first input operand, set type attribute.
32348 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32349 Set type attribute.
32350 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32351 operand as the first input operand, set type attribute.
32353 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32355 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32358 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32361 * config/i386/i386.c (construct_container): Remove TFmode check
32362 for X86_64_INTEGER_CLASS.
32364 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32367 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32368 only when -Wpsabi is enabled.
32370 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32373 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32374 passing arrays in registers are the same as for structs, so remove the
32375 special case for them.
32377 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32379 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32380 destination type, extract only the valid bits if the source type is not
32381 integral and has a different mode.
32383 2014-02-19 Richard Biener <rguenther@suse.de>
32386 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32389 2014-02-19 Richard Biener <rguenther@suse.de>
32392 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32393 (ipa_modify_call_arguments): Emit an argument load explicitely and
32394 preserve virtual SSA form there and for the replacement call.
32395 Do not update SSA form nor free dominance info.
32397 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32399 * ipa.c (function_and_variable_visibility): Also clear WEAK
32400 flag when disolving COMDAT_GROUP.
32402 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32404 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32405 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32406 not devirtualizing.
32407 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32408 do more sanity checks.
32409 (detect_type_change): Return true when giving up early.
32410 (compute_complex_assign_jump_func): Fix type parameter of
32411 ipa_set_ancestor_jf.
32412 (compute_complex_ancestor_jump_func): Likewise.
32413 (update_jump_functions_after_inlining): Fix updating of
32415 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32417 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32419 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32420 inline clones when edge disappears.
32422 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32425 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32426 Split 64-bit moves into 2 patterns. Do not allow the use of
32427 direct move for TDmode in little endian, since the decimal value
32428 has little endian bytes within a word, but the 64-bit pieces are
32429 ordered in a big endian fashion, and normal subreg's of TDmode are
32431 (mov<mode>_64bit_dm): Likewise.
32432 (movtd_64bit_nodm): Likewise.
32434 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32436 PR tree-optimization/60174
32437 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32438 statement of an SSA_NAME that occurs in an abnormal PHI node.
32440 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32443 * final.c (SEEN_BB): Remove.
32444 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32445 (final_scan_insn): Don't force_source_line on second
32446 NOTE_INSN_BASIC_BLOCK.
32448 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32451 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32452 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32453 (type_natural_mode): Warn ABI change when %zmm register is not
32454 available for AVX512F vector value passing.
32456 2014-02-18 Kai Tietz <ktietz@redhat.com>
32459 * config/i386/i386.c (ix86_expand_prologue): Use value in
32460 rax register as displacement when restoring %r10 or %rax.
32461 Fix wrong offset when restoring both registers.
32463 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32465 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32466 assertion with conditional return.
32468 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32469 Uros Bizjak <ubizjak@gmail.com>
32472 * config/i386/driver-i386.c (host_detect_local_cpu): If
32473 YMM state is not saved by the OS, also clear has_f16c. Move
32474 CPUID 0x80000001 handling before YMM state saving checking.
32476 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32478 PR rtl-optimization/58960
32479 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32480 factored out from ...
32481 (sched_init): ... here.
32482 (free_global_sched_pressure_data): New, factored out from ...
32483 (sched_finish): ... here.
32484 * sched-int.h (free_global_sched_pressure_data): Declare.
32485 * sched-rgn.c (nr_regions_initial): New static global.
32486 (haifa_find_rgns): Initialize it.
32487 (schedule_region): Disable sched-pressure for the newly
32490 2014-02-17 Richard Biener <rguenther@suse.de>
32492 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32493 release SSA defs of pattern stmts.
32495 2014-02-17 Richard Biener <rguenther@suse.de>
32497 * tree-inline.c (expand_call_inline): Release the virtual
32498 operand defined by the call we are about to inline.
32500 2014-02-17 Richard Biener <rguenther@suse.de>
32502 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32504 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32505 Ilya Tocar <ilya.tocar@intel.com>
32507 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32508 arguments order in builtin.
32509 (_mm512_permutexvar_epi64): Ditto.
32510 (_mm512_mask_permutexvar_epi64): Ditto
32511 (_mm512_maskz_permutexvar_epi32): Ditto
32512 (_mm512_permutexvar_epi32): Ditto
32513 (_mm512_mask_permutexvar_epi32): Ditto
32515 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32517 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32518 (p8_vmrgow): Likewise.
32520 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32522 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32525 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32528 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32529 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32530 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32531 using direct move instructions on ISA 2.07. Also adjust
32532 instruction length for 64-bit.
32533 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32534 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32536 2014-02-15 Alan Modra <amodra@gmail.com>
32540 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32541 find_replacement on parts of insn rtl that might be reloaded.
32543 2014-02-15 Richard Biener <rguenther@suse.de>
32545 PR tree-optimization/60183
32546 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32547 (tree_ssa_phiprop): Calculate and free post-dominators.
32549 2014-02-14 Jeff Law <law@redhat.com>
32551 PR rtl-optimization/60131
32552 * ree.c (get_extended_src_reg): New function.
32553 (combine_reaching_defs): Use it rather than assuming location of REG.
32554 (find_and_remove_re): Verify first operand of extension is
32555 a REG before adding the insns to the copy list.
32557 2014-02-14 Roland McGrath <mcgrathr@google.com>
32559 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32560 * configure: Regenerated.
32561 * config.in: Regenerated.
32562 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32563 instead of ASM_SHORT.
32565 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32566 Richard Earnshaw <rearnsha@arm.com>
32568 PR rtl-optimization/59535
32569 * lra-constraints.c (process_alt_operands): Encourage alternative
32570 when unassigned pseudo class is superset of the alternative class.
32571 (inherit_reload_reg): Don't inherit when optimizing for code size.
32572 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32573 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32574 modes not less than 4 for Thumb1.
32576 2014-02-14 Kyle McMartin <kyle@redhat.com>
32579 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32581 2014-02-14 Richard Biener <rguenther@suse.de>
32583 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32584 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32585 Do not strip INDIRECT_REFs.
32587 2014-02-14 Richard Biener <rguenther@suse.de>
32590 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32591 DECL_FUNCTION_SPECIFIC_TARGET.
32592 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32593 * tree-streamer-out.c (pack_ts_target_option): Remove.
32594 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32595 (write_ts_function_decl_tree_pointers): Do not stream
32596 DECL_FUNCTION_SPECIFIC_TARGET.
32597 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32598 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32599 (lto_input_ts_function_decl_tree_pointers): Do not stream
32600 DECL_FUNCTION_SPECIFIC_TARGET.
32602 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32604 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32605 (get_initial_def_for_induction, vectorizable_induction): Ignore
32606 debug stmts when looking for exit_phi.
32607 (vectorizable_live_operation): Fix up condition.
32609 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32611 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32612 nreverse() because it changes the content of original tree list.
32614 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32616 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32617 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32619 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32621 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32622 GNU coding standards.
32624 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32627 * dwarf2out.c (gen_subprogram_die): Don't call
32628 add_calling_convention_attribute if subr_die is old_die.
32630 2014-02-13 Sharad Singhai <singhai@google.com>
32632 * doc/optinfo.texi: Fix order of nodes.
32634 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32636 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32637 operands[2], not operands[3].
32639 2014-02-13 Richard Biener <rguenther@suse.de>
32642 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32643 mention the possibility of an in-tree build.
32644 (CLooG): Update recommended version to 0.18.1, mention the
32645 possibility of an in-tree build and clarify that the ISL
32646 bundled with CLooG does not work.
32648 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32651 * expr.c (compress_float_constant): If x is a hard register,
32652 extend into a pseudo and then move to x.
32654 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32656 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32657 caused by bad second argument to warning_at() with -mhotpatch and
32658 nested functions (e.g. with gfortran).
32660 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32662 * opts.c (option_name): Remove "enabled by default" rider.
32664 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32666 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32668 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32669 Uros Bizjak <ubizjak@gmail.com>
32672 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32673 * configure: Regenerated.
32675 2014-02-12 Richard Biener <rguenther@suse.de>
32677 * vec.c (vec_prefix::calculate_allocation): Move as
32678 inline variant to vec.h.
32679 (vec_prefix::calculate_allocation_1): New out-of-line version.
32680 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32681 (vec_prefix::m_has_auto_buf): Rename to ...
32682 (vec_prefix::m_using_auto_storage): ... this.
32683 (vec_prefix::calculate_allocation): Inline the easy cases
32684 and dispatch to calculate_allocation_1 which doesn't need the
32686 (va_heap::reserve): Use gcc_checking_assert.
32687 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32688 m_using_auto_storage.
32689 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32691 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32692 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32693 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32695 2014-02-12 Richard Biener <rguenther@suse.de>
32697 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32698 when we found a dependence.
32700 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32702 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32704 (maybe_fold_stmt): ... into this new function.
32705 * omp-low.c (lower_omp): Update comment.
32707 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32710 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32713 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32715 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32716 identifiers in comments.
32717 (cortexa53_extra_costs): Likewise.
32718 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32719 (cortexa7_extra_costs): Likewise.
32720 (cortexa12_extra_costs): Likewise.
32721 (cortexa15_extra_costs): Likewise.
32722 (v7m_extra_costs): Likewise.
32724 2014-02-12 Richard Biener <rguenther@suse.de>
32726 PR middle-end/60092
32727 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32728 of posix_memalign being successful.
32729 (lower_stmt): Restrict lowering of posix_memalign to when
32730 -ftree-bit-ccp is enabled.
32732 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32734 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32736 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32738 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32740 PR rtl-optimization/60116
32741 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32742 other_insn once the combination has been validated.
32744 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32747 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32749 * ipa-devirt.c: Include demangle.h
32750 (odr_violation_reported): New static variable.
32751 (add_type_duplicate): Update odr_violations.
32752 (maybe_record_node): Add completep parameter; update it.
32753 (record_target_from_binfo): Add COMPLETEP parameter;
32754 update it as needed.
32755 (possible_polymorphic_call_targets_1): Likewise.
32756 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32757 rename FINAL to COMPLETE.
32758 (record_targets_from_bases): Sanity check we found the binfo;
32759 fix COMPLETEP updating.
32760 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32761 parameter, fix computing of COMPLETEP.
32762 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32763 at LTO time do demangling.
32764 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32765 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32767 (gimple_get_virt_method_for_binfo): Likewise.
32768 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32769 gimple_get_virt_method_for_vtable): Update prototypes.
32771 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32774 * genautomata.c (add_presence_absence): Fix typo with
32775 {final_}presence_list.
32777 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32780 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32781 for VSX/Altivec vectors that land in GPR registers.
32783 2014-02-11 Richard Henderson <rth@redhat.com>
32784 Jakub Jelinek <jakub@redhat.com>
32787 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32788 around drhs if type conversion to lacc->type is not useless.
32790 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32792 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32794 (cortex-a57.cortex-a53): Likewise.
32795 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32797 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32799 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32802 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32804 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32805 add_options_for_arm_vfp3.
32807 2014-02-11 Jeff Law <law@redhat.com>
32809 PR middle-end/54041
32810 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32811 object with an undesirable mode.
32813 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32816 * config/i386/sol2-9.h: New file.
32817 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32818 *-*-solaris2.9*): Use it.
32820 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32822 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32823 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32825 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32827 * config/microblaze/microblaze.c: Extend mcpu version format
32829 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32831 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32833 2014-02-10 Richard Henderson <rth@redhat.com>
32836 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32837 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32838 ms-abi vs -mno-accumulate-outgoing-args.
32839 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32840 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32843 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32845 PR middle-end/60080
32846 * cfgexpand.c (expand_asm_operands): Attach source location to
32847 ASM_INPUT rtx objects.
32848 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32850 2014-02-10 Nick Clifton <nickc@redhat.com>
32852 * config/mn10300/mn10300.c (popcount): New function.
32853 (mn10300_expand_prologue): Include saved registers in stack usage
32856 2014-02-10 Jeff Law <law@redhat.com>
32858 PR middle-end/52306
32859 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32860 when changing the SET_DEST of a prior insn to avoid an input reload.
32862 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32864 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32865 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32866 -mcall-openbsd, or -mcall-linux.
32867 (CC1_ENDIAN_BIG_SPEC): Remove.
32868 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32869 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32870 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32871 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32872 and %cc1_endian_default.
32873 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32875 2014-02-10 Richard Biener <rguenther@suse.de>
32877 PR tree-optimization/60115
32878 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32879 MEM_REF handling. Properly verify that the accesses are not
32880 out of the objects bound.
32882 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32884 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32887 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32889 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32890 proper constants and fix formatting.
32891 (possible_polymorphic_call_targets): Fix formatting.
32893 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32894 Ilya Tocar <ilya.tocar@intel.com>
32896 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32897 (_mm512_loadu_epi32): Renamed into...
32898 (_mm512_loadu_si512): This.
32899 (_mm512_storeu_epi32): Renamed into...
32900 (_mm512_storeu_si512): This.
32901 (_mm512_maskz_ceil_ps): Removed.
32902 (_mm512_maskz_ceil_pd): Ditto.
32903 (_mm512_maskz_floor_ps): Ditto.
32904 (_mm512_maskz_floor_pd): Ditto.
32905 (_mm512_floor_round_ps): Ditto.
32906 (_mm512_floor_round_pd): Ditto.
32907 (_mm512_ceil_round_ps): Ditto.
32908 (_mm512_ceil_round_pd): Ditto.
32909 (_mm512_mask_floor_round_ps): Ditto.
32910 (_mm512_mask_floor_round_pd): Ditto.
32911 (_mm512_mask_ceil_round_ps): Ditto.
32912 (_mm512_mask_ceil_round_pd): Ditto.
32913 (_mm512_maskz_floor_round_ps): Ditto.
32914 (_mm512_maskz_floor_round_pd): Ditto.
32915 (_mm512_maskz_ceil_round_ps): Ditto.
32916 (_mm512_maskz_ceil_round_pd): Ditto.
32917 (_mm512_expand_pd): Ditto.
32918 (_mm512_expand_ps): Ditto.
32919 * config/i386/i386.c (ix86_builtins): Remove
32920 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32921 (bdesc_args): Ditto.
32922 * config/i386/predicates.md (const1256_operand): New.
32923 (const_1_to_2_operand): Ditto.
32924 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32925 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32926 (*avx512pf_gatherpf<mode>sf): Ditto.
32927 (avx512pf_gatherpf<mode>df): Ditto.
32928 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32929 (*avx512pf_gatherpf<mode>df): Ditto.
32930 (avx512pf_scatterpf<mode>sf): Ditto.
32931 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32932 (*avx512pf_scatterpf<mode>sf): Ditto.
32933 (avx512pf_scatterpf<mode>df): Ditto.
32934 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32935 (*avx512pf_scatterpf<mode>df): Ditto.
32936 (avx512f_expand<mode>): Removed.
32937 (<shift_insn><mode>3<mask_name>): Change predicate type.
32939 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32941 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32942 not at the end of datarefs vector use ordered_remove to avoid
32943 reordering datarefs vector.
32946 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32947 mark local addressable non-static vars as GOVD_PRIVATE
32948 instead of GOVD_LOCAL.
32949 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32950 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32953 PR middle-end/60092
32954 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32955 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32956 assume_aligned or alloc_align attributes.
32957 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32958 arguments. Handle also assume_aligned and alloc_align attributes.
32959 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32960 calls to functions with assume_aligned or alloc_align attributes.
32961 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32963 2014-02-08 Terry Guo <terry.guo@arm.com>
32965 * doc/invoke.texi: Document ARM -march=armv7e-m.
32967 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32969 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32970 flag on __cilkrts_rethrow builtin.
32973 * ipa-cp.c (determine_versionability): Fail at -O0
32974 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32975 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32978 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32981 * tree-inline.c (copy_forbidden): Fail for
32982 __attribute__((optimize (0))) functions.
32984 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32986 * varpool.c: Include pointer-set.h.
32987 (varpool_remove_unreferenced_decls): Variables in other partitions
32988 will not be output; be however careful to not lose information
32989 about partitioning.
32991 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32993 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32994 lookup in the vtable constructor.
32996 2014-02-07 Jeff Law <law@redhat.com>
32999 * config/m68k/m68k.md (ashldi_extsi): Turn into a
33000 define_insn_and_split.
33002 * ipa-inline.c (inline_small_functions): Fix typos.
33004 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33006 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33007 (s390_can_use_return_insn): Declare.
33008 * config/s390/s390.h (EPILOGUE_USES): Define.
33009 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33011 (s390_chunkify_start): Handle return JUMP_LABELs.
33012 (s390_early_mach): Emit a main_pool instruction on the entry edge.
33013 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33014 (s390_can_use_return_insn): New functions.
33015 (s390_fix_long_loop_prediction): Handle conditional returns.
33016 (TARGET_SET_UP_BY_PROLOGUE): Define.
33017 * config/s390/s390.md (ANY_RETURN): New code iterator.
33018 (*creturn, *csimple_return, return, simple_return): New patterns.
33020 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33022 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33023 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
33024 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
33025 REG_CFA_RESTORE list when deciding not to restore a register.
33027 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33029 * config/s390/s390.c: Include tree-pass.h and context.h.
33030 (s390_early_mach): New function, split out from...
33031 (s390_emit_prologue): ...here.
33032 (pass_data_s390_early_mach): New pass structure.
33033 (pass_s390_early_mach): New class.
33034 (s390_option_override): Create and register early_mach pass.
33035 Move to end of file.
33037 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33039 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33040 to match for the exit block.
33042 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33044 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33045 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33046 Reject misaligned operands.
33048 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33050 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33052 2014-02-07 Richard Biener <rguenther@suse.de>
33054 PR middle-end/60092
33055 * gimple-low.c (lower_builtin_posix_memalign): New function.
33056 (lower_stmt): Call it to lower posix_memalign in a way
33057 to make alignment info accessible.
33059 2014-02-07 Jakub Jelinek <jakub@redhat.com>
33062 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33063 __builtin_setjmp_receiver.
33065 2014-02-07 Richard Biener <rguenther@suse.de>
33067 PR middle-end/60092
33068 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33069 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33070 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33071 Handle BUILT_IN_POSIX_MEMALIGN.
33072 (find_func_clobbers): Likewise.
33073 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33074 (call_may_clobber_ref_p_1): Likewise.
33076 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33079 * ipa-devirt.c (record_target_from_binfo): Remove overactive
33082 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33085 * lto-cgraph.c (lto_output_node): Use
33086 symtab_get_symbol_partitioning_class.
33087 (lto_output_varpool_node): likewise.
33088 (symtab_get_symbol_partitioning_class): Move here from
33089 lto/lto-partition.c
33090 * cgraph.h (symbol_partitioning_class): Likewise.
33091 (symtab_get_symbol_partitioning_class): Declare.
33093 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33095 * ggc.h (ggc_internal_cleared_alloc): New macro.
33096 * vec.h (vec_safe_copy): Handle memory stats.
33097 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33098 * target-globals.c (save_target_globals): Likewise.
33100 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33103 * expr.c (emit_move_resolve_push): Export; be bit more selective
33104 on when to clear alias set.
33105 * expr.h (emit_move_resolve_push): Declare.
33106 * function.h (struct function): Add tail_call_marked.
33107 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33108 * config/i386/i386-protos.h (ix86_expand_push): Remove.
33109 * config/i386/i386.md (TImode move expander): De not call
33111 (FP push expanders): Preserve memory attributes.
33112 * config/i386/sse.md (push<mode>1): Remove.
33113 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33114 (ix86_expand_push): Remove.
33115 * config/i386/mmx.md (push<mode>1): Remove.
33117 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33119 PR rtl-optimization/60030
33120 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33121 lopart with paradoxical subreg before shifting it up by hprec.
33123 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33125 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33126 Remove extra newline at end of file.
33127 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33128 (arm_issue_rate): Handle cortexa57.
33129 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33130 (cortex-a57.cortex-a53): Likewise.
33132 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33135 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33136 don't record in REG_FRAME_RELATED_EXPR registers not set in that
33138 (arm_expand_prologue): Adjust all callers.
33139 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33140 info, registers also at the lowest numbered registers side. Use
33141 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33145 * var-tracking.c (adjust_mems): Before adding a SET to
33146 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33148 2014-02-06 Alan Modra <amodra@gmail.com>
33151 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33152 change SDmode to DDmode when lra_in_progress.
33154 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33156 PR middle-end/59150
33157 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33158 free_data_ref on the dr first, and before goto again also set dr
33159 to the next dr. For simd_lane_access, free old datarefs[i] before
33160 overwriting it. For get_vectype_for_scalar_type failure, don't
33161 free_data_ref if simd_lane_access.
33163 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33166 * tree.h (opts_for_fn): New inline function.
33167 (opt_for_fn): Define.
33168 * config/i386/i386.c (ix86_function_regparm): Use
33169 opt_for_fn (decl, optimize) instead of optimize.
33171 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33173 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33174 for SYMBOL_REF in large memory model.
33176 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33178 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33179 and crypto support.
33180 (cortex-a57): Likewise.
33181 (cortex-a57.cortex-a53): Likewise.
33183 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33184 Kugan Vivekanandarajah <kuganv@linaro.org>
33186 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33188 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33190 2014-02-06 Richard Biener <rguenther@suse.de>
33192 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33193 set_loop_copy and initialize_original_copy_tables.
33195 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33197 * config/aarch64/aarch64-simd.md
33198 (aarch64_ashr_simddi): Change QI to SI.
33200 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33201 Jakub Jelinek <jakub@redhat.com>
33203 PR middle-end/60013
33204 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33207 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33209 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33210 CODE_FOR_altivec_vpku[hw]um to
33211 CODE_FOR_altivec_vpku[hw]um_direct.
33212 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33213 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33214 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33215 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33217 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33219 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33220 generation for -maltivec=be.
33221 (altivec_vsumsws): Simplify redundant test.
33223 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33225 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33226 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33227 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33228 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33229 gen_altivec_vpkuwum.
33230 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33232 (altivec_vpks<VI_char>ss): Likewise.
33233 (altivec_vpks<VI_char>us): Likewise.
33234 (altivec_vpku<VI_char>us): Likewise.
33235 (altivec_vpku<VI_char>um): Likewise.
33236 (altivec_vpku<VI_char>um_direct): New (copy of
33237 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33239 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33240 target is little endian and -maltivec=be is not specified.
33241 (*altivec_vupkhs<VU_char>_direct): New (copy of
33242 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33243 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33244 target is little endian and -maltivec=be is not specified.
33245 (*altivec_vupkls<VU_char>_direct): New (copy of
33246 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33247 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33248 little endian and -maltivec=be is not specified.
33249 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33250 little endian and -maltivec=be is not specified.
33252 2014-02-05 Richard Henderson <rth@redhat.com>
33255 * combine-stack-adj.c: Revert r206943.
33256 * sched-int.h (struct deps_desc): Add last_args_size.
33257 * sched-deps.c (init_deps): Initialize it.
33258 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33259 contain REG_ARGS_SIZE notes.
33261 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33263 * lto-cgraph.c (asm_nodes_output): Make global.
33264 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33265 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33266 (driver_handle_option): Handle OPT_fwpa.
33268 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33271 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33272 a comment typo and formatting issue. If odr_hash hasn't been
33273 created, return vNULL and set *completep to false.
33275 PR middle-end/57499
33276 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33277 bb with no successors.
33279 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33282 * doc/invoke.texi (-march): Clarify documentation for ARM.
33283 (-mtune): Likewise.
33286 2014-02-05 Richard Biener <rguenther@suse.de>
33288 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33289 when not vectorizing because of too many alias checks.
33290 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33291 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33293 2014-02-05 Nick Clifton <nickc@redhat.com>
33295 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33296 accept extended registers in any mode when compiling for the MN10300.
33298 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33300 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33301 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33302 sanitization attributes.
33303 (can_inline_edge_p): Likewise.
33304 (sanitize_attrs_match_for_inline_p): New function.
33306 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33308 * ipa-prop.c (detect_type_change): Shor circuit testing of
33309 type changes on THIS pointer.
33311 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33314 * config/pa/pa.c (legitimize_tls_address): Return original address
33315 if not passed a SYMBOL_REF rtx.
33316 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33318 (pa_emit_move_sequence): Simplify TLS source operands.
33319 (pa_legitimate_constant_p): Reject all TLS constants.
33320 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33321 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33323 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33325 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33326 groups when we know they are controlled by LTO.
33327 * varasm.c (default_binds_local_p_1): If object is in other partition,
33328 it will be resolved locally.
33330 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33332 * config/host-linux.c (linux_gt_pch_use_address): Don't
33333 use SSIZE_MAX because it is not always defined.
33335 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33338 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33339 threshold for pseudo splitting.
33340 (update_ebb_live_info): Process call argument hard registers and
33341 hard registers from insn definition too.
33342 (max_small_class_regs_num): New constant.
33343 (inherit_in_ebb): Update live hard regs through EBBs. Update
33344 reloads_num only for small register classes. Don't split for
33347 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33350 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33353 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33355 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33356 visibility is safe.
33358 2014-02-04 Marek Polacek <polacek@redhat.com>
33360 * gdbinit.in (pel): Define.
33362 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33364 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33367 2014-02-04 Richard Biener <rguenther@suse.de>
33370 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33371 in function context local.
33372 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33373 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33374 similar to LTO_imported_decl_ref.
33376 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33378 PR tree-optimization/60002
33379 * cgraphclones.c (build_function_decl_skip_args): Clear
33380 DECL_LANG_SPECIFIC.
33382 PR tree-optimization/60023
33383 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33384 false to gsi_replace.
33385 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33386 has been in some EH region and vec_stmt could throw, add
33387 vec_stmt into the same EH region.
33388 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33389 has no lhs, ignore it.
33390 * internal-fn.c (expand_MASK_LOAD): Likewise.
33393 * tree-inline.c (copy_forbidden): Fail for
33394 __attribute__((optimize (0))) functions.
33397 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33398 is set, copy one less argument.
33399 (expand_simd_clones): Don't subtract clone_info->inbranch
33400 from simd_clone_struct_alloc argument.
33402 PR rtl-optimization/57915
33403 * recog.c (simplify_while_replacing): If all unary/binary/relational
33404 operation arguments are constant, attempt to simplify those.
33406 PR middle-end/59261
33407 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33408 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33410 2014-02-04 Richard Biener <rguenther@suse.de>
33412 PR tree-optimization/60012
33413 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33414 TBAA disambiguation to all DDRs.
33416 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33419 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33420 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33422 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33425 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33427 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33429 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33430 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33432 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33435 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33436 to figure out targets of polymorphic calls with known decl.
33437 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33438 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33439 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33440 (get_polymorphic_call_info): ... here.
33441 (get_polymorphic_call_info_from_invariant): New function.
33443 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33445 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33446 lookup via vtable pointer; check for type consistency
33447 and turn inconsitent facts into UNREACHABLE.
33448 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33449 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33450 type inconsistent querries; return UNREACHABLE instead.
33452 2014-02-03 Richard Henderson <rth@twiddle.net>
33455 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33456 already processed this node.
33457 (normalize_one_pred_1): Pass along mark_set.
33458 (normalize_one_pred): Create and destroy a pointer_set_t.
33459 (normalize_one_pred_chain): Likewise.
33461 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33463 PR gcov-profile/58602
33464 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33466 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33469 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33470 -fno-devirtualize; try to devirtualize by the knowledge of
33471 virtual table pointer given by aggregate propagation.
33472 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33473 (ipa_print_node_jump_functions): Dump also offset that
33474 is relevant for polymorphic calls.
33475 (determine_known_aggregate_parts): Add arg_type parameter; use it
33476 instead of determining the type from pointer type.
33477 (ipa_compute_jump_functions_for_edge): Update call of
33478 determine_known_aggregate_parts.
33479 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33480 (gimple_get_virt_method_for_binfo): ... here; simplify using
33481 vtable_pointer_value_to_vtable.
33482 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33483 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33484 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33485 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33487 (vtable_pointer_value_to_binfo): ... here.
33488 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33490 2014-02-03 Teresa Johnson <tejohnson@google.com>
33492 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33493 redef of outer loop index variable.
33495 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33499 * doc/extend.texi (Function Attributes): Typo.
33501 2014-02-03 Cong Hou <congh@google.com>
33503 PR tree-optimization/60000
33504 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33505 if the vectorized statement is a store. A store statement can only
33506 appear at the end of pattern statements.
33508 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33510 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33511 (ix86_option_override_internal): Default long double to 64-bit for
33512 32-bit Bionic and to 128-bit for 64-bit Bionic.
33514 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33515 TARGET_LONG_DOUBLE_128 is true.
33516 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33518 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33519 (mlong-double-64): Negate -mlong-double-128.
33520 (mlong-double-128): New option.
33522 * config/i386/i386-c.c (ix86_target_macros): Define
33523 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33525 * doc/invoke.texi: Document -mlong-double-128.
33527 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33529 PR rtl-optimization/60024
33530 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33532 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33534 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33536 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33538 PR rtl-optimization/57662
33539 * sel-sched.c (code_motion_path_driver): Do not mark already not
33540 existing blocks in the visiting bitmap.
33542 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33544 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33545 on the insn being emitted.
33547 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33548 Will Deacon <will.deacon@arm.com>
33550 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33552 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33554 * config/arm/arm-tables.opt: Regenerate.
33556 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33558 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33559 for vector types other than V16QImode.
33560 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33561 define_expand, and call altivec_expand_vec_perm_le when producing
33562 code with little endian element order.
33563 (*altivec_vperm_<mode>_internal): New insn having previous
33564 behavior of altivec_vperm_<mode>.
33565 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33566 altivec_expand_vec_perm_le when producing code with little endian
33568 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33569 behavior of altivec_vperm_<mode>_uns.
33571 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33573 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33574 (altivec_vsumsws): Add handling for -maltivec=be with a little
33576 (altivec_vsumsws_direct): New.
33577 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33578 gen_altivec_vsumsws.
33580 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33582 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33583 vtable_pointer_value_to_binfo): New functions.
33584 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33585 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33587 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33589 * config/nios2/nios2.md (load_got_register): Initialize GOT
33590 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33591 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33593 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33595 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33596 preserverd by passthrough, do not propagate the type.
33598 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33600 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33601 (mips_atomic_assign_expand_fenv): New function.
33602 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33604 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33606 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33607 (__builtin_mips_set_fcsr): Likewise.
33608 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33609 MIPS_USI_FTYPE_VOID.
33610 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33611 (mips16_expand_set_fcsr): Likewise.
33612 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33613 (mips16_set_fcsr_stub): Likewise.
33614 (mips16_get_fcsr_one_only_stub): New class.
33615 (mips16_set_fcsr_one_only_stub): Likewise.
33616 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33617 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33618 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33619 (hard_float): New availability predicate.
33620 (mips_builtins): Add get_fcsr and set_fcsr.
33621 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33622 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33623 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33624 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33625 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33628 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33630 * config/mips/mips.c (mips_one_only_stub): New class.
33631 (mips_need_mips16_rdhwr_p): Replace with...
33632 (mips16_rdhwr_stub): ...this new variable.
33633 (mips16_stub_call_address): New function.
33634 (mips16_rdhwr_one_only_stub): New class.
33635 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33636 (mips_output_mips16_rdhwr): Delete.
33637 (mips_finish_stub): New function.
33638 (mips_code_end): Use it to handle rdhwr stubs.
33640 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33643 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33644 when calculating size of integer atomic types.
33646 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33648 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33650 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33652 PR tree-optimization/60003
33653 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33654 * profile.c (branch_prob): Use gimple_call_builtin_p
33655 to check for BUILT_IN_SETJMP_RECEIVER.
33656 * tree-inline.c (copy_bb): Call notice_special_calls.
33658 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33661 * lra-constraints.c (process_alt_operands): Update reload_sum only
33664 2014-01-31 Richard Henderson <rth@redhat.com>
33666 PR middle-end/60004
33667 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33668 until after else_eh is processed.
33670 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33672 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33673 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33674 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33675 in smmintrin.h, remove them.
33676 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33677 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33678 * config/i386/i386.md (ROUND_SAE): Fix value.
33679 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33680 (const48_operand): New.
33681 * config/i386/subst.md (round), (round_expand): Use
33682 const_4_or_8_to_11_operand.
33683 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33685 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33687 * config/i386/constraints.md (Yk): Swap meaning with k.
33688 * config/i386/i386.md (movhi_internal): Change Yk to k.
33689 (movqi_internal): Ditto.
33690 (*k<logic><mode>): Ditto.
33693 (kandn<mode>): Ditto.
33694 (*<code>hi_1): Ditto.
33695 (*<code>qi_1): Ditto.
33696 (kxnor<mode>): Ditto.
33697 (kortestzhi): Ditto.
33698 (kortestchi): Ditto.
33700 (*one_cmplhi2_1): Ditto.
33701 (*one_cmplqi2_1): Ditto.
33702 * config/i386/sse.md (): Change k to Yk.
33703 (avx512f_load<mode>_mask): Ditto.
33704 (avx512f_blendm<mode>): Ditto.
33705 (avx512f_store<mode>_mask): Ditto.
33706 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33707 (avx512f_storedqu<mode>_mask): Ditto.
33708 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33710 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33711 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33712 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33713 (avx512f_maskcmp<mode>3): Ditto.
33714 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33715 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33716 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33717 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33718 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33719 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33720 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33721 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33722 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33723 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33724 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33725 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33726 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33727 (vec_extract_lo_<mode>_maskm): Ditto.
33728 (vec_extract_hi_<mode>_maskm): Ditto.
33729 (avx512f_vternlog<mode>_mask): Ditto.
33730 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33731 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33732 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33733 (avx512f_<code>v8div16qi2_mask): Ditto.
33734 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33735 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33736 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33737 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33738 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33739 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33740 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33741 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33742 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33743 (avx512cd_maskb_vec_dupv8di): Ditto.
33744 (avx512cd_maskw_vec_dupv16si): Ditto.
33745 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33746 (avx512f_vpermi2var<mode>3_mask): Ditto.
33747 (avx512f_vpermi2var<mode>3_mask): Ditto.
33748 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33749 (*avx512f_gathersi<mode>): Ditto.
33750 (*avx512f_gathersi<mode>_2): Ditto.
33751 (*avx512f_gatherdi<mode>): Ditto.
33752 (*avx512f_gatherdi<mode>_2): Ditto.
33753 (*avx512f_scattersi<mode>): Ditto.
33754 (*avx512f_scatterdi<mode>): Ditto.
33755 (avx512f_compress<mode>_mask): Ditto.
33756 (avx512f_compressstore<mode>_mask): Ditto.
33757 (avx512f_expand<mode>_mask): Ditto.
33758 * config/i386/subst.md (mask): Change k to Yk.
33759 (mask_scalar_merge): Ditto.
33762 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33764 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33766 2014-01-31 Richard Biener <rguenther@suse.de>
33768 PR middle-end/59990
33769 * builtins.c (fold_builtin_memory_op): Make sure to not
33770 use a floating-point mode or a boolean or enumeral type for
33771 the copy operation.
33773 2014-01-30 DJ Delorie <dj@redhat.com>
33775 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33776 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33777 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33778 whenever main() has an epilogue.
33780 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33782 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33783 unused variable "field".
33784 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33785 (vsx_mergeh_<mode>): Likewise.
33786 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33787 (altivec_vmrghh): Likewise.
33788 (altivec_vmrghw): Likewise.
33789 (altivec_vmrglb): Likewise.
33790 (altivec_vmrglh): Likewise.
33791 (altivec_vmrglw): Likewise.
33792 (altivec_vspltb): Add missing uses.
33793 (altivec_vsplth): Likewise.
33794 (altivec_vspltw): Likewise.
33795 (altivec_vspltsf): Likewise.
33797 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33800 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33801 frame related instructions.
33803 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33805 PR rtl-optimization/59959
33806 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33807 any reload of register whose subreg is invalid.
33809 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33811 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33812 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33813 Add missing return type - void.
33815 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33817 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33818 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33819 remove element index adjustment for endian (now handled in vsx.md
33821 (altivec_expand_vec_perm_const): Use
33822 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33823 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33824 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33825 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33826 define_expand and a new define_insn *altivec_vspltb_internal;
33827 adjust for -maltivec=be on a little endian target.
33828 (altivec_vspltb_direct): New.
33829 (altivec_vsplth): Divide into a define_expand and a new
33830 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33831 little endian target.
33832 (altivec_vsplth_direct): New.
33833 (altivec_vspltw): Divide into a define_expand and a new
33834 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33835 little endian target.
33836 (altivec_vspltw_direct): New.
33837 (altivec_vspltsf): Divide into a define_expand and a new
33838 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33839 a little endian target.
33841 2014-01-30 Richard Biener <rguenther@suse.de>
33843 PR tree-optimization/59993
33844 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33845 can propagate form the earlier stmt and avoid the transform
33846 when the intermediate result is needed.
33848 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33850 * README.Portability: Fix typo.
33852 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33854 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33855 comparison_operator with ordered_comparison_operator.
33857 2014-01-30 Nick Clifton <nickc@redhat.com>
33859 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33860 Rename to mn10300_store_multiple_regs.
33861 * config/mn10300/mn10300.c: Likewise.
33862 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33863 store_multiple_regs.
33864 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33865 Call mn10300_store_multiple_regs.
33867 2014-01-30 Nick Clifton <nickc@redhat.com>
33868 DJ Delorie <dj@redhat.com>
33870 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33871 %fp 2 to keep registers after it properly word-aligned.
33872 (rl78_alloc_physical_registers_umul): Handle the case where both
33873 input operands are the same.
33875 2014-01-30 Richard Biener <rguenther@suse.de>
33877 PR tree-optimization/59903
33878 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33881 2014-01-30 Jason Merrill <jason@redhat.com>
33884 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33887 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33889 2014-01-30 Richard Biener <rguenther@suse.de>
33891 PR tree-optimization/59951
33892 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33894 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33897 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33898 SFmode to DFmode case.
33900 2014-01-29 DJ Delorie <dj@redhat.com>
33902 * config/msp430/msp430.opt (-minrt): New.
33903 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33905 (ENDFILE_SPEC): Likewise.
33907 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33909 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33910 (estimate_function_body_sizes): Use it.
33912 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33915 * dwarf2out.c (is_cxx_auto): New.
33916 (is_base_type): Use it.
33917 (gen_type_die_with_usage): Likewise.
33919 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33921 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33922 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33923 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33924 -maltivec=be with LE targets.
33925 (vsx_mergeh_<mode>): Likewise.
33926 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33927 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33928 (altivec_vmrghb): Replace with define_expand and new
33929 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33930 (altivec_vmrghb_direct): New define_insn.
33931 (altivec_vmrghh): Replace with define_expand and new
33932 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33933 (altivec_vmrghh_direct): New define_insn.
33934 (altivec_vmrghw): Replace with define_expand and new
33935 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33936 (altivec_vmrghw_direct): New define_insn.
33937 (*altivec_vmrghsf): Adjust for endianness.
33938 (altivec_vmrglb): Replace with define_expand and new
33939 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33940 (altivec_vmrglb_direct): New define_insn.
33941 (altivec_vmrglh): Replace with define_expand and new
33942 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33943 (altivec_vmrglh_direct): New define_insn.
33944 (altivec_vmrglw): Replace with define_expand and new
33945 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33946 (altivec_vmrglw_direct): New define_insn.
33947 (*altivec_vmrglsf): Adjust for endianness.
33948 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33949 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33950 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33951 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33952 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33953 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33954 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33955 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33957 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33959 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33960 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33963 2014-01-29 Richard Biener <rguenther@suse.de>
33965 PR tree-optimization/58742
33966 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33967 associate_pointerplus_align.
33968 (associate_pointerplus_diff): New function.
33969 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33970 and associate_pointerplus_diff.
33972 2014-01-29 Richard Biener <rguenther@suse.de>
33974 * lto-streamer.h (LTO_major_version): Bump to 3.
33975 (LTO_minor_version): Reset to 0.
33977 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33979 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33980 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33981 (arm_file_start): Generate correct asm header for armv7ve.
33982 * config/arm/bpabi.h: Add multilib support for armv7ve.
33983 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33984 and cortex-a15 to armv7ve.
33985 * config/arm/t-aprofile: Add multilib support for armv7ve.
33986 * doc/invoke.texi: Document -march=armv7ve.
33988 2014-01-29 Richard Biener <rguenther@suse.de>
33990 PR tree-optimization/58742
33991 * tree-ssa-forwprop.c (associate_plusminus): Return true
33992 if we changed sth, defer EH cleanup to ...
33993 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33994 (simplify_mult): New function.
33996 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33998 PR middle-end/59917
33999 PR tree-optimization/59920
34000 * tree.c (build_common_builtin_nodes): Remove
34001 __builtin_setjmp_dispatcher initialization.
34002 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34003 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34004 instead of gsi_after_labels + manually skipping debug stmts.
34005 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34006 ignore bbs with IFN_ABNORMAL_DISPATCHER.
34007 * tree-inline.c (copy_edges_for_bb): Remove
34008 can_make_abnormal_goto argument, instead add abnormal_goto_dest
34009 argument. Ignore computed_goto_p stmts. Don't call
34010 make_abnormal_goto_edges. If a call might need abnormal edges
34011 for non-local gotos, see if it already has an edge to
34012 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34013 with true argument, don't do anything then, otherwise add
34014 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34015 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34017 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34018 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34019 (lower_stmt): Don't set data->calls_builtin_setjmp.
34020 (lower_builtin_setjmp): Adjust comment.
34021 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34022 * tree-cfg.c (found_computed_goto): Remove.
34023 (factor_computed_gotos): Remove.
34024 (make_goto_expr_edges): Return bool, true for computed gotos.
34025 Don't call make_abnormal_goto_edges.
34026 (build_gimple_cfg): Don't set found_computed_goto, don't call
34027 factor_computed_gotos.
34028 (computed_goto_p): No longer static.
34029 (make_blocks): Don't set found_computed_goto.
34030 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34031 (make_edges): If make_goto_expr_edges returns true, push bb
34032 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34033 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34034 vector. Record mapping between bbs and OpenMP regions if there
34035 are any, adjust make_gimple_omp_edges caller. Call
34036 handle_abnormal_edges.
34037 (make_abnormal_goto_edges): Remove.
34038 * tree-cfg.h (make_abnormal_goto_edges): Remove.
34039 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34040 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34041 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34042 * internal-fn.def (ABNORMAL_DISPATCHER): New.
34043 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34044 filling *region also set *region_idx to (*region)->entry->index.
34047 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34048 For REGs set ORIGINAL_REGNO.
34050 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
34052 * doc/md.texi: Mention that a target shouldn't implement
34053 vec_widen_(s|u)mul_even/odd pair if it is less efficient
34056 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34058 PR tree-optimization/59594
34059 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34060 a copy of the datarefs vector rather than the vector itself.
34062 2014-01-28 Jason Merrill <jason@redhat.com>
34065 * dwarf2out.c (auto_die): New static.
34066 (gen_type_die_with_usage): Handle C++1y 'auto'.
34067 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34070 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
34073 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34074 (SPEC_X32): Likewise.
34075 (SPEC_64): Likewise.
34076 * config/i386/i386.c (ix86_option_override_internal): Turn off
34077 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34079 (x86_file_start): Output .code16gcc for TARGET_16BIT.
34080 * config/i386/i386.h (TARGET_16BIT): New macro.
34081 (TARGET_16BIT_P): Likewise.
34082 * config/i386/i386.opt: Add m16.
34083 * doc/invoke.texi: Document -m16.
34085 2014-01-28 Jakub Jelinek <jakub@redhat.com>
34087 PR preprocessor/59935
34088 * input.c (location_get_source_line): Bail out on when line number
34089 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34091 2014-01-28 Richard Biener <rguenther@suse.de>
34093 PR tree-optimization/58742
34094 * tree-ssa-forwprop.c (associate_plusminus): Handle
34095 pointer subtraction of the form (T)(P + A) - (T)P.
34097 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34099 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34102 2014-01-28 Richard Biener <rguenther@suse.de>
34105 2014-01-28 Richard Biener <rguenther@suse.de>
34107 PR rtl-optimization/45364
34108 PR rtl-optimization/59890
34109 * var-tracking.c (local_get_addr_clear_given_value): Handle
34110 already cleared slot.
34111 (val_reset): Handle not allocated local_get_addr_cache.
34112 (vt_find_locations): Use post-order on the inverted CFG.
34114 2014-01-28 Richard Biener <rguenther@suse.de>
34116 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34118 2014-01-28 Richard Biener <rguenther@suse.de>
34120 PR rtl-optimization/45364
34121 PR rtl-optimization/59890
34122 * var-tracking.c (local_get_addr_clear_given_value): Handle
34123 already cleared slot.
34124 (val_reset): Handle not allocated local_get_addr_cache.
34125 (vt_find_locations): Use post-order on the inverted CFG.
34127 2014-01-28 Alan Modra <amodra@gmail.com>
34129 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34130 * configure.ac <recursive call for build != host>: Define
34131 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34132 and LD_FOR_BUILD too.
34133 * configure: Regenerate.
34135 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
34137 * config/i386/i386.c (get_builtin_code_for_version): Separate
34138 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34139 Broadwell from Haswell.
34141 2014-01-27 Steve Ellcey <sellcey@mips.com>
34143 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34144 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34145 * config/mips/mips.c (mips_option_override): Change setting
34147 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34148 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34149 Change from Mask to Var.
34151 2014-01-27 Jeff Law <law@redhat.com>
34153 * ipa-inline.c (inline_small_functions): Fix typo.
34155 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
34157 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34158 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34159 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34160 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34161 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34162 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34163 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34164 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34165 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34166 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34167 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34168 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34169 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34170 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34171 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34172 (_mm512_storeu_epi64): Ditto.
34173 (_mm512_cmpge_epi32_mask): Ditto.
34174 (_mm512_cmpge_epu32_mask): Ditto.
34175 (_mm512_cmpge_epi64_mask): Ditto.
34176 (_mm512_cmpge_epu64_mask): Ditto.
34177 (_mm512_cmple_epi32_mask): Ditto.
34178 (_mm512_cmple_epu32_mask): Ditto.
34179 (_mm512_cmple_epi64_mask): Ditto.
34180 (_mm512_cmple_epu64_mask): Ditto.
34181 (_mm512_cmplt_epi32_mask): Ditto.
34182 (_mm512_cmplt_epu32_mask): Ditto.
34183 (_mm512_cmplt_epi64_mask): Ditto.
34184 (_mm512_cmplt_epu64_mask): Ditto.
34185 (_mm512_cmpneq_epi32_mask): Ditto.
34186 (_mm512_cmpneq_epu32_mask): Ditto.
34187 (_mm512_cmpneq_epi64_mask): Ditto.
34188 (_mm512_cmpneq_epu64_mask): Ditto.
34189 (_mm512_expand_pd): Ditto.
34190 (_mm512_expand_ps): Ditto.
34191 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34192 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34193 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34194 * config/i386/i386.c (ix86_builtins): Add
34195 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34196 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34197 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34198 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34199 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34200 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34201 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34202 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34203 IX86_BUILTIN_PMOVUSQW512_MEM.
34204 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34205 __builtin_ia32_pmovsqd512mem_mask,
34206 __builtin_ia32_pmovqd512mem_mask,
34207 __builtin_ia32_pmovusqw512mem_mask,
34208 __builtin_ia32_pmovsqw512mem_mask,
34209 __builtin_ia32_pmovqw512mem_mask,
34210 __builtin_ia32_pmovusdw512mem_mask,
34211 __builtin_ia32_pmovsdw512mem_mask,
34212 __builtin_ia32_pmovdw512mem_mask,
34213 __builtin_ia32_pmovqb512mem_mask,
34214 __builtin_ia32_pmovusqb512mem_mask,
34215 __builtin_ia32_pmovsqb512mem_mask,
34216 __builtin_ia32_pmovusdb512mem_mask,
34217 __builtin_ia32_pmovsdb512mem_mask,
34218 __builtin_ia32_pmovdb512mem_mask.
34219 (bdesc_args): Add __builtin_ia32_expanddf512,
34220 __builtin_ia32_expandsf512.
34221 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34222 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34223 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34224 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34225 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34226 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34227 (avx512f_<code>v8div16qi2_mask_store): This.
34228 (avx512f_expand<mode>): New.
34230 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34232 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34234 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34235 (_mm512_prefetch_i32scatter_pd): Ditto.
34236 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34237 (_mm512_prefetch_i64scatter_pd): Ditto.
34238 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34239 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34240 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34241 (_mm512_prefetch_i32scatter_ps): Ditto.
34242 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34243 (_mm512_prefetch_i64scatter_ps): Ditto.
34244 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34245 * config/i386/i386-builtin-types.def: Define
34246 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34247 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34248 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34249 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34250 IX86_BUILTIN_SCATTERPFQPD.
34251 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34252 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34253 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34254 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34255 __builtin_ia32_scatterpfqps.
34256 (ix86_expand_builtin): Expand new built-ins.
34257 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34258 fix memory access data type.
34259 (*avx512pf_gatherpf<mode>_mask): Ditto.
34260 (*avx512pf_gatherpf<mode>): Ditto.
34261 (avx512pf_scatterpf<mode>): Ditto.
34262 (*avx512pf_scatterpf<mode>_mask): Ditto.
34263 (*avx512pf_scatterpf<mode>): Ditto.
34264 (GATHER_SCATTER_SF_MEM_MODE): New.
34265 (avx512pf_gatherpf<mode>df): Ditto.
34266 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34267 (*avx512pf_scatterpf<mode>df): Ditto.
34269 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34272 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34273 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34276 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34278 * common/config/arm/arm-common.c
34279 (arm_rewrite_mcpu): Handle multiple names.
34281 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34283 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34285 * gimple-builder.h (create_gimple_tmp): Delete.
34287 2014-01-27 Christian Bruel <christian.bruel@st.com>
34289 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34292 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34294 * config/pa/pa.md (call): Generate indirect long calls to non-local
34295 functions when outputing 32-bit code.
34296 (call_value): Likewise except for special call to buggy powf function.
34298 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34299 portable runtime and PIC indirect calls.
34300 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34301 and PIC call sequences. Use ldo instead of blr to set return register
34302 in PIC call sequence.
34304 2014-01-25 Walter Lee <walt@tilera.com>
34306 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34307 avoid clobbering a live register.
34309 2014-01-25 Walter Lee <walt@tilera.com>
34311 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34312 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34313 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34314 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34316 2014-01-25 Walter Lee <walt@tilera.com>
34318 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34319 arguments on even registers.
34320 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34322 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34323 (BIGGEST_ALIGNMENT): Ditto.
34324 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34326 2014-01-25 Walter Lee <walt@tilera.com>
34328 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34329 insns before bundling.
34330 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34332 2014-01-25 Walter Lee <walt@tilera.com>
34334 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34335 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34336 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34338 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34340 * config/mips/constraints.md (kl): Delete.
34341 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34342 define expands, using...
34343 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34344 instructions for MIPS16.
34345 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34346 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34348 2014-01-25 Walter Lee <walt@tilera.com>
34350 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34354 2014-01-25 Walter Lee <walt@tilera.com>
34356 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34357 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34359 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34361 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34364 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34366 * print-rtl.c (in_call_function_usage): New var.
34367 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34368 EXPR_LIST mode as mode and not as reg note name.
34370 PR middle-end/59561
34371 * cfgloopmanip.c (copy_loop_info): If
34372 loop->warned_aggressive_loop_optimizations, make sure
34373 the flag is set in target loop too.
34375 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34377 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34379 * builtins.def: Likewise.
34380 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34381 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34382 * ira.c (ira_setup_eliminable_regset): Likewise.
34383 * omp-low.c (gate_expand_omp): Likewise.
34384 (execute_lower_omp): Likewise.
34385 (diagnose_sb_0): Likewise.
34386 (gate_diagnose_omp_blocks): Likewise.
34387 (simd_clone_clauses_extract): Likewise.
34390 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34392 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34393 correction for little endian...
34394 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34397 2014-01-24 Jeff Law <law@redhat.com>
34399 PR tree-optimization/59919
34400 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34401 for non-returning calls.
34403 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34405 * common/config/aarch64/aarch64-common.c
34406 (aarch64_rewrite_mcpu): Handle multiple names.
34407 * config/aarch64/aarch64.h
34408 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34410 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34412 * input.c (add_file_to_cache_tab): Handle the case where fopen
34415 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34418 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34419 from push operand if code of push isn't PRE_DEC.
34421 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34424 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34425 -mquad-memory-atomic. Update -mquad-memory documentation to say
34426 it is only used for non-atomic loads/stores.
34428 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34429 -mquad-memory or -mquad-memory-atomic switches.
34431 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34432 -mquad-memory-atomic to ISA 2.07 support.
34434 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34435 to separate support of normal quad word memory operations (ldq, stq)
34436 from the atomic quad word memory operations.
34438 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34439 support to separate non-atomic quad word operations from atomic
34440 quad word operations. Disable non-atomic quad word operations in
34441 little endian mode so that we don't have to swap words after the
34442 load and before the store.
34443 (quad_load_store_p): Add comment about atomic quad word support.
34444 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34445 options printed with -mdebug=reg.
34447 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34448 -mquad-memory-atomic as the test for whether we have quad word
34449 atomic instructions.
34450 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34451 or -mp8-vector are used, allow byte/half-word atomic operations.
34453 * config/rs6000/sync.md (load_lockedti): Insure that the address
34454 is a proper indexed or indirect address for the lqarx instruction.
34455 On little endian systems, swap the hi/lo registers after the lqarx
34457 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34458 insure the address is valid for the lqarx instruction.
34459 (store_conditionalti): Insure that the address is a proper indexed
34460 or indirect address for the stqcrx. instruction. On little endian
34461 systems, swap the hi/lo registers before doing the stqcrx.
34463 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34464 insure the address is valid for the stqcrx. instruction.
34466 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34467 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34468 type of quad memory support is available.
34470 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34472 PR regression/59915
34473 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34474 there is a danger of looping.
34476 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34478 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34479 force flag_ira_loop_pressure if set via command line.
34481 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34483 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34484 (ashr_simd): New builtin handling DI mode.
34485 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34486 (aarch64_sshr_simddi): New match pattern.
34487 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34488 (vshrd_n_s64): Likewise.
34489 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34491 2014-01-23 Nick Clifton <nickc@redhat.com>
34493 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34494 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34495 favour of mcu specific scripts.
34496 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34499 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34500 Alex Velenko <Alex.Velenko@arm.com>
34502 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34503 (vaddv_s16): Likewise.
34504 (vaddv_s32): Likewise.
34505 (vaddv_u8): Likewise.
34506 (vaddv_u16): Likewise.
34507 (vaddv_u32): Likewise.
34508 (vaddvq_s8): Likewise.
34509 (vaddvq_s16): Likewise.
34510 (vaddvq_s32): Likewise.
34511 (vaddvq_s64): Likewise.
34512 (vaddvq_u8): Likewise.
34513 (vaddvq_u16): Likewise.
34514 (vaddvq_u32): Likewise.
34515 (vaddvq_u64): Likewise.
34516 (vaddv_f32): Likewise.
34517 (vaddvq_f32): Likewise.
34518 (vaddvq_f64): Likewise.
34519 (vmaxv_f32): Likewise.
34520 (vmaxv_s8): Likewise.
34521 (vmaxv_s16): Likewise.
34522 (vmaxv_s32): Likewise.
34523 (vmaxv_u8): Likewise.
34524 (vmaxv_u16): Likewise.
34525 (vmaxv_u32): Likewise.
34526 (vmaxvq_f32): Likewise.
34527 (vmaxvq_f64): Likewise.
34528 (vmaxvq_s8): Likewise.
34529 (vmaxvq_s16): Likewise.
34530 (vmaxvq_s32): Likewise.
34531 (vmaxvq_u8): Likewise.
34532 (vmaxvq_u16): Likewise.
34533 (vmaxvq_u32): Likewise.
34534 (vmaxnmv_f32): Likewise.
34535 (vmaxnmvq_f32): Likewise.
34536 (vmaxnmvq_f64): Likewise.
34537 (vminv_f32): Likewise.
34538 (vminv_s8): Likewise.
34539 (vminv_s16): Likewise.
34540 (vminv_s32): Likewise.
34541 (vminv_u8): Likewise.
34542 (vminv_u16): Likewise.
34543 (vminv_u32): Likewise.
34544 (vminvq_f32): Likewise.
34545 (vminvq_f64): Likewise.
34546 (vminvq_s8): Likewise.
34547 (vminvq_s16): Likewise.
34548 (vminvq_s32): Likewise.
34549 (vminvq_u8): Likewise.
34550 (vminvq_u16): Likewise.
34551 (vminvq_u32): Likewise.
34552 (vminnmv_f32): Likewise.
34553 (vminnmvq_f32): Likewise.
34554 (vminnmvq_f64): Likewise.
34556 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34558 * config/aarch64/aarch64-simd.md
34559 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34560 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34561 (*aarch64_mul3_elt<mode>): Likewise.
34562 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34563 (*aarch64_mul3_elt_to_64v2df): Likewise.
34564 (*aarch64_mla_elt<mode>): Likewise.
34565 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34566 (*aarch64_mls_elt<mode>): Likewise.
34567 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34568 (*aarch64_fma4_elt<mode>): Likewise.
34569 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34570 (*aarch64_fma4_elt_to_64v2df): Likewise.
34571 (*aarch64_fnma4_elt<mode>): Likewise.
34572 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34573 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34574 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34575 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34576 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34577 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34578 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34579 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34580 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34582 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34584 * config/aarch64/aarch64-simd.md
34585 (aarch64_be_checked_get_lane<mode>): New define_expand.
34586 * config/aarch64/aarch64-simd-builtins.def
34587 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34588 New builtin definition.
34589 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34590 Use new safe be builtin.
34592 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34594 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34596 (aarch64_be_st1<mode>): Likewise.
34597 (aarch_ld1<VALL:mode>): Define_expand modified.
34598 (aarch_st1<VALL:mode>): Likewise.
34599 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34600 (UNSPEC_ST1): Likewise.
34602 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34604 * config/microblaze/microblaze.md: Add trap insn and attribute
34606 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34608 PR preprocessor/58580
34609 * input.h (location_get_source_line): Take an additional line_size
34611 (void diagnostics_file_cache_fini): Declare new function.
34612 * input.c (struct fcache): New type.
34613 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34614 New static constants.
34615 (diagnostic_file_cache_init, total_lines_num)
34616 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34617 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34618 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34619 (get_next_line, read_next_line, goto_next_line, read_line_num):
34620 New static function definitions.
34621 (diagnostic_file_cache_fini): New function.
34622 (location_get_source_line): Take an additional output line_len
34623 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34625 * diagnostic.c (diagnostic_finish): Call
34626 diagnostic_file_cache_fini.
34627 (adjust_line): Take an additional input parameter for the length
34628 of the line, rather than calculating it with strlen.
34629 (diagnostic_show_locus): Adjust the use of
34630 location_get_source_line and adjust_line with respect to their new
34631 signature. While displaying a line now, do not stop at the first
34632 null byte. Rather, display the zero byte as a space and keep
34633 going until we reach the size of the line.
34634 * Makefile.in: Add vec.o to OBJS-libcommon
34636 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34637 Ilya Tocar <ilya.tocar@intel.com>
34639 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34640 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34641 (__builtin_ia32_kmov16): Ditto.
34642 * config/i386/i386.md (UNSPEC_KMOV): New.
34645 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34647 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34648 (_mm512_storeu_si512): Ditto.
34650 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34653 * rtl.h (get_referenced_operands): Declare.
34654 * recog.c (get_referenced_operands): New function.
34655 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34656 operands have been referenced when recording LO_SUM references.
34658 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34660 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34662 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34664 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34665 Enable for generic and recent AMD targets.
34667 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34669 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34670 ARG_SIZE note when adjustment was eliminated.
34672 2014-01-22 Jeff Law <law@redhat.com>
34674 PR tree-optimization/59597
34675 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34676 in file. Accept new argument REGISTERING and use it to modify
34677 dump output appropriately.
34678 (register_jump_thread): Corresponding changes.
34679 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34680 thread paths involving joiner blocks. Add code to dump cancelled
34681 jump threading paths.
34683 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34685 PR rtl-optimization/59477
34686 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34687 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34689 2014-01-22 Tom Tromey <tromey@redhat.com>
34691 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34693 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34695 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34697 PR rtl-optimization/59896
34698 * lra-constraints.c (process_alt_operands): Check unused note for
34699 matched operands of insn with no output reloads.
34701 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34703 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34704 (mips_move_from_gpr_cost): Likewise.
34706 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34708 PR rtl-optimization/59858
34709 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34710 ira_class_hard_regs_num.
34711 (process_alt_operands): Increase reject for dying matched operand.
34713 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34716 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34717 smaller than size, perform several stores or loads and stores
34718 at dst + count - size to store or copy all of size bytes, rather
34719 than just last modesize bytes.
34721 2014-01-20 DJ Delorie <dj@redhat.com>
34723 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34724 that CLOBBERs are REGs before propogating their values.
34726 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34728 PR middle-end/59789
34729 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34730 (cgraph_inline_failed_type): New function.
34731 * cgraph.h (DEFCIFCODE): Add type.
34732 (cgraph_inline_failed_type_t): New enum.
34733 (cgraph_inline_failed_type): New prototype.
34734 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34735 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34736 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34737 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34738 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34739 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34740 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34741 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34742 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34743 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34744 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34745 OPTIMIZATION_MISMATCH.
34746 * tree-inline.c (expand_call_inline): Emit errors during
34747 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34749 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34752 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34753 mode attribute in insn output.
34755 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34757 * output.h (output_constant): Delete.
34758 * varasm.c (output_constant): Make private.
34760 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34762 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34764 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34766 PR middle-end/59860
34767 * tree.h (fold_builtin_strcat): New prototype.
34768 * builtins.c (fold_builtin_strcat): No longer static. Add len
34769 argument, if non-NULL, don't call c_strlen. Optimize
34770 directly into __builtin_memcpy instead of __builtin_strcpy.
34771 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34772 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34774 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34776 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34777 for SImode_address_operand operands, having only a REG argument.
34779 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34781 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34782 loader name using mbig-endian.
34783 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34785 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34787 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34788 (-mtune): Likewise.
34791 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34793 * config/aarch64/aarch64-protos.h
34794 (aarch64_cannot_change_mode_class_ptr): Declare.
34795 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34796 aarch64_cannot_change_mode_class_ptr): New.
34797 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34798 backend hook aarch64_cannot_change_mode_class.
34800 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34802 * common/config/aarch64/aarch64-common.c
34803 (aarch64_handle_option): Don't handle any option order logic here.
34804 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34805 selected_cpu, warn on architecture version mismatch.
34806 (aarch64_override_options): Fix parsing order for option strings.
34808 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34809 Iain Sandoe <iain@codesourcery.com>
34812 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34813 warning. Amend comment to reflect current functionality.
34815 2014-01-20 Richard Biener <rguenther@suse.de>
34817 PR middle-end/59860
34818 * builtins.c (fold_builtin_strcat): Remove case better handled
34819 by tree-ssa-strlen.c.
34821 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34823 * config/aarch64/aarch64.opt
34824 (mcpu, march, mtune): Make case-insensitive.
34826 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34829 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34830 if operands[1] is a REG or ZERO_EXTEND of a REG.
34832 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34834 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34836 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34838 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34839 long non-pic millicode calls.
34841 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34843 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34845 2014-01-19 Kito Cheng <kito@0xlab.org>
34847 * builtins.c (expand_movstr): Check movstr expand done or fail.
34849 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34850 H.J. Lu <hongjiu.lu@intel.com>
34853 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34854 to DImode for zero-extended addresses.
34856 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34858 PR rtl-optimization/57763
34859 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34860 on the new indirect jump_insn and increment LABEL_NUSES (label).
34862 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34866 * config.gcc (x86_archs): New variable.
34867 (x86_64_archs): Likewise.
34868 (x86_cpus): Likewise.
34869 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34870 --with-arch/--with-cpu= options.
34871 Support --with-arch=/--with-cpu={nehalem,westmere,
34872 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34874 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34876 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34877 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34879 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34881 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34883 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34886 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34887 clear cpp_get_options (parse_in)->warn_unused_macros for
34888 ix86_target_macros_internal with cpp_define.
34890 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34892 * jump.c (delete_related_insns): Keep (use (insn))s.
34893 * reorg.c (redundant_insn): Check for barriers too.
34895 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34897 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34899 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34901 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34902 call to $$dyncall when TARGET_LONG_CALLS is true.
34904 2014-01-17 Jeff Law <law@redhat.com>
34906 * ree.c (combine_set_extension): Temporarily disable test for
34907 changing number of hard registers.
34909 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34911 PR middle-end/58125
34912 * ipa-inline-analysis.c (inline_free_summary):
34913 Do not free summary of aliases.
34915 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34917 PR middle-end/59706
34918 * gimplify.c (gimplify_expr): Use create_tmp_var
34919 instead of create_tmp_var_raw. If cond doesn't have
34920 integral type, don't add the IFN_ANNOTATE builtin at all.
34922 2014-01-17 Martin Jambor <mjambor@suse.cz>
34925 * ipa-cp.c (prev_edge_clone): New variable.
34926 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34927 Also resize prev_edge_clone vector.
34928 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34929 (ipcp_edge_removal_hook): New function.
34930 (ipcp_driver): Register ipcp_edge_removal_hook.
34932 2014-01-17 Andrew Pinski <apinski@cavium.com>
34933 Steve Ellcey <sellcey@mips.com>
34936 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34939 2014-01-17 Jeff Law <law@redhat.com>
34941 PR middle-end/57904
34942 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34943 so that pass_ccp runs first.
34945 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34947 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34948 (ix86_adjust_cost): Use !TARGET_XXX.
34949 (do_reorder_for_imul): Likewise.
34950 (swap_top_of_ready_list): Likewise.
34951 (ix86_sched_reorder): Likewise.
34953 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34955 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34956 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34957 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34958 (intel_memset): New. Duplicate slm_memset.
34959 (intel_cost): New. Duplicate slm_cost.
34960 (m_INTEL): New macro.
34961 (processor_target_table): Add "intel".
34962 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34963 with PROCESSOR_INTEL for "intel".
34964 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34965 PROCESSOR_SILVERMONT.
34966 (ix86_issue_rate): Likewise.
34967 (ix86_adjust_cost): Likewise.
34968 (ia32_multipass_dfa_lookahead): Likewise.
34969 (swap_top_of_ready_list): Likewise.
34970 (ix86_sched_reorder): Likewise.
34971 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34972 instead of TARGET_OPT_AGU.
34973 * config/i386/i386.h (TARGET_INTEL): New.
34974 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34975 (processor_type): Add PROCESSOR_INTEL.
34976 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34977 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34979 2014-01-17 Marek Polacek <polacek@redhat.com>
34982 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34985 2014-01-17 Richard Biener <rguenther@suse.de>
34987 PR tree-optimization/46590
34988 * opts.c (default_options_table): Add entries for
34989 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34990 all enabled at -O1 but not for -Og.
34991 * common.opt (fbranch-count-reg): Remove Init(1).
34992 (fmove-loop-invariants): Likewise.
34993 (ftree-pta): Likewise.
34995 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34997 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34998 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34999 decls to at least the GCC 4.8 used alignments.
35002 * tree-nested.c (convert_nonlocal_reference_stmt,
35003 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35004 of GIMPLE_BIND stmts, adjust associated decls.
35006 2014-01-17 Richard Biener <rguenther@suse.de>
35008 PR tree-optimization/46590
35009 * vec.h (vec<>::bseach): New member function implementing
35010 binary search according to C89 bsearch.
35011 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35012 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35013 bitmap pointer again. Make accesses_in_loop a flat array.
35014 (mem_ref_obstack): New global.
35015 (outermost_indep_loop): Adjust for mem_ref->stored changes.
35016 (mark_ref_stored): Likewise.
35017 (ref_indep_loop_p_2): Likewise.
35018 (set_ref_stored_in_loop): New helper function.
35019 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35020 (memref_free): Adjust.
35021 (record_mem_ref_loc): Simplify.
35022 (gather_mem_refs_stmt): Adjust.
35023 (sort_locs_in_loop_postorder_cmp): New function.
35024 (analyze_memory_references): Sort accesses_in_loop after
35025 loop postorder number.
35026 (find_ref_loc_in_loop_cmp): New function.
35027 (for_all_locs_in_loop): Find relevant cluster of locs in
35028 accesses_in_loop and iterate without recursion.
35029 (execute_sm): Avoid uninit warning.
35030 (struct ref_always_accessed): Simplify.
35031 (ref_always_accessed::operator ()): Likewise.
35032 (ref_always_accessed_p): Likewise.
35033 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35034 loop postorder numbers here.
35035 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35038 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
35041 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35042 on decls for which assemble_alias has been called.
35044 2014-01-17 Nick Clifton <nickc@redhat.com>
35046 * config/msp430/msp430.opt: (mcpu): New option.
35047 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35048 (msp430_option_override): Parse target_cpu. If the MCU name
35049 matches a generic string, clear target_mcu.
35050 (msp430_attr): Allow numeric interrupt values up to 63.
35051 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35052 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35054 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35056 * config/msp430/msp430.md (popm): Use %J rather than %I.
35057 (addsi3): Use msp430_nonimmediate_operand for operand 2.
35058 (addhi_cy_i): Use immediate_operand for operand 2.
35059 * doc/invoke.texi: Document -mcpu option.
35061 2014-01-17 Richard Biener <rguenther@suse.de>
35063 PR rtl-optimization/38518
35064 * df.h (df_analyze_loop): Declare.
35065 * df-core.c: Include cfgloop.h.
35066 (df_analyze_1): Split out main part of df_analyze.
35067 (df_analyze): Adjust.
35068 (loop_inverted_post_order_compute): New function.
35069 (loop_post_order_compute): Likewise.
35070 (df_analyze_loop): New function avoiding whole-function
35071 postorder computes.
35072 * loop-invariant.c (find_defs): Use df_analyze_loop.
35073 (find_invariants): Adjust.
35074 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35076 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
35078 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35079 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35081 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35083 * ipa-ref.c (ipa_remove_stmt_references): Fix references
35084 traversal when removing references.
35086 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
35089 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35091 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
35093 PR middle-end/56791
35094 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35095 pushing a reload for an autoinc when we had previously reloaded an
35096 inner part of the address.
35098 2014-01-16 Jakub Jelinek <jakub@redhat.com>
35100 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35102 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35103 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35104 when not giving up or versioning for alias only because of
35106 (vect_analyze_data_ref_dependences): Set to true.
35107 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35109 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35110 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35113 PR middle-end/58344
35114 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35117 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35118 operand 0 predicate for gathers, use a new pseudo as subtarget.
35120 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35122 PR middle-end/59609
35123 * lra-constraints.c (process_alt_operands): Add printing debug info.
35124 Check absence of input/output reloads for matched operands too.
35126 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35128 PR rtl-optimization/59835
35129 * ira.c (ira_init_register_move_cost): Increase cost for
35132 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
35134 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35136 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
35139 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35140 non-register objects. Use gen_(high/low)part more consistently.
35143 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
35146 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35147 endian support, remove tests for WORDS_BIG_ENDIAN.
35148 (p8_mfvsrd_3_<mode>): Likewise.
35149 (reload_gpr_from_vsx<mode>): Likewise.
35150 (reload_gpr_from_vsxsf): Likewise.
35151 (p8_mfvsrd_4_disf): Likewise.
35153 2014-01-16 Richard Biener <rguenther@suse.de>
35155 PR rtl-optimization/46590
35156 * lcm.c (compute_antinout_edge): Use postorder iteration.
35157 (compute_laterin): Use inverted postorder iteration.
35159 2014-01-16 Nick Clifton <nickc@redhat.com>
35161 PR middle-end/28865
35162 * varasm.c (output_constant): Return the number of bytes actually
35164 (output_constructor_array_range): Update the field size with the
35165 number of bytes emitted by output_constant.
35166 (output_constructor_regular_field): Likewise. Also do not
35167 complain if the total number of bytes emitted is now greater
35168 than the expected fieldpos.
35169 * output.h (output_constant): Update prototype and descriptive comment.
35171 2014-01-16 Marek Polacek <polacek@redhat.com>
35173 PR middle-end/59827
35174 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35175 it is error_mark_node.
35177 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35179 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35180 VALID_AVX256_REG_OR_OI_MODE.
35182 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35184 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35185 current procedure should be profiled.
35187 2014-01-15 Andrew Pinski <apinski@cavium.com>
35189 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35190 of moving from/to the STACK_REG register class.
35192 2014-01-15 Richard Henderson <rth@redhat.com>
35195 * reginfo.c (global_regs_decl): Globalize.
35196 * rtl.h (global_regs_decl): Declare.
35197 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35198 reserved via global_regs.
35200 2014-01-15 Teresa Johnson <tejohnson@google.com>
35202 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35204 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35206 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35207 and vmulosh rather than call gen_vec_widen_smult_*.
35208 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35209 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35210 (vec_widen_smult_even_v16qi): Likewise.
35211 (vec_widen_umult_even_v8hi): Likewise.
35212 (vec_widen_smult_even_v8hi): Likewise.
35213 (vec_widen_umult_odd_v16qi): Likewise.
35214 (vec_widen_smult_odd_v16qi): Likewise.
35215 (vec_widen_umult_odd_v8hi): Likewise.
35216 (vec_widen_smult_odd_v8hi): Likewise.
35217 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35218 vmuloub rather than call gen_vec_widen_umult_*.
35219 (vec_widen_umult_lo_v16qi): Likewise.
35220 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35221 vmulosb rather than call gen_vec_widen_smult_*.
35222 (vec_widen_smult_lo_v16qi): Likewise.
35223 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35224 rather than call gen_vec_widen_umult_*.
35225 (vec_widen_umult_lo_v8hi): Likewise.
35226 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35227 rather than call gen_vec_widen_smult_*.
35228 (vec_widen_smult_lo_v8hi): Likewise.
35230 2014-01-15 Jeff Law <law@redhat.com>
35232 PR tree-optimization/59747
35233 * ree.c (find_and_remove_re): Properly handle case where a second
35234 eliminated extension requires widening a copy created for elimination
35235 of a prior extension.
35236 (combine_set_extension): Ensure that the number of hard regs needed
35237 for a destination register does not change when we widen it.
35239 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35241 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35242 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35243 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35244 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35245 (avr-*-rtems*): Likewise.
35246 (bfin*-rtems*): Likewise.
35247 (moxie-*-rtems*): Likewise.
35248 (h8300-*-rtems*): Likewise.
35249 (i[34567]86-*-rtems*): Likewise.
35250 (lm32-*-rtems*): Likewise.
35251 (m32r-*-rtems*): Likewise.
35252 (m68k-*-rtems*): Likewise.
35253 (microblaze*-*-rtems*): Likewise.
35254 (mips*-*-rtems*): Likewise.
35255 (powerpc-*-rtems*): Likewise.
35256 (sh-*-rtems*): Likewise.
35257 (sparc-*-rtems*): Likewise.
35258 (sparc64-*-rtems*): Likewise.
35259 (v850-*-rtems*): Likewise.
35260 (m32c-*-rtems*): Likewise.
35262 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35264 PR rtl-optimization/59511
35265 * ira.c (ira_init_register_move_cost): Use memory costs for some
35266 cases of register move cost calculations.
35267 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35268 instead of BB frequency.
35269 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35270 * lra-assigns.c (find_hard_regno_for): Ditto.
35272 2014-01-15 Richard Biener <rguenther@suse.de>
35274 PR tree-optimization/59822
35275 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35276 (vectorizable_load): Use it to hoist defs of uses of invariant
35277 loads out of the loop.
35279 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35280 Kugan Vivekanandarajah <kuganv@linaro.org>
35283 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35286 2014-01-15 Richard Biener <rguenther@suse.de>
35288 PR rtl-optimization/59802
35289 * lcm.c (compute_available): Use inverted postorder to seed
35290 the initial worklist.
35292 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35295 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35296 ADDR_REGS for invalid symrefs in non-PIC code.
35298 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35301 * builtins.c (determine_block_size): Initialize *probable_max_size
35302 even if len_rtx is CONST_INT.
35304 2014-01-14 Andrew Pinski <apinski@cavium.com>
35306 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35307 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35308 (cortexa53_tunings): Likewise.
35309 (aarch64_sched_issue_rate): New function.
35310 (TARGET_SCHED_ISSUE_RATE): Define.
35312 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35314 * ira-costs.c (find_costs_and_classes): Add missed
35315 ira_init_register_move_cost_if_necessary.
35317 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35320 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35322 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35325 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35326 to indicate if type is used for function return value. Warn ABI
35327 change if the vector mode isn't available for function return value.
35328 (ix86_function_arg_advance): Pass false to type_natural_mode.
35329 (ix86_function_arg): Likewise.
35330 (ix86_gimplify_va_arg): Likewise.
35331 (function_arg_32): Don't warn ABI change.
35332 (ix86_function_value): Pass true to type_natural_mode.
35333 (ix86_return_in_memory): Likewise.
35334 (ix86_struct_value_rtx): Removed.
35335 (TARGET_STRUCT_VALUE_RTX): Likewise.
35337 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35339 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35340 converting a conditional jump into a conditional return.
35342 2014-01-14 Richard Biener <rguenther@suse.de>
35344 PR tree-optimization/58921
35345 PR tree-optimization/59006
35346 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35347 hoisting invariant stmts.
35348 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35349 invariant loads on the preheader edge if possible.
35351 2014-01-14 Joey Ye <joey.ye@arm.com>
35353 * doc/plugin.texi (Building GCC plugins): Update to C++.
35355 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35357 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35358 (_mm_rcp28_round_ss): Ditto.
35359 (_mm_rsqrt28_round_sd): Ditto.
35360 (_mm_rsqrt28_round_ss): Ditto.
35361 (_mm_rcp28_sd): Ditto.
35362 (_mm_rcp28_ss): Ditto.
35363 (_mm_rsqrt28_sd): Ditto.
35364 (_mm_rsqrt28_ss): Ditto.
35365 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35366 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35367 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35368 (IX86_BUILTIN_RCP28SD): Ditto.
35369 (IX86_BUILTIN_RCP28SS): Ditto.
35370 (IX86_BUILTIN_RSQRT28SD): Ditto.
35371 (IX86_BUILTIN_RSQRT28SS): Ditto.
35372 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35373 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35374 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35375 (ix86_expand_special_args_builtin): Expand new FTYPE.
35376 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35377 (srcp14<mode>): Make insn unary.
35378 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35379 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35380 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35381 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35382 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35383 Fix rounding: make it SAE only.
35384 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35386 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35388 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35389 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35390 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35391 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35392 (round_saeonly_mask_scalar_operand4): Ditto.
35393 (round_saeonly_mask_scalar_op3): Ditto.
35394 (round_saeonly_mask_scalar_op4): Ditto.
35396 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35398 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35399 Implement -maltivec=be for vec_insert and vec_extract.
35401 2014-01-10 DJ Delorie <dj@redhat.com>
35403 * config/msp430/msp430.md (call_internal): Don't allow memory
35404 references with SP as the base register.
35405 (call_value_internal): Likewise.
35406 * config/msp430/constraints.md (Yc): New. For memory references
35407 that don't use SP as a base register.
35409 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35410 "an integer without a # prefix"
35411 * config/msp430/msp430.md (epilogue_helper): Use it.
35413 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35416 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35417 AVX512F gather builtins.
35418 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35419 on gather decls with INTEGER_TYPE masktype.
35420 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35421 directly into the builtin rather than hoisting it before loop.
35423 PR tree-optimization/59387
35424 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35425 (scev_const_prop): If folded_casts and type has undefined overflow,
35426 use force_gimple_operand instead of force_gimple_operand_gsi and
35427 for each added stmt if it is assign with
35428 arith_code_with_undefined_signed_overflow, call
35429 rewrite_to_defined_overflow.
35430 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35431 gimple-fold.h instead.
35432 (arith_code_with_undefined_signed_overflow,
35433 rewrite_to_defined_overflow): Moved to ...
35434 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35435 rewrite_to_defined_overflow): ... here. No longer static.
35436 Include gimplify-me.h.
35437 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35438 rewrite_to_defined_overflow): New prototypes.
35440 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35442 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35444 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35446 * builtins.c (get_object_alignment_2): Minor tweak.
35447 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35449 2014-01-13 Christian Bruel <christian.bruel@st.com>
35451 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35452 optimized non constant lengths.
35454 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35457 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35458 load as __atomic_load_N if possible.
35460 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35462 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35464 (rs6000_expand_builtin): Adjust call.
35466 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35469 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35470 * config/rs6000/rs6000.c: Include target-globals.h.
35471 (rs6000_set_current_function): Instead of doing target_reinit
35472 unconditionally, use save_target_globals_default_opts and
35473 restore_target_globals.
35475 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35477 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35478 (rs6000_expand_builtin): Handle mffs and mtfsf.
35479 (rs6000_init_builtins): Define mffs and mtfsf.
35480 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35481 (rs6000_mffs): New pattern.
35482 (rs6000_mtfsf): New pattern.
35484 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35486 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35487 Start narrowing with START. Apply candidate-use pair
35488 and check overall cost in narrowing.
35489 (iv_ca_prune): Pass new argument.
35491 2014-01-10 Jeff Law <law@redhat.com>
35493 PR middle-end/59743
35494 * ree.c (combine_reaching_defs): Ensure the defining statement
35495 occurs before the extension when optimizing extensions with
35496 different source and destination hard registers.
35498 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35501 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35502 vtables into the type inheritance graph.
35504 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35506 PR rtl-optimization/59754
35507 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35508 modes in the REGNO != REGNO case.
35510 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35512 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35514 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35516 PR tree-optimization/59745
35517 * tree-predcom.c (tree_predictive_commoning_loop): Call
35518 free_affine_expand_cache if giving up because components is NULL.
35520 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35521 GC in payload of target_globals struct instead of allocating them on
35522 the heap and the larger structs separately using GC.
35523 * target-globals.h (struct target_globals): Make regs, hard_regs,
35524 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35525 of GTY((skip)) and change type to void *.
35526 (reset_target_globals): Cast loads from those fields to corresponding
35529 2014-01-10 Steve Ellcey <sellcey@mips.com>
35532 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35533 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35534 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35536 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35539 * aarch64-modes.def (CC_Zmode): New flags mode.
35540 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35541 represents an equality.
35542 (aarch64_get_condition_code): Handle CC_Zmode.
35543 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35545 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35547 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35548 extraction in good case.
35550 2014-01-10 Richard Biener <rguenther@suse.de>
35552 PR tree-optimization/59374
35553 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35554 checking after SLP discovery. Mark stmts not participating
35555 in any SLP instance properly.
35557 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35559 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35560 when handling a SET rtx.
35562 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35564 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35565 (cortex-a57): Likewise.
35566 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35568 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35570 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35571 non-iwmmxt builtins.
35573 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35577 * ipa-devirt.c record_target_from_binfo): Take as argument
35578 stack of binfos and lookup matching one for virtual inheritance.
35579 (possible_polymorphic_call_targets_1): Update.
35581 2014-01-10 Huacai Chen <chenhc@lemote.com>
35583 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35584 kernel strings for Loongson-2E/2F/3A.
35586 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35588 PR middle-end/59670
35589 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35590 is_gimple_call before calling gimple_call_internal_p.
35592 2014-01-09 Steve Ellcey <sellcey@mips.com>
35594 * Makefile.in (TREE_FLOW_H): Remove.
35595 (TREE_SSA_H): Add file names from tree-flow.h.
35596 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35597 * tree.h: Remove tree-flow.h reference.
35598 * hash-table.h: Remove tree-flow.h reference.
35599 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35600 reference with tree-ssa-loop.h.
35602 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35604 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35605 default element-order behavior for -maltivec.
35606 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35607 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35608 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35609 when targeting big endian, at least for now.
35610 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35612 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35614 PR middle-end/47735
35615 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35616 var satisfies use_register_for_decl, just take into account type
35617 alignment, rather than decl alignment.
35619 PR tree-optimization/59622
35620 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35621 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35622 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35623 Don't devirtualize for inplace at all. For targets.length () == 1,
35624 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35626 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35628 * config/i386/i386.md (cpu): Remove the unused btver1.
35630 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35632 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35634 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35637 * tree-core.h (struct target_globals): New forward declaration.
35638 (struct tree_target_option): Add globals field.
35639 * tree.h (TREE_TARGET_GLOBALS): Define.
35640 (prepare_target_option_nodes_for_pch): New prototype.
35641 * target-globals.h (struct target_globals): Define even if
35642 !SWITCHABLE_TARGET.
35643 * tree.c (prepare_target_option_node_for_pch,
35644 prepare_target_option_nodes_for_pch): New functions.
35645 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35646 * config/i386/i386.c: Include target-globals.h.
35647 (ix86_set_current_function): Instead of doing target_reinit
35648 unconditionally, use save_target_globals_default_opts and
35649 restore_target_globals.
35651 2014-01-09 Richard Biener <rguenther@suse.de>
35653 PR tree-optimization/59715
35654 * tree-cfg.h (split_critical_edges): Declare.
35655 * tree-cfg.c (split_critical_edges): Export.
35656 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35658 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35660 * cfgexpand.c (expand_stack_vars): Optionally disable
35661 asan stack protection.
35662 (expand_used_vars): Likewise.
35663 (partition_stack_vars): Likewise.
35664 * asan.c (asan_emit_stack_protection): Optionally disable
35665 after return stack usage.
35666 (instrument_derefs): Optionally disable memory access instrumentation.
35667 (instrument_builtin_call): Likewise.
35668 (instrument_strlen_call): Likewise.
35669 (asan_protect_global): Optionally disable global variables protection.
35670 * doc/invoke.texi: Added doc for new options.
35671 * params.def: Added new options.
35672 * params.h: Likewise.
35674 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35676 PR rtl-optimization/59724
35677 * ifcvt.c (cond_exec_process_if_block): Don't call
35678 flow_find_head_matching_sequence with 0 longest_match.
35679 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35680 non-active insns if !stop_after.
35681 (try_head_merge_bb): Revert 2014-01-07 changes.
35683 2014-01-08 Jeff Law <law@redhat.com>
35685 * ree.c (get_sub_rtx): New function, extracted from...
35686 (merge_def_and_ext): Here.
35687 (combine_reaching_defs): Use get_sub_rtx.
35689 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35691 * cgraph.h (varpool_variable_node): Do not choke on null node.
35693 2014-01-08 Catherine Moore <clm@codesourcery.com>
35695 * config/mips/mips.md (simple_return): Attempt to use JRC
35697 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35699 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35701 PR rtl-optimization/59137
35702 * reorg.c (steal_delay_list_from_target): Call update_block for
35704 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35706 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35708 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35709 two duplicate entries.
35711 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35714 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35716 * config/mips/mips.c (mips_truncated_op_cost): New function.
35717 (mips_rtx_costs): Adjust test for BADDU.
35718 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35720 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35722 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35723 (*baddu_si): ...this new pattern.
35725 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35728 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35730 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35732 PR middle-end/57748
35733 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35735 (expand_expr, expand_normal): Adjust.
35736 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35737 inner_reference_p. Use inner_reference_p to expand inner references.
35738 (store_expr): Adjust.
35739 * cfgexpand.c (expand_call_stmt): Adjust.
35741 2014-01-08 Rong Xu <xur@google.com>
35743 * gcov-io.c (gcov_var): Move from gcov-io.h.
35744 (gcov_position): Ditto.
35745 (gcov_is_error): Ditto.
35746 (gcov_rewrite): Ditto.
35747 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35748 only part to libgcc/libgcov.h.
35750 2014-01-08 Marek Polacek <polacek@redhat.com>
35752 PR middle-end/59669
35753 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35755 2014-01-08 Marek Polacek <polacek@redhat.com>
35758 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35760 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35762 PR rtl-optimization/59649
35763 * stor-layout.c (get_mode_bounds): For BImode return
35764 0 and STORE_FLAG_VALUE.
35766 2014-01-08 Richard Biener <rguenther@suse.de>
35768 PR middle-end/59630
35769 * gimple.h (is_gimple_builtin_call): Remove.
35770 (gimple_builtin_call_types_compatible_p): New.
35771 (gimple_call_builtin_p): New overload.
35772 * gimple.c (is_gimple_builtin_call): Remove.
35773 (validate_call): Rename to ...
35774 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35775 check return types.
35776 (validate_type): New static function.
35777 (gimple_call_builtin_p): New overload and adjust.
35778 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35779 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35780 (gimple_fold_stmt_to_constant_1): Likewise.
35781 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35783 2014-01-08 Richard Biener <rguenther@suse.de>
35785 PR middle-end/59471
35786 * gimplify.c (gimplify_expr): Gimplify register-register type
35787 VIEW_CONVERT_EXPRs to separate stmts.
35789 2014-01-07 Jeff Law <law@redhat.com>
35791 PR middle-end/53623
35792 * ree.c (combine_set_extension): Handle case where source
35793 and destination registers in an extension insn are different.
35794 (combine_reaching_defs): Allow source and destination registers
35795 in extension to be different under limited circumstances.
35796 (add_removable_extension): Remove restriction that the
35797 source and destination registers in the extension are the same.
35798 (find_and_remove_re): Emit a copy from the extension's
35799 destination to its source after the defining insn if
35800 the source and destination registers are different.
35802 PR middle-end/59285
35803 * ifcvt.c (merge_if_block): If we are merging a block with more than
35804 one successor with a block with no successors, remove any BARRIER
35805 after the second block.
35807 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35809 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35811 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35814 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35815 for 14-bit register offsets when INT14_OK_STRICT is false.
35817 2014-01-07 Roland Stigge <stigge@antcom.de>
35818 Michael Meissner <meissner@linux.vnet.ibm.com>
35821 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35822 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35824 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35826 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35829 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35831 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35832 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35833 rtx is const0_rtx or not.
35835 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35838 * target-globals.c (save_target_globals): Remove this_fn_optab
35840 * toplev.c: Include optabs.h.
35841 (target_reinit): Temporarily restore the global options if another
35842 set of options are in force.
35844 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35846 PR rtl-optimization/58668
35847 * cfgcleanup.c (flow_find_cross_jump): Don't count
35848 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35849 to determine what is counted.
35850 (flow_find_head_matching_sequence): Use active_insn_p to determine
35852 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35854 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35855 determine what is counted.
35857 PR tree-optimization/59643
35858 * tree-predcom.c (split_data_refs_to_components): If one dr is
35859 read and one write, determine_offset fails and the write isn't
35860 in the bad component, just put the read into the bad component.
35862 2014-01-07 Mike Stump <mikestump@comcast.net>
35863 Jakub Jelinek <jakub@redhat.com>
35866 * tree-core.h (struct tree_optimization_option): Change optabs
35867 type from unsigned char * to void *.
35868 * optabs.c (init_tree_optimization_optabs): Adjust
35869 TREE_OPTIMIZATION_OPTABS initialization.
35871 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35874 * config/i386/i386.h (struct machine_function): Add
35875 no_drap_save_restore field.
35876 * config/i386/i386.c (ix86_save_reg): Use
35877 !cfun->machine->no_drap_save_restore instead of
35878 crtl->stack_realign_needed.
35879 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35880 this function clears frame_pointer_needed. Set
35881 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35882 and DRAP reg is needed.
35884 2014-01-06 Marek Polacek <polacek@redhat.com>
35887 * doc/implement-c.texi: Mention that other integer types are
35888 permitted as bit-field types in strictly conforming mode.
35890 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35892 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35893 is newly allocated.
35895 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35897 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35899 2014-01-06 Martin Jambor <mjambor@suse.cz>
35902 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35904 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35906 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35910 * var-tracking.c (add_stores): Preserve the value of the source even if
35911 we don't record the store.
35913 2014-01-06 Terry Guo <terry.guo@arm.com>
35915 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35917 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35920 * config/darwin.c (darwin_function_section): Adjust return values to
35921 correspond to optimisation changes made in r206070.
35923 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35925 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35926 from prefetch_block tune setting.
35927 (nocona_cost): Correct size of prefetch block to 64.
35929 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35931 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35932 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35933 used to save the static chain register in the computation of the offset
35934 from which the FP registers need to be restored.
35936 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35938 PR tree-optimization/59519
35939 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35940 ICE if get_current_def (current_new_name) is already non-NULL, as long
35941 as it is a phi result of some other phi in *new_exit_bb that has
35944 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35945 or vmovdqu* for misaligned_operand.
35946 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35947 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35948 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35949 aligned_mem for AVX512F masked aligned load and store builtins and for
35950 non-temporal moves.
35952 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35954 PR tree-optimization/59651
35955 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35956 Address range for negative step should be added by TYPE_SIZE_UNIT.
35958 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35960 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35961 overlapping registers also for registers other than the stack pointer.
35963 2014-01-03 Marek Polacek <polacek@redhat.com>
35966 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35969 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35972 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35975 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35976 (push splitter): Use <P:MODE_SIZE> instead of
35977 GET_MODE_SIZE (<P:MODE>mode).
35978 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35979 (mov -1, reg peephole2): Likewise.
35980 * config/i386/sse.md (*mov<mode>_internal,
35981 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35982 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35983 *<code><mode>3, *andnot<mode>3<mask_name>,
35984 <mask_codefor><code><mode>3<mask_name>): Likewise.
35985 * config/i386/subst.md (mask_mode512bit_condition,
35986 sd_mask_mode512bit_condition): Likewise.
35988 2014-01-02 Xinliang David Li <davidxl@google.com>
35990 PR tree-optimization/59303
35991 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35992 (dump_predicates): Better output format.
35993 (pred_equal_p): New function.
35994 (is_neq_relop_p): Ditto.
35995 (is_neq_zero_form_p): Ditto.
35996 (pred_expr_equal_p): Ditto.
35997 (pred_neg_p): Ditto.
35998 (simplify_pred): Ditto.
35999 (simplify_preds_2): Ditto.
36000 (simplify_preds_3): Ditto.
36001 (simplify_preds_4): Ditto.
36002 (simplify_preds): Ditto.
36003 (push_pred): Ditto.
36004 (push_to_worklist): Ditto.
36005 (get_pred_info_from_cmp): Ditto.
36006 (is_degenerated_phi): Ditto.
36007 (normalize_one_pred_1): Ditto.
36008 (normalize_one_pred): Ditto.
36009 (normalize_one_pred_chain): Ditto.
36010 (normalize_preds): Ditto.
36011 (normalize_cond_1): Remove function.
36012 (normalize_cond): Ditto.
36013 (is_gcond_subset_of): Ditto.
36014 (is_subset_of_any): Ditto.
36015 (is_or_set_subset_of): Ditto.
36016 (is_and_set_subset_of): Ditto.
36017 (is_norm_cond_subset_of): Ditto.
36018 (pred_chain_length_cmp): Ditto.
36019 (convert_control_dep_chain_into_preds): Type change.
36020 (find_predicates): Ditto.
36021 (find_def_preds): Ditto.
36022 (destroy_predicates_vecs): Ditto.
36023 (find_matching_predicates_in_rest_chains): Ditto.
36024 (use_pred_not_overlap_with_undef_path_pred): Ditto.
36025 (is_pred_expr_subset): Ditto.
36026 (is_pred_chain_subset_of): Ditto.
36027 (is_included_in): Ditto.
36028 (is_superset_of): Ditto.
36030 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36032 Update copyright years.
36034 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36036 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36037 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36038 config/arc/arc.md, config/arc/arc.opt,
36039 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36040 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36041 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36042 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36043 config/linux-protos.h, config/linux.c, config/winnt-c.c,
36044 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36045 vtable-verify.c, vtable-verify.h: Use the standard form for the
36048 2014-01-02 Tobias Burnus <burnus@net-b.de>
36050 * gcc.c (process_command): Update copyright notice dates.
36051 * gcov-dump.c: Ditto.
36053 * doc/cpp.texi: Bump @copying's copyright year.
36054 * doc/cppinternals.texi: Ditto.
36055 * doc/gcc.texi: Ditto.
36056 * doc/gccint.texi: Ditto.
36057 * doc/gcov.texi: Ditto.
36058 * doc/install.texi: Ditto.
36059 * doc/invoke.texi: Ditto.
36061 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36063 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36065 2014-01-01 Jakub Jelinek <jakub@redhat.com>
36067 * config/i386/sse.md (*mov<mode>_internal): Guard
36068 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36070 PR rtl-optimization/59647
36071 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36072 new_rtx into UNSIGNED_FLOAT rtxes.
36074 Copyright (C) 2014 Free Software Foundation, Inc.
36076 Copying and distribution of this file, with or without modification,
36077 are permitted in any medium without royalty provided the copyright
36078 notice and this notice are preserved.