1 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
5 (ipa_polymorphic_call_context::get_dynamic_type): Return true
6 if type doesn't change.
7 * cgraph.h (cgraph_indirect_call_info): New flag.
8 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
9 (cgraph_node::dump): Dump it.
10 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
11 of context.get_dynamic_type.
12 (ipa_make_edge_direct_to_target): Do not speculate
13 edge that is already speuclative.
14 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15 speculate to __builtin_unreachable
16 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
18 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
20 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
22 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
23 get_dynamic_type; drop TODO.
24 * ipa-polymorphic-call.c
25 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
26 for otr_type to be unknown.
28 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
30 * common/config/score/score-common.c: Remove.
31 * config.gcc: Remove support for score-*.
32 * config/score/constraints.md: Remove.
33 * config/score/elf.h: Remove.
34 * config/score/predicates.md: Remove.
35 * config/score/score-conv.h: Remove.
36 * config/score/score-generic.md: Remove.
37 * config/score/score-modes.def: Remove.
38 * config/score/score-protos.h: Remove.
39 * config/score/score.c: Remove.
40 * config/score/score.h: Remove.
41 * config/score/score.md: Remove.
42 * config/score/score.opt: Remove.
43 * doc/md.texi: Don't document score-*.
45 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
48 * genconditions.c: Directly include ggc.h before rtl.h.
50 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
52 * ipa-polymorphic-call.c
53 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
54 code determining speculative type.
55 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
57 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
59 * altivec.md (altivec_lvsl): New define_expand.
60 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
61 (altivec_lvsr): New define_expand.
62 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
63 * rs6000.c (rs6000_expand_builtin): Change to use
64 altivec_lvs[lr]_direct; remove commented-out code.
66 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
68 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
69 Issue a warning message when vec_lvsl or vec_lvsr is used with a
72 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
74 * tree-pretty-print.c (dump_location): Make it extern. Dump also
76 * tree-pretty-print.h (dump_location): Declare.
77 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
78 (pp_gimple_stmt_1): Likewise.
79 (dump_implicit_edges): Likewise.
80 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
84 2014-10-03 David Malcolm <dmalcolm@redhat.com>
86 * gcc.c (driver::global_initializations): Remove "const" so
87 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
88 and decoded_options_count.
90 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
92 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
94 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
95 TARGET_E500_DOUBLE case here.
97 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
102 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
104 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
106 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
107 * lto-cgraph.c (lto_output_edge, input_edge): Stream
109 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
110 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
111 * cgraphclones.c (cgraph_edge::clone): Likewise.
112 * ipa-prop.c (update_jump_functions_after_inlining,
113 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
114 to possible_dynamic_type_change.
115 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
116 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
117 IN_POLY_CDOTR argument.
119 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
120 for BASE and OUTER_TYPE being NULL.
121 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
122 in_poly_cdtor parameter.
124 2014-10-03 Jakub Jelinek <jakub@redhat.com>
126 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
127 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
129 (expand_vec_perm_1): Likewise.
131 2014-10-03 Jakub Jelinek <jakub@redhat.com>
132 Uros Bizjak <ubizjak@gmail.com>
134 PR tree-optimization/61403
135 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
136 error in comment. Also optimize 256-bit vectors for AVX2
137 or AVX (floating vectors only), provided the first permutation
138 can be performed in one insn.
140 2014-10-03 David Malcolm <dmalcolm@redhat.com>
142 * gcc.c (class driver): New class.
143 (main): Reimplement in terms of driver::main, moving most of the
144 locals to be locals within individual methods of class driver.
145 The remaining locals "explicit_link_files", "decoded_options" and
146 "decoded_options_count" are used by multiple driver:: methods, and
147 so become member data. Doing so isolates the argc/argv reads and
148 writes. Replace "goto out" with a special exit code from
149 new method driver::prepare_infiles. Split out the old
150 implementation of main into the following...
151 (driver::main): New function, corresponding to the old "main"
153 (driver::set_progname): New function, taken from the old
154 "main" implementation.
155 (driver::expand_at_files): Likewise.
156 (driver::decode_argv): Likewise.
157 (driver::global_initializations): Likewise.
158 (driver::build_multilib_strings): Likewise.
159 (driver::set_up_specs): Likewise.
160 (driver::putenv_COLLECT_GCC): Likewise.
161 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
162 (driver::handle_unrecognized_options): Likewise.
163 (driver::maybe_print_and_exit): Likewise.
164 (driver::prepare_infiles): Likewise.
165 (driver::do_spec_on_infiles): Likewise.
166 (driver::maybe_run_linker): Likewise.
167 (driver::final_actions): Likewise.
168 (driver::get_exit_code): Likewise.
170 2014-10-03 Yury Gribov <y.gribov@samsung.com>
172 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
173 don't emit empty ctors.
175 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
177 * convert.c (convert_to_integer): Do not introduce useless conversions
178 between integral types.
180 2014-10-03 David Sherwood <david.sherwood@arm.com>
182 * ira-int.h (ira_allocno): Mark hard_regno as signed.
184 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
186 * lra-constraints.c (inherit_in_ebb): Handle calls with
187 multiple return values.
188 * caller-save.c (save_call_clobbered_regs): Likewise.
190 2014-10-03 Jakub Jelinek <jakub@redhat.com>
192 * tree-vect-data-refs.c (vect_permute_load_chain,
193 vect_shift_permute_load_chain): Fix a typo in temporary var names,
197 * omp-low.c (taskreg_contexts): New variable.
198 (scan_omp_parallel): Push newly created context into taskreg_contexts
199 vector and move record layout code to finish_taskreg_scan.
200 (scan_omp_task): Likewise.
201 (finish_taskreg_scan): New function.
202 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
203 vector elements and release it.
206 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
207 of palignr arguments can't be used due to min 0 or max - min
208 too high, try also op0, op1 order of palignr arguments.
210 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
212 * cgraph.h (ipa_polymorphic_call_context):
213 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
214 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
215 * ipa-polymorphic-call.c
216 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
217 past end of dynamic types.
218 (ipa_polymorphic_call_context::stream_out,
219 speculative_outer_type): Stream dynamic flag.
220 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
221 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
223 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
225 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
226 * ipa-prop.c (update_jump_functions_after_inlining,
227 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
229 2014-10-02 Teresa Johnson <tejohnson@google.com>
231 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
232 up when synthesizing counts to avoid rounding errors.
234 2014-10-02 Teresa Johnson <tejohnson@google.com>
237 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
238 asserts to handle incoming insanities.
240 2014-10-02 Martin Jambor <mjambor@suse.cz>
242 PR tree-optimization/63375
243 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
246 2014-10-02 Olivier Hainque <hainque@adacore.com>
248 * Makefile.in (CROSS): Define, to @CROSS.
250 2014-10-02 Jakub Jelinek <jakub@redhat.com>
253 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
254 if it expands to a single insn only.
255 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
256 fail unless in_order is true. Add forward declaration.
257 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
258 is useful for one_operand_p.
259 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
261 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
263 * cgraphclones.c (build_function_type_skip_args): Do not make new
266 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
268 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
269 when speculation is added.
270 (ipa_edge_args): Add polymorphic_call_contexts.
271 (ipa_get_ith_polymorhic_call_context): New accesor.
272 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
273 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
274 (ipa_compute_jump_functions_for_edge): Compute contexts.
275 (update_jump_functions_after_inlining): Update contexts.
276 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
277 update dumping; add speculative edge creation.
278 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
280 (update_indirect_edges_after_inlining): Pass down context.
281 (ipa_edge_duplication_hook): Duplicate contexts.
282 (ipa_write_node_info): Stream out contexts.
283 (ipa_read_node_info): Stream in contexts.
284 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
286 (try_speculative_devirtualization): New function.
287 * ipa-utils.h (try_speculative_devirtualization): Declare.
289 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
291 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
294 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
296 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
299 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
301 * ipa-polymorphic-call.c
302 (ipa_polymorphic_call_context::restrict_to_inner_class):
303 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
304 use speculation_consistent_p to do so; Add CONSDER_BASES
305 and CONSIDER_PLACEMENT_NEW parameters.
306 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
307 short circuit obvious cases.
308 (ipa_polymorphic_call_context::dump): Improve formatting.
309 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
310 combine_speculation_with to record speculations; Do not ICE when
311 object is located in pointer type decl; do not ICE for methods
312 of UNION_TYPE; do not record nonpolymorphic types.
313 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
314 (ipa_polymorphic_call_context::combine_speculation_with): New method.
315 (ipa_polymorphic_call_context::combine_with): New method.
316 (ipa_polymorphic_call_context::make_speculative): Move here; use
318 * cgraph.h (ipa_polymorphic_call_context): Update
319 restrict_to_inner_class prototype; add offset_by, make_speculative,
320 combine_with, useless_p, combine_speculation_with and
321 speculation_consistent_p methods.
322 (ipa_polymorphic_call_context::offset_by): New method.
323 (ipa_polymorphic_call_context::useless_p): New method.
325 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
327 PR rtl-optimization/62151
328 * combine.c (can_combine_p): Allow the destination register of INSN
329 to be clobbered in I3.
330 (subst): Do not substitute into clobbers of registers.
332 2014-10-01 Jakub Jelinek <jakub@redhat.com>
335 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
336 offset, TARGET_MEM_REF and SSA_NAME.
338 * config/i386/i386.c (expand_vec_perm_palignr): Handle
339 256-bit vectors for TARGET_AVX2.
341 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
345 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
346 argument to avx2_permv2ti.
348 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
350 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
352 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
354 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
355 (fmod<mode>3): Ditto.
356 (fpremxf4_i387): Ditto.
357 (reminderxf3): Ditto.
358 (reminder<mode>3): Ditto.
359 (fprem1xf4_i387): Ditto.
361 2014-09-30 Teresa Johnson <tejohnson@google.com>
363 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
364 duplicate_blocks bitmap.
365 (remove_ctrl_stmt_and_useless_edges): Ditto.
366 (create_block_for_threading): Ditto.
367 (compute_path_counts): New function.
368 (update_profile): Ditto.
369 (recompute_probabilities): Ditto.
370 (update_joiner_offpath_counts): Ditto.
371 (freqs_to_counts_path): Ditto.
372 (clear_counts_path): Ditto.
373 (ssa_fix_duplicate_block_edges): Update profile info.
374 (ssa_create_duplicates): Pass new parameter.
375 (ssa_redirect_edges): Remove old profile update.
376 (thread_block_1): New duplicate_blocks bitmap,
377 remove old profile update.
378 (thread_single_edge): Pass new parameter.
380 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
383 * varasm.c (decode_reg_name_and_count): Check availability for
384 registers from ADDITIONAL_REGISTER_NAMES.
386 2014-09-30 David Malcolm <dmalcolm@redhat.com>
389 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
390 (PLUGIN_HEADERS): Add pass-instances.def.
392 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
394 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
396 * config/aarch64/aarch64-simd.md
397 (aarch64_sqdmull_laneq<mode>): Expand iterator.
398 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
399 (vqdmulls_lane_s32): Fix return type.
400 (vqdmulls_laneq_s32): New.
402 2014-09-30 Jakub Jelinek <jakub@redhat.com>
405 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
406 or invert_jump_1 if jump isn't any_condjump_p.
408 2014-09-30 Terry Guo <terry.guo@arm.com>
410 * config/arm/arm-cores.def (cortex-m7): New core name.
411 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
413 * config/arm/arm-tables.opt: Regenerated.
414 * config/arm/arm-tune.md: Regenerated.
415 * config/arm/arm.h (TARGET_VFP5): New macro.
416 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
417 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
418 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
419 * doc/invoke.texi: Document new cpu and fpu names.
421 2014-09-30 Jiong Wang <jiong.wang@arm.com>
423 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
426 2014-09-30 David Sherwood <david.sherwood@arm.com>
428 * ira-int.h (ira_allocno): Add "wmode" field.
429 * ira-build.c (create_insn_allocnos): Add new "parent" function
431 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
432 that cannot be accessed in wmode.
434 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
436 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
439 2014-09-29 Andi Kleen <ak@linux.intel.com>
441 * opts.c (print_filtered_help): Print --param min/max/default
444 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
446 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
448 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
450 * tree-vrp.c (get_single_symbol): New function.
451 (build_symbolic_expr): Likewise.
452 (symbolic_range_based_on_p): New predicate.
453 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
454 for PLUS and MINUS. Do not drop symbolic ranges at the end.
455 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
456 operand is symbolic and based on the other operand.
458 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
460 * config/microblaze/microblaze.md (call_internal1): Use VOID
461 instead of SI to fix "((void (*)(void)) 0)()" issue
463 2014-09-29 Nick Clifton <nickc@redhat.com>
465 * config/msp430/msp430.c (msp430_expand_prologue): Return a
466 CLOBBER rtx for naked functions.
467 (msp430_expand_epilogue): Likewise.
468 (msp430_use_f5_series_hwmult): Cache result.
469 (use_32bit_hwmult): Cache result.
470 (msp430_no_hwmult): New function.
471 (msp430_output_labelref): Use it.
473 2014-09-29 Jakub Jelinek <jakub@redhat.com>
476 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
477 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
478 use the alignment of avar rather than ovar.
480 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
482 * config/pa/pa.c (pa_output_function_epilogue): Only update
483 last_address when a nonnote insn is found.
485 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
488 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
490 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
493 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
494 fix pasto in checking array size.
496 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
499 * passes.def (pass_tracer): Move before last dominator pass.
501 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
503 * gcc.c (try_generate_repro): Remove argument "prog". Change all
505 (run_attempt): Handle errors of "pex_run" invocation.
507 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
509 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
511 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
512 (TARGET_ASAN_SHADOW_OFFSET): Define.
514 2014-09-26 Martin Liska <mliska@suse.cz>
516 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
518 * cgraph.h: Likewise.
519 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
520 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
521 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
522 * tree-ssa-alias.h: Likewise.
524 2014-09-26 Jakub Jelinek <jakub@redhat.com>
525 Max Ostapenko <m.ostapenko@partner.samsung.com>
527 * common.opt: New option.
528 * doc/invoke.texi: Describe new option.
529 * gcc.c (execute): Don't free first string early, but at the end
530 of the function. Call retry_ice if compiler exited with
532 (main): Factor out common code.
533 (print_configuration): New function.
534 (files_equal_p): Likewise.
535 (check_repro): Likewise.
536 (run_attempt): Likewise.
537 (do_report_bug): Likewise.
538 (append_text): Likewise.
539 (try_generate_repro): Likewise
541 2014-09-25 Andi Kleen <ak@linux.intel.com>
543 * config/i386/i386.c (x86_print_call_or_nop): New function.
544 (x86_function_profiler): Support -mnop-mcount and
546 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
547 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
549 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
551 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
552 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
553 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
556 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
558 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
559 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
560 types_odr_comparable): Declare.
561 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
562 * ipa-polymorphic-call.c: New file.
563 (contains_polymorphic_type_p, possible_placement_new,
564 ipa_polymorphic_call_context::restrict_to_inner_class,
565 contains_type_p, decl_maybe_in_construction_p,
566 ipa_polymorphic_call_context::stream_out,
567 ipa_polymorphic_call_context::debug,
568 ipa_polymorphic_call_context::stream_in,
569 ipa_polymorphic_call_context::set_by_decl,
570 ipa_polymorphic_call_context::set_by_invariant,
572 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
573 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
574 extr_type_from_vtbl_ptr_store, record_known_type
575 check_stmt_for_type_change,
576 ipa_polymorphic_call_context::get_dynamic_type): Move here from
578 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
580 (contains_polymorphic_type_p, possible_placement_new,
581 ipa_polymorphic_call_context::restrict_to_inner_class,
582 contains_type_p, decl_maybe_in_construction_p,
583 ipa_polymorphic_call_context::stream_out,
584 ipa_polymorphic_call_context::debug,
585 ipa_polymorphic_call_context::stream_in,
586 ipa_polymorphic_call_context::set_by_decl,
587 ipa_polymorphic_call_context::set_by_invariant,
589 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
590 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
591 extr_type_from_vtbl_ptr_store, record_known_type
592 check_stmt_for_type_change,
593 ipa_polymorphic_call_context::get_dynamic_type): Move to
594 ipa-polymorphic-call.c
595 (type_all_derivations_known_p, types_odr_comparable,
596 types_must_be_same_for_odr): Export.
597 (type_known_to_have_no_deriavations_p): New function.
598 * Makefile.in: Add ipa-polymorphic-call.c
600 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
602 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
604 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
605 (possible_polymorphic_call_targets): Instead of computing both
606 speculative and non-speculative answers, do just one at a time.
607 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
608 (dump_targets): Break out from ...
609 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
610 and non-speculative lists.
611 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
612 * ipa-utils.h (possible_polymorphic_call_targets): Update.
614 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
616 PR rtl-optimization/63348
617 * emit-rtl.c (try_split): Do not emit extra barrier.
619 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
621 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
622 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
624 (aarch64_<sur>shll2_n<mode>): Likewise.
625 (aarch64_<sur>shr_n<mode>): Likewise.
626 (aarch64_<sur>sra_n<mode>: Likewise.
627 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
628 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
629 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
630 * config/aarch64/iterators.md (ve_mode): New.
631 (offsetlr): Remap to infix text for use in new predicates.
632 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
633 (aarch64_simd_shift_imm_hi): Likewise.
634 (aarch64_simd_shift_imm_si): Likewise.
635 (aarch64_simd_shift_imm_di): Likewise.
636 (aarch64_simd_shift_imm_offset_qi): Likewise.
637 (aarch64_simd_shift_imm_offset_hi): Likewise.
638 (aarch64_simd_shift_imm_offset_si): Likewise.
639 (aarch64_simd_shift_imm_offset_di): Likewise.
640 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
641 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
642 (aarch64_simd_shift_imm_bitsize_si): Likewise.
643 (aarch64_simd_shift_imm_bitsize_di): Likewise.
645 2014-09-25 Jiong Wang <jiong.wang@arm.com>
647 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
648 new created BB as the intersection of live-in from "old_dest" and
651 2014-09-25 Felix Yang <felix.yang@huawei.com>
653 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
654 * genautomata.c (merge_states): Ditto.
656 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
659 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
660 in instruction sequence.
662 2014-09-25 Nick Clifton <nickc@redhat.com>
665 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
666 in instruction sequence.
668 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
671 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
672 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
674 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
676 Anna Tikhonova <anna.tikhonova@intel.com>
677 Ilya Tocar <ilya.tocar@intel.com>
678 Andrey Turetskiy <andrey.turetskiy@intel.com>
679 Ilya Verbin <ilya.verbin@intel.com>
680 Kirill Yukhin <kirill.yukhin@intel.com>
681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
684 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
685 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
686 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
687 (define_expand "<avx512>_perm<mode>_mask"): ... this.
688 Use VI8F_256_512 mode iterator.
689 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
690 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
692 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
693 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
694 Anna Tikhonova <anna.tikhonova@intel.com>
695 Ilya Tocar <ilya.tocar@intel.com>
696 Andrey Turetskiy <andrey.turetskiy@intel.com>
697 Ilya Verbin <ilya.verbin@intel.com>
698 Kirill Yukhin <kirill.yukhin@intel.com>
699 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
702 (define_insn "avx_movshdup256<mask_name>"): Add masking.
703 (define_insn "sse3_movshdup<mask_name>"): Ditto.
704 (define_insn "avx_movsldup256<mask_name>"): Ditto.
705 (define_insn "sse3_movsldup<mask_name>"): Ditto.
706 (define_insn "vec_dupv2df<mask_name>"): Ditto.
707 (define_insn "*vec_concatv2df"): Add EVEX version.
709 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
711 Anna Tikhonova <anna.tikhonova@intel.com>
712 Ilya Tocar <ilya.tocar@intel.com>
713 Andrey Turetskiy <andrey.turetskiy@intel.com>
714 Ilya Verbin <ilya.verbin@intel.com>
715 Kirill Yukhin <kirill.yukhin@intel.com>
716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
719 (define_insn "vec_set<mode>_0"): Add EVEX version.
721 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
723 Anna Tikhonova <anna.tikhonova@intel.com>
724 Ilya Tocar <ilya.tocar@intel.com>
725 Andrey Turetskiy <andrey.turetskiy@intel.com>
726 Ilya Verbin <ilya.verbin@intel.com>
727 Kirill Yukhin <kirill.yukhin@intel.com>
728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
732 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
734 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
735 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
736 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
737 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
738 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
739 (define_expand "sse2_cvtpd2ps_mask): New.
740 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
741 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
743 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
744 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
745 Anna Tikhonova <anna.tikhonova@intel.com>
746 Ilya Tocar <ilya.tocar@intel.com>
747 Andrey Turetskiy <andrey.turetskiy@intel.com>
748 Ilya Verbin <ilya.verbin@intel.com>
749 Kirill Yukhin <kirill.yukhin@intel.com>
750 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
753 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
754 (ufix_notruncv8dfv8si2_mask_round): ... this.
756 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
757 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
758 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
759 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
760 (define_expand "sse2_cvtpd2dq"): Delete.
761 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
762 make 2nd operand const0 vector.
763 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
765 (define_mode_attr pd2udqsuff): New.
767 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
768 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
769 (define_insn "*avx_cvttpd2dq256_2"): Delete.
770 (define_expand "sse2_cvttpd2dq"): Ditto.
771 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
772 make 2nd operand const0 vector.
774 2014-09-25 Jakub Jelinek <jakub@redhat.com>
776 PR tree-optimization/63341
777 * tree-vectorizer.h (vect_create_data_ref_ptr,
778 vect_create_addr_base_for_vector_ref): Add another tree argument
779 defaulting to NULL_TREE.
780 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
781 argument, pass it down to vect_create_addr_base_for_vector_ref.
782 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
783 add that to base_offset too if non-NULL.
784 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
785 for dr_explicit_realign_optimized set it to vector byte size
786 - 1 instead of setting offset, pass byte_offset down to
787 vect_create_data_ref_ptr.
789 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
791 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
792 forgotten debug output; canonicalize querries more wtih LTO.
794 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
796 * cgraph.h (class ipa_polymorphic_call_context): Move here from
797 ipa-utils.h; add stream_int and stream_out methods.
798 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
799 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
800 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
802 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
803 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
804 ipa_polymorphic_call_context::clear_speculation,
805 ipa_polymorphic_call_context::clear_outer_type): Move here from
807 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
808 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
809 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
810 ipa_polymorphic_call_context::clear_speculation,
811 ipa_polymorphic_call_context::clear_outer_type): Likewise.
812 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
814 (ipa_polymorphic_call_context::stream_out): New method.
815 (ipa_polymorphic_call_context::stream_in): New method.
816 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
817 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
819 (ipa_analyze_call_uses): Simplify.
820 (update_indirect_edges_after_inlining): Do not care about outer_type.
821 (ipa_write_indirect_edge_info): Update.
822 (ipa_write_indirect_edge_info): Likewise.
823 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
824 (dump_edge_flags): Break out from ...
825 (cgraph_node::dump): ... here; dump indirect edges.
827 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
829 * ipa-utils.h (polymorphic_call_context): Add
830 metdhos dump, debug and clear_outer_type.
831 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
832 (ipa_polymorphic_call_context::clear_outer_type): New method.
833 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
834 * ipa-devirt.c (types_odr_comparable): New function.
835 (types_must_be_same_for_odr): New function.
836 (odr_subtypes_equivalent_p): Simplify.
837 (possible_placement_new): Break out from ...
838 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
839 be more cuatious about returning false in cases the context may be
840 valid in derived type or via placement new.
841 (contains_type_p): Clear maybe_derived_type
842 (ipa_polymorphic_call_context::dump): New method.
843 (ipa_polymorphic_call_context::debug): New method.
844 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
845 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
846 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
847 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
848 to suceed on all valid cases; remove confused sanity check.
849 (dump_possible_polymorphic_call_targets): Simplify.
851 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
853 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
854 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
855 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
856 varpool.c: Rename all instances of DECL_ABSTRACT to
859 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
861 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
862 special handling for stores whose SET_SRC is an UNSPEC (such as
865 2014-09-24 Jiong Wang <jiong.wang@arm.com>
867 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
868 !REG_P (src) to release more instruction sink opportunities.
870 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
872 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
873 move costs for 128-bit types.
875 2014-09-24 Martin Jambor <mjambor@suse.cz>
877 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
878 when duplicating a PASS_THROUGH jump function when creating a
881 2014-09-24 Marek Polacek <polacek@redhat.com>
885 * asan.c (maybe_instrument_call): Add default case.
886 * ipa-pure-const.c (special_builtin_state): Likewise.
887 * predict.c (expr_expected_value_1): Likewise.
888 * lto-streamer-out.c (write_symbol): Initialize variable.
890 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
892 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
894 (vmuld_laneq_f64): Likewise.
895 (vmuls_lane_f32): Likewise.
896 (vmuls_laneq_f32): Likewise.
898 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
901 * varpool.c (varpool_node::add): Pass decl attributes
904 2014-09-24 Jakub Jelinek <jakub@redhat.com>
907 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
909 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
911 PR tree-optimization/63266
912 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
913 marker for unknown byte value.
914 (MARKER_MASK): New macro.
915 (MARKER_BYTE_UNKNOWN): New macro.
916 (HEAD_MARKER): New macro.
917 (do_shift_rotate): Mark bytes with unknown values due to sign
918 extension when doing an arithmetic right shift. Replace hardcoded
919 mask for marker by new MARKER_MASK macro.
920 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
923 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
925 Anna Tikhonova <anna.tikhonova@intel.com>
926 Ilya Tocar <ilya.tocar@intel.com>
927 Andrey Turetskiy <andrey.turetskiy@intel.com>
928 Ilya Verbin <ilya.verbin@intel.com>
929 Kirill Yukhin <kirill.yukhin@intel.com>
930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
934 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
936 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
937 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
939 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
940 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
941 Anna Tikhonova <anna.tikhonova@intel.com>
942 Ilya Tocar <ilya.tocar@intel.com>
943 Andrey Turetskiy <andrey.turetskiy@intel.com>
944 Ilya Verbin <ilya.verbin@intel.com>
945 Kirill Yukhin <kirill.yukhin@intel.com>
946 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
949 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
950 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
951 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
952 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
953 (define_expand "avx512vl_pshuflw_mask"): New.
954 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
955 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
956 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
957 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
958 (define_expand "avx512vl_pshufhw_mask"): New.
959 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
961 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
963 Anna Tikhonova <anna.tikhonova@intel.com>
964 Ilya Tocar <ilya.tocar@intel.com>
965 Andrey Turetskiy <andrey.turetskiy@intel.com>
966 Ilya Verbin <ilya.verbin@intel.com>
967 Kirill Yukhin <kirill.yukhin@intel.com>
968 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
971 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
972 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
973 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
974 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
975 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
977 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
979 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
980 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
982 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
983 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
984 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
985 (define_expand "avx512vl_pshufd_mask"): New.
986 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
988 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
990 Anna Tikhonova <anna.tikhonova@intel.com>
991 Ilya Tocar <ilya.tocar@intel.com>
992 Andrey Turetskiy <andrey.turetskiy@intel.com>
993 Ilya Verbin <ilya.verbin@intel.com>
994 Kirill Yukhin <kirill.yukhin@intel.com>
995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
998 (CODE_FOR_avx2_extracti128): Rename to ...
999 (CODE_FOR_avx_vextractf128v4di): this.
1000 (CODE_FOR_avx2_inserti128): Rename to ...
1001 (CODE_FOR_avx_vinsertf128v4di): this.
1002 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
1003 CODE_FOR_avx_vextractf128v4di.
1004 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
1005 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
1006 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
1007 CODE_FOR_avx512vl_vinsertv8si.
1008 * config/i386/sse.md
1010 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
1011 AVX512_VEC mode iterator.
1013 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
1016 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
1017 AVX512_VEC_2 mode iterator.
1018 (define_insn "vec_set_lo_<mode><mask_name>"): New.
1019 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1020 (define_expand "avx512vl_vinsert<mode>"): Ditto.
1021 (define_insn "avx2_vec_set_lo_v4di"): Delete.
1022 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1023 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1024 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1025 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1026 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1027 (define_expand "avx2_extracti128"): Delete.
1028 (define_expand "avx2_inserti128"): Ditto.
1030 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1032 Anna Tikhonova <anna.tikhonova@intel.com>
1033 Ilya Tocar <ilya.tocar@intel.com>
1034 Andrey Turetskiy <andrey.turetskiy@intel.com>
1035 Ilya Verbin <ilya.verbin@intel.com>
1036 Kirill Yukhin <kirill.yukhin@intel.com>
1037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1039 * config/i386/sse.md
1040 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1041 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1042 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1043 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1044 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1045 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1046 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1047 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1048 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1049 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1050 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1051 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1052 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1054 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
1056 PR rtl-optimization/63210
1057 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1058 HARD_REGNO is not available for CONFLICT_A.
1060 2014-09-23 Andi Kleen <ak@linux.intel.com>
1062 * cgraph.h (symtab_node): Add no_reorder attribute.
1063 (symbol_table::output_asm_statements): Remove.
1064 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1065 (cgraph_node::create_version_clone): Dito.
1066 (symbol_table::output_asm_statements): Remove.
1067 * trans-mem.c (ipa_tm_create_version_alias): Dito.
1068 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1069 (output_in_order): Add no_reorder flag. Only handle no_reorder
1071 (symbol_table::compile): Add separate pass for no_reorder nodes.
1072 (process_common_attributes): Set no_reorder flag in symtab node.
1074 (process_function_and_variable_attributes): Pass symtab nodes to
1075 process_common_attributes.
1076 * doc/extend.texi (no_reorder): Document no_reorder attribute.
1077 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1078 (lto_output_varpool_node): Dito.
1079 (input_overwrite_node): Dito.
1080 (input_varpool_node): Dito.
1081 * varpool.c (varpool_node::add): Set no_reorder attribute.
1082 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1083 (symbol_table::output_variables): Dito.
1084 * symtab.c (symtab_node::dump_base): Print no_reorder.
1086 2014-09-23 Jiong Wang <jiong.wang@arm.com>
1088 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1091 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
1093 * configure: Regenerate.
1095 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
1097 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1098 when result_mode == shift_mode.
1100 2014-09-23 Kostya Serebryany <kcc@google.com>
1102 Update to match the changed asan API.
1103 * asan.c (asan_global_struct): Update the __asan_global definition
1104 to match the new API.
1105 (asan_add_global): Ditto.
1106 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1109 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1111 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1112 refine the constraints used on 32/64-bit floating point moves.
1114 (f64_vsx): Likewise.
1117 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1118 (BOOL_REGS_OP1): Likewise.
1119 (BOOL_REGS_OP2): Likewise.
1120 (BOOL_REGS_UNARY): Likewise.
1121 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1122 32/64-bit floating point moves. Do not use wa, instead use ww/ws
1123 for moves involving VSX registers. Do not use constraints that
1124 target VSX registers for decimal types.
1125 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1126 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1128 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
1130 * tree.h (int_bit_position): Turn into inline function;
1131 implement using wide int.
1132 * tree.c (int_bit_position): Remove.
1134 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
1137 * target-globals.c (target_globals::~target_globals): Fix location
1138 of ira_int destruction.
1140 2014-09-23 Renlin Li <renlin.li@arm.com>
1142 * config/aarch64/aarch64.md (return): New.
1143 (simple_return): Likewise.
1144 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1145 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1147 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
1149 * common/config/aarch64/aarch64-common.c:
1150 (default_options aarch_option_optimization_table):
1151 Default to -fsched-pressure.
1153 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
1155 * cfgcleanup.c (try_optimize_cfg): Do not remove label
1156 with LABEL_PRESERVE_P flag set.
1158 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1160 Anna Tikhonova <anna.tikhonova@intel.com>
1161 Ilya Tocar <ilya.tocar@intel.com>
1162 Andrey Turetskiy <andrey.turetskiy@intel.com>
1163 Ilya Verbin <ilya.verbin@intel.com>
1164 Kirill Yukhin <kirill.yukhin@intel.com>
1165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1167 * config/i386/sse.md
1168 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1169 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1170 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1171 (define_insn "sse2_shufpd_v2df_mask"): New.
1173 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1175 Anna Tikhonova <anna.tikhonova@intel.com>
1176 Ilya Tocar <ilya.tocar@intel.com>
1177 Andrey Turetskiy <andrey.turetskiy@intel.com>
1178 Ilya Verbin <ilya.verbin@intel.com>
1179 Kirill Yukhin <kirill.yukhin@intel.com>
1180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1182 * config/i386/sse.md
1183 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1184 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1185 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1186 (define_insn "sse_shufps_v4sf_mask"): New.
1188 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1190 Anna Tikhonova <anna.tikhonova@intel.com>
1191 Ilya Tocar <ilya.tocar@intel.com>
1192 Andrey Turetskiy <andrey.turetskiy@intel.com>
1193 Ilya Verbin <ilya.verbin@intel.com>
1194 Kirill Yukhin <kirill.yukhin@intel.com>
1195 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1197 * config/i386/sse.md
1198 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1199 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1200 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1201 (define_insn "unpcklps128_mask"): New.
1203 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1205 Anna Tikhonova <anna.tikhonova@intel.com>
1206 Ilya Tocar <ilya.tocar@intel.com>
1207 Andrey Turetskiy <andrey.turetskiy@intel.com>
1208 Ilya Verbin <ilya.verbin@intel.com>
1209 Kirill Yukhin <kirill.yukhin@intel.com>
1210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1212 * config/i386/sse.md
1213 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1214 (define_insn "avx512vl_unpckhpd128_mask"): New.
1215 (define_expand "avx_movddup256<mask_name>"): Add masking.
1216 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1217 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1218 (define_insn "avx512vl_unpcklpd128_mask"): New.
1220 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1222 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1223 * doc/tm.texi: Regenerate.
1224 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1225 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1226 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1228 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1229 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1230 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1231 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1232 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1234 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1235 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1236 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1237 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1238 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1239 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1240 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1241 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1242 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1243 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1244 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1247 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
1249 * tree-ssa-ccp.c (prop_value_d): Rename to ...
1250 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1251 * ipa-prop.c (struct type_change_info): Rename to ...
1252 (prop_type_change_info): ... this; update uses.
1253 * ggc-page.c (globals): Rename to ...
1254 (static struct ggc_globals): ... this; update uses.
1255 * tree-ssa-loop-im.c (mem_ref): Rename to ...
1256 (im_mem_ref): ... this; update uses.
1257 * ggc-common.c (loc_descriptor): Rename to ...
1258 (ggc_loc_descriptor): ... this; update uses.
1259 * lra-eliminations.c (elim_table): Rename to ...
1260 (lra_elim_table): ... this; update uses.
1261 * bitmap.c (output_info): Rename to ...
1262 (bitmap_output_info): ... this; update uses.
1263 * gcse.c (expr): Rename to ...
1264 (gcse_expr) ... this; update uses.
1265 (occr): Rename to ...
1266 (gcse_occr): .. this; update uses.
1267 * tree-ssa-copy.c (prop_value_d): Rename to ...
1268 (prop_value_t): ... this.
1269 * predict.c (block_info_def): Rename to ...
1270 (block_info): ... this; update uses.
1271 (edge_info_def): Rename to ...
1272 (edge_info): ... this; update uses.
1273 * profile.c (bb_info): Rename to ...
1274 (bb_profile_info): ... this; update uses.
1275 * alloc-pool.c (output_info): Rename to ...
1276 (pool_output_info): ... this; update uses.
1277 * ipa-cp.c (topo_info): Rename to ..
1278 (ipa_topo_info): ... this; update uses.
1279 * tree-nrv.c (nrv_data): Rename to ...
1280 (nrv_data_t): ... this; update uses.
1281 * ipa-split.c (bb_info): Rename to ...
1282 (split_bb_info): ... this one.
1283 * profile.h (edge_info): Rename to ...
1284 (edge_profile_info): ... this one; update uses.
1285 * dse.c (bb_info): Rename to ...
1286 (dse_bb_info): ... this one; update uses.
1287 * cprop.c (occr): Rename to ...
1288 (cprop_occr): ... this one; update uses.
1289 (expr): Rename to ...
1290 (cprop_expr): ... this one; update uses.
1292 2014-09-22 Jason Merrill <jason@redhat.com>
1294 * Makefile.in (check-parallel-%): Add @.
1296 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1298 * config/aarch64/geniterators.sh: New.
1299 * config/aarch64/iterators.md (VDQF_DF): New.
1300 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1301 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1303 2014-09-22 Peter A. Bigot <pab@pabigot.com>
1305 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1306 -lnosys when -msim absent.
1308 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
1310 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1312 2014-09-22 Richard Biener <rguenther@suse.de>
1314 * gimplify.c (gimplify_init_constructor): Do not leave
1315 non-GIMPLE vector constructors around.
1316 * tree-cfg.c (verify_gimple_assign_single): Verify that
1317 CONSTRUCTORs have gimple elements.
1319 2014-09-22 Jakub Jelinek <jakub@redhat.com>
1322 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1323 insert a debug source bind stmt setting DEBUG_EXPR_DECL
1324 instead of a normal gimple assignment stmt.
1326 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1328 * config/bfin/bfin.md: Fix use of constraints in define_split.
1330 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1332 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1333 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1335 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1337 * hard-reg-set.h: Include hash-table.h.
1338 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1340 * target-globals.c (target_globals::~target_globals): Call
1341 hard_regs->finalize.
1342 * rtl.h (subreg_shape): New structure.
1343 (shape_of_subreg): New function.
1344 (simplifiable_subregs): Declare.
1345 * reginfo.c (simplifiable_subreg): New structure.
1346 (simplifiable_subregs_hasher): Likewise.
1347 (simplifiable_subregs): New function.
1348 (invalid_mode_changes): Delete.
1349 (alid_mode_changes, valid_mode_changes_obstack): New variables.
1350 (record_subregs_of_mode): Remove subregs_of_mode parameter.
1351 Record valid mode changes in valid_mode_changes.
1352 (find_subregs_of_mode): Remove subregs_of_mode parameter.
1353 Update calls to record_subregs_of_mode.
1354 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1355 handling. Initialize new variables. Update call to
1356 find_subregs_of_mode.
1357 (invalid_mode_change_p): Check new variables instead of
1358 invalid_mode_changes.
1359 (finish_subregs_of_mode): Finalize new variables instead of
1360 invalid_mode_changes.
1361 (target_hard_regs::finalize): New function.
1362 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1363 even when CLASS_CANNOT_CHANGE_MODE is undefined.
1365 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1367 * combine.c (subst): Use simplify_subreg_regno rather than
1368 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1370 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1372 * rtl.h (subreg_info): Expand commentary
1373 * rtlanal.c (subreg_get_info): Likewise.
1375 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1377 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1378 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1379 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1381 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
1383 * config/arm/arm.c: #include "tm-constrs.h"
1384 (thumb1_size_rtx_costs): Adjust rtx costs.
1386 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
1388 * configure.ac (target_header_dir): Move block defining
1389 this to before the block setting inhibit_libc.
1390 (inhibit_libc): When considering $with_headers, just
1391 check it it's explicitly "no". If not, also check if
1392 $target_header_dir/stdio.h is present. If not, set
1394 * configure: Regenerate.
1396 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
1398 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1400 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1402 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
1403 insn for divides by integer powers of two.
1404 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1405 (mod<mode>3): Fix formatting.
1406 (three anonymous define_insn and two define_split): Delete.
1408 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1410 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1411 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1412 (floatdisf2_internal2): Ditto.
1413 (ashrdi3_no_power): Ditto. Fix formatting.
1415 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1417 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1418 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1421 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1423 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1424 constant, use addsi3 directly.
1425 (three anonymous define_insn, two define_split): Delete.
1426 (sub<mode>3): Move. Do not allow constant second operand.
1427 Generate different insn for constant first operand.
1428 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1429 (subf<mode>3_imm): New.
1430 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1431 (*plus_ltu<mode>): Only handle registers.
1432 (*plus_ltu<mode>_1): New. Handle integer third operand.
1433 (*plus_gtu<mode>): Only handle registers.
1434 (*plus_gtu<mode>_1): New. Handle integer third operand.
1436 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1438 * config/rs6000/rs6000.md (iorxor): New code_iterator.
1439 (iorxor): New code_attr.
1440 (IORXOR): New code_attr.
1441 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1442 (ior<mode>3, xor<mode>3): Delete.
1443 (<iorxor><mode>3): New.
1444 (splitter for "big" integer ior, xor): New.
1445 (*bool<mode>3): Move. Also handle AND.
1446 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1447 (splitter for "big" integer ior, xor): Delete.
1449 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1451 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1452 (two anonymous define_insn and two define_split): Delete.
1453 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1455 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1457 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1458 (two anonymous define_insn and two define_split): Delete.
1459 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1461 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1463 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1465 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1467 * config/rs6000/predicates.md (ca_operand): Allow subregs.
1468 (input_operand): Do not allow ca_operand.
1469 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1470 carry bit, allow SImode and Pmode.
1471 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1473 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
1475 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1476 clobbered registers using clobber_reg. Remove UNSPEC decoration.
1477 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1478 (*call_rex64_ms_sysv): Remove.
1479 (*call_value_rex64_ms_sysv): Ditto.
1480 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1482 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
1484 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1487 2014-09-20 Andreas Schwab <schwab@suse.de>
1489 * config/ia64/ia64.md: Remove constraints from define_split
1492 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1494 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1495 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1496 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1497 (get_dynamic_type): Remove.
1498 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1499 (clear_speculation): Bring to ipa-deivrt.h
1500 (get_class_context): Rename to ...
1501 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1502 (contains_type_p): Update.
1503 (get_dynamic_type): Rename to ...
1504 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1505 (possible_polymorphic_call_targets): UPdate.
1506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1507 * ipa-prop.c (ipa_analyze_call_uses): Update.
1509 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1511 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1512 privatize dynamic TLS variables.
1514 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1516 * diagnostic.c (warning_n): New function.
1517 * diagnostic-core.h (warning_n): Declare.
1518 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1519 output dynamic counts when available.
1521 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1523 PR tree-optimization/63255
1524 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1525 issue in setting body_removed flag.
1527 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1530 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1531 that visibility change is possible
1532 (handle_weakref_attribute): Likewise.
1533 * cgraph.h (symtab_node): Add method get_create and
1534 field refuse_visibility_changes.
1535 (symtab_node::get_create): New method.
1536 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1537 * varasm.c (mark_weak): Verify that visibility change is
1540 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1542 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1543 for base_reg_operand to be common between LO_SUM and PLUS.
1544 (fusion_gpr_mem_combo): New predicate to match a fused address
1545 that combines the addis and memory offset address.
1547 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1549 (emit_fusion_gpr_load): Likewise.
1551 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1552 signature to pass each argument separately, rather than
1553 using an operands array. Rewrite the insns found by peephole2 to
1554 be a single insn, rather than hoping the insns will still be
1555 together when the peephole pass is done. Drop being called via a
1557 (emit_fusion_gpr_load): Change calling signature to be called from
1558 the fusion_gpr_load_<mode> insns with a combined memory address
1559 instead of the peephole pass passing the addis and offset
1562 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1564 (power8 fusion peephole): Drop support for doing power8 via a
1565 normal peephole that was created by the peephole2 pass.
1566 (power8 fusion peephole2): Create a new insn with the fused
1567 address, so that the fused operation is kept together after
1568 register allocation is done.
1569 (fusion_gpr_load_<mode>): Likewise.
1571 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1574 * tree.c (need_assembler_name_p): Do not mangle variadic types.
1576 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1578 * recog.c (scratch_operand): Do not simply allow all hard registers:
1579 only allow those that are allocatable.
1581 2014-09-19 Felix Yang <felix.yang@huawei.com>
1583 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1584 comments and fix spacing to conform to coding style.
1586 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1588 * genrecog.c (validate_pattern): Allow empty constraints in
1591 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
1593 * dwarf2out.c (decl_ultimate_origin): Update comment.
1594 * tree.c (block_ultimate_origin): Same.
1596 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1598 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1599 Update GCC version name to GCC 5.
1600 (rs6000_function_arg_boundary): Likewise.
1601 (rs6000_function_arg): Likewise.
1603 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1605 * config/sh/sh.md: Fix use of constraints in define_split.
1607 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1610 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1612 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1614 * doc/md.texi (Modifiers): Consistently use "read/write"
1615 nomenclature rather than "input/output".
1616 * genrecog.c (constraints_supported_in_insn_p): New.
1617 (validate_pattern): If needed, also check constraints on
1618 MATCH_SCRATCH operands.
1619 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1620 operands with no '=' or '+' modifier.
1622 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1624 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1625 scratch register as written.
1627 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1629 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1632 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1634 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1637 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1640 * config/s390/s390.c (s390_emit_epilogue): When doing the return
1641 address load optimization force s390_optimize_prologue to leave it
1642 that way. Only do the optimization if we already decided to push
1643 r14 into a stack slot.
1645 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
1647 * asan.c (build_check_stmt): Alignment arg was added.
1648 (asan_expand_check_ifn): Optimization for alignment >= 8.
1650 2014-09-19 Olivier Hainque <hainque@adacore.com>
1652 * config/i386/vxworksae.h: Remove obsolete definitions.
1653 (STACK_CHECK_PROTECT): Define.
1654 * config/i386/vx-common.h: Remove. Merge contents within
1655 config/i386/vxworks.h.
1656 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1659 2014-09-19 Olivier Hainque <hainque@adacore.com>
1661 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1662 * config/rs6000/t-vxworksmils: New file.
1663 * config/rs6000/vxworksmils.h: New file.
1665 2014-09-19 Olivier Hainque <hainque@adacore.com>
1667 * varasm.c (default_section_type_flags): Flag .persistent.bss
1668 sections as SECTION_BSS.
1670 2014-09-19 Nick Clifton <nickc@redhat.com>
1672 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1673 pop'ed registers so that DCE does not eliminate them.
1675 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
1678 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1680 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1682 * system.h (LIBGCC2_TF_CEXT): Poison.
1683 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1684 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1685 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1686 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1687 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1688 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1689 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1690 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1691 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1693 2014-09-19 Kito Cheng <kito@0xlab.org>
1695 * except.h: Fix header guard.
1696 * addresses.h: Add missing header guard.
1697 * cfghooks.h: Likewise.
1698 * collect-utils.h: Likewise.
1699 * collect2-aix.h: Likewise.
1700 * conditions.h: Likewise.
1701 * cselib.h: Likewise.
1702 * dwarf2asm.h: Likewise.
1703 * graphds.h: Likewise.
1704 * graphite-scop-detection.h: Likewise.
1705 * gsyms.h: Likewise.
1706 * hw-doloop.h: Likewise.
1707 * incpath.h: Likewise.
1708 * ipa-inline.h: Likewise.
1709 * ipa-ref.h: Likewise.
1710 * ira-int.h: Likewise.
1712 * lra-int.h: Likewise.
1714 * lto-section-names.h: Likewise.
1715 * read-md.h: Likewise.
1716 * reload.h: Likewise.
1717 * rtl-error.h: Likewise.
1718 * sdbout.h: Likewise.
1719 * targhooks.h: Likewise.
1720 * tree-affine.h: Likewise.
1721 * xcoff.h: Likewise.
1722 * xcoffout.h: Likewise.
1724 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1727 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1730 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1733 * lra.c (lra): Call recog_init.
1735 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1738 * asan.c (transform_statements): Don't instrument clobber statements.
1740 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1742 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1743 to neon_load1_1reg<q>.
1745 2014-09-17 Jakub Jelinek <jakub@redhat.com>
1748 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1749 if there are only debug stmts after the noreturn call, instead
1750 remove the debug stmts.
1752 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
1754 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1755 (odr_types_equivalent_p): Use pair hash.
1756 (odr_subtypes_equivalent_p): Likewise, do structural compare
1757 on ODR types that may be mismatched.
1758 (warn_odr): Support warning when only one field is given.
1759 (odr_types_equivalent_p): Strenghten comparsions made;
1761 (add_type_duplicate): Update VISITED hash set.
1763 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1765 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1766 Enable selection of 'posix' or no thread model.
1768 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1770 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1771 when architecture is older than ARMv7.
1773 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
1776 * config/pa/pa.c (pa_function_value): Directly handle aggregates
1777 that fit exactly in a word or double word.
1779 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
1781 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1784 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1786 Anna Tikhonova <anna.tikhonova@intel.com>
1787 Ilya Tocar <ilya.tocar@intel.com>
1788 Andrey Turetskiy <andrey.turetskiy@intel.com>
1789 Ilya Verbin <ilya.verbin@intel.com>
1790 Kirill Yukhin <kirill.yukhin@intel.com>
1791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1793 * config/i386/i386.c
1794 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1795 * config/i386/sse.md
1796 (define_mode_iterator VI48F_256): New.
1797 (define_mode_attr extract_type): Ditto.
1798 (define_mode_attr extract_suf): Ditto.
1799 (define_mode_iterator AVX512_VEC): Ditto.
1801 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1803 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1805 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1807 (define_mode_attr extract_type_2): Ditto.
1808 (define_mode_attr extract_suf_2): Ditto.
1809 (define_mode_iterator AVX512_VEC_2): Ditto.
1811 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1812 AVX512_VEC_2 mode iterator.
1813 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1814 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1815 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1816 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1817 (define_split for V16FI mode): Ditto.
1818 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1819 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1820 (define_split for VI8F_256 mode): Ditto.
1821 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1822 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1823 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1824 (define_split for VI4F_256 mode): Ditto.
1825 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1826 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1827 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1828 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1829 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1830 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1831 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1832 Update `type' attribute, remove explicit `memory' attribute calculation.
1834 2014-09-16 Kito Cheng <kito@0xlab.org>
1836 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1837 ira_spilled_reg_stack_slots_num if using lra.
1838 (do_reload): Remove release ira_spilled_reg_stack_slots part.
1839 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1840 make sure not using lra.
1841 (ira_reuse_stack_slot): Likewise.
1842 (ira_mark_new_stack_slot): Likewise.
1844 2014-09-15 Andi Kleen <ak@linux.intel.com>
1846 * function.c (allocate_struct_function): Force
1847 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1848 profiling is disabled.
1850 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1852 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1853 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1854 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1855 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1856 macro with statically checked member functions.
1857 * rtl.h (rtx_insn::deleted): New method.
1858 (rtx_insn::set_deleted): Likewise.
1859 (rtx_insn::set_undeleted): Likewise.
1860 (INSN_DELETED_P): Remove.
1862 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1864 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1865 result of emit_jump_insn_before to a new variable.
1866 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1867 (mark_jump_label_1): Likewise.
1868 (mark_jump_label_asm): Likewise.
1869 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1870 * rtl.h (mark_jump_label): Adjust.
1872 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1874 * Makefile.in (dg_target_exps): Remove.
1875 (check_gcc_parallelize): Change to just an upper bound number.
1876 (check-%-subtargets): Always print the non-parallelized goals.
1877 (check_p_vars, check_p_comma, check_p_subwork): Remove.
1878 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1879 check_p_numbers3, check_p_numbers4, check_p_numbers5,
1880 check_p_numbers6): New variables.
1881 (check_p_numbers): Set to sequence from 1 to 9999.
1882 (check_p_subdirs): Set to sequence from 1 to minimum of
1883 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1885 (check-%, check-parallel-%): Rewritten so that for parallelized
1886 testing each job runs all the *.exp files, with
1887 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1889 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1891 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1893 (arc_sets_cc_p): Likewise.
1894 * config/arc/arc.c (arc_print_operand): Use methods of
1895 "final_sequence" for clarity, and to enable strengthening of
1896 locals "jump" and "delay" from rtx to rtx_insn *.
1897 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1898 rtx_insn *; use method of rtx_sequence for typesafety.
1899 (arc_get_insn_variants): Use insn method of rtx_sequence for
1901 (arc_pad_return): Likewise.
1902 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1903 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
1904 dyn_cast to rtx_sequence *, using insn method for typesafety.
1905 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1906 rtx_sequence * and use insn method when invoking get_attr_length.
1907 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1908 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
1909 rtx_sequence *, introducing a local "seq", using its insn method
1910 from typesafety and clarity.
1911 (add_sched_insns_for_speculation): Strengthen local "next" from
1913 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1914 (predicate_insn): Likewise.
1915 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1917 * config/cris/cris.c (cris_notice_update_cc): Likewise.
1918 * config/epiphany/epiphany-protos.h
1919 (extern void epiphany_insert_mode_switch_use): Likewise for param
1921 (get_attr_sched_use_fpu): Likewise for param.
1922 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1923 Likewise for param "insn".
1924 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1925 param "insn" of "target_insert_mode_switch_use" callback.
1926 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1927 (frv_issues_to_branch_unit_p): Likewise.
1928 (frv_pack_insn_p): Likewise.
1929 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1930 const rtx * (i.e. mutable rtx_def * const *) to
1932 * config/i386/i386-protos.h (standard_sse_constant_opcode):
1933 Strengthen first param from rtx to rtx_insn *.
1934 (output_fix_trunc): Likewise.
1935 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1936 (output_fix_trunc): Likewise.
1937 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1939 (min_insn_size): Likewise for param "insn".
1940 (get_mem_group): Likewise.
1942 (get_insn_path): Likewise.
1943 (get_insn_group): Likewise.
1944 (count_num_restricted): Likewise.
1945 (fits_dispatch_window): Likewise.
1946 (add_insn_window): Likewise.
1947 (add_to_dispatch_window): Likewise.
1948 (debug_insn_dispatch_info_file): Likewise.
1949 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1951 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1952 "cmp" and local "prev".
1953 (m32c_output_compare): Likewise for param "insn".
1954 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1955 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1956 (define_predicate "large_insn_p"): Likewise.
1957 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1958 param from rtx to rtx_insn *.
1959 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1960 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1961 (m68k_sched_attr_size): Likewise.
1962 (sched_get_opxy_mem_type): Likewise for param "insn".
1963 (m68k_sched_attr_op_mem): Likewise.
1964 (sched_mem_operand_p): Likewise.
1965 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1966 * config/mep/mep.c (mep_multi_slot): Likewise.
1967 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1969 (mips_sync_loop_insns): Likewise.
1970 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1971 method of "final_sequence" for typesafety.
1972 (mips_process_sync_loop): Strengthen param "insn" from rtx to
1974 (mips_output_sync_loop): Likewise.
1975 (mips_sync_loop_insns): Likewise.
1976 (mips_74k_agen_init): Likewise.
1977 (mips_sched_init): Use NULL rather than NULL_RTX when working with
1979 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1980 Strengthen param "insn" from rtx to rtx_insn *.
1981 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1983 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1985 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1986 "insn". Use method of rtx_sequence for typesafety.
1987 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1989 (branch_needs_nop_p): Likewise.
1990 (use_skip_p): Likewise.
1991 (pa_insn_refs_are_delayed): Likewise.
1992 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1993 for locals "insn", "ninsn".
1994 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1996 (is_cracked_insn): Likewise.
1997 (is_branch_slot_insn): Likewise.
1998 (is_nonpipeline_insn): Likewise.
1999 (insn_terminates_group_p): Likewise.
2000 (insn_must_be_first_in_group): Likewise.
2001 (insn_must_be_last_in_group): Likewise.
2002 (force_new_group): Likewise for param "next_insn".
2003 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
2005 (s390_sched_score): Likewise.
2006 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
2007 (rtx sfunc_uses_reg): Likewise for sole param.
2008 * config/sh/sh.c (sh_print_operand): Use insn method of
2009 final_sequence for typesafety.
2010 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
2011 Use insn method of final_sequence for typesafety.
2012 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
2013 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
2015 (eligible_for_return_delay): Likewise.
2016 (eligible_for_sibcall_delay): Likewise.
2017 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
2018 (eligible_for_return_delay): Likewise.
2019 (eligible_for_sibcall_delay): Likewise.
2020 * config/stormy16/stormy16-protos.h
2021 (xstormy16_output_cbranch_hi): Likewise for final param.
2022 (xstormy16_output_cbranch_si): Likewise.
2023 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2024 (xstormy16_output_cbranch_si): Likewise.
2025 * config/v850/v850-protos.h (notice_update_cc): Likewise.
2026 * config/v850/v850.c (notice_update_cc): Likewise.
2028 * final.c (get_attr_length_1): Strengthen param "insn" and param
2029 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2030 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2031 (get_attr_min_length): Likewise.
2032 (shorten_branches): Likewise for signature of locals "length_fun"
2033 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
2034 from a checked cast and use its methods for clarity and to enable
2035 strengthening local "inner_insn" from rtx to rtx_insn *.
2036 * genattr.c (gen_attr): When writing out the prototypes of the
2037 various generated "get_attr_" functions, strengthen the params of
2038 the non-const functions from rtx to rtx_insn *.
2039 Similarly, strengthen the params of insn_default_length,
2040 insn_min_length, insn_variable_length_p, insn_current_length.
2041 (main): Similarly, strengthen the param of num_delay_slots,
2042 internal_dfa_insn_code, insn_default_latency, bypass_p,
2043 insn_latency, min_issue_delay, print_reservation,
2044 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2045 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
2046 to hook_int_rtx_insn_unreachable.
2047 * genattrtab.c (write_attr_get): When writing out the generated
2048 "get_attr_" functions, strengthen the param "insn" from rtx to
2049 rtx_insn *, eliminating a checked cast.
2050 (make_automaton_attrs): When writing out prototypes of
2051 "internal_dfa_insn_code_", "insn_default_latency_" functions
2052 and the "internal_dfa_insn_code" and "insn_default_latency"
2053 callbacks, strengthen their params from rtx to rtx_insn *
2054 * genautomata.c (output_internal_insn_code_evaluation): When
2055 writing out code, add a checked cast from rtx to rtx_insn * when
2056 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2057 (output_dfa_insn_code_func): Strengthen param of generated
2058 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2059 (output_trans_func): Likewise for generated function
2061 (output_internal_insn_latency_func): When writing out generated
2062 function "internal_insn_latency", rename params from "insn" and
2063 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
2064 locals "insn" and "insn2" as rtx_insn * with checked casts once
2065 we've proven that we're not dealing with const0_rtx.
2066 (output_insn_latency_func): Strengthen param of generated
2067 function "insn_latency" from rtx to rtx_insn *.
2068 (output_print_reservation_func): Likewise for generated function
2069 "print_reservation".
2070 (output_insn_has_dfa_reservation_p): Likewise for generated
2071 function "insn_has_dfa_reservation_p".
2072 * hooks.c (hook_int_rtx_unreachable): Rename to...
2073 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2074 from rtx to rtx_insn *.
2075 * hooks.h (hook_int_rtx_unreachable): Likewise.
2076 (extern int hook_int_rtx_insn_unreachable): Likewise.
2077 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2078 (get_attr_min_length): Likewise.
2079 * recog.c (get_enabled_alternatives): Likewise.
2080 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2081 * reorg.c (find_end_label): Introduce local rtx "pat" and
2082 strengthen local "insn" from rtx to rtx_insn *.
2083 (redundant_insn): Use insn method of "seq" rather than element for
2084 typesafety; strengthen local "control" from rtx to rtx_insn *.
2085 * resource.c (mark_referenced_resources): Add checked cast to
2086 rtx_insn * within INSN/JUMP_INSN case.
2087 (mark_set_resources): Likewise.
2088 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2091 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2093 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2094 param "label" from rtx to rtx_insn *.
2095 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2097 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2098 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2099 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2100 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2101 * final.c (default_label_align_after_barrier_max_skip): Strengthen
2102 param from rtx to rtx_insn *.
2103 (default_loop_align_max_skip): Likewise.
2104 (default_label_align_max_skip): Likewise.
2105 (default_jump_align_max_skip): Likewise.
2106 * target.def (label_align_after_barrier_max_skip): Likewise.
2107 (loop_align_max_skip): Likewise.
2108 (label_align_max_skip): Likewise.
2109 (jump_align_max_skip): Likewise.
2110 * targhooks.h (default_label_align_after_barrier_max_skip):
2112 (default_loop_align_max_skip): Likewise.
2113 (default_label_align_max_skip): Likewise.
2114 (default_jump_align_max_skip): Likewise.
2116 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2118 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2119 from const_rtx to const rtx_insn *. Update union members from rtx
2121 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2122 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2123 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2124 strengthen both params from const_rtx to const rtx_insn *.
2125 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2126 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2127 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2129 * target.def (can_follow_jump): Strengthen both params from
2130 const_rtx to const rtx_insn *, and update default implementation
2131 from hook_bool_const_rtx_const_rtx_true to
2132 hook_bool_const_rtx_insn_const_rtx_insn_true.
2134 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2136 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2137 "insn" from rtx to rtx_insn *.
2138 * sched-int.h (deps_start_bb): Likewise for 2nd param.
2140 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2141 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2142 Anna Tikhonova <anna.tikhonova@intel.com>
2143 Ilya Tocar <ilya.tocar@intel.com>
2144 Andrey Turetskiy <andrey.turetskiy@intel.com>
2145 Ilya Verbin <ilya.verbin@intel.com>
2146 Kirill Yukhin <kirill.yukhin@intel.com>
2147 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2149 * config/i386/sse.md
2150 (define_insn "vcvtph2ps<mask_name>"): Add masking.
2151 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2152 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2153 (define_expand "vcvtps2ph_mask"): New.
2154 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2155 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2156 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2158 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2160 Anna Tikhonova <anna.tikhonova@intel.com>
2161 Ilya Tocar <ilya.tocar@intel.com>
2162 Andrey Turetskiy <andrey.turetskiy@intel.com>
2163 Ilya Verbin <ilya.verbin@intel.com>
2164 Kirill Yukhin <kirill.yukhin@intel.com>
2165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2167 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2169 (define_mode_iterator VI24_AVX512BW_1): Ditto.
2170 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2171 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2172 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2173 also for TARGET_AVX512VL.
2174 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2176 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
2178 * doc/install.texi (Options specification): add
2179 --disable-libsanitizer item.
2181 2014-09-14 James Clarke <jrtc27@jrtc27.com>
2182 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2185 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2187 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2188 kernel version check to avoid incrementing it after every major OS X
2190 (darwin_default_min_version): Avoid static memory buffer.
2192 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
2194 * tree.c (need_assembler_name_p): Store C++ type mangling only
2197 2014-09-13 Marek Polacek <polacek@redhat.com>
2199 * tree.c (protected_set_expr_location): Don't check whether T is
2202 2014-09-12 DJ Delorie <dj@redhat.com>
2204 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2205 (extend_and_shift1_hipsi2): Likewise.
2206 (extend_and_shift2_hipsi2): Likewise.
2208 2014-09-12 David Malcolm <dmalcolm@redhat.com>
2210 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2211 with NULL when dealing with an insn.
2212 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2213 from rtx to rtx_insn *.
2214 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2215 const_rtx to const rtx_insn *.
2216 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2218 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
2220 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2223 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2225 * target.def (libgcc_floating_mode_supported_p): New hook.
2226 * targhooks.c (default_libgcc_floating_mode_supported_p): New
2228 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2229 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2230 (LIBGCC2_HAS_TF_MODE): Remove.
2231 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2232 * doc/tm.texi: Regenerate.
2233 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2235 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2236 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2237 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2238 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2239 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2240 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2241 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2242 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2243 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2244 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2246 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2247 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2248 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2249 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2250 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2251 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2252 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2253 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2254 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2255 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2256 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2257 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2258 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2259 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2261 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2263 (ia64_libgcc_floating_mode_supported_p): New function.
2264 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2265 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2266 (IA64_NO_LIBGCC_TFMODE): Define.
2267 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2268 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2270 (pdp11_scalar_mode_supported_p): New function.
2271 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2272 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2274 2014-09-12 Richard Biener <rguenther@suse.de>
2277 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2279 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
2281 * tree.c (integer_each_onep): New function.
2282 * tree.h (integer_each_onep): Declare it.
2283 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2284 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2285 (X & 1) == 0 for vector and complex.
2287 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2289 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2291 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
2292 cost to spilling from integer to FP registers.
2294 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2296 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2298 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2299 are now handled correctly.
2301 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2303 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2304 handling of CALLER_SAVE_REGS and POINTER_REGS.
2306 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2308 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2309 the number of hard registers.
2311 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2313 Anna Tikhonova <anna.tikhonova@intel.com>
2314 Ilya Tocar <ilya.tocar@intel.com>
2315 Andrey Turetskiy <andrey.turetskiy@intel.com>
2316 Ilya Verbin <ilya.verbin@intel.com>
2317 Kirill Yukhin <kirill.yukhin@intel.com>
2318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2320 * config/i386/sse.md
2321 (define_mode_iterator VI48_AVX512VL): New.
2322 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2323 "avx512f_vternlog<mode>_maskz" and update mode iterator.
2324 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2325 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2326 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2327 "avx512f_vternlog<mode>_mask" and update mode iterator.
2328 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2329 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2331 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2332 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2333 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2334 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2335 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2336 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2338 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2339 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2340 Anna Tikhonova <anna.tikhonova@intel.com>
2341 Ilya Tocar <ilya.tocar@intel.com>
2342 Andrey Turetskiy <andrey.turetskiy@intel.com>
2343 Ilya Verbin <ilya.verbin@intel.com>
2344 Kirill Yukhin <kirill.yukhin@intel.com>
2345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2347 * config/i386/sse.md (VI128_256): Delete.
2348 (define_mode_iterator VI124_256): New.
2349 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2350 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2351 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2352 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2353 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2354 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2355 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2356 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2358 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2359 in presence of AVX-512.
2361 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2363 Anna Tikhonova <anna.tikhonova@intel.com>
2364 Ilya Tocar <ilya.tocar@intel.com>
2365 Andrey Turetskiy <andrey.turetskiy@intel.com>
2366 Ilya Verbin <ilya.verbin@intel.com>
2367 Kirill Yukhin <kirill.yukhin@intel.com>
2368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2370 * config/i386/sse.md
2371 (define_expand "<avx512>_gathersi<mode>"): Rename from
2372 "avx512f_gathersi<mode>".
2373 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2374 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2375 (define_expand "<avx512>_gatherdi<mode>"): Rename from
2376 "avx512f_gatherdi<mode>".
2377 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2378 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2380 (define_expand "<avx512>_scattersi<mode>"): Rename from
2381 "avx512f_scattersi<mode>".
2382 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2383 (define_expand "<avx512>_scatterdi<mode>"): Rename from
2384 "avx512f_scatterdi<mode>".
2385 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2387 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
2389 * ira.h (ira_finish_once): Delete.
2390 * ira-int.h (target_ira_int::~target_ira_int): Declare.
2391 (target_ira_int::free_ira_costs): Likewise.
2392 (target_ira_int::free_register_move_costs): Likewise.
2393 (ira_finish_costs_once): Delete.
2394 * ira.c (free_register_move_costs): Replace with...
2395 (target_ira_int::free_register_move_costs): ...this new function.
2396 (target_ira_int::~target_ira_int): Define.
2397 (ira_init): Call free_register_move_costs as a member function rather
2398 than a global function.
2399 (ira_finish_once): Delete.
2400 * ira-costs.c (free_ira_costs): Replace with...
2401 (target_ira_int::free_ira_costs): ...this new function.
2402 (ira_init_costs): Call free_ira_costs as a member function rather
2403 than a global function.
2404 (ira_finish_costs_once): Delete.
2405 * target-globals.c (target_globals::~target_globals): Call the
2406 target_ira_int destructor.
2407 * toplev.c: Include lra.h.
2408 (finalize): Call lra_finish_once rather than ira_finish_once.
2410 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
2412 * common.opt (flto-odr-type-merging): New flag.
2413 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2414 (types_same_for_odr): Likewise.
2415 (odr_subtypes_equivalent_p): Likewise.
2416 (add_type_duplicate): Do not walk type variants.
2417 (register_odr_type): New function.
2418 * ipa-utils.h (register_odr_type): Declare.
2419 (odr_type_p): New function.
2420 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2422 * doc/invoke.texi (-flto-odr-type-merging): Document.
2423 * tree.c (need_assembler_name_p): Compute ODR names when asked
2425 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2427 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
2430 * config/i386/i386.c (ix86_option_override_internal): Also turn
2431 off OPTION_MASK_ABI_X32 for -m16.
2433 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2435 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2438 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2441 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2442 Directly forward to __*_DENORM_MIN__.
2444 2014-09-11 David Malcolm <dmalcolm@redhat.com>
2446 * rtl.h (LABEL_REF_LABEL): New macro.
2448 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2449 of XEXP (, 0), where we know that we have a LABEL_REF.
2450 * cfgbuild.c (make_edges): Likewise.
2451 (purge_dead_tablejump_edges): Likewise.
2452 * cfgexpand.c (convert_debug_memory_address): Likewise.
2453 * cfgrtl.c (patch_jump_insn): Likewise.
2454 * combine.c (distribute_notes): Likewise.
2455 * cse.c (hash_rtx_cb): Likewise.
2456 (exp_equiv_p): Likewise.
2457 (fold_rtx): Likewise.
2458 (check_for_label_ref): Likewise.
2459 * cselib.c (rtx_equal_for_cselib_1): Likewise.
2460 (cselib_hash_rtx): Likewise.
2461 * emit-rtl.c (mark_label_nuses): Likewise.
2462 * explow.c (convert_memory_address_addr_space): Likewise.
2463 * final.c (output_asm_label): Likewise.
2464 (output_addr_const): Likewise.
2465 * gcse.c (add_label_notes): Likewise.
2466 * genconfig.c (walk_insn_part): Likewise.
2467 * genrecog.c (validate_pattern): Likewise.
2468 * ifcvt.c (cond_exec_get_condition): Likewise.
2469 (noce_emit_store_flag): Likewise.
2470 (noce_get_alt_condition): Likewise.
2471 (noce_get_condition): Likewise.
2472 * jump.c (maybe_propagate_label_ref): Likewise.
2473 (mark_jump_label_1): Likewise.
2474 (redirect_exp_1): Likewise.
2475 (rtx_renumbered_equal_p): Likewise.
2476 * lra-constraints.c (operands_match_p): Likewise.
2477 * reload.c (operands_match_p): Likewise.
2478 (find_reloads): Likewise.
2479 * reload1.c (set_label_offsets): Likewise.
2480 * reorg.c (get_branch_condition): Likewise.
2481 * rtl.c (rtx_equal_p_cb): Likewise.
2482 (rtx_equal_p): Likewise.
2483 * rtlanal.c (reg_mentioned_p): Likewise.
2484 (rtx_referenced_p): Likewise.
2485 (get_condition): Likewise.
2486 * sched-vis.c (print_value): Likewise.
2487 * varasm.c (const_hash_1): Likewise.
2488 (compare_constant): Likewise.
2489 (const_rtx_hash_1): Likewise.
2490 (output_constant_pool_1): Likewise.
2492 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2494 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2495 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2497 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2498 cr6_test_for_lt_reverse): Ditto.
2500 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
2503 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2505 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2507 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2508 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2509 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2510 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2513 (aarch64_fold_builtin): Remove all reinterpret cases.
2515 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2517 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2519 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2520 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2521 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2522 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2523 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2524 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2525 aarch64_reinterpretv2df<mode>): Delete.
2527 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2529 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2530 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2531 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2532 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2533 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2534 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2535 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2536 vreinterpret_u32_f64): Use cast.
2538 * config/aarch64/iterators.md (VD_RE): Delete.
2540 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2542 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2543 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2544 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2545 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2546 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2547 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2548 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2549 Replace inline assembler with __aarch64_vset_lane_any.
2551 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
2553 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2555 (vmull_high_lane_s32): Likewise.
2556 (vmull_high_lane_u16): Likewise.
2557 (vmull_high_lane_u32): Likewise.
2559 2014-09-11 Jason Merrill <jason@redhat.com>
2562 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2564 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
2567 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2568 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
2569 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2571 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2573 Anna Tikhonova <anna.tikhonova@intel.com>
2574 Ilya Tocar <ilya.tocar@intel.com>
2575 Andrey Turetskiy <andrey.turetskiy@intel.com>
2576 Ilya Verbin <ilya.verbin@intel.com>
2577 Kirill Yukhin <kirill.yukhin@intel.com>
2578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2580 * config/i386/sse.md
2581 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2582 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2583 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2585 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2586 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2588 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2590 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2591 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2592 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2593 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2594 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2595 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2596 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2597 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2599 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2601 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2602 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2603 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2605 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2607 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2608 to access removed nodes.
2610 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2612 PR tree-optimization/63186
2613 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2614 (mark_nonssa_use): Likewise.
2615 (verify_non_ssa_vars): Verify all header blocks for label
2618 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2620 Anna Tikhonova <anna.tikhonova@intel.com>
2621 Ilya Tocar <ilya.tocar@intel.com>
2622 Andrey Turetskiy <andrey.turetskiy@intel.com>
2623 Ilya Verbin <ilya.verbin@intel.com>
2624 Kirill Yukhin <kirill.yukhin@intel.com>
2625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2627 * config/i386/sse.md
2628 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2629 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2630 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2631 "<avx2_avx512f>_permvar<mode><mask_name>".
2632 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2633 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2634 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2635 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2637 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2638 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2639 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2640 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2642 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2644 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2645 V2DF, V4SF, DF, and DI modes.
2646 (vsx_fmav2df2): Likewise.
2647 (vsx_float_fix_<mode>2): Likewise.
2648 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2650 2014-09-10 Xinliang David Li <davidxl@google.com>
2653 * config/arm/arm.md (movcond_addsi): Handle case where source
2654 and target operands are the same.
2656 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2658 * final.c (this_is_asm_operands): Strengthen this variable from
2659 rtx to const rtx_insn *.
2660 * output.h (this_is_asm_operands): Likewise.
2661 * rtl-error.c (location_for_asm): Strengthen param "insn" from
2662 const_rtx to const rtx_insn *.
2663 (diagnostic_for_asm): Likewise.
2664 * rtl-error.h (error_for_asm): Likewise.
2665 (warning_for_asm): Likewise.
2667 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2669 * genextract.c (print_header): When writing out insn_extract to
2670 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2671 * recog.h (insn_extract): Strengthen the param from rtx to
2674 2014-09-10 Mike Stump <mikestump@comcast.net>
2676 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2679 2014-09-10 Martin Jambor <mjambor@suse.cz>
2681 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2682 (analyze): Do not set analyze flag if expand_thunk returns false;.
2683 (create_wrapper): Likewise.
2684 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2686 2014-09-10 Martin Jambor <mjambor@suse.cz>
2689 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2690 new decl properly. Analyze the new thunk if it is expanded.
2692 2014-09-10 Andreas Schwab <schwab@suse.de>
2694 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2695 [USED_FOR_TARGET]: Define.
2697 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
2699 * config/mips/mips.c (mips_secondary_reload_class): Handle
2702 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
2704 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2707 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2709 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2710 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2711 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2712 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2713 flag_delete_null_pointer_checks for them.
2714 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2715 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2716 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2717 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2718 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2720 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2721 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2722 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2723 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2724 * doc/invoke.texi (-fsanitize=nonnull-attribute,
2725 -fsanitize=returns-nonnull-attribute): Document.
2727 * ubsan.h (struct ubsan_mismatch_data): Removed.
2728 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2729 * ubsan.c (ubsan_source_location): For unknown locations,
2730 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2731 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2732 Allow more than one location and arbitrary extra arguments passed
2733 in ... instead of through MISMATCH pointer.
2734 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2735 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2736 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2739 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2741 Anna Tikhonova <anna.tikhonova@intel.com>
2742 Ilya Tocar <ilya.tocar@intel.com>
2743 Andrey Turetskiy <andrey.turetskiy@intel.com>
2744 Ilya Verbin <ilya.verbin@intel.com>
2745 Kirill Yukhin <kirill.yukhin@intel.com>
2746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2748 * config/i386/sse.md
2749 (define_mode_iterator VI48F): New.
2750 (define_insn "<avx512>_compress<mode>_mask"): Rename from
2751 "avx512f_compress<mode>_mask" and update mode iterator.
2752 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2753 "avx512f_compressstore<mode>_mask" and update mode iterator.
2754 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2755 "avx512f_expand<mode>_maskz" and update mode iterator.
2756 (define_insn "<avx512>_expand<mode>_mask"): Rename from
2757 "avx512f_expand<mode>_mask" and update mode iterator.
2759 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2761 Anna Tikhonova <anna.tikhonova@intel.com>
2762 Ilya Tocar <ilya.tocar@intel.com>
2763 Andrey Turetskiy <andrey.turetskiy@intel.com>
2764 Ilya Verbin <ilya.verbin@intel.com>
2765 Kirill Yukhin <kirill.yukhin@intel.com>
2766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2768 * config/i386/i386.c
2769 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2770 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2771 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2772 avx512dq_rangepv4sf_mask.
2773 * config/i386/sse.md
2774 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2776 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2777 (define_insn "reduces<mode>"): Ditto.
2778 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2780 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2781 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2782 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2784 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2786 Anna Tikhonova <anna.tikhonova@intel.com>
2787 Ilya Tocar <ilya.tocar@intel.com>
2788 Andrey Turetskiy <andrey.turetskiy@intel.com>
2789 Ilya Verbin <ilya.verbin@intel.com>
2790 Kirill Yukhin <kirill.yukhin@intel.com>
2791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2793 * config/i386/i386.c
2794 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2795 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2796 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2797 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2798 avx512vl_getmantv2df_mask.
2799 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2800 avx512f_vgetmantv4sf_round.
2801 * config/i386/sse.md
2802 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2803 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2805 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2806 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2807 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2808 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2810 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2811 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2812 update mode iterator.
2814 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2815 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2818 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2819 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2820 update mode iterator.
2821 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2822 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2825 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2826 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2828 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2829 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2830 update mode iterator.
2831 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2832 "avx512f_getmant<mode><round_saeonly_name>".
2834 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2837 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2839 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2840 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2841 Anna Tikhonova <anna.tikhonova@intel.com>
2842 Ilya Tocar <ilya.tocar@intel.com>
2843 Andrey Turetskiy <andrey.turetskiy@intel.com>
2844 Ilya Verbin <ilya.verbin@intel.com>
2845 Kirill Yukhin <kirill.yukhin@intel.com>
2846 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2848 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2849 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2850 (define_mode_iterator FMAMODE_AVX512): New.
2851 (define_mode_iterator FMAMODE): Remove conditions.
2852 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2853 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2854 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2856 (define_mode_iterator FMAMODE_NOVF512): Remove.
2857 (define_insn "*fma_fmadd_<mode>"): Rename from
2858 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2859 FMAMODE mode iterator.
2860 (define_mode_iterator VF_SF_AVX512VL): New.
2861 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2862 Use VF_SF_AVX512VL mode iterator.
2863 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2864 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2866 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2867 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2869 (define_insn "*fma_fmsub_<mode>"): Rename from
2870 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2871 FMAMODE mode iterator.
2872 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2873 Use VF_SF_AVX512VL mode iterator.
2874 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2875 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2877 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2878 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2880 (define_insn "*fma_fnmadd_<mode>"): Rename from
2881 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2882 use FMAMODE mode iterator.
2883 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2884 Use VF_SF_AVX512VL mode iterator.
2885 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2886 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2888 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2889 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2891 (define_insn "*fma_fnmsub_<mode>"): Rename from
2892 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2893 FMAMODE mode iterator.
2894 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2895 Use VF_SF_AVX512VL mode iterator.
2896 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2897 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2899 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2900 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2902 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2903 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2904 use VF_AVX512VL mode iterator.
2905 (define_insn "*fma_fmaddsub_<mode>"): Rename from
2906 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2908 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2909 Use VF_SF_AVX512VL mode iterator.
2910 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2911 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2913 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2914 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2916 (define_insn "*fma_fmsubadd_<mode>"): Rename from
2917 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2918 remove usage of subst.
2919 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2920 Use VF_SF_AVX512VL mode iterator.
2921 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2922 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2924 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2925 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2928 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2931 * calls.c (precompute_arguments): Check
2932 promoted_for_signed_and_unsigned_p and set the promoted mode.
2933 (promoted_for_signed_and_unsigned_p): New function.
2934 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2935 and set the promoted mode.
2936 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2937 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2938 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2940 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2942 * opth-gen.awk: Generate mapping from cpp message reasons to the
2943 options that enable them.
2944 * doc/options.texi (CppReason): Document.
2946 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2948 * doc/invoke.texi (Wnormalized=): Update.
2950 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2953 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2954 operands. Split off the constant operand alternative to ...
2955 (*bool<mode>3_imm): New.
2957 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2959 * rtl.h (single_set_2): Strengthen first param from const_rtx to
2960 const rtx_insn *, and move prototype to above...
2961 (single_set): ...this. Convert this from a macro to an inline
2962 function, enforcing the requirement that the param is a const
2964 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2966 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2967 Strengthen both params from rtx to rtx_insn *.
2968 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2969 Likewise; introduce locals "producer_set", "consumer_set", using
2970 them in place of "producer" and "consumer" when dealing with SET
2972 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2973 when invoking single_set in region guarded by INSN_P.
2974 (avr_out_bitop): Likewise.
2975 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2976 region guarded by GET_CODE check, using methods to strengthen
2977 local "this_insn" from rtx to rtx_insn *, and for clarity.
2978 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2979 Strengthen local "insn" from rtx to rtx_insn *.
2980 (define_insn_and_split "xload<mode>_A"): Likewise.
2981 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2983 (find_load): Likewise for return type.
2984 (workaround_speculation): Likewise for both locals named
2986 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2988 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2990 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2992 * config/h8300/h8300.c (notice_update_cc): Likewise.
2993 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2994 "insn" and "dep_insn".
2995 (exact_store_load_dependency): Likewise for both params.
2996 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2997 since this now clashes with inline function. Instead, delay
2998 calling single_set until the point where its needed, and then
2999 assign the result to "compare_set" and rework the conditional that
3001 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
3002 local "last" from rtx to rtx_insn *.
3003 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
3005 (mips_store_data_bypass_p): Likewise for both params.
3006 * config/mips/mips.c (mips_load_store_insns): Likewise for second
3008 (mips_store_data_bypass_p): Likewise for both params.
3009 (mips_orphaned_high_part_p): Likewise for param "insn".
3010 * config/mn10300/mn10300.c (extract_bundle): Likewise.
3011 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
3012 Introduce local rtx "insn2_pat".
3013 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
3015 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
3016 Introduce local rtx "set", using it in place of "insn" for the
3017 result of single_set. This appears to fix a bug, since the call
3018 to find_regno_note on a SET does nothing.
3019 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3020 params from rtx to rtx_insn *.
3021 (set_to_load_agen): Likewise.
3022 * config/s390/s390.c (s390_label_align): Likewise for local
3023 "prev_insn". Introduce new rtx locals "set" and "src", using
3024 them in place of "prev_insn" for the results of single_set
3025 and SET_SRC respectively.
3026 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3027 Introduce new rtx local "set" using in place of "jump" for the
3028 result of single_set. Use SET_SRC (set) rather than plain
3030 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3032 (noncall_uses_reg): Likewise.
3033 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3034 guarded by GET_CODE check, using its methods for clarity, and to
3035 enable strengthening local "this_insn" from rtx to rtx_insn *.
3036 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3037 "insn" from rtx to rtx_insn *.
3038 (define_expand "umulhisi3"): Likewise.
3039 (define_expand "smulsi3_highpart"): Likewise.
3040 (define_expand "umulsi3_highpart"): Likewise.
3041 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3042 local "after". Replace GET_CODE check with a dyn_cast,
3043 introducing new local rtx_sequence * "seq", using insn method for
3046 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3047 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
3048 place of "insn" once we're dealing with patterns rather than the
3050 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3051 (scan_trace): Likewise for local "elt", updating lookups within
3052 sequence to use insn method rather than element method.
3053 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3055 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3056 * ifcvt.c (noce_try_abs): Likewise for local "insn".
3057 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3058 invoking single_set.
3059 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3060 "insn" from rtx to rtx_insn *.
3061 (skip_usage_debug_insns): Likewise for return type, adding a
3063 (check_secondary_memory_needed_p): Likewise for local "insn".
3064 (inherit_reload_reg): Likewise.
3065 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3066 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3068 (store_data_bypass_p): Likewise for both params.
3069 (if_test_bypass_p): Likewise.
3070 * recog.h (store_data_bypass_p): Likewise for both params.
3071 (if_test_bypass_p): Likewise.
3072 * reload.c (find_equiv_reg): Likewise for local "where".
3073 * reorg.c (delete_jump): Likewise for param "insn".
3074 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3075 to const rtx_insn *.
3076 * store-motion.c (replace_store_insn): Likewise for param "del".
3077 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3078 and use its methods for clarity, and to strengthen local "del"
3079 from rtx to rtx_insn *.
3080 (build_store_vectors): Use insn method of "st" when calling
3081 replace_store_insn for typesafety and clarity.
3083 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3085 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3086 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3087 on how to make it legal in future.
3089 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3091 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3093 (restinsn): Likewise.
3094 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3096 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3098 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3100 (arc_hazard): Likewise for both params.
3101 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3102 checked casts to rtx_sequence * and uses of the insn method for
3104 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3105 (arc_adjust_insn_length): Likewise for param "insn".
3106 (struct insn_length_parameters_s): Likewise for first param of
3107 "get_variants" callback field.
3108 (arc_get_insn_variants): Likewise for first param and local
3109 "inner". Replace a check of GET_CODE with a dyn_cast to
3110 rtx_sequence *, using methods for type-safety and clarity.
3111 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3112 rtx_sequence * and uses of the insn method for type-safety when
3113 invoking arc_adjust_insn_length.
3114 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3116 (arm_address_offset_is_imm): Likewise.
3117 (struct tune_params): Likewise for params 1 and 3 of the
3118 "sched_adjust_cost" callback field.
3119 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3120 params 1 and 3 ("insn" and "dep").
3121 (xscale_sched_adjust_cost): Likewise.
3122 (fa726te_sched_adjust_cost): Likewise.
3123 (cortexa7_older_only): Likewise for param "insn".
3124 (cortexa7_younger): Likewise.
3125 (arm_attr_length_move_neon): Likewise.
3126 (arm_address_offset_is_imm): Likewise.
3127 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3128 * config/avr/avr.c (avr_notice_update_cc): Likewise.
3129 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3130 (workaround_speculation): Likewise for local "last_condjump".
3131 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3132 (shadow_or_blockage_p): Likewise.
3133 (get_unit_reqs): Likewise.
3134 (get_unit_operand_masks): Likewise.
3135 (c6x_registers_update): Likewise.
3136 (returning_call_p): Likewise.
3137 (can_use_callp): Likewise.
3138 (convert_to_callp): Likewise.
3139 (find_last_same_clock): Likwise for local "t".
3140 (reorg_split_calls): Likewise for local "shadow".
3141 (hwloop_pattern_reg): Likewise for param "insn".
3142 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3143 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3144 (frv_extract_membar): Likewise.
3145 (frv_optimize_membar_local): Strengthen param "last_membar" from
3146 rtx * to rtx_insn **.
3147 (frv_optimize_membar_global): Strengthen param "membar" from rtx
3149 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3151 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3152 both params from rtx to rtx_insn *.
3153 (ia64_ld_address_bypass_p): Likewise.
3154 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3156 (ia64_safe_type): Likewise.
3157 (group_barrier_needed): Likewise.
3158 (safe_group_barrier_needed): Likewise.
3159 (ia64_single_set): Likewise.
3160 (is_load_p): Likewise.
3161 (record_memory_reference): Likewise.
3162 (get_mode_no_for_insn): Likewise.
3163 (important_for_bundling_p): Likewise.
3164 (unknown_for_bundling_p): Likewise.
3165 (ia64_st_address_bypass_p): Likewise for both params.
3166 (ia64_ld_address_bypass_p): Likewise.
3167 (expand_vselect): Introduce new local rtx_insn * "insn", using it
3168 in place of rtx "x" after the emit_insn call.
3169 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3170 Strengthen param from rtx to rtx_insn *.
3171 (ix86_agi_dependent): Likewise for both params.
3172 (ix86_attr_length_immediate_default): Likewise for param 1.
3173 (ix86_attr_length_address_default): Likewise for param.
3174 (ix86_attr_length_vex_default): Likewise for param 1.
3175 * config/i386/i386.c (ix86_attr_length_immediate_default):
3176 Likewise for param "insn".
3177 (ix86_attr_length_address_default): Likewise.
3178 (ix86_attr_length_vex_default): Likewise.
3179 (ix86_agi_dependent): Likewise for both params.
3180 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3181 (vselect_insn): Likewise for this variable.
3182 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3184 (m68k_sched_attr_opy_type): Likewise.
3185 * config/m68k/m68k.c (sched_get_operand): Likewise.
3186 (sched_attr_op_type): Likewise.
3187 (m68k_sched_attr_opx_type): Likewise.
3188 (m68k_sched_attr_opy_type): Likewise.
3189 (sched_get_reg_operand): Likewise.
3190 (sched_get_mem_operand): Likewise.
3191 (m68k_sched_address_bypass_p): Likewise for both params.
3192 (sched_get_indexed_address_scale): Likewise.
3193 (m68k_sched_indexed_address_bypass_p): Likewise.
3194 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3195 (m68k_sched_indexed_address_bypass_p): Likewise.
3196 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3197 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3199 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3200 params from rtx to rtx_insn *.
3201 (mips_fmadd_bypass): Likewise.
3202 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3203 (mips_linked_madd_p): Likewise.
3204 (mips_macc_chains_last_hilo): Likewise for this variable.
3205 (mips_macc_chains_record): Likewise for param.
3206 (vr4130_last_insn): Likewise for this variable.
3207 (vr4130_swap_insns_p): Likewise for both params.
3208 (mips_ls2_variable_issue): Likewise for param.
3209 (mips_need_noat_wrapper_p): Likewise for param "insn".
3210 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3211 in place of "x" after the emit_insn.
3212 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3213 params from rtx to rtx_insn *.
3214 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3215 (pa_combine_instructions): Introduce local "par" for result of
3216 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3218 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3219 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3220 (rl78_alloc_physical_registers_op1): Likewise.
3221 (rl78_alloc_physical_registers_op2): Likewise.
3222 (rl78_alloc_physical_registers_ro1): Likewise.
3223 (rl78_alloc_physical_registers_cmp): Likewise.
3224 (rl78_alloc_physical_registers_umul): Likewise.
3225 (rl78_alloc_address_registers_macax): Likewise.
3226 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3227 * config/s390/predicates.md (execute_operation): Likewise for
3229 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3231 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3232 (addr_generation_dependency_p): Likewise for param "insn".
3233 (s390_agen_dep_p): Likewise for both params.
3234 (s390_fpload_toreg): Likewise for param "insn".
3235 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3236 * config/sh/sh.c (sh_loop_align): Likewise for param and local
3238 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3239 * config/sh/sh_treg_combine.cc
3240 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3242 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3243 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3244 "and_insn", "load", "shift".
3245 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3247 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3248 for XEXP (note, 0) of the REG_CC_SETTER note.
3249 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3250 rtx_insn *, eliminating a checked cast made redundant by this.
3251 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3253 * genattr.c (main): When writing out the prototype to
3254 const_num_delay_slots, strengthen the param from rtx to
3256 * genattrtab.c (write_const_num_delay_slots): Likewise when
3257 writing out the implementation of const_num_delay_slots.
3258 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3259 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3260 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3261 favor of new rtx locals "src" and "set" and new local rtx_insn *
3263 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3265 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3266 locals "cond", "if_then_else", "set" and new rtx_insn * locals
3268 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3269 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
3270 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
3271 the top-level scope, replacing with new more tightly-scoped rtx
3272 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3273 "new_insn", "copy_of_insn_b", and make local rtx "set" more
3275 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3277 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3279 (ira_setup_alts): Likewise for param "insn".
3280 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3281 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3283 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3284 new more-tightly scoped rtx locals "add3_insn", "insn",
3285 "add2_insn" and rtx_insn * "move_insn".
3286 * postreload-gcse.c (eliminate_partially_redundant_load): Add
3287 checked cast on result of gen_move_insn when invoking
3289 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3291 (verify_changes): Add a checked cast on "object" when invoking
3293 (extract_insn_cached): Strengthen param "insn" from rtx to
3295 (extract_constrain_insn_cached): Likewise.
3296 (extract_insn): Likewise.
3297 * recog.h (insn_invalid_p): Likewise for param 1.
3298 (recog_memoized): Likewise for param.
3299 (extract_insn): Likewise.
3300 (extract_constrain_insn_cached): Likewise.
3301 (extract_insn_cached): Likewise.
3302 * reload.c (can_reload_into): Likewise for local "test_insn".
3303 * reload.h (cleanup_subreg_operands): Likewise for param.
3304 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3305 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3306 result of emit_insn. Remove a checked cast made redundant by this
3308 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3310 * sel-sched.c (get_reg_class): Likewise.
3312 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
3313 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3315 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3316 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3318 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3320 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3322 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3323 const rtx_insn *, and from rtx to rtx_insn * for the other
3325 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3326 INSN_LOCATION, since we know INSN_P holds.
3327 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3328 (insn_file): Likewise.
3329 (insn_scope): Likewise.
3330 (insn_location): Likewise.
3332 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3333 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3334 for the result of gen_load_const_gp.
3335 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3336 param from rtx to rtx_insn *.
3337 * config/rs6000/rs6000.c (output_call): Likewise.
3338 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3339 introducing a checked cast to rtx_sequence * and use of the insn
3341 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3342 from rtx to rtx_insn *.
3343 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3344 (insn_line): Likewise.
3345 (insn_file): Likewise.
3346 (insn_location): Likewise.
3347 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3348 from rtx to rtx_insn *.
3349 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3350 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3351 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3353 * reorg.c (relax_delay_slots): Strengthen locals named "after"
3354 from rtx to rtx_insn *; use methods of "pat" for type-safety.
3356 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3358 * combine.c (try_combine): Eliminate checked cast on result of
3360 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3361 autogenerated one by strengthening the return type and params 2 and 3
3362 from rtx to rtx_insn *, and by naming the params.
3363 * gengenrtl.c (special_rtx): Add INSN to those that are
3365 * rtl.h (gen_rtx_INSN): New prototype.
3367 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3369 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3371 (no_equiv): Likewise.
3372 (update_equiv_regs): Likewise.
3373 (setup_reg_equiv): Likewise. Strengthen locals "elem",
3374 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3375 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
3377 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3378 from rtx to rtx_insn_list *.
3379 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3380 rtx_insn_list * and use methods for clarity and typesafety.
3381 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3383 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
3384 redundant check on INSN_P (insns): this cannot hold, as "insns" is
3385 an INSN_LIST, not an insn.
3386 (reverse_equiv_p): Strengthen local "insns" from rtx to
3387 rtx_insn_list * and use methods for clarity and typesafety.
3388 (contains_reloaded_insn_p): Likewise for local "list".
3390 2014-09-09 Jiong Wang <jiong.wang@arm.com>
3392 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3393 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3394 (arm_builtin_vectorized_function): Likewise.
3395 * config/arm/arm_neon_builtins.def: New macro for copysignf.
3396 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3398 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
3400 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3401 * builtins.h (default_target_builtins): Likewise.
3402 * gcse.h (default_target_gcse): Likewise.
3403 * target-globals.h (target_globals): Add a destructor. Convert
3404 void-pointer fields back to their real type and change from
3405 GTY((atomic)) to GTY((skip)).
3406 (restore_target_globals): Remove casts accordingly.
3407 * target-globals.c (save_target_globals): Use XCNEW rather than
3408 ggc_internal_cleared_alloc to allocate non-GC structures.
3409 Use ggc_cleared_alloc to allocate the target_globals structure
3411 (target_globals::~target_globals): Define.
3413 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3415 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3416 mnemonic instead of fldmfdd.
3417 * config/arm/arm.c (vfp_output_fstmd): Rename to...
3418 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
3419 Output vpush when address register is SP.
3420 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3421 (vfp_output_vstmd): ... This.
3422 * config/arm/vfp.md (push_multi_vfp): Update call to
3425 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3427 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3429 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3431 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3432 (*sqrtdf2_vfp): Likewise.
3433 (*cmpsf_vfp): Likewise.
3434 (*cmpsf_trap_vfp): Likewise.
3435 (*cmpdf_vfp): Likewise.
3436 (*cmpdf_trap_vfp): Likewise.
3438 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3440 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3441 (*truncdfsf2_vfp): Likewise.
3442 (*truncsisf2_vfp): Likewise.
3443 (*truncsidf2_vfp): Likewise.
3444 (fixuns_truncsfsi2): Likewise.
3445 (fixuns_truncdfsi2): Likewise.
3446 (*floatsisf2_vfp): Likewise.
3447 (*floatsidf2_vfp): Likewise.
3448 (floatunssisf2): Likewise.
3449 (floatunssidf2): Likewise.
3451 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3453 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3454 (*muldf3_vfp): Likewise.
3455 (*mulsf3negsf_vfp): Likewise.
3456 (*muldf3negdf_vfp): Likewise.
3457 (*mulsf3addsf_vfp): Likewise.
3458 (*muldf3adddf_vfp): Likewise.
3459 (*mulsf3subsf_vfp): Likewise.
3460 (*muldf3subdf_vfp): Likewise.
3461 (*mulsf3negsfaddsf_vfp): Likewise.
3462 (*fmuldf3negdfadddf_vfp): Likewise.
3463 (*mulsf3negsfsubsf_vfp): Likewise.
3464 (*muldf3negdfsubdf_vfp): Likewise.
3466 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3468 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3469 (*absdf2_vfp): Likewise.
3470 (*negsf2_vfp): Likewise.
3471 (*negdf2_vfp): Likewise.
3472 (*addsf3_vfp): Likewise.
3473 (*adddf3_vfp): Likewise.
3474 (*subsf3_vfp): Likewise.
3475 (*subdf3_vfp): Likewise.
3476 (*divsf3_vfp): Likewise.
3477 (*divdf3_vfp): Likewise.
3479 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3481 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3483 (arm_print_operand): Don't convert real values to decimal
3484 representation in default case.
3485 (fp_immediate_constant): Delete.
3486 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3487 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3489 (*thumb2_movsi_vfp): Likewise.
3490 (*movdi_vfp): Likewise.
3491 (*movdi_vfp_cortexa8): Likewise.
3492 (*movhf_vfp_neon): Likewise.
3493 (*movhf_vfp): Likewise.
3494 (*movsf_vfp): Likewise.
3495 (*thumb2_movsf_vfp): Likewise.
3496 (*movdf_vfp): Likewise.
3497 (*thumb2_movdf_vfp): Likewise.
3498 (*movsfcc_vfp): Likewise.
3499 (*thumb2_movsfcc_vfp): Likewise.
3500 (*movdfcc_vfp): Likewise.
3501 (*thumb2_movdfcc_vfp): Likewise.
3503 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3505 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3509 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3512 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3513 Use qualifier_immediate for last operand. Rename to...
3514 (aarch64_types_ternop_lane_qualifiers): ... This.
3515 (TYPES_QUADOP): Rename to...
3516 (TYPES_TERNOP_LANE): ... This.
3517 (aarch64_simd_expand_args): Return const0_rtx when encountering user
3518 error. Change return of 0 to return of NULL_RTX.
3519 (aarch64_crc32_expand_builtin): Likewise.
3520 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3521 ICE when expanding unknown builtin.
3522 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3523 TERNOP_LANE qualifiers.
3524 (sqdmlsl_lane): Likewise.
3525 (sqdmlal_laneq): Likewise.
3526 (sqdmlsl_laneq): Likewise.
3527 (sqdmlal2_lane): Likewise.
3528 (sqdmlsl2_lane): Likewise.
3529 (sqdmlal2_laneq): Likewise.
3530 (sqdmlsl2_laneq): Likewise.
3532 2014-09-09 Nick Clifton <nickc@redhat.com>
3534 * doc/invoke.texi (Optimization Options): Add missing @gol to the
3536 (S/390 and zSeries Options): Remove superfluous word from the
3537 description of the -mhotpatch option.
3539 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
3541 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3542 * ira.c: #include "shrink-wrap.h"
3543 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3544 * ifcvt.c: #include "shrink-wrap.h"
3545 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3547 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
3549 * common/config/picochip/picochip-common.c: Remove.
3550 * config.gcc: Remove support for picochip.
3551 * config/picochip/constraints.md: Remove.
3552 * config/picochip/dfa_space.md: Remove.
3553 * config/picochip/dfa_speed.md: Remove.
3554 * config/picochip/picochip-protos.h: Remove.
3555 * config/picochip/picochip.c: Remove.
3556 * config/picochip/picochip.h: Remove.
3557 * config/picochip/picochip.md: Remove.
3558 * config/picochip/picochip.opt: Remove.
3559 * config/picochip/predicates.md: Remove.
3560 * config/picochip/t-picochip: Remove.
3561 * doc/md.texi: Don't document picochi.
3563 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3565 * basic-block.h (control_flow_insn_p): Strengthen param from
3566 const_rtx to const rtx_insn *.
3567 * cfgbuild.c (control_flow_insn_p): Likewise.
3569 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3571 * gcse.c (modify_mem_list): Strengthen this variable from
3572 vec<rtx> * to vec<rtx_insn *> *.
3573 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3575 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3576 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3577 (record_last_mem_set_info): Strengthen param "insn" from rtx to
3579 (record_last_set_info): Likewise for local "last_set_insn".
3581 2014-09-08 DJ Delorie <dj@redhat.com>
3583 * doc/invoke.texi (MSP430 Options): Add -minrt.
3585 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3587 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
3588 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3589 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3591 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3593 (adjust_splat): New function.
3594 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3595 (dump_swap_insn_table): Add case for SH_SPLAT.
3597 2014-09-08 Richard Biener <rguenther@suse.de>
3600 * tree-inline.c (copy_loops): The source loop header should
3602 (tree_function_versioning): If loops need fixup after removing
3603 unreachable blocks fix them.
3604 * omp-low.c (simd_clone_adjust): Do not add incr block to
3605 loop under construction.
3607 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
3609 * config/aarch64/aarch64-builtins.c
3610 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3612 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3614 * config/i386/cygming.h (TF_SIZE): Remove.
3615 * config/i386/darwin.h (TF_SIZE): Remove.
3616 * config/i386/dragonfly.h (TF_SIZE): Remove.
3617 * config/i386/freebsd.h (TF_SIZE): Remove.
3618 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3619 * config/i386/openbsdelf.h (TF_SIZE): Remove.
3620 * config/i386/sol2.h (TF_SIZE): Remove.
3621 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3622 * config/ia64/linux.h (TF_SIZE): Remove.
3623 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3624 * doc/tm.texi: Regenerate.
3625 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3627 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3629 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3631 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3633 * doc/tm.texi: Regenerate.
3634 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3636 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3637 * config/cris/cris.h (__make_dp): Remove.
3639 2014-09-08 Richard Biener <rguenther@suse.de>
3642 * cfgloop.c (mark_loop_for_removal): Track former header
3644 * cfgloop.h (struct loop): Add former_header member unconditionally.
3645 * loop-init.c (fix_loop_structure): Enable bogus loop removal
3646 diagnostic unconditionally.
3648 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3651 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3652 constraint for operand0 and remove write only modifier from operand3.
3654 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
3656 PR rtl-optimization/62208
3657 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3658 rather than const0_rtx in eq/ne-xor simplifications.
3660 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3662 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3663 (arc_output_mi_thunk): Likewise.
3665 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3666 arguments to silence bogus warning.
3668 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
3671 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3673 2014-09-06 Tom de Vries <tom@codesourcery.com>
3675 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3676 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3677 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3679 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
3682 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3683 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3685 2014-09-05 Easwaran Raman <eraman@google.com>
3687 PR rtl-optimization/62146
3688 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3689 hoisted instruction unconditional.
3691 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
3694 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3695 Do not allow any_mask_operand for operands[2].
3696 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3698 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3700 * config/arc/arc.c (arc_print_operand): Use insn method of
3701 final_sequence for type-safety.
3702 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3703 "insn" from rtx to rtx_insn *.
3704 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3705 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3706 Likewise for locals "branch", "label".
3707 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3708 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
3709 (same_cmp_following_p): Likewise for locals "i2", "i3".
3710 * config/sh/sh_optimize_sett_clrt.cc
3711 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3712 param "cbranch_insn".
3713 * function.c (convert_jumps_to_returns): Likewis for local "jump".
3714 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3715 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3717 (condjump_p): Likewise.
3718 (condjump_in_parallel_p): Likewise.
3720 (any_uncondjump_p): Likewise.
3721 (any_condjump_p): Likewise.
3722 (condjump_label): Likewise.
3723 (returnjump_p): Strengthen param "insn" from rtx to
3725 (onlyjump_p): Strengthen param "insn" from const_rtx to
3727 (jump_to_label_p): Likewise.
3728 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3729 (invert_jump): Likewise.
3730 * reorg.c (simplejump_or_return_p): Add checked cast when calling
3732 (get_jump_flags): Strengthen param "insn" from rtx to
3734 (get_branch_condition): Likewise.
3735 (condition_dominates_p): Likewise.
3736 (make_return_insns): Move declaration of local "pat" earlier, to
3737 after we've handled NONJUMP_INSN_P and non-sequences, using its
3738 methods to simplify the code and for type-safety.
3739 * rtl.h (find_constant_src): Strengthen param from const_rtx to
3741 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3742 (condjump_p): Strengthen param from const_rtx to
3744 (any_condjump_p): Likewise.
3745 (any_uncondjump_p): Likewise.
3747 (condjump_label): Likewise.
3748 (simplejump_p): Likewise.
3749 (returnjump_p): Likewise.
3750 (onlyjump_p): Likewise.
3751 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3752 (invert_jump): Likewise.
3753 (condjump_in_parallel_p): Strengthen param from const_rtx to
3755 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3756 to const rtx_insn *.
3757 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3758 to const rtx_insn *.
3759 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3761 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3763 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3764 above the conditional, and convert the check on GET_CODE to a
3765 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3766 the conditional. Simplify the conditional by using methods of
3769 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3771 * haifa-sched.c (check_clobbered_conditions): Strengthen local
3772 "link" from rtx to rtx_insn_list *, and use its methods for
3773 clarity and type-safety.
3774 (toggle_cancelled_flags): Likewise.
3775 (restore_last_backtrack_point): Likewise.
3776 (queue_to_ready): Use insn method of "link" in one place.
3777 (schedule_block): Strengthen local "link" from rtx to
3778 rtx_insn_list *, and use its methods for clarity and type-safety.
3780 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3782 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3783 param "insn" from const_rtx to const rtx_insn *.
3784 (sched_get_reverse_condition_uncached): Likewise.
3785 (sched_get_condition_with_rev): Likewise.
3786 (sched_has_condition_p): Likewise.
3787 (sched_insns_conditions_mutex_p): Likewise for both params.
3788 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3789 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3790 (setup_insn_reg_uses): Move local "list" to be more tightly
3791 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
3792 its methods for clarity and type-safety.
3793 (sched_analyze_1): Strengthen local "pending" from rtx to
3794 rtx_insn_list *, and local "pending_mem" from rtx to
3795 rtx_expr_list *. Use methods of each for clarity and type-safety.
3796 (sched_analyze_2): Likewise.
3797 (sched_analyze_insn): Likewise.
3799 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3800 param from const_rtx to const rtx_insn *.
3801 (sched_insns_conditions_mutex_p): Likewise for both params.
3802 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3805 * system.h (CONST_CAST_RTX_INSN): New macro.
3807 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3809 * recog.c (peep2_attempt): Strengthen return type from rtx to
3811 (peep2_update_life): Likewise for params "last", "prev", removing
3812 a checked cast made redundant by this.
3813 (peephole2_optimize): Likewise for local "last".
3815 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3817 * basic-block.h (set_block_for_insn): Eliminate this macro in
3819 * rtl.h (set_block_for_insn): New inline function, imposing the
3820 requirement that the "insn" param is an rtx_insn *.
3822 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3824 * caller-save.c (setup_save_areas): Strengthen local "insn" from
3826 * final.c (get_call_reg_set_usage): Likewise for first param,
3827 eliminating a checked cast.
3828 * regs.h (get_call_reg_set_usage): Likewise for first param.
3829 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3830 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3831 cast, replacing references to "x" with "call_insn" where
3833 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3834 rtx_insn *, adding a checked cast.
3836 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3838 * output.h (final_scan_insn): Strengthen first param from rtx to
3841 * final.c (final_scan_insn): Likewise, renaming it back from
3842 "uncast_insn" to "insn", eliminating the checked cast.
3844 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3845 "vec" with an rtx_sequence * "seq", taking a copy of
3846 "final_sequence", and using methods of "seq" for clarity, and for
3847 type-safety in the calls to final_scan_insn.
3848 * config/mips/mips.c (mips_output_conditional_branch): Use methods
3849 of "final_sequence" for clarity, and for type-safety in the call to
3851 * config/sh/sh.c (print_slot): Strengthen param from rtx to
3852 rtx_sequence * and rename from "insn" to "seq".
3854 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3856 * jump.c (delete_related_insns): Introduce a new local "table" by
3857 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3858 get_labels method of "table" to simplify access to the labels in
3861 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3863 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3864 f_minmaxs, f_minmaxd types.
3866 2014-09-05 Richard Biener <rguenther@suse.de>
3868 * cfgloop.c (mark_loop_for_removal): Record former header
3869 when ENABLE_CHECKING.
3870 * cfgloop.h (strut loop): Add former_header member when
3872 * loop-init.c (fix_loop_structure): Sanity check loops
3873 marked for removal if they re-appeared.
3875 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3877 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3878 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3880 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3881 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3882 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3883 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3884 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3885 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3886 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3887 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3888 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3889 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3890 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3891 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3892 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3893 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3894 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3895 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3896 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3897 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3898 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3899 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3900 with int{32,16,8}_t.
3902 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3904 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3905 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3906 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3907 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3908 Remove temporary __asm__ and reimplement.
3910 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3912 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3913 handling cmge, cmgt, cmeq, cmtst.
3915 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3916 cmlt, cmgeu, cmgtu, cmtst): Remove.
3918 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3919 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3920 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3921 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3923 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3925 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3927 (aarch64_fold_builtin): Update pattern for cmtst.
3929 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3932 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3934 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3935 Switch operands, separate out more cases, refactor.
3937 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3939 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3940 argument; rename old version to...
3941 (aarch64_const_vec_all_same_in_range_p): ...this.
3942 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3944 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3946 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3948 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3949 Remove qualifier_const_pointer, update comment.
3951 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3953 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3955 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3957 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3958 varargs with pointer parameter.
3959 (aarch64_simd_expand_builtin): pass pointer into previous.
3961 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3963 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3966 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3968 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3969 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3970 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3971 Replace temporary asm with call to builtin.
3972 (vrbit_p8, vrbitq_p8): New functions.
3974 2014-09-05 Richard Biener <rguenther@suse.de>
3976 * cfgloop.c (mark_loop_for_removal): New function.
3977 * cfgloop.h (mark_loop_for_removal): Declare.
3978 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3979 (merge_blocks): Likewise.
3980 (duplicate_block): Likewise.
3981 * except.c (sjlj_emit_dispatch_table): Likewise.
3982 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3983 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3984 (thread_through_loop_header): Likewise.
3986 2014-09-05 Richard Biener <rguenther@suse.de>
3989 * fold-const.c (try_move_mult_to_index): Remove.
3990 (fold_binary_loc): Do not call it.
3991 * tree-data-ref.c (dr_analyze_indices): Strip conversions
3992 from the base object again.
3994 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3996 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3999 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4002 * config/arm/arm.md (setmem): New pattern.
4003 * config/arm/arm-protos.h (struct tune_params): New fields.
4004 (arm_gen_setmem): New prototype.
4005 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4006 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4007 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4008 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4009 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4010 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4011 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4012 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4013 (arm_const_inline_cost): New function.
4014 (arm_block_set_max_insns): New function.
4015 (arm_block_set_non_vect_profit_p): New function.
4016 (arm_block_set_vect_profit_p): New function.
4017 (arm_block_set_unaligned_vect): New function.
4018 (arm_block_set_aligned_vect): New function.
4019 (arm_block_set_unaligned_non_vect): New function.
4020 (arm_block_set_aligned_non_vect): New function.
4021 (arm_block_set_vect, arm_gen_setmem): New functions.
4023 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4025 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4027 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4029 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4031 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4033 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4035 * valtrack.h: Adjust.
4037 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4039 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4041 (emit_jump_insn_before_noloc): Likewise.
4042 (emit_call_insn_before_noloc): Likewise.
4043 (emit_label_before): Likewise.
4044 (emit_label_after): Likewise.
4045 (emit_insn_before_setloc): Likewise.
4046 (emit_jump_insn_before_setloc): Likewise.
4047 (emit_call_insn_before_setloc): Likewise.
4048 (emit_call_insn_before): Likewise.
4051 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4053 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4054 rtx_insn *, eliminating a checked cast.
4056 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4058 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4059 const_rtx to const rtx_insn *.
4060 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4063 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4065 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4066 fixup_args_size_notes.
4067 * expr.c (fixup_args_size_notes): Strengthen first two params from
4068 rtx to rtx_insn *, eliminating a checked cast.
4069 * rtl.h (fixup_args_size_notes): Strengthen first two params from
4072 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4074 * haifa-sched.c (get_ready_element): Strengthen return type from
4076 * sched-int.h (get_ready_element): Likewise.
4078 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
4081 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4082 indexed_or_indirect_operand instead of memory_operand.
4083 (floatsi<mode>2_lfiwzx_mem): Ditto.
4085 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4087 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4088 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4089 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4091 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4093 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4095 (get_last_nonnote_insn): Likewise.
4096 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4097 * resource.c (find_basic_block): Likewise.
4099 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4102 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4104 * genattr.c (main): Within the prototype of insn_latency written
4105 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4106 * genautomata.c (output_internal_maximal_insn_latency_func):
4107 Within the implementation of insn_latency written out to
4108 insn-automata.c, strengthen both params from rtx to rtx_insn *,
4109 eliminating a pair of checked casts.
4111 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4113 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4116 * rtl.h (eh_returnjump_p): Likewise.
4118 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
4120 * Makefile.in (TAGS): Handle constructs in timevar.def.
4122 2014-09-04 Guozhi Wei <carrot@google.com>
4125 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4126 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4127 it into two patterns.
4128 (move_lo_quad_internal_be_<mode>): Likewise.
4130 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4132 * doc/options.texi: Document that Var and Init are required if CPP
4134 * optc-gen.awk: Require Var and Init if CPP is given.
4135 * common.opt (Wpedantic): Use Init.
4137 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4139 * config/rs6000/rs6000.c (special_handling_values): Add
4141 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4142 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
4143 as swappable with special handling SH_EXTRACT. Remove
4144 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4146 (adjust_extract): New function.
4147 (handle_special_swappables): Add default to case statement; add
4148 case for SH_EXTRACT that calls adjust_extract.
4149 (dump_swap_insn_table): Handle SH_EXTRACT.
4151 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4153 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4154 selection of 0th memory doubleword, regardless of endianness.
4156 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4158 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4160 2014-09-04 Alan Modra <amodra@gmail.com>
4163 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4166 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
4168 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4169 * targhooks.c (default_dwarf_frame_reg_mode): New function.
4170 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4171 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4172 * doc/tm.texi: Regenerate.
4173 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4174 selection logic to default_dwarf_frame_reg_mode.
4176 2014-09-03 Marek Polacek <polacek@redhat.com>
4178 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4181 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4183 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4184 the automodified register.
4186 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4188 * output.h (get_some_local_dynamic_name): Declare.
4189 * final.c (some_local_dynamic_name): New variable.
4190 (get_some_local_dynamic_name): New function.
4191 (final_end_function): Clear some_local_dynamic_name.
4192 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4193 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4194 (print_operand): Report an error if '%&' is used inappropriately.
4195 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4196 (get_some_local_dynamic_name_1): Delete.
4197 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4198 (rs6000_get_some_local_dynamic_name): Delete.
4199 (rs6000_get_some_local_dynamic_name_1): Delete.
4200 (print_operand): Report an error if '%&' is used inappropriately.
4201 * config/s390/s390.c (machine_function): Remove some_ld_name.
4202 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4203 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4204 * config/sparc/sparc.c: Include rtl-iter.h.
4205 (machine_function): Remove some_ld_name.
4206 (sparc_print_operand): Report an error if '%&' is used inappropriately.
4207 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4209 2014-09-03 Richard Henderson <rth@redhat.com>
4211 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4212 (aarch64_popwb_pair_reg): Remove.
4213 (aarch64_set_frame_expr): Remove.
4214 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4215 the restore ops performed by the insns generated.
4216 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4217 insn. Perform the calls_eh_return addition later; do not attempt to
4218 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
4219 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4220 special markup at all. Load cfun->machine->frame.hard_fp_offset
4221 into a local variable.
4222 (aarch64_frame_pointer_required): Don't check calls_alloca.
4224 2014-09-03 Richard Biener <rguenther@suse.de>
4226 * opts.c (default_options_optimization): Adjust
4227 max-combine-insns to 2 for -Og.
4229 2014-09-03 Martin Jambor <mjambor@suse.cz>
4232 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4233 pass-trough jump functions correctly.
4235 2014-09-03 Martin Jambor <mjambor@suse.cz>
4238 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4239 created replacements in ascending order of offsets.
4240 (known_aggs_to_agg_replacement_list): Likewise.
4242 2014-09-03 Martin Liska <mliska@suse.cz>
4244 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4245 is set to set uninitialized value for vnresult.
4247 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4249 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4250 for TARGET_MUST_PASS_IN_STACK.
4252 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4254 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4255 for TARGET_ARG_PARTIAL_BYTES.
4257 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4259 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4260 instructions for varargs implementation.
4261 (nds32_expand_epilogue): Emit stack adjustment instructions for
4262 varargs implementation.
4264 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4266 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4267 optimization detection.
4269 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4271 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4273 (nds32_function_arg_advance): Deal with nameless arguments.
4274 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4275 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4276 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4278 2014-09-03 Richard Biener <rguenther@suse.de>
4280 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4281 (struct bb_bitmap_sets): Remove deferred member.
4282 (BB_DEFERRED): Remove.
4283 (defer_or_phi_translate_block): Remove.
4284 (compute_antic_aux): Remove deferring of blocks, assert
4285 proper iteration order.
4286 (compute_antic): Do not set BB_DEFERRED.
4287 (eliminate): Allocate el_avail of proper size initially.
4289 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4291 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4292 according to the value of crtl->args.pretend_args_size.
4294 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4296 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4297 varargs information.
4299 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4301 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4302 implementation for TARGET_SETUP_INCOMING_VARARGS.
4303 (nds32_strict_argument_naming): Refine comment.
4304 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4305 Define for future implementation.
4307 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
4309 * config/i386/adxintrin.h (_subborrow_u32): New.
4310 (_addcarry_u32): Ditto.
4311 (_subborrow_u64): Ditto.
4312 (_addcarry_u64): Ditto.
4313 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4315 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4316 __builtin_ia32_sbb_u64
4318 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4320 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4322 (nds32_function_arg_advance): Likewise.
4323 (nds32_init_cumulative_args): Likewise.
4324 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4325 (NDS32_FIRST_GPR_REGNUM): Define.
4326 (NDS32_LAST_GPR_REGNUM): Define.
4327 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4328 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4329 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4330 (machine_function): Use GRP-specific stuff.
4332 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4334 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4335 (nds32_expand_epilogue): Likewise.
4336 (nds32_expand_prologue_v3push): Likewise.
4337 (nds32_expand_epilogue_v3pop): Likewise.
4339 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4341 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4342 v3push/v3pop for variadic function.
4343 * config/nds32/nds32.md (prologue, epilogue): Likewise.
4345 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4347 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4348 Check rtx for varargs implementation.
4349 (nds32_output_stack_pop): Likewise.
4350 * config/nds32/nds32-protos.h: Have a rtx argument for
4351 nds32_output_stack_push and nds32_output_stack_pop.
4352 * config/nds32/nds32.md: Likewise.
4354 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4356 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4357 to check if FUNC is an interrupt service routine.
4358 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4360 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4362 * config/nds32/nds32.h (machine_function): Add some fields for variadic
4363 arguments implementation.
4365 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4367 * config/nds32/nds32-predicates.c
4368 (nds32_valid_stack_push_pop): Rename to ...
4369 (nds32_valid_stack_push_pop_p): ... this.
4370 * config/nds32/nds32-protos.h: Likewise.
4371 * config/nds32/predicates.md: Likewise.
4373 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4375 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4376 (nds32_emit_stack_v3push): ... this.
4377 (nds32_gen_stack_v3pop): Rename to ...
4378 (nds32_emit_stack_v3pop): ... this and consider CFA restore
4381 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4383 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4384 (nds32_emit_stack_push_multiple): ... this.
4385 (nds32_gen_stack_pop_multiple): Rename to ...
4386 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4389 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4392 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4393 and add a second splitter to handle the remaining cases.
4395 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4397 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4399 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4401 * cfgexpand.c (label_rtx_for_bb): Change type to
4402 hash_map<basic_block, rtx_code_label *> *.
4403 (expand_gimple_basic_block): Adjust.
4404 (pass_expand::execute): Likewise.
4406 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4408 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4409 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4410 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4411 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4412 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4413 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4414 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4417 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4419 * alloc-pool.c: Include coretypes.h.
4420 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4421 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4422 hash_set instead of htab.
4423 * ggc-page.c (in_gc): New variable.
4424 (ggc_free): Do nothing if a collection is taking place.
4425 (ggc_collect): Set in_gc appropriately.
4426 * ggc.h (gt_ggc_mx(const char *)): New function.
4427 (gt_pch_nx(const char *)): Likewise.
4428 (gt_ggc_mx(int)): Likewise.
4429 (gt_pch_nx(int)): Likewise.
4430 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4431 (hash_map::hash_entry::pch_nx): Likewise.
4432 (hash_map::hash_entry::pch_nx_helper): Likewise.
4433 (hash_map::hash_map): Adjust.
4434 (hash_map::create_ggc): New function.
4435 (gt_ggc_mx): Likewise.
4436 (gt_pch_nx): Likewise.
4437 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4438 (default_hashset_traits::pch_nx): Likewise.
4439 (hash_set::hash_entry::ggc_mx): Likewise.
4440 (hash_set::hash_entry::pch_nx): Likewise.
4441 (hash_set::hash_entry::pch_nx_helper): Likewise.
4442 (hash_set::hash_set): Adjust.
4443 (hash_set::create_ggc): New function.
4444 (hash_set::elements): Likewise.
4445 (gt_ggc_mx): Likewise.
4446 (gt_pch_nx): Likewise.
4447 * hash-table.h (hash_table::hash_table): Adjust.
4448 (hash_table::m_ggc): New member.
4449 (hash_table::~hash_table): Adjust.
4450 (hash_table::expand): Likewise.
4451 (hash_table::empty): Likewise.
4452 (gt_ggc_mx): New function.
4453 (hashtab_entry_note_pointers): Likewise.
4454 (gt_pch_nx): Likewise.
4456 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4458 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
4459 built-in definition.
4460 (XVCVUXDDP_SCALE): Likewise.
4461 (XVCVDPSXDS_SCALE): Likewise.
4462 (XVCVDPUXDS_SCALE): Likewise.
4463 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4464 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4465 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4466 VSX_BUILTIN_XVCVDPUXDS_SCALE.
4467 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4469 * config/rs6000/rs6000.c (real.h): New include.
4470 (rs6000_scale_v2df): New function.
4471 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4472 (UNSPEC_VSX_XVCVUXDDP): Likewise.
4473 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4474 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4475 (vsx_xvcvsxddp_scale): New define_expand.
4476 (vsx_xvcvsxddp): New define_insn.
4477 (vsx_xvcvuxddp_scale): New define_expand.
4478 (vsx_xvcvuxddp): New define_insn.
4479 (vsx_xvcvdpsxds_scale): New define_expand.
4480 (vsx_xvcvdpsxds): New define_insn.
4481 (vsx_xvcvdpuxds_scale): New define_expand.
4482 (vsx_xvcvdpuxds): New define_insn.
4483 * doc/extend.texi (vec_ctf): Add new prototypes.
4484 (vec_cts): Likewise.
4485 (vec_ctu): Likewise.
4486 (vec_splat): Likewise.
4487 (vec_div): Likewise.
4488 (vec_mul): Likewise.
4490 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4493 * config/arm/neon.md
4494 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4495 <v_cmp_result>): New pattern.
4496 * config/arm/iterators.md (NEON_VCVT): New int iterator.
4497 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4498 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4499 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4500 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4501 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4503 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4506 * config/arm/iterators.md (FIXUORS): New code iterator.
4507 (VCVT): New int iterator.
4508 (su_optab): New code attribute.
4510 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4512 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4514 * config/aarch64/predicates.md (aarch64_comparison_operation):
4515 New special predicate.
4516 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4517 aarch64_comparison_operation instead of matching an operator.
4518 Update operand numbers.
4519 (csinc3<mode>_insn): Likewise.
4520 (*csinv3<mode>_insn): Likewise.
4521 (*csneg3<mode>_insn): Likewise.
4522 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4523 * config/aarch64/aarch64.c (aarch64_get_condition_code):
4524 Return -1 instead of aborting on invalid condition codes.
4525 (aarch64_print_operand): Update aarch64_get_condition_code callsites
4526 to assert that the returned condition code is valid.
4527 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4529 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
4531 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4532 tree.def, and gimple.def
4534 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4535 Balaji V. Iyer <balaji.v.iyer@intel.com>
4536 Igor Zamyatin <igor.zamyatin@intel.com>
4538 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4539 (__cilkrts_cilk_for_64): Likewise.
4540 * cilk-common.c (declare_cilk_for_builtin): New function.
4541 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4542 __cilkrts_cilk_for_64 bultins.
4543 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4545 (cilk_for_32_fndecl): New define.
4546 (cilk_for_64_fndecl): Likewise.
4547 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4548 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4549 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4550 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4551 GF_OMP_FOR_COMBINED_INTO.
4552 * gimplify.c (gimplify_scan_omp_clauses): Added
4553 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4554 (gimplify_adjust_omp_clauses): Ditto.
4555 (gimplify_omp_for): Added CILK_FOR case.
4556 (gimplify_expr): Ditto.
4557 * omp-low.c: Include cilk.h.
4558 (extract_omp_for_data): Set appropriate kind for
4559 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4560 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4561 (create_omp_child_function_name): Added second argument to handle
4563 (cilk_for_check_loop_diff_type): New function.
4564 (expand_cilk_for_call): Likewise.
4565 (expand_cilk_for): Likewise.
4566 (create_omp_child_function): Set cilk_for_count; handle the cases when
4567 it is true; call create_omp_child_function_name with second argument.
4568 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4569 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4570 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4571 * tree-nested.c (convert_nonlocal_omp_clauses): Added
4572 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4573 (convert_local_omp_clauses): Ditto.
4574 * tree-pretty-print.c (dump_omp_clause): Added
4575 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4576 (dump_generic_node): Added CILK_FOR case.
4577 * tree.c (omp_clause_num_ops): New element
4578 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4579 (omp_clause_code_name): New element _Cilk_for_count_.
4580 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4581 * tree.def: Add tree code for CILK_FOR.
4583 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4585 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4586 (ppc403-compare): Add "exts with dot" case.
4587 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4588 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4589 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4590 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4591 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4592 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4593 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4594 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4595 cell-cmp-microcoded): Similarly.
4596 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4597 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4598 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4599 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4600 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4601 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4602 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4603 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4604 (power6-compare): Add "exts with dot" case.
4605 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4606 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4607 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4609 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4610 if avoiding Cell microcode.
4611 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4612 (is_cracked_insn): Ditto.
4613 (insn_must_be_first_in_group): Ditto.
4614 * config/rs6000/rs6000.md (dot): Adjust comment.
4615 (cell_micro): Handle exts+dot.
4616 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4617 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4618 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4619 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4620 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4621 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4622 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4624 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4626 * config/rs6000/rs6000.md (QHSI): Delete.
4627 (EXTQI, EXTHI, EXTSI): New mode iterators.
4628 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4629 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4630 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4631 9 anonymous instructions, and 8 splitters): Delete.
4632 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4633 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4634 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4635 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4636 *zero_extendsi<mode>2_dot2): New.
4638 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4640 * config/rs6000/rs6000.md (any_extend): New code iterator.
4641 (u, su): New code attributes.
4642 (dmode, DMODE): New mode attributes.
4643 (<su>mul<mode>3_highpart): New.
4644 (*<su>mul<mode>3_highpart): New.
4645 (<su>mulsi3_highpart_le): New.
4646 (<su>muldi3_highpart_le): New.
4647 (<su>mulsi3_highpart_64): New.
4648 (<u>mul<mode><dmode>3): New.
4649 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4651 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4654 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4656 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4657 *mulsi3_internal2, and two splitters): Delete.
4658 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4660 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4662 2014-09-02 Richard Biener <rguenther@suse.de>
4664 PR tree-optimization/62695
4665 * tree-ssa-structalias.c (find_func_clobbers): Add missing
4668 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
4671 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4673 2014-09-01 Andi Kleen <ak@linux.intel.com>
4675 * file-find.c (add_prefix_begin): Add.
4676 (do_add_prefix): Rename from add_prefix with first argument.
4677 (add_prefix): Add new wrapper.
4678 * file-find.h (add_prefix_begin): Add.
4679 * gcc-ar.c (main): Support -B option.
4681 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4683 * genemit.c: Include dumpfile.h.
4684 (gen_split): Print name of splitter function to dump file.
4686 2014-09-01 Richard Biener <rguenther@suse.de>
4688 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4689 Use stack auto_vecs for constraint expressions.
4690 (find_func_aliases_for_call): Likewise.
4691 (find_func_aliases): Likewise.
4692 (find_func_clobbers): Likewise.
4694 2014-09-01 Richard Biener <rguenther@suse.de>
4696 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4697 operands vector in most cases. Remove redundant code.
4699 2014-09-01 Olivier Hainque <hainque@adacore.com>
4701 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4702 $WIND_BASE instead of designating a harcoded arbitrary home dir.
4703 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4705 2014-09-01 Richard Biener <rguenther@suse.de>
4707 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4708 copy_reference_ops_from_call, vn_nary_op_compute_hash,
4709 vn_reference_compute_hash, vn_reference_insert): Remove.
4710 (vn_reference_lookup_call): New function.
4711 * tree-ssa-sccvn.c (vn_reference_compute_hash,
4712 copy_reference_ops_from_ref, copy_reference_ops_from_call,
4713 vn_reference_insert, vn_nary_op_compute_hash): Make static.
4714 (create_reference_ops_from_call): Remove.
4715 (vn_reference_lookup_3): Properly update shared_lookup_references.
4716 (vn_reference_lookup_pieces): Assert that we updated
4717 shared_lookup_references properly.
4718 (vn_reference_lookup): Likewise.
4719 (vn_reference_lookup_call): New function.
4720 (visit_reference_op_call): Use it. Avoid re-building the
4722 (visit_reference_op_load): Remove redundant lookup.
4723 (visit_reference_op_store): Perform special tail-merging work
4724 only when possibly doing tail-merging.
4725 (visit_use): Likewise.
4726 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4728 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4731 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4732 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4733 (find_inc): Revert 2014-08-13 change.
4735 2014-09-01 Marek Polacek <polacek@redhat.com>
4738 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4739 Change the type of V to unsigned HOST_WIDE_INT.
4741 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4743 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4744 the size of byte markers.
4745 (do_shift_rotate): Fix confusion between host, target and marker byte
4747 (verify_symbolic_number_p): Likewise.
4748 (find_bswap_or_nop_1): Likewise.
4749 (find_bswap_or_nop): Likewise.
4751 2014-09-01 Olivier Hainque <hainque@adacore.com>
4753 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4754 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4756 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4758 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4759 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4760 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4762 2014-09-01 Yury Gribov <y.gribov@samsung.com>
4766 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4767 (build_check_stmt): Likewise.
4768 (instrument_strlen_call): Likewise.
4769 (asan_expand_check_ifn): Likewise and fix types.
4770 (maybe_cast_to_ptrmode): New function.
4772 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4774 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4776 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4778 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4780 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
4782 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4783 prefix to function labels when generating fast indirect calls.
4785 2014-08-30 David Malcolm <dmalcolm@redhat.com>
4789 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4790 param back from rtx_insn * to rtx. Rename param from "label" to
4791 "label_or_return", reintroducing "label" as an rtx_insn * after
4792 we've ensured it's not a RETURN.
4793 (first_active_target_insn): Likewise for return type and param;
4794 add a checked cast to rtx_insn * once we've ensured "insn" is not
4796 (steal_delay_list_from_target): Convert param "pnew_thread" back
4797 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
4799 (own_thread_p): Convert param "thread" back from an rtx_insn * to
4800 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
4801 cast once we've established we're not dealing with a RETURN,
4802 renaming subsequent uses of "thread" to "thread_insn".
4803 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4805 (follow_jumps): Convert return type and param "label" from
4806 rtx_insn * back to rtx. Move initialization of "value" to after
4807 the handling for ANY_RETURN_P, adding a checked cast there to
4808 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
4809 rename to "this_label_or_return", reintroducing "this_label" as
4810 an rtx_insn * once we've handled the case where it could be an
4812 (fill_slots_from_thread): Rename param "thread" to
4813 "thread_or_return", converting from an rtx_insn * back to an rtx.
4814 Reintroduce name "thread" as an rtx_insn * local with a checked
4815 cast once we've handled the case of it being an ANY_RETURN_P.
4816 Convert local "new_thread" from an rtx_insn * back to an rtx.
4817 Add a checked cast when assigning to "trial" from "new_thread".
4818 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
4819 checked cast to rtx_insn * from "new_thread" when invoking
4821 (fill_eager_delay_slots): Convert locals "target_label",
4822 "insn_at_target" from rtx_insn * back to rtx.
4823 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4824 (relax_delay_slots): Convert locals "trial", "target_label" from
4825 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
4826 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
4827 invoking update_block.
4828 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4829 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4831 * resource.h (mark_target_live_regs): Undo erroneous conversion
4832 of second param of r214693, converting it back from rtx_insn * to
4833 rtx, since it could be a RETURN.
4835 * resource.c (find_dead_or_set_registers): Similarly, convert
4836 param "jump_target" back from an rtx_insn ** to an rtx *, as we
4837 could be writing back a RETURN. Rename local rtx_insn * "next" to
4838 "next_insn", and introduce "lab_or_return" as a local rtx,
4839 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4840 (mark_target_live_regs): Undo erroneous conversion
4841 of second param of r214693, converting it back from rtx_insn * to
4842 rtx, since it could be a RETURN. Rename it from "target" to
4843 "target_maybe_return", reintroducing the name "target" as a local
4844 rtx_insn * with a checked cast, after we've handled the case of
4847 2014-08-29 DJ Delorie <dj@redhat.com>
4849 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4850 pointer size up to a power of two.
4851 * defaults.h (DWARF2_ADDR_SIZE): Round up.
4852 (POINTER_SIZE_UNITS): New, rounded up value.
4853 * dwarf2asm.c (size_of_encoded_value): Use it.
4854 (dw2_output_indirect_constant_1): Likewise.
4855 * expmed.c (init_expmed_one_conv): We now know the sizes of
4857 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4858 * optabs.c (expand_float): Use precision, not size.
4859 (expand_fix): Likewise.
4860 * simplify-rtx (simplify_unary_operation_1): Likewise.
4861 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4862 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4863 (default_assemble_integer) Likewise.
4864 (dump_tm_clone_pairs): Likewise.
4865 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4866 * var-tracking.c (adjust_mems): Allow partial-int modes also.
4867 (prepare_call_arguments): Likewise.
4868 * stor-layout.c (finalize_type_size): Preserve precision.
4869 (layout_type): Use precision, not size.
4871 * expr.c (convert_move): If the target has an explicit converter,
4874 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4876 * gdbinit.in: Skip various inline functions in rtl.h when
4879 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
4882 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4884 2014-08-29 Richard Biener <rguenther@suse.de>
4886 PR tree-optimization/62291
4887 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4888 exactly the vector size needed and use quick_push.
4889 (phi_translate_1): Adjust comment.
4890 (valid_in_sets): Remove block argument and remove pointless
4892 (dependent_clean): Adjust for removal of block argument.
4894 (compute_antic_aux): Likewise.
4895 (compute_partial_antic_aux): Likewise.
4897 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4898 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4899 Anna Tikhonova <anna.tikhonova@intel.com>
4900 Ilya Tocar <ilya.tocar@intel.com>
4901 Andrey Turetskiy <andrey.turetskiy@intel.com>
4902 Ilya Verbin <ilya.verbin@intel.com>
4903 Kirill Yukhin <kirill.yukhin@intel.com>
4904 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4906 * config/i386/sse.md
4907 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4908 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4909 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4910 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4912 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4914 Anna Tikhonova <anna.tikhonova@intel.com>
4915 Ilya Tocar <ilya.tocar@intel.com>
4916 Andrey Turetskiy <andrey.turetskiy@intel.com>
4917 Ilya Verbin <ilya.verbin@intel.com>
4918 Kirill Yukhin <kirill.yukhin@intel.com>
4919 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4921 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4922 * config/i386/sse.md
4923 (define_mode_iterator VI4_128_8_256): New.
4924 (define_mode_iterator VI2_128_4_256): Ditto.
4925 (define_mode_iterator PMOV_DST_MODE): Rename into
4926 (define_mode_iterator PMOV_DST_MODE_1): this.
4927 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4928 Use PMOV_DST_MODE_1 mode iterator.
4929 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4931 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4933 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4934 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4935 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4936 (define_mode_iterator PMOV_DST_MODE_2): New.
4937 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4938 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4939 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4941 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4942 (define_mode_attr pmov_dst_3): Ditto.
4943 (define_mode_attr pmov_dst_zeroed_3): Ditto.
4944 (define_mode_attr pmov_suff_3): Ditto.
4945 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4946 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4947 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4948 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4949 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4950 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4951 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4952 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4953 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4954 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4955 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4956 (define_mode_attr pmov_dst_4): Ditto.
4957 (define_mode_attr pmov_dst_zeroed_4): Ditto.
4958 (define_mode_attr pmov_suff_4): Ditto.
4959 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4960 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4961 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4962 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4963 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4964 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4965 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4966 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4967 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4968 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4969 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4971 2014-08-29 Richard Biener <rguenther@suse.de>
4973 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4974 NON_LVALUE_EXPR in gimple.
4976 2014-08-29 Richard Biener <rguenther@suse.de>
4979 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4980 from previous refactoring.
4981 (gimple_fold_builtin_strncpy): Likewise.
4983 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4986 * function.c (assign_parm_setup_reg): Remove erroneous checked
4987 cast to rtx_insn * on result of gen_extend_insn in favor of
4988 introducing a new local rtx "pat".
4990 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4992 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4994 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4996 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4998 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4999 (next_insn): Likewise.
5000 * emit-rtl.c (next_insn): Likewise.
5001 (previous_insn): Likewise.
5002 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
5003 "insn" and "next" from rtx to rtx_insn *.
5004 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
5005 "insn", "insn1", "vliw_start", "prologue_end_note",
5006 "last_insn_in_packet".
5008 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5010 * shrink-wrap.h (active_insn_between): Strengthen both params from
5012 * function.c (active_insn_between): Likewise.
5014 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5016 * genattr.c (main): When writing out insn-attr.h, strengthen param
5017 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
5018 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5019 writing out the definition of dfa_clear_single_insn_cache to the
5020 generated insn-automata.c
5022 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5024 * resource.h (clear_hashed_info_for_insn): Strengthen param from
5026 (incr_ticks_for_insn): Likewise.
5027 (init_resource_info): Likewise.
5029 * resource.c (init_resource_info): Likewise.
5030 (clear_hashed_info_for_insn): Likewise.
5031 (incr_ticks_for_insn): Likewise.
5033 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5035 (steal_delay_list_from_target): Use methods of "seq".
5036 (try_merge_delay_insns): Use methods of "merged_insns".
5037 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5038 (reorg_redirect_jump): Likewise for param "jump".
5040 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5042 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5044 * config/s390/s390.c (s390_split_branches): Eliminate top-level
5045 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5047 (s390_mainpool_finish): In three places, split out a local rtx
5048 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5049 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
5050 and split another local rtx "insn" out into rtx "pat" and
5052 * config/sh/sh.c (output_branchy_insn): Rather than working
5053 directly on operands[9], introduce local rtx_code_label *
5054 variables named "lab" in two places, working on them, and then
5055 assigning them to operands[9], so that the intervening operations
5056 are known by the type system to be on insns.
5058 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5060 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5063 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5064 in invocation of INSN_HAS_LOCATION.
5066 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5068 * config/rs6000/altivec.h (vec_xl): New #define.
5069 (vec_xst): Likewise.
5070 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5071 (XXSPLTD_V2DI): Likewise.
5072 (DIV_V2DI): Likewise.
5073 (UDIV_V2DI): Likewise.
5074 (MUL_V2DI): Likewise.
5075 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5076 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5077 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5078 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5079 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5080 (UNSPEC_VSX_DIVSD): Likewise.
5081 (UNSPEC_VSX_DIVUD): Likewise.
5082 (UNSPEC_VSX_MULSD): Likewise.
5083 (vsx_mul_v2di): New insn-and-split.
5084 (vsx_div_v2di): Likewise.
5085 (vsx_udiv_v2di): Likewise.
5086 (vsx_xxspltd_<mode>): New insn.
5088 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5090 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5092 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5093 (NEXT_INSN): Likewise.
5094 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5095 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5097 (no_labels_between_p): Likewise for both params.
5099 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5100 cast when using NEXT_INSN on operands[2].
5101 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5102 "insn" from rtx to rtx_insn *, adding a checked cast.
5103 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5105 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5107 (arc_text_label): Likewise for param "insn".
5108 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5110 (arc_ccfsm_record_condition): Likewise for param "jump".
5111 (arc_text_label): Likewise for local "label".
5112 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5113 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5114 a method for typesafety. Add a checked cast.
5115 * config/arc/constraints.md (Clb): Add a checked cast when getting
5116 the CODE_LABEL from a LABEL_REF.
5117 * config/arm/arm.c (require_pic_register): Strengthen locals
5118 "seq", "insn" from rtx to rtx_insn *.
5119 (create_fix_barrier): Likewise for locals "selected", "next".
5120 (thumb1_reorg): Likewise for locals "prev", "insn".
5121 (arm_expand_prologue): Likewise for local "last".
5122 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5124 (thumb2_output_casesi): Likewise for operands[2].
5125 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5126 strengthen local "insn" from rtx to rtx_insn *.
5127 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5128 type and param "insn".
5129 (find_prev_insn_start): Likewise.
5130 (hwloop_optimize): Likewise for locals "insn", "last_insn",
5132 (gen_one_bundle): Likewise for loal "t".
5133 (find_load): Likewise for param "insn".
5134 (workaround_speculation): Likewise for locals "insn", "next",
5135 "target", "next_tgt".
5136 * config/c6x/c6x.c (assign_reservations): Likewise for both params
5137 and for locals "insn", "within", "last".
5138 (count_unit_reqs): Likewise for params "head", "tail" and local
5140 (try_rename_operands): Likewise for params "head", "tail".
5141 (reshuffle_units): Likewise for locals "head", "tail", "insn".
5142 (struct c6x_sched_context): Likewise for fields
5143 "last_scheduled_insn", "last_scheduled_iter0".
5144 (init_sched_state): Replace NULL_RTX with NULL.
5145 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5147 (undo_split_delayed_nonbranch): Likewise for param and for local
5149 (conditionalize_after_sched): Likewise for local "insn".
5150 (bb_earliest_end_cycle): Likewise.
5151 (filter_insns_above): Likewise for locals "insn", "next".
5152 (hwloop_optimize): Remove redundant checked cast.
5153 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5154 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5156 (cris_simple_epilogue): Likewise.
5157 (cris_expand_prologue): Likewise.
5158 (cris_expand_epilogue): Likewise.
5159 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5160 local "insn" from rtx to rtx_insn *.
5161 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5162 (struct frv_packet_group): Likewise for the elements within array
5163 fields "insns", "sorted", and for field "nop".
5164 (frv_packet): Likewise for the elements within array field
5166 (frv_add_insn_to_packet): Likewise for param "insn".
5167 (frv_insert_nop_in_packet): Likewise for param "insn" and local
5169 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5170 (frv_sort_insn_group_1): Likewise for local "insn".
5171 (frv_optimize_membar_local): Likewise.
5172 (frv_align_label): Likewise for locals "x", "last", "barrier",
5174 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5176 (ia64_sched_init): Likewise for local "insn".
5177 (scheduled_good_insn): Likewise for param "last".
5178 (struct _ia64_sched_context): Likewise for field
5179 "last_scheduled_insn".
5180 (ia64_init_sched_context): Replace NULL_RTX with NULL.
5181 (struct bundle_state): Likewise for field "insn".
5182 (issue_nops_and_insn): Likewise for param "insn".
5183 (get_next_important_insn): Likewise for return type and both
5185 (ia64_add_bundle_selector_before): Likewise for param "insn".
5186 (bundling): Likewise for params "prev_head_insn", "tail" and
5187 locals "insn", "next_insn", "b". Eliminate top-level local rtx
5188 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5189 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5190 Strengthen final param from rtx to rtx_insn *.
5191 (iq2000_move_1word): Likewise for second param.
5192 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5193 param "cur_insn" and local "next_insn".
5194 (iq2000_move_1word): Likewise for param "insn".
5195 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5196 casts when using NEXT_INSN on operands[1].
5197 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5198 "insn" from rtx to rtx_insn *.
5199 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5200 "x", introducing local rtx_insn * "insn" for when working with the
5201 CODE_LABEL of the LABEL_REF.
5202 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5204 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5206 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5208 (conditionalize_block): Likewise for return type and param.
5209 (mcore_is_dead): Likewise for param "first" and local "insn".
5210 (emit_new_cond_insn): Likewise for return type.
5211 (conditionalize_block): Likewise for return type, param, and
5212 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5214 (conditionalize_optimization): Likewise for local "insn".
5215 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5217 * config/microblaze/microblaze.md: Add checked casts when using
5219 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5220 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5221 and rtx_insn * "insn".
5222 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5223 checked cast when using NEXT_INSN on operands[2].
5224 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5225 local "insn" from rtx to rtx_insn *.
5226 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5228 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5229 Add a checked cast when using NEXT_INSN on operands[1].
5230 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5232 (pa_output_cbranch): Likewise for final param.
5233 (pa_output_lbranch): Likewise for second param.
5234 (pa_output_bb): Likewise for third param.
5235 (pa_output_bvb): Likewise.
5236 (pa_output_dbra): Likewise for second param.
5237 (pa_output_movb): Likewise.
5238 (pa_output_parallel_movb): Likewise.
5239 (pa_output_parallel_addb): Likewise.
5240 (pa_output_millicode_call): Likewise for first param.
5241 (pa_output_mul_insn): Likewise for second param.
5242 (pa_output_div_insn): Likewise for third param.
5243 (pa_output_mod_insn): Likewise for second param.
5244 (pa_jump_in_call_delay): Likewise for param.
5245 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5246 (pa_output_div_insn): Likewise.
5247 (pa_output_mod_insn): Likewise.
5248 (pa_output_cbranch): Likewise.
5249 (pa_output_lbranch): Likewise.
5250 (pa_output_bb): Likewise.
5251 (pa_output_bvb): Likewise.
5252 (pa_output_dbra): Likewise.
5253 (pa_output_movb): Likewise.
5254 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5255 to simplify and for typesafety.
5256 (pa_output_call): Use method of rtx_sequence *.
5257 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5258 (pa_jump_in_call_delay): Likewise.
5259 (pa_output_parallel_movb): Likewise.
5260 (pa_output_parallel_addb): Likewise.
5261 (pa_following_call): Likewise.
5262 (pa_combine_instructions): Likewise for locals "anchor",
5264 (pa_can_combine_p): Likewise for params "anchor", "floater" and
5265 locals "start", "end".
5266 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5267 param "insn" and local "local_insn".
5268 (picochip_final_prescan_insn): Likewise for local "local_insn".
5269 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5271 (uses_TOC): Likewise.
5272 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5273 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5274 splitting out to more tightly-scoped locals, 3 as rtx and one as
5276 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5278 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5280 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5282 (fixup_addr_diff_vecs): Likewise.
5283 (reg_unused_after): Likewise for param 2.
5284 (sh_can_redirect_branch): Likewise for both params.
5285 (check_use_sfunc_addr): Likewise for param 1.
5286 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5287 (find_barrier): Likewise for local "last_got".
5288 (gen_block_redirect): Likewise for return type, param "jump" and
5289 locals "prev", "scan", "next", "insn".
5290 (struct far_branch): Likewise for fields "near_label",
5291 "insert_place", "far_label".
5292 (gen_far_branch): Likewise for local "jump".
5293 (fixup_addr_diff_vecs): Likewise for param "first" and locals
5295 (barrier_align): Likewise for param and for locals "prev", "x".
5296 Introduce local rtx_sequence * "prev_seq" and use insn method for
5297 typesafety and clarity.
5298 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5299 (get_dest_uid): Likewise for local "dest".
5300 (split_branches): Likewise for locals "next", "beyond", "label",
5301 "block", "far_label". Add checked casts when assigning to
5302 bp->far_label and "far_label".
5303 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5304 (sequence_insn_p): Likewise.
5305 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
5306 more loop-scoped rtx "insn" when walking LABEL_REFS.
5307 (sh_can_redirect_branch): Strengthen both params from rtx to
5309 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
5310 new local rtx_sequence * "seq" via a dyn_cast, and use a method
5311 for clarity and typesafety.
5312 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5313 "insn" from rtx to rtx_insn *.
5314 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5315 when using NEXT_INSN on the CODE_LABEL in operands[2].
5316 (define_insn "casesi_worker_2"): Likewise.
5317 (define_insn "casesi_shift_media"): Likewise.
5318 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5320 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5321 Strengthen field "insn" from rtx to rtx_insn *.
5322 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5323 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5324 param "start_insn" and local "start_insn".
5325 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5327 (find_set_of_reg_bb): Likewise for param "insn".
5328 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5329 (trace_reg_uses): Likewise for param "start_insn".
5330 (sh_treg_combine::cbranch_trace): Likewise for field
5332 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5334 (sh_treg_combine::record_set_of_reg): Likewise for param
5335 "start_insn" and local "i".
5336 (sh_treg_combine::can_remove_cstore): Likewise for local
5338 (sh_treg_combine::try_optimize_cbranch): Likewise for param
5340 (sh_treg_combine::execute): Likewise for local "i".
5341 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5343 (sparc_check_64): Likewise for second param.
5344 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5345 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
5346 dyn_cast, using its insn method for typesafety and clarity.
5347 (empty_delay_slot): Strengthen param "insn" from rtx to
5349 (set_extends): Likewise.
5350 (sparc_check_64): Likewise.
5351 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5352 for locals "seq", "last_insn".
5353 (combine_bnp): Likewise for param "insn".
5354 (xstormy16_reorg): Likewise for local "insn".
5355 * config/v850/v850.c (substitute_ep_register): Likewise for params
5356 "first_insn", "last_insn" and local "insn".
5357 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5358 elements of "regs" array, and local "insn".
5359 * except.c (emit_note_eh_region_end): Likewise for param "insn".
5360 * final.c (final_sequence): Strengthen this global from rtx to
5362 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5364 (final_scan_insn): Update assignment to "final_sequence" to be
5365 from "seq", the cast version of "body", for type-safety.
5366 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5367 "insns" from rtx to rtx_insn *.
5368 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5369 * genattr.c (main): When writing out generated insn-attr.h,
5370 strengthen params 1 and 3 of eligible_for_delay,
5371 eligible_for_annul_true, eligible_for_annul_false from rtx to
5373 * genattrtab.c (write_eligible_delay): Likewise when writing out
5374 generated insn-attrtab.c; also local "insn" the generated
5376 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5378 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5379 "start_label" from rtx to rtx_insn *.
5380 * ira.c (decrease_live_ranges_number): Likewise for local "p".
5381 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5382 "insns" and local "insn".
5383 (validate_equiv_mem): Likewise for param "start" and local "insn".
5384 (memref_used_between_p): Likewise for params "start", "end" and
5386 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5388 * loop-doloop.c (doloop_optimize): Within region guarded by
5389 INSN_P (doloop_pat), introduce a new local rtx_insn *
5390 "doloop_insn" via a checked cast, and use it for typesafety,
5391 eventually writing the value back into doloop_pat.
5392 * output.h (final_sequence): Strengthen this global from rtx to
5394 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5395 reintroducing "insn" as an rtx_insn * via a checked cast.
5396 Strengthen param "attempt" and local "new_insn"from rtx to
5398 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5400 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5401 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5402 "p" in favor of more tightly-scoped replacements, sometimes rtx
5403 and sometimes rtx_insn *, as appropriate.
5404 (delete_output_reload): Eliminate top-level rtx "i1", splitting
5405 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5406 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
5407 local "trial" from rtx to rtx_insn *.
5408 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5409 rtx to rtx_insn *. Strenghten local "pat" from rtx to
5410 rtx_sequence * and use methods for clarity and typesafety.
5411 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5412 rtx to rtx_insn *. Strenghten local "li" from rtx to
5413 rtx_insn_list * and use its methods for clarity and typesafety.
5414 (steal_delay_list_from_target): Strengthen param "insn" from rtx
5416 (steal_delay_list_from_fallthrough): Likewise.
5417 (try_merge_delay_insns): Likewise for param "thread" and locals
5418 "trial", "next_trial", "delay_insn".
5419 (redundant_insn): Likewise for param "target" and local "trial".
5420 (own_thread_p): Likewise for param "thread" and locals
5421 "active_insn", "insn".
5422 (get_label_before): Likewise for param "insn".
5423 (fill_simple_delay_slots): Likewise for local "new_label"; use
5424 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5425 (label_before_next_insn): Strengthen return type and local "insn"
5426 from rtx to rtx_insn *.
5427 (relax_delay_slots): Likewise for locals "other", "tmp".
5428 (make_return_insns): Likewise for param "first" and locals "insn",
5429 "jump_insn", "prev". Move declaration of "pat" to its assignment
5430 and strengthen from rtx to rtx_sequence *. Use its methods for
5431 clarity and typesafety.
5432 * rtlanal.c (no_labels_between_p): Strengthen params from
5433 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
5435 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5436 from const_rtx to const rtx_insn *.
5437 (reg_set_between_p): Rename param "from_insn" to
5438 "uncast_from_insn", and reintroduce "from_insn" as a
5439 const rtx_insn * via a checked cast.
5440 (modified_between_p): Likewise for param "start" as "uncast_start".
5441 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5442 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5443 "tmp", head" from rtx to rtx_insn *.
5444 (recompute_rev_top_order): Likewise for local "insn".
5445 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5446 * store-motion.c (build_store_vectors): Likewise for local "insn".
5447 Strengthen local "st" from rtx to rtx_insn_list * and use methods
5448 for clarity and typesafety.
5449 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5451 (computation_cost): Likewise for local "seq".
5452 (get_address_cost): Likewise.
5454 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5456 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5458 (label_is_jump_target_p): Likewise for second param.
5460 * rtlanal.c (tablejump_p): Likewise for param "insn".
5461 (label_is_jump_target_p): Likewise for param "jump_insn".
5463 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5465 * rtl.h (find_first_parameter_load): Strengthen return type and
5466 both params from rtx to rtx_insn *.
5467 * rtlanal.c (find_first_parameter_load): Strengthen return type,
5468 both params and locals "before", "first_set" from rtx to
5469 rtx_insn *. Remove now-redundant cast.
5470 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5472 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5474 * rtl.h (find_last_value): Delete.
5475 * rtlanal.c (find_last_value): Delete.
5477 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5479 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5480 from rtx to rtx_insn *.
5481 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5482 rtx "note" with new local rtx_insn * "new_head" when calculating
5483 head insn of new basic block.
5484 * combine.c (combine_split_insns): Strengthen return type and local
5485 "ret" from rtx to rtx_insn *.
5486 (likely_spilled_retval_p): Likewise for locals "use" and "p".
5487 (try_combine): Eliminate local "m_split", splitting into new
5488 locals "m_split_insn" and "m_split_pat".
5489 (find_split_point): Strengthen local "seq" from rtx into
5491 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5492 locals "label", "branch".
5493 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5495 (define_expand "umulsi3_highpart"): Likewise for local "insn".
5496 * dse.c (note_add_store_info): Likewise for fields "first",
5498 (note_add_store): Likewise for local "insn".
5499 (emit_inc_dec_insn_before): Likewise for locals "insn",
5501 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5502 (replace_read): Likewise for locals "insns", "this_insn".
5503 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5504 (notice_eh_throw): Likewise for param "insn".
5505 (before_next_cfi_note): Likewise for return type, param, and local
5507 (connect_traces): Likewise for local "note".
5508 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5509 (verify_rtl_sharing): Likewise.
5510 (unshare_all_rtl_in_chain): Likewise for param "insn".
5511 (get_first_nonnote_insn): Likewise for local "insn".
5512 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
5513 "seq" and use its methods to clarify things.
5514 (next_insn): Strengthen return type from rtx to rtx_insn *.
5515 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5516 local rtx_insn * using a checked cast, dropping a checked cast
5517 made redundant by this change. Use a cast to and method of
5518 rtx_sequence to clarify the code.
5519 (previous_insn): Rename param "insn" to "uncast_insn" and
5520 reintroduce "insn" as a local rtx_insn * using a checked cast,
5521 dropping a checked cast made redundant by this change. Use a cast
5522 to and method of rtx_sequence to clarify the code.
5523 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5524 reintroduce "insn" as a local rtx_insn * using a checked cast,
5525 dropping a checked cast made redundant by this change.
5526 (next_nonnote_insn_bb): Likewise.
5527 (prev_nonnote_insn): Likewise.
5528 (prev_nonnote_insn_bb): Likewise.
5529 (next_nondebug_insn): Likewise.
5530 (prev_nondebug_insn): Likewise.
5531 (next_nonnote_nondebug_insn): Likewise.
5532 (prev_nonnote_nondebug_insn): Likewise.
5533 (next_real_insn): Likewise.
5534 (prev_real_insn): Likewise.
5535 (next_active_insn): Likewise.
5536 (prev_active_insn): Likewise.
5537 (next_cc0_user): Likewise. Use rtx_sequence and a method for
5539 (prev_cc0_setter): Likewise.
5540 (try_split): Rename param "trial" to "uncast_trial" and
5541 reintroduce "insn" as a local rtx_insn * using a checked cast,
5542 dropping checked casts made redundant by this change.
5543 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5545 (remove_insn): Rename param "insn" to "uncast_insn" and
5546 reintroduce "insn" as a local rtx_insn * using a checked cast.
5547 (emit_pattern_after_setloc): Likewise for param "after", as
5549 (emit_pattern_after): Likewise. Strengthen local "prev" from
5551 (emit_pattern_before_setloc): Rename param "before" to
5552 "uncast_before" and reintroduce "before" as a local rtx_insn *
5553 using a checked cast. Strengthen locals "first", "last" from
5555 (emit_pattern_before): Likewise rename/cast param "before" to
5556 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5557 * except.c (copy_reg_eh_region_note_forward): Strengthen param
5558 "first" and local "insn" from rtx to rtx_insn *.
5559 (copy_reg_eh_region_note_backward): Likewise for param "last"
5561 * expr.c (fixup_args_size_notes): Rename param "last" to
5562 "uncast_last" and reintroduce "last" as a local rtx_insn *
5563 using a checked cast. Strengthen local "insn" from rtx to
5565 * function.c (set_insn_locations): Strengthen param "insn" from
5567 (record_insns): Likewise for param "insns" and local "tmp".
5568 (active_insn_between): Rename param "tail" to
5569 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5570 using a checked cast.
5571 (thread_prologue_and_epilogue_insns): Split out top-level local
5572 rtx "seq" into three different rtx_insn * locals. Strengthen
5573 local "prologue_seq" from rtx to rtx_insn *.
5574 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5575 from rtx to rtx_insn *.
5576 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5577 (priority): Likewise for locals "prev_first", "twin".
5578 (setup_insn_max_reg_pressure): Likewise for param "after".
5579 (sched_setup_bb_reg_pressure_info): Likewise.
5580 (no_real_insns_p): Strengthen params from const_rtx to
5582 (schedule_block): Strengthen local "next_tail" from rtx to
5584 * ifcvt.c (find_active_insn_before): Strengthen return type and
5585 param "insn" from rtx to rtx_insn *.
5586 (find_active_insn_after): Likewise.
5587 (cond_exec_process_insns): Likewise for param "start" and local "insn".
5588 (cond_exec_process_if_block): Likewise for locals "then_start",
5589 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5590 (noce_process_if_block): Likewise for local "jump".
5591 (merge_if_block): Likewise for two locals named "end".
5592 (cond_exec_find_if_block): Likewise for local "last_insn".
5593 * jump.c (delete_related_insns): Rename param "insn" to
5594 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5595 checked cast. Strengthen local "p" from rtx to rtx_insn *.
5596 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5598 (split_reg): Likewise.
5599 * lra.c (lra_process_new_insns): Likewise.
5600 * modulo-sched.c (permute_partial_schedule): Strengthen param
5601 "last" from rtx to rtx_insn *.
5602 * optabs.c (add_equal_note): Likewise for param "insns" and local
5604 (expand_binop_directly): Add checked casts to rtx_insn * within
5605 NEXT_INSN (pat) uses.
5606 (expand_unop_direct): Likewise.
5607 (maybe_emit_unop_insn): Likewise.
5608 * recog.c (peep2_attempt): Strengthen locals "last",
5609 "before_try", "x" from rtx to rtx_insn *.
5610 * reorg.c (optimize_skip): Strengthen return type and local
5611 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
5612 and locals "trial", "next_trial" from rtx to rtx_insn *.
5613 * resource.c (next_insn_no_annul): Strengthen return type and
5614 param "insn" from rtx to rtx_insn *. Use a cast to and method of
5615 rtx_sequence to clarify the code.
5616 (mark_referenced_resources): Add a checked cast to rtx_insn *
5617 within PREV_INSN (x).
5618 (find_dead_or_set_registers): Strengthen return type, param
5619 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5620 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
5622 (mark_target_live_regs): Strengthen params "insns" and "target",
5623 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5624 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
5626 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5627 from rtx to rtx_insn *.
5628 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5629 from rtx to rtx_insn *.
5630 (copy_reg_eh_region_note_backward): Likewise.
5631 (unshare_all_rtl_in_chain): Likewise for sole param.
5632 (dump_rtl_slim): Strengthen second and third params from const_rtx
5633 to const rtx_insn *.
5634 * sched-deps.c (sched_free_deps): Strengthen params "head" and
5635 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5636 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5637 "next_tail" from rtx to rtx_insn *.
5638 (begin_move_insn): Likewise for local "next".
5639 * sched-int.h (sched_free_deps): Likewise for first and second
5641 (no_real_insns_p): Strengthen both params from const_rtx to
5643 (sched_setup_bb_reg_pressure_info): Strengthen second params from
5645 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5647 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5648 and locals "insn", "tail" from const_rtx to const rtx_insn *.
5649 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5651 (debug_rtl_slim): Strengthen params "first" and "last" from
5652 const_rtx to const rtx_insn *.
5653 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5654 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5655 (convert_to_simple_return): Likewise for param "returnjump".
5656 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5658 (convert_to_simple_return): Likewise for param "returnjump".
5659 * valtrack.c (propagate_for_debug): Likewise for params
5661 * valtrack.h (propagate_for_debug): Likewise for second param.
5663 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5665 * output.h (insn_current_reference_address): Strengthen param
5666 from rtx to rtx_insn *.
5667 * final.c (insn_current_reference_address): Likewise.
5669 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5671 * basic-block.h (inside_basic_block_p): Strengthen param from
5672 const_rtx to const rtx_insn *.
5673 * cfgbuild.c (inside_basic_block_p): Likewise.
5675 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5677 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5679 (get_trace_info): Likewise for param "insn".
5680 (save_point_p): Likewise.
5681 (maybe_record_trace_start): Likewise for both params.
5682 (maybe_record_trace_start_abnormal): Likewise.
5683 (create_trace_edges): Likewise for sole param and for three of the
5685 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5686 to rtx_insn *, and update a call to pat->element to pat->insn.
5688 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5690 * function.h (struct expr_status): Convert field "x_forced_labels"
5691 from rtx_expr_list * to rtx_insn_list *.
5693 * cfgbuild.c (make_edges): Convert local "x" from an
5694 rtx_expr_list * to an rtx_insn_list *, replacing use of
5695 "element" method with "insn" method.
5696 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5697 * except.c (sjlj_emit_dispatch_table): Replace use of
5698 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5700 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5701 rtx_expr_list * to an rtx_insn_list *, replacing use of
5702 "element" method with "insn" method.
5703 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5704 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5705 rtx_insn *, adding a checked cast. Replace use of
5706 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5708 (expand_label): Likewise for local "label_r".
5710 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5712 * function.h (struct rtl_data): Convert field
5713 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5715 * rtl.h (remove_node_from_insn_list): New prototype.
5717 * builtins.c (expand_builtin): When prepending to
5718 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5720 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5721 to rtx_insn_list *, and use its "insn" method rather than
5723 * cfgrtl.c (delete_insn): Use new function
5724 remove_node_from_insn_list rather than
5725 remove_node_from_expr_list.
5726 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5727 to rtx_insn_list *, and use its "insn" method rather than
5729 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5730 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5731 * rtlanal.c (remove_node_from_insn_list): New function, adapted
5732 from remove_node_from_expr_list.
5733 * stmt.c (expand_label): When prepending to
5734 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5737 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5739 * function.h (struct rtl_data): Strengthen fields "x_return_label"
5740 and "x_naked_return_label" from rtx to rtx_code_label *.
5742 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5744 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5745 (SET_NEXT_INSN): Likewise.
5746 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5748 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5749 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
5750 to split out the SEQUENCE from local "bundle", strengthening the
5751 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5752 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5753 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5754 and the type of the elements of the "slot" array from rtx to
5756 (reorg_split_calls): Likewise for locals "insn" and "next", and
5757 the type of the elements of the "slot" array.
5759 * config/frv/frv.c (frv_nops): Likewise for the elements of this
5761 (frv_function_prologue): Likewise for locals "insn", "next",
5763 (frv_register_nop): Introduce a local "nop_insn" to be the
5764 rtx_insn * containing rtx "nop".
5766 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5767 used as an insn and sometimes as a pattern, so rename it to
5768 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5769 using it where dealing with the core insn.
5771 * config/picochip/picochip.c (reorder_var_tracking_notes):
5772 Strengthen locals "insn", "next", "last_insn", "queue",
5773 "next_queue", "prev" from rtx to rtx_insn *.
5775 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5776 the second param is an rtx_insn ** rather than an rtx **.
5777 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5778 from rtx to rtx_sequence *, and introduce local named "sequence",
5779 using methods of rtx_sequence to clarify the code.
5780 (remove_insn): Introduce local rtx_sequence * named "sequence" and
5782 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5783 Rename param "after" to "uncast_after", reintroducing "after" as a
5784 local rtx_insn * with a checked cast.
5785 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5786 reintroducing "after" as a local rtx_insn * with a checked cast.
5787 Strengthen local "last" from rtx to rtx_insn * and remove the
5788 now-redundant checked casts.
5789 (copy_delay_slot_insn): Strengthen return type and param from rtx
5792 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5793 "last" from rtx to rtx_insn *.
5795 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5797 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5798 param from rtx to rtx_insn *.
5800 * emit-rtl.c (copy_delay_slot_insn): Likewise.
5802 * reorg.c (skip_consecutive_labels): Strengthen return type, param
5803 and local "insn" from rtx to rtx_insn *.
5804 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5805 (unfilled_slots_next): Likewise.
5806 (function_return_label): Strengthen from rtx to rtx_code_label *.
5807 (function_simple_return_label): Likewise.
5808 (first_active_target_insn): Strengthen return type and param from
5810 (find_end_label): Strengthen return type from rtx to
5811 rtx_code_label *; strengthen locals as appropriate.
5812 (emit_delay_sequence): Strengthen return type, param "insn" and
5813 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
5814 and local "li" from rtx to rtx_insn_list *, using methods of
5815 rtx_insn_list for clarity and typesafety.
5816 (add_to_delay_list): Strengthen return type and param "insn" from
5817 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
5818 rtx_insn_list * and use methods of rtx_insn_list.
5819 (delete_from_delay_slot): Strengthen return type, param "insn",
5820 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5821 Strengthen local "seq" from rtx to rtx_sequence *, and local
5822 "delay_list" from rtx to rtx_insn_list *, using methods of
5823 rtx_sequence for clarity and type-safety.
5824 (delete_scheduled_jump): Add checked cast when invoking
5825 delete_from_delay_slot. Strengthen local "trial" from rtx to
5827 (optimize_skip): Strengthen return type and local "delay_list"
5828 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
5830 (steal_delay_list_from_target): Strengthen return type, param
5831 "delay_list" and local "new_delay_list" from rtx to
5832 rtx_insn_list *. Strengthen param "seq" from rtx to
5833 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
5835 Split out local "temp" into multiple more-tightly scoped locals:
5836 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
5837 of rtx_insn_list and rtx_sequence for clarity and typesafety.
5838 Strengthen locals named "trial" from rtx to rtx_insn *.
5839 (steal_delay_list_from_fallthrough): Strengthen return type and
5840 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
5841 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
5842 Strengthen local "trial" from rtx to rtx_insn *.
5843 (try_merge_delay_insns): Strength local "merged_insns" from rtx
5844 to rtx_insn_list * and use its methods. Strengthen local "pat"
5845 from rtx to rtx_sequence * and use its methods. Strengthen locals
5846 "dtrial" and "new_rtx" from rtx to rtx_insn *.
5847 (get_label_before): Strengthen return type and local "label" from
5849 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5850 "next_trial", "next", prev". Strengthen local "delay_list" from
5851 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
5853 (follow_jumps): Strengthen return type, param "label" and locals
5854 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5855 (fill_slots_from_thread): Strengthen return type, param
5856 "delay_list" from rtx to rtx_insn_list *. Strengthen params
5857 "insn", "thread", "opposite_thread" and locals "new_thread",
5858 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
5859 "sequence" from a checked cast to rtx_sequence so that we can call
5860 steal_delay_list_from_target and steal_delay_list_from_fallthrough
5861 with an rtx_sequence *.
5862 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5863 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5864 Strengthen local "delay_list" from rtx to rtx_insn_list *.
5865 (relax_delay_slots): Strengthen param "first" and locals "insn",
5866 "next", "trial", "delay_insn", "target_label" from rtx to
5867 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
5868 Introduce a local "trial_seq" for PATTERN (trial) of type
5869 rtx_sequence *, in both cases using methods of rtx_sequence.
5870 (dbr_schedule): Strengthen param "first" and locals "insn",
5871 "next", "epilogue_insn" from rtx to rtx_insn *.
5873 2014-08-28 Richard Biener <rguenther@suse.de>
5875 PR tree-optimization/62283
5876 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5877 Do not peel loops for alignment where the vector loop likely
5878 doesn't run at least VF times.
5880 2014-08-28 Bin Cheng <bin.cheng@arm.com>
5882 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5883 important_candidates. Consider all important candidates if
5884 IVS doesn't give any result. Remove check on ivs->upto.
5885 (try_add_cand_for): Call iv_ca_add_use only once.
5887 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5889 Anna Tikhonova <anna.tikhonova@intel.com>
5890 Ilya Tocar <ilya.tocar@intel.com>
5891 Andrey Turetskiy <andrey.turetskiy@intel.com>
5892 Ilya Verbin <ilya.verbin@intel.com>
5893 Kirill Yukhin <kirill.yukhin@intel.com>
5894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5896 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5897 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5899 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5900 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5901 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5902 (define_insn "*mul<mode>3"): Add EVEX version.
5904 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5906 Anna Tikhonova <anna.tikhonova@intel.com>
5907 Ilya Tocar <ilya.tocar@intel.com>
5908 Andrey Turetskiy <andrey.turetskiy@intel.com>
5909 Ilya Verbin <ilya.verbin@intel.com>
5910 Kirill Yukhin <kirill.yukhin@intel.com>
5911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5913 * config/i386/sse.md
5914 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5915 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5916 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5917 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5918 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5919 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5920 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5921 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5922 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5923 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5924 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5925 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5926 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5927 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5928 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5929 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5931 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5933 Anna Tikhonova <anna.tikhonova@intel.com>
5934 Ilya Tocar <ilya.tocar@intel.com>
5935 Andrey Turetskiy <andrey.turetskiy@intel.com>
5936 Ilya Verbin <ilya.verbin@intel.com>
5937 Kirill Yukhin <kirill.yukhin@intel.com>
5938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5940 * config/i386/sse.md
5941 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5942 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5943 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5945 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5946 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5947 Anna Tikhonova <anna.tikhonova@intel.com>
5948 Ilya Tocar <ilya.tocar@intel.com>
5949 Andrey Turetskiy <andrey.turetskiy@intel.com>
5950 Ilya Verbin <ilya.verbin@intel.com>
5951 Kirill Yukhin <kirill.yukhin@intel.com>
5952 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5954 * config/i386/sse.md
5955 (define_mode_iterator VI128_256): New.
5956 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5958 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5959 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5960 Anna Tikhonova <anna.tikhonova@intel.com>
5961 Ilya Tocar <ilya.tocar@intel.com>
5962 Andrey Turetskiy <andrey.turetskiy@intel.com>
5963 Ilya Verbin <ilya.verbin@intel.com>
5964 Kirill Yukhin <kirill.yukhin@intel.com>
5965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5967 * config/i386/sse.md
5968 (define_mode_iterator VI8_256_512): New.
5969 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5971 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5972 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5974 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5976 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5978 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
5979 pointer to the cumulative reloc value and return the value for
5981 (compute_reloc_for_rtx): Take a const_rtx. Call
5982 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5983 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
5984 for_each_rtx for the CONST case.
5986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5988 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5989 (mark_constants_in_pattern): ...this new function to iterate over
5991 (mark_constants): Update accordingly.
5993 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5995 * varasm.c: Include rtl-iter.h.
5996 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5997 Remove the pointer to the cumulative hashval_t and just return
5998 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
5999 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6000 Accumulate the hashval_ts here instead of const_rtx_hash_1.
6002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6004 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
6005 Give real type of data parameter. Remove return value.
6006 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
6007 to iterate over subrtxes.
6009 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6011 * var-tracking.c (use_narrower_mode_test): Turn from being a
6012 for_each_rtx callback to being a function that examines each
6014 (adjust_mems): Update accordingly.
6016 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6018 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6019 callback to being a function that examines each subrtx itself.
6020 Remove handling of null rtxes.
6021 (add_uses): Update accordingly.
6023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6025 * var-tracking.c: Include rtl-iter.h.
6026 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6027 to being a function that examines each subrtx itself.
6028 (use_type): Update accordingly.
6030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6032 * store-motion.c: Include rtl-iter.h.
6033 (extract_mentioned_regs_1): Delete.
6034 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6035 for_each_rtx to iterate over subrtxes.
6037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6039 * sel-sched.c: Include rtl-iter.h
6040 (count_occurrences_1): Delete.
6041 (count_occurrences_equiv): Turn rtxes into const_rtxes.
6042 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6046 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6047 * rtlanal.c (tls_referenced_p_1): Delete.
6048 (tls_referenced_p): Take a const_rtx rather than an rtx.
6049 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6051 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6053 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6054 (for_each_inc_dec): Take an rtx rather than an rtx *.
6055 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6056 (cselib_record_sets): Likewise.
6057 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6058 (check_for_inc_dec): Likewise.
6059 * rtlanal.c (for_each_inc_dec_ops): Delete.
6060 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6061 rather than a pointer to the memory address. Replace
6062 for_each_inc_dec_ops argument with separate function and data
6063 arguments. Abort on non-autoinc addresses.
6064 (for_each_inc_dec_find_mem): Delete.
6065 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
6066 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6068 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6070 * rtl.h (find_all_hard_regs): Declare.
6071 * rtlanal.c (find_all_hard_regs): New function.
6072 (record_hard_reg_uses_1): Delete.
6073 (record_hard_reg_uses): Use find_all_hard_regs.
6075 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6077 * rtl.h (replace_label_data): Delete.
6078 (replace_label): Take the old label, new label and update-nuses flag
6079 as direct arguments. Return void.
6080 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6081 * rtlanal.c (replace_label): Update interface as above. Handle
6082 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
6083 iterator. Use FOR_EACH_SUBRTX_PTR.
6085 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6087 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6088 with const_rtx parameters.
6089 * varasm.c (get_pool_constant): Likewise.
6090 * rtlanal.c (rtx_referenced_p_1): Delete.
6091 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6092 Assert that the rtx we're looking for is nonnull. Allow searches
6093 for constant pool SYMBOL_REFs.
6095 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6097 * reload1.c: Include rtl-iter.h.
6098 (note_reg_elim_costly): Turn from being a for_each_rtx callback
6099 to being a function that examines each subrtx itself.
6100 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6104 * regcprop.c (cprop_find_used_regs_1): Delete.
6105 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6109 * regcprop.c: Include rtl-iter.h.
6110 (kill_value): Take a const_rtx.
6111 (kill_autoinc_value): Turn from being a for_each_rtx callback
6112 to being a function that examines each subrtx itself.
6113 (copyprop_hardreg_forward_1): Update accordingly.
6115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6117 * reg-stack.c: Include rtl-iter.h.
6118 (subst_stack_regs_in_debug_insn): Delete.
6119 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6120 instead of for_each_rtx.
6122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6124 * lower-subreg.c (find_decomposable_subregs): Turn from being
6125 a for_each_rtx callback to being a function that examines each
6126 subrtx itself. Remove handling of null rtxes.
6127 (decompose_multiword_subregs): Update accordingly.
6129 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6131 * lower-subreg.c (adjust_decomposed_uses): Delete.
6132 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6133 Remove handling of null rtxes.
6135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6137 * lower-subreg.c: Include rtl-iter.h.
6138 (resolve_subreg_use): Turn from being a for_each_rtx callback
6139 to being a function that examines each subrtx itself. Remove
6140 handling of null rtxes.
6141 (resolve_reg_notes, resolve_simple_move): Update accordingly.
6142 (decompose_multiword_subregs): Likewise.
6144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6146 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6147 to being a function that examines each subrtx itself.
6148 (simplify_using_condition, simplify_using_initial_values): Update
6151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6153 * loop-iv.c: Include rtl-iter.h.
6154 (find_single_def_src): New function.
6155 (replace_single_def_regs): Turn from being a for_each_rtx callback
6156 to being a function that examines each subrtx itself.
6157 (replace_in_expr, simplify_using_initial_values): Update accordingly.
6159 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6161 * jump.c (eh_returnjump_p_1): Delete.
6162 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6163 Remove handling of null rtxes.
6165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6167 * jump.c: Include rtl-iter.h.
6168 (returnjump_p_1): Delete.
6169 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6170 Remove handling of null rtxes.
6172 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6174 * ira.c: Include rtl-iter.h.
6175 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6176 to being a function that examines each subrtx itself. Remove
6177 handling of null rtxes.
6178 (update_equiv_regs): Update call accordingly.
6180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6182 * fwprop.c: Include rtl-iter.h.
6183 (varying_mem_p): Turn from being a for_each_rtx callback to being
6184 a function that examines each subrtx itself.
6185 (propagate_rtx): Update accordingly.
6187 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6189 * function.c: Include rtl-iter.h
6190 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6191 callback to being a function that examines each subrtx itself.
6192 Return the changed flag.
6193 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6194 (instantiate_virtual_regs): Update calls accordingly.
6196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6198 * final.c: Include rtl-iter.h.
6199 (mark_symbol_ref_as_used): Delete.
6200 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6203 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6205 * emit-rtl.c: Include rtl-iter.h.
6206 (find_auto_inc): Turn from being a for_each_rtx callback to being
6207 a function that examines each subrtx itself. Assume the first operand
6208 to an RTX_AUTOINC is the automodified register.
6209 (try_split): Update call accordingly.
6211 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6213 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6214 Return a bool, inverting the result so that 0/false means "not ok".
6215 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6216 subrtxes of a CONST.
6217 (mem_loc_descriptor, add_const_value_attribute)
6218 (resolve_addr_in_expr): Update calls accordingly.
6220 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6222 * dwarf2out.c: Include rtl-iter.h.
6223 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6224 Remove unused data parameter. Return a bool, inverting the result
6225 so that 0/false means "not ok".
6226 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
6227 instead of for_each_rtx.
6229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6231 * dse.c: Include rtl-iter.h.
6232 (check_mem_read_rtx): Change void * parameter to real type.
6233 Remove return value.
6234 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
6235 for_each_rtx. Don't handle null rtxes.
6237 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6239 * df-problems.c: Include rtl-iter.h.
6240 (find_memory): Turn from being a for_each_rtx callback to being
6241 a function that examines each subrtx itself. Continue to look for
6242 volatile references even after a nonvolatile one has been found.
6243 (can_move_insns_across): Update calls accordingly.
6245 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6247 * ddg.c (walk_mems_2, walk_mems_1): Delete.
6248 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6249 to iterate over subrtxes. Return a bool rather than an int.
6251 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6253 * ddg.c: Include rtl-iter.h.
6254 (mark_mem_use_1): Rename to...
6255 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
6256 instead of for_each_rtx.
6257 (mem_read_insn_p): Update accordingly.
6259 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6261 * cse.c (change_cc_mode_args): Delete.
6262 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6263 a function that examines each subrtx itself. Take the fields of
6264 change_cc_mode_args as argument and return void.
6265 (cse_change_cc_mode_insn): Update calls accordingly.
6267 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6269 * cse.c (is_dead_reg): Change argument to const_rtx.
6270 (dead_debug_insn_data): Delete.
6271 (is_dead_debug_insn): Expand commentary. Turn from being a
6272 for_each_rtx callback to being a function that examines
6273 each subrtx itself. Take the fields of dead_debug_insn_data
6275 (delete_trivially_dead_insns): Update call accordingly.
6277 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6279 * cse.c (check_for_label_ref): Move earlier in file. Turn from
6280 being a for_each_rtx callback to being a function that examines
6282 (cse_extended_basic_block): Update call accordingly.
6284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6286 * cse.c (check_dependence_data): Delete.
6287 (check_dependence): Change from being a for_each_rtx callback to being
6288 a function that examines all subrtxes itself. Don't handle null rtxes.
6289 (invalidate): Update call accordingly.
6291 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6293 * cse.c: Include rtl-iter.h.
6294 (approx_reg_cost_1): Delete.
6295 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6296 Don't handle null rtxes.
6298 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6300 * cfgcleanup.c: Include rtl-iter.h.
6301 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6302 to being a function that examines each subrtx itself.
6303 (thread_jump): Update accordingly.
6305 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6307 * combine-stack-adj.c: Include rtl-iter.h.
6308 (record_stack_refs_data): Delete.
6309 (record_stack_refs): Turn from being a for_each_rtx callback
6310 to being a function that examines each subrtx itself.
6311 Take a pointer to the reflist. Invert sense of return value
6312 so that true means success and false means failure. Don't
6314 (combine_stack_adjustments_for_block): Update accordingly.
6316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6318 * combine.c (record_truncated_value): Turn from being a for_each_rtx
6319 callback to a function that takes an rtx and returns a bool
6320 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6325 * combine.c: Include rtl-iter.h.
6326 (unmentioned_reg_p_1): Delete.
6327 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6328 Don't handle null rtxes.
6330 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6332 * calls.c: Include rtl-iter.h.
6333 (internal_arg_pointer_based_exp_1): Delete.
6334 (internal_arg_pointer_based_exp): Take a const_rtx.
6335 Use FOR_EACH_SUBRTX to iterate over subrtxes.
6337 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6339 * caller-save.c: Include rtl-iter.h.
6340 (add_used_regs_1): Delete.
6341 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6342 to iterate over subrtxes. Assert that any remaining pseudos
6345 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6347 * bt-load.c: Include rtl-iter.h.
6348 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6349 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
6350 to iterate over subrtxes.
6351 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6352 find_btr_use rather than btr_referenced_p.
6354 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6356 * alias.c: Include rtl-iter.h.
6357 (refs_newer_value_cb): Delete.
6358 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6360 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6362 * rtl-iter.h: New file.
6363 * rtlanal.c: Include it.
6364 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6365 (generic_subrtx_iterator <T>::add_single_to_queue)
6366 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6367 (generic_subrtx_iterator <T>::free_array): New functions.
6368 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6369 (generic_subrtx_iterator <const_rtx_accessor>)
6370 (generic_subrtx_iterator <rtx_var_accessor>
6371 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6372 (setup_reg_subrtx_bounds): New function.
6373 (init_rtlanal): Call it.
6375 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6378 * config/sh/sh.md (ashlsi3): Handle negative shift count for
6380 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6382 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
6384 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6386 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6388 * rtl.h (JUMP_LABEL_AS_INSN): New.
6390 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6392 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6394 (alloc_EXPR_LIST): Strengthen return type from rtx to
6396 (remove_free_EXPR_LIST_node): Likewise for param.
6397 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6398 from rtx to rtx_expr_list *.
6399 * sched-int.h (struct deps_desc): Strengthen fields
6400 "pending_read_mems" and "pending_write_mems" from rtx to
6403 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6404 rtx to rtx_expr_list *.
6405 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6406 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6408 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
6409 from rtx to rtx_expr_list *.
6410 * loop-iv.c (simplify_using_initial_values): Strengthen local
6411 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6412 "pnote_next" from rtx * to rtx_expr_list **.
6413 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
6414 param "exprp" from rtx * to rtx_expr_list **.
6415 (add_insn_mem_dependence): Strengthen local "mem_list" from
6416 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
6418 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6419 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
6420 param "old_mems_p" from rtx * to rtx_expr_list **.
6421 * var-tracking.c (struct adjust_mem_data): Strengthen field
6422 "side_effects" from rtx to rtx_expr_list *.
6423 (adjust_insn): Replace NULL_RTX with NULL when assigning to
6425 (prepare_call_arguments): Likewise.
6427 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6429 * function.h (struct rtl_data): Strengthen field
6430 "x_stack_slot_list" from rtx to rtx_expr_list *.
6432 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6433 when assigning to stack_slot_list.
6435 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6437 * function.h (struct rtl_data): Strengthen field
6438 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6439 * rtl.h (remove_node_from_expr_list): Strengthen second param from
6440 rtx * to rtx_expr_list **.
6442 * cfgbuild.c (make_edges): In loop over
6443 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6444 rtx_expr_list *, and use methods of the latter class to clarify
6446 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6447 rtx_expr_list *, and use methods of the latter class to clarify
6449 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6450 * reload1.c (set_initial_label_offsets): Likewise for local "x".
6451 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6452 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
6453 to rtx_expr_list *. Use methods of the latter class to clarify
6456 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6458 * function.h (struct expr_status): Strengthen field
6459 "x_forced_labels" from rtx to rtx_expr_list *.
6461 * cfgbuild.c (make_edges): Split local "x" into two locals,
6462 strengthening one from rtx to rtx_expr_list *, and using methods
6464 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6465 loop over forced_labels, introduce strengthen it from rtx to
6466 rtx_expr_list *, using methods to clarify the code.
6467 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6468 to rtx_expr_list *, using methods of said class to clarify the
6470 * reload1.c (set_initial_label_offsets): Split local "x" into two
6471 per-loop variables, strengthening the first from rtx to
6472 rtx_expr_list * and using methods.
6474 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6476 * coretypes.h (class rtx_expr_list): Add forward declaration.
6477 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6478 * gengenrtl.c (special_rtx): Add EXPR_LIST.
6479 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6480 invariant: GET_CODE (X) == EXPR_LIST.
6481 (is_a_helper <rtx_expr_list *>::test): New.
6482 (rtx_expr_list::next): New.
6483 (rtx_expr_list::element): New.
6484 (gen_rtx_EXPR_LIST): New.
6486 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6488 * varasm.c (mark_constants): Convert a GET_CODE check into a
6489 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6490 Use methods of rtx_sequence to clarify the code.
6492 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6494 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6495 local "seq" via a checked cast, and use methods of rtx_sequence
6496 to simplify the code.
6498 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6500 * resource.c (mark_referenced_resources): Strengthen local
6501 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6502 using methods of rtx_sequence to clarify the code.
6503 (find_dead_or_set_registers): Within the switch statement, convert
6504 a GET_CODE check to a dyn_cast, introducing local "seq". Within
6505 the JUMP_P handling, introduce another local "seq", adding a
6506 checked cast to rtx_sequence *. In both cases, use methods of
6507 rtx_sequence to clarify the code.
6508 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6509 via a checked cast, and use methods of rtx_sequence to simplify
6512 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6514 * reorg.c (redundant_insn): In two places in the function, replace
6515 a check of GET_CODE with a dyn_cast, introducing local "seq", and
6516 usings methods of rtx_sequence to clarify the code.
6518 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6520 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6521 local "seq" with a checked cast, and use methods of rtx_sequence
6522 to clarify the code.
6524 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6526 * function.c (contains): Introduce local "seq" for PATTERN (insn),
6527 with a checked cast, in the region for where we know it's a
6528 SEQUENCE. Use methods of rtx_sequence.
6530 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6532 * final.c (get_attr_length_1): Replace GET_CODE check with a
6533 dyn_cast, introducing local "seq" and the use of methods of
6535 (shorten_branches): Likewise, introducing local "body_seq".
6536 Strengthen local "inner_insn" from rtx to rtx_insn *.
6537 (reemit_insn_block_notes): Replace GET_CODE check with a
6538 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6539 Use methods of rtx_sequence.
6540 (final_scan_insn): Likewise, introducing local "seq" for when
6541 "body" is known to be a SEQUENCE, using its methods.
6543 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6545 * except.c (can_throw_external): Strengthen local "seq" from rtx
6546 to rtx_sequence *. Use methods of rtx_sequence.
6547 (insn_nothrow_p): Likewise.
6549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6551 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6552 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6553 Use methods of rtx_sequence.
6554 (scan_trace): Likewise for local "pat".
6556 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6558 * coretypes.h (class rtx_sequence): Add forward declaration.
6559 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6560 invariant: GET_CODE (X) == SEQUENCE.
6561 (is_a_helper <rtx_sequence *>::test): New.
6562 (is_a_helper <const rtx_sequence *>::test): New.
6563 (rtx_sequence::len): New.
6564 (rtx_sequence::element): New.
6565 (rtx_sequence::insn): New.
6567 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6569 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6571 (alloc_INSN_LIST): Strengthen return type from rtx to
6573 (copy_INSN_LIST): Likewise for return type and param.
6574 (concat_INSN_LIST): Likewise for both params and return type.
6575 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6576 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
6577 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6578 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
6580 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6581 "implicit_sets", "control_uses", "clobbers" from rtx to
6583 (struct deps_desc): Likewise for fields "pending_read_insns",
6584 "pending_write_insns", "pending_jump_insns",
6585 "last_pending_memory_flush", "last_function_call",
6586 "last_function_call_may_noreturn", "sched_before_next_call",
6587 "sched_before_next_jump".
6588 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6589 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6591 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6592 from rtx to rtx_insn_list *.
6593 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6596 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6597 to rtx_insn_list **.
6598 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6600 (queue_insn): Likewise for local "link".
6601 (struct haifa_saved_data): Strengthen field "insn_queue" from
6602 rtx * to rtx_insn_list **.
6603 (save_backtrack_point): Update allocation of save->insn_queue to
6604 reflect the strengthening of elements from rtx to rtx_insn_list *.
6605 (queue_to_ready): Strengthen local "link" from rtx to
6606 rtx_insn_list *; use methods "next" and "insn" when traversing the
6608 (early_queue_to_ready): Likewise for locals "link", "next_link",
6610 (schedule_block): Update allocation of insn_queue to reflect the
6611 strengthening of elements from rtx to rtx_insn_list *. Strengthen
6612 local "link" from rtx to rtx_insn_list *, and use methods when
6614 (add_to_speculative_block): Strengthen locals "twins" and
6615 "next_node" from rtx to rtx_insn_list *, and use methods when
6616 working with them. Strengthen local "twin" from rtx to
6617 rtx_insn *, eliminating a checked cast.
6618 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6619 from rtx to rtx_insn_list *, and use methods when working with
6622 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6623 from rtx to rtx_insn_list *, adding a checked cast.
6624 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6626 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6627 "newlink" from rtx to rtx_insn_list *. Strengthen local
6628 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
6629 from rtx to rtx_insn *.
6630 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6631 from rtx to rtx_insn_list *. Use methods of the latter class.
6632 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6633 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6634 (remove_free_INSN_LIST_node): Strengthen return type and local
6635 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
6636 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
6637 rtx_insn_list *, using "insn" method.
6639 * sched-deps.c (add_dependence_list): Strengthen param "list"
6640 from rtx to rtx_insn_list *, and use methods when working with it.
6641 (add_dependence_list_and_free): Strengthen param "listp" from
6642 rtx * to rtx_insn_list **.
6643 (remove_from_dependence_list): Strenghten param "listp" from rtx *
6644 to rtx_insn_list **, and use methods when working with *listp.
6645 (remove_from_both_dependence_lists): Strengthen param "listp" from
6646 rtx * to rtx_insn_list **
6647 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6648 to rtx_insn_list **. Eliminate local "link", in favor of two new
6649 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6651 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6652 by introducing local "cond_deps".
6653 (remove_from_deps): Strengthen param "insn" from rtx to
6656 * sched-rgn.c (concat_insn_mem_list): Strengthen param
6657 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6658 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6659 Use methods of rtx_insn_list.
6661 * store-motion.c (struct st_expr): Strengthen fields
6662 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6663 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6665 (find_moveable_store): Split out "tmp" into multiple more-tightly
6666 scoped locals. Use methods of rtx_insn_list *.
6667 (compute_store_table): Strengthen local "tmp" from rtx to
6668 rtx_insn *. Use methods of rtx_insn_list *.
6670 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6672 * coretypes.h (class rtx_insn_list): Add forward declaration.
6673 * rtl.h (class rtx_insn_list): New subclass of rtx_def
6674 (is_a_helper <rtx_insn_list *>::test): New.
6675 (rtx_insn_list::next): New.
6676 (rtx_insn_list::insn): New.
6677 (gen_rtx_INSN_LIST): Add prototype.
6678 * emit-rtl.c (gen_rtx_INSN_LIST): New.
6679 * gengenrtl.c (special_rtx): Add INSN_LIST.
6681 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6683 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6684 "prev" from rtx to rtx_insn *.
6686 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6688 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6689 functions. Require merely an rtx for now, not an rtx_insn *.
6690 (BLOCK_FOR_INSN): Likewise.
6691 (INSN_LOCATION): Likewise.
6692 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6694 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6696 * rtl.h (PATTERN): Convert this macro into a pair of inline
6697 functions, for now, requiring const_rtx and rtx.
6699 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6701 * target.def (unwind_emit): Strengthen param "insn" from rtx to
6703 (final_postscan_insn): Likewise.
6704 (adjust_cost): Likewise.
6705 (adjust_priority): Likewise.
6706 (variable_issue): Likewise.
6707 (macro_fusion_pair_p): Likewise.
6708 (dfa_post_cycle_insn): Likewise.
6709 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6710 (first_cycle_multipass_issue): Likewise.
6711 (dfa_new_cycle): Likewise.
6712 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6713 (speculate_insn): Likewise for param "insn".
6714 (gen_spec_check): Likewise for params "insn" and "label".
6715 (get_insn_spec_ds): Likewise for param "insn".
6716 (get_insn_checked_ds): Likewise.
6717 (dispatch_do): Likewise.
6718 (dispatch): Likewise.
6719 (cannot_copy_insn_p): Likewise.
6720 (invalid_within_doloop): Likewise.
6721 (legitimate_combined_insn): Likewise.
6725 * doc/tm.texi: Automatically updated to reflect changes to
6728 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6730 (schedule_block): Likewise.
6731 (sched_init): Likewise.
6732 (sched_speculate_insn): Strengthen param "insn" from rtx to
6734 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6736 * hooks.c (hook_bool_rtx_true): Rename to...
6737 hook_bool_rtx_insn_true): ...this, and strengthen first param from
6739 (hook_constcharptr_const_rtx_null): Rename to...
6740 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6741 first param from const_rtx to const rtx_insn *.
6742 (hook_bool_rtx_int_false): Rename to...
6743 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6744 param from rtx to rtx_insn *.
6745 (hook_void_rtx_int): Rename to...
6746 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6749 * hooks.h (hook_bool_rtx_true): Rename to...
6750 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6752 (hook_bool_rtx_int_false): Rename to...
6753 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6754 param from rtx to rtx_insn *.
6755 (hook_void_rtx_int): Rename to...
6756 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6758 (hook_constcharptr_const_rtx_null): Rename to...
6759 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6760 first param from const_rtx to const rtx_insn *.
6762 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6763 and local "prev" from rtx to rtx_insn *.
6765 * sched-int.h (sched_speculate_insn): Strengthen first param from
6768 * sel-sched.c (create_speculation_check): Likewise for local "label".
6769 * targhooks.c (default_invalid_within_doloop): Strengthen param
6770 "insn" from const_rtx to const rtx_insn *.
6771 * targhooks.h (default_invalid_within_doloop): Strengthen param
6772 from const_rtx to const rtx_insn *.
6774 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6775 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6777 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6779 (arc_invalid_within_doloop): Likewise, with const.
6781 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6782 (arm_cannot_copy_insn_p): Likewise for param "insn".
6783 (arm_unwind_emit): Likewise.
6785 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6788 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6789 (c6x_variable_issue): Likewise. Removed now-redundant checked
6791 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6793 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6794 Likewise for param "insn".
6795 (epiphany_mode_after): Likewise.
6796 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6797 params "insn", "dep_insn".
6798 (epiphany_mode_needed): Likewise for param "insn".
6799 (epiphany_mode_after): Likewise.
6801 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6802 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6803 (ix86_avx_u128_mode_needed): Likewise.
6804 (ix86_i387_mode_needed): Likewise.
6805 (ix86_mode_needed): Likewise.
6806 (ix86_avx_u128_mode_after): Likewise.
6807 (ix86_mode_after): Likewise.
6808 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6809 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6810 (ix86_adjust_priority): Likewise for param "insn".
6811 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6812 (do_dispatch): Likewise.
6813 (has_dispatch): Likewise.
6814 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6816 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6817 reflect renaming of default hook implementation from
6818 hook_constcharptr_const_rtx_null to
6819 hook_constcharptr_const_rtx_insn_null.
6820 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6822 (ia64_variable_issue): Likewise for param "insn".
6823 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6824 (ia64_dfa_new_cycle): Likewise.
6825 (ia64_get_insn_spec_ds): Likewise.
6826 (ia64_get_insn_checked_ds): Likewise.
6827 (ia64_speculate_insn): Likewise.
6828 (ia64_gen_spec_check): Likewise for params "insn", "label".
6829 (ia64_asm_unwind_emit): Likewise for param "insn".
6831 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6833 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6835 (m68k_sched_variable_issue): Likewise for param "insn".
6837 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6840 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6841 Likewise for params "insn", "dep".
6843 * config/mips/mips.c (mips_adjust_cost): Likewise.
6844 (mips_variable_issue): Likewise for param "insn".
6845 (mips_final_postscan_insn): Likewise.
6847 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6848 for params "insn", "dep".
6850 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6852 (pa_adjust_priority): Likewise for param "insn".
6854 * config/picochip/picochip.c (picochip_sched_adjust_cost):
6855 Likewise for params "insn", "dep_insn".
6857 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6859 (rs6000_variable_issue): Likewise.
6860 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6861 (rs6000_debug_adjust_cost): Likewise.
6862 (rs6000_adjust_priority): Likewise for param "insn".
6863 (rs6000_use_sched_lookahead_guard): Likewise.
6864 (get_next_active_insn): Likewise for return type and both params.
6865 (redefine_groups): Likewise for params "prev_head_insn", "tail"
6866 and locals "insn", "next_insn".
6867 (pad_groups): Likewise.
6869 * config/s390/s390.c (s390_adjust_priority): Likewise for param
6871 (s390_cannot_copy_insn_p): Likewise.
6872 (s390_sched_variable_issue): Likewise for third param, eliminating
6874 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6875 default hook implementation from hook_constcharptr_const_rtx_null
6876 to hook_constcharptr_const_rtx_insn_null.
6878 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6879 from rtx to rtx_insn *.
6880 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6881 (sh_variable_issue): Likewise for param "insn".
6882 (sh_dfa_new_cycle): Likewise.
6883 (sh_mode_needed): Likewise.
6884 (sh_mode_after): Likewise.
6886 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6887 params "insn", "dep_insn".
6888 (hypersparc_adjust_cost): Likewise.
6889 (sparc_adjust_cost): Likewise.
6891 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6892 param, eliminated checked cast.
6893 (spu_sched_adjust_cost): Likewise for first and third params.
6895 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6896 params "insn" and "dep_insn" from rtx to rtx_insn *.
6898 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6900 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6902 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6903 (set_is_load_p): ...this, updating to work on a SET pattern rather
6905 (is_store_insn): Rename to...
6906 (set_is_store_p): ...this, updating to work on a SET pattern
6907 rather than an insn.
6908 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6909 top of function to where it is needed. Rewrite the bogus
6910 condition that checks for "insn" and "dep" being PARALLEL to
6911 instead use single_set, introducing locals "insn_set" and
6912 "dep_set". Given that we only ever returned "cost" for a non-pair
6913 of SETs, bail out early if we don't have a pair of SET.
6914 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6915 use the new locals "insn_set" and "dep_set", and update calls to
6916 is_load_insn and is_store_insn to be calls to set_is_load_p and
6919 2014-08-27 Guozhi Wei <carrot@google.com>
6922 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6923 amount before using it.
6925 2014-08-27 Richard Biener <rguenther@suse.de>
6927 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6928 get_maxval_strlen inside a more useful API.
6929 (gimple_fold_builtin_with_strlen): Remove and fold into ...
6930 (gimple_fold_builtin): ... caller.
6931 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6932 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6933 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6934 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6935 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6936 gimple_fold_builtin_sprintf): Adjust to compute maxval
6939 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
6942 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6944 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6946 Anna Tikhonova <anna.tikhonova@intel.com>
6947 Ilya Tocar <ilya.tocar@intel.com>
6948 Andrey Turetskiy <andrey.turetskiy@intel.com>
6949 Ilya Verbin <ilya.verbin@intel.com>
6950 Kirill Yukhin <kirill.yukhin@intel.com>
6951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6953 * config/i386/sse.md
6954 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6955 Use `concat_tg_mode' attribute to determine asm register size.
6957 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6958 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6959 Anna Tikhonova <anna.tikhonova@intel.com>
6960 Ilya Tocar <ilya.tocar@intel.com>
6961 Andrey Turetskiy <andrey.turetskiy@intel.com>
6962 Ilya Verbin <ilya.verbin@intel.com>
6963 Kirill Yukhin <kirill.yukhin@intel.com>
6964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6966 * config/i386/sse.md
6967 (define_mode_iterator VI48_AVX512VL): New.
6968 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6969 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6970 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6971 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6972 with VI1): Change mode iterator.
6973 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6974 with VI_ULOADSTORE_BW_AVX512VL): New.
6975 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6976 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6977 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6978 with VI1): Change mode iterator.
6979 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6980 with VI_ULOADSTORE_BW_AVX512VL): New.
6981 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6982 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6983 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6984 with VI1): Change mode iterator.
6985 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6986 with VI_ULOADSTORE_BW_AVX512VL): New.
6987 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6988 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6989 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6990 (define_insn "<avx512>_storedqu<mode>_mask" with
6991 VI48_AVX512VL): New.
6992 (define_insn "<avx512>_storedqu<mode>_mask" with
6993 VI12_AVX512VL): Ditto.
6995 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6997 Anna Tikhonova <anna.tikhonova@intel.com>
6998 Ilya Tocar <ilya.tocar@intel.com>
6999 Andrey Turetskiy <andrey.turetskiy@intel.com>
7000 Ilya Verbin <ilya.verbin@intel.com>
7001 Kirill Yukhin <kirill.yukhin@intel.com>
7002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7004 * config/i386/sse.md
7005 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
7006 (define_mode_iterator VI48_AVX512BW): New.
7007 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
7008 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7009 with VI48_AVX2_48_AVX512F): New.
7010 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7011 with VI2_AVX512VL): Ditto.
7013 2014-08-27 Richard Biener <rguenther@suse.de>
7016 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
7017 (fold_builtin_3): Do not fold strcat_chk here.
7018 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7020 (gimple_fold_builtin): Fold strcat_chk here.
7022 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
7024 * dwarf2out.h (dwarf2out_decl): Remove prototype.
7025 * dwarf2out.c (dwarf2out_decl): Make static.
7027 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
7029 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7031 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7033 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7034 from rtx to rtx_insn *.
7035 (cselib_lookup_from_insn): Likewise for final param.
7036 (cselib_subst_to_values_from_insn): Likewise.
7037 (cselib_add_permanent_equiv): Likewise.
7039 * cselib.c (cselib_current_insn): Likewise for this variable.
7040 (cselib_subst_to_values_from_insn): Likewise for param "insn".
7041 (cselib_lookup_from_insn): Likewise.
7042 (cselib_add_permanent_equiv): Likewise for param "insn" and local
7043 "save_cselib_current_insn".
7044 (cselib_process_insn): Replace use of NULL_RTX with NULL.
7046 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7047 from rtx to rtx_insn *.
7049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7051 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7054 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7056 * df.h (df_dump_insn_problem_function): Strengthen first param of
7057 this callback from const_rtx to const rtx_insn *.
7058 (struct df_insn_info): Strengthen field "insn" from rtx to
7060 (DF_REF_INSN): Eliminate this function, reinstating the older
7062 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7063 (df_reg_defined): Likewise.
7064 (df_find_use): Likewise.
7065 (df_reg_used): Likewise.
7066 (df_dump_insn_top): Strengthen param 1 from const_rtx to
7068 (df_dump_insn_bottom): Likewise.
7069 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7070 (df_insn_debug_regno): Likewise.
7071 (debug_df_insn): Likewise.
7072 (df_rd_simulate_one_insn): Likewise for param 2.
7073 (df_word_lr_simulate_defs): Likewise for param 1.
7074 (df_word_lr_simulate_uses): Likewise.
7075 (df_md_simulate_one_insn): Likewise for param 2.
7076 (df_simulate_find_noclobber_defs): Likewise for param 1.
7077 (df_simulate_find_defs): Likewise.
7078 (df_simulate_defs): Likewise.
7079 (df_simulate_uses): Likewise.
7080 (df_simulate_one_insn_backwards): Likewise for param 2.
7081 (df_simulate_one_insn_forwards): Likewise.
7082 (df_uses_create): Likewise for param 2.
7083 (df_insn_create_insn_record): Likewise for param 1.
7084 (df_insn_delete): Likewise.
7085 (df_insn_rescan): Likewise.
7086 (df_insn_rescan_debug_internal): Likewise.
7087 (df_insn_change_bb): Likewise.
7088 (df_notes_rescan): Likewise.
7089 * rtl.h (remove_death): Likewise for param 2.
7090 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7092 * sched-int.h (reemit_notes): Strengthen param from rtx to
7094 * valtrack.h (propagate_for_debug): Likewise for param 1.
7096 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7097 local "tmp_rtx" from const_rtx to const rtx_insn *.
7098 * combine.c (remove_death): Strengthen param "insn" from rtx to
7100 (move_deaths): Likewise for local "where_dead".
7101 * cse.c (delete_trivially_dead_insns): Introduce local
7102 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7103 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7105 (df_reg_defined): Likewise.
7106 (df_find_use): Likewise.
7107 (df_reg_used): Likewise.
7108 (df_dump_insn_problem_data): Strengthen param "insn" from
7109 const_rtx to const rtx_insn *.
7110 (df_dump_insn_top): Likewise.
7111 (df_dump_insn_bottom): Likewise.
7112 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7113 (df_insn_debug_regno): Likewise.
7114 (debug_df_insn): Likewise.
7115 (DF_REF_INSN): Delete.
7116 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7117 from rtx to rtx_insn *.
7118 (df_chain_insn_top_dump): Strengthen param "insn" from
7119 const_rtx to const rtx_insn *.
7120 (df_chain_insn_bottom_dump): Likewise.
7121 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7123 (df_word_lr_simulate_uses): Likewise.
7124 (df_print_note): Likewise.
7125 (df_remove_dead_and_unused_notes): Likewise.
7126 (df_set_unused_notes_for_mw): Likewise.
7127 (df_set_dead_notes_for_mw): Likewise.
7128 (df_create_unused_note): Likewise.
7129 (df_simulate_find_defs): Likewise.
7130 (df_simulate_find_uses): Likewise.
7131 (df_simulate_find_noclobber_defs): Likewise.
7132 (df_simulate_defs): Likewise.
7133 (df_simulate_uses): Likewise.
7134 (df_simulate_one_insn_backwards): Likewise.
7135 (df_simulate_one_insn_forwards): Likewise.
7136 (df_md_simulate_one_insn): Likewise.
7137 * df-scan.c (df_uses_create): Likewise.
7138 (df_insn_create_insn_record): Likewise.
7139 (df_insn_delete): Likewise.
7140 (df_insn_rescan): Likewise.
7141 (df_insn_rescan_debug_internal): Likewise.
7142 (df_insn_change_bb): Likewise.
7143 (df_notes_rescan): Likewise.
7144 (df_refs_add_to_chains): Likewise.
7145 (df_insn_refs_verify): Likewise.
7146 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7147 when invoking df_insn_delete.
7148 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7149 (set_unique_reg_note): Add checked cast.
7150 * final.c (cleanup_subreg_operands): Likewise.
7151 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7152 "insn" from rtx to rtx_insn *.
7153 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7154 "last" from rtx to rtx_insn *.
7155 * ira-emit.c (change_regs_in_insn): New function.
7156 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7157 Invoke change_regs_in_insn rather than change_regs.
7158 * ira.c (update_equiv_regs): Strengthen locals "insn",
7159 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
7160 for_each_rtx_in_insn rather than for_each_rtx.
7161 * recog.c (confirm_change_group): Add checked casts.
7162 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7164 (peep2_fill_buffer): Add checked cast.
7165 * rtlanal.c (remove_note): Likewise.
7166 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7167 locals "next" "end" from rtx to rtx_insn *.
7169 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7171 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7173 (struct reg_use_data): Likewise for field "insn".
7174 (insn_cost): Likewise for param.
7175 (real_insn_for_shadow): Likewise for return type and param.
7176 (increase_insn_priority): Likewise for param 1.
7177 (debug_dependencies): Likewise for both params.
7179 * haifa-sched.c (insn_delay): Likewise for param "insn".
7180 (real_insn_for_shadow): Likewise for return type and param "insn".
7181 (update_insn_after_change): Likewise for param "insn".
7182 (recompute_todo_spec): Likewise for param "next" and locals "pro",
7184 (insn_cost): Likewise for param "insn".
7185 (increase_insn_priority): Likewise.
7186 (calculate_reg_deaths): Likewise.
7187 (setup_insn_reg_pressure_info): Likewise.
7188 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7189 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7190 (model_recompute): Likewise.
7191 (must_restore_pattern_p): Likewise for param "next".
7192 (model_excess_cost): Likewise for param "insn".
7193 (queue_remove): Likewise.
7194 (adjust_priority): Likewise for param "prev".
7195 (update_register_pressure): Likewise for param "insn".
7196 (setup_insn_max_reg_pressure): Likewise for local "insn".
7197 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7198 (model_add_to_schedule): Likewise.
7199 (model_reset_queue_indices): Likewise for local "insn".
7200 (unschedule_insns_until): Strengthen local "recompute_vec" from
7201 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
7202 "con" from rtx to rtx_insn *.
7203 (restore_last_backtrack_point): Likewise for both locals "x". Add
7205 (estimate_insn_tick): Likewise for param "insn".
7206 (commit_schedule): Likewise for params "prev_head", "tail" and
7208 (verify_shadows): Likewise for locals "i1", "i2".
7209 (dump_insn_stream): Likewise for params "head", "tail" and locals
7210 "next_tail", "insn".
7211 (schedule_block): Likewise for locals "insn", "x". Add a checked
7213 (fix_inter_tick): Likewise for params "head", "tail".
7214 (create_check_block_twin): Likewise for local "jump".
7215 (haifa_change_pattern): Likewise for param "insn".
7216 (haifa_speculate_insn): Likewise.
7217 (dump_new_block_header): Likewise for params "head", "tail".
7218 (fix_jump_move): Likewise for param "jump".
7219 (move_block_after_check): Likewise.
7220 (sched_init_insn_luid): Likewise for param "insn".
7221 (sched_init_luids): Likewise for local "insn".
7222 (insn_luid): Likewise for param "insn".
7223 (init_h_i_d): Likewise.
7224 (haifa_init_h_i_d): Likewise for local "insn".
7225 (haifa_init_insn): Likewise for param "insn".
7226 * sched-deps.c (add_dependence): Likewise for local "real_pro",
7228 (create_insn_reg_use): Likewise for param "insn".
7229 (setup_insn_reg_uses): Likewise. Add a checked cast.
7230 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7231 "tail" from rtx to rtx_insn *.
7232 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7233 "insn", "next_tail".
7235 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7237 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7238 from rtx to rtx_insn *.
7239 (model_add_to_schedule): Likewise for locals "start", "end",
7242 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7244 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7246 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
7247 "to" and locals "insn", "next", "copy". Remove now-redundant
7250 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7252 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7253 rtx_insn * and param 4 from rtx * to rtx_insn **.
7254 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7255 param 2 from rtx * to rtx_insn **.
7257 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7258 rtx_insn * and final param from rtx * to rtx_insn **.
7260 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7261 from rtx to rtx_insn *.
7262 (try_head_merge_bb): Likewise for both locals named "move_upto".
7263 * df-problems.c (can_move_insns_across): Likewise for params
7264 "from", "to", "across_from", "across_to" and locals "insn",
7265 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
7267 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7268 from rtx to rtx_insn *.
7269 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7270 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7271 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7273 (noce_try_abs): Likewise.
7274 (noce_get_condition): Likewise for param "jump". Strengthen param
7275 "earliest" from rtx * to rtx_insn **.
7276 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7278 (find_cond_trap): Likewise.
7279 (dead_or_predicable): Likewise for local "earliest".
7280 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
7282 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7283 and local "prev". Strengthen param "earliest" from rtx * to
7285 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7286 Strengthen param "earliest" from rtx * to rtx_insn **.
7288 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7290 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7291 "to" and local "insn" from rtx to rtx_insn *.
7293 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7295 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7296 from rtx to rtx_insn *.
7297 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7298 (code_motion_path_driver): Likewise for local "last_insn".
7299 (simplify_changed_insns): Likewise for local "insn".
7301 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7303 * rtl.h (push_to_sequence): Strengthen param from rtx to
7305 (push_to_sequence2): Likewise for both params.
7306 (delete_insns_since): Likewise for param.
7307 (reorder_insns_nobb): Likewise for all three params.
7308 (set_new_first_and_last_insn): Likewise for both params.
7310 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7311 rtx_insn *. Remove now-redundant cast.
7312 (set_last_insn): Likewise.
7314 * builtins.c (expand_builtin_return): Strengthen local
7315 "call_fusage" from rtx to rtx_insn *.
7316 * cfgrtl.c (create_basic_block_structure): Likewise for local
7318 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7319 "first", "last" and local "insn".
7320 (delete_insns_since): Likewise for param "from".
7321 (reorder_insns_nobb): Likewise for params "from", "to", "after"
7323 (push_to_sequence): Likewise for param "first" and local "last".
7324 (push_to_sequence2): Likewise for params "first" and "last".
7325 * lra.c (emit_add3_insn): Likewise for local "last".
7326 (lra_emit_add): Likewise.
7327 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7329 (process_address_1): Likewise for locals "insn", last".
7330 * modulo-sched.c (ps_first_note): Likewise for return type.
7331 * optabs.c (expand_binop_directly): Likewise for param "last".
7333 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7335 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7337 * emit-rtl.c (get_last_insn_anywhere): Likewise.
7339 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7341 * function.h (struct sequence_stack): Strengthen fields "first"
7342 and "last" from rtx to rtx_insn *.
7343 (struct emit_status): Likewise for fields "x_first_insn" and
7346 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7347 (set_first_insn): Add checked cast.
7348 (get_last_insn): Remove now-redundant checked cast.
7349 (set_last_insn): Add checked cast.
7351 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7352 "saved_first" and "saved_last" from rtx to rtx_insn *.
7354 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7356 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7357 (unlink_insn_chain): Strengthen both params from rtx to
7360 * cfgrtl.c (cfg_layout_function_header): Likewise for this
7362 (unlink_insn_chain): Likewise for params "first" and "last".
7363 Remove now-redundant checked cast.
7364 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7365 (fixup_reorder_chain): Strengthen local "insn" from rtx to
7367 * emit-rtl.c (link_insn_into_chain): Likewise for all three
7369 (add_insn): Likewise for param "insn" and local "prev".
7370 (add_insn_after_nobb): Likewise for both params and local "next".
7371 (add_insn_before_nobb): Likewise for both params and local "prev".
7372 (add_insn_after): Rename param "after" to "uncast_after",
7373 introducing local "after" with another checked cast.
7374 (add_insn_before): Rename params "insn" and "before", giving them
7375 "uncast_" prefixes, adding the old names back using checked casts.
7376 (emit_note_after): Likewise for param "after".
7377 (emit_note_before): Likewise for param "before".
7378 (emit_label): Add a checked cast.
7380 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7382 * cselib.h (cselib_record_sets_hook): Strengthen initial param
7383 "insn" from rtx to rtx_insn *.
7385 * cselib.c (cselib_record_sets_hook): Likewise.
7387 * var-tracking.c (add_with_sets): Likewise, renaming back from
7388 "uncast_insn" to "insn" and eliminating the checked cast from rtx
7391 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7393 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7394 and "header_" from rtx to rtx_insn *.
7395 (struct basic_block_d): Likewise for field "head_" within "x"
7396 field of union basic_block_il_dependent.
7397 (BB_HEAD): Drop function...
7398 (SET_BB_HEAD): ...and this function in favor of...
7399 (BB_HEAD): ...reinstate macro.
7400 (BB_END): Drop function...
7401 (SET_BB_END): ...and this function in favor of...
7402 (BB_END): ...reinstate macro.
7403 (BB_HEADER): Drop function...
7404 (SET_BB_HEADER): ...and this function in favor of...
7405 (BB_HEADER): ...reinstate macro.
7407 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7408 (fix_crossing_unconditional_branches): Likewise.
7409 * caller-save.c (save_call_clobbered_regs): Likewise.
7410 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7411 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7412 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7413 (merge_blocks_move_successor_nojumps): Likewise.
7414 (outgoing_edges_match): Update use of for_each_rtx to
7415 for_each_rtx_in_insn.
7416 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7417 (expand_gimple_cond): Likewise.
7418 (expand_gimple_tailcall): Likewise.
7419 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7421 (construct_exit_block): Drop use of SET_BB_END.
7422 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7424 (delete_insn): Rename param "insn" to "uncast_insn", introducing
7425 a new local "insn" with a checked cast to rtx_insn *. Drop use of
7426 SET_BB_HEAD and SET_BB_END.
7427 (create_basic_block_structure): Drop use of SET_BB_HEAD and
7429 (rtl_delete_block): Drop use of SET_BB_HEAD.
7430 (rtl_split_block): Drop use of SET_BB_END.
7431 (emit_nop_for_unique_locus_between): Likewise.
7432 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7433 (block_label): Drop use of SET_BB_HEAD.
7434 (fixup_abnormal_edges): Drop use of SET_BB_END.
7435 (record_effective_endpoints): Drop use of SET_BB_HEADER.
7436 (relink_block_chain): Likewise.
7437 (fixup_reorder_chain): Drop use of SET_BB_END.
7438 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7439 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7440 rtx_insn **. Drop use of SET_BB_HEADER.
7441 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7443 (BB_HEAD): Delete this function.
7444 (SET_BB_HEAD): Likewise.
7446 (SET_BB_END): Likewise.
7447 (BB_HEADER): Likewise.
7448 (SET_BB_HEADER): Likewise.
7449 * emit-rtl.c (add_insn_after): Rename param "insn" to
7450 "uncast_insn", adding a new local "insn" and a checked cast to
7451 rtx_insn *. Drop use of SET_BB_END.
7452 (remove_insn): Strengthen locals "next" and "prev" from rtx to
7453 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
7454 (reorder_insns): Drop use of SET_BB_END.
7455 (emit_insn_after_1): Strengthen param "first" and locals "last",
7456 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
7457 (emit_pattern_after_noloc): Add checked cast.
7458 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7459 (restore_other_notes): Likewise.
7460 (move_insn): Likewise.
7461 (sched_extend_bb): Likewise.
7462 (fix_jump_move): Likewise.
7463 * ifcvt.c (noce_process_if_block): Likewise.
7464 (dead_or_predicable): Likewise.
7465 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7466 * reg-stack.c (change_stack): Drop use of SET_BB_END.
7467 * sel-sched-ir.c (sel_move_insn): Likewise.
7468 * sel-sched.c (move_nop_to_previous_block): Likewise.
7470 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7472 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7474 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7476 * basic-block.h (create_basic_block_structure): Strengthen params
7477 1 "head" and 2 "end" from rtx to rtx_insn *.
7478 * cfgrtl.c (create_basic_block_structure): Likewise.
7479 (rtl_create_basic_block): Update casts from void * to rtx to
7480 rtx_insn *, so that we can pass them as rtx_insn * to
7481 create_basic_block_structure.
7482 * sel-sched-ir.c (sel_create_basic_block): Likewise.
7484 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7486 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7488 (check_for_inc_dec): Strengthen param "insn" from rtx to
7491 * cselib.h (cselib_process_insn): Likewise.
7493 * cselib.c (cselib_record_sets): Likewise.
7494 (cselib_process_insn): Likewise.
7496 * dse.c (struct insn_info): Likewise for field "insn".
7497 (check_for_inc_dec_1): Likewise for local "insn".
7498 (check_for_inc_dec): Likewise for param "insn".
7499 (scan_insn): Likewise.
7500 (dse_step1): Likewise for local "insn".
7502 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7503 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
7505 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7507 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7508 from rtx to rtx_insn *.
7509 (DEP_PRO): Delete this function and...
7510 (SET_DEP_PRO): ...this function in favor of...
7511 (DEP_PRO): ...reinstate this macro.
7512 (DEP_CON): Delete this function and...
7513 (SET_DEP_CON): ...this function in favor of...
7514 (DEP_CON): ...reinstate this old macro.
7515 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7516 (init_dep): Likewise.
7517 (set_priorities): Likewise for both params.
7518 (sd_copy_back_deps): Likewise for params 1 and 2.
7520 * haifa-sched.c (priority): Likewise for param "insn" and local
7522 (set_priorities): Likewise for params "head" and "tail" and local
7524 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7526 (add_to_speculative_block): Add a checked cast.
7527 (create_check_block_twin): Drop use of SET_DEP_CON.
7528 (add_jump_dependencies): Strengthen params "insn" and "jump" from
7531 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7532 Drop use of SET_DEP_PRO
7533 (init_dep): Strengthen params "pro" and "con" from rtx to
7535 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
7539 (SET_DEP_PRO): Delete.
7540 (SET_DEP_CON): Delete.
7542 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7544 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7545 from rtx to rtx_insn *.
7546 (VINSN_INSN_RTX): Eliminate rvalue function and...
7547 (SET_VINSN_INSN): ...lvalue function in favor of...
7548 (VINSN_INSN_RTX): reinstate this old macro.
7550 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7551 in favor of VINSN_INSN_RTX.
7552 (VINSN_INSN_RTX): Delete this function.
7553 (SET_VINSN_INSN_RTX): Likewise.
7555 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7557 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7558 (BND_TO): Delete this function and...
7559 (SET_BND_TO): ...this functions in favor of...
7560 (BND_TO): ...reinstating this macro.
7561 (struct _fence): Strengthen field "executing_insns" from
7562 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
7563 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7564 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7565 and param "insn" from rtx to insn_t.
7566 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7569 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7571 (rtx_vec_t): Likewise.
7572 (struct sched_deps_info_def): Strengthen param of "start_insn"
7573 callback from rtx to rtx_insn *. Likewise for param "insn2" of
7574 "note_mem_dep" callback and first param of "note_dep" callback.
7576 * haifa-sched.c (add_to_speculative_block): Strengthen param
7577 "insn" from rtx to rtx_insn *.
7578 (clear_priorities): Likewise.
7579 (calc_priorities): Likewise for local "insn".
7581 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7582 Remove redundant checked cast.
7583 (haifa_note_mem_dep): Likewise for param "pending_insn".
7584 (haifa_note_dep): Likewise for param "elem".
7585 (note_mem_dep): Likewise for param "e".
7586 (sched_analyze_1): Add checked casts.
7587 (sched_analyze_2): Likewise.
7589 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7590 from rtx to rtx_insn *.
7591 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7592 from vec<rtx> * to vec<rtx_insn *> *.
7594 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7596 (flist_add): Strengthen param "executing_insns" from
7597 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7598 (advance_deps_context): Remove now-redundant checked cast.
7599 (init_fences): Replace uses of NULL_RTX with NULL.
7600 (merge_fences): Strengthen params "last_scheduled_insn" and
7601 "sched_next" from rtx to rtx_insn * and "executing_insns" from
7602 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7603 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7604 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7605 an instruction, rather than doing double-duty as a pattern.
7606 (return_nop_to_pool): Update for change of insn_t.
7607 (deps_init_id): Remove now-redundant checked cast.
7608 (struct sched_scan_info_def): Strengthen param of "init_insn"
7609 callback from rtx to insn_t.
7610 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7611 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7613 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7614 "end" from rtx to rtx_insn *.
7615 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7616 (rtx insn_rtx, bool force_unique_p)
7617 (BND_TO): Delete function.
7618 (SET_BND_TO): Delete function.
7620 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7622 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7623 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7625 (undo_transformations): Likewise for param "insn".
7626 (update_liveness_on_insn): Likewise.
7627 (compute_live_below_insn): Likewise for param "insn" and local
7629 (update_data_sets): Likewise for param "insn".
7630 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7631 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7632 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7634 (move_cond_jump): Likewise for param "insn".
7635 (move_cond_jump): Drop use of SET_BND_TO.
7636 (compute_av_set_on_boundaries): Likewise.
7637 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7638 (update_and_record_unavailable_insns): Strengthen local "bb_end"
7639 from rtx to rtx_insn *.
7640 (maybe_emit_renaming_copy): Likewise for param "insn".
7641 (maybe_emit_speculative_check): Likewise.
7642 (handle_emitting_transformations): Likewise.
7643 (remove_insn_from_stream): Likewise.
7644 (code_motion_process_successors): Strengthen local "succ" from rtx
7647 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7649 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7650 ilist_t, not _xlist_t;
7651 (ILIST_INSN): Define in terms of new union field "insn".
7652 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7654 (struct _list_node): Add new field "insn" to the union, of type
7656 (ilist_add): Replace macro with an inline function, requiring an
7658 (ilist_remove): Define this macro directly in terms of
7659 _list_remove, rather than indirectly via _xlist_remove.
7660 (ilist_clear): Likewise, in terms of _list_clear rather than
7662 (ilist_is_in_p): Replace macro with an inline function, requiring
7664 (_list_iter_cond_insn): New function.
7665 (ilist_iter_remove): Define this macro directly in terms of
7666 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7667 (ilist_iterator): Define directly in terms of _list_iterator
7668 rather than indirectly through _xlist_iterator.
7669 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7670 than in terms of _FOR_EACH_X.
7671 (FOR_EACH_INSN_1): Likewise.
7673 2014-08-26 Joseph Myers <joseph@codesourcery.com>
7677 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7678 DECL_HARD_REGISTER and return for invalid register specifications.
7679 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7680 DECL_HARD_REGISTER, call expand_one_error_var.
7681 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7682 CC_REGNUM with non-MODE_CC modes.
7683 (arm_regno_class): Return NO_REGS for PC_REGNUM.
7685 2014-08-26 Marek Polacek <polacek@redhat.com>
7688 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7690 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
7692 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7693 qi cost; add di cost.
7694 (cortexa57_addrcost_table): Likewise.
7696 2014-08-26 Marek Polacek <polacek@redhat.com>
7699 * expr.c (is_aligning_offset): Remove logical not.
7701 2014-08-26 Marek Polacek <polacek@redhat.com>
7704 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7705 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7707 2014-08-26 Richard Biener <rguenther@suse.de>
7709 PR tree-optimization/62175
7710 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7711 expand possibly trapping operations.
7713 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7715 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7716 "insn" from rtx to rtx_insn *.
7717 (permute_load): Likewise for param "insn".
7718 (permute_store): Likewise.
7719 (handle_special_swappables): Likewise for local "insn".
7720 (replace_swap_with_copy): Likewise for locals "insn" and
7722 (rs6000_analyze_swaps): Likewise for local "insn".
7724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7726 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7729 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7731 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7732 "note_list" from rtx to rtx_insn *.
7733 (BB_NOTE_LIST): Replace this function and...
7734 (SET_BB_NOTE_LIST): ...this function with...
7735 (BB_NOTE_LIST): ...the former macro implementation.
7737 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7738 local "from_start" from rtx to rtx_insn *. Strengthen param
7739 "to_endp" from rtx * to rtx_insn **.
7741 * haifa-sched.c (concat_note_lists): Likewise.
7742 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7744 (sel_restore_notes): Likewise.
7745 (move_bb_info): Likewise.
7746 (BB_NOTE_LIST): Delete this function.
7747 (SET_BB_NOTE_LIST): Delete this function.
7748 * sel-sched.c (create_block_for_bookkeeping): Eliminate
7749 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7753 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7754 from rtx * to rtx_insn **.
7755 (reorder2): Likewise.
7756 (dependencies_evaluation_hook): Strengthen params "head", "tail"
7757 from rtx to rtx_insn *.
7759 * doc/tm.texi: Update mechanically for above change to target.def.
7761 * sched-int.h (note_list): Strengthen this variable from rtx to
7763 (remove_notes): Likewise for both params.
7764 (restore_other_notes): Likewise for return type and first param.
7765 (struct ready_list): Strengthen field "vec" from rtx * to
7767 (struct dep_replacement): Strenghten field "insn" from rtx to
7769 (struct deps_desc): Likewise for fields "last_debug_insn",
7771 (struct haifa_sched_info): Likewise for callback field
7772 "can_schedule_ready_p"'s param, for first param of "new_ready"
7773 callback field, for both params of "rank" callback field, for
7774 first field of "print_insn" callback field (with a const), for
7775 both params of "contributes_to_priority" callback, for param
7776 of "insn_finishes_block_p" callback, for fields "prev_head",
7777 "next_tail", "head", "tail", for first param of "add_remove_insn"
7778 callback, for first param of "begin_schedule_ready" callback, for
7779 both params of "begin_move_insn" callback, and for second param
7780 of "advance_target_bb" callback.
7781 (add_dependence): Likewise for params 1 and 2.
7782 (sched_analyze): Likewise for params 2 and 3.
7783 (deps_analyze_insn): Likewise for param 2.
7784 (ready_element): Likewise for return type.
7785 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7786 (try_ready): Strenghten param from rtx to rtx_insn *.
7787 (sched_emit_insn): Likewise for return type.
7788 (record_delay_slot_pair): Likewise for params 1 and 2.
7789 (add_delay_dependencies): Likewise for param.
7790 (contributes_to_priority): Likewise for both params.
7791 (find_modifiable_mems): Likewise.
7793 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
7794 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
7795 "first_older_only_insn" from rtx to rtx_insn *.
7796 (arm_sched_reorder): Strengthen param "ready" from rtx * to
7799 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7800 "last_scheduled_iter0" from rtx to rtx_insn *.
7801 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7802 (c6x_sched_reorder_1): Strengthen param "ready" and locals
7803 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7804 "insn" from rtx to rtx_insn *.
7805 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7807 (c6x_sched_reorder2): Strengthen param "ready" and locals
7808 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7809 "insn" from rtx to rtx_insn *.
7810 (c6x_variable_issue): Add a checked cast when assigning from insn
7811 to ss.last_scheduled_iter0.
7812 (split_delayed_branch): Strengthen param "insn" and local "i1"
7813 from rtx to rtx_insn *.
7814 (split_delayed_nonbranch): Likewise.
7815 (undo_split_delayed_nonbranch): Likewise for local "insn".
7816 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7817 "entry_after", "end_packet", "head_insn", "tail_insn",
7818 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7819 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7820 to rtx_insn **. Remove now-redundant checked cast on last_insn,
7821 but add a checked cast on loop->start_label. Consolidate calls to
7822 avoid assigning result of gen_spkernel to "insn", now an
7825 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7826 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
7828 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7829 rtx_insn **. Strengthen locals "top", "next" from rtx to
7831 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7832 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7833 (add_parameter_dependencies): Strengthen params "call", "head" and
7834 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7835 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7836 (add_dependee_for_func_arg): Likewise for param "arg" and local
7838 (ix86_dependencies_evaluation_hook): Likewise for params "head",
7839 "tail" and locals "insn", "first_arg".
7841 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7842 for params "head", "tail" and locals "insn", "next", "next_tail".
7843 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7844 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7845 "insn", "lowest", "highest" from rtx to rtx_insn *.
7846 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7848 (ia64_sched_reorder2): Likewise.
7850 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7851 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
7852 from rtx * to rtx_insn **.
7853 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7855 (mep_print_sched_insn): Strengthen param "insn" from rtx to
7857 (mep_sched_reorder): Strengthen param "ready" from rtx * to
7858 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
7861 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7862 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
7864 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7865 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
7866 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7868 (vr4130_reorder): Likewise.
7869 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
7871 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7873 (mips_sched_reorder): Likewise.
7874 (mips_sched_reorder2): Likewise.
7876 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7878 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7879 Strengthen local "tmp" from rtx to rtx_insn *.
7880 (rs6000_sched_reorder2): Likewise.
7882 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7883 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7884 (s390_sched_reorder): Strengthen param "ready" from rtx * to
7885 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
7887 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7888 "tmp2" from rtx to rtx_insn *.
7889 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7890 Strengthen local "insn" from rtx to rtx_insn *.
7891 (ready_reorder): Strengthen param "ready" from rtx * to
7892 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7893 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
7894 (sh_reorder2): Likewise.
7896 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
7897 local "insn" from rtx to rtx_insn *.
7899 * haifa-sched.c (note_list): Strengthen this variable from rtx to
7901 (scheduled_insns): Strengthen this variable from vec<rtx> to
7903 (set_modulo_params): Likewise for locals "i1", "i2".
7904 (record_delay_slot_pair): Likewise for params "i1", "i2".
7905 (add_delay_dependencies): Likewise for param "insn".
7906 (cond_clobbered_p): Likewise.
7907 (recompute_todo_spec): Likewise for local "prev".
7908 (last_scheduled_insn): Likewise for this variable.
7909 (nonscheduled_insns_begin): Likewise.
7910 (model_set_excess_costs): Strengthen param "insns" from rtx * to
7912 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7914 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7915 Strengthen local "insn" from rtx to rtx_insn *.
7916 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7917 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7918 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7919 (ready_remove_first): Likewise for return type and local "t".
7920 (ready_element): Likewise for return type.
7921 (ready_remove): Likewise for return type and local "t".
7922 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7923 (check_clobbered_conditions): Strengthen local "x" from rtx to
7924 rtx_insn *, adding a checked cast.
7925 (schedule_insn): Likewise for param "insn".
7926 (remove_notes): Likewise for params "head", "tail" and locals
7927 "next_tail", "insn", "next".
7928 (struct haifa_saved_data): Likewise for fields
7929 "last_scheduled_insn", "nonscheduled_insns_begin".
7930 (save_backtrack_point): Update for change to field "vec" of
7932 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7934 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
7935 from rtx to rtx_insn *
7936 (resolve_dependencies): Strengthen param "insn" from rtx to
7938 (restore_other_notes): Likewise for return type, for param "head"
7939 and local "note_head".
7940 (undo_all_replacements): Likewise for local "insn".
7941 (first_nonscheduled_insn): Likewise for return type and local "insn".
7942 (queue_to_ready): Likewise for local "insn", adding checked casts.
7943 (early_queue_to_ready): Likewise for local "insn".
7944 (debug_ready_list_1): Strengthen local "p" from rtx * to
7946 (move_insn): Strengthen param "insn" and local "note" from rtx to
7948 (insn_finishes_cycle_p): Likewise for param "insn".
7949 (max_issue): Likewise for local "insn".
7950 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
7952 (commit_schedule): Strengthen param "prev_head" and local "insn"
7953 from rtx to rtx_insn *
7954 (prune_ready_list): Likewise for local "insn".
7955 (schedule_block): Likewise for locals "prev_head", "head", "tail",
7956 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7957 (set_priorities): Likewise for local "prev_head".
7958 (try_ready): Likewise for param "next".
7959 (fix_tick_ready): Likewise.
7960 (change_queue_index): Likewise.
7961 (sched_extend_ready_list): Update for change to field "vec" of
7963 (generate_recovery_code): Strengthen param "insn" from rtx to
7965 (begin_speculative_block): Likewise.
7966 (create_check_block_twin): Likewise for param "insn" and locals
7967 "label", "check", "twin". Introduce local "check_pat" to avoid
7968 "check" being used as a plain rtx before being used as an insn.
7969 (fix_recovery_deps): Add a checked cast to rtx_insn * when
7970 extracting elements from ready_list.
7971 (sched_remove_insn): Strengthen param "insn" from rtx to
7973 (sched_emit_insn): Likewise for return type.
7974 (ready_remove_first_dispatch): Likewise for return type and local
7977 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7979 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7982 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7983 from rtx to rtx_insn *.
7984 (add_dependence_list): Likewise for param "insn". Add a checked
7986 (add_dependence_list_and_free): Strengthen param "insn" from rtx
7987 to rtx_insn *. Strengthen param "list_p" from rtx * to
7989 (chain_to_prev_insn): Strengthen param "insn" and locals
7990 "prec_nonnote", "i" from rtx to rtx_insn *.
7991 (flush_pending_lists): Likewise for param "insn".
7992 (cur_insn): Likewise for this variable.
7993 (haifa_start_insn): Add a checked cast.
7994 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7995 (sched_analyze_reg): Likewise for param "insn".
7996 (sched_analyze_1): Likewise.
7997 (sched_analyze_2): Likewise. Add checked casts.
7998 (sched_analyze_insn): Likewise. Also for local "prev".
7999 (deps_analyze_insn): Likewise for param "insn".
8000 (sched_analyze): Likewise for params "head", "tail" and local "insn".
8001 (add_dependence_1): Likewise for params "insn", "elem".
8002 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
8003 (parse_add_or_inc): Likewise for param "insn".
8004 (find_inc): Likewise for local "inc_cand".
8005 (find_modifiable_mems): Likewise for params "head", "tail" and
8006 locals "insn", "next_tail".
8008 * sched-ebb.c (init_ready_list): Likewise for local "insn".
8009 (begin_schedule_ready): Likewise for param "insn".
8010 (begin_move_insn): Likewise for params "insn" and "last".
8011 (ebb_print_insn): Strengthen param "insn" from const_rtx to
8013 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
8014 (ebb_contributes_to_priority): Likewise for params "next", "insn".
8015 (ebb_add_remove_insn): Likewise for param "insn".
8016 (advance_target_bb): Likewise.
8018 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8020 (check_live): Likewise for param "insn".
8021 (init_ready_list): Likewise for local "insn".
8022 (can_schedule_ready_p): Likewise for param "insn".
8023 (begin_schedule_ready): Likewise.
8024 (new_ready): Likewise for param "next".
8025 (rgn_print_insn): Likewise for param "insn".
8026 (rgn_rank): Likewise for params "insn1", "insn2".
8027 (contributes_to_priority): Likewise for params "next", "insn".
8028 (rgn_insn_finishes_block_p): Likewise for param "insn".
8029 (add_branch_dependences): Likewise for params "head", "tail" and
8030 locals "insn", "last".
8031 (rgn_add_remove_insn): Likewise for param "insn".
8032 (advance_target_bb): Likewise.
8034 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8035 const_rtx to const rtx_insn *.
8037 * sel-sched-dump.h (sel_print_insn): Likewise.
8039 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8040 (deps_init_id): Likewise.
8042 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8043 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8046 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8048 * output.h (final_start_function): Strengthen param 1 from rtx to
8051 * final.c (final_start_function): Likewise, renaming back from
8052 "uncast_first" to "first", and dropping the checked cast from rtx
8055 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8057 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8058 * final.c (final): Likewise. Rename param back from
8059 "uncast_first" to "first" and eliminate the checked cast from rtx
8062 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8064 * output.h (shorten_branches): Strengthen param from rtx to
8067 * final.c (shorten_branches): Likewise, renaming param back from
8068 "uncast_first" to "first", and dropping the checked cast from rtx
8071 * genattr.c (gen_attr): Likewise when writing out the prototype of
8074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8076 * sched-int.h (struct haifa_sched_info): Strengthen fields
8077 "prev_head" and "next_tail" from rtx to rtx_insn *.
8079 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8081 * rtl.h (rtx_jump_table_data::get_labels): New method.
8082 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8083 with use of the new rtx_jump_table_data::get_labels method.
8084 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8085 to rtx_jump_table_data *. Simplify by using get_labels method.
8086 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8087 a dyn_cast, introducing local "table", using it to replace
8088 label-lookup logic with a get_labels method call.
8089 (patch_jump_insn): Simplify using get_labels method.
8090 * dwarf2cfi.c (create_trace_edges): Likewise.
8091 * rtlanal.c (label_is_jump_target_p): Likewise.
8093 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8095 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8098 * emit-rtl.c (unshare_all_rtl_1): Likewise.
8099 (unshare_all_rtl_again): Likewise, also for local "p".
8101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8103 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8105 * cfgrtl.c (delete_insn_and_edges): Likewise.
8107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8109 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8110 from rtx to rtx_insn *.
8112 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8116 * function.c (thread_prologue_and_epilogue_insns): Likewise for
8117 locals "returnjump", "epilogue_end", "insn", "next".
8119 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8120 "returnjump" from rtx * to rtx_insn **.
8121 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8125 * basic-block.h (struct edge_def). Strengthen "r" within
8126 union edge_def_insns from rtx to rtx_insn *.
8128 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8129 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
8131 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8132 from rtx to rtx_insn *.
8133 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8135 * postreload-gcse.c (reg_killed_on_edge): Likewise.
8136 (reg_used_on_edge): Likewise.
8137 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8138 (gt_pch_nx): New overload for rtx_insn *&.
8139 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8140 from rtx to rtx_insn *.
8142 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8144 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8145 from rtx to rtx_insn *.
8146 (BB_FOOTER): Replace function with access macro.
8147 (SET_BB_FOOTER): Delete.
8149 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8151 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8152 (emit_barrier_after_bb): Likewise.
8153 (record_effective_endpoints): Likewise.
8154 (relink_block_chain): Likewise.
8155 (fixup_fallthru_exit_predecessor): Likewise.
8156 (cfg_layout_duplicate_bb): Likewise.
8157 (cfg_layout_split_block): Likewise.
8158 (cfg_layout_delete_block): Likewise.
8159 (cfg_layout_merge_blocks): Likewise.
8160 (BB_FOOTER): Delete function.
8161 (SET_BB_FOOTER): Delete function.
8162 * combine.c (update_cfg_for_uncondjump): Replace uses of
8163 SET_BB_FOOTER with BB_FOOTER.
8165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8167 * except.h (struct eh_landing_pad_d): Strengthen field
8168 "landing_pad" from rtx to rtx_code_label *.
8170 * except.c (sjlj_emit_dispatch_table): Likewise for param
8172 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8174 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8176 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8177 first param from rtx to rtx_insn *.
8178 * config/xtensa/xtensa.c (struct machine_function): Likewise for
8179 field "set_frame_ptr_insn".
8180 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8181 "csend" from rtx to rtx_code_label *.
8182 (xtensa_expand_atomic): Likewise for local "csloop".
8183 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8185 (xtensa_call_tls_desc): Likewise for return type and locals
8186 "call_insn", "insns".
8187 (xtensa_legitimize_tls_address): Likewise for local "insns".
8188 (xtensa_expand_prologue): Likewise for locals "insn", "first".
8190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8192 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8193 first param from rtx to rtx_insn *.
8194 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8197 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8199 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8200 Strengthen param 1 from rtx to rtx_insn *.
8201 (tilepro_output_cbranch): Likewise.
8202 (tilepro_adjust_insn_length): Likewise.
8203 (tilepro_final_prescan_insn): Likewise for sole param.
8205 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8206 Likewise for local "last".
8207 (cbranch_predicted_p): Likewise for param "insn".
8208 (tilepro_output_simple_cbranch_with_opcode): Likewise.
8209 (tilepro_output_cbranch_with_opcode): Likewise.
8210 (tilepro_output_cbranch): Likewise.
8211 (frame_emit_load): Likewise for return type and locals "seq",
8213 (emit_sp_adjust): Likewise for return type and local "insn".
8214 (tilepro_expand_epilogue): Likewise for locals "last_insn",
8216 (tilepro_adjust_insn_length): Likewise for param "insn".
8217 (next_insn_to_bundle): Likewise for return type and params
8219 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8220 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8222 (match_addli_pcrel): Likewise for param "insn".
8223 (replace_addli_pcrel): Likewise.
8224 (match_auli_pcrel): Likewise.
8225 (replace_auli_pcrel): Likewise.
8226 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8228 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8229 "queue", "next_queue", "prev".
8230 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8231 (tilepro_final_prescan_insn): Likewise for param "insn".
8233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8235 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8236 Strengthen param 1 from rtx to rtx_insn *.
8237 (tilegx_output_cbranch): Likewise.
8238 (tilegx_adjust_insn_length): Likewise.
8239 (tilegx_final_prescan_insn): Likewise for sole param.
8241 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8243 (cbranch_predicted_p): Likewise for param "insn".
8244 (tilegx_output_simple_cbranch_with_opcode): Likewise.
8245 (tilegx_output_cbranch_with_opcode): Likewise.
8246 (tilegx_output_cbranch): Likewise.
8247 (frame_emit_load): Likewise for return type.
8248 (set_frame_related_p): Likewise for locals "seq", "insn".
8249 (emit_sp_adjust): Likewise for return type, and for local "insn".
8250 Introduce local "pat" for use in place of "insn" where the latter
8251 isn't an instruction.
8252 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8253 from rtx to rtx_insn *.
8254 (tilegx_adjust_insn_length): Likewise for param "insn".
8255 (next_insn_to_bundle): Likewise for return type and params "r" and
8257 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8259 (replace_insns): Likewise for params "old_insn", "new_insns".
8260 (replace_mov_pcrel_step1): Likewise for param "insn" and local
8262 (replace_mov_pcrel_step2): Likewise.
8263 (replace_mov_pcrel_step3): Likewise.
8264 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8266 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8267 "queue", "next_queue", "prev".
8268 (tilegx_output_mi_thunk): Likewise for local "insn".
8269 (tilegx_final_prescan_insn): Likewise for param "insn".
8271 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8273 * config/spu/spu.c (frame_emit_store): Strengthen return type from
8275 (frame_emit_load): Likewise.
8276 (frame_emit_add_imm): Likewise, also for local "insn".
8277 (spu_expand_prologue): Likewise for local "insn".
8278 (struct spu_bb_info): Likewise for field "prop_jump".
8279 (emit_nop_for_insn): Likewise for param "insn" and local
8281 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8283 (spu_emit_branch_hint): Likewise for params "before", "branch" and
8284 locals "hint", "insn".
8285 (get_branch_target): Likewise for param "branch".
8286 (insn_clobbers_hbr): Likewise for param "insn".
8287 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8288 locals "insn", "before_4", "before_16".
8289 (insert_hbrp): Likewise for local "insn".
8290 (spu_machine_dependent_reorg): Likewise for locals "branch",
8291 "insn", "next", "bbend".
8292 (uses_ls_unit): Likewise for param "insn".
8293 (get_pipe): Likewise.
8294 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8295 introducing a checked cast.
8296 (spu_sched_adjust_cost): Likewise for params "insn" and
8298 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8299 (spu_sms_res_mii): Likewise.
8301 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8303 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8304 from rtx to rtx_insn *.
8305 (output_cbranch): Likewise for param 6.
8306 (output_return): Likewise for param 1.
8307 (output_sibcall): Likewise.
8308 (output_v8plus_shift): Likewise.
8309 (output_v8plus_mult): Likewise.
8310 (output_v9branch): Likewise for param 7.
8311 (output_cbcond): Likewise for param 3.
8313 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8315 (sparc_legitimize_pic_address): Likewise.
8316 (sparc_emit_call_insn): Likewise.
8317 (emit_save_or_restore_regs): Likewise.
8318 (emit_window_save): Likewise for return type and local "insn".
8319 (sparc_expand_prologue): Likewise for local "insn".
8320 (sparc_flat_expand_prologue): Likewise.
8321 (output_return): Likewise for param "insn".
8322 (output_sibcall): Likewise for param "insn" and local "delay".
8323 (output_ubranch): Likewise for param "insn".
8324 (output_cbranch): Likewise.
8325 (output_cbcond): Likewise.
8326 (output_v9branch): Likewise.
8327 (output_v8plus_shift): Likewise.
8328 (sparc_output_mi_thunk): Likewise for local "insn".
8329 (get_some_local_dynamic_name): Likewise.
8330 (output_v8plus_mult): Likewise for param "insn".
8332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8334 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8335 from rtx to rtx_insn *.
8336 (output_branchy_insn): Likewise for param 3.
8337 (output_far_jump): Likewise for param 1.
8338 (final_prescan_insn): Likewise.
8339 (sh_insn_length_adjustment): Likewise for sole param.
8341 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8342 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8344 (sh_emit_compare_and_set): Likewise for local "lab".
8345 (output_far_jump): Strengthen param "insn" and local "prev" from
8347 (output_branchy_insn): Likewise for param "insn" and local
8349 (output_ieee_ccmpeq): Likewise for param "insn".
8350 (struct label_ref_list_d): Strengthen field "label" from rtx to
8352 (pool_node): Likewise.
8353 (pool_window_label): Likewise for this global.
8354 (add_constant): Likewise for return type and locals "lab", "new_rtx".
8355 (dump_table): Strengthen params "start", "barrier" and local
8356 "scan" from rtx to rtx_insn *.
8357 (broken_move): Likewise for param "insn".
8358 (untangle_mova): Likewise for params "first_mova" and "new_mova".
8359 Strengthen param "first_mova" from rtx * to rtx_insn **.
8360 (mova_p): Likewise for param "insn".
8361 (fixup_mova): Likewise for param "mova".
8362 (find_barrier): Likewise for return type, params "mova" and
8363 "from", and locals "barrier_before_mova", "found_barrier",
8364 "good_barrier", "orig", "last_symoff", "next". Strengthen local
8365 "label" from rtx to rtx_code_label *.
8366 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8368 (sh_reorg): Likewise for locals "link", "scan", "barrier".
8369 (split_branches): Likewise for param "first" and local "insn".
8370 (final_prescan_insn): Likewise for param "insn".
8371 (sequence_insn_p): Likewise for locals "prev", "next".
8372 (sh_insn_length_adjustment): Likewise for param "insn".
8373 (sh_can_redirect_branch): Likewise for local "insn".
8374 (find_r0_life_regions): Likewise for locals "end", "insn".
8375 (sh_output_mi_thunk): Likewise for local "insns".
8377 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8379 * config/score/score.c (score_output_mi_thunk): Strengthen local
8380 "insn" from rtx to rtx_insn *.
8381 (score_prologue): Likewise.
8383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8385 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8386 1 from rtx to rtx_insn *.
8387 (s390_emit_jump): Likewise for return type.
8388 (s390_emit_call): Likewise.
8389 (s390_load_got): Likewise.
8391 * config/s390/s390.c (last_scheduled_insn): Likewise for this
8393 (s390_match_ccmode): Likewise for param "insn".
8394 (s390_emit_jump): Likewise for return type.
8395 (s390_split_branches): Likewise for local "label".
8396 (struct constant): Strengthen field "label" from rtx to
8398 (struct constant_pool): Likewise for field "label". Strengthen
8399 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8401 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8403 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8404 (s390_end_pool): Likewise.
8405 (s390_dump_pool): Likewise for local "insn".
8406 (s390_mainpool_start): Likewise.
8407 (s390_chunkify_start): Likewise.
8408 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8409 with insns. Strengthen locals "label", "jump", "barrier", "next",
8410 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8411 (s390_chunkify_finish): Strengthen local "insn" from rtx to
8413 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8414 "jump", "label", "next_insn".
8415 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8416 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8418 (s390_load_got): Likewise for return type and local "insns".
8419 (s390_save_gprs_to_fprs): Likewise for local "insn".
8420 (s390_restore_gprs_from_fprs): Likewise.
8421 (pass_s390_early_mach::execute): Likewise.
8422 (s390_emit_prologue): Likewise for local "insns".
8423 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8425 (s390_emit_call): Strengthen return type and local "insn" from
8427 (s390_emit_tpf_eh_return): Likewise for local "insn".
8428 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8429 "next_insn", introducing locals "s_pat", "rpat" to allow this.
8430 (s390_fix_long_loop_prediction): Likewise for param "insn" and
8432 (s390_non_addr_reg_read_p): Likewise for param "insn".
8433 (find_cond_jump): Likewise for return type and param "insn".
8434 (s390_swap_cmp): Likewise for param "insn".
8435 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8436 "prev_insn", "next_insn".
8437 (s390_reorg): Likewise for locals "insn", "target".
8438 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8439 (s390_sched_variable_issue): For now, rename param "insn" to
8440 "uncast_insn", introducing a checked cast.
8441 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8443 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8444 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
8446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8448 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8449 param from rtx to rtx_insn *.
8450 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8452 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8454 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8455 4 from rtx to rtx_insn *.
8456 (rs6000_final_prescan_insn): Likewise for first param.
8457 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8459 (rs6000_get_some_local_dynamic_name): Likewise.
8460 (output_cbranch): Likewise for param "insn".
8461 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8462 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8463 (rs6000_emit_allocate_stack): Likewise for local "insn".
8464 (load_cr_save): Likewise.
8465 (restore_saved_cr): Likewise.
8466 (restore_saved_lr): Likewise.
8467 (emit_cfa_restores): Likewise.
8468 (rs6000_output_function_epilogue): Likewise for locals "insn" and
8469 "deleted_debug_label".
8470 (rs6000_output_mi_thunk): Likewise for local "insn".
8471 (rs6000_final_prescan_insn): Likewise for param "insn".
8473 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8475 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8476 Strengthen param "insn" from rtx to rtx_insn *.
8477 * config/picochip/picochip.c (picochip_current_prescan_insn):
8478 Likewise for this variable.
8479 (picochip_final_prescan_insn): Likewise for param "insn".
8481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8483 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8484 from rtx to rtx_insn *.
8485 (pa_output_indirect_call): Likewise.
8486 (pa_adjust_insn_length): Likewise.
8487 (pa_attr_length_millicode_call): Likewise.
8488 (pa_attr_length_call): Likewise.
8489 (pa_attr_length_indirect_call): Likewise.
8491 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8493 (pa_attr_length_millicode_call): Likewise.
8494 (pa_attr_length_call): Likewise.
8495 (pa_output_call): Likewise.
8496 (pa_attr_length_indirect_call): Likewise.
8497 (pa_output_indirect_call): Likewise.
8499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8501 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8502 Strengthen first param from rtx to rtx_insn *.
8503 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8508 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8509 type from rtx to rtx_insn *.
8510 (mips_expand_call): Likewise.
8511 (mips_adjust_insn_length): Likewise for first param.
8512 (mips_output_conditional_branch): Likewise.
8513 (mips_output_order_conditional_branch): Likewise.
8514 (mips_final_prescan_insn): Likewise.
8516 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8517 rtx_insn * for the SEQUENCE case.
8518 (SEQ_END): Likewise.
8519 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8520 (mips_emit_call_insn): Likewise, also for local "insn".
8521 (mips16_gp_pseudo_reg): Likewise for local "scan".
8522 (mips16_build_call_stub): Likewise for return type and for local
8523 "insn". Introduce a new local "pattern" so that "insn" can indeed
8525 (mips_expand_call): Strengthen return type and local "insn" from
8527 (mips_block_move_loop): Strengthen local "label" from rtx to
8529 (mips_expand_synci_loop): Likewise for locals "label",
8531 (mips_set_frame_expr): Strengthen local "insn" from rtx to
8533 (mips16e_collect_argument_saves): Likewise for locals "insn",
8535 (mips_find_gp_ref): Likewise for param of callback for "pred"
8536 param, and for local "insn".
8537 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8538 (mips_insn_has_flexible_gp_ref_p): Likewise.
8539 (mips_epilogue_emit_cfa_restores): Likewise for return type and
8541 (mips_epilogue_set_cfa): Likewise for local "insn".
8542 (mips_expand_epilogue): Likewise.
8543 (mips_adjust_insn_length): Likewise for param "insn".
8544 (mips_output_conditional_branch): Likewise.
8545 (mips_output_order_conditional_branch): Likewise.
8546 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8547 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8548 "falu2_turn_enabled_insn".
8549 (mips_builtin_branch_and_move): Strengthen locals "true_label",
8550 "done_label" from rtx to rtx_code_label *.
8551 (struct mips16_constant): Likewise for field "label".
8552 (mips16_add_constant): Likewise for return type.
8553 (mips16_emit_constants_1): Strengthen return type and param "insn"
8554 from rtx to rtx_insn *.
8555 (mips16_emit_constants): Likewise for param "insn".
8556 (mips16_insn_length): Likewise.
8557 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8558 to rtx_code_label *.
8559 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8560 from rtx to rtx_insn *.
8561 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8562 "jump". Strengthen local "label" from rtx to rtx_code_label *.
8563 (r10k_simplify_address): Strengthen param "insn" and local
8564 "def_insn" from rtx to rtx_insn *.
8565 (r10k_safe_address_p): Strengthen param "insn" from rtx to
8567 (r10k_needs_protection_p_1): Update target type of cast of data
8568 from to rtx to rtx_insn *.
8569 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8570 rtx * to rtx_insn **.
8571 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8573 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8574 (mips_call_expr_from_insn): Likewise for param "insn".
8575 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8576 (mips_find_pic_call_symbol): Likewise for param "insn".
8577 (mips_annotate_pic_calls): Likewise for local "insn".
8578 (mips_sim_insn): Likewise for this variable.
8579 (struct mips_sim): Likewise for field "insn" within elements of
8581 (mips_sim_wait_reg): Likewise for param "insn".
8582 (mips_sim_wait_regs): Likewise.
8583 (mips_sim_wait_units): Likewise.
8584 (mips_sim_wait_insn): Likewise.
8585 (mips_sim_issue_insn): Likewise.
8586 (mips_sim_finish_insn): Likewise.
8587 (mips_seq_time): Likewise for param "seq" and local "insn".
8588 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8589 locals "first", "second".
8590 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8591 "last", "last2", "next".
8592 (mips_avoid_hazard): Likewise for params "after", "insn".
8593 (mips_reorg_process_insns): Likewise for locals "insn",
8594 "last_insn", "subinsn", "next_insn".
8595 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8596 (mips16_split_long_branches): Likewise for locals "insn" "jump",
8598 (mips_output_mi_thunk): Likewise for local "insn".
8599 (mips_final_prescan_insn): Likewise for param "insn".
8601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8603 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8604 Strengthen return type and local "insns" from rtx to rtx_insn *.
8605 (microblaze_legitimize_tls_address): Likewise for local "insns".
8606 (microblaze_block_move_loop): Strengthen local "label" from rtx
8607 to rtx_code_label *.
8608 (microblaze_expand_prologue): Strengthen two locals named "insn"
8609 from rtx to rtx_insn *.
8610 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8611 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8612 "insn". Strengthen locals "div_label", "div_end_label" from rtx
8613 to rtx_code_label *.
8615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8617 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8618 param from rtx to rtx_insn *.
8619 (mep_reuse_lo): Likewise for third param.
8620 (mep_use_post_modify_p): Likewise for first param.
8621 (mep_core_address_length): Likewise.
8622 (mep_cop_address_length): Likewise.
8623 (mep_final_prescan_insn): Likewise.
8624 (mep_store_data_bypass_p): Likewise for both params.
8625 (mep_mul_hilo_bypass_p): Likewise.
8626 (mep_ipipe_ldc_p): Likewise for param.
8628 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8629 (mep_rewrite_mult): Likewise.
8630 (mep_rewrite_mulsi3): Likewise.
8631 (mep_rewrite_maddsi3): Likewise.
8632 (mep_reuse_lo_p_1): Likewise.
8633 (mep_reuse_lo_p): Likewise.
8634 (mep_frame_expr): Likewise.
8635 (mep_make_parallel): Likewise for both params.
8636 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8638 (mep_use_post_modify_p): Likewise for param "insn".
8639 (mep_core_address_length): Likewise.
8640 (mep_cop_address_length): Likewise.
8641 (mep_reg_set_in_function): Likewise for local "insn".
8642 (mep_asm_without_operands_p): Likewise.
8643 (F): Likewise for return type and param "x".
8644 (add_constant): Likewise for local "insn".
8645 (maybe_dead_move): Likewise for return type and local "insn".
8646 (mep_expand_prologue): Likewise for local "insn".
8647 (mep_final_prescan_insn): Likewise for param "insn".
8648 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8649 "next", "follow", "x".
8650 (mep_insert_repeat_label_last): Likewise for return type, param
8651 "last_insn", and locals "next", "prev". Strengthen param "label"
8652 from rtx to rtx_code_label *.
8653 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8655 (struct mep_doloop_end): Likewise for fields "insn" and
8657 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8658 Strengthen local "repeat_label" from rtx to rtx_code_label *.
8659 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8661 (mep_invert_branch): Likewise for params "insn" and "after".
8662 (mep_reorg_erepeat): Likewise for param "insns" and locals
8663 "insn", "prev", "new_last", "barrier", "user". Strengthen local
8664 "l" from rtx to rtx_code_label *.
8665 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8666 from rtx to rtx_insn *.
8667 (mep_reorg_addcombine): Likewise for param "insns" and locals
8669 (add_sp_insn_p): Likewise for param "insn".
8670 (mep_reorg_noframe): Likewise for param "insns" and locals
8671 "start_frame_insn", "end_frame_insn", "next".
8672 (mep_reorg): Likewise for local "insns".
8673 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
8675 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8676 (mep_mul_hilo_bypass_p): Likewise.
8677 (mep_ipipe_ldc_p): Likewise for param "insn".
8678 (mep_make_bundle): Likewise for return type, param "cop" and local
8679 "insn", splitting out the latter into a new local "seq" for when it
8680 is a SEQUENCE rather than an insn.
8681 (core_insn_p): Likewise for param "insn".
8682 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8683 "last", "first", "note", "prev", "core_insn".
8685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8687 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8689 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8690 (m68k_final_prescan_insn): Likewise for first param.
8692 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8693 (m68k_set_frame_related): Likewise for param "insn".
8694 (output_btst): Likewise for param "insn".
8695 (m68k_final_prescan_insn): Likewise.
8696 (m68k_move_to_reg): Likewise for local "insn".
8697 (m68k_call_tls_get_addr): Likewise for local "insns".
8698 (m68k_call_m68k_read_tp): Likewise.
8699 (strict_low_part_peephole_ok): Likewise for param "first_insn".
8700 (m68k_output_mi_thunk): Likewise for local "insn".
8702 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8704 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8705 first param from rtx to rtx_insn *.
8706 (iq2000_adjust_insn_length): Likewise.
8707 (iq2000_output_conditional_branch): Likewise.
8708 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8709 "insn" and local "nop_insn".
8710 (iq2000_annotate_frame_insn): Likewise for param "insn".
8711 (iq2000_expand_prologue): Likewise for both locals "insn".
8712 (iq2000_adjust_insn_length): Likewise for param "insn".
8713 (iq2000_output_conditional_branch): Likewise.
8715 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8717 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8718 "insns" from rtx to rtx_insn *.
8719 (ia64_emit_cond_move): Likewise for locals "insn", "first".
8720 (struct spill_fill_data): Likewise for field "init_after" and for
8721 elements of array field "prev_insn".
8722 (spill_restore_mem): Likewise for locals "insn", "first".
8723 (do_spill): Likewise for local "insn".
8724 (do_restore): Likewise.
8725 (ia64_expand_prologue): Likewise.
8726 (ia64_expand_epilogue): Likewise.
8727 (emit_insn_group_barriers): Likewise for locals "insn",
8729 (emit_all_insn_group_barriers): Likewise for locals "insn",
8731 (dfa_stop_insn): Likewise for this global.
8732 (dfa_pre_cycle_insn): Likewise.
8733 (ia64_nop): Likewise.
8734 (final_emit_insn_group_barriers): Likewise for locals "insn",
8736 (emit_predicate_relation_info): Likewise for locals "head", "n",
8738 (ia64_reorg): Likewise for local "insn".
8739 (ia64_output_mi_thunk): Likewise.
8740 (expand_vec_perm_interleave_2): Likewise for local "seq".
8742 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8744 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8745 param 1 "insn" from rtx to rtx_insn *.
8746 (ix86_use_lea_for_mov): Likewise.
8747 (ix86_avoid_lea_for_addr): Likewise.
8748 (ix86_split_lea_for_addr): Likewise.
8749 (ix86_lea_for_add_ok): Likewise.
8750 (ix86_output_call_insn): Likewise.
8752 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8753 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8754 (ix86_output_function_epilogue): Likewise for locals "insn",
8755 "deleted_debug_label".
8756 (legitimize_tls_address): Likewise for local "insn".
8757 (get_some_local_dynamic_name): Likewise.
8758 (increase_distance): Likewise for params "prev", "next".
8759 (distance_non_agu_define_in_bb): Likewise for params "insn",
8760 "start" and locals "prev", "next".
8761 (distance_non_agu_define): Likewise for param "insn".
8762 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8763 locals "next", "prev".
8764 (distance_agu_use): Likewise for param "insn".
8765 (ix86_lea_outperforms): Likewise.
8766 (ix86_ok_to_clobber_flags): Likewise.
8767 (ix86_avoid_lea_for_add): Likewise.
8768 (ix86_use_lea_for_mov): Likewise.
8769 (ix86_avoid_lea_for_addr): Likewise.
8770 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8771 (ix86_split_lea_for_addr): Likewise for param "insn".
8772 (ix86_lea_for_add_ok): Likewise for param "insn".
8773 (ix86_expand_carry_flag_compare): Likewise for local
8775 (ix86_expand_int_movcc): Likewise.
8776 (ix86_output_call_insn): Likewise for param "insn".
8777 (ix86_output_call_insn): Likewise for local "i".
8778 (x86_output_mi_thunk): Introduce local "insn", using it in place
8779 of "tmp" when dealing with insns.
8780 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8782 (ix86_pad_returns): Likewise for locals "ret", "prev".
8783 (ix86_count_insn_bb): Likewise for local "insn".
8784 (ix86_pad_short_function): Likewise for locals "ret", "insn".
8785 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8786 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8787 (expand_vec_perm_interleave2): Likewise for local "seq".
8788 (expand_vec_perm_vperm2f128_vblend): Likewise.
8789 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
8790 call to for_each_rtx with for_each_rtx_in_insn.
8792 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8794 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8795 "label" from rtx to rtx_code_label *.
8796 (ix86_expand_prologue): Likewise.
8797 (ix86_expand_split_stack_prologue): Likewise for locals "label",
8799 (ix86_split_idivmod): Likewise for locals "end_label" and
8801 (ix86_expand_branch): Likewise for local "label2".
8802 (ix86_expand_aligntest): Likewise for return type and local "label".
8803 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8805 (expand_movmem_epilogue): Likewise for the various locals named
8807 (expand_setmem_epilogue): Likewise.
8808 (expand_small_movmem_or_setmem): Likewise for local "label".
8809 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8810 Strengthen param "done_label" from rtx * to rtx_code_label **.
8811 Strengthen locals "loop_label" and "label" from rtx to
8813 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8814 Likewise for locals "loop_label", "label".
8815 (ix86_expand_set_or_movmem): Likewise for locals "label",
8816 "jump_around_label", "hot_label".
8817 (ix86_expand_strlensi_unroll_1): Likewise for locals
8818 "align_2_label", align_3_label", "align_4_label", "end_0_label",
8820 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8821 (void ix86_emit_i387_log1p): Likewise for locals "label1",
8822 "label2", "jump_label".
8823 (ix86_expand_sse_compare_and_jump): Likewise for return type and
8825 (ix86_expand_lfloorceil): Likewise for local "label".
8826 (ix86_expand_rint): Likewise.
8827 (ix86_expand_floorceildf_32): Likewise.
8828 (ix86_expand_floorceil): Likewise.
8829 (ix86_expand_rounddf_32): Likewise.
8830 (ix86_expand_trunc): Likewise.
8831 (ix86_expand_truncdf_32): Likewise.
8832 (ix86_expand_round): Likewise.
8834 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8836 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8837 first param from rtx to rtx_insn *.
8838 (h8300_insn_length_from_table): Likewise.
8839 * config/h8300/h8300.c (F): Likewise for return type and param
8841 (Fpa): Add a checked cast to rtx_insn *.
8842 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8844 (final_prescan_insn): Likewise for param "insn".
8845 (h8300_binary_length): Likewise.
8846 (h8300_insn_length_from_table): Likewise.
8848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8850 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8851 Strengthen first param "insn" from rtx to rtx_insn *.
8853 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8855 (frame_insn): Likewise for return type. Introduce local "insn"
8856 for use in place of local "x" for use as an rtx_insn *.
8857 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8858 (epiphany_expand_prologue): Likewise for local "insn".
8859 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8860 * config/epiphany/resolve-sw-modes.c
8861 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8864 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8866 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8867 param from rtx to rtx_insn *.
8868 (c6x_final_prescan_insn): Likewise for first param.
8870 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8871 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8872 (c6x_expand_compare): Strengthen local "insns" from rtx to
8874 (c6x_get_unit_specifier): Likewise for param "insn".
8875 (c6x_print_unit_specifier_field): Likewise.
8876 (c6x_final_prescan_insn): Likewise.
8877 (emit_add_sp_const): Likewise for local "insn".
8878 (c6x_expand_prologue): Likewise.
8880 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8882 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8883 param 1 from rtx to rtx_insn *.
8884 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8885 the various locals named "insn".
8886 (expand_epilogue_reg_restore): Likewise.
8887 (frame_related_constant_load): Likewise.
8888 (add_to_reg): Likewise.
8889 (emit_link_insn): Likewise.
8890 (do_link): Likewise.
8891 (expand_interrupt_handler_prologue): Likewise.
8892 (branch_dest): Likewise for param "branch".
8893 (asm_conditional_branch): Likewise for param "insn".
8894 (gen_one_bundle): Likewise for elements of param "slot" and local
8896 (bfin_gen_bundles): Likewise for locals "insn", "next" and
8897 elements of local "slot".
8898 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8899 "queue", "next_queue", "prev".
8900 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8901 (add_sched_insns_for_speculation): Likewise for local "insn".
8903 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8905 * config/avr/avr-protos.h (output_movqi): Strengthen first param
8906 from rtx to rtx_insn *.
8907 (output_movhi): Likewise.
8908 (output_movsisf): Likewise.
8909 (avr_out_tstsi): Likewise.
8910 (avr_out_tsthi): Likewise.
8911 (avr_out_tstpsi): Likewise.
8912 (avr_out_compare): Likewise.
8913 (avr_out_compare64): Likewise.
8914 (avr_out_movpsi): Likewise.
8915 (ashlqi3_out): Likewise.
8916 (ashlhi3_out): Likewise.
8917 (ashlsi3_out): Likewise.
8918 (ashrqi3_out): Likewise.
8919 (ashrhi3_out): Likewise.
8920 (ashrsi3_out): Likewise.
8921 (lshrqi3_out): Likewise.
8922 (lshrhi3_out): Likewise.
8923 (lshrsi3_out): Likewise.
8924 (avr_out_ashlpsi3): Likewise.
8925 (avr_out_ashrpsi3): Likewise.
8926 (avr_out_lshrpsi3): Likewise.
8927 (avr_out_fract): Likewise.
8928 (avr_out_sbxx_branch): Likewise.
8929 (avr_out_round): Likewise.
8930 (avr_out_xload): Likewise.
8931 (avr_out_movmem): Likewise.
8932 (adjust_insn_length): Likewise.
8933 (avr_out_lpm): Likewise.
8934 (reg_unused_after): Likewise.
8935 (_reg_unused_after): Likewise.
8936 (avr_jump_mode): Likewise for second param.
8937 (jump_over_one_insn): Likewise for first param.
8938 (avr_final_prescan_insn): Likewise.
8939 (out_shift_with_cnt): Likewise for second param.
8941 * config/avr/avr.c (get_sequence_length): Likewise for param
8942 "insns" and local "insn".
8943 (emit_push_byte): Likewise for local "insn".
8944 (emit_push_sfr): Likewise.
8945 (avr_prologue_setup_frame): Likewise for locals "insn",
8946 "fp_plus_insns", "sp_plus_insns".
8947 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8949 (avr_jump_mode): Likewise for param "insn".
8950 (avr_final_prescan_insn): Likewise.
8951 (avr_find_unused_d_reg): Likewise.
8952 (avr_out_lpm_no_lpmx): Likewise.
8953 (avr_out_lpm): Likewise.
8954 (avr_out_xload): Likewise.
8955 (output_movqi): Likewise.
8956 (output_movhi): Likewise.
8957 (out_movqi_r_mr): Likewise.
8958 (out_movhi_r_mr): Likewise.
8959 (out_movsi_r_mr): Likewise.
8960 (out_movsi_mr_r): Likewise.
8961 (output_movsisf): Likewise.
8962 (avr_out_load_psi): Likewise.
8963 (avr_out_store_psi): Likewise.
8964 (avr_out_movpsi): Likewise.
8965 (out_movqi_mr_r): Likewise.
8966 (avr_out_movhi_mr_r_xmega): Likewise.
8967 (out_movhi_mr_r): Likewise.
8968 (compare_condition): Likewise for param "insn" and local "next".
8969 (compare_sign_p): Likewise for param "insn".
8970 (compare_diff_p): Likewise.
8971 (compare_eq_p): Likewise.
8972 (avr_out_compare): Likewise.
8973 (avr_out_compare64): Likewise.
8974 (avr_out_tsthi): Likewise.
8975 (avr_out_tstpsi): Likewise.
8976 (avr_out_tstsi): Likewise.
8977 (out_shift_with_cnt): Likewise.
8978 (ashlqi3_out): Likewise.
8979 (ashlhi3_out): Likewise.
8980 (avr_out_ashlpsi3): Likewise.
8981 (ashlsi3_out): Likewise.
8982 (ashrqi3_out): Likewise.
8983 (ashrhi3_out): Likewise.
8984 (avr_out_ashrpsi3): Likewise.
8985 (ashrsi3_out): Likewise.
8986 (lshrqi3_out): Likewise.
8987 (lshrhi3_out): Likewise.
8988 (avr_out_lshrpsi3): Likewise.
8989 (lshrsi3_out): Likewise.
8990 (avr_out_fract): Likewise.
8991 (avr_out_round): Likewise.
8992 (avr_adjust_insn_length): Likewise.
8993 (reg_unused_after): Likewise.
8994 (_reg_unused_after): Likewise.
8995 (avr_compare_pattern): Likewise.
8996 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8997 and locals "branch1", "branch2", "insn2", "jump".
8998 (avr_reorg): Likewise for local "insn".
8999 (avr_2word_insn_p): Likewise for param "insn".
9000 (jump_over_one_insn_p): Likewise.
9001 (avr_out_sbxx_branch): Likewise.
9002 (avr_out_movmem): Likewise.
9004 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9006 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
9007 param from rtx to rtx_insn *.
9008 (thumb1_final_prescan_insn): Likewise.
9009 (thumb2_final_prescan_insn): Likewise.
9011 * config/arm/arm.c (emit_set_insn): Strengthen return type from
9013 (struct minipool_node): Likewise for field "insn".
9014 (dump_minipool): Likewise for param "scan".
9015 (create_fix_barrier): Likewise for local "from". Strengthen local
9016 "label" from rtx to rtx_code_label *.
9017 (push_minipool_barrier): Strengthen param "insn" from rtx to
9019 (push_minipool_fix): Likewise.
9020 (note_invalid_constants): Likewise.
9021 (thumb2_reorg): Likewise for local "insn".
9022 (arm_reorg): Likewise.
9023 (thumb2_final_prescan_insn): Likewise for param
9024 "insn" and local "first_insn".
9025 (arm_final_prescan_insn): Likewise for param "insn" and locals
9026 "start_insn", "this_insn".
9027 (arm_debugger_arg_offset): Likewise for param "insn".
9028 (thumb1_emit_multi_reg_push): Likewise for return type and local
9030 (thumb1_final_prescan_insn): Likewise for param "insn".
9031 (thumb_far_jump_used_p): Likewise for local "insn".
9032 (thumb1_expand_prologue): Likewise.
9033 (arm_expand_epilogue_apcs_frame): Likewise.
9034 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9035 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9036 from rtx to rtx_code_label *.
9037 (arm_split_atomic_op): Likewise for local "label".
9038 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9042 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9043 first param from rtx to rtx_insn *.
9044 (arc_verify_short): Likewise.
9045 (arc_short_long): Likewise.
9046 (arc_need_delay): Likewise.
9048 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9050 (arc_ccfsm_advance): Likewise for param "insn" and locals
9051 "start_insn", "this_insn".
9052 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9053 (arc_ccfsm_post_advance): Likewise for param "insn".
9054 (arc_next_active_insn): Likewise for return type and param "insn".
9055 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
9056 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9057 (output_short_suffix): Likewise for local "insn".
9058 (arc_final_prescan_insn): Likewise for param "insn". Remove
9059 now-redundant checked cast.
9060 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9061 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9062 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
9063 for use where lc_set became an insn.
9064 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9066 (arc_get_insn_variants): Likewise for local "prev".
9067 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9069 (arc_predicate_delay_insns): Likewise for local "insn".
9070 (arc_pad_return): Likewise for local "prev". For now, add a
9071 checked cast when extracting the insn from "final_sequence".
9072 (arc_short_long): Likewise for param "insn".
9073 (arc_need_delay): Likewise for param "insn" and local "next".
9074 (arc_label_align): Likewise for locals "prev", "next".
9076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9078 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9079 "insn" from rtx to rtx_insn *.
9080 (alpha_gp_save_rtx): Likewise for local "seq".
9081 (alpha_instantiate_decls): Likewise for local "top".
9082 (get_some_local_dynamic_name): Likewise for local "insn".
9083 (alpha_does_function_need_gp): Likewise.
9084 (set_frame_related_p): Likewise for return type and for locals
9086 (emit_frame_store_1): Likewise for local "insn".
9087 (alpha_expand_prologue): Likewise for locals "insn", "seq".
9088 (alpha_end_function): Likewise for local "insn".
9089 (alpha_output_mi_thunk_osf): Likewise.
9090 (alphaev4_insn_pipe): Likewise for param "insn".
9091 (alphaev5_insn_pipe): Likewise.
9092 (alphaev4_next_group): Likewise for return type and param 1
9094 (alphaev5_next_group): Likewise.
9095 (alpha_align_insns_1): Likewise for return type and param 1 of
9096 callback param "next_group", and for locals "i", "next", "prev",
9097 "where", "where2", "insn".
9099 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
9101 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9102 rather than modifying the stmt.
9104 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9106 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9107 cgraph_state conversion.
9109 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9111 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9112 Strengthen local "insns" from rtx to rtx_insn *.
9113 (aarch64_set_frame_expr): Likewise for local "insn".
9114 (aarch64_save_or_restore_fprs): Likewise.
9115 (aarch64_save_or_restore_callee_save_registers): Likewise.
9116 (aarch64_expand_prologue): Likewise.
9117 (aarch64_expand_epilogue): Likewise.
9118 (aarch64_output_mi_thunk): Likewise.
9119 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9120 "label2" from rtx to rtx_code_label *.
9121 (aarch64_split_atomic_op): Likewise for local "label".
9123 2014-08-25 Martin Liska <mliska@suse.cz>
9125 * cgraph.h (symtab_node):
9126 (bool needed_p (void)): created from decide_is_symbol_needed
9127 (bool referred_to_p (void)): created from referred_to_p
9128 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9129 * cgraph.h (cgraph_node):
9130 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9131 (void expand (void)): created from expand_function
9132 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9133 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9134 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9135 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9136 * cgraph.h (varpool_node):
9137 (static void add (tree decl): created from varpool_add_new_variable
9138 * cgraph.h (cgraph_edge):
9140 (void remove_caller (void)): created from cgraph_edge_remove_caller
9141 (void remove_callee (void)): created from cgraph_edge_remove_callee
9142 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9143 created from cgraph_set_call_stmt
9144 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9145 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9146 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9147 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9148 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9149 created from cgraph_speculative_call_info
9150 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9151 int freq_scale, bool update_original)): created from cgraph_clone_edge
9152 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9153 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9154 (bool recursive_p (void)): created from cgraph_edge_recursive_p
9155 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9156 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9157 (static void rebuild_references (void)): created from cgraph_rebuild_references
9158 * cgraph.h (symbol_table):
9159 (create_reference): renamed from add_reference
9160 (maybe_create_reference): renamed from maybe_add_reference
9161 (void register_symbol (symtab_node *node)): new function
9162 (void clear_asm_symbols (void)): new function
9163 (void unregister (symtab_node *node)): new function
9164 (void release_symbol (cgraph_node *node, int uid)): new function
9165 (cgraph_node * allocate_cgraph_symbol (void)): new function
9166 (void initialize (void)): created from cgraph_init
9167 (symtab_node *first_symbol (void)):new function
9168 (asm_node *first_asm_symbol (void)):new function
9169 (symtab_node *first_defined_symbol (void)):new function
9170 (varpool_node *first_variable (void)):new function
9171 (varpool_node *next_variable (varpool_node *node)):new function
9172 (varpool_node *first_static_initializer (void)):new function
9173 (varpool_node *next_static_initializer (varpool_node *node)):new function
9174 (varpool_node *first_defined_variable (void)):new function
9175 (varpool_node *next_defined_variable (varpool_node *node)):new function
9176 (cgraph_node *first_defined_function (void)):new function
9177 (cgraph_node *next_defined_function (cgraph_node *node)):new function
9178 (cgraph_node *first_function (void)):new function
9179 (cgraph_node *next_function (cgraph_node *node)):new function
9180 (cgraph_node *first_function_with_gimple_body (void)):new function
9181 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9182 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9183 created from symtab_remove_unreachable_nodes
9184 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9185 (void process_new_functions (void)): created from cgraph_process_new_functions
9186 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9187 (bool output_variables (void)): created from varpool_node::output_variables
9188 (void output_asm_statements (void)): created from output_asm_statements
9189 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9190 (void compile (void)): created from compile
9191 (void output_weakrefs (void)): created from output_weakrefs
9192 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9193 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9194 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9195 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9196 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9197 created from cgraph_next_function_with_gimple_body
9198 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9199 created from cgraph_remove_edge_removal_hook
9200 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9201 created from cgraph_add_node_removal_hook
9202 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9203 created from cgraph_remove_node_removal_hook
9204 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9205 created from varpool_add_node_removal_hook
9206 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9207 created from varpool_remove_node_removal_hook
9208 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9209 created from cgraph_add_function_insertion_hook
9210 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9211 created from cgraph_remove_function_insertion_hook
9212 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9213 created from varpool_add_variable_insertion_hook
9214 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9215 created from varpool_remove_variable_insertion_hook
9216 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9217 created from cgraph_add_edge_duplication_hook
9218 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9219 created from cgraph_remove_edge_duplication_hook
9220 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9221 created from cgraph_add_node_duplication_hook
9222 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9223 created from cgraph_remove_node_duplication_hook
9224 (void call_edge_removal_hooks (cgraph_edge *e)):
9225 created from cgraph_call_edge_removal_hooks
9226 (void call_cgraph_insertion_hooks (cgraph_node *node)):
9227 created from call_function_insertion_hooks
9228 (void call_cgraph_removal_hooks (cgraph_node *node)):
9229 created from cgraph_call_node_removal_hooks
9230 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9231 created from cgraph_node::call_duplication_hooks
9232 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9233 created from cgraph_call_edge_duplication_hooks
9234 (void call_varpool_removal_hooks (varpool_node *node)):
9235 created from varpool_call_node_removal_hooks
9236 (void call_varpool_insertion_hooks (varpool_node *node)):
9237 created from varpool_call_variable_insertion_hooks
9238 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9239 created from insert_to_assembler_name_hash
9240 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9241 created from unlink_from_assembler_name_hash
9242 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9243 created from symtab_prevail_in_asm_name_hash
9244 (void symtab_initialize_asm_name_hash (void)):
9245 created from symtab_initialize_asm_name_hash
9246 (void change_decl_assembler_name (tree decl, tree name)):
9247 created from change_decl_assembler_name
9248 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9249 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9250 created from decl_assembler_name_hash
9251 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9252 created from decl_assembler_name_equal
9253 (static hashval_t hash_node_by_assembler_name (const void *p)):
9254 created from hash_node_by_assembler_name
9255 (static int eq_assembler_name (const void *p1, const void *p2)):
9256 created from eq_assembler_name
9258 2014-08-25 Marek Polacek <polacek@redhat.com>
9260 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9262 2014-08-25 Petr Murzin <petr.murzin@intel.com>
9264 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9265 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9266 SWI1248_AVX512BW mode iterator.
9268 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
9271 * config/sh/predicates.md (general_extend_operand): Disable
9272 TRUNCATE before reload completes.
9274 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
9276 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9278 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
9281 * config/sh/sh.opt (musermode): Allow negative form.
9282 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9283 targets that don't support it.
9284 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9285 Document -mno-usermode option.
9287 2014-08-24 Kito Cheng <kito@0xlab.org>
9289 * system.h (CALLER_SAVE_PROFITABLE): Poison.
9290 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9291 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9292 * doc/tm.texi: Regenerate.
9294 2014-08-24 Kito Cheng <kito@0xlab.org>
9296 * ira.c: Fix typo in comment.
9298 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
9300 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9301 Deprecate c++1y. Change language to reflect greater confidence in C++14.
9303 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
9306 * config/pa/pa.c (pa_output_function_epilogue): Don't set
9307 last_address when the current function is a thunk.
9308 (pa_asm_output_mi_thunk): When we don't have named sections or they
9309 are not being used, check that thunk can reach the stub table with a
9312 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9314 * web.c (union_match_dups): Strengthen param "insn" from rtx to
9316 (pass_web::execute): Likewise for local "insn".
9318 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9320 * var-tracking.c (struct micro_operation_def): Strengthen field
9321 "insn" from rtx to rtx_insn *.
9322 (struct emit_note_data_def): Likewise.
9323 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9324 (vt_stack_adjustments): Likewise for local "insn".
9325 (adjust_insn): Likewise for param "insn".
9326 (val_store): Likewise.
9327 (val_resolve): Likewise.
9328 (struct count_use_info): Likewise for field "insn".
9329 (log_op_type): Likewise for param "insn".
9330 (reverse_op): Likewise.
9331 (prepare_call_arguments): Likewise.
9332 (add_with_sets): The initial param takes an insn, but we can't
9333 yet strengthen it from rtx to rtx_insn * since it's used as a
9334 cselib_record_sets_hook callback. For now rename initial param
9335 from "insn" to "uncast_insn", and introduce a local "insn" of
9336 the stronger rtx_insn * type, with a checked cast.
9337 (compute_bb_dataflow): Strengthen local "insn" from rtx to
9339 (emit_note_insn_var_location): Likewise.
9340 (emit_notes_for_changes): Likewise.
9341 (emit_notes_for_differences): Likewise.
9342 (next_non_note_insn_var_location): Likewise for return type and
9344 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9345 (vt_initialize): Likewise for local "insn".
9346 (delete_debug_insns): Likewise for locals "insn" and "next".
9348 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9350 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9352 (mark_constant_pool): Likewise for local "insn".
9354 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9356 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9358 (dead_debug_promote_uses): Likewise.
9359 (dead_debug_insert_temp): Likewise.
9361 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9363 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9364 from const_rtx to const rtx_insn *.
9365 (store_killed_after): Likewise. Strengthen locals "last", "act"
9366 from rtx to rtx_insn *.
9367 (store_killed_before): Strengthen param "insn" from const_rtx to
9368 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
9369 (find_moveable_store): Strengthen param "insn" from rtx to
9371 (compute_store_table): Likewise for local "insn".
9372 (insert_insn_start_basic_block): Likewise for param "insn" and
9373 locals "prev", "before", "insn".
9374 (insert_store): For now, add a checked cast to rtx_insn * on the
9375 result of gen_move_insn.
9376 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9378 (replace_store_insn): Likewise. For now, add a checked cast to
9379 rtx_insn * on the result of gen_move_insn.
9381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9383 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9385 (expand_sjlj_dispatch_table): Likewise.
9387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9389 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9390 "insn" from rtx to rtx_insn *.
9392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9394 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9395 "insn" from rtx to rtx_insn *.
9396 (dup_block_and_redirect): Likewise for param 3 "before".
9398 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9399 from rtx to rtx_insn *.
9400 (move_insn_for_shrink_wrap): Likewise.
9401 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9402 (dup_block_and_redirect): Likewise for param "before" and local
9404 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9406 (convert_to_simple_return): Likewise for local "start".
9408 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9409 Strengthen local "insn" from rtx to rtx_insn *, for use when
9410 invoking requires_stack_frame_p.
9412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9414 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9416 (speculate_expr): Likewise for locals "orig_insn_rtx",
9418 (eq_transformed_insns): Likewise for locals "i1", "i2".
9419 (check_for_new_jump): Likewise for return type and local "end".
9420 (find_new_jump): Likewise for return type and local "jump".
9421 (sel_split_edge): Likewise for local "jump".
9422 (sel_create_recovery_block): Likewise.
9423 (sel_redirect_edge_and_branch_force): Likewise.
9424 (sel_redirect_edge_and_branch): Likewise.
9426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9428 * sel-sched.c (substitute_reg_in_expr): Strengthen local
9429 "new_insn" from rtx to rtx_insn *.
9430 (create_insn_rtx_with_rhs): Likewise for return type and for local
9432 (create_insn_rtx_with_lhs): Likewise.
9433 (create_speculation_check): Likewise for local "insn_rtx".
9434 (implicit_clobber_conflict_p): Likewise for local "insn".
9435 (get_expr_cost): Likewise.
9436 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9437 (move_cond_jump): Likewise for locals "next", "prev", "link",
9438 "head", "from", "to".
9440 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9442 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9443 "next" from rtx to rtx_insn *.
9444 (find_conditional_protection): Likewise for local "next".
9445 (is_conditionally_protected): Likewise for local "insn1".
9446 (is_pfree): Likewise for locals "insn1", "insn2".
9448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9450 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9451 from rtx to rtx_insn *.
9453 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9454 locals "insn1", "insn2" from rtx to rtx_insn *.
9455 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9456 locals "insn", "prev", "last_jump", "next_tail".
9457 (schedule_ebb): Likewise for params "head", "tail".
9458 (schedule_ebbs): Likewise for locals "tail", "head".
9460 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9461 to rtx_insn on "last_insn" in one of the invocations of
9464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9466 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9467 "elem", "insn" from rtx to rtx_insn *.
9468 (change_spec_dep_to_hard): Likewise.
9469 (get_back_and_forw_lists): Likewise for local "con".
9470 (sd_add_dep): Likewise for locals "elem", "insn".
9471 (sd_resolve_dep): Likewise for locals "pro", "con".
9472 (sd_unresolve_dep): Likewise.
9473 (sd_delete_dep): Likewise.
9474 (chain_to_prev_insn): Likewise for local "pro".
9475 (find_inc): Likewise for locals "pro", "con".
9477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9479 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9481 (reg_set_between_p): Strengthen local "insn" from const_rtx to
9483 (modified_between_p): Strengthen local "insn" from rtx to
9485 (remove_reg_equal_equiv_notes_for_regno): Likewise.
9486 (keep_with_call_p): Strengthen local "i2" from const_rtx to
9489 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9491 * resource.c (next_insn_no_annul): Strengthen local "next" from
9493 (mark_referenced_resources): Likewise for local "insn".
9495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9497 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9499 (find_reloads): Likewise for param 1.
9500 (subst_reloads): Likewise for sole param.
9501 (find_equiv_reg): Likwise for param 2.
9502 (regno_clobbered_p): Likwise for param 2.
9503 (reload): Likewise for param 1.
9505 * caller-save.c (save_call_clobbered_regs): Strengthen local
9506 "insn" from rtx to rtx_insn *.
9507 (insert_one_insn): Likewise for local "insn".
9509 * reload.c (this_insn): Likewise for this global.
9510 (find_reloads): Likewise for param "insn".
9511 (find_reloads_toplev): Likewise.
9512 (find_reloads_address): Likewise.
9513 (subst_reg_equivs): Likewise.
9514 (update_auto_inc_notes): Likewise.
9515 (find_reloads_address_1): Likewise.
9516 (find_reloads_subreg_address): Likewise.
9517 (subst_reloads): Likewise.
9518 (find_equiv_reg): Likewise, also for local "p".
9519 (regno_clobbered_p): Likewise for param "insn".
9521 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9523 (spill_reg_store): Likewise for the elements of this array.
9524 (remove_init_insns): Likewise for local "equiv_insn".
9525 (will_delete_init_insn_p): Likewise for param "insn".
9526 (reload): Likewise for param ""first" and local "insn".
9527 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9529 (calculate_elim_costs_all_insns): Likewise.
9530 (delete_caller_save_insns): Likewise.
9531 (spill_failure): Likewise for param "insn".
9532 (delete_dead_insn): Likewise.
9533 (set_label_offsets): Likewise.
9534 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9536 (elimination_costs_in_insn): Likewise for param "insn".
9537 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9538 when referring to an insn.
9539 (set_initial_label_offsets): Likewise.
9540 (set_offsets_for_label): Strengthen param "insn" from rtx to
9542 (init_eliminable_invariants): Likewise for param "first" and local
9544 (fixup_eh_region_note): Likewise for param "insn".
9545 (reload_as_needed): Likewise for locals "prev", "insn",
9546 "old_next", "old_prev", "next".
9547 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9549 (reload_inheritance_insn): Strengthen elements of this array from
9551 (failed_reload): Likewise for param "insn".
9552 (choose_reload_regs): Likewise for local "insn". Replace use of
9553 NULL_RTX with NULL when referring to an insn.
9554 (input_reload_insns): Strengthen elements of this array from rtx
9556 (other_input_address_reload_insns): Likewise for this global.
9557 (other_input_reload_insns): Likewise for this global.
9558 (input_address_reload_insns): Likwise for the elements of this
9560 (inpaddr_address_reload_insns): Likwise for the elements of this
9562 (output_reload_insns): Likewise for the elements of this array.
9563 (output_address_reload_insns): Likewise for the elements of this
9565 (outaddr_address_reload_insns): Likewise for the elements of this
9567 (operand_reload_insns): Likewise for this global.
9568 (other_operand_reload_insns): Likewise for this global.
9569 (other_output_reload_insns): Likewise for the elements of this
9571 (new_spill_reg_store): Likewise for the elements of this
9573 (emit_input_reload_insns): Likewise for locals "insn", "temp".
9574 Strengthen local "where" from rtx * to rtx_insn **.
9575 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9576 from rtx to rtx_insn *.
9577 (do_input_reload): Likewise for local "insn".
9578 (do_output_reload): Likewise for local "insn".
9579 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9580 (emit_insn_if_valid_for_reload): Likewise for return type and local
9581 "last". Add checked cast to rtx_insn when returning "insn" since
9582 this has been through emit_insn.
9583 (gen_reload): Strengthen return type and locals "last", "insn", "set"
9584 from rtx to rtx_insn *. Add checked cast to rtx_insn when
9585 returning "insn" since it's been through
9586 emit_insn_if_valid_for_reload at this point.
9587 (delete_output_reload): Strengthen param "insn" and locals
9588 "output_reload_insn", "i2" from rtx to rtx_insn *.
9589 (delete_address_reloads): Likewise for params "dead_insn",
9590 "current_insn" and locals "prev", "next".
9591 (delete_address_reloads_1): Likewise for params "dead_insn",
9592 "current_insn" and locals "prev", "i2".
9593 (inc_for_reload): Likewise for locals "last", "add_insn".
9594 (add_auto_inc_notes): Strengthen param "insn" from rtx to
9597 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9598 param of this duplicate of the prototype from reload.h
9600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9602 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9604 (regstat_bb_compute_calls_crossed): Likewise.
9606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9608 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9610 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9612 (regrename_analyze): Strengthen local "insn" from rtx to
9614 (scan_rtx_reg): Likewise for param "insn".
9615 (scan_rtx_address): Likewise.
9616 (scan_rtx): Likewise.
9617 (restore_operands): Likewise.
9618 (record_out_operands): Likewise.
9619 (build_def_use): Likewise for local "insn". Replace use of
9620 NULL_RTX with NULL when dealing with an insn.
9622 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9624 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9625 * reginfo.c (reg_scan): Likewise, also for local "insn".
9626 (reg_scan_mark_refs): Likewise for param "insn".
9627 (init_subregs_of_mode): Likewise for local "insn".
9629 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9631 * regcprop.c (struct queued_debug_insn_change): Strengthen field
9632 "insn" from rtx to rtx_insn *.
9633 (replace_oldest_value_reg): Likewise for param "insn".
9634 (replace_oldest_value_addr): Likewise.
9635 (replace_oldest_value_mem): Likewise.
9636 (apply_debug_insn_changes): Likewise for local "last_insn".
9637 (copyprop_hardreg_forward_1): Likewise for local "insn".
9639 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9641 * reg-stack.c (next_flags_user): Strengthen return type and param
9642 "insn" from rtx to rtx_insn *.
9643 (straighten_stack): Likewise for param "insn".
9644 (check_asm_stack_operands): Likewise.
9645 (remove_regno_note): Likewise.
9646 (emit_pop_insn): Likewise for return type, param "insn", local
9648 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
9649 "limit" from rtx to rtx_insn *.
9650 (swap_to_top): Likewise for param "insn".
9651 (move_for_stack_reg): Likewise.
9652 (move_nan_for_stack_reg): Likewise.
9653 (swap_rtx_condition): Likewise.
9654 (compare_for_stack_reg): Likewise.
9655 (subst_all_stack_regs_in_debug_insn): Likewise.
9656 (subst_stack_regs_pat): Likewise, and local "insn2".
9657 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9659 (subst_stack_regs): Likewise.
9660 (change_stack): Likewise.
9661 (convert_regs_1): Likewise for locals "insn", "next".
9663 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9665 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9667 (combine_set_extension): Likewise for param "curr_insn".
9668 (transform_ifelse): Likewise for param "def_insn".
9669 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
9670 from vec<rtx> * to vec<rtx_insn *> *.
9671 (is_cond_copy_insn): Likewise for param "insn".
9672 (struct ext_state): Strengthen the four vec fields from vec<rtx>
9674 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9675 local "def_insn" from rtx to rtx_insn *.
9676 (get_sub_rtx): Likewise for param "def_insn".
9677 (merge_def_and_ext): Likewise.
9678 (combine_reaching_defs): Likewise.
9679 (add_removable_extension): Likewise for param "insn".
9680 (find_removable_extensions): Likewise for local "insn".
9681 (find_and_remove_re): Likewise for locals "curr_insn" and
9682 "def_insn". Strengthen locals "reinsn_del_list" and
9683 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9685 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9687 * recog.c (split_insn): Strengthen param "insn" and locals
9688 "first", "last" from rtx to rtx_insn *.
9689 (split_all_insns): Likewise for locals "insn", "next".
9690 (split_all_insns_noflow): Likewise.
9692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9694 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9696 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9697 (debug_rtx_find): Likewise for param 1 "x".
9699 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9700 const_rtx to const rtx_insn *. Likewise for local "insn".
9701 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9702 (debug_rtx_find): Likewise for param 1 "x".
9703 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9704 from const_rtx to const rtx_insn * within the appropriate cases of
9705 the switch statement.
9707 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9708 Strengthen local "insns" from rtx to rtx_insn * since this is
9709 passed to a call to debug_rtx_list.
9711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9713 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9716 * function.c (stack_protect_epilogue): Add checked cast to
9717 rtx_insn for now when invoking predict_insn_def.
9719 * predict.c (predict_insn): Strengthen param "insn" from rtx to
9721 (predict_insn_def): Likewise.
9722 (rtl_predict_edge): Likewise for local "last_insn".
9723 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9725 (combine_predictions_for_insn): Strengthen param "insn" from rtx
9727 (bb_estimate_probability_locally): Likewise for local "last_insn".
9728 (expensive_function_p): Likewise for local "insn".
9730 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9731 local "jmp", since this is used when invoking predict_insn_def.
9733 2014-08-22 Marek Polacek <polacek@redhat.com>
9736 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9738 2014-08-22 Marek Polacek <polacek@redhat.com>
9741 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9742 a comparison in parens.
9743 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9748 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9751 * cprop.c (fis_get_condition): Likewise.
9753 * postreload.c (reload_cse_regs): Likewise for param "first".
9754 (reload_cse_simplify): Likewise for param "insn".
9755 (reload_cse_regs_1): Likewise for local "insn".
9756 (reload_cse_simplify_set): Likewise for param "insn".
9757 (reload_cse_simplify_operands): Likewise.
9758 (struct reg_use): Likewise for field "insn".
9759 (reload_combine_purge_insn_uses): Likewise for param "insn".
9760 (fixup_debug_insns): Likewise for params "from", "to" and local
9762 (try_replace_in_use): Likewise for local "use_insn".
9763 (reload_combine_recognize_const_pattern): Likewise for param
9764 "insn" and locals "add_moved_after_insn", "use_insn".
9765 (reload_combine_recognize_pattern): Likewise for param "insn" and
9767 (reload_combine): Likewise for locals "insn", "prev".
9768 (reload_combine_note_use): Likewise for param "insn".
9769 (move2add_use_add2_insn): Likewise.
9770 (move2add_use_add3_insn): Likewise.
9771 (reload_cse_move2add): Likewise, also for local "next".
9772 (move2add_note_store): Likewise for local "insn".
9774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9776 * postreload-gcse.c (struct occr): Strengthen field "insn" from
9778 (struct unoccr): Likewise.
9779 (struct modifies_mem): Likewise.
9780 (alloc_mem): Likewise for local "insn".
9781 (insert_expr_in_table): Likewise for param "insn".
9782 (dump_expr_hash_table_entry): Likewise for local "insn".
9783 (oprs_unchanged_p): Likewise for param "insn".
9784 (load_killed_in_block_p): Likewise for local "setter".
9785 (record_last_reg_set_info): Likewise for param "insn".
9786 (record_last_reg_set_info_regno): Likewise.
9787 (record_last_mem_set_info): Likewise.
9788 (record_last_set_info): Likewise for local "last_set_insn".
9789 (record_opr_changes): Likewise for param "insn".
9790 (hash_scan_set): Likewise.
9791 (compute_hash_table): Likewise for local "insn".
9792 (get_avail_load_store_reg): Likewise for param "insn".
9793 (eliminate_partially_redundant_load): Likewise, also for locals
9794 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
9796 (eliminate_partially_redundant_loads): Likewise for local "insn".
9798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9800 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9802 (expand_binop): Likewise for locals "entry_last", "last", "insns"
9803 (expand_twoval_unop): Likewise for locals entry_last", "last".
9804 (expand_twoval_binop): Likewise.
9805 (expand_twoval_binop_libfunc): Likewise for local "insns".
9806 (widen_leading): Likewise for local "last".
9807 (expand_doubleword_clz): Likewise for local "seq". Strengthen
9808 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9809 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9810 (expand_parity): Likewise for locals "last" and "seq".
9811 (expand_ffs): Likewise for local "seq". Strengthen local
9812 "nonzero_label" from rtx to rtx_code_label *.
9813 (expand_absneg_bit): Strengthen local "insns" from rtx to
9815 (expand_unop_direct): Likewise for local "last".
9816 (expand_unop): Likewise for locals "last", "insns".
9817 (expand_abs_nojump): Likewise for local "last".
9818 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9819 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9821 (expand_copysign_absneg): Strengthen local "label" from rtx to
9823 (expand_copysign_bit): Strengthen local "insns" from rtx to
9825 (struct no_conflict_data): Likewise for fields "first", "insn".
9826 (emit_libcall_block_1): Likewise for param "insns" and locals
9827 "next", "last", "insn".
9828 (emit_libcall_block): For now, add a checked cast to rtx_insn *
9829 on "insns" when invoking emit_libcall_block_1. Ultimately we
9830 want to strengthen insns itself.
9831 (prepare_cmp_insn): Strengthen local "last" from rtx to
9833 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9834 (prepare_float_lib_cmp): Likewise for local "insns".
9835 (emit_conditional_move): Likewise for local "last".
9836 (emit_conditional_add): Likewise.
9837 (have_sub2_insn): Likewise for local "seq".
9838 (expand_float): Likewise for local "insns". Strengthen locals
9839 "label", "neglabel" from rtx to rtx_code_label *.
9840 (expand_fix): Likewise for locals "last", "insn", "insns" (to
9841 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9842 (expand_fixed_convert): Likewise for local "insns" (to
9844 (expand_sfix_optab): Likewise for local "last".
9845 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9846 to rtx_code_label *.
9847 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9848 from rtx to rtx_insn *.
9849 (expand_atomic_fetch_op): Likewise for local "insn".
9850 (maybe_legitimize_operand_same_code): Likewise for local "last".
9851 (maybe_legitimize_operands): Likewise.
9853 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9855 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9856 "insn" from rtx to rtx_insn *.
9857 (ps_rtl_insn): Likewise for return type.
9858 (doloop_register_get): Likewise for params "head", "tail" and
9859 locals "insn", "first_insn_not_to_check".
9860 (schedule_reg_move): Likewise for local "this_insn".
9861 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9862 of gen_move_insn for now.
9863 (reset_sched_times): Strengthen local "insn" from rtx to
9865 (permute_partial_schedule): Likewise.
9866 (duplicate_insns_of_cycles): Likewise for local "u_insn".
9867 (dump_insn_location): Likewise for param "insn".
9868 (loop_canon_p): Likewise for local "insn".
9869 (sms_schedule): Likewise.
9870 (print_partial_schedule): Likewise.
9871 (ps_has_conflicts): Likewise.
9873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9875 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9876 "tailp" from rtx * to rtx_insn **.
9878 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9879 from rtx to rtx_insn *.
9880 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9881 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
9882 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9884 * modulo-sched.c (const_iteration_count): Strengthen return type
9885 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
9886 use of NULL_RTX with NULL when working with insns.
9887 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9889 (sms_schedule): Likewise.
9890 * sched-rgn.c (init_ready_list): Likewise, also for locals
9891 "src_head" and "src_next_tail".
9892 (compute_block_dependences): Likewise.
9893 (free_block_dependencies): Likewise.
9894 (debug_rgn_dependencies): Likewise.
9895 (free_rgn_deps): Likewise.
9896 (compute_priorities): Likewise.
9897 (schedule_region): Likewise.
9898 * sel-sched.c (find_ebb_boundaries): Likewise.
9900 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9901 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9905 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9906 from rtx to rtx_insn *.
9907 (new_seginfo): Likewise for param "insn".
9908 (create_pre_exit): Likewise for locals "last_insn",
9909 "before_return_copy", "return_copy".
9910 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9915 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9916 from rtx to rtx_insn *.
9917 (lra_push_insn): Likewise for 1st param.
9918 (lra_push_insn_and_update_insn_regno_info): Likewise.
9919 (lra_pop_insn): Likewise for return type.
9920 (lra_invalidate_insn_data): Likewise for 1st param.
9921 (lra_set_insn_deleted): Likewise.
9922 (lra_delete_dead_insn): Likewise.
9923 (lra_process_new_insns): Likewise for first 3 params.
9924 (lra_set_insn_recog_data): Likewise for 1st param.
9925 (lra_update_insn_recog_data): Likewise.
9926 (lra_set_used_insn_alternative): Likewise.
9927 (lra_invalidate_insn_regno_info): Likewise.
9928 (lra_update_insn_regno_info): Likewise.
9929 (lra_former_scratch_operand_p): Likewise.
9930 (lra_eliminate_regs_1): Likewise.
9931 (lra_get_insn_recog_data): Likewise.
9933 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9936 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9938 (substitute_within_insn): New.
9939 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9940 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
9941 Replace call to "substitute" with call to substitute_within_insn.
9943 * lra-constraints.c (curr_insn): Strengthen from rtx to
9945 (get_equiv_with_elimination): Likewise for param "insn".
9946 (match_reload): Strengthen params "before" and "after" from rtx *
9948 (emit_spill_move): Likewise for return type. Add a checked cast
9949 to rtx_insn * on result of gen_move_insn for now.
9950 (check_and_process_move): Likewise for local "before". Replace
9951 NULL_RTX with NULL when referring to insns.
9952 (process_addr_reg): Strengthen params "before" and "after" from
9953 rtx * to rtx_insn **.
9954 (insert_move_for_subreg): Likewise.
9955 (simplify_operand_subreg): Strengthen locals "before" and "after"
9956 from rtx to rtx_insn *.
9957 (process_address_1): Strengthen params "before" and "after" from
9958 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
9960 (process_address): Strengthen params "before" and "after" from
9961 rtx * to rtx_insn **.
9962 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9963 (curr_insn_transform): Strengthen locals "before" and "after"
9964 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
9966 (loc_equivalence_callback): Update cast of "data", changing
9967 resulting type from rtx to rtx_insn *.
9968 (substitute_pseudo_within_insn): New.
9969 (inherit_reload_reg): Strengthen param "insn" from rtx to
9970 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
9971 NULL when referring to insns. Add a checked cast to rtx_insn *
9972 when using usage_insn to invoke lra_update_insn_regno_info.
9973 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9974 likewise for locals "restore", "save". Add checked casts to
9975 rtx_insn * when using usage_insn to invoke
9976 lra_update_insn_regno_info and lra_process_new_insns. Replace
9977 NULL_RTX with NULL when referring to insns.
9978 (split_if_necessary): Strengthen param "insn" from rtx to
9980 (update_ebb_live_info): Likewise for params "head", "tail" and local
9982 (get_last_insertion_point): Likewise for return type and local "insn".
9983 (get_live_on_other_edges): Likewise for local "last".
9984 (inherit_in_ebb): Likewise for params "head", "tail" and locals
9985 "prev_insn", "next_insn", "restore".
9986 (remove_inheritance_pseudos): Likewise for local "prev_insn".
9987 (undo_optional_reloads): Likewise for local "insn".
9989 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9991 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9993 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9995 (spill_pseudos): Likewise for local "insn".
9996 (init_elimination): Likewise.
9997 (process_insn_for_elimination): Likewise for param "insn".
9999 * lra-lives.c (curr_insn): Likewise.;
10001 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
10002 (remove_pseudos): Likewise for param "insn".
10003 (spill_pseudos): Likewise for local "insn".
10004 (lra_final_code_change): Likewise for locals "insn", "curr".
10006 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
10007 (lra_set_insn_deleted): Likewise.
10008 (lra_delete_dead_insn): Likewise, and for local "prev".
10009 (new_insn_reg): Likewise for param "insn".
10010 (lra_set_insn_recog_data): Likewise.
10011 (lra_update_insn_recog_data): Likewise.
10012 (lra_set_used_insn_alternative): Likewise.
10013 (get_insn_freq): Likewise.
10014 (invalidate_insn_data_regno_info): Likewise.
10015 (lra_invalidate_insn_regno_info): Likewise.
10016 (lra_update_insn_regno_info): Likewise.
10017 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10019 (lra_push_insn_1): Strengthen param "insn" from rtx to
10021 (lra_push_insn): Likewise.
10022 (lra_push_insn_and_update_insn_regno_info): Likewise.
10023 (lra_pop_insn): Likewise for return type and local "insn".
10024 (push_insns): Likewise for params "from", "to", and local "insn".
10025 (setup_sp_offset): Likewise for params "from", "last" and locals
10027 (lra_process_new_insns): Likewise for params "insn", "before",
10028 "after" and local "last".
10029 (struct sloc): Likewise for field "insn".
10030 (lra_former_scratch_operand_p): Likewise for param "insn".
10031 (remove_scratches): Likewise for locals "insn", "last".
10032 (check_rtl): Likewise for local "insn".
10033 (add_auto_inc_notes): Likewise for param "insn".
10034 (update_inc_notes): Likewise for local "insn".
10035 (lra): Replace NULL_RTX with NULL when referring to insn.
10037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10039 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10041 (resolve_reg_notes): Likewise.
10042 (resolve_simple_move): Likewise for return type, param "insn", and
10043 locals "insns", "minsn".
10044 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10045 (resolve_use): Likewise.
10046 (resolve_debug): Likewise.
10047 (find_decomposable_shift_zext): Likewise.
10048 (resolve_shift_zext): Likewise for return type, param "insn", and
10049 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
10050 (decompose_multiword_subregs): Likewise for local "insn",
10051 "orig_insn", "decomposed_shift", "end".
10053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10055 * basic-block.h (basic_block split_edge_and_insert): Strengthen
10056 param "insns" from rtx to rtx_insn *.
10058 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10060 (struct iv_to_split): Likewise.
10061 (loop_exit_at_end_p): Likewise for local "insn".
10062 (split_edge_and_insert): Likewise for param "insns".
10063 (compare_and_jump_seq): Likewise for return type, param "cinsn",
10064 and locals "seq", "jump".
10065 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10066 "branch_code"; update invocations of compare_and_jump_seq to
10067 eliminate NULL_RTX in favor of NULL.
10068 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10070 (reset_debug_uses_in_loop): Likewise.
10071 (analyze_insn_to_expand_var): Likewise for param "insn".
10072 (analyze_iv_to_split_insn): Likewise.
10073 (analyze_insns_in_loop): Likewise for local "insn".
10074 (insert_base_initialization): Likewise for param
10075 "insn" and local "seq".
10076 (split_iv): Likewise for param "insn" and local "seq".
10077 (expand_var_during_unrolling): Likewise for param "insn".
10078 (insert_var_expansion_initialization): Likewise for local "seq".
10079 (combine_var_copies_in_loop_exit): Likewise.
10080 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10082 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10083 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10088 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10090 (iv_analyze_result): Likewise.
10091 (iv_analyze_expr): Likewise.
10094 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10095 local "def_insn" from rtx to rtx_insn *.
10096 (get_biv_step_1): Likewise for local "insn".
10097 (iv_analyze_expr): Likewise for param "insn".
10098 (iv_analyze_def): Likewise for local "insn".
10099 (iv_analyze_op): Likewise for param "insn".
10100 (iv_analyze): Likewise.
10101 (iv_analyze_result): Likewise.
10103 (suitable_set_for_replacement): Likewise.
10104 (simplify_using_initial_values): Likewise for local "insn".
10105 (iv_number_of_iterations): Likewise for param "insn".
10106 (check_simple_exit): Add checked cast to rtx_insn when invoking
10107 iv_number_of_iterations for now (until get_condition is
10110 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10111 "insn" from rtx to rtx_insn *.
10112 (analyze_insns_in_loop): Likewise for local "insn".
10114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10116 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10118 (struct invariant): Likewise.
10119 (hash_invariant_expr_1): Likewise for param "insn".
10120 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10121 (find_exits): Likewise for local "insn".
10122 (create_new_invariant): Likewise for param "insn".
10123 (check_dependencies): Likewise.
10124 (find_invariant_insn): Likewise.
10125 (record_uses): Likewise.
10126 (find_invariants_insn): Likewise.
10127 (find_invariants_bb): Likewise for local "insn".
10128 (get_pressure_class_and_nregs): Likewise for param "insn".
10129 (calculate_loop_reg_pressure): Likewise for local "insn".
10131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10133 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10135 (add_test): Likewise for locals "seq", "jump".
10136 (doloop_modify): Likewise for locals "sequence", "jump_insn".
10138 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10140 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10142 (rebuild_jump_labels_chain): Likewise for param "chain".
10144 * cfgexpand.c (pass_expand::execute): Add checked cast to
10145 rtx_insn * when calling rebuild_jump_labels_chain in region where
10146 we know e->insns.r is non-NULL.
10148 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10150 (rebuild_jump_labels): Likewise.
10151 (rebuild_jump_labels_chain): Likewise for param "chain".
10152 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10153 (init_label_info): Likewise for param "f".
10154 (maybe_propagate_label_ref): Likewise for params "jump_insn",
10155 "prev_nonjump_insn".
10156 (mark_all_labels): Likewise for param "f" and locals "insn",
10157 "prev_nonjump_insn".
10159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10161 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10162 from rtx to rtx_insn *insn.
10163 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10164 (ira_add_allocno_copy): Likewise.
10165 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10167 (ira_create_copy): Likewise.
10168 (ira_add_allocno_copy): Likewise.
10169 (create_bb_allocnos): Likewise for local "insn".
10170 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10171 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10172 process_regs_for_copy for rtx_insn * param.
10173 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10174 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
10175 process_regs_for_copy for rtx_insn * param.
10176 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10177 * ira-costs.c (record_reg_classes): Likewise for param "insn".
10178 (record_operand_costs): Likewise.
10179 (scan_one_insn): Likewise for return type, and for param "insn".
10180 (process_bb_for_costs): Likewise for local "insn".
10181 (process_bb_node_for_hard_reg_moves): Likewise.
10182 * ira-emit.c (struct move): Likewise for field "insn".
10183 (create_move): Eliminate use of NULL_RTX when dealing with an
10185 (emit_move_list): Strengthen return type and locals "result",
10186 "insn" from rtx to rtx_insn *insn.
10187 (emit_moves): Likewise for locals "insns", "tmp".
10188 (ira_emit): Likewise for local "insn".
10189 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10191 (find_call_crossed_cheap_reg): Likewise.
10192 (process_bb_node_lives): Likewise for local "insn".
10193 * ira.c (decrease_live_ranges_number): Likewise.
10194 (compute_regs_asm_clobbered): Likewise.
10195 (build_insn_chain): Likewise.
10196 (find_moveable_pseudos): Likewise, also locals "def_insn",
10197 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
10198 to rtx_insn **. Add a checked cast when assigning from
10199 "closest_use" into closest_uses array in a region where we know
10200 it's a non-NULL insn.
10201 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10203 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10204 "last_interesting_insn", "uin".
10205 (move_unallocated_pseudos): Likewise for locals "def_insn",
10206 "move_insn", "newinsn".
10208 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10210 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10211 Strengthen locals "done_label", "do_error" from rtx to
10213 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10214 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
10216 (ubsan_expand_si_overflow_neg_check): Likewise for locals
10217 "done_label", "do_error" to rtx_code_label * and local "last" to
10219 (ubsan_expand_si_overflow_mul_check): Likewise for locals
10220 "done_label", "do_error", "large_op0", "small_op0_large_op1",
10221 "one_small_one_large", "both_ops_large", "after_hipart_neg",
10222 "after_lopart_neg", "do_overflow", "hipart_different" to
10223 rtx_code_label * and local "last" to rtx_insn *.
10225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10227 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10228 "insn" and "move_insn" from rtx to rtx_insn *.
10230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10232 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10234 (cheap_bb_rtx_cost_p): Likewise.
10235 (first_active_insn): Likewise for return type and local "insn".
10236 (last_active_insn): Likewise for return type and locals "insn",
10238 (struct noce_if_info): Likewise for fields "jump", "insn_a",
10240 (end_ifcvt_sequence): Likewise for return type and locals "insn",
10242 (noce_try_move): Likewise for local "seq".
10243 (noce_try_store_flag): Likewise.
10244 (noce_try_store_flag_constants): Likewise.
10245 (noce_try_addcc): Likewise.
10246 (noce_try_store_flag_mask): Likewise.
10247 (noce_try_cmove): Likewise.
10248 (noce_try_minmax): Likewise.
10249 (noce_try_abs): Likewise.
10250 (noce_try_sign_mask): Likewise.
10251 (noce_try_bitop): Likewise.
10252 (noce_can_store_speculate_p): Likewise for local "insn".
10253 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10255 (check_cond_move_block): Likewise for local "insn".
10256 (cond_move_convert_if_block): Likewise.
10257 (cond_move_process_if_block): Likewise for locals "seq",
10259 (noce_find_if_block): Likewise for local "jump".
10260 (merge_if_block): Likewise for local "last".
10261 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10262 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10263 (block_has_only_trap): Likewise for return type and local "trap".
10264 (find_if_case_1): Likewise for local "jump".
10265 (dead_or_predicable): Likewise for locals "head", "end", "jump",
10268 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10270 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10271 "last_insn", "loop_end" from rtx to rtx_insn *.
10273 * hw-doloop.c (scan_loop): Likewise for local "insn".
10274 (discover_loop): Likewise for param "tail_insn".
10275 (discover_loops): Likewise for local "tail".
10277 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10278 cast to rtx_insn * when assigning from an rtx local to a
10279 hwloop_info's "last_insn" field.
10281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10283 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10284 (add_delay_dependencies): Strengthen local "pro" from rtx to
10286 (recompute_todo_spec): Likewise.
10287 (dep_cost_1): Likewise for locals "insn", "used".
10288 (schedule_insn): Likewise for local "dbg".
10289 (schedule_insn): Likewise for locals "pro", "next".
10290 (unschedule_insns_until): Likewise for local "con".
10291 (restore_pattern): Likewise for local "next".
10292 (estimate_insn_tick): Likewise for local "pro".
10293 (resolve_dependencies): Likewise for local "next".
10294 (fix_inter_tick): Likewise.
10295 (fix_tick_ready): Likewise for local "pro".
10296 (add_to_speculative_block): Likewise for locals "check", "twin",
10298 (sched_extend_bb): Likewise for locals "end", "insn".
10299 (init_before_recovery): Likewise for local "x".
10300 (sched_create_recovery_block): Likewise for local "barrier".
10301 (create_check_block_twin): Likewise for local "pro".
10302 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10304 (unlink_bb_notes): Update for change to type of bb_header.
10305 Strengthen locals "prev", "label", "note", "next" from rtx to
10307 (clear_priorities): Likewise for local "pro".
10309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10311 * gcse.c (struct occr): Strengthen field "insn" from rtx to
10313 (test_insn): Likewise for this global.
10314 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10316 (oprs_anticipatable_p): Likewise.
10317 (oprs_available_p): Likewise.
10318 (insert_expr_in_table): Strengthen param "insn" from rtx to
10320 (hash_scan_set): Likewise.
10321 (hash_scan_clobber): Likewise.
10322 (hash_scan_call): Likewise.
10323 (hash_scan_insn): Likewise.
10324 (compute_hash_table_work): Likewise for local "insn".
10325 (process_insert_insn): Likewise for return type and local "pat".
10326 (insert_insn_end_basic_block): Likewise for locals "new_insn",
10327 "pat", "pat_end", "maybe_cc0_setter".
10328 (pre_edge_insert): Likewise for local "insn".
10329 (pre_insert_copy_insn): Likewise for param "insn".
10330 (pre_insert_copies): Likewise for local "insn".
10331 (struct set_data): Likewise for field "insn".
10332 (single_set_gcse): Likewise for param "insn".
10333 (gcse_emit_move_after): Likewise.
10334 (pre_delete): Likewise for local "insn".
10335 (update_bb_reg_pressure): Likewise for param "from" and local
10337 (should_hoist_expr_to_dom): Likewise for param "from".
10338 (hoist_code): Likewise for local "insn".
10339 (get_pressure_class_and_nregs): Likewise for param "insn".
10340 (calculate_bb_reg_pressure): Likewise for local "insn".
10341 (compute_ld_motion_mems): Likewise.
10343 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10345 * genpeep.c (main): Rename param back from "uncast_ins1" to
10346 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
10349 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10351 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10354 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10355 documentation to state it is only for VSX operations.
10357 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10358 constraint only active if VSX.
10360 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10361 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10362 (lfiwzx): Likewise.
10364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10366 * fwprop.c (single_def_use_dom_walker::before_dom_children):
10367 Strengthen local "insn" from rtx to rtx_insn *.
10368 (use_killed_between): Likewise for param "target_insn".
10369 (all_uses_available_at): Likewise for param "target_insn" and
10371 (update_df_init): Likewise for params "def_insn", "insn".
10372 (update_df): Likewise for param "insn".
10373 (try_fwprop_subst): Likewise for param "def_insn" and local
10375 (free_load_extend): Likewise for param "insn".
10376 (forward_propagate_subreg): Likewise for param "def_insn" and
10378 (forward_propagate_asm): Likewise for param "def_insn" and local
10380 (forward_propagate_and_simplify): Likewise for param "def_insn"
10381 and local "use_insn".
10382 (forward_propagate_into): Likewise for locals "def_insn" and
10385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10387 * function.c (emit_initial_value_sets): Strengthen local "seq"
10388 from rtx to rtx_insn *.
10389 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10391 (instantiate_virtual_regs): Likewise for local "insn".
10392 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10393 (reorder_blocks_1): Likewise for param "insns" and local "insn".
10394 (expand_function_end): Likewise for locals "insn" and "seq".
10395 (epilogue_done): Likewise for local "insn".
10396 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10398 (reposition_prologue_and_epilogue_notes): Likewise for locals
10399 "insn", "last", "note", "first".
10400 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10401 (pass_match_asm_constraints::execute): Likewise for local "insn".
10403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10405 * output.h (final_scan_insn): Strengthen return type from rtx to
10407 (final_forward_branch_p): Likewise for param.
10408 (current_output_insn): Likewise for this global.
10410 * final.c (rtx debug_insn): Likewise for this variable.
10411 (current_output_insn): Likewise.
10412 (get_attr_length_1): Rename param "insn" to "uncast_insn",
10413 adding "insn" back in as an rtx_insn * with a checked cast, so
10414 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10416 (compute_alignments): Strengthen local "label" from rtx to
10418 (shorten_branches): Rename param from "first" to "uncast_first",
10419 introducing a new local rtx_insn * "first" using a checked cast to
10420 effectively strengthen "first" from rtx to rtx_insn * without
10421 affecting the type signature. Strengthen locals "insn", "seq",
10422 "next", "label" from rtx to rtx_insn *.
10423 (change_scope): Strengthen param "orig_insn" and local "insn" from
10425 (final_start_function): Rename param from "first" to "uncast_first",
10426 introducing a new local rtx_insn * "first" using a checked cast to
10427 effectively strengthen "first" from rtx to rtx_insn * without
10428 affecting the type signature. Strengthen local "insn" from rtx to
10430 (dump_basic_block_info): Strengthen param "insn" from rtx to
10432 (final): Rename param from "first" to "uncast_first",
10433 introducing a new local rtx_insn * "first" using a checked cast to
10434 effectively strengthen "first" from rtx to rtx_insn * without
10435 affecting the type signature. Strengthen locals "insn", "next"
10436 from rtx to rtx_insn *.
10437 (output_alternate_entry_point): Strengthen param "insn" from rtx to
10439 (call_from_call_insn): Strengthen param "insn" from rtx to
10441 (final_scan_insn): Rename param from "insn" to "uncast_insn",
10442 introducing a new local rtx_insn * "insn" using a checked cast to
10443 effectively strengthen "insn" from rtx to rtx_insn * without
10444 affecting the type signature. Strengthen return type and locals
10445 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
10446 now-redundant checked cast to rtx_insn * from both invocations of
10447 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
10448 introducing a local "call_insn" for use when invoking
10449 call_from_call_insn.
10450 (notice_source_line): Strengthen param "insn" from rtx to
10452 (leaf_function_p): Likewise for local "insn".
10453 (final_forward_branch_p): Likewise.
10454 (leaf_renumber_regs): Likewise for param "first".
10455 (rest_of_clean_state): Likewise for locals "insn" and "next".
10456 (self_recursive_call_p): Likewise for param "insn".
10457 (collect_fn_hard_reg_usage): Likewise for local "insn".
10458 (get_call_fndecl): Likewise for param "insn".
10459 (get_call_cgraph_rtl_info): Likewise.
10460 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10461 introducing a new local rtx_insn * "insn" using a checked cast to
10462 effectively strengthen "insn" from rtx to rtx_insn * without
10463 affecting the type signature.
10465 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10466 cast when assigning from param "insn" to current_output_insn.
10467 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10468 so that we can assign it back to current_output_insn.
10470 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10472 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10473 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10474 atmxt540s and atmxt540sreva devices.
10475 * config/avr/avr-tables.opt: Regenerate.
10476 * config/avr/t-multilib: Regenerate.
10477 * doc/avr-mmcu.texi: Regenerate.
10479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10481 * expr.c (convert_move): Strengthen local "insns" from rtx to
10483 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10484 "top_label" from rtx to rtx_code_label *.
10485 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10487 (emit_single_push_insn): Likewise for locals "prev", "last".
10488 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10489 to rtx_code_label *.
10490 (store_constructor): Likewise for locals "loop_start", "loop_end".
10491 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10493 (expand_expr_real_2): Likewise.
10494 (expand_expr_real_1): Strengthen local "label" from rtx to
10497 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10499 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10500 from rtx to rtx_insn *.
10501 (store_bit_field_1): Likewise.
10502 (extract_bit_field_1): Likewise.
10503 (expand_mult_const): Likewise for local "insns".
10504 (expmed_mult_highpart): Strengthen local "label" from rtx to
10506 (expand_smod_pow2): Likewise.
10507 (expand_sdiv_pow2): Likewise.
10508 (expand_divmod): Strengthen locals "last", "insn" from rtx to
10509 rtx_insn *. Strengthen locals "label", "label1", "label2",
10510 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10511 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10512 (emit_store_flag): Likewise.
10513 (emit_store_flag_force): Strengthen local "label" from rtx to
10515 (do_cmp_and_jump): Likewise for param "label".
10517 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10519 * explow.c (force_reg): Strengthen local "insn" from rtx to
10521 (adjust_stack_1): Likewise.
10522 (allocate_dynamic_stack_space): Likewise. Strengthen locals
10523 "final_label", "available_label", "space_available" from rtx to
10525 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10526 (anti_adjust_stack_and_probe): Likewise.
10528 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10530 * except.h (sjlj_emit_function_exit_after): Strengthen param
10531 "after" from rtx to rtx_insn *. This is only called with
10532 result of get_last_insn (in function.c) so type-change should be
10535 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10536 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10537 to rtx_insn *. These fields are only used from except.c so this
10538 type-change should be self-contained to this patch.
10540 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10541 local "last" from rtx to rtx_insn *.
10542 (dw2_build_landing_pads): Likewise for local "seq".
10543 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10544 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10545 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
10547 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10549 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10550 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10551 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10552 referring to an insn. Strengthen local "dispatch_label" from
10553 rtx to rtx_code_label *.
10554 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10556 (expand_eh_return): Strengthen local "around_label" from
10557 rtx to rtx_code_label *.
10558 (convert_to_eh_region_ranges): Strengthen locals "iter",
10559 "last_action_insn", "first_no_action_insn",
10560 "first_no_action_insn_before_switch",
10561 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10565 * dwarf2out.c (last_var_location_insn): Strengthen this variable
10566 from rtx to rtx_insn *.
10567 (cached_next_real_insn): Likewise.
10568 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10569 working with insns.
10570 (dwarf2out_var_location): Strengthen locals "next_real",
10571 "next_note", "expected_next_loc_note", "last_start", "insn" from
10574 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10576 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10577 from rtx to rtx_insn *.
10578 (create_pseudo_cfg): Likewise for local "insn".
10580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10582 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10583 from rtx to rtx_insn *.
10584 (df_bb_regno_last_def_find): Likewise.
10586 * df-problems.c (df_rd_bb_local_compute): Likewise.
10587 (df_lr_bb_local_compute): Likewise.
10588 (df_live_bb_local_compute): Likewise.
10589 (df_chain_remove_problem): Likewise.
10590 (df_chain_create_bb): Likewise.
10591 (df_word_lr_bb_local_compute): Likewise.
10592 (df_remove_dead_eq_notes): Likewise for param "insn".
10593 (df_note_bb_compute): Likewise for local "insn".
10594 (simulate_backwards_to_point): Likewise.
10595 (df_md_bb_local_compute): Likewise.
10597 * df-scan.c (df_scan_free_bb_info): Likewise.
10598 (df_scan_start_dump): Likewise.
10599 (df_scan_start_block): Likewise.
10600 (df_install_ref_incremental): Likewise for local "insn".
10601 (df_insn_rescan_all): Likewise.
10602 (df_reorganize_refs_by_reg_by_insn): Likewise.
10603 (df_reorganize_refs_by_insn_bb): Likewise.
10604 (df_recompute_luids): Likewise.
10605 (df_bb_refs_record): Likewise.
10606 (df_update_entry_exit_and_calls): Likewise.
10607 (df_bb_verify): Likewise.
10609 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10611 * ddg.h (struct ddg_node): Strengthen fields "insn" and
10612 "first_note" from rtx to rtx_insn *.
10613 (get_node_of_insn): Likewise for param 2 "insn".
10614 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10616 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10618 (mem_write_insn_p): Likewise.
10619 (mem_access_insn_p): Likewise.
10620 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10621 (def_has_ccmode_p): Likewise for param "insn".
10622 (add_cross_iteration_register_deps): Likewise for locals
10623 "def_insn" and "use_insn".
10624 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10625 (build_intra_loop_deps): Likewise for local "src_insn".
10626 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10628 (get_node_of_insn): Likewise for param "insn".
10630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10632 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10633 (deletable_insn_p): Strengthen param "insn" from rtx to
10634 rtx_insn *. Add checked cast to rtx_call_insn when invoking
10635 find_call_stack_args, since this is guarded by CALL_P (insn).
10636 (marked_insn_p): Strengthen param "insn" from rtx to
10638 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
10639 invoking find_call_stack_args, since this is guarded by
10641 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10642 rtx_insn *; we know this is an insn since this was called by
10643 mark_nonreg_stores.
10644 (mark_nonreg_stores_2): Likewise.
10645 (mark_nonreg_stores): Strengthen param "insn" from rtx to
10647 (find_call_stack_args): Strengthen param "call_insn" from rtx to
10648 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10650 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10651 from rtx to rtx_insn *.
10652 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10653 "next", "ref_insn".
10654 (delete_unmarked_insns): Likewise for locals "insn", "next".
10655 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10656 (mark_reg_dependencies): Likewise for param "insn".
10657 (rest_of_handle_ud_dce): Likewise for local "insn".
10658 (word_dce_process_block): Likewise.
10659 (dce_process_block): Likewise.
10661 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10663 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10664 from rtx to rtx_insn *.
10665 (struct change_cc_mode_args): Likewise for field "insn".
10666 (this_insn): Strengthen from rtx to rtx_insn *.
10667 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10669 (validate_canon_reg): Strengthen param "insn" from rtx to
10671 (canon_reg): Likewise.
10672 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
10674 (record_jump_equiv): Strengthen param "insn" from rtx to
10676 (try_back_substitute_reg): Likewise, also for locals "prev",
10678 (find_sets_in_insn): Likewise for param "insn".
10679 (canonicalize_insn): Likewise.
10680 (cse_insn): Likewise. Add a checked cast.
10681 (invalidate_from_clobbers): Likewise for param "insn".
10682 (invalidate_from_sets_and_clobbers): Likewise.
10683 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10685 (cse_prescan_path): Strengthen local "insn" from rtx to
10687 (cse_extended_basic_block): Likewise for locals "insn" and
10689 (cse_main): Likewise for param "f".
10690 (check_for_label_ref): Likewise for local "insn".
10691 (set_live_p): Likewise for second param ("insn").
10692 (insn_live_p): Likewise for first param ("insn") and for local
10694 (cse_change_cc_mode_insn): Likewise for first param "insn".
10695 (cse_change_cc_mode_insns): Likewise for first and second params
10697 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10699 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10702 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10704 Anna Tikhonova <anna.tikhonova@intel.com>
10705 Ilya Tocar <ilya.tocar@intel.com>
10706 Andrey Turetskiy <andrey.turetskiy@intel.com>
10707 Ilya Verbin <ilya.verbin@intel.com>
10708 Kirill Yukhin <kirill.yukhin@intel.com>
10709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10711 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10713 * config/i386/sse.md
10714 (define_mode_iterator VI248_AVX2): Delete.
10715 (define_mode_iterator VI2_AVX2_AVX512BW): New.
10716 (define_mode_iterator VI48_AVX2): Ditto.
10717 (define_insn <shift_insn><mode>3): Delete.
10718 (define_insn "<shift_insn><mode>3<mask_name>" with
10719 VI2_AVX2_AVX512BW): New.
10720 (define_insn "<shift_insn><mode>3<mask_name>" with
10723 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10724 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10725 Anna Tikhonova <anna.tikhonova@intel.com>
10726 Ilya Tocar <ilya.tocar@intel.com>
10727 Andrey Turetskiy <andrey.turetskiy@intel.com>
10728 Ilya Verbin <ilya.verbin@intel.com>
10729 Kirill Yukhin <kirill.yukhin@intel.com>
10730 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10732 * config/i386/sse.md
10733 (define_mode_iterator VI4F_BRCST32x2): New.
10734 (define_mode_attr 64x2_mode): Ditto.
10735 (define_mode_attr 32x2mode): Ditto.
10736 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10737 with VI4F_BRCST32x2): Ditto.
10738 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10739 with V16FI mode iterator): Ditto.
10740 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10741 with V16FI): Ditto.
10742 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10743 with VI8F_BRCST64x2): Ditto.
10745 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10746 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10747 Anna Tikhonova <anna.tikhonova@intel.com>
10748 Ilya Tocar <ilya.tocar@intel.com>
10749 Andrey Turetskiy <andrey.turetskiy@intel.com>
10750 Ilya Verbin <ilya.verbin@intel.com>
10751 Kirill Yukhin <kirill.yukhin@intel.com>
10752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10754 * config/i386/sse.md
10755 (define_mode_iterator VI8_AVX512VL): New.
10756 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10758 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
10760 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10761 (define_mode_iterator V48_AVX512VL): New.
10762 (define_mode_iterator V12_AVX512VL): Ditto.
10763 (define_insn <avx512>_load<mode>_mask): Split into two similar
10764 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10765 Refactor output template.
10766 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10768 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10770 * cprop.c (struct occr): Strengthen field "insn" from rtx to
10772 (reg_available_p): Likewise for param "insn".
10773 (insert_set_in_table): Likewise.
10774 (hash_scan_set): Likewise.
10775 (hash_scan_insn): Likewise.
10776 (make_set_regs_unavailable): Likewise.
10777 (compute_hash_table_work): Likewise for local "insn".
10778 (reg_not_set_p): Strengthen param "insn" from const_rtx to
10780 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10781 (try_replace_reg): Likewise.
10782 (find_avail_set): Likewise.
10783 (cprop_jump): Likewise for params "setcc", "jump".
10784 (constprop_register): Likewise for param "insn".
10785 (cprop_insn): Likewise.
10786 (do_local_cprop): Likewise.
10787 (local_cprop_pass): Likewise for local "insn".
10788 (bypass_block): Likewise for params "setcc" and "jump".
10789 (bypass_conditional_jumps): Likewise for locals "setcc" and
10791 (one_cprop_pass): Likewise for local "insn".
10793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10795 * compare-elim.c (struct comparison_use): Strengthen field "insn"
10796 from rtx to rtx_insn *.
10797 (struct comparison): Likewise, also for field "prev_clobber".
10798 (conforming_compare): Likewise for param "insn".
10799 (arithmetic_flags_clobber_p): Likewise.
10800 (find_flags_uses_in_insn): Likewise.
10801 (find_comparison_dom_walker::before_dom_children): Likewise for
10802 locals "insn", "next", "last_clobber".
10803 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10805 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10807 * combine-stack-adj.c (struct csa_reflist): Strengthen field
10808 "insn" from rtx to rtx_insn *.
10809 (single_set_for_csa): Likewise for param "insn".
10810 (record_one_stack_ref): Likewise.
10811 (try_apply_stack_adjustment): Likewise.
10812 (struct record_stack_refs_data): Likewise for field "insn".
10813 (maybe_move_args_size_note): Likewise for params "last" and "insn".
10814 (prev_active_insn_bb): Likewise for return type and param "insn".
10815 (next_active_insn_bb): Likewise.
10816 (force_move_args_size_note): Likewise for params "prev" and "last"
10817 and locals "test", "next_candidate", "prev_candidate".
10818 (combine_stack_adjustments_for_block): Strengthen locals
10819 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10822 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10824 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10825 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10826 (subst_insn): Likewise for this variable.
10827 (added_links_insn): Likewise.
10828 (struct insn_link): Likewise for field "insn".
10829 (alloc_insn_link): Likewise for param "insn".
10830 (struct undobuf): Likewise for field "other_insn".
10831 (find_single_use): Likewise for param "insn" and local "next".
10832 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10833 (delete_noop_moves): Likewise for locals "insn", "next".
10834 (create_log_links): Likewise for locals "insn", "use_insn".
10835 Strengthen local "next_use" from rtx * to rtx_insn **.
10836 (insn_a_feeds_b): Likewise for params "a", "b".
10837 (combine_instructions): Likewise for param "f" and locals "insn",
10838 "next", "prev", "first", "last_combined_insn", "link", "link1",
10839 "temp". Replace use of NULL_RTX with NULL when referring to
10841 (setup_incoming_promotions): Likewise for param "first"
10842 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10843 (can_combine_p): Likewise for params "insn", "i3", "pred",
10844 "pred2", "succ", "succ2" and for local "p".
10845 (combinable_i3pat): Likewise for param "i3".
10846 (cant_combine_insn_p): Likewise for param "insn".
10847 (likely_spilled_retval_p): Likewise.
10848 (adjust_for_new_dest): Likewise.
10849 (update_cfg_for_uncondjump): Likewise, also for local "insn".
10850 (try_combine): Likewise for return type and for params "i3", "i2",
10851 "i1", "i0", "last_combined_insn", and for locals "insn",
10852 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10853 "i0_insn". Eliminate local "tem" in favor of new locals
10854 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
10855 checked cast for now to rtx_insn * on the return type of
10856 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
10858 (find_split_point): Strengthen param "insn" from rtx to
10860 (simplify_set): Likewise for local "other_insn".
10861 (recog_for_combine): Likewise for param "insn".
10862 (record_value_for_reg): Likewise.
10863 (record_dead_and_set_regs_1): Likewise for local
10864 "record_dead_insn".
10865 (record_dead_and_set_regs): Likewise for param "insn".
10866 (record_promoted_value): Likewise.
10867 (check_promoted_subreg): Likewise.
10868 (get_last_value_validate): Likewise.
10869 (reg_dead_at_p): Likewise.
10870 (move_deaths): Likewise for param "to_insn".
10871 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10872 and locals "place", "place2", "cc0_setter". Eliminate local "tem
10873 in favor of new locals "tem_note" and "tem_insn", the latter being
10875 (distribute_links): Strengthen locals "place", "insn" from rtx to
10878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10880 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10882 (can_delete_label_p): Require a const rtx_code_label * rather than
10884 (delete_insn): Add checked cast to rtx_code_label * when we know
10885 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
10887 (delete_insn_chain): Strengthen locals "prev" and "current" from
10888 rtx to rtx_insn *. Add a checked cast when assigning from
10889 "finish" (strengthening the params will come later). Add a
10890 checked cast to rtx_note * in region where we know
10892 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10894 (compute_bb_for_insn): Likewise.
10895 (free_bb_for_insn): Likewise for local "insn".
10896 (compute_bb_for_insn): Likewise.
10897 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10898 local "insn" from rtx to rtx_insn *
10899 (flow_active_insn_p): Require a const rtx_insn * rather than a
10901 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10903 (can_fallthru): Likewise for locals "insn" and "insn2".
10904 (bb_note): Likewise for local "note".
10905 (first_insn_after_basic_block_note): Likewise for local "note" and
10907 (rtl_split_block): Likewise for locals "insn" and "next".
10908 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10910 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10911 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10913 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10914 them), "kill_from", "barrier", "new_insn".
10915 (patch_jump_insn): Likewise for params "insn", "old_label".
10916 (redirect_branch_edge): Likewise for locals "old_label", "insn".
10917 (force_nonfallthru_and_redirect): Likewise for locals "insn",
10918 "old_label", "new_label".
10919 (rtl_tidy_fallthru_edge): Likewise for local "q".
10920 (rtl_split_edge): Likewise for locals "before", "last".
10921 (commit_one_edge_insertion): Likewise for locals "before",
10922 "after", "insns", "tmp", "last", adding a checked cast where
10923 currently necessary.
10924 (commit_edge_insertions): Likewise.
10925 (rtl_dump_bb): Likewise for locals "insn", "last".
10926 (print_rtl_with_bb): Likewise for local "x".
10927 (rtl_verify_bb_insns): Likewise for local "x".
10928 (rtl_verify_bb_pointers): Likewise for local "insn".
10929 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10931 (rtl_verify_fallthru): Likewise for local "insn".
10932 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10933 (purge_dead_edges): Likewise for local "insn".
10934 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10935 (skip_insns_after_block): Likewise for return type and for locals
10936 "insn", "last_insn", "next_head", "prev".
10937 (record_effective_endpoints): Likewise for locals "next_insn",
10939 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10940 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10941 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10942 (duplicate_insn_chain): For now, add checked cast from rtx to
10943 rtx_insn * when returning insn.
10944 (cfg_layout_duplicate_bb): Likewise for local "insn".
10945 (cfg_layout_delete_block): Likewise for locals "insn", "next",
10946 "prev", "remaints".
10947 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10948 (rtl_block_empty_p): Likewise.
10949 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10950 "split_point", "last".
10951 (rtl_block_ends_with_call_p): Likewise for local "insn".
10952 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10954 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10955 "split_at_insn" from rtx to rtx_insn *.
10956 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10957 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10958 to const rtx_insn *.
10959 (rtl_account_profile_record): Likewise.
10961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10963 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10965 (average_num_loop_insns): Likewise.
10966 (init_set_costs): Likewise for local "seq".
10967 (seq_cost): Likewise for param "seq", from const_rtx to const
10970 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10972 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10977 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10978 "f1" and "f2" from rtx * to rtx_insn **.
10979 (flow_find_head_matching_sequence): Likewise.
10981 * cfgcleanup.c (try_simplify_condjump): Strengthen local
10982 "cbranch_insn" from rtx to rtx_insn *.
10983 (thread_jump): Likewise for local "insn".
10984 (try_forward_edges): Likewise for local "last".
10985 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10986 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10988 (can_replace_by): Likewise for params "i1", "i2".
10989 (old_insns_match_p): Likewise.
10990 (merge_notes): Likewise.
10991 (walk_to_nondebug_insn): Likewise for param "i1".
10992 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10993 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
10994 "afterlast1", "afterlast2" from rtx to rtx_insn *.
10995 (flow_find_head_matching_sequence): Strengthen params "f1" and
10996 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
10997 "last1", "last2", "beforelast1", "beforelast2" from rtx to
10999 (outgoing_edges_match): Likewise for locals "last1", "last2".
11000 (try_crossjump_to_edge): Likewise for local "insn".
11001 Replace call to for_each_rtx with for_each_rtx_in_insn.
11003 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
11004 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
11005 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
11006 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
11007 (try_optimize_cfg): Strengthen local "last" from rtx to
11009 (delete_dead_jumptables): Likewise for locals "insn", "next",
11012 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
11013 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
11014 "rtx else_first_tail", to reflect the basic-block.h changes above.
11016 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11018 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11020 (purge_dead_tablejump_edges): Likewise.
11021 (find_bb_boundaries): Likewise for locals "insn", "end",
11022 "flow_transfer_insn".
11024 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11026 * caller-save.c (save_call_clobbered_regs): Strengthen locals
11027 "ins" and "prev" from rtx to rtx_insn *.
11029 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11031 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11033 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11034 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11036 (load_register_parameters): Likewise for local "before_arg".
11037 (check_sibcall_argument_overlap): Likewise for param "insn".
11038 (expand_call): Likewise for locals "normal_call_insns",
11039 "tail_call_insns", "insns", "before_call", "after_args",
11040 "before_arg", "last", "prev". Strengthen one of the "last" from
11041 rtx to rtx_call_insn *.
11042 (fixup_tail_calls): Strengthen local "insn" from rtx to
11044 (emit_library_call_value_1): Likewise for locals "before_call" and
11047 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11049 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11050 and "last" from rtx to rtx_insn *.
11051 (expand_builtin_nonlocal_goto): Likewise for local "insn".
11052 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11054 (expand_errno_check): Strengthen local "lab" from rtx to
11056 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11058 (expand_builtin_mathfn_2): Likewise.
11059 (expand_builtin_mathfn_ternary): Likewise.
11060 (expand_builtin_mathfn_3): Likewise.
11061 (expand_builtin_interclass_mathfn): Likewise for local "last".
11062 (expand_builtin_int_roundingfn): Likewise for local "insns".
11063 (expand_builtin_int_roundingfn_2): Likewise.
11064 (expand_builtin_strlen): Likewise for local "before_strlen".
11065 (expand_builtin_strncmp): Likewise for local "seq".
11066 (expand_builtin_signbit): Likewise for local "last".
11067 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11068 from rtx to rtx_code_label *.
11069 (expand_stack_restore): Strengthen local "prev" from rtx to
11072 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11074 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11076 (struct btr_def_s): Likewise.
11077 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11079 (add_btr_def): Likewise.
11080 (new_btr_user): Likewise.
11081 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11083 (link_btr_uses): Likewise.
11084 (move_btr_def): Likewise for locals "insp", "old_insn",
11085 "new_insn". Add checked cast to rtx_insn * for now on result of
11087 (can_move_up): Strengthen param "insn" from const_rtx to
11090 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11092 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11094 (get_uncond_jump_length): Likewise for locals "label", "jump".
11095 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11097 (add_labels_and_missing_jumps): Likewise for local "new_jump".
11098 (fix_up_fall_thru_edges): Likewise for local "old_jump".
11099 (find_jump_block): Likewise for local "insn".
11100 (fix_crossing_conditional_branches): Likewise for locals
11101 "old_jump", "new_jump".
11102 (fix_crossing_unconditional_branches): Likewise for locals
11103 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11104 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11106 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11108 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11110 (struct mem_insn): Likewise for field "insn".
11111 (reg_next_use): Strengthen from rtx * to rtx_insn **.
11112 (reg_next_inc_use): Likewise.
11113 (reg_next_def): Likewise.
11114 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11115 from rtx to rtx_insn *.
11116 (move_insn_before): Likewise for param "next_insn" and local "insns".
11117 (attempt_change): Likewise for local "mov_insn".
11118 (try_merge): Likewise for param "last_insn".
11119 (get_next_ref): Likewise for return type and local "insn".
11120 Strengthen param "next_array" from rtx * to rtx_insn **.
11121 (parse_add_or_inc): Strengthen param "insn" from rtx to
11123 (find_inc): Likewise for locals "insn" and "other_insn" (three of
11125 (merge_in_block): Likewise for locals "insn", "curr",
11127 (pass_inc_dec::execute): Update allocations of the arrays to
11128 reflect the stronger types.
11130 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11132 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11133 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
11134 from rtx to rtx_code_label *.
11136 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11138 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11141 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11143 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11144 generated a warning and prevented bootstrapping the compiler.
11146 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11148 * rtl.h (delete_related_insns): Strengthen return type from rtx to
11151 * jump.c (delete_related_insns): Likewise, also for locals "next"
11154 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11156 * genautomata.c (output_internal_insn_latency_func): When writing
11157 the function "internal_insn_latency" to insn-automata.c,
11158 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11159 allowing the optional guard function of (define_bypass) clauses to
11160 expect a pair of rtx_insn *, rather than a pair of rtx.
11161 (output_insn_latency_func): When writing the function
11162 "insn_latency", add an "uncast_" prefix to params "insn" and
11163 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11164 using checked casts from the params, thus enabling the above
11165 change to the generated "internal_insn_latency" function.
11167 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
11169 PR tree-optimization/62091
11170 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11171 handle correctly arrays.
11172 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11173 inheritance binfos.
11174 (record_known_type): Walk into inner type.
11175 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11176 condition on no type changes.
11178 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11180 * genattrtab.c (write_attr_get): Within the generated get_attr_
11181 functions, rename param "insn" to "uncast_insn" and reintroduce
11182 "insn" as an local rtx_insn * using a checked cast, so that "insn"
11183 is an rtx_insn * within insn-attrtab.c
11185 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11187 * output.h (peephole): Strengthen return type from rtx to
11189 * rtl.h (delete_for_peephole): Likewise for both params.
11190 * genpeep.c (main): In generated "peephole" function, strengthen
11191 return type and local "insn" from rtx to rtx_insn *. For now,
11192 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11193 rtx_insn *, with a checked cast.
11194 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11195 locals "insn", "next", "prev" from rtx to rtx_insn *.
11197 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
11199 PR tree-optimization/62112
11200 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11201 * gimple-iterator.h (gsi_replace): Return bool.
11202 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11203 moved from ref_may_alias_global_p.
11204 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11206 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11207 (stmt_kills_ref_p_1): Rename...
11208 (stmt_kills_ref_p): ... to this.
11209 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11210 stmt_kills_ref_p): Declare.
11211 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11212 Move the self-assignment case...
11213 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11215 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11217 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11219 * emit-rtl.c (try_split): Likewise, also for locals "before" and
11220 "after". For now, don't strengthen param "trial", which requires
11221 adding checked casts when returning it.
11223 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11225 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11226 "label" from rtx to rtx_code_label *. Strengthen param 1 of
11227 "var_location" hook from rtx to rtx_insn *.
11228 (debug_nothing_rtx): Delete in favor of...
11229 (debug_nothing_rtx_code_label): New prototype.
11230 (debug_nothing_rtx_rtx): Delete unused prototype.
11231 (debug_nothing_rtx_insn): New prototype.
11233 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11234 invoking debug_hooks->var_location (in two places, one in a NOTE
11235 case of a switch statement, the other guarded by a CALL_P
11236 conditional. Add checked cast to rtx_code_label * when invoking
11237 debug_hooks->label (within CODE_LABEL case of switch statement).
11239 * dbxout.c (dbx_debug_hooks): Update "label" hook from
11240 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11241 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11242 (xcoff_debug_hooks): Likewise.
11243 * debug.c (do_nothing_debug_hooks): Likewise.
11244 (debug_nothing_rtx): Delete in favor of...
11245 (debug_nothing_rtx_insn): New function.
11246 (debug_nothing_rtx_rtx): Delete unused function.
11247 (debug_nothing_rtx_code_label): New function.
11248 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11249 debug_nothing_rtx to debug_nothing_rtx_code_label.
11250 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11252 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11253 debug_nothing_rtx to debug_nothing_rtx_insn.
11254 (sdbout_label): Strengthen param "insn" from rtx to
11256 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11257 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11258 "var_location" hook from debug_nothing_rtx to
11259 debug_nothing_rtx_insn.
11261 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11263 * recog.h (insn_output_fn): Update this function typedef to match
11264 the changes below to the generated output functions, strengthening
11265 the 2nd param from rtx to rtx_insn *.
11267 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11268 insn when invoking an output function, to match the new signature
11269 of insn_output_fn with a stronger second param.
11271 * genconditions.c (write_header): In the generated code for
11272 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11273 to match the other changes in this patch.
11275 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11276 the generated "gen_" functions from rtx to rtx_insn * within their
11279 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11280 the subfunctions within the generated "recog_", "split", "peephole2"
11281 function trees from rtx to rtx_insn *. For now, the top-level
11282 generated functions ("recog", "split", "peephole2") continue to
11283 take a plain rtx for "insn", to avoid introducing dependencies on
11284 other patches. Rename this 2nd param from "insn" to
11285 "uncast_insn", and reintroduce "insn" as a local variable of type
11286 rtx_insn *, initialized at the top of the generated function with
11287 a checked cast on "uncast_insn".
11288 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11289 the generated "gen_" functions from rtx to rtx_insn * within their
11292 * genoutput.c (process_template): Strengthen the 2nd param within
11293 the generated "output_" functions "insn" from rtx to rtx_insn *.
11295 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11297 * tree-profile.c (tree_profiling): Skip external functions
11298 when doing coverage instrumentation.
11299 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11301 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11303 * config/rs6000/altivec.h (vec_cpsgn): New #define.
11304 (vec_mergee): Likewise.
11305 (vec_mergeo): Likewise.
11306 (vec_cntlz): Likewise.
11307 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11308 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11309 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11310 VMRGEW, and VMRGOW.
11311 * doc/extend.texi: Document various forms of vec_cpsgn,
11312 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11313 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11314 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11315 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11316 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11318 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11320 * config/rs6000/rs6000.c (context.h): New include.
11321 (tree-pass.h): Likewise.
11322 (make_pass_analyze_swaps): New decl.
11323 (rs6000_option_override): Register pass_analyze_swaps.
11324 (swap_web_entry): New subsclass of web_entry_base (df.h).
11325 (special_handling_values): New enum.
11326 (union_defs): New function.
11327 (union_uses): Likewise.
11328 (insn_is_load_p): Likewise.
11329 (insn_is_store_p): Likewise.
11330 (insn_is_swap_p): Likewise.
11331 (rtx_is_swappable_p): Likewise.
11332 (insn_is_swappable_p): Likewise.
11333 (chain_purpose): New enum.
11334 (chain_contains_only_swaps): New function.
11335 (mark_swaps_for_removal): Likewise.
11336 (swap_const_vector_halves): Likewise.
11337 (adjust_subreg_index): Likewise.
11338 (permute_load): Likewise.
11339 (permute_store): Likewise.
11340 (handle_special_swappables): Likewise.
11341 (replace_swap_with_copy): Likewise.
11342 (dump_swap_insn_table): Likewise.
11343 (rs6000_analyze_swaps): Likewise.
11344 (pass_data_analyze_swaps): New pass_data.
11345 (pass_analyze_swaps): New rtl_opt_pass.
11346 (make_pass_analyze_swaps): New function.
11347 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11349 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11351 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11352 type from rtx to rtx_insn *.
11353 (create_copy_of_insn_rtx): Likewise.
11354 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11355 (create_copy_of_insn_rtx): Likewise, also for local "res".
11357 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11359 * rtl.h (find_first_parameter_load): Strengthen return type from
11361 * rtlanal.c (find_first_parameter_load): Strengthen return type
11362 from rtx to rtx_insn *. Add checked cast for now, to postpone
11363 strengthening the params.
11365 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11368 * diagnostic.c: Set default caret.
11369 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11371 * diagnostic.h (struct diagnostic_context):
11373 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11375 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11376 (sel_bb_head): Strengthen return type insn_t (currently just an
11377 rtx) to rtx_insn *.
11378 (sel_bb_end): Likewise.
11380 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11381 (sel_bb_head): Strengthen return type and local "head" from
11382 insn_t (currently just an rtx) to rtx_insn *.
11383 (sel_bb_end): Likewise for return type.
11384 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11387 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11389 * basic-block.h (get_last_bb_insn): Strengthen return type from
11391 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11394 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11397 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11399 (diagnostic_report_diagnostic): ... from here.
11400 * toplev.c (general_init): Move code to c-family.
11402 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11404 * df.h (web_entry_base): Replace existing struct web_entry with a
11405 new class web_entry_base with only the predecessor member.
11406 (unionfind_root): Remove declaration and move to class member.
11407 (unionfind_union): Remove declaration and move to friend
11409 (union_defs): Remove declaration.
11410 * web.c (web_entry_base::unionfind_root): Modify to be member
11411 function and adjust accessors.
11412 (unionfind_union): Modify to be friend function and adjust
11414 (web_entry): New subclass of web_entry_base containing the reg
11416 (union_match_dups): Modify for struct -> class changes.
11417 (union_defs): Likewise.
11418 (entry_register): Likewise.
11419 (pass_web::execute): Likewise.
11421 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
11423 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11424 builtin define __VEC_ELEMENT_REG_ORDER__.
11426 2014-08-20 Martin Jambor <mjambor@suse.cz>
11427 Wei Mi <wmi@google.com>
11430 PR middle-end/61776
11431 * tree-ssa-operands.c (update_stmt_operands): Remove
11432 MODIFIED_NORETURN_CALLS.
11433 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11434 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11435 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11436 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11437 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11438 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11439 (gimple_call_set_ctrl_altering): New func.
11440 (gimple_call_ctrl_altering_p): Ditto.
11441 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11442 (make_blocks): Use gimple_call_initialize_ctrl_altering.
11443 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11444 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11445 remove MODIFIED_NORETURN_CALLS.
11447 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11449 * coverage.c (coverage_compute_profile_id): Return non-0;
11450 also handle symbols with unique name.
11451 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11453 2014-08-20 Steve Ellcey <sellcey@mips.com>
11455 PR middle-end/49191
11456 * doc/sourcebuild.texi (non_strict_align): New.
11458 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11460 * cgraphunit.c (ipa_passes, compile): Reshedule
11461 symtab_remove_unreachable_nodes passes; update comments.
11462 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11463 TODO_remove_functions before the pass; the functions ought to be
11465 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11466 TODO_remove_functions.
11467 * passes.c (pass_data_early_local_passes): Do not schedule function
11469 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11471 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11474 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11475 before setting the option.
11476 * diagnostic.c (diagnostic_classify_diagnostic): Record
11477 command-line status.
11479 2014-08-20 Richard Biener <rguenther@suse.de>
11482 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11483 to build uint{16,32,64}_type_node.
11485 2014-08-20 Terry Guo <terry.guo@arm.com>
11487 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11488 with immediate_operand.
11490 2014-08-20 David Malcolm <dmalcolm@redhat.com>
11492 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11493 "insn" from an as_a to a safe_as_a, for the case when "insn" is
11496 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11498 PR preprocessor/51303
11499 * incpath.c (remove_duplicates): Use cpp_warning.
11501 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11505 * doc/options.texi (CPP): Document it.
11506 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11507 * optc-gen.awk: Handle CPP.
11508 * opth-gen.awk: Likewise.
11510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11512 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11514 (duplicate_insn_chain): Likewise.
11515 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11516 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
11517 checked cast for now (until we can strengthen the params in the
11519 (duplicate_insn_chain): Likewise.
11521 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11523 * rtl.h (next_cc0_user): Strengthen return type from rtx to
11525 (prev_cc0_setter): Likewise.
11527 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11528 rtx_insn *, adding checked casts for now as necessary.
11529 (prev_cc0_setter): Likewise.
11531 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11533 * expr.h (emit_move_insn): Strengthen return type from rtx to
11535 (emit_move_insn_1): Likewise.
11536 (emit_move_complex_push): Likewise.
11537 (emit_move_complex_parts): Likewise.
11539 * expr.c (emit_move_via_integer): Strengthen return type from rtx
11540 to rtx_insn *. Replace use of NULL_RTX with NULL when working
11542 (emit_move_complex_push): Strengthen return type from rtx to
11544 (emit_move_complex): Likewise, also for local "ret".
11545 (emit_move_ccmode): Likewise.
11546 (emit_move_multi_word): Likewise for return type and locals
11547 "last_insn", "seq".
11548 (emit_move_insn_1): Likewise for return type and locals "result",
11550 (emit_move_insn): Likewise for return type and local "last_insn".
11551 (compress_float_constant): Likewise.
11553 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11555 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11556 from rtx to rtx_insn *.
11558 * rtl.h (emit_insn_before): Likewise.
11559 (emit_insn_before_noloc): Likewise.
11560 (emit_insn_before_setloc): Likewise.
11561 (emit_jump_insn_before): Likewise.
11562 (emit_jump_insn_before_noloc): Likewise.
11563 (emit_jump_insn_before_setloc): Likewise.
11564 (emit_call_insn_before): Likewise.
11565 (emit_call_insn_before_noloc): Likewise.
11566 (emit_call_insn_before_setloc): Likewise.
11567 (emit_debug_insn_before): Likewise.
11568 (emit_debug_insn_before_noloc): Likewise.
11569 (emit_debug_insn_before_setloc): Likewise.
11570 (emit_label_before): Likewise.
11571 (emit_insn_after): Likewise.
11572 (emit_insn_after_noloc): Likewise.
11573 (emit_insn_after_setloc): Likewise.
11574 (emit_jump_insn_after): Likewise.
11575 (emit_jump_insn_after_noloc): Likewise.
11576 (emit_jump_insn_after_setloc): Likewise.
11577 (emit_call_insn_after): Likewise.
11578 (emit_call_insn_after_noloc): Likewise.
11579 (emit_call_insn_after_setloc): Likewise.
11580 (emit_debug_insn_after): Likewise.
11581 (emit_debug_insn_after_noloc): Likewise.
11582 (emit_debug_insn_after_setloc): Likewise.
11583 (emit_label_after): Likewise.
11584 (emit_insn): Likewise.
11585 (emit_debug_insn): Likewise.
11586 (emit_jump_insn): Likewise.
11587 (emit_call_insn): Likewise.
11588 (emit_label): Likewise.
11589 (gen_clobber): Likewise.
11590 (emit_clobber): Likewise.
11591 (gen_use): Likewise.
11592 (emit_use): Likewise.
11595 (emit_barrier_before): Strengthen return type from rtx to
11597 (emit_barrier_after): Likewise.
11598 (emit_barrier): Likewise.
11600 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
11601 from rtx to rtx_insn *. Add checked casts for now when converting
11602 "last" from rtx to rtx_insn *.
11603 (emit_insn_before_noloc): Likewise for return type.
11604 (emit_jump_insn_before_noloc): Likewise.
11605 (emit_call_insn_before_noloc): Likewise.
11606 (emit_debug_insn_before_noloc): Likewise.
11607 (emit_barrier_before): Strengthen return type and local "insn"
11608 from rtx to rtx_barrier *.
11609 (emit_label_before): Strengthen return type from rtx to
11610 rtx_insn *. Add checked cast for now when returning param
11611 (emit_pattern_after_noloc): Strengthen return type from rtx to
11612 rtx_insn *. Add checked casts for now when converting "last" from
11614 (emit_insn_after_noloc): Strengthen return type from rtx to
11616 (emit_jump_insn_after_noloc): Likewise.
11617 (emit_call_insn_after_noloc): Likewise.
11618 (emit_debug_insn_after_noloc): Likewise.
11619 (emit_barrier_after): Strengthen return type from rtx to
11621 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11622 Add checked cast for now when converting "label" from rtx to
11624 (emit_pattern_after_setloc): Strengthen return type from rtx to
11625 rtx_insn *. Add checked casts for now when converting "last" from
11627 (emit_pattern_after): Strengthen return type from rtx to
11629 (emit_insn_after_setloc): Likewise.
11630 (emit_insn_after): Likewise.
11631 (emit_jump_insn_after_setloc): Likewise.
11632 (emit_jump_insn_after): Likewise.
11633 (emit_call_insn_after_setloc): Likewise.
11634 (emit_call_insn_after): Likewise.
11635 (emit_debug_insn_after_setloc): Likewise.
11636 (emit_debug_insn_after): Likewise.
11637 (emit_pattern_before_setloc): Likewise. Add checked casts for now
11638 when converting "last" from rtx to rtx_insn *.
11639 (emit_pattern_before): Strengthen return type from rtx to
11641 (emit_insn_before_setloc): Likewise.
11642 (emit_insn_before): Likewise.
11643 (emit_jump_insn_before_setloc): Likewise.
11644 (emit_jump_insn_before): Likewise.
11645 (emit_call_insn_before_setloc): Likewise.
11646 (emit_call_insn_before): Likewise.
11647 (emit_debug_insn_before_setloc): Likewise.
11648 (emit_debug_insn_before): Likewise.
11649 (emit_insn): Strengthen return type and locals "last", "insn",
11650 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
11651 within cases where we know we have an insn.
11652 (emit_debug_insn): Likewise.
11653 (emit_jump_insn): Likewise.
11654 (emit_call_insn): Strengthen return type and local "insn" from rtx
11656 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
11657 a checked cast to rtx_insn * for now on "label".
11658 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11659 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11660 (emit_use): Likewise.
11661 (gen_use): Likewise, also for local "seq".
11662 (emit): Likewise for return type and local "insn".
11663 (rtx_insn): Likewise for return type and local "new_rtx".
11665 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11666 from rtx to rtx_barrier *.
11668 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11669 changed return type from rtx to rtx_insn *, we must update
11670 "emit_fn" type, and this in turn means updating...
11671 (frame_insn): ...this. Strengthen return type from rtx to
11672 rtx_insn *. Introduce a new local "insn" of the appropriate type.
11674 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11676 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11677 rtx to rtx_jump_table_data *. Also for local.
11678 * rtl.h (emit_jump_table_data): Likewise.
11680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11682 * basic-block.h (create_basic_block_structure): Strengthen third
11683 param "bb_note" from rtx to rtx_note *.
11684 * rtl.h (emit_note_before): Strengthen return type from rtx to
11686 (emit_note_after): Likewise.
11687 (emit_note): Likewise.
11688 (emit_note_copy): Likewise. Also, strengthen param similarly.
11689 * function.h (struct rtl_data): Strengthen field
11690 "x_stack_check_probe_note" from rtx to rtx_note *.
11692 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11693 from rtx to rtx_note *.
11694 * cfgrtl.c (create_basic_block_structure): Strengthen third param
11695 "bb_note" from rtx to rtx_note *.
11696 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
11697 when calling emit_note_copy.
11698 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11700 (emit_note_after): Likewise.
11701 (emit_note_before): Likewise.
11702 (emit_note_copy): Likewise. Also, strengthen param similarly.
11703 (emit_note): Likewise.
11704 * except.c (emit_note_eh_region_end): Likewise for return type.
11705 Strengthen local "next" from rtx to rtx_insn *.
11706 (convert_to_eh_region_ranges): Strengthen local "note"
11707 from rtx to rtx_note *.
11708 * final.c (change_scope): Likewise.
11709 (reemit_insn_block_notes): Likewise, for both locals named "note".
11710 Also, strengthen local "insn" from rtx to rtx_insn *.
11711 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11713 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11714 strengthen local "seq" from rtx to rtx_insn *.
11715 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11717 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11719 (get_bb_note_from_pool): Strengthen return type from rtx to
11721 (sel_create_basic_block): Strengthen local "new_bb_note" from
11722 insn_t to rtx_note *.
11723 * var-tracking.c (emit_note_insn_var_location): Strengthen local
11724 "note" from rtx to rtx_note *.
11725 (emit_notes_in_bb): Likewise.
11727 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11729 * function.h (struct rtl_data): Strengthen field
11730 "x_parm_birth_insn" from rtx to rtx_insn *.
11731 * function.c (struct assign_parm_data_all): Strengthen fields
11732 "first_conversion_insn" and "last_conversion_insn" from rtx to
11735 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11737 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11738 to rtx_insn *; also for local "var_end_seq".
11739 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11740 (maybe_cleanup_end_of_block): Likewise for param "last" and local
11742 (expand_gimple_cond): Likewise for locals "last2" and "last".
11743 (mark_transaction_restart_calls): Likewise for local "insn".
11744 (expand_gimple_stmt): Likewise for return type and locals "last"
11746 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11747 (avoid_complex_debug_insns): Likewise for param "insn".
11748 (expand_debug_locations): Likewise for locals "insn", "last",
11749 "prev_insn" and "insn2".
11750 (expand_gimple_basic_block): Likewise for local "last".
11751 (construct_exit_block): Likewise for locals "head", "end",
11753 (pass_expand::execute): Likewise for locals "var_seq",
11754 "var_ret_seq", "next".
11756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11758 * asan.h (asan_emit_stack_protection): Strengthen return type from
11760 * asan.c (asan_emit_stack_protection): Likewise. Add local
11761 "insns" to hold the return value.
11763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11765 * basic-block.h (bb_note): Strengthen return type from rtx to
11767 * sched-int.h (bb_note): Likewise.
11768 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
11770 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11772 * rtl.h (make_insn_raw): Strengthen return type from rtx to
11775 * emit-rtl.c (make_insn_raw): Strengthen return type and local
11776 "insn" from rtx to rtx_insn *.
11777 (make_debug_insn_raw): Strengthen return type from rtx to
11778 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11779 (make_jump_insn_raw): Strengthen return type from rtx to
11780 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11781 (make_call_insn_raw): Strengthen return type from rtx to
11782 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11783 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11784 callback from rtx to rtx_insn *; likewise for local "insn" and
11785 "next", adding a checked cast to rtx_insn in the relevant cases of
11786 the switch statement.
11787 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11788 callback from rtx to rtx_insn *.
11789 (emit_pattern_after_setloc): Likewise.
11790 (emit_pattern_after): Likewise.
11791 (emit_pattern_before_setloc): Likewise.
11792 (emit_pattern_before): Likewise.
11794 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11796 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11798 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11799 accepting an rtx_insn *.
11800 (last_call_insn): Strengthen return type from rtx to
11803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11805 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11806 "insns" from rtx to rtx_insn *.
11807 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11808 locals "insn" and "prev".
11810 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11812 * rtl.h (tablejump_p): Strengthen third param from rtx * to
11813 rtx_jump_table_data **.
11815 * cfgbuild.c (make_edges): Introduce local "table", using it in
11816 place of "tmp" for jump table data.
11817 (find_bb_boundaries): Strengthen local "table" from rtx to
11818 rtx_jump_table_data *.
11819 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11820 (outgoing_edges_match): Likewise for locals "table1" and "table2".
11821 (try_crossjump_to_edge): Likewise.
11822 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11824 (patch_jump_insn): Introduce local "table", using it in place of
11825 "tmp" for jump table data.
11826 (force_nonfallthru_and_redirect): Introduce local "table", so that
11827 call to tablejump_p can receive an rtx_jump_table_data **. Update
11828 logic around the call to overwrite "note" appropriately if
11829 tablejump_p returns non-zero.
11830 (get_last_bb_insn): Introduce local "table", using it in place of
11831 "tmp" for jump table data.
11832 * dwarf2cfi.c (create_trace_edges): Likewise.
11834 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11835 from rtx to rtx_jump_table_data *.
11836 (create_fix_barrier): Strengthen local "tmp" from rtx to
11837 rtx_jump_table_data *.
11838 (arm_reorg): Likewise for local "table".
11840 * config/s390/s390.c (s390_chunkify_start): Likewise.
11842 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11844 * jump.c (delete_related_insns): Strengthen local "lab_next" from
11845 rtx to rtx_jump_table_data *.
11847 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11848 rtx_jump_table_data **. Add a checked cast when writing through
11849 the pointer: we know there that local "table" is non-NULL and that
11850 JUMP_TABLE_DATA_P (table) holds.
11851 (label_is_jump_target_p): Introduce local "table", using it in
11852 place of "tmp" for jump table data.
11854 2014-08-19 Marek Polacek <polacek@redhat.com>
11857 * doc/invoke.texi: Document -Wbool-compare.
11859 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11861 * rtl.h (entry_of_function): Strengthen return type from rtx to
11863 * cfgrtl.c (entry_of_function): Likewise.
11865 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11867 * emit-rtl.h (get_insns): Strengthen return type from rtx to
11868 rtx_insn *, adding a checked cast for now.
11869 (get_last_insn): Likewise.
11871 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11873 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11876 * emit-rtl.c (gen_label_rtx): Likewise.
11878 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11880 * rtl.h (previous_insn): Strengthen return type from rtx to
11882 (next_insn): Likewise.
11883 (prev_nonnote_insn): Likewise.
11884 (prev_nonnote_insn_bb): Likewise.
11885 (next_nonnote_insn): Likewise.
11886 (next_nonnote_insn_bb): Likewise.
11887 (prev_nondebug_insn): Likewise.
11888 (next_nondebug_insn): Likewise.
11889 (prev_nonnote_nondebug_insn): Likewise.
11890 (next_nonnote_nondebug_insn): Likewise.
11891 (prev_real_insn): Likewise.
11892 (next_real_insn): Likewise.
11893 (prev_active_insn): Likewise.
11894 (next_active_insn): Likewise.
11896 * emit-rtl.c (next_insn): Strengthen return type from rtx to
11897 rtx_insn *, adding a checked cast.
11898 (previous_insn): Likewise.
11899 (next_nonnote_insn): Likewise.
11900 (next_nonnote_insn_bb): Likewise.
11901 (prev_nonnote_insn): Likewise.
11902 (prev_nonnote_insn_bb): Likewise.
11903 (next_nondebug_insn): Likewise.
11904 (prev_nondebug_insn): Likewise.
11905 (next_nonnote_nondebug_insn): Likewise.
11906 (prev_nonnote_nondebug_insn): Likewise.
11907 (next_real_insn): Likewise.
11908 (prev_real_insn): Likewise.
11909 (next_active_insn): Likewise.
11910 (prev_active_insn): Likewise.
11912 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11913 param "stepfunc" so that it returns an rtx_insn * rather than an
11914 rtx, to track the change to prev_nonnote_insn_bb, which is the
11915 only function this is called with.
11916 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11918 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
11920 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11923 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11925 * coretypes.h (class rtx_debug_insn): Add forward declaration.
11926 (class rtx_nonjump_insn): Likewise.
11927 (class rtx_jump_insn): Likewise.
11928 (class rtx_call_insn): Likewise.
11929 (class rtx_jump_table_data): Likewise.
11930 (class rtx_barrier): Likewise.
11931 (class rtx_code_label): Likewise.
11932 (class rtx_note): Likewise.
11934 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11935 adding the invariant DEBUG_INSN_P (X).
11936 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11937 the invariant NONJUMP_INSN_P (X).
11938 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11939 the invariant JUMP_P (X).
11940 (class rtx_call_insn): New, a subclass of rtx_insn, adding
11941 the invariant CALL_P (X).
11942 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11943 invariant JUMP_TABLE_DATA_P (X).
11944 (class rtx_barrier): New, a subclass of rtx_insn, adding the
11945 invariant BARRIER_P (X).
11946 (class rtx_code_label): New, a subclass of rtx_insn, adding
11947 the invariant LABEL_P (X).
11948 (class rtx_note): New, a subclass of rtx_insn, adding
11949 the invariant NOTE_P(X).
11950 (is_a_helper <rtx_debug_insn *>::test): New.
11951 (is_a_helper <rtx_nonjump_insn *>::test): New.
11952 (is_a_helper <rtx_jump_insn *>::test): New.
11953 (is_a_helper <rtx_call_insn *>::test): New.
11954 (is_a_helper <rtx_jump_table_data *>::test): New functions,
11955 overloaded for both rtx and rtx_insn *.
11956 (is_a_helper <rtx_barrier *>::test): New.
11957 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11958 for both rtx and rtx_insn *.
11959 (is_a_helper <rtx_note *>::test): New.
11961 2014-08-19 Marek Polacek <polacek@redhat.com>
11963 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11964 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11965 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11966 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11968 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11970 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11971 rtx_insn *. To help with transition, for now, convert from an
11972 access macro into a pair of functions: BND_TO, returning an
11974 (SET_BND_TO): New function, for use where BND_TO is used as an
11977 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11979 (BND_TO): New function, adding a checked cast.
11980 (SET_BND_TO): New function.
11982 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11984 (compute_av_set_on_boundaries): Likewise.
11986 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11988 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11989 destination if it is used in source.
11990 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11991 (*popcount<mode>2_falsedep_1): Likewise.
11993 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11996 * configure.ac: Set install_gold_as_default to no first.
11997 * configure: Regenerated.
11999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12001 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
12002 "note_list" field will eventually be an rtx_insn *. To help with
12003 transition, for now, convert from an access macro into a pair of
12004 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
12005 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
12008 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
12009 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
12011 * sel-sched-ir.c (init_bb): Likewise.
12012 (sel_restore_notes): Likewise.
12013 (move_bb_info): Likewise.
12014 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
12015 (SET_BB_NOTE_LIST): New function.
12017 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12019 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12020 field will eventually be an rtx_insn *. To help with transition,
12021 for now, convert from an access macro into a pair of functions:
12022 VINSN_INSN_RTX, returning an rtx_insn *, and...
12023 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12024 is used as an lvalue.
12026 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12027 SET_VINSN_INSN_RTX where it's used as an lvalue.
12028 (VINSN_INSN_RTX): New function.
12029 (SET_VINSN_INSN_RTX): New function.
12031 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12033 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12034 eventually be rtx_insn *, but to help with transition, for now,
12035 convert from an access macro into a pair of functions: DEP_PRO
12036 returning an rtx_insn * and...
12037 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12038 lvalue, returning an rtx&.
12039 (DEP_CON): Analogous changes to DEP_PRO above.
12040 (SET_DEP_CON): Likewise.
12042 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12043 an lvalue to SET_DEP_CON.
12044 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12045 (sd_copy_back_deps): Likewise for DEP_CON.
12046 (DEP_PRO): New function, adding a checked cast for now.
12047 (DEP_CON): Likewise.
12048 (SET_DEP_PRO): New function.
12049 (SET_DEP_CON): Likewise.
12051 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12053 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12054 (extra_options): Add i386/cygwin.opt.
12055 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12056 (CPP_SPEC): Accept -pthread.
12057 (LINK_SPEC): Ditto.
12058 (GOMP_SELF_SPECS): Update comment.
12059 * config/i386/cygwin.opt: New file for -pthread flag.
12061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12063 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12064 * df.h (DF_REF_INSN): Convert from a macro to a function, so
12065 that we can return an rtx_insn *.
12067 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12069 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12070 when building executables, not DLLs. Add --large-address-aware
12071 under the same conditions.
12072 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12073 when building executables, not DLLs. Add --large-address-aware
12074 under the same conditions when using -m32.
12076 * config/i386/cygwin-stdint.h: Throughout, make type
12077 definitions dependent on target architecture, not host.
12079 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12081 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
12082 the return type from rtx to rtx_insn *, which will enable various
12083 conversions in followup patches. For now this is is done by a
12085 (NEXT_INSN): Likewise.
12086 (SET_PREV_INSN): Convert to an inline function. This is intended
12087 for use as an lvalue, and so returns an rtx& to allow in-place
12089 (SET_NEXT_INSN): Likewise.
12091 2014-07-08 Mark Wielaard <mjw@redhat.com>
12094 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12096 2014-08-19 Marek Polacek <polacek@redhat.com>
12099 * cgraphunit.c (handle_alias_pairs): Fix condition.
12101 2014-08-19 Richard Biener <rguenther@suse.de>
12103 * gimple-fold.c (fold_gimple_assign): Properly build a
12104 null-pointer constant when devirtualizing addresses.
12106 2014-07-07 Mark Wielaard <mjw@redhat.com>
12108 * dwarf2out.c (decl_quals): New function.
12109 (modified_type_die): Take one cv_quals argument instead of two,
12110 one for const and one for volatile.
12111 (add_type_attribute): Likewise.
12112 (generic_parameter_die): Call add_type_attribute with one modifier
12114 (base_type_for_mode): Likewise.
12115 (add_bounds_info): Likewise.
12116 (add_subscript_info): Likewise.
12117 (gen_array_type_die): Likewise.
12118 (gen_descr_array_type_die): Likewise.
12119 (gen_entry_point_die): Likewise.
12120 (gen_enumeration_type_die): Likewise.
12121 (gen_formal_parameter_die): Likewise.
12122 (gen_subprogram_die): Likewise.
12123 (gen_variable_die): Likewise.
12124 (gen_const_die): Likewise.
12125 (gen_field_die): Likewise.
12126 (gen_pointer_type_die): Likewise.
12127 (gen_reference_type_die): Likewise.
12128 (gen_ptr_to_mbr_type_die): Likewise.
12129 (gen_inheritance_die): Likewise.
12130 (gen_subroutine_type_die): Likewise.
12131 (gen_typedef_die): Likewise.
12132 (force_type_die): Likewise.
12134 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12136 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12138 * configure: Regenerate.
12140 2014-08-19 Richard Biener <rguenther@suse.de>
12142 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12143 DECL_EXTERNALs in BLOCKs as non-references.
12144 * tree-streamer-out.c (streamer_write_chain): Likewise.
12146 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
12147 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12148 Anna Tikhonova <anna.tikhonova@intel.com>
12149 Ilya Tocar <ilya.tocar@intel.com>
12150 Andrey Turetskiy <andrey.turetskiy@intel.com>
12151 Ilya Verbin <ilya.verbin@intel.com>
12152 Kirill Yukhin <kirill.yukhin@intel.com>
12153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12155 * config/i386/sse.md
12156 (define_mode_iterator VI48_AVX512F): Delete.
12157 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12158 (define_mode_iterator VI2_AVX512VL): Ditto.
12159 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12162 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12164 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12165 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12166 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12167 with VI48_AVX512F_AVX512VL): New.
12168 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12169 with VI2_AVX512VL): Ditto.
12171 2014-08-19 Marek Polacek <polacek@redhat.com>
12173 * doc/invoke.texi: Document -Wc99-c11-compat.
12175 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12177 * rtl.h (PREV_INSN): Split macro in two: the existing one,
12178 for rvalues, and...
12179 (SET_PREV_INSN): New macro, for use as an lvalue.
12180 (NEXT_INSN, SET_NEXT_INSN): Likewise.
12182 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12183 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12184 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12185 (fixup_abnormal_edges): Likewise.
12186 (unlink_insn_chain): Likewise.
12187 (fixup_reorder_chain): Likewise.
12188 (cfg_layout_delete_block): Likewise.
12189 (cfg_layout_merge_blocks): Likewise.
12190 * combine.c (update_cfg_for_uncondjump): Likewise.
12191 * emit-rtl.c (link_insn_into_chain): Likewise.
12192 (remove_insn): Likewise.
12193 (delete_insns_since): Likewise.
12194 (reorder_insns_nobb): Likewise.
12195 (emit_insn_after_1): Likewise.
12196 * final.c (rest_of_clean_state): Likewise.
12197 (final_scan_insn): Likewise.
12198 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12199 * haifa-sched.c (concat_note_lists): Likewise.
12200 (remove_notes): Likewise.
12201 (restore_other_notes): Likewise.
12202 (move_insn): Likewise.
12203 (unlink_bb_notes): Likewise.
12204 (restore_bb_notes): Likewise.
12205 * jump.c (delete_for_peephole): Likewise.
12206 * optabs.c (emit_libcall_block_1): Likewise.
12207 * reorg.c (emit_delay_sequence): Likewise.
12208 (fill_simple_delay_slots): Likewise.
12209 * sel-sched-ir.c (sel_move_insn): Likewise.
12210 (sel_remove_insn): Likewise.
12211 (get_bb_note_from_pool): Likewise.
12212 * sel-sched.c (move_nop_to_previous_block): Likewise.
12214 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12215 * config/c6x/c6x.c (gen_one_bundle): Likewise.
12216 (c6x_gen_bundles): Likewise.
12217 (hwloop_optimize): Likewise.
12218 * config/frv/frv.c (frv_function_prologue): Likewise.
12219 (frv_register_nop): Likewise.
12220 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12221 (ia64_reorg): Likewise.
12222 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12223 (mep_make_bundle): Likewise.
12224 (mep_bundle_insns): Likewise.
12225 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12226 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12227 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12229 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12231 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
12232 return type from rtx to rtx_insn *.
12233 (BB_END): Likewise.
12234 (BB_HEADER): Likewise.
12235 (BB_FOOTER): Likewise.
12236 (SET_BB_HEAD): Convert to a function.
12237 (SET_BB_END): Likewise.
12238 (SET_BB_HEADER): Likewise.
12239 (SET_BB_FOOTER): Likewise.
12241 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12242 Strengthen the return type from rtx to rtx_insn *. For now, this
12243 is done by adding a checked cast, but this will eventually
12244 become a field lookup.
12245 (BB_END): Likewise.
12246 (BB_HEADER): Likewise.
12247 (BB_FOOTER): Likewise.
12248 (SET_BB_HEAD): New function, from macro of same name. This is
12249 intended for use as an lvalue, and so returns an rtx& to allow
12250 in-place modification.
12251 (SET_BB_END): Likewise.
12252 (SET_BB_HEADER): Likewise.
12253 (SET_BB_FOOTER): Likewise.
12255 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12257 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12258 for rvalues, and...
12259 (SET_BB_HEAD): New macro, for use as a lvalue.
12260 (BB_END, SET_BB_END): Likewise.
12261 (BB_HEADER, SET_BB_HEADER): Likewise.
12262 (BB_FOOTER, SET_BB_FOOTER): Likewise.
12264 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12265 of BB_* macros into SET_BB_* macros.
12266 (fix_crossing_unconditional_branches): Likewise.
12267 * caller-save.c (save_call_clobbered_regs): Likewise.
12268 (insert_one_insn): Likewise.
12269 * cfgbuild.c (find_bb_boundaries): Likewise.
12270 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12271 (outgoing_edges_match): Likewise.
12272 (try_optimize_cfg): Likewise.
12273 * cfgexpand.c (expand_gimple_cond): Likewise.
12274 (expand_gimple_tailcall): Likewise.
12275 (expand_gimple_basic_block): Likewise.
12276 (construct_exit_block): Likewise.
12277 * cfgrtl.c (delete_insn): Likewise.
12278 (create_basic_block_structure): Likewise.
12279 (rtl_delete_block): Likewise.
12280 (rtl_split_block): Likewise.
12281 (emit_nop_for_unique_locus_between): Likewise.
12282 (rtl_merge_blocks): Likewise.
12283 (block_label): Likewise.
12284 (try_redirect_by_replacing_jump): Likewise.
12285 (emit_barrier_after_bb): Likewise.
12286 (fixup_abnormal_edges): Likewise.
12287 (record_effective_endpoints): Likewise.
12288 (relink_block_chain): Likewise.
12289 (fixup_reorder_chain): Likewise.
12290 (fixup_fallthru_exit_predecessor): Likewise.
12291 (cfg_layout_duplicate_bb): Likewise.
12292 (cfg_layout_split_block): Likewise.
12293 (cfg_layout_delete_block): Likewise.
12294 (cfg_layout_merge_blocks): Likewise.
12295 * combine.c (update_cfg_for_uncondjump): Likewise.
12296 * emit-rtl.c (add_insn_after): Likewise.
12297 (remove_insn): Likewise.
12298 (reorder_insns): Likewise.
12299 (emit_insn_after_1): Likewise.
12300 * haifa-sched.c (get_ebb_head_tail): Likewise.
12301 (restore_other_notes): Likewise.
12302 (move_insn): Likewise.
12303 (sched_extend_bb): Likewise.
12304 (fix_jump_move): Likewise.
12305 * ifcvt.c (noce_process_if_block): Likewise.
12306 (dead_or_predicable): Likewise.
12307 * ira.c (update_equiv_regs): Likewise.
12308 * reg-stack.c (change_stack): Likewise.
12309 * sel-sched-ir.c (sel_move_insn): Likewise.
12310 * sel-sched.c (move_nop_to_previous_block): Likewise.
12312 * config/c6x/c6x.c (hwloop_optimize): Likewise.
12313 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12315 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12317 * rtl.h (for_each_rtx_in_insn): New function.
12318 * rtlanal.c (for_each_rtx_in_insn): Likewise.
12320 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12322 * coretypes.h (class rtx_insn): Add forward declaration.
12324 * rtl.h: Include is-a.h.
12325 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12326 workaround to ensure gengtype knows inheritance is occurring,
12327 whilst continuing to use the pre-existing special-casing for
12329 (class rtx_insn): New subclass of rtx_def, adding the
12330 invariant that we're dealing with something we can sanely use
12331 INSN_UID, NEXT_INSN, PREV_INSN on.
12332 (is_a_helper <rtx_insn *>::test): New.
12333 (is_a_helper <const rtx_insn *>::test): New.
12335 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12337 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12339 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12341 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12344 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12346 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12347 to BUILT_IN_UNREACHABLE.
12349 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
12352 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12354 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12355 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12356 (ffs<mode>2): Do not expand with tzcnt for
12357 TARGET_AVOID_FALSE_DEP_FOR_BMI.
12358 (ffssi2_no_cmove): Ditto.
12359 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12360 (ctz<mode>2): New expander.
12361 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12362 (*ctz<mode>2_falsedep): New insn.
12363 (*ctz<mode>2): Rename from ctz<mode>2.
12364 (clz<mode>2_lzcnt): New expander.
12365 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12366 (*clz<mode>2_lzcnt_falsedep): New insn.
12367 (*clz<mode>2): Rename from ctz<mode>2.
12368 (popcount<mode>2): New expander.
12369 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12370 (*popcount<mode>2_falsedep): New insn.
12371 (*popcount<mode>2): Rename from ctz<mode>2.
12372 (*popcount<mode>2_cmp): Remove.
12373 (*popcountsi2_cmp_zext): Ditto.
12375 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
12377 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12378 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12379 * config/microblaze/microblaze.h
12380 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12382 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
12385 * configure.ac: Set install_gold_as_default to no for
12387 * configure: Regenerated.
12389 2014-08-18 Roman Gareev <gareevroman@gmail.com>
12391 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12392 * config.in: Add undef of HAVE_isl.
12393 * configure: Regenerate.
12394 * configure.ac: Add definition of HAVE_isl.
12395 * graphite-blocking.c: Add checking of HAVE_isl.
12396 * graphite-dependences.c: Likewise.
12397 * graphite-interchange.c: Likewise.
12398 * graphite-isl-ast-to-gimple.c: Likewise.
12399 * graphite-optimize-isl.c: Likewise.
12400 * graphite-poly.c: Likewise.
12401 * graphite-scop-detection.c: Likewise.
12402 * graphite-sese-to-poly.c: Likewise.
12403 * graphite.c: Likewise.
12404 * toplev.c: Replace the checking of HAVE_cloog with the checking
12407 2014-08-18 Richard Biener <rguenther@suse.de>
12409 PR tree-optimization/62090
12410 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12411 (fold_builtin_3): Do not fold snprintf.
12412 (fold_builtin_4): Likewise.
12413 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12414 moved from builtins.c.
12415 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12416 (gimple_fold_builtin): Do not fold sprintf here.
12418 2014-08-18 Richard Biener <rguenther@suse.de>
12420 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12422 (maybe_canonicalize_mem_ref_addr): ... this function.
12423 (fold_stmt_1): Apply it here before all simplification.
12425 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
12428 * cgraph.h (cgraph_node::create_indirect_edge): Add
12429 compute_indirect_info param.
12430 * cgraph.c (cgraph_node::create_indirect_edge): Compute
12431 indirect_info only when it is required.
12432 * cgraphclones.c (cgraph_clone_edge): Do not recompute
12433 indirect_info fore cloned indirect edge.
12435 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12436 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12437 Anna Tikhonova <anna.tikhonova@intel.com>
12438 Ilya Tocar <ilya.tocar@intel.com>
12439 Andrey Turetskiy <andrey.turetskiy@intel.com>
12440 Ilya Verbin <ilya.verbin@intel.com>
12441 Kirill Yukhin <kirill.yukhin@intel.com>
12442 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12444 * config/i386/sse.md
12445 (define_mode_iterator VI8_AVX2_AVX512BW): New.
12446 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12448 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12449 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12450 Anna Tikhonova <anna.tikhonova@intel.com>
12451 Ilya Tocar <ilya.tocar@intel.com>
12452 Andrey Turetskiy <andrey.turetskiy@intel.com>
12453 Ilya Verbin <ilya.verbin@intel.com>
12454 Kirill Yukhin <kirill.yukhin@intel.com>
12455 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12457 * config/i386/sse.md
12458 (define_mode_iterator VF1_AVX512VL): New.
12459 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12460 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12463 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12465 Anna Tikhonova <anna.tikhonova@intel.com>
12466 Ilya Tocar <ilya.tocar@intel.com>
12467 Andrey Turetskiy <andrey.turetskiy@intel.com>
12468 Ilya Verbin <ilya.verbin@intel.com>
12469 Kirill Yukhin <kirill.yukhin@intel.com>
12470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12472 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12473 * config/i386/i386.md
12474 (define_code_iterator any_float): New.
12475 (define_code_attr floatsuffix): New.
12476 * config/i386/sse.md
12477 (define_mode_iterator VF1_128_256VL): New.
12478 (define_mode_iterator VF2_512_256VL): New.
12479 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12481 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12482 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12484 (define_mode_attr qq2pssuff): New.
12485 (define_mode_attr sselongvecmode): New.
12486 (define_mode_attr sselongvecmodelower): New.
12487 (define_mode_attr sseintvecmode3): New.
12488 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12490 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12491 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12492 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12493 (define_insn "ufloatv2siv2df2<mask_name>"): New.
12495 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12497 Anna Tikhonova <anna.tikhonova@intel.com>
12498 Ilya Tocar <ilya.tocar@intel.com>
12499 Andrey Turetskiy <andrey.turetskiy@intel.com>
12500 Ilya Verbin <ilya.verbin@intel.com>
12501 Kirill Yukhin <kirill.yukhin@intel.com>
12502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12504 * config/i386/sse.md
12505 (define_mode_iterator VF2_AVX512VL): New.
12506 (define_mode_attr sseintvecmode2): New.
12507 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12508 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12509 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12511 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12513 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12515 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12518 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12520 Anna Tikhonova <anna.tikhonova@intel.com>
12521 Ilya Tocar <ilya.tocar@intel.com>
12522 Andrey Turetskiy <andrey.turetskiy@intel.com>
12523 Ilya Verbin <ilya.verbin@intel.com>
12524 Kirill Yukhin <kirill.yukhin@intel.com>
12525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12527 * config/i386/i386.md
12528 (define_insn "*movoi_internal_avx"): Add evex version.
12529 (define_insn "*movti_internal"): Ditto.
12531 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12532 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12533 Anna Tikhonova <anna.tikhonova@intel.com>
12534 Ilya Tocar <ilya.tocar@intel.com>
12535 Andrey Turetskiy <andrey.turetskiy@intel.com>
12536 Ilya Verbin <ilya.verbin@intel.com>
12537 Kirill Yukhin <kirill.yukhin@intel.com>
12538 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12540 * config/i386/i386.md
12541 (define_attr "isa"): Add avx512dq, noavx512dq.
12542 (define_attr "enabled"): Ditto.
12543 * config/i386/sse.md
12544 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12546 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12547 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12548 Anna Tikhonova <anna.tikhonova@intel.com>
12549 Ilya Tocar <ilya.tocar@intel.com>
12550 Andrey Turetskiy <andrey.turetskiy@intel.com>
12551 Ilya Verbin <ilya.verbin@intel.com>
12552 Kirill Yukhin <kirill.yukhin@intel.com>
12553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12555 * config/i386/i386.c
12556 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12557 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12558 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12559 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12560 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12561 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12562 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12563 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12564 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12565 * config/i386/sse.md
12566 (define_mode_iterator VMOVE): Allow V4TI mode.
12567 (define_mode_iterator V_AVX512VL): New.
12568 (define_mode_iterator V): New handling for AVX512VL.
12569 (define_insn "avx512f_load<mode>_mask"): Delete.
12570 (define_insn "<avx512>_load<mode>_mask"): New.
12571 (define_insn "avx512f_store<mode>_mask"): Delete.
12572 (define_insn "<avx512>_store<mode>_mask"): New.
12575 2014-08-18 Yury Gribov <y.gribov@samsung.com>
12578 * asan.c (instrument_derefs): Fix bitfield check.
12580 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12582 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12583 * config/rs6000/htm.md (ttest): Remove clobber.
12584 * config/rs6000/predicates.md (any_mask_operand): New predicate.
12585 (and_operand): Reformat.
12586 (and_2rld_operand): New predicate.
12587 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12589 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12590 parameter. Handle AND directly.
12591 (rs6000_split_logical_di): Remove last parameter.
12592 (rs6000_split_logical): Remove last parameter. Remove obsolete
12594 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12595 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12596 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
12597 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12598 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12599 and 5 anonymous splitters): Delete.
12600 (and<mode>3): New expander.
12601 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12602 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12603 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12604 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12605 (floatdisf2_internal1): Remove clobbers.
12606 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12607 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12608 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12609 (and<mode>3 for BOOL_128): Remove clobber.
12610 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
12611 rs6000_split_logical.
12612 (*bool<mode>3_internal for BOOL_128): Adjust call of
12613 rs6000_split_logical.
12614 (*boolc<mode>3_internal1 for BOOL_128,
12615 *boolc<mode>3_internal2 for BOOL_128,
12616 *boolcc<mode>3_internal1 for BOOL_128,
12617 *boolcc<mode>3_internal2 for BOOL_128,
12618 *eqv<mode>3_internal1 for BOOL_128,
12619 *eqv<mode>3_internal2 for BOOL_128,
12620 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12621 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12623 (*vec_reload_and_reg_<mptrsize>): Delete.
12625 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12627 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12628 and split, *boolccsi3_internal3 and split): Delete.
12629 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12630 *boolccdi3_internal3 and split): Delete.
12631 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12632 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
12634 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12636 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12637 and split, *boolcsi3_internal3 and split): Delete.
12638 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12639 *boolcdi3_internal3 and split): Delete.
12640 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12642 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12644 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12645 <'u'>: Also support printing the low-order 16 bits.
12646 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12647 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12648 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12649 *booldi3_internal3 and split): Delete.
12650 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12651 *bool<mode>3_dot2): New.
12652 (two anonymous define_splits for non_logical_cint_operand): Merge.
12654 2014-08-17 Marek Polacek <polacek@redhat.com>
12655 Manuel López-Ibáñez <manu@gcc.gnu.org>
12658 * diagnostic.c (adjust_line): Add gcc_checking_assert.
12659 (diagnostic_show_locus): Don't print caret diagnostic
12660 if a column is larger than the line_width.
12662 2014-08-17 Roman Gareev <gareevroman@gmail.com>
12664 * common.opt: Make the ISL AST generator to be the main code generator
12667 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
12669 * wide-int.h (generic_wide_int): Declare as class instead of struct.
12671 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
12674 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12676 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12677 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12678 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12680 * config/pa/pa.md (begin_brtab): Delete insn.
12681 (end_brtab): Likewise.
12683 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12685 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12687 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
12689 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12690 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12691 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12692 (get_dynamic_type): Remove.
12693 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12694 (clear_speculation): Bring to ipa-deivrt.h
12695 (get_class_context): Rename to ...
12696 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12697 (contains_type_p): Update.
12698 (get_dynamic_type): Rename to ...
12699 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12700 (possible_polymorphic_call_targets): UPdate.
12701 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12702 * ipa-prop.c (ipa_analyze_call_uses): Update.
12704 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
12706 * doc/invoke.texi (SH options): Document missing processor variant
12707 options. Remove references to Hitachi. Undocument deprecated mspace
12710 2014-08-15 Jason Merrill <jason@redhat.com>
12712 * tree.c (type_hash_canon): Uncomment assert.
12714 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12716 * input.h (in_system_header_at): Add comment.
12718 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12721 * diagnostic.c (build_message_string): Make it extern.
12722 * diagnostic.h (build_message_string): Make it extern.
12724 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
12726 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12727 load/store from/to non-floating class pseudo.
12729 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12731 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12733 2014-08-15 Richard Biener <rguenther@suse.de>
12735 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12736 (get_constraint_for_ssa_var): Remove dead code.
12737 (get_constraint_for_1): Adjust.
12738 (find_what_var_points_to): Likewise.
12739 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
12741 2014-08-15 Ilya Tocar <tocarip@gmail.com>
12744 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12745 (_mm512_mask_cmpge_epu32_mask): Ditto.
12746 (_mm512_cmpge_epu32_mask): Ditto.
12747 (_mm512_mask_cmpge_epi64_mask): Ditto.
12748 (_mm512_cmpge_epi64_mask): Ditto.
12749 (_mm512_mask_cmpge_epu64_mask): Ditto.
12750 (_mm512_cmpge_epu64_mask): Ditto.
12751 (_mm512_mask_cmple_epi32_mask): Ditto.
12752 (_mm512_cmple_epi32_mask): Ditto.
12753 (_mm512_mask_cmple_epu32_mask): Ditto.
12754 (_mm512_cmple_epu32_mask): Ditto.
12755 (_mm512_mask_cmple_epi64_mask): Ditto.
12756 (_mm512_cmple_epi64_mask): Ditto.
12757 (_mm512_mask_cmple_epu64_mask): Ditto.
12758 (_mm512_cmple_epu64_mask): Ditto.
12759 (_mm512_mask_cmplt_epi32_mask): Ditto.
12760 (_mm512_cmplt_epi32_mask): Ditto.
12761 (_mm512_mask_cmplt_epu32_mask): Ditto.
12762 (_mm512_cmplt_epu32_mask): Ditto.
12763 (_mm512_mask_cmplt_epi64_mask): Ditto.
12764 (_mm512_cmplt_epi64_mask): Ditto.
12765 (_mm512_mask_cmplt_epu64_mask): Ditto.
12766 (_mm512_cmplt_epu64_mask): Ditto.
12767 (_mm512_mask_cmpneq_epi32_mask): Ditto.
12768 (_mm512_mask_cmpneq_epu32_mask): Ditto.
12769 (_mm512_cmpneq_epu32_mask): Ditto.
12770 (_mm512_mask_cmpneq_epi64_mask): Ditto.
12771 (_mm512_cmpneq_epi64_mask): Ditto.
12772 (_mm512_mask_cmpneq_epu64_mask): Ditto.
12773 (_mm512_cmpneq_epu64_mask): Ditto.
12774 (_mm512_castpd_ps): Ditto.
12775 (_mm512_castpd_si512): Ditto.
12776 (_mm512_castps_pd): Ditto.
12777 (_mm512_castps_si512): Ditto.
12778 (_mm512_castsi512_ps): Ditto.
12779 (_mm512_castsi512_pd): Ditto.
12780 (_mm512_castpd512_pd128): Ditto.
12781 (_mm512_castps512_ps128): Ditto.
12782 (_mm512_castsi512_si128): Ditto.
12783 (_mm512_castpd512_pd256): Ditto.
12784 (_mm512_castps512_ps256): Ditto.
12785 (_mm512_castsi512_si256): Ditto.
12786 (_mm512_castpd128_pd512): Ditto.
12787 (_mm512_castps128_ps512): Ditto.
12788 (_mm512_castsi128_si512): Ditto.
12789 (_mm512_castpd256_pd512): Ditto.
12790 (_mm512_castps256_ps512): Ditto.
12791 (_mm512_castsi256_si512): Ditto.
12792 (_mm512_cmpeq_epu32_mask): Ditto.
12793 (_mm512_mask_cmpeq_epu32_mask): Ditto.
12794 (_mm512_mask_cmpeq_epu64_mask): Ditto.
12795 (_mm512_cmpeq_epu64_mask): Ditto.
12796 (_mm512_cmpgt_epu32_mask): Ditto.
12797 (_mm512_mask_cmpgt_epu32_mask): Ditto.
12798 (_mm512_mask_cmpgt_epu64_mask): Ditto.
12799 (_mm512_cmpgt_epu64_mask): Ditto.
12800 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12801 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12802 * config/i386/i386.c (enum ix86_builtins): Add
12803 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12804 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12805 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12806 (bdesc_args): Add __builtin_ia32_si512_256si,
12807 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12808 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12809 __builtin_ia32_pd512_pd.
12810 (ix86_expand_args_builtin): Handle new FTYPEs.
12811 * config/i386/sse.md (castmode): Add 512-bit modes.
12812 (AVX512MODE2P): New.
12813 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12814 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12816 2014-08-15 Richard Biener <rguenther@suse.de>
12818 * fold-const.c (tree_swap_operands_p): Put all constants
12819 last, also strip sign-changing NOPs when considering further
12820 canonicalization. Canonicalize also when optimizing for size.
12822 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12824 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12825 one_match > zero_match case to just before simple_sequence.
12827 2014-08-15 Richard Biener <rguenther@suse.de>
12829 * data-streamer.h (streamer_string_index, string_for_index):
12831 * data-streamer-out.c (streamer_string_index): Make static.
12832 * data-streamer-in.c (string_for_index): Likewise.
12833 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12834 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12836 2014-08-15 Richard Biener <rguenther@suse.de>
12838 PR tree-optimization/62031
12839 * tree-data-ref.c (dr_analyze_indices): Do not set
12840 DR_UNCONSTRAINED_BASE.
12841 (dr_may_alias_p): All indirect accesses have to go the
12842 formerly DR_UNCONSTRAINED_BASE path.
12843 * tree-data-ref.h (struct indices): Remove
12844 unconstrained_base member.
12845 (DR_UNCONSTRAINED_BASE): Remove.
12847 2014-08-15 Jakub Jelinek <jakub@redhat.com>
12849 PR middle-end/62092
12850 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12851 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12852 in OMP_CLAUSE_MAP in some outer target region.
12854 2014-08-15 Bin Cheng <bin.cheng@arm.com>
12856 * tree-ssa-loop-ivopts.c (ivopts_data): New field
12857 name_expansion_cache.
12858 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12859 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12860 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12861 (difference_cannot_overflow_p): New parameter. Use affine
12862 expansion for equality check.
12863 (iv_elimination_compare_lt): Pass new argument.
12865 2014-08-14 DJ Delorie <dj@redhat.com>
12867 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12868 variables to the accumulator.
12870 * config/rl78/predicates.md (rl78_near_mem_operand): New.
12871 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12872 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12873 with far-far moves.
12875 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12876 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12877 (umulqihi3_virt): Likewise.
12878 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12879 (umulqihi3_real): Likewise.
12881 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12883 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12885 PR tree-optimization/62091
12886 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12887 function_entry_reached.
12888 (walk_aliased_vdefs): Clear it here.
12889 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12891 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12893 * ipa-utils.h (compare_virtual_tables): Declare.
12894 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12896 2014-08-14 Marek Polacek <polacek@redhat.com>
12899 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12900 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12902 2014-08-14 Tom de Vries <tom@codesourcery.com>
12904 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12906 2014-08-14 Tom de Vries <tom@codesourcery.com>
12908 PR rtl-optimization/62004
12909 PR rtl-optimization/62030
12910 * ifcvt.c (rtx_interchangeable_p): New function.
12911 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12912 * emit-rtl.h (mem_attrs_eq_p): Declare.
12914 2014-08-14 Roman Gareev <gareevroman@gmail.com>
12916 * graphite-scop-detection.c:
12917 Add inclusion of cp-tree.h.
12918 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12919 in case they are pointers to object types
12921 2014-08-14 Richard Biener <rguenther@suse.de>
12923 * BASE-VER: Change to 5.0.0
12925 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12927 Anna Tikhonova <anna.tikhonova@intel.com>
12928 Ilya Tocar <ilya.tocar@intel.com>
12929 Andrey Turetskiy <andrey.turetskiy@intel.com>
12930 Ilya Verbin <ilya.verbin@intel.com>
12931 Kirill Yukhin <kirill.yukhin@intel.com>
12932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12934 * config/i386/sse.md (define_mode_attr avx512): New.
12935 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12937 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12938 (define_mode_attr ssse3_avx2): Ditto.
12939 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12940 (define_mode_attr avx2_avx512bw): New.
12941 (define_mode_attr ssedoublemodelower): New.
12942 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12943 V32HI, V64QI modes.
12944 (define_mode_attr ssebytemode): Allow V8DI modes.
12945 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12946 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12947 (define_mode_attr ssePSmode2): New.
12948 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12949 V16HI, V32HI modes.
12950 (define_mode_attr dbpsadbwmode): New.
12951 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12952 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12953 (vi8_sse4_1_avx2_avx512): New.
12954 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12956 (define_mode_attr blendbits): Move before its immediate use.
12958 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12959 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12960 Anna Tikhonova <anna.tikhonova@intel.com>
12961 Ilya Tocar <ilya.tocar@intel.com>
12962 Andrey Turetskiy <andrey.turetskiy@intel.com>
12963 Ilya Verbin <ilya.verbin@intel.com>
12964 Kirill Yukhin <kirill.yukhin@intel.com>
12965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12967 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12968 * config/i386/subst.md
12969 (define_mode_iterator SUBST_V): Update.
12970 (define_mode_iterator SUBST_A): Ditto.
12971 (define_subst_attr "mask_operand7"): New.
12972 (define_subst_attr "mask_operand10"): New.
12973 (define_subst_attr "mask_operand_arg34") : New.
12974 (define_subst_attr "mask_expand_op3"): New.
12975 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12976 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12977 (define_subst_attr "mask_avx512vl_condition"): New.
12978 (define_subst_attr "round_mask_operand4"): Ditto.
12979 (define_subst_attr "round_mask_scalar_op3"): Delete.
12980 (define_subst_attr "round_mask_op4"): New.
12981 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12983 (define_subst_attr "round_modev8sf_condition"): New.
12984 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12986 (define_subst_attr "round_saeonly_mask_operand4"): New.
12987 (define_subst_attr "round_saeonly_mask_op4"): New.
12988 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12989 V8DImode, V16SImode.
12990 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12991 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12992 (define_subst_attr "mask_expand4_args"): New.
12993 (define_subst "mask_expand4"): New.
12995 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12997 Anna Tikhonova <anna.tikhonova@intel.com>
12998 Ilya Tocar <ilya.tocar@intel.com>
12999 Andrey Turetskiy <andrey.turetskiy@intel.com>
13000 Ilya Verbin <ilya.verbin@intel.com>
13001 Kirill Yukhin <kirill.yukhin@intel.com>
13002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13004 * config/i386/i386.md
13005 (define_attr "isa"): Add avx512bw,noavx512bw.
13006 (define_attr "enabled"): Ditto.
13007 (define_split): Add 32/64-bit mask logic.
13008 (define_insn "*k<logic>qi"): New.
13009 (define_insn "*k<logic>hi"): New.
13010 (define_insn "*anddi_1"): Add mask version.
13011 (define_insn "*andsi_1"): Ditto.
13012 (define_insn "*<code><mode>_1"): Ditto.
13013 (define_insn "*<code>hi_1"): Ditto.
13014 (define_insn "kxnor<mode>"): New.
13015 (define_insn "kunpcksi"): New.
13016 (define_insn "kunpckdi"): New.
13017 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
13018 (define_insn "*one_cmplhi2_1"): Ditto.
13020 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13022 Anna Tikhonova <anna.tikhonova@intel.com>
13023 Ilya Tocar <ilya.tocar@intel.com>
13024 Andrey Turetskiy <andrey.turetskiy@intel.com>
13025 Ilya Verbin <ilya.verbin@intel.com>
13026 Kirill Yukhin <kirill.yukhin@intel.com>
13027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13029 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13032 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13033 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13034 Anna Tikhonova <anna.tikhonova@intel.com>
13035 Ilya Tocar <ilya.tocar@intel.com>
13036 Andrey Turetskiy <andrey.turetskiy@intel.com>
13037 Ilya Verbin <ilya.verbin@intel.com>
13038 Kirill Yukhin <kirill.yukhin@intel.com>
13039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13041 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
13043 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13044 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13045 xmm/ymm16+ when availble.
13046 * config/i386/i386.h
13047 (HARD_REGNO_NREGS): Add mask regs.
13048 (VALID_AVX512F_REG_MODE): Ditto.
13049 (VALID_AVX512F_REG_MODE) : Define.
13050 (VALID_MASK_AVX512BW_MODE): Ditto.
13051 (reg_class) (MASK_REG_P(X)): Define.
13052 * config/i386/i386.md: Do not split long moves with mask register,
13053 use kmovb if avx512bw is availible.
13054 (movdi_internal): Handle mask registers.
13056 2014-08-14 Richard Biener <rguenther@suse.de>
13058 PR tree-optimization/62081
13059 * tree-ssa-loop.c (pass_fix_loops): New pass.
13060 (pass_tree_loop::gate): Do not fixup loops here.
13061 * tree-pass.h (make_pass_fix_loops): Declare.
13062 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13064 2014-08-14 Richard Biener <rguenther@suse.de>
13066 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13067 (type_hash_canon): ... this and avoid 2nd lookup for the add.
13069 2014-08-14 Richard Biener <rguenther@suse.de>
13071 PR tree-optimization/62090
13072 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13073 (fold_builtin_2): Do not fold sprintf.
13074 (fold_builtin_3): Likewise.
13075 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13076 moved from builtins.c.
13077 (gimple_fold_builtin): Fold sprintf.
13079 2014-08-14 Richard Biener <rguenther@suse.de>
13081 PR rtl-optimization/62079
13082 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13085 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13087 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13088 current_function_decl.
13090 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13092 * cgraph.c (cgraph_node::function_symbol): Fix wrong
13093 cgraph_function_node to cgraph_node::function_symbol
13096 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
13098 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13099 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13101 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
13103 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13106 2014-08-13 Roman Gareev <gareevroman@gmail.com>
13108 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13111 2014-08-12 Jakub Jelinek <jakub@redhat.com>
13114 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13115 any registers that are used in mem_insn.
13117 2014-08-12 Steve Ellcey <sellcey@mips.com>
13119 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13121 2014-08-12 Steve Ellcey <sellcey@mips.com>
13123 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13124 (MULTILIB_DIRNAMES): Ditto.
13125 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13126 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13127 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13128 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13129 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13130 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13132 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13135 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13136 of __ARM_SIZEOF_WCHAR_T.
13138 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13141 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13142 Remove unnecessary attributes.
13144 2014-08-12 Yury Gribov <y.gribov@samsung.com>
13146 * internal-fn.c (init_internal_fns): Fix off-by-one.
13148 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13150 Anna Tikhonova <anna.tikhonova@intel.com>
13151 Ilya Tocar <ilya.tocar@intel.com>
13152 Andrey Turetskiy <andrey.turetskiy@intel.com>
13153 Ilya Verbin <ilya.verbin@intel.com>
13154 Kirill Yukhin <kirill.yukhin@intel.com>
13155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13157 * config/i386/i386.c (standard_sse_constant_opcode): Use
13158 vpxord/vpternlog if avx512 is availible.
13160 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13162 PR middle-end/62103
13163 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13164 bitfields, that is when size doesn't match the size of type or the
13165 size of the constructor.
13167 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13169 * config/rs6000/constraints.md (wh constraint): New constraint,
13170 for FP registers if direct move is available.
13171 (wi constraint): New constraint, for VSX/FP registers that can
13172 handle 64-bit integers.
13173 (wj constraint): New constraint for VSX/FP registers that can
13174 handle 64-bit integers for direct moves.
13175 (wk constraint): New constraint for VSX/FP registers that can
13176 handle 64-bit doubles for direct moves.
13177 (wy constraint): Make documentation match implementation.
13179 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13180 scalar_in_vmx_p field to simplify tests of whether SFmode or
13181 DFmode can go in the Altivec registers.
13182 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13183 (rs6000_setup_reg_addr_masks): Likewise.
13184 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13185 field, and wh/wi/wj/wk constraints.
13186 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13187 the wh/wi/wj/wk constraints.
13188 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13189 upper registers, prefer VSX registers unless the operation is a
13190 memory operation with REG+OFFSET addressing.
13192 * config/rs6000/vsx.md (VSr mode attribute): Add support for
13193 DImode. Change SFmode to use ww constraint instead of d to allow
13194 SF registers in the upper registers.
13197 (VSr5): Fix thinko in comment.
13198 (VSa): New mode attribute that is an alternative to wa, that
13199 returns the VSX register class that a mode can go in, but may not
13200 be the preferred register class.
13201 (VS_64dm): New mode attribute for appropriate register classes for
13202 referencing 64-bit elements of vectors for direct moves and normal
13204 (VS_64reg): Likewise.
13205 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13206 register allocator to only registers the data type can handle.
13207 (vsx_le_perm_load_<mode>): Likewise.
13208 (vsx_le_perm_store_<mode>): Likewise.
13209 (vsx_xxpermdi2_le_<mode>): Likewise.
13210 (vsx_xxpermdi4_le_<mode>): Likewise.
13211 (vsx_lxvd2x2_le_<mode>): Likewise.
13212 (vsx_lxvd2x4_le_<mode>): Likewise.
13213 (vsx_stxvd2x2_le_<mode>): Likewise.
13214 (vsx_add<mode>3): Likewise.
13215 (vsx_sub<mode>3): Likewise.
13216 (vsx_mul<mode>3): Likewise.
13217 (vsx_div<mode>3): Likewise.
13218 (vsx_tdiv<mode>3_internal): Likewise.
13219 (vsx_fre<mode>2): Likewise.
13220 (vsx_neg<mode>2): Likewise.
13221 (vsx_abs<mode>2): Likewise.
13222 (vsx_nabs<mode>2): Likewise.
13223 (vsx_smax<mode>3): Likewise.
13224 (vsx_smin<mode>3): Likewise.
13225 (vsx_sqrt<mode>2): Likewise.
13226 (vsx_rsqrte<mode>2): Likewise.
13227 (vsx_tsqrt<mode>2_internal): Likewise.
13228 (vsx_fms<mode>4): Likewise.
13229 (vsx_nfma<mode>4): Likewise.
13230 (vsx_eq<mode>): Likewise.
13231 (vsx_gt<mode>): Likewise.
13232 (vsx_ge<mode>): Likewise.
13233 (vsx_eq<mode>_p): Likewise.
13234 (vsx_gt<mode>_p): Likewise.
13235 (vsx_ge<mode>_p): Likewise.
13236 (vsx_xxsel<mode>): Likewise.
13237 (vsx_xxsel<mode>_uns): Likewise.
13238 (vsx_copysign<mode>3): Likewise.
13239 (vsx_float<VSi><mode>2): Likewise.
13240 (vsx_floatuns<VSi><mode>2): Likewise.
13241 (vsx_fix_trunc<mode><VSi>2): Likewise.
13242 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13243 (vsx_x<VSv>r<VSs>i): Likewise.
13244 (vsx_x<VSv>r<VSs>ic): Likewise.
13245 (vsx_btrunc<mode>2): Likewise.
13246 (vsx_b2trunc<mode>2): Likewise.
13247 (vsx_floor<mode>2): Likewise.
13248 (vsx_ceil<mode>2): Likewise.
13249 (vsx_<VS_spdp_insn>): Likewise.
13250 (vsx_xscvspdp): Likewise.
13251 (vsx_xvcvspuxds): Likewise.
13252 (vsx_float_fix_<mode>2): Likewise.
13253 (vsx_set_<mode>): Likewise.
13254 (vsx_extract_<mode>_internal1): Likewise.
13255 (vsx_extract_<mode>_internal2): Likewise.
13256 (vsx_extract_<mode>_load): Likewise.
13257 (vsx_extract_<mode>_store): Likewise.
13258 (vsx_splat_<mode>): Likewise.
13259 (vsx_xxspltw_<mode>): Likewise.
13260 (vsx_xxspltw_<mode>_direct): Likewise.
13261 (vsx_xxmrghw_<mode>): Likewise.
13262 (vsx_xxmrglw_<mode>): Likewise.
13263 (vsx_xxsldwi_<mode>): Likewise.
13264 (vsx_xscvdpspn): Tighten constraints to only use register classes
13266 (vsx_xscvspdpn): Likewise.
13267 (vsx_xscvdpspn_scalar): Likewise.
13269 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13270 wj, and wk constraints.
13271 (GPR_REG_CLASS_P): New helper macro for register classes targeting
13272 general purpose registers.
13274 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13276 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13277 DImode instead of wm. Use wk constraint for direct move of DFmode
13279 (extendsidi2_lfiwax): Likewise.
13280 (lfiwax): Likewise.
13281 (lfiwzx): Likewise.
13282 (movdi_internal64): Likewise.
13284 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13285 wk constraints. Make the wy constraint documentation match them
13288 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
13290 Replacement of isl_int by isl_val
13291 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13292 (compute_bounds_for_param): use isl_val instead of isl_int
13293 (compute_bounds_for_loop): likewise
13294 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13295 (build_linearized_memory_access): use isl_val instead of isl_int
13296 (pdr_stride_in_loop): likewise
13297 * graphite-optimize-isl.c:
13298 (getPrevectorMap): use isl_val instead of isl_int
13300 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13301 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13302 (extern the_isl_ctx): declare
13303 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13304 (extract_affine_gmp): likewise
13306 (build_loop_iteration_domains): likewise
13307 (add_param_constraints): likewise
13309 2014-08-11 Richard Biener <rguenther@suse.de>
13311 PR tree-optimization/62075
13312 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13313 handle uses in patterns.
13315 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13316 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13317 Anna Tikhonova <anna.tikhonova@intel.com>
13318 Ilya Tocar <ilya.tocar@intel.com>
13319 Andrey Turetskiy <andrey.turetskiy@intel.com>
13320 Ilya Verbin <ilya.verbin@intel.com>
13321 Kirill Yukhin <kirill.yukhin@intel.com>
13322 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13324 * common/config/i386/i386-common.c
13325 (OPTION_MASK_ISA_AVX512VL_SET): Define.
13326 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13327 (ix86_handle_option): Handle OPT_mavx512vl.
13328 * config/i386/cpuid.h (bit_AVX512VL): Define.
13329 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13330 set -mavx512vl accordingly.
13331 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13332 OPTION_MASK_ISA_AVX512VL.
13333 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13334 (ix86_option_override_internal): Define PTA_AVX512VL, handle
13335 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13336 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13337 * config/i386/i386.h (TARGET_AVX512VL): Define.
13338 (TARGET_AVX512VL_P(x)): Ditto.
13339 * config/i386/i386.opt: Add mavx512vl.
13341 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
13343 PR tree-optimization/62073
13344 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13347 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13349 Anna Tikhonova <anna.tikhonova@intel.com>
13350 Ilya Tocar <ilya.tocar@intel.com>
13351 Andrey Turetskiy <andrey.turetskiy@intel.com>
13352 Ilya Verbin <ilya.verbin@intel.com>
13353 Kirill Yukhin <kirill.yukhin@intel.com>
13354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13356 * common/config/i386/i386-common.c
13357 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13358 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13359 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13360 (ix86_handle_option): Handle OPT_mavx512bw.
13361 * config/i386/cpuid.h (bit_AVX512BW): Define.
13362 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13363 set -mavx512bw accordingly.
13364 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13365 OPTION_MASK_ISA_AVX512BW.
13366 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13367 (ix86_option_override_internal): Define PTA_AVX512BW, handle
13368 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13369 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13370 * config/i386/i386.h (TARGET_AVX512BW): Define.
13371 (TARGET_AVX512BW_P(x)): Ditto.
13372 * config/i386/i386.opt: Add mavx512bw.
13374 2014-08-11 Richard Biener <rguenther@suse.de>
13376 PR tree-optimization/62070
13377 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13378 Remove SSA checking.
13380 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13382 * asan.c (asan_check_flags): New enum.
13383 (build_check_stmt_with_calls): Removed function.
13384 (build_check_stmt): Split inlining logic to
13385 asan_expand_check_ifn.
13386 (instrument_derefs): Rename parameter.
13387 (instrument_mem_region_access): Rename parameter.
13388 (instrument_strlen_call): Likewise.
13389 (asan_expand_check_ifn): New function.
13390 (asan_instrument): Remove old code.
13391 (pass_sanopt::execute): Change handling of
13392 asan-instrumentation-with-call-threshold.
13393 (asan_clear_shadow): Fix formatting.
13394 (asan_function_start): Likewise.
13395 (asan_emit_stack_protection): Likewise.
13396 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13397 Update description.
13398 * internal-fn.c (expand_ASAN_CHECK): New function.
13399 * internal-fn.def (ASAN_CHECK): New internal function.
13400 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13401 Update description.
13402 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13403 * tree.c: Small comment fix.
13405 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13407 * gimple.c (gimple_call_fnspec): Support internal functions.
13408 (gimple_call_return_flags): Use const.
13409 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13410 * internal-fn.def: Add fnspec information.
13411 * internal-fn.h (internal_fn_fnspec): New function.
13412 (init_internal_fns): Declare new function.
13413 * internal-fn.c (internal_fn_fnspec_array): New global variable.
13414 (init_internal_fns): New function.
13415 * tree-core.h: Update macro call.
13416 * tree.c (build_common_builtin_nodes): Initialize internal fns.
13418 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
13420 * lto-streamer.h (struct output_block::symbol): Change from
13421 struct symtab_node to plain symtab_node.
13422 (referenced_from_this_partition_p): Change first parameter
13423 from struct symtab_node to plain symtab_node.
13425 2014-08-10 Marek Polacek <polacek@redhat.com>
13428 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13430 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
13432 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13433 DECL correctly; do not give up on types in static storage.
13435 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
13437 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13439 2014-08-09 Roman Gareev <gareevroman@gmail.com>
13441 * graphite-isl-ast-to-gimple.c:
13442 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13444 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13446 2014-08-08 Guozhi Wei <carrot@google.com>
13448 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13450 2014-08-08 Cary Coutant <ccoutant@google.com>
13452 * dwarf2out.c (get_skeleton_type_unit): Remove.
13453 (output_skeleton_debug_sections): Remove skeleton type units.
13454 (output_comdat_type_unit): Likewise.
13455 (dwarf2out_finish): Likewise.
13457 2014-08-07 Yi Yang <ahyangyi@google.com>
13459 * predict.c (expr_expected_value_1): Remove the redundant assignment.
13461 2014-08-08 Richard Biener <rguenther@suse.de>
13463 * lto-streamer.h (struct lto_input_block): Make it a class
13464 with a constructor.
13465 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13466 (struct lto_function_header, struct lto_simple_header,
13467 struct lto_simple_header_with_strings,
13468 struct lto_decl_header, struct lto_function_header): Make
13469 a simple inheritance hieararchy. Remove unused fields.
13470 (struct lto_asm_header): Remove.
13471 * lto-streamer-out.c (produce_asm): Adjust.
13472 (lto_output_toplevel_asms): Likewise.
13473 (produce_asm_for_decls): Likewise.
13474 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13475 * data-streamer-in.c (string_for_index): Likewise.
13476 * ipa-inline-analysis.c (inline_read_section): Likewise.
13477 * ipa-prop.c (ipa_prop_read_section): Likewise.
13478 (read_replacements_section): Likewise.
13479 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13480 * lto-section-in.c (lto_create_simple_input_block): Likewise.
13481 (lto_destroy_simple_input_block): Likewise.
13482 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13483 (lto_input_toplevel_asms): Likewise.
13485 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
13486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13487 Anna Tikhonova <anna.tikhonova@intel.com>
13488 Ilya Tocar <ilya.tocar@intel.com>
13489 Andrey Turetskiy <andrey.turetskiy@intel.com>
13490 Ilya Verbin <ilya.verbin@intel.com>
13491 Kirill Yukhin <kirill.yukhin@intel.com>
13492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13494 * common/config/i386/i386-common.c
13495 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13496 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13497 (ix86_handle_option): Handle OPT_mavx512dq.
13498 * config/i386/cpuid.h (bit_AVX512DQ): Define.
13499 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13500 set -mavx512dq accordingly.
13501 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13502 OPTION_MASK_ISA_AVX512DQ.
13503 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13504 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13505 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13506 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13507 * config/i386/i386.h (TARGET_AVX512DQ): Define.
13508 (TARGET_AVX512DQ_P(x)): Ditto.
13509 * config/i386/i386.opt: Add mavx512dq.
13511 2014-08-08 Richard Biener <rguenther@suse.de>
13513 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13514 target_percent, target_percent_s): Export.
13515 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13516 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13517 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13518 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13519 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13520 Move to gimple-fold.c.
13521 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13523 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13524 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13525 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13526 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13527 (rewrite_call_expr_array): Remove.
13528 (fold_builtin_sprintf_chk): Likewise.
13529 (fold_builtin_snprintf_chk): Likewise.
13530 (fold_builtin_varargs): Remove handling of sprintf_chk,
13531 vsprintf_chk, snprintf_chk and vsnprintf_chk.
13532 (gimple_fold_builtin_sprintf_chk): Remove.
13533 (gimple_fold_builtin_snprintf_chk): Likewise.
13534 (gimple_fold_builtin_varargs): Likewise.
13535 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13536 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13537 * gimple.c (gimple_seq_add_seq_without_update): New function.
13538 * gimple.h (gimple_seq_add_seq_without_update): Declare.
13539 * gimple-fold.c: Include output.h.
13540 (gsi_replace_with_seq_vops): New function, split out from ...
13541 (gimplify_and_update_call_from_tree): ... here.
13542 (replace_call_with_value): New function.
13543 (replace_call_with_call_and_fold): Likewise.
13544 (var_decl_component_p): Moved from builtins.c.
13545 (gimple_fold_builtin_memory_op): Moved from builtins.c
13546 fold_builtin_memory_op and rewritten to GIMPLE.
13547 (gimple_fold_builtin_memset): Likewise.
13548 (gimple_fold_builtin_strcpy): Likewise.
13549 (gimple_fold_builtin_strncpy): Likewise.
13550 (gimple_fold_builtin_strcat): Likewise.
13551 (gimple_fold_builtin_fputs): Likewise.
13552 (gimple_fold_builtin_memory_chk): Likewise.
13553 (gimple_fold_builtin_stxcpy_chk): Likewise.
13554 (gimple_fold_builtin_stxncpy_chk): Likewise.
13555 (gimple_fold_builtin_snprintf_chk): Likewise.
13556 (gimple_fold_builtin_sprintf_chk): Likewise.
13557 (gimple_fold_builtin_strlen): New function.
13558 (gimple_fold_builtin_with_strlen): New function split out from
13559 gimple_fold_builtin.
13560 (gimple_fold_builtin): Change signature and handle
13561 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13562 here. Call gimple_fold_builtin_with_strlen.
13563 (gimple_fold_call): Adjust.
13565 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13567 * calls.c (precompute_arguments): Check
13568 promoted_for_signed_and_unsigned_p and set the promoted mode.
13569 (promoted_for_signed_and_unsigned_p): New function.
13570 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13571 and set the promoted mode.
13572 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13573 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13574 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13577 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13579 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13580 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13581 (expand_call): Likewise.
13582 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13583 to get promoted mode.
13584 * combine.c (record_promoted_value): Skip > 0 comparison with
13585 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13586 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13587 of SUBREG_PROMOTED_UNSIGNED_P.
13588 (convert_modes): Likewise.
13589 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13590 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13591 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13592 SUBREG_PROMOTED_UNSIGNED_SET.
13593 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13594 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13595 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13596 SUBREG_PROMOTED_SET.
13597 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13598 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13599 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13600 of SUBREG_PROMOTED_UNSIGNED_P.
13601 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13602 (SUBREG_PROMOTED_SET): New define.
13603 (SUBREG_PROMOTED_GET): Likewise.
13604 (SUBREG_PROMOTED_SIGN): Likewise.
13605 (SUBREG_PROMOTED_SIGNED_P): Likewise.
13606 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13607 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13608 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13609 instead of SUBREG_PROMOTED_UNSIGNED_GET.
13610 (nonzero_bits1): Skip > 0 comparison with the results as
13611 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13612 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13613 of !SUBREG_PROMOTED_UNSIGNED_P.
13614 * simplify-rtx.c (simplify_unary_operation_1): Use new
13615 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13616 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13617 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13618 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13620 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
13622 * ipa-devirt.c: Include gimple-pretty-print.h
13623 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13625 (decl_maybe_in_construction_p): Fix conditional on cdtor check
13626 (get_polymorphic_call_info): Fix return value
13627 (type_change_info): New sturcture based on ipa-prop
13629 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13630 based on ipa-prop variant.
13631 (extr_type_from_vtbl_ptr_store): New function
13632 based on ipa-prop variant.
13633 (record_known_type): New function.
13634 (check_stmt_for_type_change): New function.
13635 (get_dynamic_type): New function.
13636 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13637 * tree-ssa-pre.c: ipa-utils.h
13638 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13639 machinery; sanity check with ipa-prop devirtualization.
13640 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13643 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13645 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13646 * alias.c, cfgexpand.c, cgraphbuild.c,
13647 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13648 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13649 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13650 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13651 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13652 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13653 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13654 dse.c, except.c, gengtype.c, gimple-expr.c,
13655 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13656 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13657 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13658 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13659 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13660 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13662 * pointer-set.c: Remove file.
13663 * pointer-set.h: Remove file.
13665 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13667 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13668 * config/arm/types.md (f_sels, f_seld): Delete.
13670 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13672 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13673 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13674 (aarch64_movdi_<mode>high): Likewise.
13675 (aarch64_mov<mode>high_di): Likewise.
13676 (aarch64_movdi_<mode>low): Likewise.
13677 (aarch64_mov<mode>low_di): Likewise.
13678 (aarch64_movtilow_tilow): Likewise.
13679 Add comment explaining usage of fp,simd attributes and of
13680 TARGET_FLOAT and TARGET_SIMD.
13682 2014-08-07 Ian Bolton <ian.bolton@arm.com>
13683 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13685 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13686 Use MOVN when one of the half-words is 0xffff.
13688 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13690 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13692 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13694 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
13695 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13696 (rfs_str): String corresponding to RFS_* constants.
13697 (rank_for_schedule_stats_t): New typedef.
13698 (rank_for_schedule_stats): New static variable.
13699 (rfs_result): New static function.
13700 (rank_for_schedule): Track statistics for deciding heuristics.
13701 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13703 (ready_sort): Use them for debug printouts.
13704 (schedule_block): Init statistics state. Print statistics on
13705 rank_for_schedule decisions.
13707 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13709 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13711 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
13713 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13716 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13718 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13719 function to not conflict.
13720 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13721 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13722 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13723 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13724 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13727 2014-08-07 Marek Polacek <polacek@redhat.com>
13729 * fold-const.c (fold_binary_loc): Add folding of
13730 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13732 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
13734 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13735 instead of type size.
13736 (ASM_FINISH_DECLARE_OBJECT): Likewise.
13738 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13740 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13741 (*thumb1_movqi_insn): Likewise.
13742 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13744 2014-08-07 Tom de Vries <tom@codesourcery.com>
13746 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13747 (glibc_2_11_or_earlier): Remove effective-target keywords.
13749 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13751 * config/arm/arm.c (bdesc_2arg): Fix typo.
13752 (arm_atomic_assign_expand_fenv): Remove The default implementation.
13754 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
13756 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13758 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
13761 * haifa-sched.c (advance_one_cycle): Fix dump.
13762 (schedule_block): Don't advance cycle if we are already at the
13763 beginning of the cycle.
13765 2014-08-06 Martin Jambor <mjambor@suse.cz>
13768 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13770 2014-08-06 Richard Biener <rguenther@suse.de>
13773 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13775 (lto_input_tree): Pop SCCs here.
13777 2014-08-06 Richard Biener <rguenther@suse.de>
13779 PR tree-optimization/61320
13780 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13781 handle misaligned loads.
13783 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
13785 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13786 (aarch64_expand_vec_perm_const): Check for dup before zip.
13788 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13790 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13791 CONST_INT_P instead of GET_CODE and compare.
13792 (aarch64_select_cc_mode): Likewise.
13793 (aarch64_print_operand): Likewise.
13794 (aarch64_rtx_costs): Likewise.
13795 (aarch64_simd_valid_immediate): Likewise.
13796 (aarch64_simd_check_vect_par_cnst_half): Likewise.
13797 (aarch64_simd_emit_pair_result_insn): Likewise.
13799 2014-08-05 David Malcolm <dmalcolm@redhat.com>
13801 * gdbhooks.py (find_gcc_source_dir): New helper function.
13802 (class PassNames): New class, locating and parsing passes.def.
13803 (class BreakOnPass): New command "break-on-pass".
13805 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
13807 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13810 2014-08-05 Richard Biener <rguenther@suse.de>
13812 PR rtl-optimization/61672
13813 * emit-rtl.h (mem_attrs_eq_p): Declare.
13814 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
13815 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13816 * cfgcleanup.c (merge_memattrs): Likewise.
13817 Include emit-rtl.h.
13819 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13821 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13822 rather than singleton vectors.
13823 (vqdmlsls_lane_s32): Likewise.
13825 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13827 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13828 Use VSDQ_HSI mode iterator.
13829 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13830 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13831 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13832 Use BUILTIN_VDQHS macro.
13833 (sqrdmulh_laneq): Likewise.
13834 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13835 (vqdmlals_laneq_s32): Likewise.
13836 (vqdmlslh_laneq_s16): Likewise.
13837 (vqdmlsls_laneq_s32): Likewise.
13838 (vqdmulhh_laneq_s16): Likewise.
13839 (vqdmulhs_laneq_s32): Likewise.
13840 (vqrdmulhh_laneq_s16): Likewise.
13841 (vqrdmulhs_laneq_s32): Likewise.
13843 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13845 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13846 (vmuld_laneq_f64): Likewise.
13847 (vmuls_laneq_f32): Likewise.
13848 (vmul_n_f64): Likewise.
13849 (vmuld_lane_f64): Reimplement in C.
13850 (vmuls_lane_f32): Likewise.
13852 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13854 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13856 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13858 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13860 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13861 (rbitsi2): Likewise.
13862 (*arm_rev): Set predicable and predicable_short_it attributes.
13864 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13866 * convert.c (convert_to_integer): Guard transformation to lrint by
13869 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13871 * config/aarch64/aarch64-builtins.c
13872 (aarch64_simd_builtin_type_mode): Delete.
13873 (v8qi_UP): Remap to V8QImode.
13874 (v4hi_UP): Remap to V4HImode.
13875 (v2si_UP): Remap to V2SImode.
13876 (v2sf_UP): Remap to V2SFmode.
13877 (v1df_UP): Remap to V1DFmode.
13878 (di_UP): Remap to DImode.
13879 (df_UP): Remap to DFmode.
13880 (v16qi_UP):V16QImode.
13881 (v8hi_UP): Remap to V8HImode.
13882 (v4si_UP): Remap to V4SImode.
13883 (v4sf_UP): Remap to V4SFmode.
13884 (v2di_UP): Remap to V2DImode.
13885 (v2df_UP): Remap to V2DFmode.
13886 (ti_UP): Remap to TImode.
13887 (ei_UP): Remap to EImode.
13888 (oi_UP): Remap to OImode.
13889 (ci_UP): Map to CImode.
13890 (xi_UP): Remap to XImode.
13891 (si_UP): Remap to SImode.
13892 (sf_UP): Remap to SFmode.
13893 (hi_UP): Remap to HImode.
13894 (qi_UP): Remap to QImode.
13895 (aarch64_simd_builtin_datum): Make mode a machine_mode.
13896 (VAR1): Build builtin name.
13897 (aarch64_init_simd_builtins): Remove dead code.
13899 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13901 * graphite-isl-ast-to-gimple.c:
13902 (set_options): New function.
13903 (scop_to_isl_ast): Add calling of set_options.
13905 2014-08-05 Jakub Jelinek <jakub@redhat.com>
13907 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13908 (analyze_iv_to_split_insn): Don't initialize them.
13909 (get_ivts_expr): Removed.
13910 (allocate_basic_variable, insert_base_initialization): Use
13911 SET_SRC instead of *get_ivts_expr.
13912 (split_iv): Use &SET_SRC instead of get_ivts_expr.
13914 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13916 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13917 (translate_isl_ast_for_loop): Add checking of the
13918 flag_loop_parallelize_all.
13919 (ast_build_before_for): New function.
13920 (scop_to_isl_ast): Add checking of the
13921 flag_loop_parallelize_all.
13922 * graphite-dependences.c: Move the defenition of the
13923 scop_get_dependences from graphite-optimize-isl.c to this file.
13924 (apply_schedule_on_deps): Add checking of the ux's emptiness.
13925 (carries_deps): Add checking of the x's value.
13926 * graphite-optimize-isl.c: Move the defenition of the
13927 scop_get_dependences to graphite-dependences.c.
13928 * graphite-poly.h: Add declarations of scop_get_dependences
13931 2014-08-04 Rohit <rohitarulraj@freescale.com>
13934 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13936 (alt_reg_names): Likewise.
13937 (rs6000_dwarf_register_span): For SPE high registers, replace
13938 dwarf register numbers with GCC hard register numbers.
13939 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13940 (rs6000_dbx_register_number): For SPE high registers, return dwarf
13941 register number for the corresponding GCC hard register number.
13942 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13943 newly added GCC hard register numbers for SPE high registers.
13944 (DWARF_FRAME_REGISTERS): Likewise.
13945 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13946 (DWARF_FRAME_REGNUM): Likewise.
13947 (FIXED_REGISTERS): Likewise.
13948 (CALL_USED_REGISTERS): Likewise.
13949 (CALL_REALLY_USED_REGISTERS): Likewise.
13950 (REG_ALLOC_ORDER): Likewise.
13951 (enum reg_class): Likewise.
13952 (REG_CLASS_NAMES): Likewise.
13953 (REG_CLASS_CONTENTS): Likewise.
13954 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13956 2014-08-04 Richard Biener <rguenther@suse.de>
13958 * gimple-fold.h (gimple_fold_builtin): Remove.
13959 * gimple-fold.c (gimple_fold_builtin): Make static.
13960 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13961 fold_stmt, not gimple_fold_builtin.
13963 2014-08-04 Martin Liska <mliska@suse.cz>
13965 * cgraph.h (csi_end_p): Removed.
13966 (csi_next): Likewise.
13967 (csi_node): Likewise.
13968 (csi_start): Likewise.
13969 (cgraph_node_in_set_p): Likewise.
13970 (cgraph_node_set_size): Likewise.
13971 (vsi_end_p): Likewise.
13972 (vsi_next): Likewise.
13973 (vsi_node): Likewise.
13974 (vsi_start): Likewise.
13975 (varpool_node_set_size): Likewise.
13976 (cgraph_node_set_nonempty_p): Likewise.
13977 (varpool_node_set_nonempty_p): Likewise.
13978 * cgraphunit.c (cgraph_process_new_functions): vec replaces
13980 * ipa-inline-transform.c: Likewise.
13981 * ipa-utils.c (cgraph_node_set_new): Removed.
13982 (cgraph_node_set_add): Likewise.
13983 (cgraph_node_set_remove): Likewise.
13984 (cgraph_node_set_find): Likewise.
13985 (dump_cgraph_node_set): Likewise.
13986 (debug_cgraph_node_set): Likewise.
13987 (free_cgraph_node_set): Likewise.
13988 (varpool_node_set_new): Likewise.
13989 (varpool_node_set_add): Likewise.
13990 (varpool_node_set_remove): Likewise.
13991 (varpool_node_set_find): Likewise.
13992 (dump_varpool_node_set): Likewise.
13993 (free_varpool_node_set): Likewise.
13994 (debug_varpool_node_set): Likewise.
13995 * tree-emutls.c (struct tls_var_data):
13996 (emutls_index): Removed.
13997 (emutls_decl): Likewise.
13998 (gen_emutls_addr): Function implementation uses newly added
13999 hash_map<varpool_node *, tls_var_data>.
14000 (clear_access_vars): Likewise.
14001 (create_emultls_var): Likewise.
14002 (ipa_lower_emutls): Likewise.
14003 (reset_access): New function.
14005 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14007 * config/i386/i386.c (ix86_option_override_internal): Add
14008 PTA_RDRND and PTA_MOVBE for bdver4.
14010 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14011 James Greenhalgh <james.greenhalgh@arm.com>
14013 * doc/md.texi (clrsb): Document.
14014 (clz): Change reference to x into operand 1.
14016 (popcount): Likewise.
14018 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14021 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14022 move to subtarget in serial version if result is ignored.
14024 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14025 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14027 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14028 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
14029 (sched_analyze_insn): Update use of try_group_insn to
14030 sched_macro_fuse_insns.
14031 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14032 arguments that are not conditional jumps.
14034 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14036 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14037 family information. Handle BTVER2 cpu with cpuid family value.
14039 2014-08-04 Tom de Vries <tom@codesourcery.com>
14041 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14042 (glibc_2_11_or_earlier): Document effective-target keywords.
14044 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14046 * ipa-devirt.c (odr_type_warn_count): Add type.
14047 (possible_polymorphic_call_targets): Set it.
14048 (ipa_devirt): Use it.
14050 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14052 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14054 * ipa-devirt.c: Include hash-map.h
14055 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14056 (clear_speculation): Break out of ...
14057 (get_class_context): ... here; speed up handling obviously useless
14059 (odr_type_warn_count, decl_warn_count): New structures.
14060 (final_warning_record): New structure.
14061 (final_warning_records): New static variable.
14062 (possible_polymorphic_call_targets): Cleanup handling of
14063 speculative info; do not build speculation when user do not care;
14064 record info about warnings when asked for.
14065 (add_decl_warning): New function.
14066 (type_warning_cmp): New function.
14067 (decl_warning_cmp): New function.
14068 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14069 (gate): Enable pass when warnings are requested.
14070 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14073 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14075 * hash-map.h (default_hashmap_traits::mark_key_deleted):
14077 (hash_map::remove): New method.
14078 (hash_map::traverse): New method.
14079 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14080 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14081 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14082 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14083 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14084 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14087 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14089 * hash-set.h: new File.
14090 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14091 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14092 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14093 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14094 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14095 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14096 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14097 varpool.c: Use hash_set instead of pointer_set.
14099 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
14101 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14103 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14105 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14106 for frame access when strict_p is false.
14108 2014-08-01 Renlin Li <renlin.li@arm.com>
14109 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14111 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14112 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14113 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14115 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14117 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14118 aarch64_mem_pair_offset.
14120 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14122 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14124 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14125 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14127 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
14129 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14131 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
14133 PR regression/61510
14134 * cgraphunit.c (analyze_functions): Use get_create rather than get
14135 for decls which are clones of abstract functions.
14137 2014-08-01 Martin Liska <mliska@suse.cz>
14139 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14140 * ipa-prop.h (count_formal_params): Global function created from static.
14141 * ipa-prop.c (count_formal_params): Likewise.
14142 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14143 profiles for semantically equivalent functions.
14144 * passes.c (do_per_function): If we load body of a function
14145 during WPA, this condition should behave same.
14146 * varpool.c (ctor_for_folding): More tolerant assert for variable
14147 aliases created during WPA.
14149 2014-08-01 Martin Liska <mliska@suse.cz>
14151 * doc/invoke.texi (Options That Control Optimization): Documentation
14152 for -foptimize-strlen introduced. Optimization levels default options
14155 2014-08-01 Jakub Jelinek <jakub@redhat.com>
14157 * opts.c (common_handle_option): Handle -fsanitize=alignment.
14158 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14159 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14161 * stor-layout.h (min_align_of_type): New prototype.
14162 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14163 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
14165 * ubsan.c: Include builtins.h.
14166 (ubsan_expand_bounds_ifn): Change return type to bool,
14167 always return true.
14168 (ubsan_expand_null_ifn): Change return type to bool, change
14169 argument to gimple_stmt_iterator *. Handle both null and alignment
14170 sanitization, take type from ckind argument's type rather than
14172 (instrument_member_call): Removed.
14173 (instrument_mem_ref): Remove t argument, add mem and base arguments.
14174 Handle both null and alignment sanitization, don't say whole
14175 struct access is member access. Build 3 argument IFN_UBSAN_NULL
14176 call instead of 2 argument.
14177 (instrument_null): Adjust instrument_mem_ref caller. Don't
14178 instrument calls here.
14179 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14180 like SANITIZE_NULL.
14181 * stor-layout.c (min_align_of_type): New function.
14182 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14183 Or it into SANITIZE_UNDEFINED.
14184 * doc/invoke.texi (-fsanitize=alignment): Document.
14186 2014-07-31 Andi Kleen <ak@linux.intel.com>
14188 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14190 2014-07-31 Andi Kleen <ak@linux.intel.com>
14192 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14194 (vn_reference_compute_hash): Dito.
14195 (vn_nary_op_compute_hash): Dito.
14196 (vn_phi_compute_hash): Dito.
14197 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14199 2014-07-31 Andi Kleen <ak@linux.intel.com>
14201 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14202 Rename to inchash:add_expr_commutative. Convert to inchash.
14203 (iterative_hash_hashable_expr): Rename to
14204 inchash:add_hashable_expr. Convert to inchash.
14205 (avail_expr_hash): Dito.
14207 2014-07-31 Andi Kleen <ak@linux.intel.com>
14209 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14210 Convert to inchash.
14212 2014-07-31 Andi Kleen <ak@linux.intel.com>
14214 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14216 2014-07-31 Andi Kleen <ak@linux.intel.com>
14218 * Makefile.in (OBJS): Add rtlhash.o
14219 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14220 (loc_checksum): Dito.
14221 (loc_checksum_ordered): Dito.
14222 (hash_loc_operands): Dito.
14224 (hash_loc_list): Dito.
14225 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14226 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14227 * rtlhash.c: New file.
14228 * rtlhash.h: New file.
14230 2014-07-31 Andi Kleen <ak@linux.intel.com>
14232 * inchash.h (inchash): Change inchash class to namespace.
14233 (class hash): ... Rename from inchash.
14234 (add_object): Move from macro to class template.
14235 * lto-streamer-out.c (hash_tree): Change inchash
14237 * tree.c (build_type_attribute_qual_variant): Dito.
14238 (type_hash_list): Dito.
14239 (attribute_hash_list): Dito.
14240 (iterative_hstate_expr): Rename to inchash::add_expr
14241 (build_range_type_1): Change inchash to inchash::hash
14242 and use hash::add_expr.
14243 (build_array_type_1): Dito.
14244 (build_function_type): Dito
14245 (build_method_type_directly): Dito.
14246 (build_offset_type): Dito.
14247 (build_complex_type): Dito.
14248 (make_vector_type): Dito.
14249 * tree.h (iterative_hash_expr): Dito.
14251 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
14253 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14255 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14257 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14258 correct alphabetical position.
14259 (vpaddd_f64): Rewrite using builtins.
14260 (vpaddd_s64): Move to correct alphabetical position.
14263 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
14266 * config/sh/sh.c (sh_legitimate_address_p,
14267 sh_legitimize_reload_address): Handle reg+reg address modes when
14268 ALLOW_INDEXED_ADDRESS is false.
14269 * config/sh/predicates.md (general_movsrc_operand,
14270 general_movdst_operand): Likewise.
14272 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14274 * config/aarch64/aarch64-builtins.c
14275 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14278 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14280 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14281 the generated mask based on BYTES_BIG_ENDIAN.
14282 (aarch64_simd_check_vect_par_cnst_half): New.
14283 * config/aarch64/aarch64-protos.h
14284 (aarch64_simd_check_vect_par_cnst_half): New.
14285 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14286 the check out to aarch64_simd_check_vect_par_cnst_half.
14287 (vect_par_cnst_lo_half): Likewise.
14288 * config/aarch64/aarch64-simd.md
14289 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14290 (move_hi_quad_<mode>): Always generate a low mask.
14292 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14294 * doc/invoke.texi (AVR Options): Add documentation about
14295 __AVR_DEVICE_NAME__ built-in macro.
14297 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
14300 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14301 constraints are satisfied.
14302 (<shift>di3_neon): Likewise.
14304 2014-07-31 Richard Biener <rguenther@suse.de>
14306 PR tree-optimization/61964
14307 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14308 by structural equality.
14310 2014-07-31 Yury Gribov <y.gribov@samsung.com>
14312 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14313 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14314 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14316 * gcc.c (sanitize_spec_function): Support new option.
14317 (SANITIZER_SPEC): Remove now redundant check.
14318 * opts.c (common_handle_option): Support new option.
14319 (finish_options): Check for incompatibilities.
14320 * toplev.c (process_options): Split userspace-specific checks.
14322 2014-07-31 Richard Biener <rguenther@suse.de>
14324 * lto-streamer.h (struct output_block): Remove global.
14325 (struct data_in): Remove labels, num_named_labels and
14326 num_unnamed_labels.
14327 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14328 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14330 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
14333 * common.opt (-Wreturn-local-addr): Moved from c.opt.
14334 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14335 (isolate_path): New argument to avoid inserting a trap.
14336 (find_implicit_erroneous_behaviour): Handle returning the address
14337 of a local variable.
14338 (find_explicit_erroneous_behaviour): Likewise.
14340 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
14343 * toplev.c (init_random_seed): Move piece of code never called to
14345 (set_random_seed): see above.
14347 2014-07-31 Tom de Vries <tom@codesourcery.com>
14349 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14351 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
14353 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14354 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14356 2014-07-31 Richard Biener <rguenther@suse.de>
14358 * data-streamer.h (streamer_write_data_stream): Declare here,
14360 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
14361 * lto-cgraph.c (lto_output_node): Adjust.
14362 (lto_output_varpool_node): Likewise.
14363 * data-streamer-out.c (streamer_string_index): Likewise.
14364 (streamer_write_data_stream, lto_append_block): Move from ...
14365 * lto-section-out.c (lto_output_data_stream,
14366 lto_append_block): ... here.
14368 2014-07-30 Mike Stump <mikestump@comcast.net>
14370 * configure.ac: Also check for popen.
14371 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14372 * configure: Regenerate.
14373 * config.in: Regenerate.
14375 2014-07-30 Martin Jambor <mjambor@suse.cz>
14377 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14378 parameter to gimple.
14380 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14382 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14383 address as second parameter to __tpf_eh_return routine.
14385 2014-07-30 Jiong Wang <jiong.wang@arm.com>
14387 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14390 2014-07-30 Tom Tromey <tromey@redhat.com>
14393 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14394 * doc/extend.texi (Type Attributes): Document designated_init
14397 2014-07-30 Roman Gareev <gareevroman@gmail.com>
14399 * graphite-isl-ast-to-gimple.c:
14400 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14401 (gcc_expression_from_isl_expression): Pass type to
14402 gcc_expression_from_isl_ast_expr_id.
14404 2014-07-30 Richard Biener <rguenther@suse.de>
14406 * lto-streamer.h (lto_write_data): New function.
14407 * langhooks.c (lhd_append_data): Do not free block.
14408 * lto-section-out.c (lto_write_data): New function writing
14409 raw data to the current section.
14410 (lto_write_stream): Adjust for langhook semantic change.
14411 (lto_destroy_simple_output_block): Write header directly.
14412 * lto-opts.c (lto_write_options): Write options directly.
14413 * lto-streamer-out.c (produce_asm): Write heaeder directly.
14414 (lto_output_toplevel_asms): Likewise.
14415 (copy_function_or_variable): Copy data directly.
14416 (write_global_references): Output index table directly.
14417 (lto_output_decl_state_refs): Likewise.
14418 (write_symbol): Write data directly.
14419 (produce_symtab): Adjust.
14420 (produce_asm_for_decls): Output header and refs directly.
14422 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14424 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14425 to speculative_targets
14426 (get_class_context): Fix handling of contextes without outer type;
14427 avoid matching non-polymorphic types in LTO.
14428 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14429 parameter to speculative_targetsp; handle speculation.
14430 (dump_possible_polymorphic_call_targets): Update dumping.
14432 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14434 * common.opt (Wodr): Enable by default.
14436 2014-07-29 Olivier Hainque <hainque@adacore.com>
14438 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14440 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
14443 * gengtype.c (strtoken): New function.
14444 (create_user_defined_type): Replace strtok with strtoken.
14446 2014-07-29 Nathan Sidwell <nathan@acm.org>
14448 * gcov-io.c (gcov_var): Make hidden.
14449 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14450 (gcov_do_dump): Declare.
14451 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14453 2014-07-29 Martin Jambor <mjambor@suse.cz>
14455 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14456 parameter to gimple.
14457 (sra_modify_assign): Likewise.
14459 2014-07-29 Richard Biener <rguenther@suse.de>
14461 PR middle-end/52478
14462 * expr.c (expand_expr_real_2): Revert last change.
14464 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14466 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14467 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14468 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14470 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14471 (contains_type_p): Forward declare.
14472 (polymorphic_call_target_hasher::hash): Hash speculative info.
14473 (polymorphic_call_target_hasher::equal): Compare speculative info.
14474 (get_class_context): Handle speuclation.
14475 (contains_type_p): Update.
14476 (get_polymorphic_call_info_for_decl): Update.
14477 (walk_ssa_copies): Break out from ...
14478 (get_polymorphic_call_info): ... here; set speculative context
14480 * ipa-prop.c (ipa_write_indirect_edge_info,
14481 ipa_read_indirect_edge_info): Stream speculative context.
14482 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14483 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14484 SPECULATIVE_MAYBE_DERIVED_TYPE).
14485 (possible_polymorphic_call_targets overriders): Update.
14486 (dump_possible_polymorphic_call_targets overriders): Update.
14487 (dump_possible_polymorphic_call_target_p overriders): Update.
14489 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14491 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14492 ipa-devirt path; fix thinko there.
14494 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
14496 * config/i386/i386.c (ix86_return_in_memory): Replace one
14497 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14499 2014-07-28 Marek Polacek <polacek@redhat.com>
14501 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
14503 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
14505 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14506 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14507 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14508 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14509 (USE_LD_AS_NEEDED): Likewise.
14510 (ASM_APP_ON): Likewise.
14511 (ASM_APP_OFF): Likewise.
14512 (TARGET_POSIX_IO): Likewise.
14513 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14514 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14515 (USE_LD_AS_NEEDED): Likewise.
14516 (ASM_APP_ON): Likewise.
14517 (ASM_APP_OFF): Likewise.
14518 (TARGET_POSIX_IO): Likewise.
14520 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
14522 PR middle-end/61734
14523 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14524 operators other than the equality operators.
14526 2014-07-28 Richard Biener <rguenther@suse.de>
14528 PR middle-end/52478
14529 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14530 sure to register SImode ones, not only >= word_mode ones.
14531 * expr.c (expand_expr_real_2): When expanding -ftrapv
14532 binops do not use OPTAB_LIB_WIDEN.
14534 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
14536 PR middle-end/61919
14537 * tree-outof-ssa.c (insert_partition_copy_on_edge)
14538 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14539 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14540 inserting them in the insn stream.
14542 2014-07-28 Marek Polacek <polacek@redhat.com>
14544 PR middle-end/61913
14545 * common.opt (Wodr): Add Var.
14547 2014-07-28 Richard Biener <rguenther@suse.de>
14549 PR tree-optimization/61921
14550 * tree-ssa-structalias.c (create_variable_info_for_1): Check
14551 if there is a varpool node before dereferencing it.
14553 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14555 * graphite-sese-to-poly.c:
14556 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14557 id of the pbb), which contains pointer to the pbb1.
14559 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14561 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14563 * graphite-isl-ast-to-gimple.c:
14564 (graphite_create_new_guard): New function.
14565 (translate_isl_ast_node_if): New function.
14566 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14568 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14570 2014-07-27 Anthony Green <green@moxielogic.com>
14572 * config.gcc: Add moxie-*-moxiebox* configuration.
14573 * config/moxie/moxiebox.h: New file.
14575 2014-07-26 Andrew Pinski <apinski@cavium.com>
14577 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14578 from the read only register.
14580 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14582 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14583 as the allocation class if it isn't likely to be spilled.
14585 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14587 * rtl.h (tls_referenced_p): Declare.
14588 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14589 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14590 (mips_cannot_force_const_mem): Use tls_referenced_p.
14591 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14592 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14593 instead of pa_tls_referenced_p.
14594 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14595 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14596 (pa_legitimate_constant_p): Likewise.
14597 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14598 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14599 (rs6000_cannot_force_const_mem, rs6000_emit_move)
14600 (rs6000_address_for_altivec): Use tls_referenced_p instead of
14601 rs6000_tls_referenced_p.
14602 (rs6000_tls_symbol_ref_1): Delete.
14604 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
14607 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14608 Optimize inverse of a VEC_CONCAT.
14610 2014-07-25 Xinliang David Li <davidxl@google.com>
14612 * params.def: New parameter.
14613 * coverage.c (get_coverage_counts): Check new flag.
14614 (coverage_compute_profile_id): Check new flag.
14615 (coverage_begin_function): Check new flag.
14616 (coverage_end_function): Check new flag.
14617 * value-prof.c (coverage_node_map_initialized_p): New function.
14618 (init_node_map): Populate map with all functions.
14619 * doc/invoke.texi: Document new parameter.
14621 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
14622 Richard Biener <rguenther@suse.de>
14624 * lto-streamer-out.c (struct sccs): Turn to ...
14625 (class DFS): ... this one; refactor the DFS walk so it can
14626 be re-done on per-SCC basis.
14627 (DFS::DFS): New constructor.
14628 (DFS::~DFS): New destructor.
14629 (hash_tree): Add new MAP argument holding in-SCC hash values;
14630 remove POINTER_TYPE hashing hack.
14631 (scc_entry_compare): Rename to ...
14632 (DFS::scc_entry_compare): ... this one.
14633 (hash_scc): Rename to ...
14634 (DFS::hash_scc): ... this one; pass output_block instead
14635 of streamer_cache; work harder to get unique and stable SCC
14637 (DFS_write_tree): Rename to ...
14638 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14639 (lto_output_tree): Update.
14641 2014-07-25 Andi Kleen <ak@linux.intel.com>
14643 * lto-streamer-out.c (hash_tree): Convert to inchash.
14645 2014-07-25 Andi Kleen <ak@linux.intel.com>
14647 * tree.c (build_type_attribute_qual_variant): Use inchash.
14648 (type_hash_list): Dito.
14649 (attribute_hash_list): Dito
14650 (iterative_hstate_expr): Dito.
14651 (iterative_hash_expr): Dito.
14652 (build_range_type_1): Dito.
14653 (build_array_type_1): Dito.
14654 (build_function_type): Dito.
14655 (build_method_type_directly): Dito.
14656 (build_offset_type): Dito.
14657 (build_complex_type): Dito.
14658 (make_vector_type): Dito.
14659 * tree.h (iterative_hash_expr): Add compat wrapper.
14660 (iterative_hstate_expr): Add.
14662 2014-07-25 Andi Kleen <ak@linux.intel.com>
14664 * Makefile.in (OBJS): Add inchash.o.
14665 (PLUGIN_HEADERS): Add inchash.h.
14666 * ipa-devirt.c: Include inchash.h.
14667 * lto-streamer-out.c: Dito.
14668 * tree-ssa-dom.c: Dito.
14669 * tree-ssa-pre.c: Dito.
14670 * tree-ssa-sccvn.c: Dito.
14671 * tree-ssa-tail-merge.c: Dito.
14673 * tree.c (iterative_hash_hashval_t): Move to ...
14674 (iterative_hash_host_wide_int): Move to ...
14675 * inchash.c: Here. New file.
14676 * tree.h (iterative_hash_hashval_t): Move to ...
14677 (iterative_hash_host_wide_int): Move to ...
14678 * inchash.h: Here. New file.
14680 2014-07-25 Richard Biener <rguenther@suse.de>
14682 PR middle-end/61762
14683 PR middle-end/61894
14684 * fold-const.c (native_encode_int): Add and handle offset
14685 parameter to do partial encodings of expr.
14686 (native_encode_fixed): Likewise.
14687 (native_encode_real): Likewise.
14688 (native_encode_complex): Likewise.
14689 (native_encode_vector): Likewise.
14690 (native_encode_string): Likewise.
14691 (native_encode_expr): Likewise.
14692 * fold-const.c (native_encode_expr): Add offset parameter
14694 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14695 (fold_ctor_reference): Handle all reads from tcc_constant
14698 2014-07-25 Richard Biener <rguenther@suse.de>
14700 * tree-inline.c (estimate_move_cost): Mark speed_p argument
14701 as possibly unused.
14703 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14705 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14707 2014-07-24 Kyle McMartin <kyle@redhat.com>
14709 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14711 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14713 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14715 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14717 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14718 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14719 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14721 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14723 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14724 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14725 aggregate types. Instead, *all* aggregate types, except for single-
14726 element or homogeneous float/vector aggregates, are quadword-aligned
14727 if required by their type alignment. Issue -Wpsabi note when a type
14728 is now treated differently than before.
14730 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14732 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14733 does not fit fully into floating-point registers, and there is still
14734 space in the register parameter area, use GPRs to pass those parts
14735 of the argument. Issue -Wpsabi note if any parameter is now treated
14736 differently than before.
14737 (rs6000_arg_partial_bytes): Update.
14739 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
14741 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14743 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14745 * rtl.h (target_rtl): Remove lang_dependent_initialized.
14746 * toplev.c (initialize_rtl): Don't use it. Move previously
14747 "language-dependent" calls to...
14748 (backend_init): ...here.
14749 (lang_dependent_init_target): Don't set lang_dependent_initialized.
14750 Assert that RTL initialization hasn't happend yet.
14752 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14754 PR rtl-optimization/61629
14755 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14756 they have already been initialized.
14758 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14760 PR middle-end/61268
14761 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14762 DECL_INCOMING_RTL and entry_parm.
14763 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14764 * calls.c (load_register_parameters): Likewise argument values.
14765 (emit_library_call_value_1, store_one_arg): Likewise argument
14767 * config/i386/i386.c (assign_386_stack_local): Likewise the local
14769 * explow.c (validize_mem): Modify the argument in-place.
14771 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14773 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14774 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14776 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14778 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14779 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14781 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14783 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14784 (aarch64_save_callee_saves): New parameter "skip_wb".
14785 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14787 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14789 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14791 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14793 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14795 * graphite-isl-ast-to-gimple.c:
14796 (graphite_create_new_loop): Add calling of isl_id_free to properly
14797 decrement reference counts.
14799 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14801 2014-07-24 Martin Liska <mliska@suse.cz>
14802 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14804 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14805 (rs6000_code_end): Likewise.
14807 2014-07-24 Martin Liska <mliska@suse.cz>
14809 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14810 symtab_node funtion used.
14811 (rs6000_xcoff_declare_object_name): Likewise.
14813 2014-07-24 Martin Liska <mliska@suse.cz>
14815 * cgraphunit.c (compile): Correct function used.
14817 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14819 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14822 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14825 * varasm.c (bss_initializer_p): Handle offlined ctors.
14826 (align_variable, get_variable_align): Likewise.
14827 (make_decl_one_only): Likewise.
14828 (default_binds_local_p_1): Likewise.
14829 (decl_binds_to_current_def_p): Likewise.
14830 (get_variable_section): Get constructor if it is offlined.
14831 (assemble_variable_contents): Sanity check that the caller
14832 streamed in the ctor in LTO.
14834 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14836 * graphite-isl-ast-to-gimple.c:
14837 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14838 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14839 isl_ast_op_pdiv_r to the different case.
14841 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14843 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14845 PR middle-end/61876
14846 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14847 when flag_errno_math is on.
14849 2014-07-24 Martin Liska <mliska@suse.cz>
14851 * cgraph.h (varpool_node):
14852 (availability get_availability (void)):
14853 created from cgraph_variable_initializer_availability
14854 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14855 created from: cgraph_variable_initializer_availability
14856 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14857 (void finalize_named_section_flags (void)):
14858 created from varpool_finalize_named_section_flags
14859 (bool assemble_decl (void)): created from varpool_assemble_decl
14860 (void analyze (void)): created from varpool_analyze_node
14861 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14862 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14863 (void remove_initializer (void)): created from varpool_remove_initializer
14864 (tree get_constructor (void)): created from varpool_get_constructor
14865 (bool externally_visible_p (void)): created from varpool_externally_visible_p
14866 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14867 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14868 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14869 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14870 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14871 (static bool output_variables (void)): created from varpool_output_variables
14872 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14873 created from varpool_extra_name_alias
14874 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14875 (static void dump_varpool (FILE *f)): created from dump_varpool
14876 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14877 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14878 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14879 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14880 (void assemble_aliases (void)): created from assemble_aliases
14882 2014-07-24 Martin Liska <mliska@suse.cz>
14884 * cgraph.h (symtab_node):
14885 (void register_symbol (void)): created from symtab_register_node
14886 (void remove (void)): created from symtab_remove_node
14887 (void dump (FILE *f)): created from dump_symtab_node
14888 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14889 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14890 (struct ipa_ref *add_reference (symtab_node *referred_node,
14891 enum ipa_ref_use use_type)): created from add_reference
14892 (struct ipa_ref *add_reference (symtab_node *referred_node,
14893 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14894 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14895 gimple stmt)): created from maybe_add_reference
14896 (bool semantically_equivalent_p (symtab_node *target)): created from
14897 symtab_semantically_equivalent_p
14898 (void remove_from_same_comdat_group (void)): created from
14899 remove_from_same_comdat_group
14900 (void add_to_same_comdat_group (symtab_node *old_node)): created from
14901 symtab_add_to_same_comdat_group
14902 (void dissolve_same_comdat_group_list (void)): created from
14903 symtab_dissolve_same_comdat_group_list
14904 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14905 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14906 created from symtab_alias_ultimate_target
14907 (inline symtab_node *next_defined_symbol (void)): created from
14908 symtab_next_defined_symbol
14909 (bool resolve_alias (symtab_node *target)): created from
14910 symtab_resolve_alias
14911 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14912 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14913 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14914 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14915 (void set_section (const char *section)): created from set_section_1
14916 (enum availability get_availability (void)): created from symtab_node_availability
14917 (void make_decl_local (void)): created from symtab_make_decl_local
14918 (bool real_symbol_p (void)): created from symtab_read_node
14919 (can_be_discarded_p (void)): created from symtab_can_be_discarded
14920 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14921 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14922 symtab_in_same_comdat_p;
14923 (bool address_taken_from_non_vtable_p (void)): created from
14924 address_taken_from_non_vtable_p
14925 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14926 (static void dump_table (FILE *)): created from dump_symtab
14927 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14928 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14929 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14930 symtab_used_from_object_file_p
14931 (void dump_base (FILE *)): created from dump_symtab_base
14932 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14933 (void unregister (void)): created from symtab_unregister_node
14934 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14935 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14936 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14937 symtab_nonoverwritable_alias_1
14938 * cgraph.h (cgraph_node):
14939 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14940 created from cgraph_remove_node_and_inline_clones
14941 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14942 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14943 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14944 (cgraph_node *function_symbol (enum availability *avail = NULL)):
14945 created from cgraph_function_node
14946 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14947 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14948 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14949 created from cgraph_create_clone
14950 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14951 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14952 created from cgraph_create_virtual_clone
14953 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14954 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14955 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14956 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14957 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14958 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14959 created from cgraph_function_version_info
14960 (struct cgraph_function_version_info *insert_new_function_version (void)):
14961 created from insert_new_cgraph_node_version
14962 (struct cgraph_function_version_info *function_version (void)): created from
14963 get_cgraph_node_version
14964 (void analyze (void)): created from analyze_function
14965 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14966 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14967 tree real_alias) cgraph_add_thunk
14968 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14969 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14970 created from cgraph_function_or_thunk_node
14971 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14972 created from expand_thunk
14973 (void reset (void)): created from cgraph_reset_node
14974 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14975 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14976 (void remove (void)): created from cgraph_remove_node
14977 (void dump (FILE *f)): created from dump_cgraph_node
14978 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14979 (bool get_body (void)): created from cgraph_get_body
14980 (void release_body (void)): created from cgraph_release_function_body
14981 (void unnest (void)): created from cgraph_unnest_node
14982 (void make_local (void)): created from cgraph_make_node_local
14983 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14984 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14985 gcov_type count, int freq)): created from cgraph_create_edge
14986 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14987 gcov_type count, int freq)): created from cgraph_create_indirect_edge
14988 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14989 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14990 created from cgraph_create_edge_including_clones
14991 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14992 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14993 (void remove_callers (void)): created from cgraph_node_remove_callers
14994 (void remove_callees (void)): created from cgraph_node_remove_callees
14995 (enum availability get_availability (void)): created from cgraph_function_body_availability
14996 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14997 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14998 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14999 (void call_duplication_hooks (cgraph_node *node2)): created from
15000 cgraph_call_node_duplication_hooks
15001 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
15002 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
15003 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
15004 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
15005 (void call_function_insertion_hooks (void)):
15006 created from cgraph_call_function_insertion_hooks
15007 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
15008 (bool local_p (void)): created from cgraph_local_node
15009 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
15010 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
15011 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
15012 (inline bool only_called_directly_or_aliased_p (void)):
15013 created from cgraph_only_called_directly_or_aliased_p
15014 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
15015 created from cgraph_will_be_removed_from_program_if_no_direct_calls
15016 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
15017 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
15018 (bool can_remove_if_no_direct_calls_p (void)):
15019 created from cgraph_can_remove_if_no_direct_calls_p
15020 (inline bool has_gimple_body_p (void)):
15021 created from cgraph_function_with_gimple_body_p
15022 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15023 (static void dump_cgraph (FILE *f)): created from dump_cgraph
15024 (static inline void debug_cgraph (void)): created from debug_cgraph
15025 (static void record_function_versions (tree decl1, tree decl2)):
15026 created from record_function_versions
15027 (static void delete_function_version (tree decl)):
15028 created from delete_function_version
15029 (static void add_new_function (tree fndecl, bool lowered)):
15030 created from cgraph_add_new_function
15031 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15032 (static cgraph_node * create (tree decl)): created from cgraph_create_node
15033 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15034 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15035 (static cgraph_node *get_for_asmname (tree asmname)):
15036 created from cgraph_node_for_asm
15037 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15038 created from cgraph_same_body_alias
15039 (static bool used_from_object_file_p_worker (cgraph_node *node,
15040 void *): new function
15041 (static bool non_local_p (cgraph_node *node, void *)):
15042 created from cgraph_non_local_node_p_1
15043 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15044 created from verify_cgraph
15045 (static bool make_local (cgraph_node *node, void *)):
15046 created from cgraph_make_node_local
15047 (static cgraph_node *create_alias (tree alias, tree target)):
15048 created from cgraph_create_function_alias
15049 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15050 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15051 created from cgraph_create_edge_1
15052 * cgraph.h (varpool_node):
15053 (void remove (void)): created from varpool_remove_node
15054 (void dump (FILE *f)): created from dump_varpool_node
15056 2014-07-24 Richard Biener <rguenther@suse.de>
15059 * tree-ssa-structalias.c (create_variable_info_for_1):
15060 Use varpool_get_constructor.
15061 (create_variable_info_for): Likewise.
15063 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15065 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15066 subtract outgoing area size when restoring stack_pointer_rtx.
15068 2014-07-24 Nick Clifton <nickc@redhat.com>
15070 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15071 that operations are taking place in parallel.
15072 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15074 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
15076 * omp-low.c (extract_omp_for_data): Add missing break statement.
15078 2014-07-24 Richard Biener <rguenther@suse.de>
15080 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15081 * tree-inline.c (estimate_move_cost): Add speed_p parameter
15082 and adjust MOVE_RATIO query accordingly.
15083 (estimate_num_insns): Adjust callers.
15084 * ipa-prop.c (ipa_populate_param_decls): Likewise.
15085 * ipa-cp.c (gather_context_independent_values,
15086 estimate_local_effects): Likewise.
15087 * ipa-split.c (consider_split): Likewise.
15089 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
15091 * config/i386/driver-i386.c: Remove names of unused arguments and
15092 unnecessary unused attributes.
15093 * config/i386/host-mingw32.c: Likewise.
15094 * config/i386/i386.c: Likewise.
15095 * config/i386/winnt-stubs.c: Likewise.
15096 * config/i386/winnt.c: Likewise.
15098 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15100 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15101 (aarch64_gen_loadwb_pair): New helper function.
15102 (aarch64_expand_epilogue): Simplify code using new helper functions.
15103 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15105 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15107 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15108 (aarch64_gen_storewb_pair): New helper function.
15109 (aarch64_expand_prologue): Simplify code using new helper functions.
15110 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15112 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15114 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15115 Rename to aarch64_save_callee_saves, remove restore code.
15116 (aarch64_restore_callee_saves): New function.
15118 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15120 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15121 (aarch64_save_callee_saves): New function to handle reg save
15122 for both core and vectore regs.
15124 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15126 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15127 (aarch64_gen_store_pair): New helper function.
15128 (aarch64_save_or_restore_callee_save_registers)
15129 (aarch64_save_or_restore_fprs): Use new helper functions.
15131 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15133 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15134 (aarch64_save_or_restore_callee_save_registers)
15135 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15137 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15139 * config/aarch64/aarch64.c
15140 (aarch64_save_or_restore_callee_save_registers)
15141 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15143 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15145 * config/aarch64/aarch64.c
15146 (aarch64_save_or_restore_callee_save_registers)
15147 (aarch64_save_or_restore_fprs): Remove 'increment'.
15149 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15151 * config/aarch64/aarch64.c
15152 (aarch64_save_or_restore_callee_save_registers)
15153 (aarch64_save_or_restore_fprs): Use register offset in
15154 cfun->machine->frame.reg_offset.
15156 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15158 * config/aarch64/aarch64.c
15159 (aarch64_save_or_restore_callee_save_registers)
15160 (aarch64_save_or_restore_fprs): Remove base_rtx.
15162 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15164 * config/aarch64/aarch64.c
15165 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15166 to 'start_offset'. Remove local variable 'start_offset'.
15168 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15170 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15171 type to HOST_WIDE_INT.
15173 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15175 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15176 (aarch64_save_or_restore_fprs)
15177 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15179 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15181 * config/arm/t-rtems-eabi: Add
15182 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15183 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15184 mbig-endian/mthumb/march=armv7-r, and
15185 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15188 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15189 Chris Johns <chrisj@rtems.org>
15190 Joel Sherrill <joel.sherrill@oarcorp.com>
15192 * config.gcc: Add nios2-*-rtems*.
15193 * config/nios2/rtems.h: New file.
15194 * gcc/config/nios2/t-rtems: New file.
15196 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15199 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15200 constant numbers, not general constants.
15201 (rs6000_expand_vector_init): Ditto.
15203 2014-07-23 Nathan Sidwell <nathan@acm.org>
15205 * gcov-tool.c (gcov_list): Declare here.
15206 (set_gcov_list): Remove.
15207 (gcov_output_files): Set gcov_list directly.
15209 2014-07-23 Host Schirmeier <horst@schirmeier.com>
15211 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15213 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15215 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15216 callee-saved registers are available for padding purpose
15217 and r3 is not mandatory, then prefer use those callee-saved
15220 2014-07-23 Richard Biener <rguenther@suse.de>
15222 * params.def (PARAM_MAX_COMBINE_INSNS): New.
15223 * combine.c: Include statistics.h and params.h.
15224 (combine_instructions): Guard three and four insn combines
15225 with max-combine-insns value. Record statistics for combines
15227 * doc/invoke.texi (max-combine-insns): Document new param.
15229 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15231 * graphite-isl-ast-to-gimple.c:
15232 (translate_isl_ast_node_block): New function.
15233 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15235 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15236 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15238 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15240 * graphite-isl-ast-to-gimple.c:
15241 (get_max_schedule_dimensions): New function.
15242 (extend_schedule): Likewise.
15243 (generate_isl_schedule): Add calling of extend_schedule and
15244 get_max_schedule_dimensions.
15246 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15248 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15249 (case UNSPEC): Handle UNSPEC_RBIT.
15251 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15253 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15254 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15256 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15258 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15260 2014-07-22 Roman Gareev <gareevroman@gmail.com>
15262 * graphite-isl-ast-to-gimple.c:
15263 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15264 (ivs_params_clear):
15265 (build_iv_mapping): New function.
15266 (translate_isl_ast_node_user): Likewise.
15267 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15269 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15270 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15271 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15273 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15276 * config/arm/arm.md (setmem): New pattern.
15277 * config/arm/arm-protos.h (struct tune_params): New fields.
15278 (arm_gen_setmem): New prototype.
15279 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15280 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15281 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15282 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15283 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15284 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15285 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15286 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15287 (arm_const_inline_cost): New function.
15288 (arm_block_set_max_insns): New function.
15289 (arm_block_set_non_vect_profit_p): New function.
15290 (arm_block_set_vect_profit_p): New function.
15291 (arm_block_set_unaligned_vect): New function.
15292 (arm_block_set_aligned_vect): New function.
15293 (arm_block_set_unaligned_non_vect): New function.
15294 (arm_block_set_aligned_non_vect): New function.
15295 (arm_block_set_vect, arm_gen_setmem): New functions.
15297 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15299 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15301 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
15304 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15305 out of #ifdef __OPTIMIZE__.
15307 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15309 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15310 different trapping status if -fnon-call-exceptions is enabled.
15312 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15314 * expr.c (store_field): Handle VOIDmode for calls that return values
15315 in multiple locations.
15317 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15319 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
15320 (altivec_vsldoi_<mode>): Likewise.
15322 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15324 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15325 to the number of characters in the line.
15327 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15329 * graphite-isl-ast-to-gimple.c: Add using of
15330 build_nonstandard_integer_type instead of int128_integer_type_node.
15332 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
15334 * toplev.c (output_stack_usage): Adjust the location of the warning.
15336 2014-07-19 Daniel Cederman <cederman@gaisler.com>
15338 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15339 (*membar_storeload): Disable for LEON3.
15341 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15343 PR rtl-optimization/61461
15344 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15346 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
15349 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15350 Fix instruction constraint.
15351 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15353 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
15355 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15357 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
15359 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15360 GNU coding standards.
15361 (nds32_register_move_cost): Likewise.
15362 (nds32_memory_move_cost): Likewise.
15363 (nds32_address_cost): Likewise.
15365 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15367 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15369 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
15371 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15372 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15373 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15374 (HAVE_sync_compare_and_swapqi): Define.
15375 (HAVE_sync_compare_and_swaphi): Likewise.
15376 (HAVE_sync_compare_and_swapsi): Likewise.
15378 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
15380 * config/mips/p5600.md: Add missing cpu tests.
15382 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15384 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15385 (vmla_f64): Likewise.
15386 (vfms_f64): Likewise.
15387 (vmls_f64): Likewise.
15389 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15391 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15392 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15394 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15396 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15397 (vmlal_high_lane_s32): Likewise.
15398 (vmlal_high_lane_u16): Likewise.
15399 (vmlal_high_lane_u32): Likewise.
15400 (vmlsl_high_lane_s16): Likewise.
15401 (vmlsl_high_lane_s32): Likewise.
15402 (vmlsl_high_lane_u16): Likewise.
15403 (vmlsl_high_lane_u32): Likewise.
15405 2014-07-17 Terry Guo <terry.guo@arm.com>
15407 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15408 (alus_reg): Renamed to alus_sreg.
15409 * config/arm/arm-fixed.md: Change type of non-dsp instructions
15410 from alu_reg to alu_sreg. Change type of dsp instructions from
15411 alu_reg to alu_dsp_reg.
15412 * config/arm/thumb1.md: Likewise.
15413 * config/arm/thumb2.md: Likewise.
15414 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15415 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15416 with alu_sreg and alus_sreg.
15417 * config/arm/arm1026ejs.md (alu_op): Likewise.
15418 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15419 * config/arm/arm926ejs.md (9_alu_op): Likewise.
15420 * config/arm/fa526.md (526_alu_op): Likewise.
15421 * config/arm/fa606te.md (606te_alu_op): Likewise.
15422 * config/arm/fa626te.md (626te_alu_op): Likewise.
15423 * config/arm/fa726te.md (726te_alu_op): Likewise.
15424 * config/arm/fmp626.md (mp626_alu_op): Likewise.
15425 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15426 alu_sreg, alu_dsp_reg and alus_sreg.
15427 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15428 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15429 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15430 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15431 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15432 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15433 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15434 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15435 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15436 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15437 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15438 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15439 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15440 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15441 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15442 alus_reg to alus_sreg.
15444 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
15446 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15449 2014-07-17 Richard Biener <rguenther@suse.de>
15451 PR rtl-optimization/61801
15452 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15453 don't set reg_pending_barrier if it appears in a debug-insn.
15455 2014-07-16 DJ Delorie <dj@redhat.com>
15457 * config/rx/rx.c (rx_option_override): Fix alignment values.
15458 (rx_align_for_label): Likewise.
15460 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
15463 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15464 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15465 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15467 (cris_print_index, cris_print_operand, cris_constant_index_p)
15468 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15469 (cris_address_cost): Ditto last CONSTANT_P.
15470 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
15471 callers changed. Yield cris_offsettable_symbol for non-PIC
15472 constant symbolic expressions including labels. Yield cris_unspec
15474 (cris_expand_pic_call_address): New parameter MARKERP. Set its
15475 target to pic_offset_table_rtx for calls that will likely go
15476 through PLT, const0_rtx when they can't. All callers changed.
15477 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15478 symbolic expressions to be PICified. Remove second, redundant,
15479 assert on can_create_pseudo_p returning non-zero. Use
15480 replace_equiv_address_nv, not replace_equiv_address, for final
15482 * config/cris/cris.md ("movsi"): Move variable t to pattern
15483 toplevel. Adjust assert for new cris_symbol_type member. Use
15484 CONSTANT_P instead of CONSTANT_ADDRESS_P.
15485 ("*movsi_internal") <case 9>: Make check for valid unspec operands
15487 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15488 ("call", "call_value"): Use second incoming operand as a marker
15489 for pic-offset-table-register being used.
15490 ("*expanded_call_non_v32", "*expanded_call_v32")
15491 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15492 second incoming operand to CALL, match cris_call_type_marker.
15493 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
15494 ("*expanded_call_side"): Ditto. Fix typo in comment.
15495 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15497 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15498 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15499 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
15500 users changed. Add members cris_offsettable_symbol and cris_unspec.
15501 (cris_symbol_type): Rename from cris_pic_symbol_type.
15502 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15504 * config/cris/cris-protos.h (cris_symbol_type_of,
15505 cris_expand_pic_call_address): Adjust prototypes.
15506 (cris_legitimate_constant_p): New prototype.
15508 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15509 an existing tmake_file. Don't add t-slibgcc and t-linux.
15511 2014-07-17 Jason Merrill <jason@redhat.com>
15514 * symtab.c (symtab_remove_from_same_comdat_group): Also
15515 set_comdat_group to NULL_TREE.
15516 (verify_symtab): Fix diagnostic.
15518 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
15521 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15523 2014-07-16 Dodji Seketeli <dodji@redhat.com>
15525 Support location tracking for built-in macro tokens
15526 * input.h (is_location_from_builtin_token): New function declaration.
15527 * input.c (is_location_from_builtin_token): New function definition.
15528 * toplev.c (general_init): Tell libcpp what the pre-defined
15529 spelling location for built-in tokens is.
15531 2014-07-16 Jakub Jelinek <jakub@redhat.com>
15533 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15534 on the FUNCTION_DECL.
15536 2014-07-16 Richard Biener <rguenther@suse.de>
15539 * doc/extend.texi (always_inline): Clarify.
15541 2014-07-15 Eric Christopher <echristo@gmail.com>
15543 * doc/invoke.texi (Link Options): Document -z option.
15545 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
15547 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15548 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15550 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
15552 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15554 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
15556 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15557 varpool_assemble_decl.
15558 * varpool.c (varpool_assemble_decl): Assert that node->definition is
15561 2014-07-15 Michael Matz <matz@suse.de>
15563 PR rtl-optimization/61772
15564 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15566 2014-07-15 Richard Biener <rguenther@suse.de>
15568 * opts.c (default_options_table): Disable bit-ccp at -Og.
15570 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15572 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15574 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15576 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15577 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15578 call langhook for unknown declaration.
15579 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15580 * tree.h (DECL_ARGUMENTS): Update.
15581 * print-tree.c (print_node): Update.
15582 * tree-core.h (tree_decl_non_common): Remove arguments.
15583 (tree_function_decl): Add arguments.
15585 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
15587 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15589 2014-07-14 Richard Biener <rguenther@suse.de>
15591 PR tree-optimization/61779
15592 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15593 simplifying a condition.
15595 2014-07-14 Richard Biener <rguenther@suse.de>
15597 * builtins.c (c_strlen): Make only_value == 2 really only
15598 affect warning generation.
15600 2014-07-14 Richard Biener <rguenther@suse.de>
15602 PR tree-optimization/61757
15603 PR tree-optimization/61783
15604 PR tree-optimization/61787
15605 * tree-ssa-dom.c (record_equality): Revert canonicalization
15606 change and add comment.
15607 (propagate_rhs_into_lhs): Revert previous fix, removing
15608 loop depth restriction again.
15610 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15612 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15613 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15614 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15615 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15616 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15617 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15618 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15620 2014-07-14 Richard Biener <rguenther@suse.de>
15622 * cgraph.h (decl_in_symtab_p): Make inline.
15624 2014-07-14 Jakub Jelinek <jakub@redhat.com>
15626 PR middle-end/61294
15627 * doc/invoke.texi (-Wmemset-transposed-args): Document.
15630 * config/i386/i386.c (classify_argument): Don't merge classes above
15633 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
15635 * cgraph.h (symtab_node): Add nonzero_address.
15636 (decl_in_symtab_p): Break out from ...
15637 (symtab_get_node): ... here.
15638 * fold-const.c: Include cgraph.h
15639 (tree_single_nonzero_warnv_p): Use symtab to determine
15640 if symbol is non-zero.
15641 * symtab.c (symtab_node::nonzero_address): New method.
15643 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15645 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15646 forgotten in previous commit.
15648 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15650 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15652 * ipa-devirt.c: Include stor-layout.h and intl.h
15653 (odr_subtypes_equivalent_p): New function.
15654 (warn_odr): New function.
15655 (warn_type_mismatch): New function.
15656 (odr_types_equivalent_p): New function.
15657 (add_type_duplicate): Use it.
15658 * common.opt (Wodr): New flag.
15659 * doc/invoke.texi (Wodr): Document new warning.
15661 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15663 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15664 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15665 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15666 (varpool_get_constructor): Push CTORS_IN timevar.
15667 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15669 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
15671 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15672 Remove VOID_FTYPE_PUSHORT.
15673 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15674 Change code to USHORT_FTYPE_VOID.
15675 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15676 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15677 (ix86_atomic_assign_expand_fenv): Update for
15678 __builtin_ia32_fnstsw changes.
15679 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15680 (fnstsw): Change operand 0 to nonimmediate operand.
15682 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15684 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15685 (varpool_get_constructor): New function.
15686 (varpool_ctor_useable_for_folding_p): Break out from ...
15687 (ctor_for_folding): ... here; use varpool_get_constructor.
15688 (varpool_assemble_decl): Likewise.
15689 * lto-streamer.h (struct output_block): Turn cgraph_node
15691 (lto_input_variable_constructor): Declare.
15692 * ipa-visibility.c (function_and_variable_visibility): Use
15693 varpool_get_constructor.
15694 * cgraph.h (varpool_get_constructor): Declare.
15695 (varpool_ctor_useable_for_folding_p): New function.
15696 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15697 parameter; return error_mark_node for non-trivial constructors.
15698 (lto_write_tree_1, DFS_write_tree): Update use of
15699 get_symbol_initial_value.
15700 (output_function): Update initialization of symbol.
15701 (output_constructor): New function.
15702 (copy_function): Rename to ..
15703 (copy_function_or_variable): ... this one; handle vars too.
15704 (lto_output): Output variable sections.
15705 * lto-streamer-in.c (input_constructor): New function.
15706 (lto_read_body): Rename from ...
15707 (lto_read_body_or_constructor): ... this one; handle vars too.
15708 (lto_input_variable_constructor): New function.
15709 * ipa-prop.c (ipa_prop_write_jump_functions,
15710 ipa_prop_write_all_agg_replacement): Update.
15711 * lto-cgraph.c (compute_ltrans_boundary): Use it.
15712 (output_cgraph_opt_summary): Set symbol to NULL.
15714 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15716 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15717 non-polymorphic types.
15718 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15719 * ipa-devirt.c (types_same_for_odr): Do not explode when one
15720 of types is not polymorphic.
15722 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
15724 * lra-constraints.c (remove_inheritance_pseudos): Process
15725 destination pseudo too.
15727 2014-07-11 Rong Xu <xur@google.com>
15729 * gcov-tool.c (gcov_output_files): Fix build error introduced in
15732 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15734 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15735 * config/avr/avr-devices.c (AVR_MCU): Same.
15736 (avr_mcu_types): add text start value to end of device list.
15737 * config/avr/avr-mcus.def: Add text section start for all devices.
15738 (ata5782): Add new avr5 device.
15740 * config/avr/avr-tables.opt: Regenerate.
15741 * config/avr/avr.h: Add declaration for text section start handler.
15742 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15744 (LINK_SPEC): Include text section start handler to linker spec.
15745 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15746 pass -Ttext option to linker if the text section start for the device
15748 * config/avr/t-multilib: Regenerate.
15749 * doc/avr-mmcu.texi: Regenerate.
15751 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
15753 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15754 * config/rs6000/aix52.h (LINK_SPEC): Same.
15755 * config/rs6000/aix53.h (LINK_SPEC): Same.
15756 * config/rs6000/aix61.h (LINK_SPEC): Same.
15757 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15759 2014-07-11 Roman Gareev <gareevroman@gmail.com>
15761 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15762 (graphite_verify): New function.
15763 (ivs_params_clear): New function.
15764 (gcc_expression_from_isl_ast_expr_id): New function.
15765 (gcc_expression_from_isl_expr_int): New function.
15766 (binary_op_to_tree): New function.
15767 (ternary_op_to_tree): New function.
15768 (unary_op_to_tree): New function.
15769 (nary_op_to_tree): New function.
15770 (gcc_expression_from_isl_expr_op): New function.
15771 (gcc_expression_from_isl_expression): New function.
15772 (graphite_create_new_loop): New function.
15773 (translate_isl_ast_for_loop): New function.
15774 (get_upper_bound): New function.
15775 (graphite_create_new_loop_guard): New function.
15776 (translate_isl_ast_node_for): New function.
15777 (translate_isl_ast): New function.
15778 (add_parameters_to_ivs_params): New function.
15779 (scop_to_isl_ast): New parameter ip.
15780 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15782 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15784 * config/xtensa/predicates.md (call expander): Update for
15785 DECL_SECTION_NAME being string.
15787 2014-07-11 Richard Biener <rguenther@suse.de>
15789 PR middle-end/61473
15790 * builtins.c (fold_builtin_memory_op): Inline memory moves that
15791 can be implemented with a single load followed by a single store.
15792 (c_strlen): Only warn when only_value is not 2.
15794 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
15796 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15798 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
15801 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15802 (*movhi_bytes): Likewise.
15803 (*arm_movqi_insn): Likewise.
15805 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
15808 * config/alpha/alpha.c: Include tree-pass.h, context.h
15809 and pass_manager.h.
15810 (pass_data_handle_trap_shadows): New pass.
15811 (pass_handle_trap_shadows::gate): New pass gate function.
15812 (make_pass_handle_trap_shadows): New function.
15813 (rest_of_handle_trap_shadows): Ditto.
15815 (alpha_align_insns_1): Rename from alpha_align_insns.
15816 (pass_data_align_insns): New pass.
15817 (pass_align_insns::gate): New pass gate function.
15818 (make_pass_aling_insns): New function.
15819 (rest_of_align_insns): Ditto.
15820 (alpha_align_insns): Ditto.
15822 (alpha_option_override): Declare handle_trap_shadows info
15823 and align_insns_info. Register handle_trap_shadows and align_insns
15825 (alpha_reorg): Do not call alpha_trap_shadows and
15826 alpha_align_insn from here.
15828 (alpha_pad_function_end): Do not skip BARRIERs.
15830 2014-07-10 Rong Xu <xur@google.com>
15832 Add gcov-tool: an offline gcda profile processing tool support.
15833 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15834 (gcov_is_error): Ditto.
15835 (gcov_read_string): Ditto.
15836 (gcov_read_sync): Ditto.
15837 * gcov-io.h: Move counter defines to gcov-counter.def.
15838 * gcov-dump.c (tag_counters): Use gcov-counter.def.
15839 * coverage.c: Ditto.
15840 * gcov-tool.c: Offline gcda profile processing tool.
15841 (unlink_gcda_file): Remove one gcda file.
15842 (unlink_profile_dir): Remove gcda files from the profile path.
15843 (gcov_output_files): Output gcda files to an output dir.
15844 (profile_merge): Merge two profiles in directory.
15845 (print_merge_usage_message): Print merge usage.
15846 (merge_usage): Print merge usage and exit.
15847 (do_merge): Driver for profile merge sub-command.
15848 (profile_rewrite): Rewrite profile.
15849 (print_rewrite_usage_message): Print rewrite usage.
15850 (rewrite_usage): Print rewrite usage and exit.
15851 (do_rewrite): Driver for profile rewrite sub-command.
15852 (print_usage): Print gcov-info usage and exit.
15853 (print_version): Print gcov-info version.
15854 (process_args): Process arguments.
15855 (main): Main routine for gcov-tool.
15856 * Makefile.in: Build and install gcov-tool.
15857 * gcov-counter.def: New file split from gcov-io.h.
15858 * doc/gcc.texi: Include gcov-tool.texi.
15859 * doc/gcov-tool.texi: Document for gcov-tool.
15861 2014-07-10 Richard Biener <rguenther@suse.de>
15863 PR tree-optimization/61757
15864 * tree-ssa-dom.c (loop_depth_of_name): Restore.
15865 (propagate_rhs_into_lhs): Revert part of last change.
15867 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
15869 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15872 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
15874 PR middle-end/53590
15875 * function.c (allocate_struct_function): Revert r188667 change.
15877 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15879 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
15881 * doc/install.texi: Remove links to defunct package providers for
15884 2014-07-09 Tom de Vries <tom@codesourcery.com>
15886 * final.c (get_call_fndecl): Declare.
15887 (self_recursive_call_p): New function.
15888 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15890 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15892 * ipa-devirt.c (record_node): Walk through aliases.
15894 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15896 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15898 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15901 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15903 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15905 * ipa-visibility.c (function_and_variable_visibility): Remove
15906 temporary hack disabling local aliases on AIX.
15908 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15910 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15911 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15913 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15915 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15916 * rs6000/rs6000.c: Inline output of .set instruction.
15917 (declare_alias_data): New struct.
15918 (rs6000_declare_alias): New function.
15919 (rs6000_xcoff_declare_function_name): Use it.
15920 (rs6000_xcoff_declare_object_name): New function.
15921 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15922 (ASM_OUTPUT_DEF): Turn to empty definition.
15924 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15927 * hash-table.h: use hash_table::value_type instead of
15928 Descriptor::value_type in the return types of several methods.
15930 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15932 * tree-pass.h (pass_data): Remove has_execute member.
15933 * passes.c (execute_one_pass): Don't check pass->has_execute.
15934 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15935 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15936 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15937 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15938 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15939 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15940 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15941 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15942 gimple-low.c, gimple-ssa-isolate-paths.c,
15943 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15944 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15945 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15946 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15947 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15948 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15949 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15950 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15951 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15952 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15953 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15954 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15955 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15956 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15957 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15958 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15959 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15960 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15961 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15962 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15963 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15964 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15965 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15966 web.c: Remove initializer for pass_data::has_execute.
15968 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15970 * graphite-htab.h: Use hash_map instead of hash_table.
15971 * graphite-clast-to-gimple.c: Adjust.
15972 * passes.c: Use hash_map instead of hash_table.
15973 * sese.c: Likewise.
15974 * sese.h: Remove now unused code.
15976 2014-07-08 Sriraman Tallam <tmsriram@google.com>
15979 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15982 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15984 PR rtl-optimization/61673
15985 * combine.c (simplify_comparison): Test just mode's sign bit
15986 in tmode rather than the sign bit and any bits above it.
15988 2014-07-08 Roman Gareev <gareevroman@gmail.com>
15990 * graphite-isl-ast-to-gimple.c (generate_isl_context):
15991 Add __isl_give to the declaration.
15992 (generate_isl_schedule): Likewise.
15993 (scop_to_isl_ast): Likewise.
15995 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15997 * config/arm/arm.c (cortexa5_extra_costs): New table.
15998 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
16000 2014-07-08 Jakub Jelinek <jakub@redhat.com>
16002 PR tree-optimization/61725
16003 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
16004 range, use range_includes_zerop_p instead of integer_zerop on
16005 vr0->min, only use log2 of max if min is not negative.
16007 2014-07-08 Richard Biener <rguenther@suse.de>
16009 * tree-ssa-dom.h (loop_depth_of_name): Remove.
16010 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
16011 restriction on loop depth difference.
16012 (record_equality): Likewise.
16013 (propagate_rhs_into_lhs): Likewise. Simplify condition.
16014 (loop_depth_of_name): Remove.
16015 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
16016 restriction on loop depth difference.
16017 (init_copy_prop): Likewise.
16019 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16021 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16023 (walk_aliased_vdefs): Likewise.
16024 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16025 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16026 (detect_type_change_from_memory_writes): Check if entry was reached.
16028 2014-07-08 Richard Biener <rguenther@suse.de>
16030 PR tree-optimization/61681
16031 * tree-ssa-structalias.c (find_what_var_points_to): Expand
16032 NONLOCAL inside ESCAPED.
16034 2014-07-08 Richard Biener <rguenther@suse.de>
16036 PR tree-optimization/61680
16037 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16038 Handle properly all read-write dependences with group accesses.
16040 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
16042 PR tree-optimization/61576
16043 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16044 block containing reduction statement is predecessor of phi basi block.
16046 2014-07-08 Marek Polacek <polacek@redhat.com>
16049 * fold-const.c (round_up_loc): Change the parameter type.
16051 * fold-const.h (round_up_loc): Adjust declaration.
16052 * stor-layout.c (finalize_record_size): Check for too large types.
16054 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
16056 * symtab.c: Include calls.h.
16057 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16059 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
16061 * config/rs6000/rs6000.c (output_vec_const_move): Handle
16062 little-endian code generation.
16063 * config/rs6000/spe.md (spe_evmergehi): Rename to...
16064 (vec_perm00_v2si): ... this. Handle little-endian code generation.
16065 (spe_evmergehilo): Rename to...
16066 (vec_perm01_v2si): ... this. Handle little-endian code generation.
16067 (spe_evmergelo): Rename to...
16068 (vec_perm11_v2si): ... this. Handle little-endian code generation.
16069 (spe_evmergelohi): Rename to...
16070 (vec_perm10_v2si): ... this. Handle little-endian code generation.
16071 (spe_evmergehi, spe_evmergehilo): New expanders.
16072 (spe_evmergelo, spe_evmergelohi): Likewise.
16073 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16074 (*frob_tf_ti): Likewise.
16075 (*frob_<mode>_di_2): Likewise.
16076 (*frob_tf_di_8_2): Likewise.
16077 (*frob_di_<mode>): Likewise.
16078 (*frob_ti_tf): Likewise.
16079 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16080 (*frob_ti_<mode>_8_2): Likewise.
16081 (*frob_ti_tf_2): Likewise.
16082 (mov_si<mode>_e500_subreg0): Rename to...
16083 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
16085 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16086 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16087 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
16088 the big endianness only.
16089 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16090 (*mov_si<mode>_e500_subreg0_2): Rename to...
16091 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
16092 big big endianness only.
16093 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16094 (*mov_si<mode>_e500_subreg4): Rename to...
16095 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
16097 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16098 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16099 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
16100 the big endianness only.
16101 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16103 (*mov_si<mode>_e500_subreg4_2): Rename to...
16104 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
16106 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16107 (*mov_sitf_e500_subreg8): Rename to...
16108 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
16110 (*mov_sitf_e500_subreg8_le): New instruction pattern.
16111 (*mov_sitf_e500_subreg8_2): Rename to...
16112 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
16114 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16115 (*mov_sitf_e500_subreg12): Rename to...
16116 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
16118 (*mov_sitf_e500_subreg12_le): New instruction pattern.
16119 (*mov_sitf_e500_subreg12_2): Rename to...
16120 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
16122 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16124 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
16126 * asan.c (instrument_strlen_call): Do not instrument first byte
16127 in strlen if already instrumented.
16129 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16131 * config/arm/arm.opt (mwords-little-endian): Delete.
16132 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16133 of TARGET_LITTLE_WORDS.
16134 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16135 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16137 * doc/invoke.texi: Remove references to -mwords-little-endian.
16139 2014-07-07 Jakub Jelinek <jakub@redhat.com>
16141 * expmed.c (struct init_expmed_rtl): Change all fields but
16142 pow2 and cint from struct rtx_def to rtx.
16143 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16144 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
16147 2014-07-06 Marek Polacek <polacek@redhat.com>
16150 * doc/invoke.texi: Document -Wsizeof-array-argument.
16152 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16154 * wide-int.h (wide_int_storage): Change declaration from struct
16157 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
16159 * cgraph.c (cgraph_create_indirect_edge): Update call of
16160 get_polymorphic_call_info.
16161 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16162 (possible_polymorphic_call_targets): Add parameter call.
16163 (decl_maybe_in_construction_p): New predicate.
16164 (get_polymorphic_call_info): Add parameter call;
16165 use decl_maybe_in_construction_p.
16166 * gimple-fold.c (fold_gimple_assign): Update use of
16167 possible_polymorphic_call_targets.
16168 (gimple_fold_call): Likewise.
16169 * ipa-prop.c: Inlcude calls.h
16170 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16171 (param_type_may_change_p): New predicate.
16172 (detect_type_change_from_memory_writes): Break out from ...
16173 (detect_type_change): ... this one; use param_type_may_change_p.
16174 (detect_type_change_ssa): Use param_type_may_change_p.
16175 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16177 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
16180 * config/arm/arm-protos.h (arm_legitimate_address_p,
16181 arm_is_constant_pool_ref): Add prototypes.
16182 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16183 (arm_is_constant_pool_ref) New function.
16184 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16185 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16186 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16187 operand. Remove pool_range and neg_pool_range attributes.
16188 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16189 pool_range and neg_pool_range attributes.
16190 * config/arm/constraints.md (Uh): New constraint.
16191 (Uq): Don't allow constant pool references.
16193 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
16195 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16196 (move_lo_quad_internal_be_<mode>): Likewise.
16197 (move_lo_quad_<mode>): Convert to define_expand.
16198 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16199 (aarch64_simd_move_hi_quad_be_<mode>): New.
16200 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16201 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16202 (aarch64_combinez_be<mode>): New.
16203 (aarch64_combine<mode>): Convert to define_expand.
16204 (aarch64_combine_internal<mode>): New.
16205 (aarch64_simd_combine<mode>): Remove bogus RTL description.
16207 2014-07-04 Tom de Vries <tom@codesourcery.com>
16209 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16210 combination of earlyclobber and read/write modifiers.
16212 2014-07-04 Tom de Vries <tom@codesourcery.com>
16214 * config/aarch64/aarch64-simd.md
16215 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16217 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
16220 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16222 2014-07-04 Jakub Jelinek <jakub@redhat.com>
16224 PR middle-end/61654
16225 * cgraphunit.c (expand_thunk): Call free_dominance_info.
16227 PR tree-optimization/61684
16228 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16229 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16231 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16232 Kito Cheng <kito@0xlab.org>
16233 Monk Chiang <sh.chiang04@gmail.com>
16235 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16236 (nds32_symbol_load_store_p): Move to ...
16237 (nds32_fp_as_gp_check_available): Move to ...
16238 * config/nds32/nds32-fp-as-gp.c: ... here.
16239 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16240 extern declaration.
16242 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16243 Kito Cheng <kito@0xlab.org>
16244 Monk Chiang <sh.chiang04@gmail.com>
16246 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16247 (nds32_expand_store_multiple): Move to ...
16248 (nds32_expand_movmemqi): Move to ...
16249 * config/nds32/nds32-memory-manipulation.c: ... here.
16251 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16252 Kito Cheng <kito@0xlab.org>
16253 Monk Chiang <sh.chiang04@gmail.com>
16255 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16256 (nds32_output_casesi_pc_relative): Move to ...
16257 (nds32_output_casesi): Move to ...
16258 (nds32_mem_format): Move to ...
16259 (nds32_output_16bit_store): Move to ...
16260 (nds32_output_16bit_load): Move to ...
16261 (nds32_output_32bit_store): Move to ...
16262 (nds32_output_32bit_load): Move to ...
16263 (nds32_output_32bit_load_s): Move to ...
16264 (nds32_output_stack_push): Move to ...
16265 (nds32_output_stack_pop): Move to ...
16266 * config/nds32/nds32-md-auxiliary.c: ... here.
16268 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16269 Ling-Hua Tseng <uranus@tinlans.org>
16271 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16272 the purpose of this file.
16274 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16275 Kito Cheng <kito@0xlab.org>
16276 Monk Chiang <sh.chiang04@gmail.com>
16278 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16279 (nds32_address_cost): Move implementation to ...
16280 * config/nds32/nds32-cost.c: ... here.
16281 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16282 (nds32_address_cost_impl): Declare.
16284 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16285 Kito Cheng <kito@0xlab.org>
16286 Monk Chiang <sh.chiang04@gmail.com>
16288 * config/nds32/nds32.c
16289 (nds32_consecutive_registers_load_store_p): Move to ...
16290 (nds32_valid_multiple_load_store): Move to ...
16291 (nds32_valid_stack_push_pop): Move to ...
16292 (nds32_can_use_bclr_p): Move to ...
16293 (nds32_can_use_bset_p): Move to ...
16294 (nds32_can_use_btgl_p): Move to ...
16295 (nds32_can_use_bitci_p): Move to ...
16296 * config/nds32/nds32-predicates.c: ... here.
16298 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16299 Kito Cheng <kito@0xlab.org>
16300 Monk Chiang <sh.chiang04@gmail.com>
16302 * config/nds32/nds32.c
16303 (nds32_expand_builtin_null_ftype_reg): Move to ...
16304 (nds32_expand_builtin_reg_ftype_imm): Move to ...
16305 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16306 (nds32_init_builtins): Move implementation to ...
16307 (nds32_expand_builtin): Move implementation to ...
16308 * config/nds32/nds32-intrinsic.c: ... here.
16309 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16310 (nds32_expand_builtin_impl): Declare.
16312 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16313 Kito Cheng <kito@0xlab.org>
16314 Monk Chiang <sh.chiang04@gmail.com>
16316 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16317 (nds32_emit_section_tail_template): Move to ...
16318 (nds32_emit_isr_jmptbl_section): Move to ...
16319 (nds32_emit_isr_vector_section): Move to ...
16320 (nds32_emit_isr_reset_conten): Move to ...
16321 (nds32_check_isr_attrs_conflict): Move to ...
16322 (nds32_construct_isr_vectors_information): Move to ...
16323 (nds32_asm_file_start): Move implementation to ...
16324 (nds32_asm_file_end): Move implementation to ...
16325 * config/nds32/nds32-isr.c: ... here.
16326 * config/nds32/nds32-protos.h
16327 (nds32_check_isr_attrs_conflict): Declare.
16328 (nds32_construct_isr_vectors_information): Declare.
16329 (nds32_asm_file_start_for_isr): Declare.
16330 (nds32_asm_file_end_for_isr): Declare.
16332 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16333 Kito Cheng <kito@0xlab.org>
16334 Monk Chiang <sh.chiang04@gmail.com>
16336 * config.gcc (nds32*): Add new modules to extra_objs.
16337 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16338 (nds32be-*-*): Likewise.
16339 * config/nds32/nds32-cost.c: New file.
16340 * config/nds32/nds32-fp-as-gp.c: New file.
16341 * config/nds32/nds32-intrinsic.c: New file.
16342 * config/nds32/nds32-isr.c: New file.
16343 * config/nds32/nds32-md-auxiliary.c: New file.
16344 * config/nds32/nds32-memory-manipulation.c: New file.
16345 * config/nds32/nds32-pipelines-auxiliary.c: New file.
16346 * config/nds32/nds32-predicates.c: New file.
16347 * config/nds32/t-nds32: New file.
16349 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16351 PR tree-optimization/61682
16352 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16353 using cases and when one of the operands is equal to 1.
16355 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
16357 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16358 ashr<mode>3): Correct mode of operands[2].
16359 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16360 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16361 Correct mode of operands[2]. Fix split condition.
16363 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
16365 * arm.md (arch): Add armv6_or_vfpv3.
16366 (arch_enabled): Add test for the above.
16367 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16369 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16371 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16373 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16374 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16375 HWI 1 and negate the unsigned value.
16376 * expmed.c (expand_sdiv_pow2): For modes wider than word always
16377 use AND instead of shift.
16378 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16380 2014-07-03 Marek Polacek <polacek@redhat.com>
16382 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16383 (-fsanitize=float-divide-by-zero): Move to the table with
16384 -fsanitize=undefined suboptions.
16385 (-fsanitize=float-cast-overflow): Likewise.
16387 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
16389 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16390 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16393 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16395 * loop-invariant.c (struct invariant): Add a new member: eqno;
16396 (find_identical_invariants): Update eqno;
16397 (create_new_invariant): Init eqno;
16398 (get_inv_cost): Compute comp_cost with eqno;
16400 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16402 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16403 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16404 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16405 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16406 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16408 2014-07-02 Christian Bruel <christian.bruel@st.com>
16412 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16413 (make_preds_opaque): Delete.
16414 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16415 (commit_mode_sets): New function.
16416 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16417 Process all modes at once.
16418 * basic-block.h (pre_edge_lcm_avs): Declare.
16419 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16420 Call clear_aux_for_edges. Fix comments.
16421 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16422 (pre_edge_rev_lcm): Idem.
16423 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16425 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16426 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16428 * config/i386/i386.c (x96_emit_mode_set): Idem.
16429 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16430 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
16431 (fpscr_toggle) Disallow from delay slot.
16432 * target.def (emit_mode_set): Add prev_mode parameter.
16433 * doc/tm.texi: Regenerate.
16435 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16437 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16440 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16442 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16443 vtable_pointer_value_to_vtable): Constify.
16444 (contains_polymorphic_type_p): Declare.
16445 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16446 vtable_pointer_value_to_vtable): Constify.
16447 (contains_polymorphic_type_p): New predicate.
16448 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16450 (ipa_set_ancestor_jf): Likewise.
16451 (detect_type_change): Return false in easy cases.
16452 (compute_complex_assign_jump_func): Require type to contain
16454 (compute_known_type_jump_func): Likewise.
16456 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16458 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16460 (type_in_anonymous_namespace_p): Constify argument.
16461 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16462 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16463 (main_odr_variant): New function.
16464 (hash_type_name): Make static; update assert; do not ICE on
16466 (types_same_for_odr): Bring here from tree.c; simplify and remove
16467 old structural comparing code that doesn't work for templates.
16468 (odr_hasher::equal): Update assert.
16469 (add_type_duplicate): Return true when bases should be computed;
16470 replace incomplete loader by complete; do not output duplicated
16471 warnings; do not ICE on non-records; set odr_violated flag.
16472 (get_odr_type): Be ready to replace incomplete type by complete
16473 one; work on ODR variants instead of main variants; reorder item
16474 in array so bases have still smaller indexes.
16475 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16476 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16478 2014-07-01 Cary Coutant <ccoutant@google.com>
16480 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16482 (resolve_addr_in_expr): When replacing the rtx in a location list
16483 entry, get a new address table entry.
16484 (dwarf2out_finish): Call index_location_lists even if there are no
16485 addr_index_table entries yet.
16487 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16489 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16490 change for not being obvious.
16492 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16494 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16497 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16499 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16500 (vcagt_f64): Likewise.
16501 (vcale_f64): Likewise.
16502 (vcaled_f64): Likewise.
16503 (vcales_f32): Likewise.
16504 (vcalt_f64): Likewise.
16505 (vcaltd_f64): Likewise.
16506 (vcalts_f32): Likewise.
16508 2014-07-01 Marek Polacek <polacek@redhat.com>
16510 * doc/invoke.texi: Document -Wint-conversion.
16512 2014-07-01 Marek Polacek <polacek@redhat.com>
16515 * doc/invoke.texi: Document -Wincompatible-pointer-types.
16517 2014-07-01 Martin Liska <mliska@suse.cz>
16519 IPA REF alias refactoring
16520 * cgraph.h (iterate_direct_aliases): New function.
16521 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16522 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16523 FOR_EACH_ALIAS added.
16524 (cgraph_for_node_and_aliases): Likewise.
16525 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16526 * ipa-inline.c (reset_edge_caches): Likewise.
16527 (update_caller_keys): Likewise.
16528 * trans-mem.c (ipa_tm_execute): Likewise.
16529 *varpool.c (varpool_analyze_node): Likewise.
16530 (varpool_for_node_and_aliases): Likewise.
16531 * ipa-ref.h (first_alias): New function.
16532 (last_alias): Likewise.
16533 (has_aliases_p): Likewise.
16534 * ipa-ref.c (ipa_ref::remove_reference): Removal function
16535 is sensitive to IPA_REF_ALIASes.
16536 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16537 are put at the beginning of the list.
16538 (symtab_node::iterate_direct_aliases): New function.
16540 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16543 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16545 (write_ts_type_common_tree_pointers): Do not stream fields not set
16546 for incomplete types; do not stream duplicated fields for variants;
16547 sanity check that variant and type match.
16548 (write_ts_type_non_common_tree_pointers): Likewise.
16549 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16550 TYPE_SIZE whether type is complete.
16551 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16552 write_ts_type_common_tree_pointers
16553 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16555 2014-06-30 Joseph Myers <joseph@codesourcery.com>
16557 * var-tracking.c (add_stores): Return instead of asserting if old
16558 and new values for conditional store are the same.
16560 2014-06-30 Richard Henderson <rth@redhat.com>
16564 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16565 the cfg if there were any changes.
16566 * passes.def: Revert move of peephole2 after reorder_blocks;
16567 move duplicate_computed_gotos before peephole2.
16569 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
16571 * except.c (emit_note_eh_region_end): New helper function.
16572 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16573 emit EH_REGION_END note.
16574 * jump.c (cleanup_barriers): Do not split a call and its
16575 corresponding CALL_ARG_LOCATION note.
16577 2014-06-30 Jeff Law <law@redhat.com>
16579 PR tree-optimization/61607
16580 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16581 deeper into the SSA_NAME_VALUE chain.
16583 2014-06-30 Marek Polacek <polacek@redhat.com>
16585 * convert.c (convert_to_integer): Don't instrument conversions if the
16586 function has no_sanitize_undefined attribute.
16587 * ubsan.c: Don't run the ubsan pass if the function has
16588 no_sanitize_undefined attribute.
16590 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16592 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16593 -fsanitize=undefined suboptions.
16595 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
16597 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16598 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16599 against bigendian and adjust indices.
16601 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16603 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
16605 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
16608 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16609 Add alternative; make early clobber. Adjust both split patterns
16610 to use operand 0 as the working register.
16612 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16614 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16615 as ira_object_id_map might be NULL, or 1.
16617 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16619 * loop-invariant.c (get_inv_cost): Handle register class.
16620 (gain_for_invariant): Check the register pressure of the inv
16621 and its overlapped register class, other than all.
16623 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16625 * doc/invoke.texi (Optimize Options): Fix descriptions of
16626 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16628 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
16630 * doc/extend.texi (Function Attributes): Update 'naked' attribute
16633 2014-06-29 Tobias Grosser <tobias@grosser.es>
16636 * graphite-isl-ast-to-gimple.c: Add missing guards.
16638 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16640 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16641 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16642 * flag-types.h: Add new enum fgraphite_generator.
16643 * graphite-isl-ast-to-gimple.c: New.
16644 * graphite-isl-ast-to-gimple.h: New.
16645 * graphite.c (graphite_transform_loops): Add choice of Graphite
16646 code generator, which depends on flag_graphite_code_gen.
16648 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16650 * graphite-dependences.c (subtract_commutative_associative_deps):
16651 Add NULL checking of the following variables: must_raw_no_source,
16652 may_raw_no_source, must_war_no_source, may_war_no_source,
16653 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16654 must_war, may_war, must_waw, may_waw.
16656 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16658 * graphite-clast-to-gimple.c: gloog is renamed to
16659 graphite_regenerate_ast_cloog. gloog_error is renamed to
16660 graphite_regenerate_error.
16661 * graphite-clast-to-gimple.h: The definition of the struct
16662 bb_pbb_def is moved to graphite-htab.h.
16663 Add inclusion of the hash-table.h.
16664 * graphite-htab.h: The declaration of the function gloog is moved
16665 to graphite-clast-to-gimple.h and renamed to
16666 graphite_regenerate_ast_cloog.
16667 * graphite.c (graphite_transform_loops): gloog is renamed
16668 to graphite_regenerate_ast_cloog.
16670 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16672 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16674 (write_ts_type_common_tree_pointers): Do not stream fields not set
16675 for incomplete types; do not stream duplicated fields for variants;
16676 sanity check that variant and type match.
16677 (write_ts_type_non_common_tree_pointers): Likewise.
16678 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16679 TYPE_SIZE whether type is complete.
16680 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16681 write_ts_type_common_tree_pointers
16682 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16684 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16686 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16688 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16690 * tree-inline.c (remap_type_1): Do not duplicate fields
16691 that are shared in between type and its main variant.
16693 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16695 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16697 (ipa_set_ancestor_jf) Likewise.
16698 (check_stmt_for_type_change): Check that we work on main variant.
16699 (detect_type_change): Look into main variant.
16700 (compute_known_type_jump_func): Check that main variant has BINFO.
16702 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16704 * ipa-devirt.c (set_type_binfo): New function.
16705 (add_type_duplicate): Use it.
16706 (get_odr_type): Sanity check that binfos points to main variants.
16707 (get_class_context): Be sure the context's outer_type is main variant.
16708 (contains_type_p): Walk main variant.
16709 (get_polymorphic_call_info_for_decl): Set outer_type to be
16711 (get_polymorphic_call_info): Likewise.
16712 (possible_polymorphic_call_targets): Sanity check that we operate
16715 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16717 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16719 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16721 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16722 accidental change due to wide-int branch merge.
16724 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16726 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16727 compressed debug support.
16728 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16729 * configure: Regenerate.
16730 * config.in: Regenerate.
16731 * common.opt (compressed_debug_sections): New enum.
16732 (gz, gz=): New options.
16733 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16734 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16735 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16736 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16737 LINK_COMPRESS_DEBUG_SPEC.
16738 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16739 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16740 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16741 (Debugging Options): Document -gz[=type].
16743 2014-06-27 Martin Jambor <mjambor@suse.cz>
16746 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16747 args_to_skip, use those from node instead. Copy args_to_skip and
16748 combined_args_to_skip from node to the new thunk.
16749 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16750 (cgraph_create_virtual_clone): Moved computation of
16751 combined_args_to_skip...
16752 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16754 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
16756 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16757 redundant diagnostic machinary.
16759 2014-06-27 Richard Biener <rguenther@suse.de>
16761 * tree-ssa-math-opts.c (bswap_replace): Fix
16762 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16764 2014-06-27 Martin Liska <mliska@suse.cz>
16766 * gimple.h (gimple_location_safe): New function introduced.
16767 * cgraphunit.c (walk_polymorphic_call_targets): Usage
16768 of gimple_location_safe replaces gimple_location.
16769 (gimple_fold_call): Likewise.
16770 * ipa-devirt.c (ipa_devirt): Likewise.
16771 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16772 * ipa.c (walk_polymorphic_call_targets): Likewise.
16773 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16775 2014-06-27 Jakub Jelinek <jakub@redhat.com>
16777 PR tree-optimization/57233
16778 PR tree-optimization/61299
16779 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16781 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
16782 would be lowered to scalar shifts, check if corresponding
16783 shifts and vector BIT_IOR_EXPR are supported and don't lower
16784 or lower just to narrower vector type in that case.
16785 * expmed.c (expand_shift_1): Fix up handling of vector
16786 shifts and rotates.
16788 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
16791 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16793 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
16795 * doc/invoke.texi (-fsemantic-interposition): Document.
16796 * common.opt (fsemantic-interposition): New flag.
16797 * varasm.c (decl_replaceable_p): Use it.
16799 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16802 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16803 extraction other than index 3.
16805 2014-06-26 Teresa Johnson <tejohnson@google.com>
16807 * doc/invoke.texi: Fix typo.
16808 * dumpfile.c: Add support for documented -fdump-* options
16809 optimized/missed/note/optall.
16811 2014-06-26 Martin Jambor <mjambor@suse.cz>
16813 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16814 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16815 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16816 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16817 * opts.c (default_options_optimization): Set
16818 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16819 * doc/invoke.texi (allow-load-data-races)
16820 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16821 (allow-store-data-races): Document the new default.
16823 2014-06-26 Martin Jambor <mjambor@suse.cz>
16825 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16826 renamed to ipa_impossible_devirt_target. Fix typo.
16827 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16828 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16829 ipa_impossible_devirt_target.
16831 2014-06-26 Richard Biener <rguenther@suse.de>
16833 PR tree-optimization/61607
16834 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16835 explaining why we restrict copies on loop depth.
16836 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16838 (record_equivalences_from_phis): Instead add it here.
16840 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
16842 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16843 (LTO_WRAPPER_OBJS): New variable.
16844 (lto-wrapper$(exeext)): Use it.
16845 * collect2.c: Include "collect-utils.h".
16846 (verbose, debug): Remove variables.
16847 (at_file_supplied): No longer static.
16848 (tool_name): New variable.
16849 (do_wait, fork_execute, maybe_unlink): Don't declare.
16850 (tool_cleanup): No longer static.
16851 (notice): Remove function.
16852 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16853 fork_execute calls.
16854 (collect_wait, do_wait, collect_execute): Remove functions.
16855 (maybe_unlink): No longer static.
16856 * collect2.h (verbose, debug): Don't declare.
16857 (at_file_supplied): Declare.
16858 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
16860 (collect_execute): Replace with implementation from collect2, plus a
16861 new arg use_atfile. All callers changed.
16862 (collect_wait): Replace with implementation from collect2.
16863 (maybe_unlink_file): Remove function.
16864 (fork_execute): Replace with implementation from collect2, plus a
16865 new arg use_atfile. All callers changed.
16866 (do_wait): Add call to utils_cleanup to the error path.
16867 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16868 (tool_cleanup): Adjust declarations.
16869 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16870 * tlink.c: Include "collect-utils.h".
16871 (tlink_execute): New arg use_atfile. All callers changed.
16872 (tlink_init, tlink_execute): Remove declarations.
16874 * collect-utils.c (save_temps): New variable.
16875 (do_wait): Use it instead of debug. Use fatal_error.
16876 * collect-utils.h (save_temps): Declare.
16877 * collect2.c (verbose): Rename from vflag. All uses changed.
16878 (tool_cleanup): New function, copied from collect_atexit.
16879 (collect_atexit, handler): Just call it.
16880 * collect2.h (verbose): Declaration renamed from vflag.
16881 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16884 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16885 (lto-wrapper$(exeext)): Link with collect-utils.o.
16886 * collect-utils.c: New file.
16887 * collect-utils.h: New file.
16888 * lto-wrapper.c: Include "collect-utils.h".
16889 (args_name): Delete variable.
16890 (tool_name): New variable.
16891 (tool_cleanup): New function.
16892 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
16893 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16894 (fork_execute): Remove functions.
16896 2014-06-26 Nick Clifton <nickc@redhat.com>
16898 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16900 * doc/extend.texi (Function Attributes): Fix typo in description
16901 of RX vector attribute.
16903 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16905 * config.gcc (supported_defaults): Error when passing either
16906 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16908 2014-06-26 Richard Biener <rguenther@suse.de>
16910 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16911 propagating volatile pointers.
16913 2014-06-26 Richard Biener <rguenther@suse.de>
16915 PR tree-optimization/61607
16916 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16917 loop if we redirected its latch edge.
16918 (thread_block_1): Do not cancel loops prematurely.
16920 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
16922 * toplev.c (backend_init_target): Move init_emit_regs and
16924 (backend_init) ... here; skip ira_init_once and backend_init_target.
16925 (target_reinit) ... and here; clear
16926 this_target_rtl->lang_dependent_initialized.
16927 (lang_dependent_init_target): Clear
16928 this_target_rtl->lang_dependent_initialized;
16929 break out rtl initialization to ...
16930 (initialize_rtl): ... here; call also backend_init_target
16932 * toplev.h (initialize_rtl): New function.
16933 * function.c: Include toplev.h
16934 (init_function_start): Call initialize_rtl.
16935 * rtl.h (target_rtl): Add target_specific_initialized,
16936 lang_dependent_initialized.
16938 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
16939 Jakub Jelinek <jakub@redhat.com>
16941 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16943 2014-06-25 Tom de Vries <tom@codesourcery.com>
16945 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16947 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16949 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16950 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16951 Issue a strict overflow warning if appropriate.
16953 2014-06-25 Martin Liska <mliska@suse.cz>
16955 IPA REF refactoring
16956 * Makefile.in: Removed header file (ipa-ref-inline.h).
16957 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16959 (cgraph_speculative_call_info): Likewise.
16960 (cgraph_for_node_thunks_and_aliases): Likewise.
16961 (cgraph_for_node_and_aliases): Likewise.
16962 (verify_cgraph_node): Likewise.
16963 * cgraph.h: Batch of IPA REF functions become member functions of
16964 symtab_node: add_reference, maybe_add_reference, clone_references,
16965 clone_referring, clone_reference, find_reference,
16966 remove_stmt_references, remove_all_references,
16967 remove_all_referring, dump_references, dump_referring,
16968 has_alias_p, iterate_reference, iterate_referring.
16969 * cgraphbuild.c (record_reference): New IPA REF function used.
16970 (record_type_list): Likewise.
16971 (record_eh_tables): Likewise.
16972 (mark_address): Likewise.
16973 (mark_load): Likewise.
16974 (mark_store): Likewise.
16975 (pass_build_cgraph_edges): Likewise.
16976 (rebuild_cgraph_edge): Likewise.
16977 (cgraph_rebuild_references): Likewise.
16978 (pass_remove_cgraph_callee_edges): Likewise.
16979 * cgraphclones.c (cgraph_clone_node): Likewise.
16980 (cgraph_create_virtual_clone): Likewise.
16981 (cgraph_materialize_clone): Likewise.
16982 (cgraph_materialize_all_clones): Likewise.
16983 * cgraphunit.c (cgraph_reset_node): Likewise.
16984 (cgraph_reset_node): Likewise.
16985 (analyze_function): Likewise.
16986 (assemble_thunks_and_aliases): Likewise.
16987 (expand_function): Likewise.
16988 * ipa-comdats.c (propagate_comdat_group): Likewise.
16989 (enqueue_references): Likewise.
16990 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16991 (create_specialized_node): Likewise.
16992 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16993 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16994 * ipa-inline.c (reset_edge_caches): Likewise.
16995 (update_caller_keys): Likewise.
16996 (execute): Likewise.
16997 * ipa-prop.c (remove_described_reference): Likewise.
16998 (propagate_controlled_uses): Likewise.
16999 (ipa_edge_duplication_hook): Likewise.
17000 (ipa_modify_call_arguments): Likewise.
17001 * ipa-pure-const.c (propagate_pure_const): Likewise.
17002 * ipa-ref-inline.h: Header file removed, functions moved
17003 to symtab_node class.
17004 * ipa-ref.c (remove_reference): New class member function.
17005 (cannot_lead_to_return): New class member function.
17006 (referring_ref_list): Likewise.
17007 (referred_ref_list): Likewise.
17008 Rest of functions moved to symtab_node class.
17009 * ipa-ref.h: New member functions remove_reference,
17010 cannot_lead_to_return, referring_ref_list, referred_ref_list added
17012 ipa_ref_list class has new member functions: first_reference,
17013 first_referring, clear, nreferences.
17014 * ipa-reference.c (analyze_function): New IPA REF function used.
17015 (write_node_summary_p): Likewise.
17016 (ipa_reference_write_optimization_summary): Likewise.
17017 * ipa-split.c (split_function): Likewise.
17018 * ipa-utils.c (ipa_reverse_postorder): Likewise.
17019 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17020 (function_and_variable_visibility): Likewise.
17021 * ipa.c (has_addr_references_p): Likewise.
17022 (process_references): Argument type changed.
17023 (symtab_remove_unreachable_nodes): New IPA REF function used.
17024 (process_references): Likewise.
17025 (set_writeonly_bit): Likewise.
17026 * lto-cgraph.c: Implementation of new symtab_node member functions
17027 that uses new IPA REF functions.
17028 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17030 * lto-streamer-out.c (output_symbol_p): Likewise.
17031 * lto-streamer.h (referenced_from_this_partition_p): Argument type
17033 * symtab.c: Implementation of new IPA REF API.
17034 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17035 (ipa_tm_create_version): Likewise.
17036 (ipa_tm_execute): Likewise.
17037 * tree-emutls.c (gen_emutls_addr): Likewise.
17038 * tree-inline.c (copy_bb): Likewise.
17039 (delete_unreachable_blocks_update_callgraph): Likewise.
17040 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17041 (varpool_for_node_and_aliases): Likewise.
17043 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17045 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17047 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17050 * fold-const.c (fold_checksum_tree): Use a hash_table of const
17051 tree_node * instead of tree_node *.
17053 (print_fold_checksum): Likewise.
17054 (fold_check_failed): Likewise.
17055 (debug_fold_checksum): Likewise.
17056 (fold_build1_stat_loc): Likewise.
17057 (fold_build2_stat_loc): Likewise.
17058 (fold_build3_stat_loc): Likewise.
17059 (fold_build_call_array_loc): Likewise.
17061 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
17063 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17064 implementation with call to...
17065 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17067 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17070 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
17072 PR tree-optimization/57742
17073 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17074 after replacing the statement.
17076 2014-06-25 Nick Clifton <nickc@redhat.com>
17078 * config/v850/v850.c (GHS_default_section_names): Change to const
17080 (GHS_current_section_names): Likewise.
17081 (v850_insert_attributes): Do not build strings, just assign the
17082 names directly. Change the type of 'chosen_section' to const
17084 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17085 directly to the array entry.
17086 * config/v850/v850.h (GHS_default_section_names): Change to const
17088 (GHS_current_section_names): Likewise.
17090 2014-06-25 Jakub Jelinek <jakub@redhat.com>
17092 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17093 (LANG_HOOKS_DECLS): Add it.
17094 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17096 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17097 * langhooks.h (struct lang_hooks_for_decls): Add
17098 omp_clause_linear_ctor hook.
17099 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17100 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
17101 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
17102 combined simd loop use omp_clause_linear_ctor hook.
17104 2014-06-24 Cong Hou <congh@google.com>
17106 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17107 pattern recognition.
17108 (type_conversion_p): PROMOTION is true if it's a type promotion
17109 conversion, and false otherwise. Return true if the given expression
17110 is a type conversion one.
17111 * tree-vectorizer.h: Adjust the number of patterns.
17112 * tree.def: Add SAD_EXPR.
17113 * optabs.def: Add sad_optab.
17114 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17115 * expr.c (expand_expr_real_2): Likewise.
17116 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17117 * gimple.c (get_gimple_rhs_num_ops): Likewise.
17118 * optabs.c (optab_for_tree_code): Likewise.
17119 * tree-cfg.c (estimate_operator_cost): Likewise.
17120 * tree-ssa-operands.c (get_expr_operands): Likewise.
17121 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17122 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17123 * doc/generic.texi: Add document for SAD_EXPR.
17124 * doc/md.texi: Add document for ssad and usad.
17126 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17128 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17129 qualification in cast.
17131 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
17133 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17134 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17135 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17136 (tree_function_decl): ... here.
17137 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17138 streaming of vindex to ...
17139 (write_ts_function_decl_tree_pointers): ... here.
17140 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17141 Do not stream DECL_VINDEX.
17142 (lto_input_ts_function_decl_tree_pointers): Stream it here.
17144 2014-06-24 Catherine Moore <clm@codesourcery.com>
17145 Sandra Loosemore <sandra@codesourcery.com>
17147 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17148 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17149 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17151 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17153 * doc/invoke.texi (Warning Options): Remove duplicated
17154 -Wmaybe-uninitialized.
17156 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17158 PR tree-optimization/57742
17159 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17160 (handle_builtin_malloc, handle_builtin_memset): New functions.
17161 (strlen_optimize_stmt): Call them.
17162 * passes.def: Move strlen after loop+dom but before vrp.
17164 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17167 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17168 model family 6 CPU with has_longmode never use a CPU without
17171 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
17174 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17177 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17179 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17180 * dominance.c (iterate_fix_dominators): Use hash_map instead of
17182 * hash-map.h: New file.
17183 * ipa-comdats.c: Use hash_map instead of pointer_map.
17185 * lto-section-out.c: Adjust.
17186 * lto-streamer.h: Replace pointer_map with hash_map.
17187 * symtab.c (verify_symtab): Likewise.
17188 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17189 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17190 * tree-streamer.h: Likewise.
17191 * tree-streamer.c: Adjust.
17192 * pointer-set.h: Remove pointer_map.
17194 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17196 * hash-table.h: Add a template arg to choose between storing values
17197 and storing pointers to values, and then provide partial
17198 specializations for both.
17199 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17200 should store, not the type values should point to.
17201 * tree-into-ssa.c (var_info_hasher): Likewise.
17202 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17203 * tree-complex.c: Adjust.
17204 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17205 table instead of int_tree_map *.
17206 * tree-parloops.c: Adjust.
17207 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17208 type is being stored.
17209 * tree-vectorizer.c: Adjust.
17211 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17213 * hash-table.h: Remove a layer of indirection from hash_table so that
17214 it contains the hash table's data instead of a pointer to the data.
17215 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17216 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17217 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17218 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17219 fold-const.c, gcse.c, ggc-common.c,
17220 gimple-ssa-strength-reduction.c, gimplify.c,
17221 graphite-clast-to-gimple.c, graphite-dependences.c,
17222 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17223 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17224 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17225 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17226 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17227 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17228 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17229 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17230 tree-ssa-live.c, tree-ssa-loop-im.c,
17231 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17232 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17233 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17234 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17235 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17236 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17237 vtable-verify.c, vtable-verify.h: Adjust.
17239 2014-06-24 Richard Biener <rguenther@suse.de>
17241 PR tree-optimization/61572
17242 * tree-ssa-sink.c (statement_sink_location): Do not sink
17243 loads from hard registers.
17245 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17247 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17248 not mentioned in clauses use private clause if the iterator is
17249 declared in #pragma omp for simd, and when adding lastprivate
17250 instead, add it to the outer #pragma omp for too. Diagnose
17251 if the variable is private in outer context. For simd collapse > 1
17252 loops, replace all iterators with temporaries.
17253 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17254 same even in collapse > 1 loops.
17256 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17257 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17259 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17260 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17262 (gimplify_adjust_omp_clauses): Likewise.
17263 * omp-low.c (lower_rec_simd_input_clauses,
17264 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17265 safelen the same as safelen(1).
17266 * tree-nested.c (convert_nonlocal_omp_clauses,
17267 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
17268 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17269 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17270 Fixup handling of GIMPLE_OMP_TARGET.
17271 (convert_tramp_reference_stmt, convert_gimple_call): Handle
17274 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
17276 PR tree-optimization/61554
17277 * tree-ssa-propagate.c: Include "bitmap.h".
17278 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17279 properly update constructor/destructor.
17280 (substitute_and_fold_dom_walker::before_dom_children):
17281 Remove call to gimple_purge_dead_eh_edges, add bb->index to
17282 need_eh_cleaup instead.
17283 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17286 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17288 * varpool.c (dump_varpool_node): Dump used_by_single_function.
17289 * tree-pass.h (make_pass_ipa_single_use): New pass.
17290 * cgraph.h (used_by_single_function): New flag.
17291 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17293 * passes.def (pass_ipa_single_use): Scedule.
17294 * ipa.c (BOTTOM): New macro.
17295 (meet): New function
17296 (propagate_single_user): New function.
17297 (ipa_single_use): New function.
17298 (pass_data_ipa_single_use): New pass.
17299 (pass_ipa_single_use): New pass.
17300 (pass_ipa_single_use::gate): New gate.
17301 (make_pass_ipa_single_use): New function.
17303 2014-06-23 Kai Tietz <ktietz@redhat.com>
17306 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17307 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17309 2014-06-23 Richard Biener <rguenther@suse.de>
17311 * tree-ssa-loop.c (gate_loop): New function.
17312 (pass_tree_loop::gate): Call it.
17313 (pass_data_tree_no_loop, pass_tree_no_loop,
17314 make_pass_tree_no_loop): New.
17315 * tree-vectorizer.c: Include tree-scalar-evolution.c
17316 (pass_slp_vectorize::execute): Initialize loops and SCEV if
17318 (pass_slp_vectorize::clone): New method.
17319 * timevar.def (TV_TREE_NOLOOP): New.
17320 * tree-pass.h (make_pass_tree_no_loop): Declare.
17321 * passes.def (pass_tree_no_loop): New pass group with
17324 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
17327 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17328 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17330 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17332 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17333 "yes" where needed.
17335 2014-06-23 Alan Modra <amodra@gmail.com>
17338 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17339 to zero on debug statements.
17341 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17344 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17345 Ignore third operand if present by marking qualifier_internal.
17347 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17349 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17351 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17352 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17353 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17354 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17355 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17356 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17357 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17358 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17359 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17360 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17361 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17362 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17363 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17364 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17365 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17366 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17367 logic in GCC vector extensions
17369 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17370 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17371 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17372 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17373 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17374 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17375 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17376 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17377 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17378 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17380 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17382 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17385 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17386 (vget_low_s64): Use __GET_LOW macro.
17387 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17388 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17389 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17390 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17391 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17393 (vcombine_s64): Use GCC vector extensions; remove cast.
17394 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17395 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17396 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17397 Fix type signature; remove cast.
17399 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17402 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17404 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17406 (BUILTIN_VD1): New.
17407 (BUILTIN_VD_RE): Remove.
17408 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17409 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17410 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17411 variant but not df.
17412 (vreinterpretv1df*, vreinterpret*v1df): New.
17413 (vreinterpretdf*, vreinterpret*df): Remove.
17414 * config/aarch64/aarch64-simd.md (aarch64_create,
17415 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17416 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17418 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17419 (vcreate_f64): Remove cast, use v1df builtin.
17420 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17421 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17422 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17423 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17424 vmov_n_f64, vst1_f64): Use gcc vector extensions.
17425 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17426 add range check using __builtin_aarch64_im_lane_boundsi.
17427 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17428 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17429 type signature, use gcc vector extensions.
17430 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17431 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17432 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17433 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17434 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17435 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17436 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17437 vreinterpret_u64_f64): Use v1df builtin not df.
17439 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17441 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17444 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17446 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17449 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17451 * loop-invariant.c (pre_check_invariant_p): New function.
17452 (find_invariant_insn): Call pre_check_invariant_p.
17454 2014-06-22 Richard Henderson <rth@redhat.com>
17457 * compare-elim.c (struct comparison): Add eh_note.
17458 (find_comparison_dom_walker::before_dom_children): Don't eliminate
17459 a redundant comparison in a different EH region. Purge EH edges if
17462 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17464 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17465 (var_shift): Use it.
17466 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17467 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17468 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17469 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17470 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17471 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17472 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17473 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17474 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17475 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17476 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17477 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17478 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17479 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17480 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17481 *rotldi3_internal15be): Use the new attribute. Merge register and
17482 integer alternatives.
17484 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17486 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17487 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17488 split, *ashrdi3_internal3 and split): Delete, merge into...
17489 (ashr<mode>3): New expander.
17490 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17491 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
17493 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17495 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17496 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17497 *rotldi3_internal3 and split): Delete, merge into...
17498 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17499 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
17500 Use "rotlw" extended mnemonic.
17502 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17504 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17505 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17506 and split, *ashldi3_internal3 and split): Delete, merge into...
17507 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17508 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
17510 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17512 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17513 (lshrsi3, two anonymous define_insns and define_splits,
17514 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17515 *lshrdi3_internal3 and split): Delete, merge into...
17516 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17517 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
17519 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17521 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17522 Remove "O" alternative.
17524 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
17526 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17527 (mips_move_from_gpr_cost): Likewise.
17528 (mips_register_move_cost): Update accordingly.
17529 (mips_secondary_reload_class): Remove name of in_p.
17531 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
17534 * config/i386/i386.md (x86_64_shrd, x86_shrd,
17535 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17537 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17539 * config/nios2/nios2.c: Include "builtins.h".
17541 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17543 * cgraph.h (tls_model_names): New variable.
17544 * print-tree.c (print_node): Simplify.
17545 * varpool.c (tls_model_names): New variable.
17546 (dump_varpool_node): Output tls model.
17548 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17550 * ipa-visibility.c (function_and_variable_visibility): Disable
17551 temporarily local aliases for some targets.
17553 2014-06-20 Marek Polacek <polacek@redhat.com>
17555 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17556 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17557 into SANITIZE_UNDEFINED.
17558 * doc/invoke.texi: Describe -fsanitize=bounds.
17559 * gimplify.c (gimplify_call_expr): Add gimplification of internal
17560 functions created in the FEs.
17561 * internal-fn.c: Move "internal-fn.h" after "tree.h".
17562 (expand_UBSAN_BOUNDS): New function.
17563 * internal-fn.def (UBSAN_BOUNDS): New internal function.
17564 * internal-fn.h: Don't define internal functions here.
17565 * opts.c (common_handle_option): Add -fsanitize=bounds.
17566 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17567 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17568 * tree-core.h: Define internal functions here.
17569 (struct tree_base): Add ifn field.
17570 * tree-pretty-print.c: Include "internal-fn.h".
17571 (dump_generic_node): Handle functions without CALL_EXPR_FN.
17572 * tree.c (get_callee_fndecl): Likewise.
17573 (build_call_expr_internal_loc): New function.
17574 * tree.def (CALL_EXPR): Update description.
17575 * tree.h (CALL_EXPR_IFN): Define.
17576 (build_call_expr_internal_loc): Declare.
17577 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17579 (ubsan_type_descriptor): Change bool parameter to enum
17580 ubsan_print_style. Adjust the code. Add handling of
17582 (ubsan_expand_bounds_ifn): New function.
17583 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17584 (ubsan_build_overflow_builtin): Likewise.
17585 (instrument_bool_enum_load): Likewise.
17586 (ubsan_instrument_float_cast): Likewise.
17587 * ubsan.h (enum ubsan_print_style): New enum.
17588 (ubsan_expand_bounds_ifn): Declare.
17589 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
17591 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
17593 * config/rs6000/rs6000.md: Append `DONE' to preparation
17594 statements of `bswap' pattern splitters.
17596 2014-06-20 Tom de Vries <tom@codesourcery.com>
17598 * target.def (call_fusage_contains_non_callee_clobbers): Update
17600 * doc/tm.texi: Regenerate.
17602 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17603 Max Ostapenko <m.ostapenko@partner.samsung.com>
17606 * asan.c (instrument_strlen_call): Fixed instrumentation of
17609 2014-06-20 Martin Jambor <mjambor@suse.cz>
17612 * ipa-prop.c (impossible_devirt_target): New function.
17613 (try_make_edge_direct_virtual_call): Use it, also instead of
17616 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17617 Max Ostapenko <m.ostapenko@partner.samsung.com>
17620 * asan.c (build_check_stmt): Add condition.
17622 2014-06-20 Martin Jambor <mjambor@suse.cz>
17625 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17628 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17630 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17632 (VCONQ): Make comment more helpful.
17634 * config/aarch64/aarch64-simd.md
17635 (aarch64_sqdmulh_lane<mode>):
17636 Use VCOND for operands 2. Update lane checking and flipping logic.
17637 (aarch64_sqrdmulh_lane<mode>): Likewise.
17638 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17639 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17640 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17641 attribute of operand 3 to VCOND.
17642 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17643 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17644 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17645 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17646 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17647 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17649 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17650 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17651 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17652 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17653 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17654 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17655 operand to VCOND. Update lane flipping and bounds checking logic.
17656 (aarch64_sqdmlal2_lane<mode>): Likewise.
17657 (aarch64_sqdmlsl_lane<mode>): Likewise.
17658 (aarch64_sqdmull_lane<mode>): Likewise.
17659 (aarch64_sqdmull2_lane<mode>): Likewise.
17660 (aarch64_sqdmlal_laneq<mode>):
17661 Replace VCON usage with VCONQ.
17662 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17663 (aarch64_sqdmlal2_laneq<mode>): Emit
17664 aarch64_sqdmlal2_laneq<mode>_internal insn.
17665 Replace VCON with VCONQ.
17666 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17667 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17668 (aarch64_sqdmull_laneq<mode>): Emit
17669 aarch64_sqdmull_laneq<mode>_internal insn.
17670 Replace VCON with VCONQ.
17671 (aarch64_sqdmull2_laneq<mode>): Emit
17672 aarch64_sqdmull2_laneq<mode>_internal insn.
17673 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17674 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17675 of 3rd argument to int16x4_t.
17676 (vqdmlalh_lane_s16): Likewise.
17677 (vqdmlslh_lane_s16): Likewise.
17678 (vqdmull_high_lane_s16): Likewise.
17679 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17680 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17681 (vqdmlsl_lane_s16): Likewise.
17682 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17683 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17684 (vqdmlals_lane_s32): Likewise.
17685 (vqdmlsls_lane_s32): Likewise.
17686 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17687 (vqdmulls_lane_s32): Likewise.
17688 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17689 (vqdmlsl_lane_s32): Likewise.
17690 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17691 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17692 (vqrdmulhh_lane_s16): Likewise.
17693 (vqdmlsl_high_lane_s16): Likewise.
17694 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17695 (vqdmlsl_high_lane_s32): Likewise.
17696 (vqrdmulhs_lane_s32): Likewise.
17698 2014-06-20 Tom de Vries <tom@codesourcery.com>
17700 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17701 get_call_reg_set_usage.
17703 2014-06-20 Tom de Vries <tom@codesourcery.com>
17705 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17706 it contains all call_used_regs.
17708 2014-06-20 Tom de Vries <tom@codesourcery.com>
17710 * final.c (collect_fn_hard_reg_usage): Add and use variable
17711 function_used_regs.
17713 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17715 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17716 (set_init_priority, get_init_priority, set_fini_priority,
17717 get_fini_priority): New methods.
17718 * tree.c (init_priority_for_decl): Remove.
17719 (init_ttree): Do not initialize init priority.
17720 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17721 (decl_priority_info): Remove.
17722 (decl_init_priority_insert): Rewrite.
17723 (decl_fini_priority_insert): Rewrite.
17724 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17725 tree_priority_map_marked_p): Remove.
17726 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17727 * lto-streamer-out.c (hash_tree): Do not hash priorities.
17728 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17729 not output priorities.
17730 (pack_ts_function_decl_value_fields): Likewise.
17731 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17732 not input priorities.
17733 (unpack_ts_function_decl_value_fields): Likewise.
17734 * symtab.c (symbol_priority_map): Declare.
17735 (init_priority_hash): Declare.
17736 (symtab_unregister_node): Unregister from priority hash, too.
17737 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17739 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17740 (symbol_priority_info): New function.
17741 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17743 * tree-core.h (tree_priority_map): Remove.
17745 2014-06-20 Jakub Jelinek <jakub@redhat.com>
17747 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17748 0xff to uint64_t before shifting it up.
17750 2014-06-20 Julian Brown <julian@codesourcery.com>
17751 Chung-Lin Tang <cltang@codesourcery.com>
17753 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17754 TARGET_THUMB1_ONLY. Add comments.
17756 2014-06-19 Tom de Vries <tom@codesourcery.com>
17758 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17759 return type to void.
17760 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17762 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17764 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17765 as "move", from depends_on.
17767 2014-06-19 Terry Guo <terry.guo@arm.com>
17769 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17772 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17774 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17776 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
17778 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
17781 * config/sh/sh.c (prepare_move_operands): Don't process TLS
17782 addresses here if reload in progress or completed.
17784 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17786 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17787 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17788 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17789 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17790 (mips_register_priority): New function that implements the target
17791 hook TARGET_REGISTER_PRIORITY.
17792 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17793 (mips_lra_p): Likewise for TARGET_LRA_P.
17794 (TARGET_REGISTER_PRIORITY): Define macro.
17795 (TARGET_SPILL_CLASS): Likewise.
17796 (TARGET_LRA_P): Likewise.
17797 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17799 (REG_CLASS_NAMES): Likewise.
17800 (REG_CLASS_CONTENTS): Likewise.
17801 (BASE_REG_CLASS): Use M16_SP_REGS.
17802 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17803 New set attribute to enable alternatives depending on the register
17805 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17806 (*lea64): Disable pattern for MIPS16.
17807 * config/mips/mips.opt (mlra): New option.
17809 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17811 * lra-constraints.c (base_to_reg): New function.
17812 (process_address): Use new function.
17814 2014-06-18 Tom de Vries <tom@codesourcery.com>
17816 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17817 * config/aarch64/aarch64.c
17818 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17819 (aarch64_emit_call_insn): New function.
17820 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17822 * config/aarch64/aarch64.md (define_expand "call_internal")
17823 (define_expand "call_value_internal", define_expand "sibcall_internal")
17824 (define_expand "sibcall_value_internal"): New.
17825 (define_expand "call", define_expand "call_value")
17826 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17827 expand variant and aarch64_emit_call_insn.
17829 2014-06-18 Radovan Obradovic <robradovic@mips.com>
17830 Tom de Vries <tom@codesourcery.com>
17832 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17833 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17835 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
17836 clobbers to CALL_INSN_FUNCTION_USAGE.
17837 (define_expand "sibcall_internal")
17838 (define_expand "sibcall_value_internal"): New.
17839 (define_expand "call", define_expand "call_value"): Add argument to
17840 arm_emit_call_insn.
17841 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17842 (define_expand "sibcall_value"): Use sibcall_value_internal and
17843 arm_emit_call_insn.
17845 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17847 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17849 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17851 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17854 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17856 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17857 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17858 annotations. Fix DWARF information.
17860 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17862 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17863 __udivmoddi4, and fixups for negative operands.
17865 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17867 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17869 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17871 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17874 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17876 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17879 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17881 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17882 describing register usage on function entry and exit.
17884 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17886 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17887 (__aeabi_ldivmod): Fix whitespace.
17889 2014-06-18 Andreas Schwab <schwab@suse.de>
17891 * doc/md.texi (Standard Names): Use @itemx for grouped items.
17892 Remove blank line after @item.
17894 2014-06-18 Richard Henderson <rth@redhat.com>
17897 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17899 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17901 * config/arm/arm.c (neon_vector_mem_operand): Allow register
17902 POST_MODIFY for neon loads and stores.
17903 (arm_print_operand): Output post-index register for neon loads and
17906 2014-06-18 Richard Biener <rguenther@suse.de>
17908 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17910 2014-06-18 Richard Biener <rguenther@suse.de>
17912 * tree-pass.h (make_pass_dce_loop): Remove.
17913 * passes.def: Replace pass_dce_loop with pass_dce.
17914 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17915 changed free niter estimates and reset the scev cache.
17916 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17917 make_pass_dce_loop): Remove.
17918 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17919 (fini_copy_prop): Return whether something changed. Always
17920 let substitute_and_fold perform DCE and free niter estimates
17921 and reset the scev cache if so.
17922 (execute_copy_prop): If sth changed schedule cleanup-cfg.
17923 (pass_data_copy_prop): Do not unconditionally schedule
17924 cleanup-cfg or update-ssa.
17926 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17928 PR tree-optimization/61518
17929 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17930 reduction var is used in reduction stmt or phi-function only.
17932 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17934 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17936 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17938 PR tree-optimization/61517
17939 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17940 whose rhs's first tree is the source expression instead of the
17942 (find_bswap_or_nop): Likewise.
17943 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17944 gimple stmt whose rhs's first tree is the source. In the memory source
17945 case, move the stmt to be replaced close to one of the original load to
17946 avoid the problem of a store between the load and the stmt's original
17948 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17951 2014-06-18 Andreas Schwab <schwab@suse.de>
17953 PR rtl-optimization/54555
17954 * postreload.c (move2add_use_add2_insn): Substitute
17955 STRICT_LOW_PART only if it is cheaper.
17957 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
17959 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17960 Do not use unspec as call operand. Use memory_operand instead of
17961 memory_nox32_operand and add "m" operand constraint. Disable
17962 pattern for TARGET_X32.
17963 (*sibcall_pop_memory): Ditto.
17964 (*sibcall_value_memory): Ditto.
17965 (*sibcall_value_pop_memory): Ditto.
17966 (sibcall peepholes): Merge SImode and DImode patterns using
17967 W mode iterator. Use memory_operand instead of memory_nox32_operand.
17968 Disable pattern for TARGET_X32. Check if eliminated register is
17969 really dead after call insn. Generate call RTX without unspec operand.
17970 (sibcall_value peepholes): Ditto.
17971 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
17972 instead of memory_nox32_operand. Check if eliminated register is
17973 really dead after call insn. Generate call RTX without unspec operand.
17974 (sibcall_value_pop peepholes): Ditto.
17975 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17977 2014-06-18 Terry Guo <terry.guo@arm.com>
17980 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17983 2014-06-18 Olivier Hainque <hainque@adacore.com>
17985 * tree-core.h (tree_block): Add an "end_locus" field, allowing
17986 memorization of the end of block source location.
17987 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17988 * gimplify.c (gimplify_bind_expr): Propagate the block start and
17989 end source location info we have on the block entry/exit code we
17992 2014-06-18 Richard Biener <rguenther@suse.de>
17994 * common.opt (fssa-phiopt): New option.
17995 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17997 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17998 * doc/invoke.texi (-fssa-phiopt): Document.
18000 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18002 * genattrtab.c (n_bypassed): New variable.
18003 (process_bypasses): Initialise n_bypassed.
18004 Count number of bypassed reservations.
18005 (make_automaton_attrs): Allocate space for bypassed reservations
18006 rather than number of bypasses.
18008 2014-06-18 Richard Biener <rguenther@suse.de>
18010 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
18011 we propagated anything.
18012 (substitute_and_fold_dom_walker::before_dom_children): Something
18013 changed if we propagated into PHI arguments.
18014 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
18017 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
18019 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18021 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18022 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18023 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18024 Introduces alternative way of loads group permutaions.
18025 (vect_transform_grouped_load): Try alternative way of permutations.
18027 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18029 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18030 changed in ORT_TARGET region, don't jump to do_outer.
18031 (struct gimplify_adjust_omp_clauses_data): New type.
18032 (gimplify_adjust_omp_clauses_1): Adjust for data being
18033 a struct gimplify_adjust_omp_clauses_data pointer instead
18034 of tree *. Pass pre_p as a new argument to
18035 lang_hooks.decls.omp_finish_clause hook.
18036 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18037 splay_tree_foreach to pass both list_p and pre_p.
18038 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18039 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18040 gimplify_adjust_omp_clauses callers.
18041 * langhooks.c (lhd_omp_finish_clause): New function.
18042 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18043 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18044 * langhooks.h (struct lang_hooks_for_decls): Add a new
18045 gimple_seq * argument to omp_finish_clause hook.
18046 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18047 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18048 (scan_omp_parallel, lower_omp_for): When adding
18049 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18050 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18051 * tree-nested.c (convert_nonlocal_omp_clauses,
18052 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18053 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18055 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
18057 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18058 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18060 2014-06-17 Xinliang David Li <davidxl@google.com>
18062 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18063 * passes.c (pass_init_dump_file): Do not set initialize
18064 flag to false unconditionally.
18066 2014-06-17 Richard Biener <rguenther@suse.de>
18068 * genopinit.c (main): Use vec<>::qsort method.
18069 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18071 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18073 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
18075 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18076 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18077 (mips_move_to_gpr_cost): Remove ST_REGS case.
18078 (mips_move_from_gpr_cost): Likewise.
18079 (mips_register_move_cost): Likewise.
18080 (mips_secondary_reload_class): Likewise.
18082 2014-06-17 Richard Biener <rguenther@suse.de>
18084 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18085 (pass_all_optimizations): Move 3rd copy-prop pass from after
18086 fre to before ifcombine/phiopt.
18088 2014-06-17 Richard Biener <rguenther@suse.de>
18090 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18091 and allow all blocks to be forwarders.
18093 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
18096 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18097 variable 'size'; calculate 'size' right in the front; use
18098 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18099 pcum->aapcs_stack_words.
18101 2014-06-17 Nick Clifton <nickc@redhat.com>
18103 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18104 (umulhi3, mulsidi3, umulsidi3): Likewise.
18106 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
18108 PR middle-end/61508
18109 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18110 check for section name.
18112 2014-06-17 Richard Biener <rguenther@suse.de>
18114 * tree-ssa-propagate.c: Include domwalk.h.
18115 (substitute_and_fold): Outline main worker into a domwalker ...
18116 (substitute_and_fold_dom_walker::before_dom_children): ... here.
18117 Schedule stmts we can fully propagate for removal. Remove
18119 (substitute_and_fold): Apply a dominator walk to perform
18120 substitution. Process stmts scheduled for removal here.
18122 2014-06-17 Richard Biener <rguenther@suse.de>
18124 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18125 of PHI node moving.
18127 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
18129 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18130 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18131 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18132 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18133 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18135 (get_fpscr) : Likewise.
18137 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18139 PR rtl-optimization/61325
18140 * lra-constraints.c (valid_address_p): Add forward declaration.
18141 (simplify_operand_subreg): Check address validity before and after
18142 alter_reg of memory subreg.
18144 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
18146 * config/i386/i386.c (decide_alg): Correctly handle
18147 maximum size of stringop algorithm.
18149 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18151 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18153 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18155 PR rtl-optimization/61522
18156 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18158 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
18161 * symtab.c (symtab_node::reset_section): New method.
18162 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18164 * cgraph.h (reset_section): Declare.
18165 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18166 do not consider comdat locals.
18167 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18169 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18170 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18171 reset sections of symbols dragged out of the comdats.
18172 (function_and_variable_visibility): Reset sections of
18175 2014-06-16 Richard Biener <rguenther@suse.de>
18177 PR tree-optimization/61482
18178 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18179 [-INF(OVF), +INF(OVF)] range.
18181 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18183 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18184 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18185 handling 32-bit multiplication.
18187 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
18189 PR middle-end/61430
18190 * lra-lives.c (process_bb_lives): Skip creating copy during
18191 insn scan when src/dest has constrained to same regno.
18193 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18195 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18196 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18198 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18200 * asan.c (check_func): New function.
18201 (maybe_create_ssa_name): Likewise.
18202 (build_check_stmt_with_calls): Likewise.
18203 (use_calls_p): Likewise.
18204 (report_error_func): Change interface.
18205 (build_check_stmt): Allow non-integer lengths; add support
18207 (asan_instrument): Likewise.
18208 (instrument_mem_region_access): Moved code to build_check_stmt.
18209 (instrument_derefs): Likewise.
18210 (instrument_strlen_call): Likewise.
18211 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18212 * doc/invoke.texi: Describe new parameter.
18213 * params.def: Define new parameter.
18214 * params.h: Likewise.
18215 * sanitizer.def: Describe new builtins.
18217 2014-06-16 Richard Biener <rguenther@suse.de>
18219 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18220 Make all defs available at the end.
18221 (eliminate): If we remove a PHI node schedule cfg-cleanup.
18223 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18226 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18228 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
18231 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18232 initialization. Replace remaining use of uid.
18234 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18236 * c-family/c-common.c (handle_tls_model_attribute): Use
18237 set_decl_tls_model.
18238 * c-family/c-common.c (handle_tls_model_attribute): Use
18239 set_decl_tls_model.
18240 * cgraph.h (struct varpool_node): Add tls_model.
18241 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18242 * tree.h (DECL_TLS_MODEL): Update.
18243 (DECL_THREAD_LOCAL_P): Check that variable is static.
18244 (decl_tls_model): Declare.
18245 (set_decl_tls_model): Declare.
18246 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18247 set symbol prorperties.
18248 (get_emutls_init_templ_addr): Cleanup.
18249 (new_emutls_decl): Update.
18250 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18251 (lto_input_varpool_node): Likewise.
18252 * lto-streamer-out.c (hash_tree): Likewise.
18253 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18254 not stream DECL_TLS_MODEL.
18255 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18256 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18258 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18260 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18262 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18264 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18265 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18267 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18268 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18269 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18270 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18271 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18272 (df_get_artificial_defs, df_get_artificial_uses)
18273 (df_single_def, df_single_use): Update accordingly.
18274 (df_refs_chain_dump): Take the first element in a linked list as
18275 parameter, rather than a pointer to an array of pointers.
18276 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18277 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18278 (df_chain_create_bb_process_use): Likewise.
18279 (df_md_bb_local_compute_process_def): Likewise.
18280 * fwprop.c (process_defs, process_uses): Likewise.
18281 (register_active_defs, update_uses): Likewise.
18282 (forward_propagate_asm): Update for new df_ref linking.
18283 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18284 (df_null_ref_rec, df_null_mw_rec): Likewise.
18285 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18287 (df_scan_free_bb_info): Remove check for null artificial_defs.
18288 (df_install_ref_incremental): Adjust for new df_ref linking.
18289 Use a single-element insertion rather than a full sort.
18290 (df_ref_chain_delete_du_chain): Take the first element
18291 in a linked list as parameter, rather than a pointer to an array of
18293 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18294 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18295 (df_insn_info_delete): Remove check for null defs and call to
18296 df_scan_free_mws_vec.
18297 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18298 null rather than df_null_*_rec.
18299 (df_insn_rescan_debug_internal): Likewise, and update null
18300 checks in the same way. Remove check for null defs.
18301 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18302 Move a single element rather doing a full sort.
18303 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18305 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
18306 Initialize df_ref and df_mw_hardreg lists to null rather than
18308 (df_ref_compare): Take df_refs as parameter, transferring the
18309 old interface to...
18310 (df_ref_ptr_compare): ...this new function.
18311 (df_sort_and_compress_refs): Update accordingly.
18312 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18313 old interface to...
18314 (df_mw_ptr_compare): ...this new function.
18315 (df_sort_and_compress_mws): Update accordingly.
18316 (df_install_refs, df_install_mws): Return a linked list rather than
18317 an array of pointers.
18318 (df_refs_add_to_chains): Assert that old lists are empty rather
18320 (df_insn_refs_verify): Don't handle null defs speciailly.
18321 * web.c (union_match_dups): Update for new df_ref linking.
18323 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18325 * df.h (df_ref_create, df_ref_remove): Delete.
18326 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18327 (df_ref_remove): Likewise.
18329 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18331 * df.h (df_single_def, df_single_use): New functions.
18332 * ira.c (find_moveable_pseudos): Use them.
18334 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18336 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18337 * df-problems.c (df_note_bb_compute): Use it.
18338 * regstat.c (regstat_bb_compute_ri): Likewise.
18340 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18342 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18343 * cse.c (cse_extended_basic_block): Use them.
18344 * dce.c (mark_artificial_use): Likewise.
18345 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18346 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18347 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18348 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18349 (df_simulate_initialize_backwards): Likewise.
18350 (df_simulate_finalize_backwards): Likewise.
18351 (df_simulate_initialize_forwards): Likewise.
18352 (df_md_simulate_artificial_defs_at_top): Likewise.
18353 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18354 * regrename.c (init_rename_info): Likewise.
18355 * regstat.c (regstat_bb_compute_ri): Likewise.
18356 (regstat_bb_compute_calls_crossed): Likewise.
18358 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18360 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18361 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18362 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18363 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18364 * combine.c (create_log_links): Likewise.
18365 * compare-elim.c (find_flags_uses_in_insn): Likewise.
18366 (try_eliminate_compare): Likewise.
18367 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18368 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18369 (remove_reg_equal_equiv_notes_for_defs): Likewise.
18370 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18371 (word_dce_process_block, dce_process_block): Likewise.
18372 * ddg.c (def_has_ccmode_p): Likewise.
18373 * df-core.c (df_bb_regno_first_def_find): Likewise.
18374 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18375 * df-problems.c (df_rd_simulate_one_insn): Likewise.
18376 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18377 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18378 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18379 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18380 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18381 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18382 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18383 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18384 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18385 * fwprop.c (local_ref_killed_between_p): Likewise.
18386 (all_uses_available_at, free_load_extend): Likewise.
18387 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18388 * hw-doloop.c (scan_loop): Likewise.
18389 * ifcvt.c (dead_or_predicable): Likewise.
18390 * init-regs.c (initialize_uninitialized_regs): Likewise.
18391 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18392 (process_bb_node_lives): Likewise.
18393 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18394 (find_moveable_pseudos): Likewise.
18395 * loop-invariant.c (check_dependencies, record_uses): Likewise.
18396 * recog.c (peep2_find_free_register): Likewise.
18397 * ree.c (get_defs): Likewise.
18398 * regstat.c (regstat_bb_compute_ri): Likewise.
18399 (regstat_bb_compute_calls_crossed): Likewise.
18400 * sched-deps.c (find_inc, find_mem): Likewise.
18401 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18402 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18403 * shrink-wrap.c (requires_stack_frame_p): Likewise.
18404 (prepare_shrink_wrap): Likewise.
18405 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18406 * web.c (union_defs, pass_web::execute): Likewise.
18407 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18408 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18410 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
18412 * lra-assign.c (assign_by_spills): Add code to assign vector regs
18413 to inheritance pseudos.
18414 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18416 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
18419 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18420 (BU_MISC_2): Rename to ...
18421 (BU_LDBL128_2): ... this.
18422 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18423 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18424 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18425 RS6000_BTM_LDBL128.
18426 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18427 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18428 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18429 (unpacktf_1): Likewise.
18430 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18431 (__builtin_longdouble_dw1): Likewise.
18432 * doc/sourcebuild.texi (longdouble128): Document.
18434 2014-06-13 Jeff Law <law@redhat.com>
18436 PR rtl-optimization/61094
18437 PR rtl-optimization/61446
18438 * ree.c (combine_reaching_defs): Get the mode for the copy from
18439 the extension insn rather than the defining insn.
18441 2014-06-13 Dehao Chen <dehao@google.com>
18443 * dwarf2out.c (add_linkage_name): Emit more linkage name.
18445 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
18447 * doc/install.texi (--enable-linker-plugin-configure-flags)
18448 (--enable-linker-plugin-flags): Document new flags.
18450 2014-06-13 Martin Jambor <mjambor@suse.cz>
18453 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18454 cache_token if returning early.
18456 2014-06-13 Nick Clifton <nickc@redhat.com>
18458 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18459 requested alignment is active.
18460 (LABEL_ALIGN): Likewise.
18461 (LOOP_ALIGN): Likewise.
18463 2014-06-13 Richard Biener <rguenther@suse.de>
18465 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18466 Rewrite to propagate the VN result into all uses where
18467 possible and to remove stmts becoming dead because of that.
18468 (eliminate): Generalize stmt removal handling, remove in
18469 reverse dominator order to support proper debug stmt
18470 generation. Update stmts before removing stmts.
18471 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18473 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18475 PR tree-optimization/61375
18476 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18477 symbolic number cannot be represented in an uint64_t.
18478 (find_bswap_or_nop_1): Likewise.
18480 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18482 * symtab.c (symtab_node::reset_section): New method.
18483 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18485 * cgraph.h (reset_section): Declare.
18486 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18487 do not consider comdat locals.
18488 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18490 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18491 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18492 reset sections of symbols dragged out of the comdats.
18493 (function_and_variable_visibility): Reset sections of
18496 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18498 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18499 to use symtab and decl_binds_to_current_def_p
18500 * tree-vectorizer.c (increase_alignment): Increase alignment
18501 of alias target, too.
18503 2014-06-12 Jakub Jelinek <jakub@redhat.com>
18505 PR middle-end/61486
18506 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18507 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18508 if outer combined construct is distribute.
18509 (gimplify_omp_for): For OMP_DISTRIBUTE set
18510 gimplify_omp_ctxp->distribute.
18511 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18512 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18513 mapping into decl map.
18515 2014-06-12 Jason Merrill <jason@redhat.com>
18517 * common.opt (fabi-version): Change default to 0.
18519 2014-06-12 Jason Merrill <jason@redhat.com>
18521 * toplev.c (process_options): Reject -fabi-version=1.
18523 2014-06-12 Jeff Law <law@redhat.com>
18525 PR tree-optimization/61009
18526 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18527 value when we stop processing a block due to problematic PHIs.
18529 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
18531 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18532 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18533 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18534 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18535 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18536 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18537 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18538 are not in the spec.
18540 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
18543 * config/aarch64/aarch64-modes.def: Add V1DFmode.
18544 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18547 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
18549 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18551 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
18554 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18555 loading from address spaces.
18557 2014-06-12 Martin Liska <mliska@suse.cz>
18560 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18561 statement is reachable.
18563 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18565 * symtab.c (section_hash): New hash.
18566 (symtab_unregister_node): Clear section before freeing.
18567 (hash_section_hash_entry): New haser.
18568 (eq_sections): New function.
18569 (symtab_node::set_section_for_node): New method.
18570 (set_section_1): Update.
18571 (symtab_node::set_section): Take string instead of tree as parameter.
18572 (symtab_resolve_alias): Update.
18573 * cgraph.h (section_hash_entry_d): New structure.
18574 (section_hash_entry): New typedef.
18575 (cgraph_node): Change comdat_group_ to x_comdat_group,
18576 change section_ to x_section and turn into section_hash_entry;
18577 update accestors; put set_section_for_node offline.
18578 * tree.c (decl_section_name): Turn into string.
18579 (set_decl_section_name): Change parameter to be string.
18580 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18581 * sdbout.c (sdbout_one_type): Update.
18582 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18583 * varasm.c (IN_NAMED_SECTION, get_named_section,
18584 resolve_unique_section, hot_function_section, get_named_text_section,
18585 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18586 make_decl_rtl, default_unique_section): Update.
18587 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18588 (c6x_elf_unique_section): Update.
18589 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18590 * config/pa/pa.c (pa_function_section): Update.
18591 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18592 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18593 * config/arc/arc.c (arc_in_small_data_p): Update.
18594 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18595 * config/mcore/mcore.c (mcore_unique_section): Update.
18596 * config/mips/mips.c (mips16_build_function_stub): Update.
18597 (mips16_build_call_stub): Update.
18598 (mips_function_rodata_section): Update.
18599 (mips_in_small_data_p): Update.
18600 * config/score/score.c (score_in_small_data_p): Update.
18601 * config/rx/rx.c (rx_in_small_data): Update.
18602 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18603 (rs6000_xcoff_asm_named_section): Update.
18604 (rs6000_xcoff_unique_section): Update.
18605 * config/frv/frv.c (frv_string_begins_with): Update.
18606 (frv_in_small_data_p): Update.
18607 * config/v850/v850.c (v850_encode_data_area): Update.
18608 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18609 (bfin_handle_l1_data_attribute): Update.
18610 (bfin_handle_l2_attribute): Update.
18611 * config/mep/mep.c (mep_unique_section): Update.
18612 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18614 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18615 (h8300_handle_tiny_data_attribute): Update.
18616 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18617 (m32r_in_small_data_p): Update.
18618 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18619 * config/i386/i386.c (ix86_in_large_data_p): Update.
18620 * config/i386/winnt.c (i386_pe_unique_section): Update.
18621 * config/darwin.c (darwin_function_section): Update.
18622 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18623 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18624 (new_emutls_decl): Update.
18625 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18626 input_varpool_node): Update.
18627 (ead_string_cst): Turn to ...
18628 (read_string): ... this one.
18629 * dwarf2out.c (secname_for_decl): Update.
18630 * asan.c (asan_protect_global): Update.
18632 2014-06-11 DJ Delorie <dj@redhat.com>
18634 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18636 * config/rx/rx.c (rx_option_override): Likewise.
18637 (rx_align_for_label): Likewise.
18639 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18641 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
18643 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18646 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18648 * common.md: New file.
18649 * doc/md.texi: Update description of generic, machine-independent
18651 * config/s390/constraints.md (e): Delete.
18652 * Makefile.in (md_file): Include common.md.
18653 * config/m32c/t-m32c (md_file): Likewise.
18654 * genpreds.c (general_mem): New array.
18655 (generic_constraint_letters): Remove constraints now defined by
18657 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18658 Allow the first character to be '<' or '>' as well.
18659 * genoutput.c (general_mem): New array.
18660 (indep_constraints): Remove constraints now defined by common.md.
18661 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18662 Remove special handling of 'm'.
18663 * ira-costs.c (record_reg_classes): Remove special handling of
18664 constraints now defined by common.md.
18665 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18666 * ira-lives.c (single_reg_class): Likewise.
18667 (ira_implicitly_set_insn_hard_regs): Likewise.
18668 * lra-constraints.c (reg_class_from_constraints): Likewise.
18669 (process_alt_operands, process_address, curr_insn_transform): Likewise.
18670 * postreload.c (reload_cse_simplify_operands): Likewise.
18671 * reload.c (push_secondary_reload, scratch_reload_class)
18672 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18673 * reload1.c (maybe_fix_stack_asms): Likewise.
18674 * targhooks.c (default_secondary_reload): Likewise.
18675 * stmt.c (parse_output_constraint): Likewise.
18676 * recog.c (preprocess_constraints): Likewise.
18677 (constrain_operands, peep2_find_free_register): Likewise.
18678 (asm_operand_ok): Likewise, but add a comment saying why 'o'
18679 must be handled specially.
18681 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18683 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18684 * genpreds.c (have_const_dbl_constraints): Delete.
18685 (add_constraint): Don't set it.
18686 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18687 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18688 constraints using the lookup_constraint logic.
18689 * ira-lives.c (single_reg_class): Likewise.
18690 * ira.c (ira_setup_alts): Likewise.
18691 * lra-constraints.c (process_alt_operands): Likewise.
18692 * recog.c (asm_operand_ok, constrain_operands): Likewise.
18693 * reload.c (find_reloads): Likewise.
18695 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18697 * genpreds.c (const_int_start, const_int_end): New variables.
18698 (choose_enum_order): Output CONST_INT constraints before memory
18700 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18702 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18703 * ira.c (ira_setup_alts): Likewise.
18704 * lra-constraints.c (process_alt_operands): Likewise.
18705 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18706 * reload.c (find_reloads): Likewise.
18708 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18710 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18711 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
18712 * recog.c (preprocess_constraints): Update accordingly.
18714 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18716 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18717 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18718 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18719 * genpreds.c (print_type_tree): New function.
18720 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18721 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18722 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18723 Write out enum constraint_type and get_constraint_type.
18724 * lra-constraints.c (satisfies_memory_constraint_p): Take a
18725 constraint_num rather than a constraint string.
18726 (satisfies_address_constraint_p): Likewise.
18727 (reg_class_from_constraints): Avoid old constraint macros.
18728 (process_alt_operands, process_address_1): Likewise.
18729 (curr_insn_transform): Likewise.
18730 * ira-costs.c (record_reg_classes): Likewise.
18731 (record_operand_costs): Likewise.
18732 * ira-lives.c (single_reg_class): Likewise.
18733 (ira_implicitly_set_insn_hard_regs): Likewise.
18734 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18735 * postreload.c (reload_cse_simplify_operands): Likewise.
18736 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18737 (constrain_operands, peep2_find_free_register): Likewise.
18738 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18739 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18740 * reload1.c (maybe_fix_stack_asms): Likewise.
18741 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18742 * targhooks.c (default_secondary_reload): Likewise.
18743 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18744 to EXTRA_CONSTRAINT_STR.
18745 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18747 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18749 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18750 (write_constraint_satisfied_p_array): ...this new function.
18751 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18753 (write_insn_preds_c): Update accordingly.
18755 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18757 * genpreds.c (write_lookup_constraint): Rename to...
18758 (write_lookup_constraint_1): ...this.
18759 (write_lookup_constraint_array): New function.
18760 (write_tm_preds_h): Define lookup_constraint as an inline function
18761 that uses write_lookup_constraint_array where possible.
18762 (write_insn_preds_c): Update for the changes above.
18764 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18766 * doc/md.texi (regclass_for_constraint): Rename to...
18767 (reg_class_for_constraint): ...this.
18768 * genpreds.c (num_constraints, enum_order, register_start)
18769 (register_end, satisfied_start, memory_start, memory_end)
18770 (address_start, address_end): New variables.
18771 (add_constraint): Count the number of constraints.
18772 (choose_enum_order): New function.
18773 (write_enum_constraint_num): Iterate over enum_order.
18774 (write_regclass_for_constraint): Rename to...
18775 (write_reg_class_for_constraint_1): ...this and update output
18777 (write_constraint_satisfied_p): Rename to...
18778 (write_constraint_satisfied_p_1): ...this and update output
18779 accordingly. Do nothing if all extra constraints are register
18781 (write_insn_extra_memory_constraint): Delete.
18782 (write_insn_extra_address_constraint): Delete.
18783 (write_range_function): New function.
18784 (write_tm_preds_h): Define constraint_satisfied_p and
18785 reg_class_for_constraint as inline functions that do a range check
18786 before calling the out-of-line function. Use write_range_function
18787 to implement insn_extra_{register,memory,address}_constraint,
18788 the first of which is new.
18789 (write_insn_preds_c): Update after above changes to write_* functions.
18790 (main): Call choose_enum_order.
18792 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18794 PR tree-optimization/61306
18795 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18796 expression instead of its size.
18797 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18798 false to prevent optimization when the result is unpredictable due to
18799 arithmetic right shift of signed type with highest byte is set.
18800 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18801 (init_symbolic_number): Likewise.
18802 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18803 when the result is unpredictable due to sign extension.
18805 2014-06-11 Terry Guo <terry.guo@arm.com>
18807 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18808 (*thumb1_addsi3): Ditto.
18809 (*thumb_subdi3): Ditto.
18810 (thumb1_subsi3_insn): Ditto.
18811 (*thumb_mulsi3): Ditto.
18812 (*thumb_mulsi3_v6): Ditto.
18813 (*thumb1_andsi3_insn): Ditto.
18814 (thumb1_bicsi3): Ditto.
18815 (*thumb1_iorsi3_insn): Ditto.
18816 (*thumb1_xorsi3_insn): Ditto.
18817 (*thumb1_ashlsi3): Ditto.
18818 (*thumb1_ashrsi3): Ditto.
18819 (*thumb1_lshrsi3): Ditto.
18820 (*thumb1_rotrsi3): Ditto.
18821 (*thumb1_negdi2): Ditto.
18822 (*thumb1_negsi2): Ditto.
18823 (*thumb1_abssi2): Ditto.
18824 (*thumb1_neg_abssi2): Ditto.
18825 (*thumb1_one_cmplsi2): Ditto.
18826 (*thumb1_zero_extendhisi2): Ditto.
18827 (*thumb1_zero_extendqisi2): Ditto.
18828 (*thumb1_zero_extendqisi2_v6): Ditto.
18829 (thumb1_extendhisi2): Ditto.
18830 (thumb1_extendqisi2): Ditto.
18831 (*thumb1_movdi_insn): Ditto.
18832 (*thumb1_movsi_insn): Ditto.
18833 (*thumb1_movhi_insn): Ditto.
18834 (thumb_movhi_clobber): Ditto.
18835 (*thumb1_movqi_insn): Ditto.
18836 (*thumb1_movhf): Ditto.
18837 (*thumb1_movsf_insn): Ditto.
18838 (*thumb_movdf_insn): Ditto.
18839 (movmem12b): Ditto.
18841 (cbranchqi4): Ditto.
18842 (cbranchsi4_insn): Ditto.
18843 (cbranchsi4_scratch): Ditto.
18844 (*negated_cbranchsi4): Ditto.
18845 (*tbit_cbranch): Ditto.
18846 (*tlobits_cbranch): Ditto.
18847 (*tstsi3_cbranch): Ditto.
18848 (*cbranchne_decr1): Ditto.
18849 (*addsi3_cbranch): Ditto.
18850 (*addsi3_cbranch_scratch): Ditto.
18851 (*thumb_cmpdi_zero): Ditto.
18852 (cstoresi_eq0_thumb1): Ditto.
18853 (cstoresi_ne0_thumb1): Ditto.
18854 (*cstoresi_eq0_thumb1_insn): Ditto.
18855 (*cstoresi_ne0_thumb1_insn): Ditto.
18856 (cstoresi_nltu_thumb1): Ditto.
18857 (cstoresi_ltu_thumb1): Ditto.
18858 (thumb1_addsi3_addgeu): Ditto.
18859 (*thumb_jump): Ditto.
18860 (*call_reg_thumb1_v5): Ditto.
18861 (*call_reg_thumb1): Ditto.
18862 (*call_value_reg_thumb1_v5): Ditto.
18863 (*call_value_reg_thumb1): Ditto.
18864 (*call_insn): Ditto.
18865 (*call_value_insn): Ditto.
18866 (thumb1_casesi_internal_pic): Ditto.
18867 (thumb1_casesi_dispatch): Ditto.
18868 (*thumb1_indirect_jump): Ditto.
18869 (prologue_thumb1_interwork): Ditto.
18870 (*epilogue_insns): Ditto.
18871 (consttable_1): Ditto.
18872 (consttable_2): Ditto.
18873 (tablejump): Ditto.
18874 (*thumb1_tablejump): Ditto.
18875 (thumb_eh_return): Ditto.
18876 (define_peephole2): Two of them are thumb1 only and got moved into
18877 new file thumb1.md.
18878 (define_split): Six of them are thumb1 only and got moved into new
18880 * config/arm/thumb1.md: New file comprised of above thumb1 only
18883 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18885 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18886 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18888 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18889 (aarch64_crc_builtin_datum): New struct.
18890 (aarch64_crc_builtin_data): New.
18891 (aarch64_init_crc32_builtins): New function.
18892 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18893 (aarch64_crc32_expand_builtin): New.
18894 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18895 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18896 __ARM_FEATURE_CRC32 when appropriate.
18897 (TARGET_CRC32): Define.
18898 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18899 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18900 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18901 (aarch64_<crc_variant>): New pattern.
18902 * config/aarch64/arm_acle.h: New file.
18903 * config/aarch64/iterators.md (CRC): New int iterator.
18904 (crc_variant, crc_mode): New int attributes.
18905 * doc/aarch64-acle-intrinsics.texi: New file.
18906 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18907 Include aarch64-acle-intrinsics.texi.
18909 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
18911 * tree-vect-data-refs.c (vect_grouped_store_supported): New
18912 check for stores group of length 3.
18913 (vect_permute_store_chain): New permutations for stores group of
18915 * tree-vect-stmts.c (vect_model_store_cost): Change cost
18916 of vec_perm_shuffle for the new permutations.
18918 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18920 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18921 table rewriting temporarily on targets not supporting ONE_ONLY.
18923 2014-06-11 Richard Biener <rguenther@suse.de>
18925 PR middle-end/61437
18927 2014-06-04 Richard Biener <rguenther@suse.de>
18929 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18930 TREE_PUBLIC and DECL_EXTERNAL decls.
18932 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18934 * varasm.c (set_implicit_section): New function.
18935 (resolve_unique_section): Use it to set implicit section
18937 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18938 (default_function_section): Likewise.
18939 (decl_binds_to_current_def_p): Constify argument.
18940 * varasm.h (decl_binds_to_current_def_p): Update prototype.
18941 * asan.c (asan_protect_global): Use
18942 symtab_get_node (decl)->implicit_section.
18943 * symtab.c (dump_symtab_base): Dump implicit sections.
18944 (verify_symtab_base): Verify sanity of sectoins and comdats.
18945 (symtab_resolve_alias): Alias share the section of its target.
18946 (set_section_1): New function.
18947 (symtab_node::set_section): Move here, recurse to aliases.
18948 (verify_symtab): Check for duplicated symtab lists.
18949 * tree-core.h (implicit_section_name_p): Remove.
18950 * tree-vect-data-refs.c: Include varasm.h.
18951 (vect_can_force_dr_alignment_p): Fix conditional on when
18952 decl bints to current definition; use
18953 symtab_get_node (decl)->implicit_section.
18954 * cgraph.c (cgraph_make_node_local_1): Fix section set.
18955 * cgraph.h (struct symtab_node): Add implicit_section.
18956 (set_section): Rename to ...
18957 (set_section_for_node): ... this one.
18958 (set_section): Declare.
18959 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18960 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18961 input_overwrite_node, input_varpool_node): Stream implicit_section.
18962 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18963 removal; it will fail in LTO.
18965 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18967 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18968 Change second alternative type to f_mcr.
18969 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18970 and 12th alternatives' types to f_mcr and f_mrc.
18971 (*movdi_aarch64): Same for 12th and 13th alternatives.
18972 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18973 (aarch64_movtilow_tilow): Change type to fmov.
18975 2014-06-10 Jiong Wang <jiong.wang@arm.com>
18977 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18978 (aarch64_save_or_restore_callee_save_registers): Fix layout.
18980 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18982 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18984 (aarch64_sqrdmulh_lane<mode>): Likewise.
18985 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18986 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18987 (aarch64_sqdmulh_laneq<mode>): New expander.
18988 (aarch64_sqrdmulh_laneq<mode>): Likewise.
18989 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18990 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18991 (aarch64_sqdmulh_lane<mode>): New expander.
18992 (aarch64_sqrdmulh_lane<mode>): Likewise.
18993 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18994 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18995 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18996 (aarch64_sqdmlal_laneq<mode>): Likewise.
18997 (aarch64_sqdmlsl_lane<mode>): Likewise.
18998 (aarch64_sqdmlsl_laneq<mode>): Likewise.
18999 (aarch64_sqdmlal2_lane<mode>): Likewise.
19000 (aarch64_sqdmlal2_laneq<mode>): Likewise.
19001 (aarch64_sqdmlsl2_lane<mode>): Likewise.
19002 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19003 (aarch64_sqdmull_lane<mode>): Likewise.
19004 (aarch64_sqdmull_laneq<mode>): Likewise.
19005 (aarch64_sqdmull2_lane<mode>): Likewise.
19006 (aarch64_sqdmull2_laneq<mode>): Likewise.
19008 2014-06-10 Richard Biener <rguenther@suse.de>
19010 PR tree-optimization/61438
19011 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
19012 (eliminate_dom_walker::before_dom_children): Only try to inhibit
19013 insertion of IVs if running PRE.
19014 (eliminate): Adjust.
19015 (pass_pre::execute): Likewise.
19016 (pass_fre::execute): Likewise.
19018 2014-06-10 Richard Biener <rguenther@suse.de>
19020 PR middle-end/61456
19021 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19022 Do not use the main variant for the type comparison.
19023 (ncr_compar): Likewise.
19024 (nonoverlapping_component_refs_p): Likewise.
19026 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
19028 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19029 REG_CFA_RESTORE mode.
19031 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
19033 * config/i386/i386.c (expand_vec_perm_pblendv): New.
19034 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19035 expand_vec_perm_pblendv.
19037 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19039 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19041 Simplify description of __crc32d and __crc32cd intrinsics.
19042 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19045 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
19048 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19049 * config.in: Regenerate.
19050 * configure: Likewise.
19052 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
19054 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19056 (intersect_static_var_sets): Remove.
19057 (propagate): Do not prune local statics.
19059 2014-06-10 Jakub Jelinek <jakub@redhat.com>
19062 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19063 Set lastprivate_firstprivate even if omp_private_outer_ref
19064 langhook returns true.
19065 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19066 langhook, call unshare_expr on new_var and call
19067 build_outer_var_ref to get the last argument.
19069 2014-06-10 Marek Polacek <polacek@redhat.com>
19072 * doc/extend.texi: Add cindex for transparent_union.
19074 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19076 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19077 init_symbolic_number ().
19079 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
19081 PR middle-end/61141
19082 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19083 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19084 (verify_rtl_sharing): Likewise.
19086 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
19089 * tree.c (build_qualified_type): Use a canonical type for
19092 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19094 * config/arm/arm-modes.def: Remove XFmode.
19096 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
19099 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19100 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19101 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19102 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19103 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19104 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19105 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19106 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19107 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19109 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
19111 * tree-core.h (tree_decl_with_vis): Remove section_name.
19113 2014-06-09 Kito Cheng <kito@0xlab.org>
19115 * ira.c (ira): Don't call init_caller_save if LRA enabled
19116 since LRA use its own infrastructure to handle that.
19118 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19120 * symtab.c (dump_symtab_base): Update dumping.
19121 (symtab_make_decl_local): Clear only DECL_COMDAT.
19122 * tree-vect-data-refs.c (Check that variable is static before
19123 tampering with sections.
19124 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19125 (cgraph_create_virtual_clone): Likewise.
19126 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19127 (decl_section_name, set_decl_section_name): New accessors.
19128 (find_decls_types_r): Do not walk section name
19129 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19130 (decl_comdat_group, decl_comdat_group_id): Constify.
19131 (decl_section_name, set_decl_section_name): Update.
19132 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19133 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19134 (cgraph_make_node_local_1): Clear section and comdat group.
19135 * cgraph.h (set_comdat_group): Sanity check.
19136 (get_section, set_section): New.
19137 * ipa-comdats.c (ipa_comdats): Use get_section.
19138 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19139 * lto-streamer-out.c: Do not follow section names.
19140 * c-family/c-common.c (handle_section_attribute): Update.
19141 * lto-cgraph.c (lto_output_node): Output section.
19142 (lto_output_varpool_node): Likewise.
19143 (read_comdat_group): Rename to ...
19144 (read_identifier): ... this one.
19145 (read_string_cst): New function.
19146 (input_node, input_varpool_node): Input section names.
19147 * tree-emutls.c (get_emutls_init_templ_addr): Update.
19148 (new_emutls_decl): Update.
19149 (secname_for_decl): Check section names only of static vars.
19150 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19151 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19152 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19153 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19154 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19155 * config/mcore/mcore.c (mcore_unique_section): Likewise.
19156 * config/mips/mips.c (mips16_build_function_stub): Likewise.
19157 * config/v850/v850.c (v850_insert_attributes): Likewise.
19158 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19160 (h8300_handle_tiny_data_attribute): Likewise.
19161 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19162 (bfin_handle_l2_attribute): Likewise.
19164 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19166 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19167 remove static initializer.
19169 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19171 * varasm.c (use_blocks_for_decl_p): Check symbol table
19172 instead of alias attribute.
19173 (place_block_symbol): Recurse on aliases.
19175 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19177 * ipa-visibility.c: Include varasm.h
19178 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19180 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19182 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19183 outputting aliases.
19185 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
19187 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19188 from test_insn into GGC space escape via SET_SRC.
19190 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
19192 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19193 call statement, if any.
19194 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19195 statements, if any. Tidy up.
19197 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19200 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19201 iterators, VSX_D that handles 64-bit types, and VSX_LE that
19202 handles swapping the two 64-bit double words on little endian
19203 systems. Include V1TImode and optionally TImode in VSX_LE so that
19204 these types are properly swapped. Change all of the insns and
19205 splits that do the 64-bit swaps to use VSX_LE.
19206 (vsx_le_perm_load_<mode>): Likewise.
19207 (vsx_le_perm_store_<mode>): Likewise.
19208 (splitters for little endian memory operations): Likewise.
19209 (vsx_xxpermdi2_le_<mode>): Likewise.
19210 (vsx_lxvd2x2_le_<mode>): Likewise.
19211 (vsx_stxvd2x2_le_<mode>): Likewise.
19213 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
19216 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19217 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19218 and corresponding splitters. Zero extend general register
19219 or memory input operand to XMM temporary. Enable for
19220 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19221 (floatunssi<mode>2): Update expander predicate.
19223 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
19225 PR rtl-optimization/61325
19226 * lra-constraints.c (process_address_1): Check scale equal to one
19227 to prevent transformation: base + scale * index => base + new_reg.
19229 2014-06-06 Richard Biener <rguenther@suse.de>
19231 PR tree-optimization/59299
19232 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19234 (nearest_common_dominator_of_uses): Likewise.
19235 (statement_sink_location): Adjust. Support sinking loads.
19237 2014-06-06 Martin Jambor <mjambor@suse.cz>
19239 * ipa-prop.c (get_place_in_agg_contents_list): New function.
19240 (build_agg_jump_func_from_list): Likewise.
19241 (determine_known_aggregate_parts): Renamed to
19242 determine_locally_known_aggregate_parts. Moved some functionality
19243 to the two functions above, removed bound checks.
19245 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
19247 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19248 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19249 (aarch64_progress_pointer): Likewise.
19250 (aarch64_copy_one_part_and_move_pointers): Likewise.
19251 (aarch64_expand_movmen): Likewise.
19252 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19253 * config/aarch64/aarch64.md (movmem<mode>): New.
19255 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
19257 * targhooks.c (default_add_stmt_cost): Call target specific
19258 hook instead of default one.
19260 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
19262 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19263 endianness instead of host endianness.
19264 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19267 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19270 * function.c (instantiate_decls): Process the saved static chain.
19271 (expand_function_start): If not optimizing, save the static chain
19273 * tree-nested.c (convert_all_function_calls): Always create the static
19274 chain for nested functions if not optimizing.
19276 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19278 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19280 2014-06-06 Richard Biener <rguenther@suse.de>
19282 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19283 (construct_init_block): Likewise.
19284 (construct_exit_block): Likewise.
19285 (pass_expand::execute): Likewise.
19286 * graphite.c (graphite_transforms): Replace check for current_loops
19287 with a check for > 1 loops.
19288 (pass_graphite_transforms::execute): Adjust.
19289 * ipa-split.c (split_function): Remove check for current_loops.
19290 * omp-low.c (expand_parallel_call): Likewise.
19291 (expand_omp_for_init_counts): Likewise.
19292 (extract_omp_for_update_vars): Likewise.
19293 (expand_omp_for_generic): Likewise.
19294 (expand_omp_sections): Likewise.
19295 (expand_omp_target): Likewise.
19296 * tracer.c (tail_duplicate): Likewise.
19297 (pass_tracer::execute): Likewise.
19298 * trans-mem.c (expand_transaction): Likewise.
19299 * tree-complex.c (expand_complex_div_wide): Likewise.
19300 * tree-eh.c (lower_resx): Likewise.
19301 (cleanup_empty_eh_merge_phis): Likewise.
19302 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19303 current_loops with a check for > 1 loops.
19304 (pass_predcom::execute): Adjust.
19305 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19306 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19307 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19308 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19309 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19310 * tree-switch-conversion.c (process_switch): Likewise.
19311 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19312 * tree-vrp.c (vrp_visit_phi_node): Likewise.
19313 (execute_vrp): Likewise.
19314 * ubsan.c (ubsan_expand_null_ifn): Likewise.
19316 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19318 * rtl.h (insn_location): Declare.
19319 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19320 with UNKNOWN_LOCATION.
19321 * emit-rtl.c (insn_location): New function.
19322 * final.c (notice_source_line): Check that the instruction has a
19323 location before retrieving it and use insn_location.
19324 * modulo-sched.c (loop_single_full_bb_p): Likewise.
19325 * print-rtl.c (print_rtx): Likewise.
19327 2014-06-06 Richard Biener <rguenther@suse.de>
19329 * passes.def: Move 2nd VRP pass before phi-only-cprop.
19331 2014-06-06 Christian Bruel <christian.bruel@st.com>
19333 PR tree-optimization/43934
19334 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19337 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
19339 * ira-lives.c (single_reg_class): Add missing break. Explicitly
19340 return NO_REGS for extra address and memory constraints. Handle
19341 operands that match (or are equivalent to something that matches)
19342 extra constant constraints. Ignore other non-register operands.
19344 2014-06-06 Alan Modra <amodra@gmail.com>
19347 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19348 * doc/tm.texi: Regenerate.
19349 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19350 Use throughout in place of REG_PARM_STACK_SPACE.
19351 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19352 "incoming" param. Pass to rs6000_function_parms_need_stack.
19353 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19354 prototype_p when incoming. Use function decl when incoming
19355 to handle K&R style functions.
19356 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19357 (INCOMING_REG_PARM_STACK_SPACE): Define.
19359 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19362 * cfgexpand.c (expand_debug_expr): Use address space of nested
19363 TREE_TYPE for ADDR_EXPR and MEM_REF.
19365 2014-06-05 Jeff Law <law@redhat.com>
19367 PR tree-optimization/61289
19368 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19369 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
19370 looking for those which match LHS. All callers changed.
19371 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19372 parameters and code which manipulated them. All callers changed.
19373 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19374 and DST_MAP parameters. Simplify invalidation code by just calling
19375 invalidate_equivalences. All callers changed.
19376 (thread_across_edge): Simplify now that we don't need to maintain
19377 the map of equivalences to invalidate.
19379 2014-06-05 Kai Tietz <ktietz@redhat.com>
19380 Richard Henderson <rth@redhat.com>
19383 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19384 checking for !TARGET_X32.
19385 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19386 (sibcall_intern): New define_insn, plus required peepholes.
19387 (sibcall_pop_intern): Likewise.
19388 (sibcall_value_intern): Likewise.
19389 (sibcall_value_pop_intern): Likewise.
19391 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
19393 * tree-inline.c (tree_function_versioning): Check DF info existence
19394 before accessing it.
19396 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19398 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19400 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19401 aarch64_frame hard_fp_offset and frame_size.
19402 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19403 frame_size; remove original_frame_size.
19404 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19405 (aarch64_initial_elimination_offset): Remove frame_size and
19406 offset. Use aarch64_frame frame_size.
19408 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19409 Jiong Wang <jiong.wang@arm.com>
19410 Renlin <renlin.li@arm.com>
19412 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19413 initialization of R30 offset. Update offset. Iterate core
19414 regisers upto X30. Remove X29, X30 specific code.
19416 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19417 Jiong Wang <jiong.wang@arm.com>
19419 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19420 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19421 (aarch64_register_saved_on_entry): Adjust test.
19423 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19425 * config/aarch64/aarch64.h (machine_function): Move
19426 saved_varargs_size from here...
19427 (aarch64_frame): ... to here.
19429 * config/aarch64/aarch64.c (aarch64_expand_prologue)
19430 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19431 (aarch64_initial_elimination_offset)
19432 (aarch64_setup_incoming_varargs): Adjust location of
19433 saved_varargs_size.
19435 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19437 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19440 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
19441 Prachi Godbole <Prachi.Godbole@imgtec.com>
19443 * config/mips/mips-cpus.def: Add definition for p5600. Updated
19444 mips32r5 entry to use PROCESSOR_P5600.
19445 * config/mips/mips-tables.opt: Regenerate.
19446 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19447 * config/mips/mips.c (mips_fmadd_bypass): New function.
19448 (mips_rtx_cost_data): Add costs for p5600.
19449 (mips_issue_rate): Add support for p5600.
19450 (mips_multipass_dfa_lookahead): Likewise.
19451 * config/mips/mips.h (TUNE_P5600): New define.
19452 (TUNE_MACC_CHAINS): Add TUNE_P5600.
19453 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19454 * config/mips/mips.md: Include p5600.md.
19455 (processor): Add p5600.
19456 * config/mips/p5600.md: New file.
19458 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
19460 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19461 * config/i386/predicates.md (palignr_operand): New.
19462 Indicates if permutation is suitable for palignr instruction.
19464 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
19466 PR tree-optimization/61319
19467 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19468 stmt belongs to loop.
19470 2014-06-05 Richard Biener <rguenther@suse.de>
19472 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19473 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19474 (lookup_tmp_var): Adjust.
19475 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19477 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19479 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19481 2014-06-05 Marek Polacek <polacek@redhat.com>
19484 * doc/invoke.texi: Document -Wlogical-not-parentheses.
19486 2014-06-04 Tom de Vries <tom@codesourcery.com>
19488 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19491 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
19493 PR tree-optimization/61385
19494 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19496 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
19498 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
19499 changed to use fatal_error.
19500 (main): Ensure lto_wrapper_cleanup is run atexit.
19502 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19504 * lra-constraints.c (valid_address_p): Move earlier in file.
19505 (address_eliminator): New structure.
19506 (satisfies_memory_constraint_p): New function.
19507 (satisfies_address_constraint_p): Likewise.
19508 (process_alt_operands, process_address, curr_insn_transform): Use them.
19510 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19512 * lra-int.h (lra_static_insn_data): Make operand_alternative a
19514 (target_lra_int, default_target_lra_int, this_target_lra_int)
19515 (op_alt_data): Delete.
19516 * lra.h (lra_init): Delete.
19517 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19518 (init_insn_code_data_once): Remove op_alt_data handling.
19519 (finish_insn_code_data_once): Likewise.
19520 (init_op_alt_data): Delete.
19521 (get_static_insn_data): Initialize operand_alternative to null.
19522 (free_insn_recog_data): Cast operand_alternative before freeing it.
19523 (setup_operand_alternative): Take the operand_alternative as
19524 parameter and assume it isn't already cached in the static
19526 (lra_set_insn_recog_data): Update accordingly.
19527 (lra_init): Delete.
19528 * ira.c (ira_init): Don't call lra_init.
19529 * target-globals.h (this_target_lra_int): Declare.
19530 (target_globals): Remove lra_int.
19531 (restore_target_globals): Update accordingly.
19532 * target-globals.c: Don't include lra-int.h.
19533 (default_target_globals, save_target_globals): Remove lra_int.
19535 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19537 * recog.h (operand_alternative): Convert reg_class, reject,
19538 matched and matches into bitfields.
19539 (preprocess_constraints): New overload.
19540 (preprocess_insn_constraints): New function.
19541 (preprocess_constraints): Take the insn as parameter.
19542 (recog_op_alt): Change into a pointer.
19543 (target_recog): Add x_op_alt.
19544 * recog.c (asm_op_alt): New variable.
19545 (recog_op_alt): Change into a pointer.
19546 (preprocess_constraints): New overload, replacing the old function
19547 definition with one that doesn't use global state.
19548 (preprocess_insn_constraints): New function.
19549 (preprocess_constraints): Use them. Take the insn as parameter.
19550 Use asm_op_alt for asms.
19551 (recog_init): Free existing x_op_alt entries.
19552 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19554 (make_early_clobber_and_input_conflicts): Likewise.
19555 (process_bb_node_lives): Pass the insn to process_constraints.
19556 * reg-stack.c (check_asm_stack_operands): Likewise.
19557 (subst_asm_stack_regs): Likewise.
19558 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19559 * regrename.c (build_def_use): Likewise.
19560 * sched-deps.c (sched_analyze_insn): Likewise.
19561 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19562 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19563 (note_invalid_constants): Likewise.
19564 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19565 (ix86_legitimate_combined_insn): Make operand_alternative pointer
19568 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19570 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19571 * ira-lives.c (check_and_make_def_conflict): Check for disabled
19573 (make_early_clobber_and_input_conflicts): Likewise.
19574 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19576 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19578 * recog.h (alternative_class): New function.
19579 (which_op_alt): Return a const recog_op_alt.
19580 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19581 (subst_asm_stack_regs): Likewise.
19582 * config/arm/arm.c (note_invalid_constants): Likewise.
19583 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
19584 the operand_alternative; use alternative class instead.
19585 * sel-sched.c (get_reg_class): Likewise.
19586 * regrename.c (build_def_use): Likewise.
19587 (hide_operands, restore_operands, record_out_operands): Update type
19590 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19592 * recog.h (recog_op_alt): Convert to a flat array.
19593 (which_op_alt): New function.
19594 * recog.c (recog_op_alt): Convert to a flat array.
19595 (preprocess_constraints): Update accordingly, grouping all
19596 operands of the same alternative together, rather than the
19598 * ira-lives.c (check_and_make_def_conflict): Likewise.
19599 (make_early_clobber_and_input_conflicts): Likewise.
19600 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19601 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19602 (subst_asm_stack_regs): Likewise.
19603 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19604 * regrename.c (hide_operands, record_out_operands): Likewise.
19605 (build_def_use): Likewise.
19606 * sel-sched.c (get_reg_class): Likewise.
19607 * config/arm/arm.c (note_invalid_constants): Likewise.
19609 2014-06-04 Jason Merrill <jason@redhat.com>
19613 * gimplify.c (gimplify_arg): Non-static.
19614 * gimplify.h: Declare it.
19616 2014-06-04 Richard Biener <rguenther@suse.de>
19618 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19619 TREE_PUBLIC and DECL_EXTERNAL decls.
19621 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
19623 * regcprop.c (copyprop_hardreg_forward_1): Account for
19624 HARD_REGNO_CALL_PART_CLOBBERED.
19626 2014-06-04 Richard Biener <rguenther@suse.de>
19628 * configure.ac: Check whether the underlying type of int64_t
19629 is long or long long.
19630 * configure: Regenerate.
19631 * config.in: Likewise.
19632 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19633 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19635 2014-06-04 Richard Biener <rguenther@suse.de>
19637 PR tree-optimization/60098
19638 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19640 (dse_optimize_stmt): Simplify, now that we found a kill
19643 2014-06-04 Richard Biener <rguenther@suse.de>
19645 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19646 of accesses with non-invariant address.
19648 2014-06-04 Martin Liska <mliska@suse.cz>
19650 * cgraph.h (cgraph_make_wrapper): New function introduced.
19651 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19652 * ipa-inline.h (inline_analyze_function): The function is global.
19653 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19655 2014-06-04 Martin Liska <mliska@suse.cz>
19657 * tree.h (private_lookup_attribute_starting): New function.
19658 (lookup_attribute_starting): Likewise.
19659 * tree.c (private_lookup_attribute_starting): Likewise.
19661 2014-06-04 Martin Liska <mliska@suse.cz>
19663 * cgraph.h (expand_thunk): New argument added.
19664 (address_taken_from_non_vtable_p): New global function.
19665 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19666 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19667 * cgraphunit.c (analyze_function): Likewise.
19668 (assemble_thunks_and_aliases): Argument added to call.
19669 (expand_thunk): New argument forces to produce GIMPLE thunk.
19671 2014-06-04 Martin Liska <mliska@suse.cz>
19673 * coverage.h (coverage_compute_cfg_checksum): Argument added.
19674 * coverage.c (coverage_compute_cfg_checksum): Likewise.
19675 * profile.c (branch_prob): Likewise.
19677 2014-06-04 Martin Jambor <mjambor@suse.cz>
19680 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19681 handler for switch on an ipa_ref_use enum.
19682 * ipa-reference.c (analyze_function): Likewise.
19684 2014-06-04 Kai Tietz <ktietz@redhat.com>
19686 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19687 from old call-instruction.
19689 2014-06-04 Bin Cheng <bin.cheng@arm.com>
19691 * config/aarch64/aarch64.c (aarch64_classify_address)
19692 (aarch64_legitimize_reload_address): Support full addressing modes
19694 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19695 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19697 2014-06-03 Andrew Pinski <apinski@cavium.com>
19699 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19702 2014-06-03 Andrew Pinski <apinski@cavium.com>
19704 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19705 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19707 2014-06-03 Kai Tietz <ktietz@redhat.com>
19709 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19712 2014-06-03 Dehao Chen <dehao@google.com>
19714 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19717 2014-06-03 Marek Polacek <polacek@redhat.com>
19720 * doc/invoke.texi: Document -Wswitch-bool.
19721 * function.c (stack_protect_epilogue): Cast controlling expression of
19723 * gengtype.c (walk_type): Generate switch expression with its
19724 controlling expression cast to int.
19726 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
19728 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19730 * config/avr/avr-tables.opt: Regenerate.
19731 * config/avr/t-multilib: Regenerate.
19732 * doc/avr-mmcu.texi: Regenerate.
19734 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
19735 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19737 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19738 (ata6617c, ata664251): Add new avr35 devices.
19739 (ata6612c): Add new avr4 device.
19740 (ata6613c, ata6614q): Add new avr5 devices.
19741 * config/avr/avr-tables.opt: Regenerate.
19742 * config/avr/t-multilib: Regenerate.
19743 * doc/avr-mmcu.texi: Regenerate.
19745 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19747 * gcc/config/aarch64/aarch64-builtins.c
19748 (aarch64_types_binop_ssu_qualifiers): New static data.
19749 (TYPES_BINOP_SSU): Define.
19750 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19751 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19752 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19753 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19754 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19755 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19756 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19757 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19758 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19759 suffix to builtin function name, remove cast.
19760 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19761 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19762 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19764 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19766 * gcc/config/aarch64/aarch64-builtins.c
19767 (aarch64_types_binop_uus_qualifiers,
19768 aarch64_types_shift_to_unsigned_qualifiers,
19769 aarch64_types_unsigned_shiftacc_qualifiers): Define.
19770 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19771 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19772 sqshlu_n, uqshl_n): Update qualifiers.
19773 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19774 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19775 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19776 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19777 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19778 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19779 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19780 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19781 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19782 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19783 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19784 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19785 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19786 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19787 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19788 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19789 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19790 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19791 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19792 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19793 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19794 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19795 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19796 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19797 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19798 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19799 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19801 2014-06-03 Teresa Johnson <tejohnson@google.com>
19803 * tree-sra.c (modify_function): Record caller nodes after rebuild.
19805 2014-06-02 Jason Merrill <jason@redhat.com>
19808 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19810 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19812 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19815 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19817 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19819 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19820 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19821 * config/aarch64/iterators.md (REVERSE): New iterator.
19822 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19823 (rev_op): New int_attribute.
19824 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19825 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19826 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19827 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19828 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19829 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19830 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19831 Replace temporary __asm__ with __builtin_shuffle.
19833 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19835 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19837 * config/mips/mips-tables.opt: Regenerate.
19838 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19839 to use mips_isa_rev rather than ISA_MIPS32R2.
19840 * config/mips/mips.h (ISA_MIPS32R3): New define.
19841 (ISA_MIPS32R5): New define.
19842 (ISA_MIPS64R3): New define.
19843 (ISA_MIPS64R5): New define.
19844 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19845 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19846 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19848 (MIPS_ISA_SYNCI_SPEC): Likewise.
19849 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19850 (LINK_SPEC): Added mips32r3 and mips32r5.
19851 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19852 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19853 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19854 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19855 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19856 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19857 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19859 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19861 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19863 * config/mips/mips.opt (mxpa): New option.
19864 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19867 2014-06-03 Martin Jambor <mjambor@suse.cz>
19870 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19873 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
19875 PR tree-optimization/61328
19876 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19877 initialization from find_bswap_or_nop_1.
19878 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19879 in source_expr2 before using the size value the function sets. Also
19880 make use of init_symbolic_number () in both the old place and
19881 find_bswap_or_nop_load () to avoid reading uninitialized memory when
19882 doing recursion in the GIMPLE_BINARY_RHS case.
19884 2014-06-03 Richard Biener <rguenther@suse.de>
19886 PR tree-optimization/61383
19887 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19890 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
19892 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19893 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19894 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19895 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19897 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19898 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19899 * system.h: ...here and make it unconditional.
19900 * target.def (conditional_register_usage): Mention
19901 define_register_constraint instead of old-style constraint macros.
19902 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19903 * doc/tm.texi: Regenerate.
19904 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19905 protected by !USE_MD_CONSTRAINTS.
19906 * config/frv/frv.md: Remove quote from old version of documentation.
19907 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19908 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19909 CONST_DOUBLE_OK_FOR_LETTER.
19910 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19912 2014-06-02 Andrew Pinski <apinski@cavium.com>
19914 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19915 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19916 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19917 file whose name depends on -mabi= and -mbig-endian.
19918 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19919 Handle LP64 better and handle ilp32 too.
19920 (MULTILIB_OPTIONS): Delete.
19921 (MULTILIB_DIRNAMES): Delete.
19923 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
19925 * expr.h: Remove prototypes of functions defined in builtins.c.
19926 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19927 Remove prototypes of functions defined in builtins.c.
19928 * builtins.h: Update prototype list to include all exported functions.
19929 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19930 no_c99_libc_has_function): Move to targhooks.c
19931 (build_string_literal, build_call_expr_loc_array,
19932 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19934 (expand_builtin_object_size, fold_builtin_object_size): Make static.
19935 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19936 no_c99_libc_has_function): Relocate from builtins.c.
19937 * tree.c: Include builtins.h.
19938 (build_call_expr_loc_array, build_call_expr_loc_vec,
19939 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19941 * fold-const.h (fold_fma): Move prototype to builtins.h.
19942 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19943 * asan.c: Include builtins.h.
19944 * cfgexpand.c: Likewise.
19945 * convert.c: Likewise.
19946 * emit-rtl.c: Likewise.
19947 * except.c: Likewise.
19948 * expr.c: Likewise.
19949 * fold-const.c: Likewise.
19950 * gimple-fold.c: Likewise.
19951 * gimple-ssa-strength-reduction.c: Likewise.
19952 * gimplify.c: Likewise.
19953 * ipa-inline.c: Likewise.
19954 * ipa-prop.c: Likewise.
19955 * lto-streamer-out.c: Likewise.
19956 * stmt.c: Likewise.
19957 * tree-inline.c: Likewise.
19958 * tree-object-size.c: Likewise.
19959 * tree-sra.c: Likewise.
19960 * tree-ssa-ccp.c: Likewise.
19961 * tree-ssa-forwprop.c: Likewise.
19962 * tree-ssa-loop-ivcanon.c: Likewise.
19963 * tree-ssa-loop-ivopts.c: Likewise.
19964 * tree-ssa-math-opts.c: Likewise.
19965 * tree-ssa-reassoc.c: Likewise.
19966 * tree-ssa-threadedge.c: Likewise.
19967 * tree-streamer-in.c: Likewise.
19968 * tree-vect-data-refs.c: Likewise.
19969 * tree-vect-patterns.c: Likewise.
19970 * tree-vect-stmts.c: Likewise.
19971 * config/aarch64/aarch64.c: Likewise.
19972 * config/alpha/alpha.c: Likewise.
19973 * config/arc/arc.c: Likewise.
19974 * config/arm/arm.c: Likewise.
19975 * config/avr/avr.c: Likewise.
19976 * config/bfin/bfin.c: Likewise.
19977 * config/c6x/c6x.c: Likewise.
19978 * config/cr16/cr16.c: Likewise.
19979 * config/cris/cris.c: Likewise.
19980 * config/epiphany/epiphany.c: Likewise.
19981 * config/fr30/fr30.c: Likewise.
19982 * config/frv/frv.c: Likewise.
19983 * config/h8300/h8300.c: Likewise.
19984 * config/i386/i386.c: Likewise.
19985 * config/i386/winnt.c: Likewise.
19986 * config/ia64/ia64.c: Likewise.
19987 * config/iq2000/iq2000.c: Likewise.
19988 * config/lm32/lm32.c: Likewise.
19989 * config/m32c/m32c.c: Likewise.
19990 * config/m32r/m32r.c: Likewise.
19991 * config/m68k/m68k.c: Likewise.
19992 * config/mcore/mcore.c: Likewise.
19993 * config/mep/mep.c: Likewise.
19994 * config/microblaze/microblaze.c: Likewise.
19995 * config/mips/mips.c: Likewise.
19996 * config/mmix/mmix.c: Likewise.
19997 * config/mn10300/mn10300.c: Likewise.
19998 * config/moxie/moxie.c: Likewise.
19999 * config/msp430/msp430.c: Likewise.
20000 * config/nds32/nds32.c: Likewise.
20001 * config/pa/pa.c: Likewise.
20002 * config/pdp11/pdp11.c: Likewise.
20003 * config/picochip/picochip.c: Likewise.
20004 * config/rl78/rl78.c: Likewise.
20005 * config/rs6000/rs6000.c: Likewise.
20006 * config/rx/rx.c: Likewise.
20007 * config/s390/s390.c: Likewise.
20008 * config/score/score.c: Likewise.
20009 * config/sh/sh.c: Likewise.
20010 * config/sparc/sparc.c: Likewise.
20011 * config/spu/spu.c: Likewise.
20012 * config/stormy16/stormy16.c: Likewise.
20013 * config/tilegx/tilegx.c: Likewise.
20014 * config/tilepro/tilepro.c: Likewise.
20015 * config/v850/v850.c: Likewise.
20016 * config/vax/vax.c: Likewise.
20017 * config/xtensa/xtensa.c: Likewise.
20019 2014-06-02 Jeff Law <law@redhat.com>
20021 PR rtl-optimization/61094
20022 * ree.c (combine_reaching_defs): Do not reextend an insn if it
20023 was marked as do_no_reextend. If a copy is needed to eliminate
20024 an extension, then mark it as do_not_reextend.
20026 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
20028 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20030 2014-06-02 Richard Henderson <rth@redhat.com>
20033 * config/alpha/alpha.c (print_operand_address): Allow symbolic
20034 addresses inside asms. Use output_operand_lossage instead of
20037 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
20040 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20041 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20043 2014-06-02 Tom de Vries <tom@codesourcery.com>
20045 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20046 case that x has VOIDmode.
20048 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
20050 * varasm.c (copy_constant): Delete function.
20051 (build_constant_desc): Don't call it.
20053 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20056 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20057 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20058 with immediate_operand.
20060 2014-06-02 Andreas Schwab <schwab@suse.de>
20062 * config/ia64/ia64.c
20063 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20064 pending_data_specs first.
20066 2014-06-02 Richard Biener <rguenther@suse.de>
20068 PR tree-optimization/61378
20069 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20070 valueized_anything.
20072 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
20074 * config/i386/constraints.md (Bw): Rename from 'w'.
20075 (Bz): Rename from 'z'.
20076 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20078 2014-06-01 Kai Tietz <ktietz@redhat.com>
20081 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20082 * config/i386/i386.md (sibcall_insn_operand): Use Bs
20083 instead of m constraint.
20085 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
20087 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20088 a separate alternative where the scratch operand 2 is marked as
20091 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20093 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20094 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20095 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20096 and __builtins_arm_get_fpscr.
20097 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20098 __builtins_arm_get_fpscr.
20099 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20100 __builtins_arm_ldfpscr.
20101 (arm_atomic_assign_expand_fenv): New function.
20102 * config/arm/vfp.md (set_fpscr): New pattern.
20103 (get_fpscr) : Likewise.
20104 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20106 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20107 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20109 2014-05-30 Jakub Jelinek <jakub@redhat.com>
20111 * asan.c (report_error_func): Add SLOW_P argument, use
20112 BUILT_IN_ASAN_*_N if set.
20113 (build_check_stmt): Likewise.
20114 (instrument_derefs): If T has insufficient alignment,
20115 force same handling as for odd sizes.
20117 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20118 BUILT_IN_ASAN_REPORT_STORE_N): New.
20119 * asan.c (struct asan_mem_ref): Change access_size type to
20121 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20122 update_mem_ref_hash_table): Likewise.
20123 (asan_mem_ref_hasher::hash): Hash in a HWI.
20124 (report_error_func): Change size_in_bytes argument to HWI.
20125 Use *_N builtins if size_in_bytes is larger than 16 or not power of
20127 (build_shadow_mem_access): New function.
20128 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
20129 Handle size_in_bytes not power of two or larger than 16.
20130 (instrument_derefs): Don't give up if size_in_bytes is not
20131 power of two or is larger than 16.
20133 2014-05-30 Kai Tietz <ktietz@redhat.com>
20136 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20137 for sibling-tail-calls.
20138 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20140 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20141 (sibcall_insn_operand): Add check for sibcall_memory_operand.
20143 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20145 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20146 * config/avr/avr-tables.opt: Regenerate.
20147 * config/avr/t-multilib: Regenerate.
20148 * doc/avr-mmcu.texi: Regenerate.
20150 2014-05-30 Ian Lance Taylor <iant@google.com>
20152 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20155 2014-05-30 Tom de Vries <tom@codesourcery.com>
20157 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20160 2014-05-30 Tom de Vries <tom@codesourcery.com>
20162 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20163 * lra.c (initialize_lra_reg_info_element): Add init of
20164 actual_call_used_reg_set field.
20165 (lra): Call lra_create_live_ranges before lra_inheritance for
20167 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20169 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20170 instead of call_used_reg_set for -fuse-caller-save.
20171 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20173 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20175 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20177 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20179 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
20181 * ira.c (ira_get_dup_out_num): Check for output operands at
20182 the start of the loop. Handle cases where an included alternative
20183 follows an excluded one.
20185 2014-05-29 Mike Stump <mikestump@comcast.net>
20188 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20189 post ld passes when lto is used.
20191 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
20193 PR rtl-optimization/61325
20194 * lra-constraints.c (process_address): Rename to process_address_1.
20195 (process_address): New function.
20197 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
20199 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20200 TYPES_BINOPV): New static data.
20201 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20203 * config/aarch64/aarch64-simd.md (aarch64_ext,
20204 aarch64_im_lane_boundsi): New patterns.
20205 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20207 (aarch64_evpc_ext): New function.
20209 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20211 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20212 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20213 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20214 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20215 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20217 2014-05-29 Tom de Vries <tom@codesourcery.com>
20219 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20221 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
20222 Richard Sandiford <rdsandiford@googlemail.com>
20224 * arm/iterators.md (shiftable_ops): New code iterator.
20225 (t2_binop0, arith_shift_insn): New code attributes.
20226 * arm/predicates.md (shift_nomul_operator): New predicate.
20227 * arm/arm.md (insn_enabled): Delete.
20228 (enabled): Remove insn_enabled test.
20229 (*arith_shiftsi): Delete. Replace with ...
20230 (*<arith_shift_insn>_multsi): ... new pattern.
20231 (*<arith_shift_insn>_shiftsi): ... new pattern.
20232 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20234 2014-05-29 Radovan Obradovic <robradovic@mips.com>
20235 Tom de Vries <tom@codesourcery.com>
20237 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20238 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20240 (mips_split_call): Use POST_CALL_TMP_REG.
20241 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20243 2014-05-29 Tom de Vries <tom@codesourcery.com>
20245 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20246 with #ifdef STACK_REGS.
20248 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
20250 * varasm.c (get_variable_section): Walk aliases.
20251 (place_block_symbol): Walk aliases.
20253 2014-05-28 Tom de Vries <tom@codesourcery.com>
20256 2014-05-28 Tom de Vries <tom@codesourcery.com>
20258 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20259 * lra.c (initialize_lra_reg_info_element): Add init of
20260 actual_call_used_reg_set field.
20261 (lra): Call lra_create_live_ranges before lra_inheritance for
20263 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20265 * lra-constraints.c (need_for_call_save_p): Use
20266 actual_call_used_reg_set instead of call_used_reg_set for
20268 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20270 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20272 * doc/md.texi: Document that the % constraint character must
20273 be at the beginning of the string.
20274 * genoutput.c (validate_insn_alternatives): Check that '=',
20275 '+' and '%' only appear at the beginning of a constraint.
20276 * ira.c (commutative_constraint_p): Delete.
20277 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20278 at the start of the string.
20279 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20281 * config/arm/neon.md (bicdi3_neon): Likewise.
20282 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20283 (slt_si, sltu_si): Likewise.
20284 * config/vax/vax.md (sbcdi3): Likewise.
20285 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20286 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20287 (mul64): Move '%' to beginning of constraint.
20288 * config/arm/arm.md (*xordi3_insn): Likewise.
20289 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20290 (xorsi3): Likewise.
20292 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20294 * doc/md.texi: Document the restrictions on the "enabled" attribute.
20296 2014-05-28 Jason Merrill <jason@redhat.com>
20299 * cgraph.h (symtab_node::get_comdat_group_id): New.
20300 * cgraphunit.c (analyze_functions): Call it.
20301 * symtab.c (dump_symtab_node): Likewise.
20302 * tree.c (decl_comdat_group_id): New.
20303 * tree.h: Declare it.
20304 * lto-streamer-out.c (write_symbol): Use it.
20305 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20307 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20309 PR bootstrap/PR61146
20310 * wide-int.cc: Do not include longlong.h when compiling with clang.
20312 2014-05-28 Richard Biener <rguenther@suse.de>
20314 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20315 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20316 (vrp_visit_assignment_or_call): Print less vertical space.
20317 (vrp_visit_stmt): Likewise.
20318 (vrp_visit_phi_node): Likewise. For a PHI argument with
20319 VR_VARYING range consider recording it as copy.
20321 2014-05-28 Richard Biener <rguenther@suse.de>
20324 2014-05-28 Richard Biener <rguenther@suse.de>
20326 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20328 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
20330 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20331 sufficiently aligned and an offset is used at the same time.
20332 (expand_expr_real_1): Likewise.
20334 2014-05-28 Richard Biener <rguenther@suse.de>
20336 PR middle-end/61045
20337 * fold-const.c (fold_comparison): When folding
20338 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20339 the sign of the remaining constant operand stays the same.
20341 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
20343 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20344 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20345 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20347 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20348 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20349 (m32bit-doubles) Likewise.
20350 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20351 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20354 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20356 * configure.ac ($gcc_cv_ld_clearcap): New test.
20357 * configure: Regenerate.
20358 * config.in: Regenerate.
20359 * config/sol2.opt (mclear-hwcap): New option.
20360 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20361 * config/sol2-clearcap.map: Moved here from
20362 testsuite/gcc.target/i386/clearcap.map.
20363 * config/sol2-clearcapv2.map: Move here from
20364 gcc.target/i386/clearcapv2.map.
20365 * config/t-sol2 (install): Depend on install-clearcap-map.
20366 (install-clearcap-map): New target.
20367 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20370 2014-05-28 Richard Biener <rguenther@suse.de>
20372 * hwint.h (*_HALF_WIDE_INT*): Move to ...
20373 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20374 ... here and remove the rest.
20375 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20377 2014-05-28 Richard Biener <rguenther@suse.de>
20379 PR tree-optimization/61335
20380 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20381 new range fails, drop to varying.
20383 2014-05-28 Olivier Hainque <hainque@adacore.com>
20385 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20386 (CPP_SPEC): Add entry for -mcpu=8548.
20387 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20388 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20390 2014-05-28 Tom de Vries <tom@codesourcery.com>
20392 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20393 * lra.c (initialize_lra_reg_info_element): Add init of
20394 actual_call_used_reg_set field.
20395 (lra): Call lra_create_live_ranges before lra_inheritance for
20397 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20399 * lra-constraints.c (need_for_call_save_p): Use
20400 actual_call_used_reg_set instead of call_used_reg_set for
20402 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20404 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20405 Tom de Vries <tom@codesourcery.com>
20407 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20409 (@item -fuse-caller-save): New item.
20411 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20412 Tom de Vries <tom@codesourcery.com>
20414 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20415 OPT_fuse_caller_save.
20417 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20418 Tom de Vries <tom@codesourcery.com>
20420 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20421 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20422 get_call_reg_set_usage.
20423 * resource.c (mark_set_resources, mark_target_live_regs): Use
20424 get_call_reg_set_usage.
20425 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20427 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20428 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20429 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20430 * ira-build.c (ira_create_allocno): Init
20431 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20432 (create_cap_allocno, propagate_allocno_info)
20433 (propagate_some_info_from_allocno)
20434 (copy_info_to_removed_store_destinations): Handle
20435 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20436 * ira-costs.c (ira_tune_allocno_costs): Use
20437 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20439 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20440 Tom de Vries <tom@codesourcery.com>
20442 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20443 and function_used_regs_valid fields.
20444 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20445 find_all_hard_reg_sets.
20446 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20447 (get_call_reg_set_usage): New function.
20448 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20449 * regs.h (get_call_reg_set_usage): Declare.
20451 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20454 * config/dbx.h (License): Add Runtime Library Exception.
20455 * config/newlib-stdint.h (License): Same.
20456 * config/rtems.h (License): Same
20457 * config/initfini-array.h (License): Same
20458 * config/v850/v850.h (License): Same.
20459 * config/v850/v850-opts.h (License): Same
20460 * config/v850/rtems.h (License): Same.
20462 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20465 * doc/extend.texi (Local Labels): Note that label differences are
20466 not supported for AVR.
20468 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20469 Olivier Hainque <hainque@adacore.com>
20471 * rtl.h (set_for_reg_notes): Declare.
20472 * emit-rtl.c (set_for_reg_notes): New function.
20473 (set_unique_reg_note): Use it.
20474 * optabs.c (add_equal_note): Likewise
20476 2014-05-27 Andrew Pinski <apinski@cavium.com>
20478 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20479 Use <w> for the register in assembly template.
20480 (stack_protect_test): Use the mode of operands[0] for the result.
20481 (stack_protect_test_<mode>): Use <w> for the register
20482 in assembly template.
20484 2014-05-27 DJ Delorie <dj@redhat.com>
20486 * config/rx/rx.c (add_vector_labels): New.
20487 (rx_output_function_prologue): Call it.
20488 (rx_handle_func_attribute): Don't require empty arguments.
20489 (rx_handle_vector_attribute): New.
20490 (rx_attribute_table): Add "vector" attribute.
20491 * doc/extend.texi (interrupt, vector): Document new/changed
20492 RX-specific attributes.
20494 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20496 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20498 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20499 predicate to detect a negative quotient.
20501 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20503 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20504 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20505 Add X - Y CMP 0 to X CMP Y transformation.
20506 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20508 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
20510 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20513 2014-05-27 Steve Ellcey <sellcey@mips.com>
20515 * config/mips/mips.c: Add include of cgraph.h.
20517 2014-05-27 Richard Biener <rguenther@suse.de>
20519 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20521 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20524 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20525 * config/arm/arm-cores.def (License): Same.
20526 * config/arm/arm-opts.h (License): Same.
20527 * config/arm/aout.h (License): Same.
20528 * config/arm/bpabi.h (License): Same.
20529 * config/arm/elf.h (License): Same.
20530 * config/arm/linux-elf.h (License): Same.
20531 * config/arm/linux-gas.h (License): Same.
20532 * config/arm/netbsd-elf.h (License): Same.
20533 * config/arm/uclinux-eabi.h (License): Same.
20534 * config/arm/uclinux-elf.h (License): Same.
20535 * config/arm/vxworks.h (License): Same.
20537 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20539 * config/arm/neon.md (neon_bswap<mode>): New pattern.
20540 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20541 (arm_init_neon_builtins): Handle NEON_BSWAP.
20542 Define required type nodes.
20543 (arm_expand_neon_builtin): Handle NEON_BSWAP.
20544 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20545 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20546 * config/arm/iterators.md (VDQHSD): New mode iterator.
20548 2014-05-27 Richard Biener <rguenther@suse.de>
20550 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20551 Try using literal operands when comparing value-ranges failed.
20553 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20555 * ira.c (commutative_operand): Adjust for change to recog_data.
20556 [Missing from previous commit.]
20558 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20560 * system.h (TEST_BIT): New macro.
20561 * recog.h (alternative_mask): New type.
20562 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20563 (recog_data_d): Replace alternative_enabled_p array with
20564 enabled_alternatives.
20565 (target_recog): New structure.
20566 (default_target_recog, this_target_recog): Declare.
20567 (get_enabled_alternatives, recog_init): Likewise.
20568 * recog.c (default_target_recog, this_target_recog): New variables.
20569 (get_enabled_alternatives): New function.
20570 (extract_insn): Use it.
20571 (recog_init): New function.
20572 (preprocess_constraints, constrain_operands): Adjust for change to
20574 * postreload.c (reload_cse_simplify_operands): Likewise.
20575 * reload.c (find_reloads): Likewise.
20576 * ira-costs.c (record_reg_classes): Likewise.
20577 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
20578 all alternatives after a disabled one would be skipped.
20579 (ira_implicitly_set_insn_hard_regs): Likewise.
20580 * ira.c (ira_setup_alts): Adjust for change to recog_data.
20581 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20582 with enabled_alternatives.
20583 * lra.c (free_insn_recog_data): Update accordingly.
20584 (lra_update_insn_recog_data): Likewise.
20585 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
20586 * lra-constraints.c (process_alt_operands): Likewise. Handle
20587 only_alternative as part of the enabled mask.
20588 * target-globals.h (this_target_recog): Declare.
20589 (target_globals): Add a recog field.
20590 (restore_target_globals): Restore this_target_recog.
20591 * target-globals.c: Include recog.h.
20592 (default_target_globals): Initialize recog field.
20593 (save_target_globals): Likewise.
20594 * reginfo.c (reinit_regs): Call recog_init.
20595 * toplev.c (backend_init_target): Likewise.
20597 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20599 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20600 rather than any named insn's code.
20602 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20605 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20606 * config/arm/arm-cores.def (License): Same.
20608 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
20610 * tree.h (decl_comdat_group): Declare.
20611 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20612 * tree.c (decl_comdat_group): Here.
20614 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
20616 PR rtl-optimization/61222
20617 * combine.c (simplify_shift_const_1): When moving a PLUS outside
20618 the shift, truncate the PLUS operand to the result mode.
20620 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
20623 * config/i386/i386.c (ix86_rtx_costs)
20624 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20627 2014-05-26 Martin Jambor <mjambor@suse.cz>
20629 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20632 2014-05-26 Richard Biener <rguenther@suse.de>
20634 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20635 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20636 Provide specializations.
20637 (wi::int_traits <HOST_WIDE_INT>,
20638 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20640 2014-05-26 Alan Modra <amodra@gmail.com>
20643 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20644 params and return a bool. Remove dead code. Update comment.
20645 Assert we have a const_int source. Remove bogus code from
20646 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
20647 handling of constants > 2G and reg_equal note, from..
20648 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
20649 return value. Update comment. If we can, use a new pseudo
20650 for intermediate calculations.
20651 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20653 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20654 call to rs6000_emit_set_const in splitter.
20655 (movdi_internal64+2, +3): Likewise.
20657 2014-05-26 Richard Biener <rguenther@suse.de>
20659 * system.h: Define __STDC_FORMAT_MACROS before
20660 including inttypes.h.
20661 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20662 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20663 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20664 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20665 HOST_WIDEST_INT_C): Remove.
20666 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20667 if C99 inttypes.h is not available.
20668 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20669 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20670 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20671 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20672 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20673 (struct output_info): Likewise.
20674 (print_statistics): Adjust.
20675 (dump_bitmap_statistics): Likewise.
20676 * bt-load.c (migrate_btr_defs): Print with PRId64.
20677 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20678 (MAX_SAFE_MULTIPLIER): Adjust.
20679 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20680 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20681 dump_cgraph_node): Likewise.
20682 * final.c (dump_basic_block_info): Likewise.
20683 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20684 * gcov.c (format_gcov): Likewise.
20685 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
20687 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20688 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20689 (inline_small_functions, dump_overall_stats, dump_inline_stats):
20690 Use PRId64 for dumping.
20691 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20692 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20693 (add_allocno_hard_regs): Adjust.
20694 * loop-doloop.c (doloop_modify): Print using PRId64.
20695 * loop-iv.c (inverse): Compute in uint64_t.
20696 (determine_max_iter, iv_number_of_iterations): Likewise.
20697 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20698 Print using PRId64.
20699 * lto-streamer-out.c (write_symbol): Use uint64_t.
20700 * mcf.c (CAP_INFINITY): Use int64_t maximum.
20701 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20702 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20703 * modulo-sched.c (const_iteration_count): Use int64_t.
20704 (sms_schedule): Dump using PRId64.
20705 * predict.c (dump_prediction): Likewise.
20706 * pretty-print.h (pp_widest_integer): Remove.
20707 * profile.c (get_working_sets, is_edge_inconsistent,
20708 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20709 * tree-pretty-print.c (pp_double_int): Remove case handling
20710 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20711 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20713 (pass_optimize_bswap::execute): Remove restriction on hosts.
20714 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20715 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20716 * tree.c (widest_int_cst_value): Remove.
20717 * tree.h (widest_int_cst_value): Likewise.
20718 * value-prof.c (dump_histogram_value): Print using PRId64.
20719 * gengtype.c (main): Also inject int64_t.
20720 * ggc-page.c (struct max_alignment): Use int64_t.
20721 * alloc-pool.c (struct allocation_object_def): Likewise.
20722 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20724 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20725 * doc/tm.texi: Regenerated.
20726 * gengtype-lex.l (IWORD): Handle [u]int64_t.
20727 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20728 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20729 mmix_output_register_setting): Use [u]int64_t in prototypes.
20730 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20731 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20732 mmix_output_octa, mmix_output_shifted_value): Adjust.
20733 (mmix_intval): Adjust. Remove unreachable case.
20734 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20736 2014-05-26 Richard Biener <rguenther@suse.de>
20738 * configure.ac: Drop __int64 type check. Insist that we
20739 found uint64_t and int64_t.
20740 * hwint.h (HOST_BITS_PER___INT64): Remove.
20741 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20742 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20743 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20744 (HOST_WIDEST_FAST_INT): Remove __int64 case.
20745 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20746 for dst_q_src_df_rms_cdt.
20747 * configure: Regenerate.
20748 * config.in: Likewise.
20750 2014-05-26 Michael Tautschnig <mt@debian.org>
20753 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20754 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20756 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20758 PR rtl-optimization/61278
20759 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20761 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20763 PR rtl-optimization/61220
20764 Part of PR rtl-optimization/61225
20765 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20766 insn; skip split_edge for a block with only one successor.
20768 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20770 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20773 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20775 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20776 (update_vtable_references): New function.
20777 (function_and_variable_visibility): Rewrite also vtable initializers.
20778 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20780 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20782 * ggc.h (ggc_grow): New function.
20783 * ggc-none.c (ggc_grow): New function.
20784 * ggc-page.c (ggc_grow): Likewise.
20786 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20788 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20789 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20790 comdat_can_be_unshared_p, cgraph_externally_visible_p,
20791 varpool_externally_visible_p, can_replace_by_local_alias,
20792 update_visibility_by_resolution_info, function_and_variable_visibility,
20793 pass_data_ipa_function_and_variable_visibility,
20794 make_pass_ipa_function_and_variable_visibility,
20795 whole_program_function_and_variable_visibility,
20796 pass_data_ipa_whole_program_visibility,
20797 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20798 * cgraph.h (cgraph_local_node_p): Declare.
20799 * ipa-visibility.c: New file.
20800 * Makefile.in (OBJS): Add ipa-visiblity.o
20802 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20804 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20805 that var decl is available.
20807 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20809 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20810 symtab_node pointer.
20811 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20812 (find_decls_types_r): Do not walk COMDAT_GROUP.
20813 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20814 * varasm.c (make_decl_one_only): Use set_comdat_group;
20815 create node if needed.
20816 * ipa-inline-transform.c (save_inline_function_body): Update
20817 way we decl->symtab mapping.
20818 * symtab.c (symtab_hash, hash_node, eq_node
20819 symtab_insert_node_to_hashtable): Remove.
20820 (symtab_register_node): Update.
20821 (symtab_unregister_node): Update.
20822 (symtab_get_node): Reimplement as inline function.
20823 (symtab_add_to_same_comdat_group): Update.
20824 (symtab_dissolve_same_comdat_group_list): Update.
20825 (dump_symtab_base): Update.
20826 (verify_symtab_base): Update.
20827 (symtab_make_decl_local): Update.
20828 (fixup_same_cpp_alias_visibility): Update.
20829 (symtab_nonoverwritable_alias): Update.
20830 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20831 * ipa.c (update_visibility_by_resolution_info): UPdate.
20832 * bb-reorder.c: Include cgraph.h
20833 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20834 with comdat groups.
20835 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20836 * cgraph.c (cgraph_get_create_node): Update.
20837 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20839 (symtab_get_node): Make inline.
20840 (symtab_insert_node_to_hashtable): Remove.
20841 (symtab_can_be_discarded): Update.
20842 (decl_comdat_group): New function.
20843 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20845 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20847 (read_comdat_group): New function.
20848 (input_node, input_varpool_node): Use it.
20849 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20851 * mips.c (mips_start_unique_function): Likewise.
20852 (ix86_code_end): Likewise.
20853 (rs6000_code_end): Likweise.
20854 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20856 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20858 * gengtype-state.c (fatal_reading_state): Bring offline.
20859 * optabs.c (widening_optab_handler): Bring offline.
20860 * optabs.h (widening_optab_handler): Likewise.
20861 * final.c (get_attr_length_1): Likewise.
20863 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20865 * sched-int.h (sd_iterator_cond): Manually tail recurse.
20867 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20869 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20870 (ppc440-compare): Include shift with dot.
20871 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20872 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20874 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20876 (e6500_sfx2): Include it.
20877 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20878 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20879 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20880 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20881 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20882 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20883 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20884 *lshiftrt_internal1le, *lshiftrt_internal1be,
20885 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20886 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20887 *rotldi3_internal10le, *rotldi3_internal10be,
20888 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20889 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20890 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20891 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20892 define_insns): Use type "shift" in the appropriate alternatives.
20894 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20896 * config/rs6000/rs6000.md (type): Add "logical". Delete
20898 (dot): Adjust comment.
20899 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20900 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20901 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20902 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20903 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20904 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20905 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20906 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20908 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20909 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20910 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20911 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20912 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20913 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20914 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20915 * config/rs6000/8540.md (ppc8540_su): Adjust.
20916 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20917 cell-cmp-microcoded): Adjust.
20918 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20919 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20920 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20921 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20922 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20923 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20924 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20925 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20926 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20928 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20929 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20930 Adjust. Adjust comment.
20931 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20932 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20934 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20936 * config/rs6000/rs6000.md (type): Add "add".
20937 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20938 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20939 define_insns): Use it.
20940 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20942 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20943 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20944 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20945 * config/rs6000/601.md (ppc601-integer): Adjust.
20946 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20947 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20948 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20949 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20950 * config/rs6000/8540.md (ppc8540_su): Adjust.
20951 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20952 cell-cmp-microcoded): Adjust.
20953 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20954 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20955 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20956 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20957 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20958 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20959 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20960 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20961 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20963 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20964 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20965 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20966 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20968 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20970 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20971 "delayed_compare", "var_delayed_compare".
20972 (var_shift): New attribute.
20973 (cell_micro): Adjust.
20974 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20975 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20976 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20977 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20978 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20979 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20980 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20981 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20982 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20983 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20984 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20985 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20986 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20987 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20988 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20989 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20990 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20991 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20992 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20993 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20994 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20995 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20996 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20997 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20998 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21000 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21001 * config/rs6000/440.md (ppc440-integer): Adjust.
21002 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21003 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
21004 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21005 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21006 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21007 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21008 * config/rs6000/8540.md (ppc8540_su): Adjust.
21009 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21010 cell-cmp-microcoded): Adjust.
21011 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
21012 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21013 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
21014 e500mc64_delayed): Adjust.
21015 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
21016 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
21017 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21018 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21019 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21020 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21021 power6-delayed-compare, power6-var-delayed-compare): Adjust.
21022 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21023 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21025 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21026 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21028 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21030 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
21031 (bits): New mode_attr.
21032 (idiv_ldiv): Delete mode_attr.
21033 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21034 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21035 rs6000_adjust_priority, is_nonpipeline_insn,
21036 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21038 * config/rs6000/40x.md (ppc403-idiv): Adjust.
21039 * config/rs6000/440.md (ppc440-idiv): Adjust.
21040 * config/rs6000/476.md (ppc476-idiv): Adjust.
21041 * config/rs6000/601.md (ppc601-idiv): Adjust.
21042 * config/rs6000/603.md (ppc603-idiv): Adjust.
21043 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21044 ppc620-ldiv): Adjust.
21045 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21046 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21047 * config/rs6000/8540.md (ppc8540_divide): Adjust.
21048 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21049 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21050 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21051 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21052 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21053 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21054 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21055 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21056 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21057 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21058 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21059 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21060 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21061 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21062 * config/rs6000/titan.md (titan_fxu_div): Adjust.
21064 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21066 * config/rs6000/rs6000.md (type): Delete "insert_word",
21067 "insert_dword". Add "insert".
21068 (size): Update comment.
21069 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21070 insn_must_be_first_in_group): Adjust.
21071 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21072 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21073 *insvsi_internal6, insvdi_internal): Adjust.
21075 * config/rs6000/40x.md (ppc403-integer): Adjust.
21076 * config/rs6000/440.md (ppc440-integer): Adjust.
21077 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21078 * config/rs6000/601.md (ppc601-integer): Adjust.
21079 * config/rs6000/603.md (ppc603-integer): Adjust.
21080 * config/rs6000/6xx.md (ppc604-integer): Adjust.
21081 * config/rs6000/7450.md (ppc7450-integer): Adjust.
21082 * config/rs6000/7xx.md (ppc750-integer): Adjust.
21083 * config/rs6000/8540.md (ppc8540_su): Adjust.
21084 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21085 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21086 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21087 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21088 * config/rs6000/e5500.md (e5500_sfx): Adjust.
21089 * config/rs6000/e6500.md (e6500_sfx): Adjust.
21090 * config/rs6000/mpc.md (mpccore-integer): Adjust.
21091 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21092 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21093 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21094 * config/rs6000/power7.md (power7-integer): Adjust.
21095 * config/rs6000/power8.md (power8-1cyc): Adjust.
21096 * config/rs6000/rs64.md (rs64a-integer): Adjust.
21097 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21099 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21101 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
21102 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21103 (size): New attribute.
21104 (dot): New attribute.
21105 (cell_micro): Adjust.
21106 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21107 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21108 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21109 umuldi3_highpart): Adjust.
21110 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21111 rs6000_adjust_priority, is_nonpipeline_insn,
21112 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21114 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21115 ppc405-imul3): Adjust.
21116 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21117 * config/rs6000/476.md (ppc476-imul): Adjust.
21118 * config/rs6000/601.md (ppc601-imul): Adjust.
21119 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21120 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21121 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21122 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21123 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21125 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21126 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21127 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21128 cell-imul): Adjust.
21129 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21130 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21131 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21132 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21133 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21134 * config/rs6000/mpc.md (mpccore-imul): Adjust.
21135 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21136 power4-lmul, power4-imul, power4-imul3): Adjust.
21137 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21138 power5-lmul, power5-imul, power5-imul3): Adjust.
21139 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21140 power6-lmul, power6-imul, power6-imul3): Adjust.
21141 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21142 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21144 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21145 rs64a-lmul): Adjust.
21146 * config/rs6000/titan.md (titan_imul): Adjust.
21148 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21150 * config/rs6000/rs6000.md (type): Add new value "halfmul".
21151 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21152 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21153 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21154 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21155 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21156 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21157 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21158 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21159 * config/rs6000/titan.md: Delete nonsensical comment.
21160 (titan_imul): Add type imul3.
21161 (titan_mulhw): Remove type imul3; add type halfmul.
21163 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21165 * config/rs6000/rs6000.md (type): Reorder, reformat.
21167 2014-05-23 Martin Jambor <mjambor@suse.cz>
21169 PR tree-optimization/53787
21170 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21171 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21172 analysis_done, update all uses.
21173 * ipa-prop.c: Include domwalk.h
21174 (param_analysis_info): Removed.
21175 (param_aa_status): New type.
21176 (ipa_bb_info): Likewise.
21177 (func_body_info): Likewise.
21178 (ipa_get_bb_info): New function.
21179 (aa_overwalked): Likewise.
21180 (find_dominating_aa_status): Likewise.
21181 (parm_bb_aa_status_for_bb): Likewise.
21182 (parm_preserved_before_stmt_p): Changed to use new param AA info.
21183 (load_from_unmodified_param): Accept func_body_info as a parameter
21184 instead of parms_ainfo.
21185 (parm_ref_data_preserved_p): Changed to use new param AA info.
21186 (parm_ref_data_pass_through_p): Likewise.
21187 (ipa_load_from_parm_agg_1): Likewise. Update callers.
21188 (compute_complex_assign_jump_func): Changed to use new param AA info.
21189 (compute_complex_ancestor_jump_func): Likewise.
21190 (ipa_compute_jump_functions_for_edge): Likewise.
21191 (ipa_compute_jump_functions): Removed.
21192 (ipa_compute_jump_functions_for_bb): New function.
21193 (ipa_analyze_indirect_call_uses): Likewise, moved variable
21195 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21196 and info, moved variable declarations down.
21197 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21199 (ipa_analyze_stmt_uses): Likewise.
21200 (ipa_analyze_params_uses): Removed.
21201 (ipa_analyze_params_uses_in_bb): New function.
21202 (ipa_analyze_controlled_uses): Likewise.
21203 (free_ipa_bb_info): Likewise.
21204 (analysis_dom_walker): New class.
21205 (ipa_analyze_node): Handle node-specific forbidden analysis,
21206 initialize and free func_body_info, use dominator walker.
21207 (ipcp_modif_dom_walker): New class.
21208 (ipcp_transform_function): Create and free func_body_info, use
21209 ipcp_modif_dom_walker, moved a lot of functionality there.
21211 2014-05-23 Marek Polacek <polacek@redhat.com>
21212 Jakub Jelinek <jakub@redhat.com>
21214 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21215 * gcc.c (sanitize_spec_function): Likewise.
21216 * convert.c (convert_to_integer): Include "ubsan.h". Add
21217 floating-point to integer instrumentation.
21218 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21219 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21220 SANITIZE_NONDEFAULT.
21221 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21222 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21223 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21224 * ubsan.c: Include "realmpfr.h" and "dfp.h".
21225 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21226 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21227 float/double/long double.
21228 (ubsan_instrument_float_cast): New function.
21229 * ubsan.h (ubsan_instrument_float_cast): Declare.
21231 2014-05-23 Jiong Wang <jiong.wang@arm.com>
21233 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21235 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
21236 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21237 Adjust for tailcalling through registers.
21238 * config/aarch64/aarch64.h (enum reg_class): New caller save
21240 (REG_CLASS_NAMES): Likewise.
21241 (REG_CLASS_CONTENTS): Likewise.
21242 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21243 Allow tailcalling without decls.
21245 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21247 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21248 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21250 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21251 gsi, and variables v_* to v*.
21253 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
21255 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21257 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21259 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21260 * omp-low.c: Update accordingly.
21262 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21263 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21264 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21265 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21266 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21267 GF_OMP_TARGET_KIND_UPDATE.
21269 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21270 Explicitly enumerate the expected region types.
21272 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
21275 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
21276 documentation; the old documentation didn't clearly state the
21277 constraints on the contents of the pointed-to storage.
21279 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21281 Fix bootstrap error on ia64
21282 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21283 Return default value.
21285 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
21287 PR tree-optimization/54733
21288 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21290 (find_bswap_or_nop_load): New.
21291 (find_bswap_1): Renamed to ...
21292 (find_bswap_or_nop_1): This. Also add support for memory source.
21293 (find_bswap): Renamed to ...
21294 (find_bswap_or_nop): This. Also add support for memory source and
21295 detection of bitwise operations equivalent to load in target
21297 (execute_optimize_bswap): Likewise. Also move its leading comment back
21298 in place and split statement transformation into ...
21299 (bswap_replace): This.
21301 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21303 PR rtl-optimization/61215
21304 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21305 simplify_gen_subreg until final substitution.
21307 2014-05-23 Alan Modra <amodra@gmail.com>
21310 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21311 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21312 Use "Y" constraint rather than "m".
21314 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21316 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21318 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21319 New function declaration.
21320 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21321 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21322 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21323 (aarch64_init_builtins) : Initialize builtins
21324 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21325 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21326 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21327 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21328 and __builtins_aarch64_set_fpsr.
21329 (aarch64_atomic_assign_expand_fenv): New function.
21330 * config/aarch64/aarch64.md (set_fpcr): New pattern.
21331 (get_fpcr) : Likewise.
21332 (set_fpsr) : Likewise.
21333 (get_fpsr) : Likewise.
21334 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21335 and UNSPECV_SET_FPSR.
21336 * doc/extend.texi (AARCH64 Built-in Functions) : Document
21337 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21338 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21340 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21342 PR rtl-optimization/60969
21343 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21344 constraints. Set up mem cost for NO_REGS case.
21346 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
21348 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21350 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
21352 * config/darwin.c: Include "lto-section-names.h".
21353 (LTO_SEGMENT_NAME): Don't define.
21354 * config/i386/winnt.c: Include "lto-section-names.h".
21355 * lto-streamer.c: Include "lto-section-names.h".
21356 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21357 * lto-wrapper.c: Include "lto-section-names.h".
21358 (LTO_SECTION_NAME_PREFIX): Don't define.
21359 * lto-section-names.h: New file.
21360 * cgraphunit.c: Include "lto-section-names.h".
21362 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
21364 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21366 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
21369 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21371 2014-05-22 Nick Clifton <nickc@redhat.com>
21373 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21375 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
21377 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21378 -> (T)A transformation to integer types.
21380 2014-05-22 Teresa Johnson <tejohnson@google.com>
21382 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21383 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21384 (gcov_rewrite): Use gcov_nonruntime_assert.
21385 (gcov_open): Ditto.
21386 (gcov_write_words): Ditto.
21387 (gcov_write_length): Ditto.
21388 (gcov_read_words): Use gcov_nonruntime_assert, and remove
21389 gcc_assert from IN_LIBGCOV code.
21390 (gcov_read_summary): Use gcov_error to flag profile corruption.
21391 (gcov_sync): Use gcov_nonruntime_assert.
21392 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21393 (gcov_histo_index): Use gcov_nonruntime_assert.
21394 (static void gcov_histogram_merge): Ditto.
21395 (compute_working_sets): Ditto.
21396 * gcov-io.h (gcov_nonruntime_assert): Define.
21397 (gcov_error): Define for !IN_LIBGCOV
21399 2014-05-22 Richard Biener <rguenther@suse.de>
21401 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21402 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21403 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21404 and deallocation site.
21405 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21406 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21407 passing through the incoming points-to set.
21408 (handle_lhs_call): Use flags argument instead of recomputing it.
21409 (find_func_aliases_for_call): Call handle_lhs_call with proper
21412 2014-05-22 Jakub Jelinek <jakub@redhat.com>
21414 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21415 all padding bits in REAL_VALUE_TYPE are cleared.
21417 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21419 Cleanup and improve multipass_dfa_lookahead_guard
21420 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21421 (core2i7_first_cycle_multipass_begin,)
21422 (core2i7_first_cycle_multipass_issue,)
21423 (core2i7_first_cycle_multipass_backtrack): Update signature.
21424 * config/ia64/ia64.c
21425 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21426 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21427 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21429 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21430 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
21432 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21434 * doc/tm.texi: Regenerate.
21436 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21437 * haifa-sched.c (ready_try): Make signed to allow negative values.
21438 (rebug_ready_list_1): Update.
21439 (choose_ready): Simplify.
21440 (sched_extend_ready_list): Update.
21442 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21444 Remove IA64 speculation tweaking flags
21445 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21446 speculation tuning flags.
21447 (msched-prefer-non-data-spec-insns,)
21448 (msched-prefer-non-control-spec-insns): Obsolete options.
21449 * haifa-sched.c (choose_ready): Remove handling of
21450 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21451 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21452 and PREFER_NON_DATA_SPEC.
21453 * sel-sched.c (process_spec_exprs): Remove handling of
21454 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21456 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21458 Improve scheduling debug output
21459 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21460 (advance_one_cycle): Update.
21461 (schedule_insn, queue_to_ready): Add debug printouts.
21462 (debug_ready_list_1): New static function.
21463 (debug_ready_list): Update.
21464 (max_issue): Add debug printouts.
21465 (dump_insn_stream): New static function.
21466 (schedule_block): Use it. Also better indent printouts.
21468 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21470 Fix sched_insn debug counter
21471 * haifa-sched.c (schedule_insn): Update.
21472 (struct haifa_saved_data): Add nonscheduled_insns_begin.
21473 (save_backtrack_point, restore_backtrack_point): Update.
21474 (first_nonscheduled_insn): New static function.
21475 (queue_to_ready, choose_ready): Use it.
21476 (schedule_block): Init nonscheduled_insns_begin.
21477 (sched_emit_insn): Update.
21480 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21482 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21484 (aarch64_secondary_reload) : LikeWise.
21485 (aarch64_class_max_nregs) : Remove CORE_REGS.
21486 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21487 (REG_CLASS_NAMES) : Likewise.
21488 (REG_CLASS_CONTENTS) : LikeWise.
21489 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21491 2014-05-21 Guozhi Wei <carrot@google.com>
21494 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21496 (vqdmulhq_n_s16): Likewise.
21498 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21500 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21502 2014-05-21 Marek Polacek <polacek@redhat.com>
21505 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21507 2014-05-21 Martin Jambor <mjambor@suse.cz>
21509 * doc/invoke.texi (Optimize Options): Document parameters
21510 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21511 ipa-cp-array-index-hint-bonus.
21513 2014-05-21 Mark Wielaard <mjw@redhat.com>
21516 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21517 version >= 3 or not strict DWARF.
21518 * langhooks.h (struct lang_hooks_for_types): Add
21519 enum_underlying_base_type.
21520 * langhooks.c (lhd_enum_underlying_base_type): New function.
21521 * gcc/langhooks.h (struct lang_hooks_for_types): Add
21522 enum_underlying_base_type.
21523 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21524 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21525 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21527 2014-05-21 Richard Biener <rguenther@suse.de>
21529 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21531 2014-05-21 John Marino <gnugcc@marino.st>
21533 * config.gcc (*-*-dragonfly*): New target.
21534 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21535 * configure: Regenerate.
21536 * config/dragonfly-stdint.h: New.
21537 * config/dragonfly.h: New.
21538 * config/dragonfly.opt: New.
21539 * config/i386/dragonfly.h: New.
21540 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21542 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21544 * tree.def (VOID_CST): New.
21545 * tree-core.h (TI_VOID): New.
21546 * tree.h (void_node): New.
21547 * tree.c (tree_node_structure_for_code, tree_code_size)
21548 (iterative_hash_expr): Handle VOID_CST.
21549 (build_common_tree_nodes): Initialize void_node.
21551 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
21553 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21555 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21557 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21560 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21561 flag_reorder_blocks_and_partition.
21562 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21564 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21567 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
21569 (*addc_r_t): Add new insn_and_split.
21571 2014-05-21 Jakub Jelinek <jakub@redhat.com>
21573 PR middle-end/61252
21574 * omp-low.c (handle_simd_reference): New function.
21575 (lower_rec_input_clauses): Use it. Defer adding reference
21576 initialization even for reduction without placeholder if in simd,
21577 handle it properly later on.
21579 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21581 PR tree-optimization/60899
21582 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21583 assume all static symbols will have definition wile parsing and
21584 check the do have definition later in compilation; check that
21585 variable referring symbol will be output before concluding that
21586 reference is safe; be conservative for referring local statics;
21587 be more precise about when comdat is output in other partition.
21589 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21592 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21594 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21595 (ipa_inline): Loop inline_to_all_callers until no more aliases
21598 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21600 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21601 set writeonly flag only for vars actually written to.
21603 2014-05-20 Dehao Chen <dehao@google.com>
21605 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21606 and callee count to get clone count.
21607 * tree-inline.c (expand_call_inline): Use callee count instead of bb
21608 count in copy_body.
21610 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21612 PR rtl-optimization/61243
21613 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21615 2014-05-20 Xinliang David Li <davidxl@google.com>
21617 * cgraphunit.c (walk_polymorphic_call_targets): Add
21618 dbgcnt and fopt-info support.
21619 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21620 * ipa-devirt.c (ipa_devirt): Ditto.
21621 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21622 * ipa.c (walk_polymorphic_call_targets): Ditto.
21623 * gimple-fold.c (fold_gimple_assign): Ditto.
21624 (gimple_fold_call): Ditto.
21625 * dbgcnt.def: New counter.
21627 2014-05-20 DJ Delorie <dj@redhat.com>
21629 * config/msp430/msp430.md (split): Don't allow subregs when
21630 splitting SImode adds.
21631 (andneghi): Fix subtraction logic.
21632 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21634 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21636 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21638 * except.c (switch_to_exception_section, resolve_unique_section,
21639 get_named_text_section, default_function_rodata_section,
21640 align_variable, get_block_for_decl, default_section_type_flags):
21641 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21642 * symtab.c (symtab_add_to_same_comdat_group,
21643 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21644 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21646 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21647 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21648 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21649 (c6x_function_in_section_p): Likewise.
21650 * config/darwin.c (machopic_select_section): Likewise.
21651 * config/arm/arm.c (arm_function_in_section_p): Likewise.
21652 * config/mips/mips.c (mips_function_rodata_section): Likewise.
21653 * config/mep/mep.c (mep_select_section): LIkewise.
21654 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21656 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
21658 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21659 EH region of calls to pure functions that can throw an exception.
21660 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21661 (copy_reference_ops_from_call): Also copy the EH region of the call if
21662 it can throw an exception.
21664 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21666 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21667 nested VEC_SELECTs that are inverses of each other.
21669 2014-05-20 Richard Biener <rguenther@suse.de>
21671 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21672 (extract_and_process_scc_for_name): not here.
21673 (cond_dom_walker::before_dom_children): Only process
21674 stmts that end the BB in interesting ways.
21675 (run_scc_vn): Mark param uses as visited.
21677 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21679 * config/arm/arm.md (arith_shiftsi): Do not predicate for
21682 2014-05-20 Nick Clifton <nickc@redhat.com>
21684 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21685 (msp430_gimplify_va_arg_expr): New function.
21686 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21688 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21689 operand 0 in order to prevent confusion about the number of
21690 registers involved.
21692 2014-05-20 Richard Biener <rguenther@suse.de>
21694 PR tree-optimization/61221
21695 * tree-ssa-pre.c (el_to_update): Remove.
21696 (eliminate_dom_walker::before_dom_children): Handle released
21697 VDEFs by value-numbering them to the associated VUSE. Update
21698 stmt immediately for substituted call address.
21699 (eliminate): Remove delayed stmt updating code.
21700 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21701 possibly late re-numbered vuses.
21702 (vn_reference_lookup_2): Adjust.
21703 (vn_reference_lookup_pieces): Likewise.
21704 (vn_reference_lookup): Likewise.
21706 2014-05-20 Richard Biener <rguenther@suse.de>
21708 * config.gcc: Remove need_64bit_hwint.
21709 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21710 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21712 * config.in: Regenerate.
21713 * configure: Likewise.
21715 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
21717 * doc/extend.texi: Create Label Attributes section,
21718 move all label attributes into it and reference it.
21720 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
21722 * arm.c (thumb1_reorg): When scanning backwards skip anything
21723 that's not a proper insn.
21725 2014-05-19 Richard Biener <rguenther@suse.de>
21727 PR tree-optimization/61221
21728 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21729 Do nothing for unreachable blocks.
21730 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21731 Improve unreachability detection.
21733 2014-05-19 Richard Biener <rguenther@suse.de>
21735 PR tree-optimization/61209
21736 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21738 2014-05-19 Nick Clifton <nickc@redhat.com>
21740 * except.c (init_eh): Fix computation of builtin setjmp buffer
21741 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21743 2014-05-19 Richard Biener <rguenther@suse.de>
21745 PR tree-optimization/61184
21746 * tree-vrp.c (is_negative_overflow_infinity): Use
21747 TREE_OVERFLOW_P and do that check first.
21748 (is_positive_overflow_infinity): Likewise.
21749 (is_overflow_infinity): Likewise.
21750 (vrp_operand_equal_p): Properly treat operands with
21751 differing overflow as not equal.
21753 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
21755 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21756 shift simplification where it was intended.
21758 2014-05-19 Christian Bruel <christian.bruel@st.com>
21761 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21763 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
21766 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21769 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21771 * reg-notes.def (CROSSING_JUMP): Likewise.
21772 * rtl.h (rtx_def): Update comment for jump flag.
21773 (CROSSING_JUMP_P): Define.
21774 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21775 of a REG_CROSSING_JUMP note.
21776 * cfghooks.c (tidy_fallthru_edges): Likewise.
21777 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21778 * emit-rtl.c (try_split): Likewise.
21779 * haifa-sched.c (sched_create_recovery_edges): Likewise.
21780 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21781 * jump.c (redirect_jump_2): Likewise.
21782 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21783 (relax_delay_slots): Likewise.
21784 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21785 (bbit_di): Likewise.
21786 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21787 * config/sh/sh.md (jump_compact): Likewise.
21788 * bb-reorder.c (rotate_loop): Likewise.
21789 (pass_duplicate_computed_gotos::execute): Likewise.
21790 (add_reg_crossing_jump_notes): Rename to...
21791 (update_crossing_jump_flags): ...this.
21792 (pass_partition_blocks::execute): Update accordingly.
21794 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21796 * tree.h: Remove extraneous template <>.
21798 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21800 * ipa.c (symtab_remove_unreachable_nodes): Remove
21801 symbol from comdat group if its body was eliminated.
21802 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21803 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21804 (symtab_unregister_node): ... this one.
21805 (verify_symtab_base): More strict checking of comdats.
21806 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21808 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21810 * tree-pass.h (make_pass_ipa_comdats): New pass.
21811 * timevar.def (TV_IPA_COMDATS): New timevar.
21812 * passes.def (pass_ipa_comdats): Add.
21813 * Makefile.in (OBJS): Add ipa-comdats.o
21814 * ipa-comdats.c: New file.
21816 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21818 * ipa.c (update_visibility_by_resolution_info): New function.
21819 (function_and_variable_visibility): Use it.
21821 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21823 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21825 (FOR_EACH_DEFINED_SYMBOL): New macro.
21826 (varpool_first_static_initializer, varpool_next_static_initializer,
21827 varpool_first_defined_variable, varpool_next_defined_variable):
21829 (symtab_in_same_comdat_p): Correctly deal with inline functions.
21831 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21833 * ggc-page.c (ggc_handle_finalizers): Add comment.
21835 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21837 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21838 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21839 (ggc_internal_cleared_alloc): Likewise.
21840 * ggc-page.c (finalizer): New class.
21841 (vec_finalizer): Likewise.
21842 (globals::finalizers): New member.
21843 (globals::vec_finalizers): Likewise.
21844 (ggc_internal_alloc): Record the finalizer if any for the block being
21846 (ggc_handle_finalizers): New function.
21847 (ggc_collect): Call ggc_handle_finalizers.
21848 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21850 (ggc_internal_cleared_alloc): Likewise.
21851 (finalize): New function.
21852 (need_finalization_p): Likewise.
21853 (ggc_alloc): Install the type's destructor as the finalizer if it
21854 might do something.
21855 (ggc_cleared_alloc): Likewise.
21856 (ggc_vec_alloc): Likewise.
21857 (ggc_cleared_vec_alloc): Likewise.
21859 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21861 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21863 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21865 * alias.c (record_alias_subset): Adjust.
21866 * bitmap.c (bitmap_element_allocate): Likewise.
21867 (bitmap_gc_alloc_stat): Likewise.
21868 * cfg.c (init_flow): Likewise.
21869 (alloc_block): Likewise.
21870 (unchecked_make_edge): Likewise.
21871 * cfgloop.c (alloc_loop): Likewise.
21872 (flow_loops_find): Likewise.
21873 (rescan_loop_exit): Likewise.
21874 * cfgrtl.c (init_rtl_bb_info): Likewise.
21875 * cgraph.c (insert_new_cgraph_node_version): Likewise.
21876 (cgraph_allocate_node): Likewise.
21877 (cgraph_create_edge_1): Likewise.
21878 (cgraph_allocate_init_indirect_info): Likewise.
21879 * cgraphclones.c (cgraph_clone_edge): Likewise.
21880 * cgraphunit.c (add_asm_node): Likewise.
21881 (init_lowered_empty_function): Likewise.
21882 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21883 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21884 (alpha_use_linkage): Likewise.
21885 * config/arc/arc.c (arc_init_machine_status): Likewise.
21886 * config/arm/arm.c (arm_init_machine_status): Likewise.
21887 * config/avr/avr.c (avr_init_machine_status): Likewise.
21888 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21889 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21890 * config/cris/cris.c (cris_init_machine_status): Likewise.
21891 * config/darwin.c (machopic_indirection_name): Likewise.
21892 (darwin_build_constant_cfstring): Likewise.
21893 (darwin_enter_string_into_cfstring_table): Likewise.
21894 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21895 * config/frv/frv.c (frv_init_machine_status): Likewise.
21896 * config/i386/i386.c (get_dllimport_decl): Likewise.
21897 (ix86_init_machine_status): Likewise.
21898 (assign_386_stack_local): Likewise.
21899 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21900 (i386_pe_maybe_record_exported_symbol): Likewise.
21901 (i386_pe_record_stub): Likewise.
21902 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21903 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21904 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21905 (m32c_note_pragma_address): Likewise.
21906 * config/mep/mep.c (mep_init_machine_status): Likewise.
21907 (mep_note_pragma_flag): Likewise.
21908 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21909 (mips16_local_alias): Likewise.
21910 (mips_init_machine_status): Likewise.
21911 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21912 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21913 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21914 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21915 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21916 * config/pa/pa.c (pa_init_machine_status): Likewise.
21917 (pa_get_deferred_plabel): Likewise.
21918 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21919 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21920 (rs6000_init_machine_status): Likewise.
21921 (output_toc): Likewise.
21922 * config/s390/s390.c (s390_init_machine_status): Likewise.
21923 * config/score/score.c (score_output_external): Likewise.
21924 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21925 * config/spu/spu.c (spu_init_machine_status): Likewise.
21926 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21927 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21928 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21929 * coverage.c (coverage_end_function): Likewise.
21930 * dbxout.c (dbxout_init): Likewise.
21931 * doc/gty.texi: Don't mention variable_size attribute.
21932 * dwarf2cfi.c (new_cfi): Adjust.
21933 (new_cfi_row): Likewise.
21934 (copy_cfi_row): Likewise.
21935 (create_cie_data): Likewise.
21936 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21937 (new_loc_descr): Likewise.
21938 (find_AT_string_in_table): Likewise.
21939 (add_addr_table_entry): Likewise.
21940 (new_die): Likewise.
21941 (add_var_loc_to_decl): Likewise.
21942 (clone_die): Likewise.
21943 (clone_as_declaration): Likewise.
21944 (break_out_comdat_types): Likewise.
21945 (new_loc_list): Likewise.
21946 (add_loc_descr_to_each): Likewise.
21947 (add_location_or_const_value_attribute): Likewise.
21948 (add_linkage_name): Likewise.
21949 (lookup_filename): Likewise.
21950 (dwarf2out_var_location): Likewise.
21951 (new_line_info_table): Likewise.
21952 (dwarf2out_init): Likewise.
21953 (mem_loc_descriptor): Likewise.
21954 (loc_descriptor): Likewise.
21955 (add_const_value_attribute): Likewise.
21956 (tree_add_const_value_attribute): Likewise.
21957 (comp_dir_string): Likewise.
21958 (dwarf2out_vms_debug_main_pointer): Likewise.
21959 (string_cst_pool_decl): Likewise.
21960 * emit-rtl.c (set_mem_attrs): Likewise.
21961 (get_reg_attrs): Likewise.
21962 (start_sequence): Likewise.
21963 (init_emit): Likewise.
21964 (init_emit_regs): Likewise.
21965 * except.c (init_eh_for_function): Likewise.
21966 (gen_eh_region): Likewise.
21967 (gen_eh_region_catch): Likewise.
21968 (gen_eh_landing_pad): Likewise.
21969 (add_call_site): Likewise.
21970 * function.c (add_frame_space): Likewise.
21971 (insert_temp_slot_address): Likewise.
21972 (assign_stack_temp_for_type): Likewise.
21973 (get_hard_reg_initial_val): Likewise.
21974 (allocate_struct_function): Likewise.
21975 (prepare_function_start): Likewise.
21976 (types_used_by_var_decl_insert): Likewise.
21977 * gengtype.c (variable_size_p): Remove function.
21978 (enum alloc_quantity): Remove enum.
21979 (write_typed_alloc_def): Remove function.
21980 (write_typed_struct_alloc_def): Likewise.
21981 (write_typed_typedef_alloc_def): Likewise.
21982 (write_typed_alloc_defns): Likewise.
21984 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21985 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21986 * ggc.h (ggc_alloc): new function.
21987 (ggc_cleared_alloc): Likewise.
21988 (ggc_vec_alloc): Template on type of vector element, and remove
21989 element size argument.
21990 (ggc_cleared_vec_alloc): Likewise.
21991 * gimple.c (gimple_build_omp_for): Adjust.
21992 (gimple_copy): Likewise.
21993 * ipa-cp.c (get_replacement_map): Likewise.
21994 (find_aggregate_values_for_callers_subset): Likewise.
21995 (known_aggs_to_agg_replacement_list): Likewise.
21996 * ipa-devirt.c (get_odr_type): Likewise.
21997 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21998 (read_agg_replacement_chain): Likewise.
21999 * loop-iv.c (get_simple_loop_desc): Likewise.
22000 * lto-cgraph.c (input_node_opt_summary): Likewise.
22001 * lto-section-in.c (lto_new_in_decl_state): Likewise.
22002 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22003 (input_eh_region): Likewise.
22004 (input_eh_lp): Likewise.
22005 (input_cfg): Likewise.
22006 * optabs.c (set_optab_libfunc): Likewise.
22007 (init_tree_optimization_optabs): Likewise.
22008 (set_conv_libfunc): Likewise.
22009 * passes.c (do_per_function_toporder): Likewise.
22010 * rtl.h: Don't use variable_size gty attribute.
22011 * sese.c (if_region_set_false_region): Adjust.
22012 * stringpool.c (gt_pch_save_stringpool): Likewise.
22013 * target-globals.c (save_target_globals): Likewise.
22014 * toplev.c (general_init): Likewise.
22015 * trans-mem.c (record_tm_replacement): Likewise.
22016 (split_bb_make_tm_edge): Likewise.
22017 * tree-cfg.c (move_sese_region_to_fn): Likewise.
22018 * tree-data-ref.h (lambda_vector_new): Likewise.
22019 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22020 * tree-iterator.c (tsi_link_before): Likewise.
22021 (tsi_link_after): Likewise.
22022 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22023 * tree-ssa-loop-niter.c (record_estimate): Likewise.
22024 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22025 * tree-ssa-operands.h: Don't use variable_size gty attribute.
22026 * tree-ssa.c (init_tree_ssa): Adjust.
22027 * tree-ssanames.c (set_range_info): Likewise.
22028 (get_ptr_info): Likewise.
22029 (duplicate_ssa_name_ptr_info): Likewise.
22030 (duplicate_ssa_name_range_info): Likewise.
22031 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22032 (unpack_ts_fixed_cst_value_fields): Likewise.
22033 * tree.c (build_fixed): Likewise.
22034 (build_real): Likewise.
22035 (build_string): Likewise.
22036 (decl_priority_info): Likewise.
22037 (decl_debug_expr_insert): Likewise.
22038 (decl_value_expr_insert): Likewise.
22039 (decl_debug_args_insert): Likewise.
22040 (type_hash_add): Likewise.
22041 (build_omp_clause): Likewise.
22042 * ubsan.c (decl_for_type_insert): Likewise.
22043 * varasm.c (get_unnamed_section): Likewise.
22044 (get_noswitch_section): Likewise.
22045 (get_section): Likewise.
22046 (get_block_for_section): Likewise.
22047 (create_block_symbol): Likewise.
22048 (build_constant_desc): Likewise.
22049 (create_constant_pool): Likewise.
22050 (force_const_mem): Likewise.
22051 (record_tm_clone_pair): Likewise.
22052 * varpool.c (varpool_create_empty_node): Likewise.
22054 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22056 * dwarf2out.c (tree_add_const_value_attribute): Call
22057 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22058 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22059 instead of ggc_internal_<x>alloc_stat.
22060 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22061 (ggc_realloc): Likewise.
22062 * ggc-none.c (ggc_internal_alloc): Likewise.
22063 (ggc_internal_cleared_alloc): Likewise.
22064 * ggc-page.c: Likewise.
22065 * ggc.h (ggc_internal_alloc_stat): Likewise.
22066 (ggc_internal_alloc): Remove macro.
22067 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22068 (ggc_internal_cleared_alloc): Remove macro.
22069 (GGC_RESIZEVEC): Adjust.
22070 (ggc_resizevar): Remove macro.
22071 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22072 (ggc_internal_cleared_vec_alloc_stat): Likewise.
22073 (ggc_internal_vec_cleared_alloc): Remove macro.
22074 (ggc_alloc_atomic_stat): Drop _stat suffix.
22075 (ggc_alloc_atomic): Remove macro.
22076 (ggc_alloc_cleared_atomic): Remove macro.
22077 (ggc_alloc_string_stat): Drop _stat suffix.
22078 (ggc_alloc_string): Remove macro.
22079 (ggc_alloc_rtx_def_stat): Adjust.
22080 (ggc_alloc_tree_node_stat): Likewise.
22081 (ggc_alloc_cleared_tree_node_stat): Likewise.
22082 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22083 (ggc_alloc_cleared_simd_clone_stat): Likewise.
22084 * gimple.c (gimple_build_omp_for): Likewise.
22085 (gimple_copy): Likewise.
22086 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22087 * toplev.c (realloc_for_line_map): Adjust.
22088 * tree-data-ref.h (lambda_vector_new): Likewise.
22089 * tree-phinodes.c (allocate_phi_node): Likewise.
22090 * tree.c (grow_tree_vec_stat): Likewise.
22091 * vec.h (va_gc::reserve): Adjust.
22093 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
22095 * config/microblaze/microblaze.c (break_handler): New Declaration.
22096 (microblaze_break_function_p,microblaze_is_break_handler): New.
22097 (compute_frame_size): Use microblaze_break_function_p.
22098 Add the test of break_handler.
22099 (microblaze_function_prologue) : Add the test of variable
22100 break_handler. Check the fnname by BREAK_HANDLER_NAME.
22101 (microblaze_function_epilogue) : Add the test of break_handler.
22102 (microblaze_globalize_label) : Add the test of break_handler.
22103 Check the name by BREAK_HANDLER_NAME.
22105 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22107 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22108 microblaze_is_break_handler test.
22109 (call_internal1,call_value_intern): Use microblaze_break_function_p.
22110 Use SYMBOL_REF_DECL.
22112 * config/microblaze/microblaze-protos.h
22113 (microblaze_break_function_p,microblaze_is_break_handler):
22116 * doc/extend.texi (MicroBlaze break_handler Functions): Document
22117 new MicroBlaze break_handler functions.
22119 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22121 * doc/extend.texi (Size of an asm): Move node text according
22122 to its @menu entry position.
22124 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
22126 PR tree-optimization/61140
22127 PR tree-optimization/61150
22128 PR tree-optimization/61197
22129 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22131 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22133 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
22135 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
22137 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22138 __SIZEOF_INT128__ is defined.
22140 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22142 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22143 (rs6000_delegitimize_address): Use it.
22145 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22147 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22148 inplace argument. Store the new address in the original MEM when true.
22149 * emit-rtl.c (change_address_1): Likewise.
22150 (adjust_address_1, adjust_automodify_address_1, offset_address):
22151 Update accordingly.
22152 * rtl.h (plus_constant): Add an inplace argument.
22153 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
22154 when true. Avoid generating (plus X (const_int 0)).
22155 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22156 in-place. Pass true to plus_constant.
22157 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22159 2014-05-16 Dehao Chen <dehao@google.com>
22161 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22163 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22166 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22168 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22170 2014-05-16 Dehao Chen <dehao@google.com>
22172 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22173 optimize_function_for_size_p.
22174 * regs.h (REG_FREQ_FROM_BB): Likewise.
22176 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22179 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22180 negt_reg_operand cases.
22181 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22183 * config/sh/predicates.md (cbranch_treg_value): Simplify.
22185 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22187 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22190 2014-05-16 David Malcolm <dmalcolm@redhat.com>
22193 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22195 * tree-cfg.c (dump_function_to_file): Dump the return type of
22196 functions, in a line to itself before the function body, mimicking
22197 the layout of a C function.
22199 2014-05-16 Dehao Chen <dehao@google.com>
22201 * cfghooks.c (make_forwarder_block): Use direct computation to
22202 get fall-through edge's count and frequency.
22204 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
22206 * config/arc/arc.c (arc_init): Fix typo in error message.
22207 * config/i386/i386.c (ix86_expand_builtin): Likewise.
22208 (split_stack_prologue_scratch_regno): Likewise.
22209 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22210 word from error message.
22212 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22214 * ira-costs.c: Fix typo in comment.
22216 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
22218 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22220 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
22222 * varpool.c (dump_varpool_node): Dump write-only flag.
22223 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22225 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22226 write-only variables.
22227 * ipa.c (process_references): New function.
22228 (set_readonly_bit): New function.
22229 (set_writeonly_bit): New function.
22230 (clear_addressable_bit): New function.
22231 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22232 fix handling of aliases.
22233 * cgraph.h (struct varpool_node): Add writeonly flag.
22235 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
22237 PR rtl-optimization/60969
22238 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22239 Calculate costs for this case.
22241 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
22243 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22244 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22246 2014-05-16 Richard Biener <rguenther@suse.de>
22248 PR tree-optimization/61194
22249 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22250 bool patterns ending in a COND_EXPR.
22252 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22254 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22256 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22258 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22259 where we were unable to cost an RTX.
22261 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22263 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22266 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22267 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22271 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22272 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22274 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22275 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22277 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22278 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22280 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22283 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22284 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22286 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22289 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22290 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22292 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22293 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22295 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22296 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22298 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22299 rotates and shifts.
22301 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22302 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22304 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22305 ZERO_EXTEND and SIGN_EXTEND better.
22307 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22308 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22310 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22311 logical operations.
22313 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22314 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22316 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22317 costs when costing loads and stores to memory.
22319 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22320 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
22322 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22325 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22327 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22329 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22330 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22332 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22334 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22336 (aarch64_rtx_mult_cost): New.
22337 (aarch64_rtx_costs): Use it, refactor as appropriate.
22339 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22340 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22342 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22343 emit instructions, return number of instructions which would
22345 (aarch64_add_constant): Update call to aarch64_build_constant.
22346 (aarch64_output_mi_thunk): Likewise.
22347 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22350 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22352 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22353 (TARGET_RTX_COSTS): Call it.
22355 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22357 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22358 (cortexa57_vector_cost): Likewise.
22359 (cortexa57_tunings): Use them.
22361 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22363 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22364 (cpu_addrcost_table): Use it.
22365 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22366 (aarch64_address_cost): Rewrite using aarch64_classify_address,
22369 2014-05-16 Richard Biener <rguenther@suse.de>
22371 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22372 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22373 (visit_phi): Ignore edges marked as not executable.
22374 (class cond_dom_walker): New.
22375 (cond_dom_walker::before_dom_children): Value-number
22376 control statements and mark successor edges as not
22377 executable if possible.
22378 (run_scc_vn): First walk all control statements in
22379 dominator order, marking edges as not executable.
22380 * tree-inline.c (copy_edges_for_bb): Be not confused
22381 about random edge flags.
22383 2014-05-16 Richard Biener <rguenther@suse.de>
22385 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22387 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
22390 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22391 (__TM_simple_begin): Use it.
22392 (__TM_begin): Likewise.
22394 2014-05-15 Martin Jambor <mjambor@suse.cz>
22397 * ipa-prop.c (update_indirect_edges_after_inlining): Check
22398 type_preserved flag when the indirect edge is polymorphic.
22400 2014-05-15 Martin Jambor <mjambor@suse.cz>
22402 PR tree-optimization/61090
22403 * tree-sra.c (sra_modify_expr): Pass the current gsi to
22404 build_ref_for_model.
22406 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22408 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22409 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22411 2014-05-15 Jakub Jelinek <jakub@redhat.com>
22413 PR tree-optimization/61158
22414 * fold-const.c (fold_binary_loc): If X is zero-extended and
22415 shiftc >= prec, make sure zerobits is all ones instead of
22416 invoking undefined behavior.
22418 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22420 * regcprop.h: New file.
22421 * regcprop.c (skip_debug_insn_p): New decl.
22422 (replace_oldest_value_reg): Check skip_debug_insn_p.
22423 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22424 * shrink-wrap.c: Include regcprop.h.
22425 (prepare_shrink_wrap): Call
22426 copyprop_hardreg_forward_bb_without_debug_insn.
22428 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22430 * shrink-wrap.h: Update comment.
22431 * shrink-wrap.c: Update comment.
22432 (next_block_for_reg): Rename to live_edge_for_reg.
22433 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22434 (move_insn_for_shrink_wrap): Split live_edge.
22435 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22437 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22439 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22441 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22442 * config/sparc/sparc.md (fptype_ut699): New attribute.
22443 (in_branch_delay): Return false if -mfix-ut699 is specified and
22444 fptype_ut699 is set to single.
22445 (truncdfsf2): Add fptype_ut699 attribute.
22446 (fix_truncdfsi2): Likewise.
22447 (floatsisf2): Change fptype attribute.
22448 (fix_truncsfsi2): Likewise.
22449 (negtf2_notv9): Delete.
22450 (negtf2_v9): Likewise.
22451 (negtf2_hq): New instruction.
22452 (negtf2): New instruction and splitter.
22453 (negdf2_notv9): Rewrite.
22454 (abstf2_notv9): Delete.
22455 (abstf2_hq_v9): Likewise.
22456 (abstf2_v9): Likewise.
22457 (abstf2_hq): New instruction.
22458 (abstf2): New instruction and splitter.
22459 (absdf2_notv9): Rewrite.
22461 2014-05-14 Cary Coutant <ccoutant@google.com>
22464 * opts.c (common_handle_option): Don't special-case "-g".
22465 (set_debug_level): Default to at least level 2 with "-g".
22467 2014-05-14 DJ Delorie <dj@redhat.com>
22469 * config/msp430/msp430.c (msp430_builtin): Add
22470 MSP430_BUILTIN_DELAY_CYCLES.
22471 (msp430_init_builtins): Register void __delay_cycles(long long).
22472 (msp430_builtin_decl): Add it.
22473 (cg_magic_constant): New.
22474 (msp430_expand_delay_cycles): New.
22475 (msp430_expand_builtin): Call it.
22476 (msp430_print_operand_raw): Change integer printing from "int" to
22478 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22479 (delay_cycles_start): New.
22480 (delay_cycles_end): New.
22481 (delay_cycles_32): New.
22482 (delay_cycles_32x): New.
22483 (delay_cycles_16): New.
22484 (delay_cycles_16x): New.
22485 (delay_cycles_2): New.
22486 (delay_cycles_1): New.
22487 * doc/extend.texi: Document __delay_cycles().
22489 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
22491 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22492 length attribute computation.
22494 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
22497 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22499 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
22502 * config/sparc/sparc.md: Fix types of low and high in DI constant
22503 splitter. Use gen_int_mode in some other splitters.
22505 2014-05-14 Martin Jambor <mjambor@suse.cz>
22508 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22510 2014-05-14 James Norris <jnorris@codesourcery.com>
22512 * omp-low.c (expand_parallel_call): Remove shadow variable.
22513 (expand_omp_taskreg): Likewise.
22515 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
22517 * common/config/i386/i386-common.c
22518 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22519 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22520 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22521 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22522 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22523 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22524 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22525 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22526 xsavecintrin.h, xsavesintrin.h.
22527 (x86_64-*-*): Ditto.
22528 * config/i386/clflushoptintrin.h: New.
22529 * config/i386/xsavecintrin.h: Ditto.
22530 * config/i386/xsavesintrin.h: Ditto.
22531 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22532 (bit_XSAVES): Ditto.
22533 (bit_XSAVES): Ditto.
22534 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22535 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22537 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22538 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22539 OPTION_MASK_ISA_XSAVES.
22540 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22541 -mxsavec, -mxsaves.
22542 (PTA_CLFLUSHOPT) Define.
22543 (PTA_XSAVEC): Ditto.
22544 (PTA_XSAVES): Ditto.
22545 (ix86_option_override_internal): Handle new options.
22546 (ix86_valid_target_attribute_inner_p): Ditto.
22547 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22548 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22549 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22550 (bdesc_special_args): Add __builtin_ia32_xsaves,
22551 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22552 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22553 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22554 (ix86_expand_builtin): Handle new builtins.
22555 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22556 (TARGET_CLFLUSHOPT_P): Ditto.
22557 (TARGET_XSAVEC): Ditto.
22558 (TARGET_XSAVEC_P): Ditto.
22559 (TARGET_XSAVES): Ditto.
22560 (TARGET_XSAVES_P): Ditto.
22561 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22562 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22563 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22565 (ANY_XRSTOR64): Ditto.
22567 (xrstor): Change into <xrstor>.
22568 (xrstor_rex64): Change into <xrstor>_rex64.
22569 (xrstor64): Change into <xrstor>64
22571 * config/i386/i386.opt (mclflushopt): New.
22574 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22576 * doc/invoke.texi: Document new options.
22578 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22580 PR rtl-optimization/60866
22581 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22582 Default it to -1. Pass it down to init_simplejump_data.
22583 (init_simplejump_data): New parameter old_seqno. Pass it down
22584 to get_seqno_for_a_jump.
22585 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
22586 initializing new jump seqno as a last resort. Add comment.
22587 (sel_redirect_edge_and_branch): Save old seqno of the conditional
22588 jump and pass it down to sel_init_new_insn.
22589 (sel_redirect_edge_and_branch_force): Likewise.
22591 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
22593 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22594 shifted values to avoid build warning.
22596 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22598 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22599 * cfgrtl.c (rtl_merge_blocks): Fix comment.
22600 (cfg_layout_merge_blocks): Likewise.
22601 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22603 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22605 PR rtl-optimization/60901
22606 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22607 bb predecessor belongs to the same scheduling region. Adjust comment.
22609 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
22611 * doc/sourcebuild.texi: (dfp_hw): Document.
22612 (p8vector_hw): Likewise.
22613 (powerpc_eabi_ok): Likewise.
22614 (powerpc_elfv2): Likewise.
22615 (powerpc_htm_ok): Likewise.
22616 (ppc_recip_hw): Likewise.
22617 (vsx_hw): Likewise.
22619 2014-05-13 Cary Coutant <ccoutant@google.com>
22621 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22623 2014-05-13 David Malcolm <dmalcolm@redhat.com>
22625 * gengtype-parse.c (require3): Eliminate in favor of...
22627 (require_template_declaration): Update to support optional single *
22630 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22631 (create_user_defined_type): Handle a single level of explicit
22632 pointerness within template arguments.
22633 (struct write_types_data): Add field "kind".
22634 (filter_type_name): Handle "*" character.
22635 (write_user_func_for_structure_ptr): Require a write_types_data
22636 rather than just a prefix string, so that we can look up the kind
22637 of the wtd and use it as an index into wrote_user_func_for_ptr,
22638 ensuring that such functions are written at most once. Support
22639 subclasses by invoking the marking function of the ultimate base class.
22640 (write_user_func_for_structure_body): Require a write_types_data
22641 rather than just a prefix string, so that we can pass this to
22642 write_user_func_for_structure_ptr.
22643 (write_func_for_structure): Likewise.
22644 (ggc_wtd): Add initializer of new "kind" field.
22645 (pch_wtd): Likewise.
22647 * gengtype.h (enum write_types_kinds): New.
22648 (struct type): Add field wrote_user_func_for_ptr to the "s"
22651 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22653 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22654 instead of const_binop.
22655 (fold_binary_loc): Likewise.
22657 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22659 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22660 calculation to match get_ref_base_and_extent.
22662 2014-05-13 Catherine Moore <clm@codesourcery.com>
22663 Sandra Loosemore <sandra@codesourcery.com>
22665 * configure.ac: Fix assembly for explicit JALR relocation check.
22666 * configure: Regenerate.
22668 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22670 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22671 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22672 Remove associated type declarations and initialisations.
22673 (arm_expand_neon_builtin): Likewise.
22674 (neon_emit_pair_result_insn): Delete.
22675 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22676 * config/arm/neon.md (neon_vtrn<mode>): Delete.
22677 (neon_vzip<mode>): Likewise.
22678 (neon_vuzp<mode>): Likewise.
22680 2014-05-13 Richard Biener <rguenther@suse.de>
22683 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22684 it needs revisiting whether the call still may be tail-called.
22686 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22688 * rtl.def (SYMBOL_REF): Remove middle "0" field.
22689 * rtl.h (block_symbol): Reduce number of fields to 2.
22690 (rtx_def): Add u2.symbol_ref_flags.
22691 (SYMBOL_REF_FLAGS): Use it.
22692 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22693 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22694 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22695 Lower index of SYMBOL_REF_DATA.
22696 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22697 Print SYMBOL_REF_FLAGS at the same time.
22698 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22700 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22702 * rtl.def (VAR_LOCATION): Remove "i" field.
22703 * rtl.h (rtx_def): Add u2.var_location_status.
22704 (PAT_VAR_LOCATION_STATUS): Use it.
22705 (gen_rtx_VAR_LOCATION): Declare.
22706 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22707 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22708 * var-tracking.c (emit_note_insn_var_location): Remove casts.
22710 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22712 * rtl.def (scratch): Fix outdated comment and remove "0" field.
22713 * gengtype.c (adjust_field_rtx_def): Update accordingly.
22715 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22717 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22718 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22719 * rtl.h (rtx_def): Add insn_uid to u2 field.
22720 (RTX_FLAG_CHECK8): Delete in favor of...
22721 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22722 (INSN_DELETED_P): Update accordingly.
22723 (INSN_UID): Use u2.insn_uid.
22724 (INSN_CHAIN_CODE_P): Define.
22725 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22726 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22727 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22728 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22729 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22730 indices accordingly.
22731 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22732 Update indices for insn-chain rtxes.
22733 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22734 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22735 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22736 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22737 * combine.c (try_combine): Likewise.
22738 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22740 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22742 * rtl.def (REG): Remove middle field.
22743 * rtl.h (rtx_def): Add orignal_regno to u2.
22744 (ORIGINAL_REGNO): Use it instead of field 1.
22745 (REG_ATTRS): Lower field index accordingly.
22746 * gengtype.c (adjust_field_rtx_def): Remove handling of
22747 ORIGINAL_REGNO. Move REG_ATTRS index down.
22748 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22749 code that prints the REGNO.
22751 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22753 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22756 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22758 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22760 2014-05-13 Bin Cheng <bin.cheng@arm.com>
22762 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22763 (alloc_iv): Lower base expressions containing ADDR_EXPR.
22765 2014-05-13 Ian Bolton <ian.bolton@arm.com>
22767 * config/aarch64/aarch64-protos.h
22768 (aarch64_hard_regno_caller_save_mode): New prototype.
22769 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22771 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22773 2014-05-13 Christian Bruel <christian.bruel@st.com>
22775 * target.def (mode_switching): New hook vector.
22776 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22777 (mode_exit, modepriority_to_mode): Likewise.
22778 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22779 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22780 * target.h: Include tm.h and hard-reg-set.h.
22781 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22782 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22783 * doc/tm.texi Regenerate.
22784 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22785 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22786 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22787 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22788 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22789 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22790 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22791 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22792 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22793 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22794 (ix86_emit_mode_set): Hookify.
22795 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22797 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22798 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22799 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22800 (epiphany_mode_priority_to_mode): Remove declaration.
22801 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22802 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22803 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22805 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
22806 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22807 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22809 2014-05-13 Jakub Jelinek <jakub@redhat.com>
22812 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22813 is const0_rtx, return immediately. Don't test count == 0 when
22816 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22818 * Makefile.in: add shrink-wrap.o.
22819 * config/i386/i386.c: include "shrink-wrap.h"
22820 * function.c: Likewise.
22821 (requires_stack_frame_p, next_block_for_reg,
22822 move_insn_for_shrink_wrap, prepare_shrink_wrap,
22823 dup_block_and_redirect): Move to shrink-wrap.c
22824 (thread_prologue_and_epilogue_insns): Extract three code segments
22825 as functions in shrink-wrap.c
22826 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22828 * shrink-wrap.c: New file.
22829 * shrink-wrap.h: New file.
22831 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22833 * doc/extend.texi: Reflect current numbers of pragmas. Remove
22834 reference to Solaris.
22836 2014-05-12 Mike Stump <mikestump@comcast.net>
22839 * genattrtab.c (filename): Add.
22840 (convert_set_attr_alternative): Improve error message.
22841 (check_defs): Restore read_md_filename for error messages.
22842 (gen_insn): Save filename.
22844 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
22846 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22847 -fno-local-ivars and -fivar-visibility.
22848 * c-family/c.opt: Make -Wshadow also implicitly enable
22851 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22853 * doc/tm.texi: Remove reference to deleted macro.
22854 * doc/tm.texi.in: Likewise.
22856 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22859 * config/avr/avr.c (avr_out_store_psi): Use correct constant
22862 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
22865 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22866 * config/arm/aout.h (License): Same.
22867 * config/arm/bpabi.h (License): Same.
22868 * config/arm/elf.h (License): Same.
22869 * config/arm/linux-elf.h (License): Same.
22870 * config/arm/linux-gas.h (License): Same.
22871 * config/arm/netbsd-elf.h (License): Same.
22872 * config/arm/uclinux-eabi.h (License): Same.
22873 * config/arm/uclinux-elf.h (License): Same.
22874 * config/arm/vxworks.h (License): Same.
22876 2014-05-11 Jakub Jelinek <jakub@redhat.com>
22878 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22879 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22880 number of operands to 3.
22881 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22882 * tree-nested.c (convert_nonlocal_omp_clauses,
22883 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22884 * gimplify.c (gimplify_scan_omp_clauses): Handle
22885 OMP_CLAUSE_LINEAR_STMT.
22886 * omp-low.c (lower_rec_input_clauses): Fix typo.
22887 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22888 cast between Fortran boolean_type_node and C _Bool if
22891 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
22893 PR tree-optimization/61136
22894 * wide-int.h (multiple_of_p): Define a version that doesn't return
22896 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22897 integer_zerop/const_binop pair.
22898 (multiple_of_p): Likewise, converting both operands to widest_int
22901 2014-05-09 Teresa Johnson <tejohnson@google.com>
22903 * cgraphunit.c (analyze_functions): Use correct dump file.
22905 2014-05-09 Florian Weimer <fweimer@redhat.com>
22907 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22909 (stack_protect_return_slot_p): New function.
22910 (expand_used_vars): Call stack_protect_decl_p and
22911 stack_protect_return_slot_p for -fstack-protector-strong.
22913 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
22914 Andrew Haley <aph@redhat.com>
22915 Richard Sandiford <rdsandiford@googlemail.com>
22917 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22920 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22922 PR middle-end/61111
22923 * fold-const.c (fold_binary_loc): Changed width of mask.
22925 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22927 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22928 unsigned int initializers for regno_in, regno_out.
22930 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22933 * config/avr/avr.md (cc): Add new attribute set_vzn.
22934 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22935 Set cc insn attribute to set_vzn instead of set_zn for alternatives
22936 with INC, DEC or NEG.
22937 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22938 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22939 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22941 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22944 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22946 * wide-int.cc (UTItype): Define.
22947 (UDWtype): Define for appropriate W_TYPE_SIZE.
22949 2014-05-09 Richard Biener <rguenther@suse.de>
22951 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22952 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22953 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22954 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22955 ssa_propagate): Adjust.
22957 2014-05-08 Jeff Law <law@redhat.com>
22959 PR tree-optimization/61009
22960 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22961 tri-state rather than a boolean. When a block is too big to
22962 thread through, inform caller via negative return value.
22963 (thread_across_edge): If a block was too big for normal threading,
22964 then it's too big for a joiner too, so remove temporary equivalences
22965 and return immediately.
22967 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22968 Matthias Klose <doko@ubuntu.com>
22971 * optc-gen.awk: Fix option handling for -Wunused-parameter.
22973 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22976 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22978 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22981 * config/alpha/alpha.c: Include gimple-iterator.h.
22982 (alpha_gimple_fold_builtin): New function. Move
22983 ALPHA_BUILTIN_UMULH folding from ...
22984 (alpha_fold_builtin): ... here.
22985 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22987 2014-05-08 Wei Mi <wmi@google.com>
22990 * config/i386/i386.c (ix86_compute_frame_layout): Update
22991 preferred_stack_boundary for call, expanded from tls descriptor.
22992 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22993 to depend on SP register.
22994 (*tls_local_dynamic_base_32_gnu): Ditto.
22995 (*tls_local_dynamic_32_once): Ditto.
22996 (tls_global_dynamic_64_<mode>): Set
22997 ix86_tls_descriptor_calls_expanded_in_cfun.
22998 (tls_local_dynamic_base_64_<mode>): Ditto.
22999 (tls_global_dynamic_32): Set
23000 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
23001 to depend on SP register.
23002 (tls_local_dynamic_base_32): Ditto.
23004 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23006 * config/arm/arm_neon.h: Update comment.
23007 * config/arm/neon-docgen.ml: Delete.
23008 * config/arm/neon-gen.ml: Delete.
23009 * doc/arm-neon-intrinsics.texi: Update comment.
23011 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23013 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
23015 (vand, vorr, veor, vorn, vbic): Remove.
23016 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
23018 (neon_vsub_unspec): Likewise.
23019 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23021 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23023 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23024 (vadd_s16): Likewise.
23025 (vadd_s32): Likewise.
23026 (vadd_f32): Likewise.
23027 (vadd_u8): Likewise.
23028 (vadd_u16): Likewise.
23029 (vadd_u32): Likewise.
23030 (vadd_s64): Likewise.
23031 (vadd_u64): Likewise.
23032 (vaddq_s8): Likewise.
23033 (vaddq_s16): Likewise.
23034 (vaddq_s32): Likewise.
23035 (vaddq_s64): Likewise.
23036 (vaddq_f32): Likewise.
23037 (vaddq_u8): Likewise.
23038 (vaddq_u16): Likewise.
23039 (vaddq_u32): Likewise.
23040 (vaddq_u64): Likewise.
23041 (vmul_s8): Likewise.
23042 (vmul_s16): Likewise.
23043 (vmul_s32): Likewise.
23044 (vmul_f32): Likewise.
23045 (vmul_u8): Likewise.
23046 (vmul_u16): Likewise.
23047 (vmul_u32): Likewise.
23048 (vmul_p8): Likewise.
23049 (vmulq_s8): Likewise.
23050 (vmulq_s16): Likewise.
23051 (vmulq_s32): Likewise.
23052 (vmulq_f32): Likewise.
23053 (vmulq_u8): Likewise.
23054 (vmulq_u16): Likewise.
23055 (vmulq_u32): Likewise.
23056 (vsub_s8): Likewise.
23057 (vsub_s16): Likewise.
23058 (vsub_s32): Likewise.
23059 (vsub_f32): Likewise.
23060 (vsub_u8): Likewise.
23061 (vsub_u16): Likewise.
23062 (vsub_u32): Likewise.
23063 (vsub_s64): Likewise.
23064 (vsub_u64): Likewise.
23065 (vsubq_s8): Likewise.
23066 (vsubq_s16): Likewise.
23067 (vsubq_s32): Likewise.
23068 (vsubq_s64): Likewise.
23069 (vsubq_f32): Likewise.
23070 (vsubq_u8): Likewise.
23071 (vsubq_u16): Likewise.
23072 (vsubq_u32): Likewise.
23073 (vsubq_u64): Likewise.
23074 (vand_s8): Likewise.
23075 (vand_s16): Likewise.
23076 (vand_s32): Likewise.
23077 (vand_u8): Likewise.
23078 (vand_u16): Likewise.
23079 (vand_u32): Likewise.
23080 (vand_s64): Likewise.
23081 (vand_u64): Likewise.
23082 (vandq_s8): Likewise.
23083 (vandq_s16): Likewise.
23084 (vandq_s32): Likewise.
23085 (vandq_s64): Likewise.
23086 (vandq_u8): Likewise.
23087 (vandq_u16): Likewise.
23088 (vandq_u32): Likewise.
23089 (vandq_u64): Likewise.
23090 (vorr_s8): Likewise.
23091 (vorr_s16): Likewise.
23092 (vorr_s32): Likewise.
23093 (vorr_u8): Likewise.
23094 (vorr_u16): Likewise.
23095 (vorr_u32): Likewise.
23096 (vorr_s64): Likewise.
23097 (vorr_u64): Likewise.
23098 (vorrq_s8): Likewise.
23099 (vorrq_s16): Likewise.
23100 (vorrq_s32): Likewise.
23101 (vorrq_s64): Likewise.
23102 (vorrq_u8): Likewise.
23103 (vorrq_u16): Likewise.
23104 (vorrq_u32): Likewise.
23105 (vorrq_u64): Likewise.
23106 (veor_s8): Likewise.
23107 (veor_s16): Likewise.
23108 (veor_s32): Likewise.
23109 (veor_u8): Likewise.
23110 (veor_u16): Likewise.
23111 (veor_u32): Likewise.
23112 (veor_s64): Likewise.
23113 (veor_u64): Likewise.
23114 (veorq_s8): Likewise.
23115 (veorq_s16): Likewise.
23116 (veorq_s32): Likewise.
23117 (veorq_s64): Likewise.
23118 (veorq_u8): Likewise.
23119 (veorq_u16): Likewise.
23120 (veorq_u32): Likewise.
23121 (veorq_u64): Likewise.
23122 (vbic_s8): Likewise.
23123 (vbic_s16): Likewise.
23124 (vbic_s32): Likewise.
23125 (vbic_u8): Likewise.
23126 (vbic_u16): Likewise.
23127 (vbic_u32): Likewise.
23128 (vbic_s64): Likewise.
23129 (vbic_u64): Likewise.
23130 (vbicq_s8): Likewise.
23131 (vbicq_s16): Likewise.
23132 (vbicq_s32): Likewise.
23133 (vbicq_s64): Likewise.
23134 (vbicq_u8): Likewise.
23135 (vbicq_u16): Likewise.
23136 (vbicq_u32): Likewise.
23137 (vbicq_u64): Likewise.
23138 (vorn_s8): Likewise.
23139 (vorn_s16): Likewise.
23140 (vorn_s32): Likewise.
23141 (vorn_u8): Likewise.
23142 (vorn_u16): Likewise.
23143 (vorn_u32): Likewise.
23144 (vorn_s64): Likewise.
23145 (vorn_u64): Likewise.
23146 (vornq_s8): Likewise.
23147 (vornq_s16): Likewise.
23148 (vornq_s32): Likewise.
23149 (vornq_s64): Likewise.
23150 (vornq_u8): Likewise.
23151 (vornq_u16): Likewise.
23152 (vornq_u32): Likewise.
23153 (vornq_u64): Likewise.
23155 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23157 * wide-int.cc (UTItype): Define.
23158 (UDWtype): Define for appropriate W_TYPE_SIZE.
23160 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
23162 PR tree-optimization/59100
23163 * tree-ssa-phiopt.c: Include tree-inline.h.
23164 (neutral_element_p, absorbing_element_p): New functions.
23165 (value_replacement): Handle conditional binary operations with a
23166 neutral or absorbing element.
23168 2014-05-08 Richard Biener <rguenther@suse.de>
23170 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23171 folding the expression.
23172 (valueize_expr): Remove.
23173 (visit_reference_op_load): Do not valueize the result of
23175 (simplify_binary_expression): Likewise.
23176 (simplify_unary_expression): Likewise.
23178 2014-05-08 Richard Biener <rguenther@suse.de>
23180 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23181 looking at TYPE_ARG_TYPES.
23183 2014-05-08 Richard Biener <rguenther@suse.de>
23185 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23186 pointer propagation special-case.
23188 2014-05-08 Bin Cheng <bin.cheng@arm.com>
23190 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23191 core part of address expressions.
23193 2014-05-08 Alan Modra <amodra@gmail.com>
23196 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23197 loads and stores when -mno-strict-align at any alignment.
23198 (expand_block_clear): Similarly. Also correct calculation of
23201 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
23203 PR middle-end/39246
23204 * tree-complex.c (expand_complex_move): Keep line info when expanding
23206 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23207 of complex expression. Use new argument to display correct location
23208 for values coming from phi statement.
23209 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23210 (warn_uninitialized_phi): Pass location of phi argument to
23212 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23213 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23215 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23217 * config/rs6000/predicates.md (indexed_address_mem): New.
23218 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23219 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23220 fpstore_ux, fpstore_u.
23221 (sign_extend, indexed, update): New.
23222 (cell_micro): Adjust.
23223 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23224 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23225 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23226 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23227 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23228 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23229 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23230 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23231 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23232 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23233 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23234 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23235 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23236 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23237 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23239 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23240 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23241 *vsx_extract_<mode>_store): Adjust.
23242 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23243 is_cracked_insn, insn_must_be_first_in_group,
23244 insn_must_be_last_in_group): Adjust.
23246 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23248 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23249 ppc440-fpstore): Adjust.
23250 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23251 ppc476-fpstore): Adjust.
23252 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23253 ppc601-fpstore): Adjust.
23254 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23256 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23258 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23259 ppc7450-fpstore): Adjust.
23260 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23261 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23262 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23264 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23265 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23266 cell-fpstore, cell-fpstore-update): Adjust.
23267 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23268 ppce300c3_store, ppce300c3_fpstore): Adjust.
23269 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23270 e500mc_fpstore): Adjust.
23271 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23272 e500mc64_store, e500mc64_fpstore): Adjust.
23273 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23274 e5500_fpstore): Adjust.
23275 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23276 e6500_fpstore): Adjust.
23277 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23279 * config/rs6000/power4.md (power4-load, power4-load-ext,
23280 power4-load-ext-update, power4-load-ext-update-indexed,
23281 power4-load-update-indexed, power4-load-update, power4-fpload,
23282 power4-fpload-update, power4-store, power4-store-update,
23283 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23285 * config/rs6000/power5.md (power5-load, power5-load-ext,
23286 power5-load-ext-update, power5-load-ext-update-indexed,
23287 power5-load-update-indexed, power5-load-update, power5-fpload,
23288 power5-fpload-update, power5-store, power5-store-update,
23289 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23291 * config/rs6000/power6.md (power6-load, power6-load-ext,
23292 power6-load-update, power6-load-update-indexed,
23293 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23294 power6-fpload-update, power6-store, power6-store-update,
23295 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23297 * config/rs6000/power7.md (power7-load, power7-load-ext,
23298 power7-load-update, power7-load-update-indexed,
23299 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23300 power7-fpload-update, power7-store, power7-store-update,
23301 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23303 * config/rs6000/power8.md (power8-load, power8-load-update,
23304 power8-load-ext, power8-load-ext-update, power8-fpload,
23305 power8-fpload-update, power8-store, power8-store-update-indexed,
23306 power8-fpstore, power8-fpstore-update): Adjust.
23307 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23309 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23310 titan_lsu_store, titan_lsu_fpstore): Adjust.
23311 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23313 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
23316 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23317 unrolled byte insns. Emit address increments after move insns.
23319 2014-05-07 David Malcolm <dmalcolm@redhat.com>
23321 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23322 const_gimple, rather than a gimple.
23323 (gimple_call_builtin_p): Likewise, for the three variants.
23325 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23326 (gimple_call_builtin_p): Likewise, for the three variants.
23328 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23330 PR tree-optimization/61095
23331 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23333 2014-05-07 Richard Biener <rguenther@suse.de>
23335 PR tree-optimization/61034
23336 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23337 (maybe_skip_until): Use translate to take into account
23338 lattices when trying to do disambiguations.
23339 (get_continuation_for_phi_1): Likewise.
23340 (get_continuation_for_phi): Adjust for added translate arguments.
23341 (walk_non_aliased_vuses): Likewise.
23342 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23343 (walk_non_aliased_vuses): Likewise.
23344 (call_may_clobber_ref_p_1): Declare.
23345 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23346 calls. Stop early if we are only supposed to disambiguate.
23347 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23349 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
23351 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23352 Emit an error when the function has arguments.
23354 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23356 * cfgloop.h (unswitch_loops): Remove.
23357 * doc/passes.texi: Remove references to loop-unswitch.c
23358 * timevar.def (TV_LOOP_UNSWITCH): Remove.
23360 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
23362 * tree-vect-data-refs.c (vect_grouped_load_supported): New
23363 check for loads group of length 3.
23364 (vect_permute_load_chain): New permutations for loads group of
23366 * tree-vect-stmts.c (vect_model_load_cost): Change cost
23367 of vec_perm_shuffle for the new permutations.
23369 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
23371 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23372 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23373 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23374 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23375 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23376 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23377 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23378 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23380 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23382 * loop-unswitch.c: Delete.
23384 2014-05-07 Richard Biener <rguenther@suse.de>
23386 * config.gcc: Always set need_64bit_hwint to yes.
23388 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
23390 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23391 of using optimize_size.
23393 2014-05-06 Mike Stump <mikestump@comcast.net>
23395 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23397 2014-05-06 Joseph Myers <joseph@codesourcery.com>
23399 * config/i386/sse.md (*mov<mode>_internal)
23400 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23401 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23402 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23403 (*<code><mode>3, *andnot<mode>3<mask_name>)
23404 (<mask_codefor><code><mode>3<mask_name>): Only consider
23405 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23407 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23410 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23412 * lra-constraints.c (valid_address_p): Move earlier in file.
23413 Add a constraint argument to the address_info version.
23414 (satisfies_memory_constraint_p): New function.
23415 (satisfies_address_constraint_p): Likewise.
23416 (process_alt_operands, curr_insn_transform): Use them.
23417 (process_address): Pass the constraint to valid_address_p when
23418 checking address operands.
23420 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
23422 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23423 to their respective blocks. Fix inadvertent use of "node".
23425 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23427 * emit-rtl.c (init_derived_machine_modes): New functionm, split
23429 (init_emit_once): ...here.
23430 * rtl.h (init_derived_machine_modes): Declare.
23431 * toplev.c (do_compile): Call it even if no_backend.
23433 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
23434 Mike Stump <mikestump@comcast.net>
23435 Richard Sandiford <rdsandiford@googlemail.com>
23436 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23438 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23439 (rtx_equal_for_memref_p): Update comment.
23440 (adjust_offset_for_component_ref): Use wide-int interfaces.
23441 * builtins.c (get_object_alignment_2): Likewise.
23442 (c_readstr): Likewise.
23443 (target_char_cast): Add comment.
23444 (determine_block_size): Use wide-int interfaces.
23445 (expand_builtin_signbit): Likewise.
23446 (fold_builtin_int_roundingfn): Likewise.
23447 (fold_builtin_bitop): Likewise.
23448 (fold_builtin_bswap): Likewise.
23449 (fold_builtin_logarithm): Use signop.
23450 (fold_builtin_pow): Likewise.
23451 (fold_builtin_memory_op): Use wide-int interfaces.
23452 (fold_builtin_object_size): Likewise.
23453 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23454 nb_iterations_estimate.
23455 (record_niter_bound): Use wide-int interfaces.
23456 (get_estimated_loop_iterations_int): Likewise.
23457 (get_estimated_loop_iterations): Likewise.
23458 (get_max_loop_iterations): Likewise.
23459 * cfgloop.h: Include wide-int.h.
23460 (struct nb_iter_bound): Change bound to widest_int.
23461 (struct loop): Change nb_iterations_upper_bound and
23462 nb_iterations_estimate to widest_int.
23463 (record_niter_bound): Switch to use widest_int.
23464 (get_estimated_loop_iterations): Likewise.
23465 (get_max_loop_iterations): Likewise.
23466 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23467 update for wide-int.
23468 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23469 * combine.c (try_combine): Likewise.
23470 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23471 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23473 (aarch64_float_const_representable_p): Likewise.
23474 * config/arc/arc.c: Include wide-int.h.
23475 (arc_can_use_doloop_p): Use wide-int interfaces.
23476 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23477 (vfp3_const_double_index): Likewise.
23478 * config/avr/avr.c (avr_out_round): Likewise.
23479 (avr_fold_builtin): Likewise.
23480 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23481 (bfin_can_use_doloop_p): Likewise.
23482 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23483 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23484 * config/i386/i386.c: Include wide-int.h.
23485 (ix86_data_alignment): Use wide-int interfaces.
23486 (ix86_local_alignment): Likewise.
23487 (ix86_emit_swsqrtsf): Update real_from_integer.
23488 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23489 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23490 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23491 (zero_constant): Likewise.
23492 (input_operand): Likewise.
23493 (splat_input_operand): Likewise.
23494 (non_logical_cint_operand): Change const_double to const_wide_int.
23495 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23496 (easy_altivec_constant): Remove comment.
23497 (paired_expand_vector_init): Use CONSTANT_P.
23498 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23499 (rs6000_emit_move): Update checks.
23500 (rs6000_aggregate_candidate): Use wide-int interfaces.
23501 (rs6000_expand_ternop_builtin): Likewise.
23502 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23503 (rs6000_assemble_integer): Likewise.
23504 (rs6000_hash_constant): Likewise.
23505 (output_toc): Likewise.
23506 (rs6000_rtx_costs): Likewise.
23507 (rs6000_emit_swrsqrt); Update call to real_from_integer.
23508 * config/rs6000/rs6000-c.c: Include wide-int.h.
23509 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23510 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23511 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23512 Handle CONST_WIDE_INT.
23513 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23514 Use tree_fits_uhwi_p.
23515 * config/sparc/sparc.c: Include wide-int.h.
23516 (sparc_fold_builtin): Use wide-int interfaces.
23517 * config/vax/vax.c: Include wide-int.h.
23518 (vax_float_literal): Use real_from_integer.
23519 * coretypes.h (struct hwivec_def): New.
23521 (const_hwivec): New.
23522 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23523 (equiv_constant): Handle CONST_WIDE_INT.
23524 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23525 (cselib_hash_rtx): Handle CONST_WIDE_INT.
23526 * dbxout.c (stabstr_U): Use wide-int interfaces.
23527 (dbxout_type): Update to use cst_fits_shwi_p.
23528 * defaults.h (LOG2_BITS_PER_UNIT): Define.
23529 (TARGET_SUPPORTS_WIDE_INT): Add default.
23530 * dfp.c: Include wide-int.h.
23531 (decimal_real_to_integer2): Use wide-int interfaces and rename to
23532 decimal_real_to_integer.
23533 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23534 decimal_real_to_integer.
23535 * doc/generic.texi (Constant expressions): Update for wide_int.
23536 * doc/rtl.texi (const_double): Likewise.
23537 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23538 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23539 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23540 (REAL_VALUE_FROM_INT): Remove.
23541 (TARGET_SUPPORTS_WIDE_INT): New.
23542 * doc/tm.texi: Regenerate.
23543 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23544 * double-int.h: Include wide-int.h.
23545 (struct wi::int_traits): New.
23546 * dwarf2out.c (get_full_len): New.
23547 (dw_val_equal_p): Add case dw_val_class_wide_int.
23548 (size_of_loc_descr): Likewise.
23549 (output_loc_operands): Likewise.
23550 (insert_double): Remove.
23551 (insert_wide_int): New.
23552 (add_AT_wide): New.
23553 (print_die): Add case dw_val_class_wide_int.
23554 (attr_checksum): Likewise.
23555 (attr_checksum_ordered): Likewise.
23556 (same_dw_val_p): Likewise.
23557 (size_of_die): Likewise.
23558 (value_format): Likewise.
23559 (output_die): Likewise.
23560 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23562 (clz_loc_descriptor): Use wide-int interfaces.
23563 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
23564 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
23565 (round_up_to_align): Use wide-int interfaces.
23566 (field_byte_offset): Likewise.
23567 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
23568 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
23569 CONST_DOUBLE handling. Use wide-int interfaces.
23570 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
23571 (gen_enumeration_type_die): Use add_AT_wide.
23572 (hash_loc_operands): Add case dw_val_class_wide_int.
23573 (compare_loc_operands): Likewise.
23574 * dwarf2out.h: Include wide-int.h.
23575 (wide_int_ptr): New.
23576 (enum dw_val_class): Add dw_val_class_wide_int.
23577 (struct dw_val_struct): Add val_wide.
23578 * emit-rtl.c (const_wide_int_htab): New.
23579 (const_wide_int_htab_hash): New.
23580 (const_wide_int_htab_eq): New.
23581 (lookup_const_wide_int): New.
23582 (const_double_htab_hash): Use wide-int interfaces.
23583 (const_double_htab_eq): Likewise.
23584 (rtx_to_double_int): Conditionally compile for wide-int.
23585 (immed_double_int_const): Rename to immed_wide_int_const and
23586 update for wide-int.
23587 (immed_double_const): Conditionally compile for wide-int.
23588 (init_emit_once): Use wide-int interfaces.
23589 * explow.c (plus_constant): Likewise.
23590 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
23591 (lshift_value): Use wide-int interfaces.
23592 (expand_mult): Likewise.
23593 (choose_multiplier): Likewise.
23594 (expand_smod_pow2): Likewise.
23595 (make_tree): Likewise.
23596 * expr.c (convert_modes): Consolidate handling of constants.
23597 Use wide-int interfaces.
23598 (emit_group_load_1): Add note.
23599 (store_expr): Update comment.
23600 (get_inner_reference): Use wide-int interfaces.
23601 (expand_constructor): Update comment.
23602 (expand_expr_real_2): Use wide-int interfaces.
23603 (expand_expr_real_1): Likewise.
23604 (reduce_to_bit_field_precision): Likewise.
23605 (const_vector_from_tree): Likewise.
23606 * final.c: Include wide-int-print.h.
23607 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
23608 * fixed-value.c: Include wide-int.h.
23609 (fixed_from_string): Use wide-int interfaces.
23610 (fixed_to_decimal): Likewise.
23611 (fixed_convert_from_real): Likewise.
23612 (real_convert_from_fixed): Likewise.
23613 * fold-const.h (mem_ref_offset): Return an offset_int.
23614 (div_if_zero_remainder): Remove code parameter.
23615 * fold-const.c (div_if_zero_remainder): Remove code parameter.
23616 Use wide-int interfaces.
23617 (may_negate_without_overflow_p): Use wide-int interfaces.
23618 (negate_expr_p): Likewise.
23619 (fold_negate_expr): Likewise.
23620 (int_const_binop_1): Likewise.
23621 (const_binop): Likewise.
23622 (fold_convert_const_int_from_int): Likewise.
23623 (fold_convert_const_int_from_real): Likewise.
23624 (fold_convert_const_int_from_fixed): Likewise.
23625 (fold_convert_const_fixed_from_int): Likewise.
23626 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
23627 (sign_bit_p): Use wide-int interfaces.
23628 (make_range_step): Likewise.
23629 (build_range_check): Likewise. Pass an integer of the correct type
23630 instead of using integer_one_node.
23631 (range_predecessor): Pass an integer of the correct type instead
23632 of using integer_one_node.
23633 (range_successor): Likewise.
23634 (merge_ranges): Likewise.
23635 (unextend): Use wide-int interfaces.
23636 (extract_muldiv_1): Likewise.
23637 (fold_div_compare): Likewise.
23638 (fold_single_bit_test): Likewise.
23639 (fold_sign_changed_comparison): Likewise.
23640 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23641 (fold_plusminus_mult_expr): Use wide-int interfaces.
23642 (native_encode_int): Likewise.
23643 (native_interpret_int): Likewise.
23644 (fold_unary_loc): Likewise.
23645 (pointer_may_wrap_p): Likewise.
23646 (size_low_cst): Likewise.
23647 (mask_with_tz): Likewise.
23648 (fold_binary_loc): Likewise.
23649 (fold_ternary_loc): Likewise.
23650 (multiple_of_p): Likewise.
23651 (tree_call_nonnegative_warnv_p): Update calls to
23652 tree_int_cst_min_precision and real_from_integer.
23653 (fold_negate_const): Use wide-int interfaces.
23654 (fold_abs_const): Likewise.
23655 (fold_relational_const): Use tree_int_cst_lt.
23656 (round_up_loc): Use wide-int interfaces.
23657 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23658 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23659 * gengtype.c: Remove include of double-int.h.
23660 (do_typedef): Use wide-int interfaces.
23661 (open_base_files): Add wide-int.h.
23662 (main): Add offset_int and widest_int typedefs.
23663 * gengtype-lex.l: Handle "^".
23664 (CXX_KEYWORD): Add "static".
23665 * gengtype-parse.c (require3): New.
23666 (require_template_declaration): Handle constant template arguments
23667 and nested templates.
23668 * gengtype-state.c: Don't include "double-int.h".
23669 * genpreds.c (write_one_predicate_function): Update comment.
23670 (write_tm_constrs_h): Add check for hval and lval use in
23672 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23673 (add_to_sequence): Likewise.
23674 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23675 and const_double_operand.
23676 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23678 * gimple-fold.c (get_base_constructor): Likewise.
23679 (fold_array_ctor_reference): Likewise.
23680 (fold_nonarray_ctor_reference): Likewise.
23681 (fold_const_aggregate_ref_1): Likewise.
23682 (gimple_val_nonnegative_real_p): Likewise.
23683 (gimple_fold_indirect_ref): Likewise.
23684 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23685 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23686 (struct slsr_cand_d): Change index to be widest_int.
23687 (struct incr_info_d): Change incr to be widest_int.
23688 (alloc_cand_and_find_basis): Use wide-int interfaces.
23689 (slsr_process_phi): Likewise.
23690 (backtrace_base_for_ref): Likewise. Return a widest_int.
23691 (restructure_reference): Take a widest_int instead of a double_int.
23692 (slsr_process_ref): Use wide-int interfaces.
23693 (create_mul_ssa_cand): Likewise.
23694 (create_mul_imm_cand): Likewise.
23695 (create_add_ssa_cand): Likewise.
23696 (create_add_imm_cand): Take a widest_int instead of a double_int.
23697 (slsr_process_add): Use wide-int interfaces.
23698 (slsr_process_cast): Likewise.
23699 (slsr_process_copy): Likewise.
23700 (dump_candidate): Likewise.
23701 (dump_incr_vec): Likewise.
23702 (replace_ref): Likewise.
23703 (cand_increment): Likewise. Return a widest_int.
23704 (cand_abs_increment): Likewise.
23705 (replace_mult_candidate): Take a widest_int instead of a double_int.
23706 (replace_unconditional_candidate): Use wide-int interfaces.
23707 (incr_vec_index): Take a widest_int instead of a double_int.
23708 (create_add_on_incoming_edge): Likewise.
23709 (create_phi_basis): Use wide-int interfaces.
23710 (replace_conditional_candidate): Likewise.
23711 (record_increment): Take a widest_int instead of a double_int.
23712 (record_phi_increments): Use wide-int interfaces.
23713 (phi_incr_cost): Take a widest_int instead of a double_int.
23714 (lowest_cost_path): Likewise.
23715 (total_savings): Likewise.
23716 (analyze_increments): Use wide-int interfaces.
23717 (ncd_with_phi): Take a widest_int instead of a double_int.
23718 (ncd_of_cand_and_phis): Likewise.
23719 (nearest_common_dominator_for_cands): Likewise.
23720 (insert_initializers): Use wide-int interfaces.
23721 (all_phi_incrs_profitable): Likewise.
23722 (replace_one_candidate): Likewise.
23723 (replace_profitable_candidates): Likewise.
23724 * godump.c: Include wide-int-print.h.
23725 (go_output_typedef): Use wide-int interfaces.
23726 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23727 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23728 (build_loop_iteration_domains): Likewise.
23729 * hooks.h: Include wide-int.h rather than double-int.h.
23730 (hook_bool_dint_dint_uint_bool_true): Delete.
23731 (hook_bool_wint_wint_uint_bool_true): Declare.
23732 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23733 (hook_bool_wint_wint_uint_bool_true): New.
23734 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23736 (ubsan_expand_si_overflow_mul_check): Likewise.
23737 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23738 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23739 (get_ancestor_addr_info): Likewise.
23740 (ipa_modify_call_arguments): Likewise.
23741 * loop-doloop.c (doloop_modify): Likewise.
23742 (doloop_optimize): Likewise.
23743 * loop-iv.c (iv_number_of_iterations): Likewise.
23744 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23745 (unroll_loop_constant_iterations): Likewise.
23746 (decide_unroll_runtime_iterations): Likewise.
23747 (unroll_loop_runtime_iterations): Likewise.
23748 (decide_peel_simple): Likewise.
23749 (decide_unroll_stupid): Likewise.
23750 * lto-streamer-in.c (streamer_read_wi): Add.
23751 (input_cfg): Use wide-int interfaces.
23752 (lto_input_tree_1): Likewise.
23753 * lto-streamer-out.c (streamer_write_wi): Add.
23754 (hash_tree): Use wide-int interfaces.
23755 (output_cfg): Likewise.
23756 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23757 (GTFILES): Add wide-int.h and signop.h.
23758 (TAGS): Look for .cc files too.
23759 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23760 * optabs.c (expand_subword_shift): Likewise.
23761 (expand_doubleword_shift): Likewise.
23762 (expand_absneg_bit): Likewise.
23763 (expand_copysign_absneg): Likewise.
23764 (expand_copysign_bit): Likewise.
23765 * postreload.c (reload_cse_simplify_set): Likewise.
23766 * predict.c (predict_iv_comparison): Likewise.
23767 * pretty-print.h: Include wide-int-print.h.
23769 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23770 * print-tree.c: Include wide-int-print.h.
23771 (print_node_brief): Use wide-int interfaces.
23772 (print_node): Likewise.
23773 * read-rtl.c (validate_const_wide_int): New.
23774 (read_rtx_code): Add CONST_WIDE_INT case.
23775 * real.c: Include wide-int.h.
23776 (real_to_integer2): Delete.
23777 (real_to_integer): New function, returning a wide_int.
23778 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23779 (ten_to_ptwo): Update call to real_from_integer.
23780 (real_digit): Likewise.
23781 * real.h: Include signop.h, wide-int.h and insn-modes.h.
23782 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23783 (REAL_VALUE_TO_INT): Delete.
23784 (real_to_integer): Declare a wide-int form.
23785 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23786 * recog.c (const_int_operand): Improve comment.
23787 (const_scalar_int_operand): New.
23788 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23789 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23790 (split_double): Likewise.
23791 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23792 (rtx_size): Likewise.
23793 (rtx_alloc_stat_v): New.
23794 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23795 (cwi_output_hex): New.
23796 (iterative_hash_rtx): Handle CONST_WIDE_INT.
23797 (cwi_check_failed_bounds): New.
23798 * rtl.def (CONST_WIDE_INT): New.
23799 * rtl.h: Include <utility> and wide-int.h.
23800 (struct hwivec_def): New.
23801 (CWI_GET_NUM_ELEM): New.
23802 (CWI_PUT_NUM_ELEM): New.
23803 (struct rtx_def): Add num_elem and hwiv.
23804 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23805 (CASE_CONST_UNIQUE): Likewise.
23806 (CASE_CONST_ANY): Likewise.
23807 (CONST_SCALAR_INT_P): Likewise.
23808 (CONST_WIDE_INT_P): New.
23810 (HWIVEC_CHECK): New.
23811 (cwi_check_failed_bounds): New.
23813 (HWIVEC_CHECK): New.
23814 (CONST_WIDE_INT_VEC) New.
23815 (CONST_WIDE_INT_NUNITS) New.
23816 (CONST_WIDE_INT_ELT) New.
23817 (rtx_mode_t): New type.
23818 (wi::int_traits <rtx_mode_t>): New.
23820 (wi::min_value): New.
23821 (wi::max_value): New.
23823 (const_wide_int_alloc): New.
23824 (immed_wide_int_const): New.
23825 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23826 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23827 * signop.h: New file.
23828 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23829 (simplify_const_unary_operation): Use wide-int interfaces.
23830 (simplify_binary_operation_1): Likewise.
23831 (simplify_const_binary_operation): Likewise.
23832 (simplify_const_relational_operation): Likewise.
23833 (simplify_immed_subreg): Likewise.
23834 * stmt.c (expand_case): Likewise.
23835 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23836 signop rather than a bool.
23837 * stor-layout.c (layout_type): Use wide-int interfaces.
23838 (initialize_sizetypes): Update calls to
23839 set_min_and_max_values_for_integral_type.
23840 (set_min_and_max_values_for_integral_type): Take a signop rather
23841 than a bool. Use wide-int interfaces.
23842 (fixup_signed_type): Update accordingly. Remove
23843 HOST_BITS_PER_DOUBLE_INT limit.
23844 (fixup_unsigned_type): Likewise.
23845 * system.h (STATIC_CONSTANT_P): New.
23846 (STATIC_ASSERT): New.
23847 * target.def (can_use_doloop_p): Take widest_ints rather than
23849 * target.h: Include wide-int.h rather than double-int.h.
23850 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23852 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23853 rather than INT_CST_LT_UNSIGNED.
23854 (can_use_doloop_if_innermost): Take widest_ints rather than
23856 * tree-affine.c: Include wide-int-print.h.
23857 (double_int_ext_for_comb): Delete.
23858 (wide_int_ext_for_comb): New.
23859 (aff_combination_zero): Use wide-int interfaces.
23860 (aff_combination_const): Take a widest_int instead of a double_int.
23861 (aff_combination_elt): Use wide-int interfaces.
23862 (aff_combination_scale): Take a widest_int instead of a double_int.
23863 (aff_combination_add_elt): Likewise.
23864 (aff_combination_add_cst): Likewise.
23865 (aff_combination_add): Use wide-int interfaces.
23866 (aff_combination_convert): Likewise.
23867 (tree_to_aff_combination): Likewise.
23868 (add_elt_to_tree): Take a widest_int instead of a double_int.
23869 (aff_combination_to_tree): Use wide-int interfaces.
23870 (aff_combination_remove_elt): Likewise.
23871 (aff_combination_add_product): Take a widest_int instead of
23873 (aff_combination_mult): Use wide-int interfaces.
23874 (aff_combination_expand): Likewise.
23875 (double_int_constant_multiple_p): Delete.
23876 (wide_int_constant_multiple_p): New.
23877 (aff_combination_constant_multiple_p): Take a widest_int pointer
23878 instead of a double_int pointer.
23879 (print_aff): Use wide-int interfaces.
23880 (get_inner_reference_aff): Take a widest_int pointer
23881 instead of a double_int pointer.
23882 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23883 * tree-affine.h: Include wide-int.h.
23884 (struct aff_comb_elt): Change type of coef to widest_int.
23885 (struct affine_tree_combination): Change type of offset to widest_int.
23886 (double_int_ext_for_comb): Delete.
23887 (wide_int_ext_for_comb): New.
23888 (aff_combination_const): Use widest_int instead of double_int.
23889 (aff_combination_scale): Likewise.
23890 (aff_combination_add_elt): Likewise.
23891 (aff_combination_constant_multiple_p): Likewise.
23892 (get_inner_reference_aff): Likewise.
23893 (aff_comb_cannot_overlap_p): Likewise.
23894 (aff_combination_zero_p): Use wide-int interfaces.
23895 * tree.c: Include tree.h.
23896 (init_ttree): Use make_int_cst.
23897 (tree_code_size): Removed code for INTEGER_CST case.
23898 (tree_size): Add INTEGER_CST case.
23899 (make_node_stat): Update comment.
23900 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23901 (build_int_cst_type): Use wide-int interfaces.
23902 (double_int_to_tree): Likewise.
23903 (double_int_fits_to_tree_p): Delete.
23904 (force_fit_type_double): Delete.
23905 (force_fit_type): New.
23906 (int_cst_hash_hash): Use wide-int interfaces.
23907 (int_cst_hash_eq): Likewise.
23908 (build_int_cst_wide): Delete.
23909 (wide_int_to_tree): New.
23910 (cache_integer_cst): Use wide-int interfaces.
23911 (build_low_bits_mask): Likewise.
23912 (cst_and_fits_in_hwi): Likewise.
23913 (real_value_from_int_cst): Likewise.
23914 (make_int_cst_stat): New.
23915 (integer_zerop): Use wide_int interfaces.
23916 (integer_onep): Likewise.
23917 (integer_all_onesp): Likewise.
23918 (integer_pow2p): Likewise.
23919 (integer_nonzerop): Likewise.
23920 (tree_log2): Likewise.
23921 (tree_floor_log2): Likewise.
23922 (tree_ctz): Likewise.
23923 (int_size_in_bytes): Likewise.
23924 (mem_ref_offset): Return an offset_int rather than a double_int.
23925 (build_type_attribute_qual_variant): Use wide_int interfaces.
23926 (type_hash_eq): Likewise
23927 (tree_int_cst_equal): Likewise.
23928 (tree_int_cst_lt): Delete.
23929 (tree_int_cst_compare): Likewise.
23930 (tree_fits_shwi_p): Use wide_int interfaces.
23931 (tree_fits_uhwi_p): Likewise.
23932 (tree_int_cst_sign_bit): Likewise.
23933 (tree_int_cst_sgn): Likewise.
23934 (tree_int_cst_min_precision): Take a signop rather than a bool.
23935 (simple_cst_equal): Use wide_int interfaces.
23936 (compare_tree_int): Likewise.
23937 (iterative_hash_expr): Likewise.
23938 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
23940 (get_type_static_bounds): Use wide_int interfaces.
23941 (tree_int_cst_elt_check_failed): New.
23942 (build_common_tree_nodes): Reordered to set prec before filling in
23944 (int_cst_value): Check cst_and_fits_in_hwi.
23945 (widest_int_cst_value): Use wide_int interfaces.
23946 (upper_bound_in_type): Likewise.
23947 (lower_bound_in_type): Likewise.
23948 (num_ending_zeros): Likewise.
23949 (drop_tree_overflow): Likewise.
23950 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23951 (gen_conditions_for_pow_cst_base): Likewise.
23952 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23953 (group_case_labels_stmt): Use wide-int interfaces.
23954 (verify_gimple_assign_binary): Likewise.
23955 (print_loop): Likewise.
23956 * tree-chrec.c (tree_fold_binomial): Likewise.
23957 * tree-core.h (struct tree_base): Add int_length.
23958 (struct tree_int_cst): Change rep of value.
23959 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23960 (dr_may_alias_p): Likewise.
23961 (max_stmt_executions_tree): Likewise.
23962 * tree.def (INTEGER_CST): Update comment.
23963 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23964 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23965 * tree-dump.c: Include wide-int.h and wide-int-print.h.
23966 (dequeue_and_dump): Use wide-int interfaces.
23967 * tree.h: Include wide-int.h.
23968 (NULL_TREE): Moved to earlier loc in file.
23969 (TREE_INT_CST_ELT_CHECK): New.
23970 (tree_int_cst_elt_check_failed): New.
23972 (TREE_INT_CST): Delete.
23973 (TREE_INT_CST_LOW): Use wide-int interfaces.
23974 (TREE_INT_CST_HIGH): Delete.
23975 (TREE_INT_CST_NUNITS): New.
23976 (TREE_INT_CST_EXT_NUNITS): Likewise.
23977 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23978 (TREE_INT_CST_ELT): Likewise.
23979 (INT_CST_LT): Delete.
23980 (tree_int_cst_elt_check): New (two forms).
23981 (type_code_size): Update comment.
23982 (make_int_cst_stat, make_int_cst): New.
23983 (tree_to_double_int): Delete.
23984 (double_int_fits_to_tree_p): Delete.
23985 (force_fit_type_double): Delete.
23986 (build_int_cstu): Replace with out-of-line function.
23987 (build_int_cst_wide): Delete.
23988 (tree_int_cst_lt): Define inline.
23989 (tree_int_cst_le): New.
23990 (tree_int_cst_compare): Define inline.
23991 (tree_int_cst_min_precision): Take a signop rather than a bool.
23992 (wi::int_traits <const_tree>): New.
23993 (wi::int_traits <tree>): New.
23994 (wi::extended_tree): New.
23995 (wi::int_traits <wi::extended_tree>): New.
23996 (wi::to_widest): New.
23997 (wi::to_offset): New.
23998 (wi::fits_to_tree_p): New.
23999 (wi::min_value): New.
24000 (wi::max_value): New.
24001 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
24002 (copy_tree_body_r): Likewise.
24003 * tree-object-size.c (compute_object_offset): Likewise.
24004 (addr_object_size): Likewise.
24005 * tree-predcom.c: Include wide-int-print.h.
24006 (struct dref_d): Change type of offset to widest_int.
24007 (dump_dref): Call wide-int printer.
24008 (aff_combination_dr_offset): Use wide-int interfaces.
24009 (determine_offset): Take a widest_int pointer rather than a
24010 double_int pointer.
24011 (split_data_refs_to_components): Use wide-int interfaces.
24012 (suitable_component_p): Likewise.
24013 (order_drefs): Likewise.
24014 (add_ref_to_chain): Likewise.
24015 (valid_initializer_p): Likewise.
24016 (determine_roots_comp): Likewise.
24017 * tree-pretty-print.c: Include wide-int-print.h.
24018 (dump_generic_node): Use wide-int interfaces.
24019 * tree-sra.c (sra_ipa_modify_expr): Likewise.
24020 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24021 (move_fixed_address_to_symbol): Likewise.
24022 (move_hint_to_base): Likewise.
24023 (move_pointer_to_base): Likewise.
24024 (move_variant_to_index): Likewise.
24025 (most_expensive_mult_to_index): Likewise.
24026 (addr_to_parts): Likewise.
24027 (copy_ref_info): Likewise.
24028 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24029 (indirect_refs_may_alias_p): Likewise.
24030 (stmt_kills_ref_p_1): Likewise.
24031 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24032 * tree-ssa-ccp.c: Update comment at top of file. Include
24034 (struct prop_value_d): Change type of mask to widest_int.
24035 (extend_mask): New function.
24036 (dump_lattice_value): Use wide-int interfaces.
24037 (get_default_value): Likewise.
24038 (set_constant_value): Likewise.
24039 (set_value_varying): Likewise.
24040 (valid_lattice_transition): Likewise.
24041 (set_lattice_value): Likewise.
24042 (value_to_double_int): Delete.
24043 (value_to_wide_int): New.
24044 (get_value_from_alignment): Use wide-int interfaces.
24045 (get_value_for_expr): Likewise.
24046 (do_dbg_cnt): Likewise.
24047 (ccp_finalize): Likewise.
24048 (ccp_lattice_meet): Likewise.
24049 (bit_value_unop_1): Use widest_ints rather than double_ints.
24050 (bit_value_binop_1): Likewise.
24051 (bit_value_unop): Use wide-int interfaces.
24052 (bit_value_binop): Likewise.
24053 (bit_value_assume_aligned): Likewise.
24054 (evaluate_stmt): Likewise.
24055 (ccp_fold_stmt): Likewise.
24056 (visit_cond_stmt): Likewise.
24057 (ccp_visit_stmt): Likewise.
24058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24059 (constant_pointer_difference): Likewise.
24060 (associate_pointerplus): Likewise.
24061 (combine_conversions): Likewise.
24062 * tree-ssa-loop.h: Include wide-int.h.
24063 (struct tree_niter_desc): Change type of max to widest_int.
24064 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24065 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24066 (remove_redundant_iv_tests): Likewise.
24067 (canonicalize_loop_induction_variables): Likewise.
24068 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24069 (constant_multiple_of): Take a widest_int pointer instead of
24070 a double_int pointer.
24071 (get_computation_aff): Use wide-int interfaces.
24072 (ptr_difference_cost): Likewise.
24073 (difference_cost): Likewise.
24074 (get_loop_invariant_expr_id): Likewise.
24075 (get_computation_cost_at): Likewise.
24076 (iv_elimination_compare_lt): Likewise.
24077 (may_eliminate_iv): Likewise.
24078 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24079 instead of double_int.
24080 (max_loop_iterations): Likewise.
24081 (max_stmt_executions): Likewise.
24082 (estimated_stmt_executions): Likewise.
24083 * tree-ssa-loop-niter.c: Include wide-int-print.h.
24084 (split_to_var_and_offset): Use wide-int interfaces.
24085 (determine_value_range): Likewise.
24086 (bound_difference_of_offsetted_base): Likewise.
24087 (bounds_add): Take a widest_int instead of a double_int.
24088 (number_of_iterations_ne_max): Use wide-int interfaces.
24089 (number_of_iterations_ne): Likewise.
24090 (number_of_iterations_lt_to_ne): Likewise.
24091 (assert_loop_rolls_lt): Likewise.
24092 (number_of_iterations_lt): Likewise.
24093 (number_of_iterations_le): Likewise.
24094 (number_of_iterations_cond): Likewise.
24095 (number_of_iterations_exit): Likewise.
24096 (finite_loop_p): Likewise.
24097 (derive_constant_upper_bound_assign): Likewise.
24098 (derive_constant_upper_bound): Return a widest_int.
24099 (derive_constant_upper_bound_ops): Likewise.
24100 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24101 (record_estimate): Take a widest_int rather than a double_int.
24102 (record_nonwrapping_iv): Use wide-int interfaces.
24103 (double_int_cmp): Delete.
24104 (wide_int_cmp): New.
24105 (bound_index): Take a widest_int rather than a double_int.
24106 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24107 (maybe_lower_iteration_bound): Likewise.
24108 (estimate_numbers_of_iterations_loop): Likewise.
24109 (estimated_loop_iterations): Take a widest_int pointer than than
24110 a double_int pointer.
24111 (estimated_loop_iterations_int): Use wide-int interfaces.
24112 (max_loop_iterations): Take a widest_int pointer than than
24113 a double_int pointer.
24114 (max_loop_iterations_int): Use wide-int interfaces.
24115 (max_stmt_executions): Take a widest_int pointer than than
24116 a double_int pointer.
24117 (estimated_stmt_executions): Likewise.
24118 (n_of_executions_at_most): Use wide-int interfaces.
24119 (scev_probably_wraps_p): Likewise.
24120 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24121 to real_to_integer.
24122 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24124 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24125 double_ints. Adjust for trailing_wide_ints <3> representation.
24126 (set_nonzero_bits): Likewise.
24127 (get_range_info): Return wide_ints rather than double_ints.
24128 Adjust for trailing_wide_ints <3> representation.
24129 (get_nonzero_bits): Likewise.
24130 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24132 * tree-ssanames.h (struct range_info_def): Replace min, max and
24133 nonzero_bits with a trailing_wide_ints <3>.
24134 (set_range_info): Use wide_int_refs rather than double_ints.
24135 (set_nonzero_bits): Likewise.
24136 (get_range_info): Return wide_ints rather than double_ints.
24137 (get_nonzero_bits): Likewise.
24138 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24139 * tree-ssa-pre.c (phi_translate_1): Likewise.
24140 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24141 (acceptable_pow_call): Likewise.
24142 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24144 (vn_reference_fold_indirect): Likewise.
24145 (vn_reference_maybe_forwprop_address): Likewise.
24146 (valueize_refs_1): Likewise.
24147 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24148 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24149 tree_int_cst_lt and tree_int_cst_le.
24150 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24152 (streamer_alloc_tree): Likewise.
24153 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24154 (streamer_write_tree_header): Likewise.
24155 (streamer_write_integer_cst): Likewise.
24156 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24157 (build_constructors): Likewise.
24158 (array_value_type): Likewise.
24159 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24160 (vect_check_gather): Likewise.
24161 * tree-vect-generic.c (build_replicated_const): Likewise.
24162 (expand_vector_divmod): Likewise.
24163 * tree-vect-loop.c (vect_transform_loop): Likewise.
24164 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24165 (vect_do_peeling_for_alignment): Likewise.
24166 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24167 * tree-vrp.c: Include wide-int.h.
24168 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24169 (extract_range_from_assert): Use wide-int interfaces.
24170 (vrp_int_const_binop): Likewise.
24171 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24172 double_int pointers.
24173 (ranges_from_anti_range): Use wide-int interfaces.
24174 (quad_int_cmp): Delete.
24175 (quad_int_pair_sort): Likewise.
24176 (extract_range_from_binary_expr_1): Use wide-int interfaces.
24177 (extract_range_from_unary_expr_1): Likewise.
24178 (adjust_range_with_scev): Likewise.
24179 (masked_increment): Take and return wide_ints rather than double_ints.
24180 (register_edge_assert_for_2): Use wide-int interfaces.
24181 (check_array_ref): Likewise.
24182 (search_for_addr_array): Likewise.
24183 (maybe_set_nonzero_bits): Likewise.
24184 (union_ranges): Pass an integer of the correct type instead of
24185 using integer_one_node.
24186 (intersect_ranges): Likewise.
24187 (simplify_truth_ops_using_ranges): Likewise.
24188 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24189 (range_fits_type_p): Likewise.
24190 (simplify_cond_using_ranges): Likewise. Take a signop rather than
24192 (simplify_conversion_using_ranges): Use wide-int interfaces.
24193 (simplify_float_conversion_using_ranges): Likewise.
24194 (vrp_finalize): Likewise.
24195 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24196 (gimple_stringops_transform): Likewise.
24197 * varasm.c (decode_addr_const): Likewise.
24198 (const_hash_1): Likewise.
24199 (const_rtx_hash_1): Likewise
24200 (output_constant): Likewise.
24201 (array_size_for_constructor): Likewise.
24202 (output_constructor_regular_field): Likewise.
24203 (output_constructor_bitfield): Likewise.
24204 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24205 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24207 * gencheck.c: Define BITS_PER_UNIT.
24208 * wide-int.cc: New.
24210 * wide-int-print.cc: New.
24211 * wide-int-print.h: New.
24213 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24215 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24217 2014-05-06 Richard Biener <rguenther@suse.de>
24219 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24220 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24221 (TODO_verify_all): Adjust.
24222 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24223 TODO_verify_stmts and TODO_verify_rtl_sharing.
24224 * bb-reorder.c: Likewise.
24225 * cfgexpand.c: Likewise.
24226 * cprop.c: Likewise.
24228 * function.c: Likewise.
24229 * fwprop.c: Likewise.
24230 * gcse.c: Likewise.
24231 * gimple-ssa-isolate-paths.c: Likewise.
24232 * gimple-ssa-strength-reduction.c: Likewise.
24233 * ipa-split.c: Likewise.
24234 * loop-init.c: Likewise.
24235 * loop-unroll.c: Likewise.
24236 * lower-subreg.c: Likewise.
24237 * modulo-sched.c: Likewise.
24238 * postreload-gcse.c: Likewise.
24239 * predict.c: Likewise.
24240 * recog.c: Likewise.
24241 * sched-rgn.c: Likewise.
24242 * store-motion.c: Likewise.
24243 * tracer.c: Likewise.
24244 * trans-mem.c: Likewise.
24245 * tree-call-cdce.c: Likewise.
24246 * tree-cfg.c: Likewise.
24247 * tree-cfgcleanup.c: Likewise.
24248 * tree-complex.c: Likewise.
24249 * tree-eh.c: Likewise.
24250 * tree-emutls.c: Likewise.
24251 * tree-if-conv.c: Likewise.
24252 * tree-into-ssa.c: Likewise.
24253 * tree-loop-distribution.c: Likewise.
24254 * tree-object-size.c: Likewise.
24255 * tree-parloops.c: Likewise.
24256 * tree-pass.h: Likewise.
24257 * tree-sra.c: Likewise.
24258 * tree-ssa-ccp.c: Likewise.
24259 * tree-ssa-copy.c: Likewise.
24260 * tree-ssa-copyrename.c: Likewise.
24261 * tree-ssa-dce.c: Likewise.
24262 * tree-ssa-dom.c: Likewise.
24263 * tree-ssa-dse.c: Likewise.
24264 * tree-ssa-forwprop.c: Likewise.
24265 * tree-ssa-ifcombine.c: Likewise.
24266 * tree-ssa-loop-ch.c: Likewise.
24267 * tree-ssa-loop-ivcanon.c: Likewise.
24268 * tree-ssa-loop.c: Likewise.
24269 * tree-ssa-math-opts.c: Likewise.
24270 * tree-ssa-phiopt.c: Likewise.
24271 * tree-ssa-phiprop.c: Likewise.
24272 * tree-ssa-pre.c: Likewise.
24273 * tree-ssa-reassoc.c: Likewise.
24274 * tree-ssa-sink.c: Likewise.
24275 * tree-ssa-strlen.c: Likewise.
24276 * tree-ssa-tail-merge.c: Likewise.
24277 * tree-ssa-uncprop.c: Likewise.
24278 * tree-switch-conversion.c: Likewise.
24279 * tree-tailcall.c: Likewise.
24280 * tree-vect-generic.c: Likewise.
24281 * tree-vectorizer.c: Likewise.
24282 * tree-vrp.c: Likewise.
24283 * tsan.c: Likewise.
24284 * var-tracking.c: Likewise.
24285 * bt-load.c: Likewise.
24286 * cfgcleanup.c: Likewise.
24287 * combine-stack-adj.c: Likewise.
24288 * combine.c: Likewise.
24289 * compare-elim.c: Likewise.
24290 * config/epiphany/resolve-sw-modes.c: Likewise.
24291 * config/i386/i386.c: Likewise.
24292 * config/mips/mips.c: Likewise.
24293 * config/s390/s390.c: Likewise.
24294 * config/sh/sh_treg_combine.cc: Likewise.
24295 * config/sparc/sparc.c: Likewise.
24298 * final.c: Likewise.
24299 * ifcvt.c: Likewise.
24300 * mode-switching.c: Likewise.
24301 * passes.c: Likewise.
24302 * postreload.c: Likewise.
24304 * reg-stack.c: Likewise.
24305 * regcprop.c: Likewise.
24306 * regrename.c: Likewise.
24309 2014-05-06 Richard Biener <rguenther@suse.de>
24311 PR middle-end/61070
24312 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24313 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24315 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
24318 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24320 2014-05-05 Radovan Obradovic <robradovic@mips.com>
24321 Tom de Vries <tom@codesourcery.com>
24323 * target.def (call_fusage_contains_non_callee_clobbers): New
24325 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24327 (@node Miscellaneous Register Hooks): New node.
24328 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24329 * doc/tm.texi: Regenerate.
24331 2014-05-05 Marek Polacek <polacek@redhat.com>
24334 * opts.c (common_handle_option): Call error_at instead of warning_at.
24336 2014-05-05 Richard Biener <rguenther@suse.de>
24338 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24339 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
24340 under the TODO_verify_il umbrella.
24342 2014-05-05 Richard Biener <rguenther@suse.de>
24344 * passes.c (execute_function_todo): Move TODO_verify_flow under
24345 the TODO_verify_ul umbrella.
24347 2014-05-05 Richard Biener <rguenther@suse.de>
24349 PR middle-end/61010
24350 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24351 X & CST away from a CST that is the mask of a mode.
24353 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24355 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24356 int argument to enum machine_mode.
24357 (picochip_class_max_nregs): Ditto.
24358 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24359 (picochip_class_max_nregs): Ditto.
24361 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24363 * target.def: Add new target hook.
24364 * doc/tm.texi: Regenerate.
24365 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24366 * targhooks.c (default_keep_leaf_when_profiled): New function.
24368 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24369 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24371 2014-05-05 Bin Cheng <bin.cheng@arm.com>
24373 PR tree-optimization/60363
24374 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24375 (copy_phi_args): New parameters. Call get_value_locus_in_path.
24376 (update_destination_phis): New parameter.
24377 (create_edge_and_update_destination_phis): Ditto.
24378 (ssa_fix_duplicate_block_edges): Pass new arguments.
24379 (thread_single_edge): Ditto.
24381 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
24383 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24384 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24385 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24386 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24387 Use RS6000_BTM_HARD_FLOAT.
24388 (BU_MISC_2): Likewise.
24389 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24390 RS6000_BTM_HARD_FLOAT.
24391 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24392 is explicitly used.
24393 (rs6000_invalid_builtin): Add hard floating builtin support.
24394 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24395 hard float builtins.
24396 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24398 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24400 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24401 Add missing function* argument.
24403 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24405 * lra-constraints.c (valid_address_p): Move earlier in file.
24406 Add a constraint argument to the address_info version.
24407 (satisfies_memory_constraint_p): New function.
24408 (satisfies_address_constraint_p): Likewise.
24409 (process_alt_operands, curr_insn_transform): Use them.
24410 (process_address): Pass the constraint to valid_address_p when
24411 checking address operands.
24413 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24415 * config/mips/mips.c (mips_isa_rev): New variable.
24416 (mips_set_architecture): Set it.
24417 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24419 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24420 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24421 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24422 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24423 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24424 conditions in terms of mips_isa_rev.
24425 (mips_isa_rev): Declare.
24427 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24429 * config/sh/sh-mem.cc: Use tabs instead of spaces.
24430 (prob_unlikely, prob_likely): Make variables const.
24432 2014-05-03 Denis Chertykov <chertykov@gmail.com>
24434 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24436 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24438 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24440 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24442 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24443 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24444 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24446 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24447 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24449 Replace usage of ROUND_REG with sh_round_reg.
24450 Use CEIL instead of ROUND_ADVANCE.
24452 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24455 * config/sh/sh.c: Include stdlib headers before everything else.
24457 2014-05-02 Jakub Jelinek <jakub@redhat.com>
24459 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24460 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24461 (gimplify_adjust_omp_clauses): Simd region is never
24462 directly nested in combined parallel. Instead, for linear
24463 with copyin/copyout, if in combined for simd loop, make decl
24464 firstprivate/lastprivate on OMP_FOR.
24465 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24466 expand_omp_for_static_chunk): When setting endvar, also set
24467 fd->loop.v to the same value.
24469 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24471 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24473 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
24475 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24478 2014-05-02 Marek Polacek <polacek@redhat.com>
24480 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24482 2014-05-02 Kito Cheng <kito@0xlab.org>
24484 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24485 to a C expression marco.
24486 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24487 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24488 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24489 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24490 HONOR_REG_ALLOC_ORDER.
24491 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24493 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24495 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24497 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24499 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24501 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24503 * tree-if-conv.c (is_cond_scalar_reduction): New function.
24504 (convert_scalar_cond_reduction): Likewise.
24505 (predicate_scalar_phi): Add recognition and transformation
24506 of simple conditioanl reduction to be vectorizable.
24508 2014-05-01 Marek Polacek <polacek@redhat.com>
24511 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24513 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
24515 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24516 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24517 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24518 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24519 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24520 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24521 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24522 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24524 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
24526 * config/arc/arc.opt (mlra): Move comment above option name
24527 to avoid mis-parsing as language options.
24529 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24531 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24532 * config/sol2.h: ... here.
24533 * config/sol2-10.h: Remove.
24535 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24536 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24537 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24538 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24539 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24540 * config/sol2.h: ... here.
24541 (SECTION_NAME_FORMAT): Don't redefine.
24542 (STARTFILE_ARCH32_SPEC): Rename to ...
24543 (STARTFILE_ARCH_SPEC): ... this.
24544 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24545 * config/sparc/sol2.h: ... here.
24546 (SECTION_NAME_FORMAT): Don't undef.
24547 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24548 (SUBTARGET_EXTRA_SPECS): Remove.
24549 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24551 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24552 (MD_STARTFILE_PREFIX): Remove.
24553 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24554 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24555 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24556 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24557 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24558 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24559 * config/i386/sol2.h: ... here.
24560 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24561 * config/i386/sol2-bi.h: Remove.
24562 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24563 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24565 * config/i386/t-sol2-64: Rename to ...
24566 * config/i386/t-sol2: ... this.
24567 * config/sparc/t-sol2-64: Rename to ...
24568 * config/sparc/t-sol2: ... this.
24570 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24571 sol2_tm_file_head, sol2_tm_file_tail.
24572 Include ${cpu_type}/sol2.h before sol2.h.
24574 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24575 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24576 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24577 Reflect i386/t-sol2-64 renaming.
24578 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24579 Reflect sparc/t-sol2-64 renaming.
24581 2014-04-30 Richard Biener <rguenther@suse.de>
24583 * passes.c (execute_function_todo): Move TODO_verify_stmts
24584 and TODO_verify_ssa under the TODO_verify_il umbrella.
24585 * tree-ssa.h (verify_ssa): Adjust prototype.
24586 * tree-ssa.c (verify_ssa): Add parameter to tell whether
24587 we should verify SSA operands.
24588 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24589 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24590 whether we should verify whether not throwing stmts have EH info.
24591 * graphite-scop-detection.c (create_sese_edges): Adjust.
24592 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24593 * tree-eh.c (lower_try_finally_switch): Do not add the
24594 default case label twice.
24596 2014-04-30 Marek Polacek <polacek@redhat.com>
24598 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24599 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24600 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24601 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24603 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
24605 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24606 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24607 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24608 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24609 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24610 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24611 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24612 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24614 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24616 * tree-cfg.c (dump_function_to_file): Dump the return type of
24617 functions, in a line to itself before the function body, mimicking
24618 the layout of a C function.
24620 2014-04-29 Jakub Jelinek <jakub@redhat.com>
24622 PR tree-optimization/60971
24623 * tree-tailcall.c (process_assignment): Reject conversions which
24626 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24628 * calls.c (initialize_argument_information): Always treat
24629 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24630 (expand_call): Likewise.
24631 (emit_library_call_calue_1): Likewise.
24632 * expr.c (PUSH_ARGS_REVERSED): Do not define.
24633 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24636 2014-04-29 Nick Clifton <nickc@redhat.com>
24638 * config/msp430/msp430.md (umulsidi): Fix typo.
24639 (mulhisi3): Enable even inside interrupt handlers.
24640 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24641 bigger return address pushed in large mode.
24643 2014-04-29 Nick Clifton <nickc@redhat.com>
24645 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24646 (arc_init_reg_tables): Use a machine_mode enum to iterate over
24648 * config/m32r/m32r.c (init_reg_tables): Likewise.
24649 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24650 enum to hold the modes.
24652 2014-04-29 Richard Biener <rguenther@suse.de>
24654 * dominance.c (free_dominance_info): Add overload with
24655 function parameter.
24656 (dom_info_state): Likewise.
24657 (dom_info_available_p): Likewise.
24658 * basic-block.h (free_dominance_info, dom_info_state,
24659 dom_info_available_p): Declare overloads.
24660 * passes.c (execute_function_todo): Verify that verifiers
24661 don't change dominator info state. Drop dominator info
24662 for IPA pass invocations.
24663 * cgraph.c (release_function_body): Restore asserts that
24664 dominator information is released.
24666 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
24668 * doc/invoke.texi: Fix typo.
24669 * tree-vrp.c: Fix typos.
24670 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24672 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24674 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24676 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24678 * config/aarch64/aarch64-builtins.c
24679 (aarch64_types_storestruct_lane_qualifiers): New.
24680 (TYPES_STORESTRUCT_LANE): Likewise.
24681 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24682 (st3_lane): Likewise.
24683 (st4_lane): Likewise.
24684 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24685 (vec_store_lanesci_lane<mode>): Likewise.
24686 (vec_store_lanesxi_lane<mode>): Likewise.
24687 (aarch64_st2_lane<VQ:mode>): Likewise.
24688 (aarch64_st3_lane<VQ:mode>): Likewise.
24689 (aarch64_st4_lane<VQ:mode>): Likewise.
24690 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24691 * config/aarch64/arm_neon.h
24692 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24693 use new macro arguments.
24694 (__ST3_LANE_FUNC): Likewise.
24695 (__ST4_LANE_FUNC): Likewise.
24696 * config/aarch64/iterators.md (V_TWO_ELEM): New.
24697 (V_THREE_ELEM): Likewise.
24698 (V_FOUR_ELEM): Likewise.
24700 2014-04-28 David Malcolm <dmalcolm@redhat.com>
24702 * doc/gimple.texi: Replace the description of the now-defunct
24703 union gimple_statement_d with a diagram showing the
24704 gimple_statement_base class hierarchy and its relationships to
24705 the GSS_ and GIMPLE_ enums.
24707 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24709 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24710 * config/aarch64/aarch64.c
24711 (aarch64_cannot_change_mode_class): Weaken conditions.
24712 (aarch64_modes_tieable_p): New.
24713 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24715 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
24717 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24718 (loadsync_<mode>): Change mode.
24719 (load_quadpti, store_quadpti): New.
24720 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24721 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24723 2014-04-28 Martin Jambor <mjambor@suse.cz>
24725 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24726 same alias type as the original statement.
24727 (subreplacement_assignment_data): New type.
24728 (handle_unscalarized_data_in_subtree): New type of parameter,
24729 generate new memory accesses with same alias type as the original
24731 (load_assign_lhs_subreplacements): Likewise.
24732 (sra_modify_constructor_assign): Generate new memory accesses with
24733 same alias type as the original statement.
24735 2014-04-28 Richard Biener <rguenther@suse.de>
24737 * tree-pass.h (TODO_verify_il): Define.
24738 (TODO_verify_all): Complete properly.
24739 * passes.c (execute_function_todo): Move existing loop-closed
24740 SSA verification under TODO_verify_il.
24741 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24742 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24743 Fix tree sharing issue.
24745 2014-04-28 Richard Biener <rguenther@suse.de>
24747 PR middle-end/60092
24748 * builtins.def (DEF_C11_BUILTIN): Add.
24749 (BUILT_IN_ALIGNED_ALLOC): Likewise.
24750 * coretypes.h (enum function_class): Add function_c11_misc.
24751 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24752 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24753 (call_may_clobber_ref_p_1): Likewise.
24754 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24755 (mark_all_reaching_defs_necessary_1): Likewise.
24756 (propagate_necessity): Likewise.
24757 (eliminate_unnecessary_stmts): Likewise.
24758 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24760 2014-04-28 Richard Biener <rguenther@suse.de>
24762 * tree-vrp.c (vrp_var_may_overflow): Remove.
24763 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24764 with overflow immediately bump to one before that value and
24765 let iteration figure out overflow status.
24767 2014-04-28 Richard Biener <rguenther@suse.de>
24769 * configure.ac: Do valgrind header checks unconditionally.
24770 Add --enable-valgrind-annotations.
24771 * system.h: Guard valgrind header inclusion with
24772 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24773 * alloc-pool.c (pool_alloc, pool_free): Use
24774 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24775 to guard possibly dead code.
24776 * config.in: Regenerated.
24777 * configure: Likewise.
24779 2014-04-28 Jeff Law <law@redhat.com>
24781 PR tree-optimization/60902
24782 * tree-ssa-threadedge.c
24783 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24784 over real defs when invalidating outputs from statements that do not
24785 produce useful outputs for threading.
24787 2014-04-28 Richard Biener <rguenther@suse.de>
24789 PR tree-optimization/60979
24790 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24791 SCOPs that end in a block with a successor with abnormal
24794 2014-04-28 Richard Biener <rguenther@suse.de>
24796 * tree-pass.h (execute_pass_list): Adjust prototype.
24797 * passes.c (pass_manager::execute_early_local_passes): Adjust.
24798 (do_per_function): Change callback signature, push all actual
24799 work to the callbals.
24800 (do_per_function_toporder): Likewise.
24801 (execute_function_dump): Adjust.
24802 (execute_function_todo): Likewise.
24803 (clear_last_verified): Likewise.
24804 (verify_curr_properties): Likewise.
24805 (update_properties_after_pass): Likewise.
24806 (execute_pass_list_1): Split out from ...
24807 (execute_pass_list): ... here. Adjust.
24808 (execute_ipa_pass_list): Likewise.
24809 * cgraphunit.c (cgraph_add_new_function): Adjust.
24810 (analyze_function): Likewise.
24811 (expand_function): Likewise.
24812 * cgraph.c (release_function_body): Free dominance info
24813 here instead of asserting it was magically freed elsewhere.
24815 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
24817 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24818 * configure: Regenerate.
24819 * config/sparc/sparc.opt (muser-mode): New option.
24820 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24822 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24823 * doc/invoke.texi (SPARC options): Document -muser-mode.
24825 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
24827 * cselib.c (find_slot_memmode): Delete.
24828 (cselib_hasher): Change compare_type to a struct.
24829 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
24831 (preserve_constants_and_equivs): Adjust for new compare_type.
24832 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
24833 (wrap_constant): Delete.
24834 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24836 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24838 * doc/install.texi (Building with profile feedback): Remove
24841 2014-04-26 Tom de Vries <tom@codesourcery.com>
24843 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24846 2014-04-25 Cary Coutant <ccoutant@google.com>
24849 * dwarf2out.c (should_move_die_to_comdat): A type definition
24850 can contain a subprogram definition, but don't move it to a
24852 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24853 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24855 (clone_tree_hash): Rename to...
24856 (clone_tree_partial): ...this; change callers. Copy
24857 DW_TAG_subprogram DIEs as declarations.
24858 (copy_decls_walk): Don't copy children of a declaration into a
24861 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
24864 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24867 2014-04-25 Jiong Wang <jiong.wang@arm.com>
24869 * config/arm/predicates.md (call_insn_operand): Add long_call check.
24870 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24872 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24875 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24877 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24879 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24881 PR tree-optimization/60930
24882 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
24883 creating a multiply candidate by folding two constant
24884 multiplicands when the result overflows.
24886 2014-04-25 Jakub Jelinek <jakub@redhat.com>
24888 PR tree-optimization/60960
24889 * tree-vect-generic.c (expand_vector_operation): Only call
24890 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24892 2014-04-25 Tom de Vries <tom@codesourcery.com>
24894 * expr.c (clobber_reg_mode): New function.
24895 * expr.h (clobber_reg): New function.
24897 2014-04-25 Tom de Vries <tom@codesourcery.com>
24899 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24902 2014-04-25 Radovan Obradovic <robradovic@mips.com>
24903 Tom de Vries <tom@codesourcery.com>
24905 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24907 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24908 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24909 new argument to find_all_hard_reg_sets call.
24911 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24913 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24914 Use HOST_WIDE_INT_C for mask literal.
24915 (aarch_rev16_shleft_mask_imm_p): Likewise.
24917 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
24920 * config/sparc/sparc.md (ashlsi3_extend): Delete.
24922 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
24924 PR preprocessor/56540
24925 * config/i386/i386-c.c (ix86_target_macros): Define
24926 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24928 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24930 * configure.ac (tga_func): Remove.
24931 (LIB_TLS_SPEC): Remove.
24932 * configure: Regenerate.
24933 * config.in: Regenerate.
24934 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24936 2014-04-25 Richard Biener <rguenther@suse.de>
24939 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24940 call stmt use/clobber sets during stmt walk instead of
24941 walking the possibly incomplete set of caller edges.
24943 2014-04-25 Richard Biener <rguenther@suse.de>
24946 * passes.c (apply_ipa_transforms): Inline into only caller ...
24947 (execute_one_pass): ... here. Properly bring in function
24948 bodies for nodes we want to apply IPA transforms to.
24950 2014-04-24 Cong Hou <congh@google.com>
24952 PR tree-optimization/60896
24953 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24954 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24955 (vect_mark_pattern_stmts): Set the def type of all statements in
24956 PATTERN_DEF_SEQ as vect_internal_def.
24958 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24960 * doc/extend.texi (PowerPC Built-in Functions): Document new
24961 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24962 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24964 * config/rs6000/predicates.md (const_0_to_3_operand): New
24965 predicate to match 0..3 integer constants.
24967 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24968 to support adding miscellaneous builtin functions.
24969 (BU_DFP_MISC_2): Likewise.
24970 (BU_P7_MISC_1): Likewise.
24971 (BU_P7_MISC_2): Likewise.
24972 (BU_P8V_MISC_3): Likewise.
24973 (BU_MISC_1): Likewise.
24974 (BU_MISC_2): Likewise.
24975 (DIVWE): Add extended divide builtin functions.
24976 (DIVWEO): Likewise.
24977 (DIVWEU): Likewise.
24978 (DIVWEUO): Likewise.
24980 (DIVDEO): Likewise.
24981 (DIVDEU): Likewise.
24982 (DIVDEUO): Likewise.
24983 (DXEX): Add decimal floating-point builtin functions.
24985 (DDEDPD): Likewise.
24986 (DDEDPDQ): Likewise.
24987 (DENBCD): Likewise.
24988 (DENBCDQ): Likewise.
24992 (DSCLIQ): Likewise.
24994 (DSCRIQ): Likewise.
24995 (CDTBCD): Add new BCD builtin functions.
24996 (CBCDTD): Likewise.
24997 (ADDG6S): Likewise.
24998 (BCDADD): Likewise.
24999 (BCDADD_LT): Likewise.
25000 (BCDADD_EQ): Likewise.
25001 (BCDADD_GT): Likewise.
25002 (BCDADD_OV): Likewise.
25003 (BCDSUB): Likewise.
25004 (BCDSUB_LT): Likewise.
25005 (BCDSUB_EQ): Likewise.
25006 (BCDSUB_GT): Likewise.
25007 (BCDSUB_OV): Likewise.
25008 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
25009 (UNPACK_TD): Likewise.
25010 (PACK_TF): Likewise.
25011 (UNPACK_TF): Likewise.
25012 (UNPACK_TF_0): Likewise.
25013 (UNPACK_TF_1): Likewise.
25014 (PACK_V1TI): Likewise.
25015 (UNPACK_V1TI): Likewise.
25017 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25018 support for decimal floating point builtin functions.
25019 (rs6000_expand_ternop_builtin): Add checks for the new builtin
25020 functions that take constant arguments.
25021 (rs6000_invalid_builtin): Add decimal floating point builtin support.
25022 (rs6000_init_builtins): Setup long double, _Decimal64, and
25023 _Decimal128 types for new builtin functions.
25024 (builtin_function_type): Set the unsigned flags appropriately for
25025 the new builtin functions.
25026 (rs6000_opt_masks): Add support for decimal floating point builtin
25029 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25030 floating point builtin functions.
25031 (RS6000_BTM_COMMON): Likewise.
25032 (RS6000_BTI_long_double): Likewise.
25033 (RS6000_BTI_dfloat64): Likewise.
25034 (RS6000_BTI_dfloat128): Likewise.
25035 (long_double_type_internal_node): Likewise.
25036 (dfloat64_type_internal_node): Likewise.
25037 (dfloat128_type_internal_node): Likewise.
25039 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25040 2.07 bcd arithmetic instructions.
25041 (UNSPEC_BCDSUB): Likewise.
25042 (UNSPEC_BCD_OVERFLOW): Likewise.
25043 (UNSPEC_BCD_ADD_SUB): Likewise.
25044 (bcd_add_sub): Likewise.
25045 (BCD_TEST): Likewise.
25046 (bcd<bcd_add_sub>): Likewise.
25047 (bcd<bcd_add_sub>_test): Likewise.
25048 (bcd<bcd_add_sub>_test2): Likewise.
25049 (bcd<bcd_add_sub>_<code>): Likewise.
25050 (peephole2 for combined bcd ops): Likewise.
25052 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25053 decimal floating point builtin functions.
25054 (UNSPEC_DENBCD): Likewise.
25055 (UNSPEC_DXEX): Likewise.
25056 (UNSPEC_DIEX): Likewise.
25057 (UNSPEC_DSCLI): Likewise.
25058 (UNSPEC_DSCRI): Likewise.
25059 (D64_D128): Likewise.
25060 (dfp_suffix): Likewise.
25061 (dfp_ddedpd_<mode>): Likewise.
25062 (dfp_denbcd_<mode>): Likewise.
25063 (dfp_dxex_<mode>): Likewise.
25064 (dfp_diex_<mode>): Likewise.
25065 (dfp_dscli_<mode>): Likewise.
25066 (dfp_dscri_<mode>): Likewise.
25068 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25070 (UNSPEC_CDTBCD): Likewise.
25071 (UNSPEC_CBCDTD): Likewise.
25072 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25073 (UNSPEC_DIVEO): Likewise.
25074 (UNSPEC_DIVEU): Likewise.
25075 (UNSPEC_DIVEUO): Likewise.
25076 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25077 pack/unpack 128-bit types.
25078 (UNSPEC_PACK_128BIT): Likewise.
25079 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25080 (udiv<mode>3): Use idiv_ldiv mode attribute.
25081 (div<mode>3): Likewise.
25082 (addg6s): Add new BCD builtin functions.
25083 (cdtbcd): Likewise.
25084 (cbcdtd): Likewise.
25085 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25086 (div_extend): Likewise.
25087 (div<div_extend>_<mode>"): Likewise.
25088 (FP128_64): Add support for new builtin functions to pack/unpack
25090 (unpack<mode>): Likewise.
25091 (unpacktf_0): Likewise.
25092 (unpacktf_1): Likewise.
25093 (unpack<mode>_dm): Likewise.
25094 (unpack<mode>_nodm): Likewise.
25095 (pack<mode>): Likewise.
25096 (unpackv1ti): Likewise.
25097 (packv1ti): Likewise.
25099 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
25101 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25104 2014-04-24 Jakub Jelinek <jakub@redhat.com>
25106 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25107 * gimplify.c (omp_is_private): Change last argument's type to int.
25108 Only diagnose lastprivate if the simd argument is 1, only diagnose
25109 linear if the simd argument is 2.
25110 (gimplify_omp_for): Adjust omp_is_private callers. When adding
25111 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
25112 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
25113 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25114 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25115 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25116 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25117 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25118 * tree-nested.c (convert_nonlocal_omp_clauses,
25119 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25121 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
25124 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25127 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
25129 * flag-types.h (enum ivar_visibility): Add.
25131 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
25133 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25134 function * argument.
25136 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
25138 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25140 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25141 Tom de Vries <tom@codesourcery.com>
25143 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25144 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25146 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25147 * emit-rtl.c (try_split): Same.
25149 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25150 Tom de Vries <tom@codesourcery.com>
25152 * common.opt (fuse-caller-save): New option.
25154 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
25156 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25157 elements for big-endian.
25159 2014-04-24 Richard Biener <rguenther@suse.de>
25161 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25162 during TER and instead use the sepops interface for expanding
25163 non-GIMPLE_SINGLE_RHS.
25165 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25167 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25168 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25170 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25172 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25173 assembler 64-bit option.
25174 * configure: Regenerate.
25176 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25178 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25179 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25180 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25181 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25182 (TARGET_CRYPTO): Take TARGET_SIMD into account.
25184 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25186 * config/aarch64/aarch64-builtins.c
25187 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25188 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25189 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25190 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25192 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25193 (Vrevsuff): New mode attribute.
25195 2014-04-24 Terry Guo <terry.guo@arm.com>
25197 * config/arm/arm.h (machine_function): Define variable
25198 after_arm_reorg here.
25199 * config/arm/arm.c (after_arm_reorg): Remove the definition.
25200 (arm_split_constant): Update the way to access variable
25202 (arm_reorg): Ditto.
25203 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25205 2014-04-23 Tom de Vries <tom@codesourcery.com>
25207 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25209 2014-04-23 David Malcolm <dmalcolm@redhat.com>
25211 * is-a.h: Update comments to reflect the following changes to the
25212 "pointerness" of the API, making the template parameter match the
25213 return type, allowing use of is-a.h with typedefs of pointers.
25214 (is_a_helper::cast): Return a T rather then a pointer to a T, so
25215 that the return type matches the parameter to the is_a_helper.
25217 (dyn_cast): Likewise.
25219 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25220 pointer from the is-a.h API.
25222 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25223 (is_a_helper <cgraph_node *>::test): ...this, matching change to
25225 (is_a_helper <varpool_node>::test): Likewise, convert to...
25226 (is_a_helper <varpool_node *>::test): ...this.
25228 (varpool_first_variable): Update for removal of implicit pointer
25229 from the is-a.h API.
25230 (varpool_next_variable): Likewise.
25231 (varpool_first_static_initializer): Likewise.
25232 (varpool_next_static_initializer): Likewise.
25233 (varpool_first_defined_variable): Likewise.
25234 (varpool_next_defined_variable): Likewise.
25235 (cgraph_first_defined_function): Likewise.
25236 (cgraph_next_defined_function): Likewise.
25237 (cgraph_first_function): Likewise.
25238 (cgraph_next_function): Likewise.
25239 (cgraph_first_function_with_gimple_body): Likewise.
25240 (cgraph_next_function_with_gimple_body): Likewise.
25241 (cgraph_alias_target): Likewise.
25242 (varpool_alias_target): Likewise.
25243 (cgraph_function_or_thunk_node): Likewise.
25244 (varpool_variable_node): Likewise.
25245 (symtab_real_symbol_p): Likewise.
25246 * cgraphunit.c (referred_to_p): Likewise.
25247 (analyze_functions): Likewise.
25248 (handle_alias_pairs): Likewise.
25249 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25250 * gimple-ssa.h (gimple_vuse_op): Likewise.
25251 (gimple_vdef_op): Likewise.
25252 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25253 * gimple.c (gimple_build_asm_1): Likewise.
25254 (gimple_build_try): Likewise.
25255 (gimple_build_resx): Likewise.
25256 (gimple_build_eh_dispatch): Likewise.
25257 (gimple_build_omp_for): Likewise.
25258 (gimple_omp_for_set_clauses): Likewise.
25260 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25261 (is_a_helper <gimple_statement_asm *>::test): ...this.
25262 (is_a_helper <gimple_statement_bind>::test): Convert to...
25263 (is_a_helper <gimple_statement_bind *>::test): ...this.
25264 (is_a_helper <gimple_statement_call>::test): Convert to...
25265 (is_a_helper <gimple_statement_call *>::test): ...this.
25266 (is_a_helper <gimple_statement_catch>::test): Convert to...
25267 (is_a_helper <gimple_statement_catch *>::test): ...this.
25268 (is_a_helper <gimple_statement_resx>::test): Convert to...
25269 (is_a_helper <gimple_statement_resx *>::test): ...this.
25270 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25271 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25272 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25273 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25274 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25275 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25276 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25277 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25278 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25279 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25280 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25281 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25282 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25283 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25284 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25285 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25286 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25287 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25288 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25289 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25290 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25291 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25292 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25293 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25294 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25295 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25296 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25297 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25298 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25299 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25300 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25301 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25302 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25303 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25304 (is_a_helper <gimple_statement_phi>::test): Convert to...
25305 (is_a_helper <gimple_statement_phi *>::test): ...this.
25306 (is_a_helper <gimple_statement_transaction>::test): Convert to...
25307 (is_a_helper <gimple_statement_transaction *>::test): ...this.
25308 (is_a_helper <gimple_statement_try>::test): Convert to...
25309 (is_a_helper <gimple_statement_try *>::test): ...this.
25310 (is_a_helper <gimple_statement_wce>::test): Convert to...
25311 (is_a_helper <gimple_statement_wce *>::test): ...this.
25312 (is_a_helper <const gimple_statement_asm>::test): Convert to...
25313 (is_a_helper <const gimple_statement_asm *>::test): ...this.
25314 (is_a_helper <const gimple_statement_bind>::test): Convert to...
25315 (is_a_helper <const gimple_statement_bind *>::test): ...this.
25316 (is_a_helper <const gimple_statement_call>::test): Convert to...
25317 (is_a_helper <const gimple_statement_call *>::test): ...this.
25318 (is_a_helper <const gimple_statement_catch>::test): Convert to...
25319 (is_a_helper <const gimple_statement_catch *>::test): ...this.
25320 (is_a_helper <const gimple_statement_resx>::test): Convert to...
25321 (is_a_helper <const gimple_statement_resx *>::test): ...this.
25322 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25323 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25324 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25325 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25326 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25328 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25330 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25332 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25334 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25335 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25336 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25338 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25339 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25341 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25342 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25343 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25344 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25345 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25346 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25348 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25349 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25350 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25351 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25353 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25354 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25355 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25356 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25357 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25358 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25359 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25360 (is_a_helper <const gimple_statement_phi>::test): Convert to...
25361 (is_a_helper <const gimple_statement_phi *>::test): ...this.
25362 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25363 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25364 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25365 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25366 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25367 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25368 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25370 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25372 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25373 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25375 (gimple_use_ops): Update for removal of implicit pointer from the
25377 (gimple_set_use_ops): Likewise.
25378 (gimple_vuse): Likewise.
25379 (gimple_vdef): Likewise.
25380 (gimple_vuse_ptr): Likewise.
25381 (gimple_vdef_ptr): Likewise.
25382 (gimple_set_vuse): Likewise.
25383 (gimple_set_vdef): Likewise.
25384 (gimple_omp_return_set_lhs): Likewise.
25385 (gimple_omp_return_lhs): Likewise.
25386 (gimple_omp_return_lhs_ptr): Likewise.
25387 (gimple_call_fntype): Likewise.
25388 (gimple_call_set_fntype): Likewise.
25389 (gimple_call_set_internal_fn): Likewise.
25390 (gimple_call_use_set): Likewise.
25391 (gimple_call_clobber_set): Likewise.
25392 (gimple_bind_vars): Likewise.
25393 (gimple_bind_set_vars): Likewise.
25394 (gimple_bind_body_ptr): Likewise.
25395 (gimple_bind_set_body): Likewise.
25396 (gimple_bind_add_stmt): Likewise.
25397 (gimple_bind_block): Likewise.
25398 (gimple_bind_set_block): Likewise.
25399 (gimple_asm_ninputs): Likewise.
25400 (gimple_asm_noutputs): Likewise.
25401 (gimple_asm_nclobbers): Likewise.
25402 (gimple_asm_nlabels): Likewise.
25403 (gimple_asm_input_op): Likewise.
25404 (gimple_asm_input_op_ptr): Likewise.
25405 (gimple_asm_output_op): Likewise.
25406 (gimple_asm_output_op_ptr): Likewise.
25407 (gimple_asm_set_output_op): Likewise.
25408 (gimple_asm_clobber_op): Likewise.
25409 (gimple_asm_set_clobber_op): Likewise.
25410 (gimple_asm_label_op): Likewise.
25411 (gimple_asm_set_label_op): Likewise.
25412 (gimple_asm_string): Likewise.
25413 (gimple_catch_types): Likewise.
25414 (gimple_catch_types_ptr): Likewise.
25415 (gimple_catch_handler_ptr): Likewise.
25416 (gimple_catch_set_types): Likewise.
25417 (gimple_catch_set_handler): Likewise.
25418 (gimple_eh_filter_types): Likewise.
25419 (gimple_eh_filter_types_ptr): Likewise.
25420 (gimple_eh_filter_failure_ptr): Likewise.
25421 (gimple_eh_filter_set_types): Likewise.
25422 (gimple_eh_filter_set_failure): Likewise.
25423 (gimple_eh_must_not_throw_fndecl): Likewise.
25424 (gimple_eh_must_not_throw_set_fndecl): Likewise.
25425 (gimple_eh_else_n_body_ptr): Likewise.
25426 (gimple_eh_else_e_body_ptr): Likewise.
25427 (gimple_eh_else_set_n_body): Likewise.
25428 (gimple_eh_else_set_e_body): Likewise.
25429 (gimple_try_eval_ptr): Likewise.
25430 (gimple_try_cleanup_ptr): Likewise.
25431 (gimple_try_set_eval): Likewise.
25432 (gimple_try_set_cleanup): Likewise.
25433 (gimple_wce_cleanup_ptr): Likewise.
25434 (gimple_wce_set_cleanup): Likewise.
25435 (gimple_phi_capacity): Likewise.
25436 (gimple_phi_num_args): Likewise.
25437 (gimple_phi_result): Likewise.
25438 (gimple_phi_result_ptr): Likewise.
25439 (gimple_phi_set_result): Likewise.
25440 (gimple_phi_arg): Likewise.
25441 (gimple_phi_set_arg): Likewise.
25442 (gimple_resx_region): Likewise.
25443 (gimple_resx_set_region): Likewise.
25444 (gimple_eh_dispatch_region): Likewise.
25445 (gimple_eh_dispatch_set_region): Likewise.
25446 (gimple_omp_critical_name): Likewise.
25447 (gimple_omp_critical_name_ptr): Likewise.
25448 (gimple_omp_critical_set_name): Likewise.
25449 (gimple_omp_for_clauses): Likewise.
25450 (gimple_omp_for_clauses_ptr): Likewise.
25451 (gimple_omp_for_set_clauses): Likewise.
25452 (gimple_omp_for_collapse): Likewise.
25453 (gimple_omp_for_index): Likewise.
25454 (gimple_omp_for_index_ptr): Likewise.
25455 (gimple_omp_for_set_index): Likewise.
25456 (gimple_omp_for_initial): Likewise.
25457 (gimple_omp_for_initial_ptr): Likewise.
25458 (gimple_omp_for_set_initial): Likewise.
25459 (gimple_omp_for_final): Likewise.
25460 (gimple_omp_for_final_ptr): Likewise.
25461 (gimple_omp_for_set_final): Likewise.
25462 (gimple_omp_for_incr): Likewise.
25463 (gimple_omp_for_incr_ptr): Likewise.
25464 (gimple_omp_for_set_incr): Likewise.
25465 (gimple_omp_for_pre_body_ptr): Likewise.
25466 (gimple_omp_for_set_pre_body): Likewise.
25467 (gimple_omp_parallel_clauses): Likewise.
25468 (gimple_omp_parallel_clauses_ptr): Likewise.
25469 (gimple_omp_parallel_set_clauses): Likewise.
25470 (gimple_omp_parallel_child_fn): Likewise.
25471 (gimple_omp_parallel_child_fn_ptr): Likewise.
25472 (gimple_omp_parallel_set_child_fn): Likewise.
25473 (gimple_omp_parallel_data_arg): Likewise.
25474 (gimple_omp_parallel_data_arg_ptr): Likewise.
25475 (gimple_omp_parallel_set_data_arg): Likewise.
25476 (gimple_omp_task_clauses): Likewise.
25477 (gimple_omp_task_clauses_ptr): Likewise.
25478 (gimple_omp_task_set_clauses): Likewise.
25479 (gimple_omp_task_child_fn): Likewise.
25480 (gimple_omp_task_child_fn_ptr): Likewise.
25481 (gimple_omp_task_set_child_fn): Likewise.
25482 (gimple_omp_task_data_arg): Likewise.
25483 (gimple_omp_task_data_arg_ptr): Likewise.
25484 (gimple_omp_task_set_data_arg): Likewise.
25485 (gimple_omp_taskreg_clauses): Likewise.
25486 (gimple_omp_taskreg_clauses_ptr): Likewise.
25487 (gimple_omp_taskreg_set_clauses): Likewise.
25488 (gimple_omp_taskreg_child_fn): Likewise.
25489 (gimple_omp_taskreg_child_fn_ptr): Likewise.
25490 (gimple_omp_taskreg_set_child_fn): Likewise.
25491 (gimple_omp_taskreg_data_arg): Likewise.
25492 (gimple_omp_taskreg_data_arg_ptr): Likewise.
25493 (gimple_omp_taskreg_set_data_arg): Likewise.
25494 (gimple_omp_task_copy_fn): Likewise.
25495 (gimple_omp_task_copy_fn_ptr): Likewise.
25496 (gimple_omp_task_set_copy_fn): Likewise.
25497 (gimple_omp_task_arg_size): Likewise.
25498 (gimple_omp_task_arg_size_ptr): Likewise.
25499 (gimple_omp_task_set_arg_size): Likewise.
25500 (gimple_omp_task_arg_align): Likewise.
25501 (gimple_omp_task_arg_align_ptr): Likewise.
25502 (gimple_omp_task_set_arg_align): Likewise.
25503 (gimple_omp_single_clauses): Likewise.
25504 (gimple_omp_single_clauses_ptr): Likewise.
25505 (gimple_omp_single_set_clauses): Likewise.
25506 (gimple_omp_target_clauses): Likewise.
25507 (gimple_omp_target_clauses_ptr): Likewise.
25508 (gimple_omp_target_set_clauses): Likewise.
25509 (gimple_omp_target_child_fn): Likewise.
25510 (gimple_omp_target_child_fn_ptr): Likewise.
25511 (gimple_omp_target_set_child_fn): Likewise.
25512 (gimple_omp_target_data_arg): Likewise.
25513 (gimple_omp_target_data_arg_ptr): Likewise.
25514 (gimple_omp_target_set_data_arg): Likewise.
25515 (gimple_omp_teams_clauses): Likewise.
25516 (gimple_omp_teams_clauses_ptr): Likewise.
25517 (gimple_omp_teams_set_clauses): Likewise.
25518 (gimple_omp_sections_clauses): Likewise.
25519 (gimple_omp_sections_clauses_ptr): Likewise.
25520 (gimple_omp_sections_set_clauses): Likewise.
25521 (gimple_omp_sections_control): Likewise.
25522 (gimple_omp_sections_control_ptr): Likewise.
25523 (gimple_omp_sections_set_control): Likewise.
25524 (gimple_omp_for_set_cond): Likewise.
25525 (gimple_omp_for_cond): Likewise.
25526 (gimple_omp_atomic_store_set_val): Likewise.
25527 (gimple_omp_atomic_store_val): Likewise.
25528 (gimple_omp_atomic_store_val_ptr): Likewise.
25529 (gimple_omp_atomic_load_set_lhs): Likewise.
25530 (gimple_omp_atomic_load_lhs): Likewise.
25531 (gimple_omp_atomic_load_lhs_ptr): Likewise.
25532 (gimple_omp_atomic_load_set_rhs): Likewise.
25533 (gimple_omp_atomic_load_rhs): Likewise.
25534 (gimple_omp_atomic_load_rhs_ptr): Likewise.
25535 (gimple_omp_continue_control_def): Likewise.
25536 (gimple_omp_continue_control_def_ptr): Likewise.
25537 (gimple_omp_continue_set_control_def): Likewise.
25538 (gimple_omp_continue_control_use): Likewise.
25539 (gimple_omp_continue_control_use_ptr): Likewise.
25540 (gimple_omp_continue_set_control_use): Likewise.
25541 (gimple_transaction_body_ptr): Likewise.
25542 (gimple_transaction_label): Likewise.
25543 (gimple_transaction_label_ptr): Likewise.
25544 (gimple_transaction_set_body): Likewise.
25545 (gimple_transaction_set_label): Likewise.
25547 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25548 * ipa-inline-analysis.c (inline_write_summary): Likewise.
25549 * ipa-ref.c (ipa_record_reference): Likewise.
25550 * ipa-reference.c (analyze_function): Likewise.
25551 (ipa_reference_write_optimization_summary): Likewise.
25552 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25553 (address_taken_from_non_vtable_p): Likewise.
25554 (comdat_can_be_unshared_p_1): Likewise.
25555 * lto-cgraph.c (lto_output_ref): Likewise.
25556 (add_references): Likewise.
25557 (compute_ltrans_boundary): Likewise.
25558 (output_symtab): Likewise.
25559 (input_ref): Likewise.
25560 (input_cgraph_1): Likewise.
25561 (output_cgraph_opt_summary): Likewise.
25562 * lto-streamer-out.c (lto_output): Likewise.
25563 (output_symbol_p): Likewise.
25564 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25565 (lsei_start_function_in_partition): Likewise.
25566 (lsei_next_variable_in_partition): Likewise.
25567 (lsei_start_variable_in_partition): Likewise.
25568 * symtab.c (insert_to_assembler_name_hash): Likewise.
25569 (unlink_from_assembler_name_hash): Likewise.
25570 (symtab_unregister_node): Likewise.
25571 (symtab_remove_node): Likewise.
25572 (dump_symtab_node): Likewise.
25573 (verify_symtab_base): Likewise.
25574 (verify_symtab_node): Likewise.
25575 (symtab_make_decl_local): Likewise.
25576 (symtab_alias_ultimate_target): Likewise.
25577 (symtab_resolve_alias): Likewise.
25578 (symtab_get_symbol_partitioning_class): Likewise.
25579 * tree-phinodes.c (allocate_phi_node): Likewise.
25580 (reserve_phi_args_for_new_edge): Likewise.
25581 (remove_phi_args): Likewise.
25582 * varpool.c (varpool_node_for_asm): Likewise.
25583 (varpool_remove_unreferenced_decls): Likewise.
25585 2014-04-23 Jeff Law <law@redhat.com>
25587 PR tree-optimization/60902
25588 * tree-ssa-threadedge.c
25589 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25590 invalidate outputs from statements that do not produce useful
25591 outputs for threading.
25593 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
25595 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25596 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25597 machine descriptions for Stack Smashing Protector.
25599 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
25601 * aarch64.md (<optab>_rol<mode>3): New pattern.
25602 (<optab>_rolsi3_uxtw): Likewise.
25603 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25605 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
25607 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25608 (arm_cortex_a12_tune): Likewise.
25610 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25612 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25614 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25616 * config/arm/arm.md (arm_rev16si2): New pattern.
25617 (arm_rev16si2_alt): Likewise.
25618 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25620 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25622 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25623 (rev16<mode>2_alt): Likewise.
25624 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25625 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25626 (aarch_rev16_shleft_mask_imm_p): Likewise.
25627 (aarch_rev16_p_1): Likewise.
25628 (aarch_rev16_p): Likewise.
25629 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25630 (aarch_rev16_shright_mask_imm_p): Likewise.
25631 (aarch_rev16_shleft_mask_imm_p): Likewise.
25633 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25635 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25636 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25638 (cortex_a53_extra_costs): Likewise.
25639 (cortex_a57_extra_costs): Likewise.
25640 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25641 (cortexa7_extra_costs): Likewise.
25642 (cortexa8_extra_costs): Likewise.
25643 (cortexa12_extra_costs): Likewise.
25644 (cortexa15_extra_costs): Likewise.
25645 (v7m_extra_costs): Likewise.
25646 (arm_new_rtx_costs): Handle BSWAP.
25648 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25650 * config/arm/arm.c (cortexa8_extra_costs): New table.
25651 (arm_cortex_a8_tune): New tuning struct.
25652 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25654 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25656 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25658 2014-04-23 Richard Biener <rguenther@suse.de>
25660 * Makefile.in (OBJS): Remove loop-unswitch.o.
25661 * tree-pass.h (make_pass_rtl_unswitch): Remove.
25662 * passes.def (pass_rtl_unswitch): Likewise.
25663 * loop-init.c (gate_rtl_unswitch): Likewise.
25664 (rtl_unswitch): Likewise.
25665 (pass_data_rtl_unswitch): Likewise.
25666 (pass_rtl_unswitch): Likewise.
25667 (make_pass_rtl_unswitch): Likewise.
25668 * rtl.h (reversed_condition): Likewise.
25669 (compare_and_jump_seq): Likewise.
25670 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25672 * loop-unroll.c (compare_and_jump_seq): Likewise.
25674 2014-04-23 Richard Biener <rguenther@suse.de>
25676 PR tree-optimization/60903
25677 * tree-ssa-loop-im.c (analyze_memory_references): Remove
25678 commented code block.
25679 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25680 loop flags to newly created BBs and edges.
25682 2014-04-23 Nick Clifton <nickc@redhat.com>
25684 * config/msp430/msp430.c (msp430_handle_option): Move function
25686 (msp430_option_override): Simplify mcu and mcpu option handling.
25687 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
25688 support for -mhwmult command line option.
25689 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
25690 -mhwmult command line option.
25691 (msp430_hwmult_enabled): Delete.
25692 (msp43o_output_labelref): Add support for -mhwmult command line option.
25693 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25694 (umulsidi3): Likewise.
25695 * config/msp430/msp430.opt (mmcu): Add Report attribute.
25696 (mcpu, mlarge, msmall): Likewise.
25697 (mhwmult): New option.
25698 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25700 (msp430_is_f5_mcu): Remove prototype.
25701 (msp430_use_f5_series_hwmult): Add prototype.
25702 * config/msp430/msp430-opts.h: New file.
25703 * common/config/msp430: New directory.
25704 * common/config/msp430/msp430-common.c: New file.
25705 * config.gcc (msp430): Remove target_has_targetm_common.
25706 * doc/invoke.texi: Document -mhwmult command line option.
25708 2014-04-23 Nick Clifton <nickc@redhat.com>
25710 * config/i386/cygwin.h (ENDFILE_SPEC): Include
25711 default-manifest.o if it can be found in the search path.
25712 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25714 2014-04-23 Terry Guo <terry.guo@arm.com>
25716 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25718 2014-04-23 Richard Biener <rguenther@suse.de>
25720 PR middle-end/60895
25721 * tree-inline.c (declare_return_variable): Use mark_addressable.
25723 2014-04-23 Richard Biener <rguenther@suse.de>
25725 PR middle-end/60891
25726 * loop-init.c (loop_optimizer_init): Make sure to apply
25727 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25729 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25732 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25734 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25735 if flag_sanitize_undefined_trap_on_error.
25736 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25737 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25738 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25739 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25740 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25741 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25742 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25743 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25744 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25745 * ubsan.c (ubsan_instrument_unreachable): Return
25746 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25747 (ubsan_expand_null_ifn): Emit __builtin_trap ()
25748 if flag_sanitize_undefined_trap_on_error and
25749 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25750 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25751 instrument_bool_enum_load): Emit __builtin_trap () if
25752 flag_sanitize_undefined_trap_on_error and
25753 __builtin_handle_*_abort () if !flag_sanitize_recover.
25754 * doc/invoke.texi (-fsanitize-recover,
25755 -fsanitize-undefined-trap-on-error): Document.
25757 2014-04-22 Christian Bruel <christian.bruel@st.com>
25759 * config/sh/sh.md (mov<mode>): Replace movQIHI.
25760 Force immediates to SImode.
25762 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
25764 * config/nios2/nios2.md (UNSPEC_ROUND): New.
25765 (lroundsfsi2): New.
25766 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25767 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25768 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25769 (nios2_fpu_insn): Add entry for round.
25770 (N2FPU_NO_ERRNO_P): Define.
25771 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25773 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25775 2014-04-22 Richard Henderson <rth@redhat.com>
25777 * config/aarch64/aarch64 (addti3, subti3): New expanders.
25778 (add<GPI>3_compare0): Remove leading * from name.
25779 (add<GPI>3_carryin): Likewise.
25780 (sub<GPI>3_compare0): Likewise.
25781 (sub<GPI>3_carryin): Likewise.
25782 (<su_optab>mulditi3): New expander.
25783 (multi3): New expander.
25784 (madd<GPI>): Remove leading * from name.
25786 2014-04-22 Martin Jambor <mjambor@suse.cz>
25788 * cgraphclones.c (cgraph_function_versioning): Copy
25789 ipa_transforms_to_apply instead of asserting it is empty.
25791 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
25794 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25795 on count_exp to get mode.
25797 2014-04-22 Andrew Pinski <apinski@cavium.com>
25799 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25800 Handle TLS for ILP32.
25801 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25802 (tlsie_small_<mode>): this and handle PTR.
25803 (tlsie_small_sidi): New pattern.
25804 (tlsle_small): Change to an expand to handle ILP32.
25805 (tlsle_small_<mode>): New pattern.
25806 (tlsdesc_small): Rename to ...
25807 (tlsdesc_small_<mode>): this and handle PTR.
25809 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25811 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25813 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25815 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25816 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25817 (aarch64_types_signed_poly_qualifiers): Likewise.
25818 (aarch64_types_unsigned_signed_qualifiers): Likewise.
25819 (aarch64_types_poly_signed_qualifiers): Likewise.
25820 (TYPES_REINTERP_SS): Type macro added.
25821 (TYPES_REINTERP_SU): Likewise.
25822 (TYPES_REINTERP_SP): Likewise.
25823 (TYPES_REINTERP_US): Likewise.
25824 (TYPES_REINTERP_PS): Likewise.
25825 (aarch64_fold_builtin): New expression folding added.
25826 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25827 Declarations removed.
25828 (REINTERP_SS): Declarations added.
25829 (REINTERP_US): Likewise.
25830 (REINTERP_PS): Likewise.
25831 (REINTERP_SU): Likewise.
25832 (REINTERP_SP): Likewise.
25833 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25834 (vreinterpretq_p8_f64): Likewise.
25835 (vreinterpret_p16_f64): Likewise.
25836 (vreinterpretq_p16_f64): Likewise.
25837 (vreinterpret_f32_f64): Likewise.
25838 (vreinterpretq_f32_f64): Likewise.
25839 (vreinterpret_f64_f32): Likewise.
25840 (vreinterpret_f64_p8): Likewise.
25841 (vreinterpret_f64_p16): Likewise.
25842 (vreinterpret_f64_s8): Likewise.
25843 (vreinterpret_f64_s16): Likewise.
25844 (vreinterpret_f64_s32): Likewise.
25845 (vreinterpret_f64_s64): Likewise.
25846 (vreinterpret_f64_u8): Likewise.
25847 (vreinterpret_f64_u16): Likewise.
25848 (vreinterpret_f64_u32): Likewise.
25849 (vreinterpret_f64_u64): Likewise.
25850 (vreinterpretq_f64_f32): Likewise.
25851 (vreinterpretq_f64_p8): Likewise.
25852 (vreinterpretq_f64_p16): Likewise.
25853 (vreinterpretq_f64_s8): Likewise.
25854 (vreinterpretq_f64_s16): Likewise.
25855 (vreinterpretq_f64_s32): Likewise.
25856 (vreinterpretq_f64_s64): Likewise.
25857 (vreinterpretq_f64_u8): Likewise.
25858 (vreinterpretq_f64_u16): Likewise.
25859 (vreinterpretq_f64_u32): Likewise.
25860 (vreinterpretq_f64_u64): Likewise.
25861 (vreinterpret_s64_f64): Likewise.
25862 (vreinterpretq_s64_f64): Likewise.
25863 (vreinterpret_u64_f64): Likewise.
25864 (vreinterpretq_u64_f64): Likewise.
25865 (vreinterpret_s8_f64): Likewise.
25866 (vreinterpretq_s8_f64): Likewise.
25867 (vreinterpret_s16_f64): Likewise.
25868 (vreinterpretq_s16_f64): Likewise.
25869 (vreinterpret_s32_f64): Likewise.
25870 (vreinterpretq_s32_f64): Likewise.
25871 (vreinterpret_u8_f64): Likewise.
25872 (vreinterpretq_u8_f64): Likewise.
25873 (vreinterpret_u16_f64): Likewise.
25874 (vreinterpretq_u16_f64): Likewise.
25875 (vreinterpret_u32_f64): Likewise.
25876 (vreinterpretq_u32_f64): Likewise.
25878 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25880 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25881 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25882 (vreinterpret_p8_s8): Likewise.
25883 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25884 (vreinterpret_p8_s16): Likewise.
25885 (vreinterpret_p8_s32): Likewise.
25886 (vreinterpret_p8_s64): Likewise.
25887 (vreinterpret_p8_f32): Likewise.
25888 (vreinterpret_p8_u8): Likewise.
25889 (vreinterpret_p8_u16): Likewise.
25890 (vreinterpret_p8_u32): Likewise.
25891 (vreinterpret_p8_u64): Likewise.
25892 (vreinterpret_p8_p16): Likewise.
25893 (vreinterpretq_p8_s8): Likewise.
25894 (vreinterpretq_p8_s16): Likewise.
25895 (vreinterpretq_p8_s32): Likewise.
25896 (vreinterpretq_p8_s64): Likewise.
25897 (vreinterpretq_p8_f32): Likewise.
25898 (vreinterpretq_p8_u8): Likewise.
25899 (vreinterpretq_p8_u16): Likewise.
25900 (vreinterpretq_p8_u32): Likewise.
25901 (vreinterpretq_p8_u64): Likewise.
25902 (vreinterpretq_p8_p16): Likewise.
25903 (vreinterpret_p16_s8): Likewise.
25904 (vreinterpret_p16_s16): Likewise.
25905 (vreinterpret_p16_s32): Likewise.
25906 (vreinterpret_p16_s64): Likewise.
25907 (vreinterpret_p16_f32): Likewise.
25908 (vreinterpret_p16_u8): Likewise.
25909 (vreinterpret_p16_u16): Likewise.
25910 (vreinterpret_p16_u32): Likewise.
25911 (vreinterpret_p16_u64): Likewise.
25912 (vreinterpret_p16_p8): Likewise.
25913 (vreinterpretq_p16_s8): Likewise.
25914 (vreinterpretq_p16_s16): Likewise.
25915 (vreinterpretq_p16_s32): Likewise.
25916 (vreinterpretq_p16_s64): Likewise.
25917 (vreinterpretq_p16_f32): Likewise.
25918 (vreinterpretq_p16_u8): Likewise.
25919 (vreinterpretq_p16_u16): Likewise.
25920 (vreinterpretq_p16_u32): Likewise.
25921 (vreinterpretq_p16_u64): Likewise.
25922 (vreinterpretq_p16_p8): Likewise.
25923 (vreinterpret_f32_s8): Likewise.
25924 (vreinterpret_f32_s16): Likewise.
25925 (vreinterpret_f32_s32): Likewise.
25926 (vreinterpret_f32_s64): Likewise.
25927 (vreinterpret_f32_u8): Likewise.
25928 (vreinterpret_f32_u16): Likewise.
25929 (vreinterpret_f32_u32): Likewise.
25930 (vreinterpret_f32_u64): Likewise.
25931 (vreinterpret_f32_p8): Likewise.
25932 (vreinterpret_f32_p16): Likewise.
25933 (vreinterpretq_f32_s8): Likewise.
25934 (vreinterpretq_f32_s16): Likewise.
25935 (vreinterpretq_f32_s32): Likewise.
25936 (vreinterpretq_f32_s64): Likewise.
25937 (vreinterpretq_f32_u8): Likewise.
25938 (vreinterpretq_f32_u16): Likewise.
25939 (vreinterpretq_f32_u32): Likewise.
25940 (vreinterpretq_f32_u64): Likewise.
25941 (vreinterpretq_f32_p8): Likewise.
25942 (vreinterpretq_f32_p16): Likewise.
25943 (vreinterpret_s64_s8): Likewise.
25944 (vreinterpret_s64_s16): Likewise.
25945 (vreinterpret_s64_s32): Likewise.
25946 (vreinterpret_s64_f32): Likewise.
25947 (vreinterpret_s64_u8): Likewise.
25948 (vreinterpret_s64_u16): Likewise.
25949 (vreinterpret_s64_u32): Likewise.
25950 (vreinterpret_s64_u64): Likewise.
25951 (vreinterpret_s64_p8): Likewise.
25952 (vreinterpret_s64_p16): Likewise.
25953 (vreinterpretq_s64_s8): Likewise.
25954 (vreinterpretq_s64_s16): Likewise.
25955 (vreinterpretq_s64_s32): Likewise.
25956 (vreinterpretq_s64_f32): Likewise.
25957 (vreinterpretq_s64_u8): Likewise.
25958 (vreinterpretq_s64_u16): Likewise.
25959 (vreinterpretq_s64_u32): Likewise.
25960 (vreinterpretq_s64_u64): Likewise.
25961 (vreinterpretq_s64_p8): Likewise.
25962 (vreinterpretq_s64_p16): Likewise.
25963 (vreinterpret_u64_s8): Likewise.
25964 (vreinterpret_u64_s16): Likewise.
25965 (vreinterpret_u64_s32): Likewise.
25966 (vreinterpret_u64_s64): Likewise.
25967 (vreinterpret_u64_f32): Likewise.
25968 (vreinterpret_u64_u8): Likewise.
25969 (vreinterpret_u64_u16): Likewise.
25970 (vreinterpret_u64_u32): Likewise.
25971 (vreinterpret_u64_p8): Likewise.
25972 (vreinterpret_u64_p16): Likewise.
25973 (vreinterpretq_u64_s8): Likewise.
25974 (vreinterpretq_u64_s16): Likewise.
25975 (vreinterpretq_u64_s32): Likewise.
25976 (vreinterpretq_u64_s64): Likewise.
25977 (vreinterpretq_u64_f32): Likewise.
25978 (vreinterpretq_u64_u8): Likewise.
25979 (vreinterpretq_u64_u16): Likewise.
25980 (vreinterpretq_u64_u32): Likewise.
25981 (vreinterpretq_u64_p8): Likewise.
25982 (vreinterpretq_u64_p16): Likewise.
25983 (vreinterpret_s8_s16): Likewise.
25984 (vreinterpret_s8_s32): Likewise.
25985 (vreinterpret_s8_s64): Likewise.
25986 (vreinterpret_s8_f32): Likewise.
25987 (vreinterpret_s8_u8): Likewise.
25988 (vreinterpret_s8_u16): Likewise.
25989 (vreinterpret_s8_u32): Likewise.
25990 (vreinterpret_s8_u64): Likewise.
25991 (vreinterpret_s8_p8): Likewise.
25992 (vreinterpret_s8_p16): Likewise.
25993 (vreinterpretq_s8_s16): Likewise.
25994 (vreinterpretq_s8_s32): Likewise.
25995 (vreinterpretq_s8_s64): Likewise.
25996 (vreinterpretq_s8_f32): Likewise.
25997 (vreinterpretq_s8_u8): Likewise.
25998 (vreinterpretq_s8_u16): Likewise.
25999 (vreinterpretq_s8_u32): Likewise.
26000 (vreinterpretq_s8_u64): Likewise.
26001 (vreinterpretq_s8_p8): Likewise.
26002 (vreinterpretq_s8_p16): Likewise.
26003 (vreinterpret_s16_s8): Likewise.
26004 (vreinterpret_s16_s32): Likewise.
26005 (vreinterpret_s16_s64): Likewise.
26006 (vreinterpret_s16_f32): Likewise.
26007 (vreinterpret_s16_u8): Likewise.
26008 (vreinterpret_s16_u16): Likewise.
26009 (vreinterpret_s16_u32): Likewise.
26010 (vreinterpret_s16_u64): Likewise.
26011 (vreinterpret_s16_p8): Likewise.
26012 (vreinterpret_s16_p16): Likewise.
26013 (vreinterpretq_s16_s8): Likewise.
26014 (vreinterpretq_s16_s32): Likewise.
26015 (vreinterpretq_s16_s64): Likewise.
26016 (vreinterpretq_s16_f32): Likewise.
26017 (vreinterpretq_s16_u8): Likewise.
26018 (vreinterpretq_s16_u16): Likewise.
26019 (vreinterpretq_s16_u32): Likewise.
26020 (vreinterpretq_s16_u64): Likewise.
26021 (vreinterpretq_s16_p8): Likewise.
26022 (vreinterpretq_s16_p16): Likewise.
26023 (vreinterpret_s32_s8): Likewise.
26024 (vreinterpret_s32_s16): Likewise.
26025 (vreinterpret_s32_s64): Likewise.
26026 (vreinterpret_s32_f32): Likewise.
26027 (vreinterpret_s32_u8): Likewise.
26028 (vreinterpret_s32_u16): Likewise.
26029 (vreinterpret_s32_u32): Likewise.
26030 (vreinterpret_s32_u64): Likewise.
26031 (vreinterpret_s32_p8): Likewise.
26032 (vreinterpret_s32_p16): Likewise.
26033 (vreinterpretq_s32_s8): Likewise.
26034 (vreinterpretq_s32_s16): Likewise.
26035 (vreinterpretq_s32_s64): Likewise.
26036 (vreinterpretq_s32_f32): Likewise.
26037 (vreinterpretq_s32_u8): Likewise.
26038 (vreinterpretq_s32_u16): Likewise.
26039 (vreinterpretq_s32_u32): Likewise.
26040 (vreinterpretq_s32_u64): Likewise.
26041 (vreinterpretq_s32_p8): Likewise.
26042 (vreinterpretq_s32_p16): Likewise.
26043 (vreinterpret_u8_s8): Likewise.
26044 (vreinterpret_u8_s16): Likewise.
26045 (vreinterpret_u8_s32): Likewise.
26046 (vreinterpret_u8_s64): Likewise.
26047 (vreinterpret_u8_f32): Likewise.
26048 (vreinterpret_u8_u16): Likewise.
26049 (vreinterpret_u8_u32): Likewise.
26050 (vreinterpret_u8_u64): Likewise.
26051 (vreinterpret_u8_p8): Likewise.
26052 (vreinterpret_u8_p16): Likewise.
26053 (vreinterpretq_u8_s8): Likewise.
26054 (vreinterpretq_u8_s16): Likewise.
26055 (vreinterpretq_u8_s32): Likewise.
26056 (vreinterpretq_u8_s64): Likewise.
26057 (vreinterpretq_u8_f32): Likewise.
26058 (vreinterpretq_u8_u16): Likewise.
26059 (vreinterpretq_u8_u32): Likewise.
26060 (vreinterpretq_u8_u64): Likewise.
26061 (vreinterpretq_u8_p8): Likewise.
26062 (vreinterpretq_u8_p16): Likewise.
26063 (vreinterpret_u16_s8): Likewise.
26064 (vreinterpret_u16_s16): Likewise.
26065 (vreinterpret_u16_s32): Likewise.
26066 (vreinterpret_u16_s64): Likewise.
26067 (vreinterpret_u16_f32): Likewise.
26068 (vreinterpret_u16_u8): Likewise.
26069 (vreinterpret_u16_u32): Likewise.
26070 (vreinterpret_u16_u64): Likewise.
26071 (vreinterpret_u16_p8): Likewise.
26072 (vreinterpret_u16_p16): Likewise.
26073 (vreinterpretq_u16_s8): Likewise.
26074 (vreinterpretq_u16_s16): Likewise.
26075 (vreinterpretq_u16_s32): Likewise.
26076 (vreinterpretq_u16_s64): Likewise.
26077 (vreinterpretq_u16_f32): Likewise.
26078 (vreinterpretq_u16_u8): Likewise.
26079 (vreinterpretq_u16_u32): Likewise.
26080 (vreinterpretq_u16_u64): Likewise.
26081 (vreinterpretq_u16_p8): Likewise.
26082 (vreinterpretq_u16_p16): Likewise.
26083 (vreinterpret_u32_s8): Likewise.
26084 (vreinterpret_u32_s16): Likewise.
26085 (vreinterpret_u32_s32): Likewise.
26086 (vreinterpret_u32_s64): Likewise.
26087 (vreinterpret_u32_f32): Likewise.
26088 (vreinterpret_u32_u8): Likewise.
26089 (vreinterpret_u32_u16): Likewise.
26090 (vreinterpret_u32_u64): Likewise.
26091 (vreinterpret_u32_p8): Likewise.
26092 (vreinterpret_u32_p16): Likewise.
26093 (vreinterpretq_u32_s8): Likewise.
26094 (vreinterpretq_u32_s16): Likewise.
26095 (vreinterpretq_u32_s32): Likewise.
26096 (vreinterpretq_u32_s64): Likewise.
26097 (vreinterpretq_u32_f32): Likewise.
26098 (vreinterpretq_u32_u8): Likewise.
26099 (vreinterpretq_u32_u16): Likewise.
26100 (vreinterpretq_u32_u64): Likewise.
26101 (vreinterpretq_u32_p8): Likewise.
26102 (vreinterpretq_u32_p16): Likewise.
26104 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26106 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26108 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26110 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26111 (vqnegd_s64): Likewise.
26112 (vqabs_s64): Likewise.
26113 (vqabsd_s64): Likewise.
26115 2014-04-22 Richard Henderson <rth@redhat.com>
26117 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26118 computation to the top of the loop.
26120 2014-04-22 Renlin <renlin.li@arm.com>
26121 Jiong Wang <jiong.wang@arm.com>
26123 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26124 * config/aarch64/aarch64.c (aarch64_layout_frame)
26125 (aarch64_initial_elimination_offset): Likewise.
26127 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
26129 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26132 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
26134 * machmode.h (bitwise_mode_for_mode): Declare.
26135 * stor-layout.h (bitwise_type_for_mode): Likewise.
26136 * stor-layout.c (bitwise_mode_for_mode): New function.
26137 (bitwise_type_for_mode): Likewise.
26138 * builtins.c (fold_builtin_memory_op): Use it instead of
26139 int_mode_for_mode and build_nonstandard_integer_type.
26141 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26143 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26144 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26145 (*-*-solaris2*): Simplify.
26146 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26147 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26148 *-*-solaris2.9* handling.
26150 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26152 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26153 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26154 handling, simplify.
26155 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26156 * configure: Regenerate.
26158 * config/i386/sol2-9.h: Remove.
26160 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26161 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26162 Remove Solaris 9 references.
26164 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
26166 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26167 (floatuns<GPI:mode><GPF:mode>2): Remove.
26168 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26169 and floatuns conversions.
26170 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26171 and floatuns conversions.
26172 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26173 (w1,w2): New mode attributes for inequal width conversions.
26175 2014-04-22 Renlin Li <Renlin.Li@arm.com>
26177 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26178 the output asm format.
26180 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26182 * config/aarch64/aarch64-simd.md
26183 (aarch64_cm<optab>di): Always split.
26184 (*aarch64_cm<optab>di): New.
26185 (aarch64_cmtstdi): Always split.
26186 (*aarch64_cmtstdi): New.
26188 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26190 PR tree-optimization/60823
26191 * omp-low.c (ipa_simd_modify_function_body): Go through
26192 all SSA_NAMEs and for those refering to vector arguments
26193 which are going to be replaced adjust SSA_NAME_VAR and,
26194 if it is a default definition, change it into a non-default
26195 definition assigned at the beginning of function from new_decl.
26196 (ipa_simd_modify_stmt_ops): Rewritten.
26197 * tree-dfa.c (set_ssa_default_def): When removing default def,
26198 check for NULL loc instead of NULL *loc.
26200 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26202 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26203 restrictions on core registers for DImode values in Thumb2.
26205 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26207 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26208 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26210 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26212 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26213 (*iordi_notzesidi_di): Likewise.
26214 (*iordi_notsesidi_di): Likewise.
26216 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26218 * config/arm/arm-protos.h (tune_params): New struct members.
26219 * config/arm/arm.c: Initialise tune_params per processor.
26220 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26221 for speed, based on new tune_params.
26223 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26225 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26226 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26227 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26228 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26229 * config/aarch64/arm_neon.h (vrnd_f64): Added.
26230 (vrnda_f64): Likewise.
26231 (vrndi_f64): Likewise.
26232 (vrndm_f64): Likewise.
26233 (vrndn_f64): Likewise.
26234 (vrndp_f64): Likewise.
26235 (vrndx_f64): Likewise.
26237 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26239 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26240 GET_MODE_SIZE argument is enum machine_mode.
26242 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26245 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26246 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26248 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
26250 PR middle-end/60281
26251 * asan.c (asan_emit_stack_protection): Force the base to align to
26252 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
26253 appropriate bits if STRICT_ALIGNMENT.
26254 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26256 (expand_used_vars): Leave a space in the stack frame for alignment
26257 if STRICT_ALIGNMENT.
26259 2014-04-21 David Malcolm <dmalcolm@redhat.com>
26261 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26263 (gimple_store_p): Likewise.
26264 (gimple_assign_load_p): Likewise.
26265 (gimple_assign_cast_p): Likewise.
26266 (gimple_clobber_p): Likewise.
26268 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26269 rather than a gimple.
26270 (gimple_assign_cast_p): Likewise.
26272 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26275 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26276 If mode is DDmode and TARGET_E500_DOUBLE allow move.
26278 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26279 more debug information for E500 if -mdebug=reg.
26281 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
26284 * config/i386/i386.c (ix86_expand_builtin)
26285 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26286 register for target RTX.
26287 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26289 2014-04-18 Cong Hou <congh@google.com>
26291 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26292 the widen-mult pattern by handling two operands with different sizes,
26293 and operands whose size is smaller than half of the result type.
26295 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26297 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26298 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26299 (do_estimate_edge_time): Compute it.
26300 * ipa-inline.c (want_inline_small_function_p): Bypass
26301 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26303 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26305 * ipa-inline.c (spec_rem): New static variable.
26306 (dump_overall_stats): New function.
26307 (dump_inline_stats): New function.
26309 2014-04-18 Richard Henderson <rth@redhat.com>
26311 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26312 to GET_MODE_SIZE, not a reg_class_t.
26314 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26316 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26317 (vsx_xxmrglw_<mode>): Likewise.
26319 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
26322 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26323 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26324 (rs6000_init_hard_regno_mode_ok): Likewise.
26326 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
26328 * ipa-inline.c (inline_small_functions): Account only non-cold
26330 * doc/invoke.texi (inline-unit-growth): Update documentation.
26332 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
26334 * config/rs6000/rs6000.md (addti3, subti3): New.
26336 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
26339 * config/i386/i386.c (ix86_expand_clear): Remove outdated
26340 comment. Check optimize_insn_for_size_p instead of
26341 optimize_insn_for_speed_p.
26343 2014-04-17 Martin Jambor <mjambor@suse.cz>
26345 * gimple-iterator.c (gsi_start_edge): New function.
26346 * gimple-iterator.h (gsi_start_edge): Declare.
26347 * tree-sra.c (single_non_eh_succ): New function.
26348 (disqualify_ops_if_throwing_stmt): Renamed to
26349 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
26350 having one non-EH successor BB.
26351 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26352 generate loads into replacements.
26353 (sra_modify_assign): Likewise and and also use the simple path for
26355 (sra_modify_function_body): Commit statements on edges.
26357 2014-04-17 Richard Biener <rguenther@suse.de>
26359 PR middle-end/60849
26360 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26361 comparison results and add clarifying comment.
26363 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26365 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26366 (blank_mode): Initialize it.
26367 (emit_mode_size_inline, emit_mode_nunits_inline,
26368 emit_mode_inner_inline): New functions.
26369 (emit_insn_modes_h): Call them and surround their output with
26370 #if GCC_VERSION >= 4001 ... #endif.
26371 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26372 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26373 mode_* arrays if the argument is __builtin_constant_p.
26374 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26375 is enum machine_mode.
26377 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26379 * passes.c (opt_pass::execute): Adjust.
26380 (pass_manager::execute_pass_mode_switching): Likewise.
26381 (early_local_passes::execute): Likewise.
26382 (execute_one_pass): Pass cfun to the pass's execute method.
26383 * tree-pass.h (opt_pass::execute): Add function * argument.
26384 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26385 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26386 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26387 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26388 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26389 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26390 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26391 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26392 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26393 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26394 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26395 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26396 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26397 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26398 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26399 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26400 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26401 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26402 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26403 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26404 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26405 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26406 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26407 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26408 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26409 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26410 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26411 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26412 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26415 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26417 * passes.c (opt_pass::gate): Take function * argument.
26418 (gate_all_early_local_passes): Merge into
26419 (early_local_passes::gate): this.
26420 (gate_all_early_optimizations): Merge into
26421 (all_early_optimizations::gate): this.
26422 (gate_all_optimizations): Mege into
26423 (all_optimizations::gate): this.
26424 (gate_all_optimizations_g): Merge into
26425 (all_optimizations_g::gate): this.
26426 (gate_rest_of_compilation): Mege into
26427 (rest_of_compilation::gate): this.
26428 (gate_postreload): Merge into
26429 (postreload::gate): this.
26430 (dump_one_pass): Pass cfun to the pass's gate method.
26431 (execute_ipa_summary_passes): Likewise.
26432 (execute_one_pass): Likewise.
26433 (ipa_write_summaries_2): Likewise.
26434 (ipa_write_optimization_summaries_1): Likewise.
26435 (ipa_read_summaries_1): Likewise.
26436 (ipa_read_optimization_summaries_1): Likewise.
26437 (execute_ipa_stmt_fixups): Likewise.
26438 * tree-pass.h (opt_pass::gate): Add function * argument.
26439 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26440 combine-stack-adj.c, combine.c, compare-elim.c,
26441 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26442 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26443 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26444 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
26445 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26446 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26447 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26448 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26449 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26450 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26451 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26452 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26453 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26454 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26455 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26456 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26457 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26458 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26459 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26460 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26461 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26462 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26463 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26464 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26465 var-tracking.c, vtable-verify.c, web.c: Adjust.
26467 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26469 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26470 * configure: Regenerate.
26472 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26474 * passes.c (dump_one_pass): don't check pass->has_gate.
26475 (execute_ipa_summary_passes): Likewise.
26476 (execute_one_pass): Likewise.
26477 (ipa_write_summaries_2): Likewise.
26478 (ipa_write_optimization_summaries_1): Likewise.
26479 (ipa_read_optimization_summaries_1): Likewise.
26480 (execute_ipa_stmt_fixups): Likewise.
26481 * tree-pass.h (pass_data::has_gate): Remove.
26482 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26483 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26484 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26485 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26486 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26487 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26488 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26489 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26490 gimple-low.c, gimple-ssa-isolate-paths.c,
26491 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26492 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26493 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26494 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26495 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26496 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26497 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26498 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26499 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26500 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26501 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26502 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26503 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26504 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26505 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26506 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26507 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26508 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26509 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26510 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26511 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26512 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26515 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26517 * pass_manager.h (pass_manager::register_dump_files_1): Remove
26519 * passes.c (pass_manager::register_dump_files_1): Merge into
26520 (pass_manager::register_dump_files): this, and remove its handling of
26521 properties since the pass always has the properties anyway.
26522 (pass_manager::pass_manager): Adjust.
26524 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26526 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26527 * passes.c (pass_manager::register_dump_files_1): Remove dead code
26528 dealing with properties.
26529 (pass_manager::register_dump_files): Adjust.
26531 2014-03-20 Mark Wielaard <mjw@redhat.com>
26533 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26534 then represent the bound as normal constant value.
26536 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26539 Forward port from 4.8 branch
26540 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
26542 * config/i386/bmiintrin.h (_blsi_u32): New.
26543 (_blsi_u64): Ditto.
26544 (_blsr_u32): Ditto.
26545 (_blsr_u64): Ditto.
26546 (_blsmsk_u32): Ditto.
26547 (_blsmsk_u64): Ditto.
26548 (_tzcnt_u32): Ditto.
26549 (_tzcnt_u64): Ditto.
26551 2014-04-17 Kito Cheng <kito@0xlab.org>
26553 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26555 2014-04-17 Richard Biener <rguenther@suse.de>
26557 PR middle-end/60849
26558 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26559 boolean results for comparisons.
26561 2014-04-17 Richard Biener <rguenther@suse.de>
26563 PR tree-optimization/60836
26564 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26565 initial PHI args to be gimple values.
26567 2014-04-17 Richard Biener <rguenther@suse.de>
26569 PR tree-optimization/60841
26570 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26571 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26572 of stmts to SLP build.
26573 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26574 (vect_analyze_slp): Likewise.
26575 (vect_analyze_slp_instance): Likewise.
26576 (vect_build_slp_tree): Limit overall SLP tree growth.
26577 * tree-vectorizer.h (vect_analyze_data_refs,
26578 vect_analyze_slp): Adjust prototypes.
26580 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26582 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26585 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26587 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26588 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26589 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26590 for TARGET_SLOW_PSHUFB
26592 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26594 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26595 * config/i386/i386.c (intel_cost): Ditto.
26597 2014-04-17 Joey Ye <joey.ye@arm.com>
26599 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26601 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26603 * opts.c (common_handle_option): Disable -fipa-reference coorectly
26604 with -fuse-profile.
26606 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26608 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26609 (type_all_derivations_known_p): New predicate.
26610 (type_all_ctors_visible_p): New predicate.
26611 (type_possibly_instantiated_p): New predicate.
26612 (get_odr_type): Compute all_derivations_known.
26613 (dump_odr_type): Dump the flag.
26614 (maybe_record_type): Cleanup.
26615 (record_target_from_binfo): Add bases_to_consider array;
26616 record bases for types w/o instances and skip CXX destructor.
26617 (possible_polymorphic_call_targets_1): Add bases_to_consider
26618 and consider_construction parameters; check if type may have instance.
26619 (get_polymorphic_call_info): Set maybe_in_construction to true
26620 when we know nothing.
26621 (record_targets_from_bases): Skip CXX destructors; they are
26622 never called for types in construction.
26623 (possible_polymorphic_call_targets): Do not record target when
26624 type may not have instance.
26626 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26629 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26630 external aliases alive, too.
26632 2014-04-16 Andrew Pinski <apinski@cavium.com>
26634 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26637 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26639 * final.c (compute_alignments): Do not apply loop alignment to a block
26640 falling through to the exit.
26642 2014-04-16 Catherine Moore <clm@codesourcery.com>
26644 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26645 Adjust constraints for microMIPS store patterns.
26647 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26649 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26651 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26653 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26654 (append_use): Run at -O0.
26655 (append_vdef): Likewise.
26656 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26657 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26659 2014-04-16 Jakub Jelinek <jakub@redhat.com>
26661 PR tree-optimization/60844
26662 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26663 (propagate_op_to_single_use, remove_visited_stmt_chain,
26664 linearize_expr, repropagate_negates, reassociate_bb): Use it
26665 instead of gsi_remove.
26667 2014-04-16 Martin Jambor <mjambor@suse.cz>
26669 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26670 ipa_transforms_to_apply.
26671 (cgraph_function_versioning): Assert that old_node has empty
26672 ipa_transforms_to_apply.
26673 * trans-mem.c (ipa_tm_create_version): Likewise.
26674 * tree-inline.c (tree_function_versioning): Do not duplicate
26675 ipa_transforms_to_apply.
26677 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26680 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26682 Pass necessary as flags on 64-bit Solaris/x86.
26683 Use lowercase relocs for x86_64-*-*.
26684 * configure: Regenerate.
26686 2014-04-15 Jan Hubicka <jh@suse.cz>
26688 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26689 (maybe_record_node, likely_target_p): Use it.
26691 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26694 Revert following patch
26696 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26699 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26700 software floating point or no floating point registers, do not
26701 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26702 in GPRs that occurs after we tested for GPRs that would never be
26705 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26706 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26707 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26708 specifically allow DDmode, since that does not use the SPE SIMD
26711 2014-03-21 Mark Wielaard <mjw@redhat.com>
26713 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26714 as unsigned or int depending on type and value used.
26716 2014-04-15 Richard Biener <rguenther@suse.de>
26718 PR rtl-optimization/56965
26719 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26720 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26722 * alias.c (true_dependence_1): Do not call
26723 nonoverlapping_component_refs_p.
26724 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26725 nonoverlapping_component_refs_p.
26726 (indirect_refs_may_alias_p): Likewise.
26728 2014-04-15 Teresa Johnson <tejohnson@google.com>
26730 * cfg.c (dump_bb_info): Fix flags check.
26731 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26733 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26735 PR rtl-optimization/60663
26736 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26739 2014-04-15 Richard Biener <rguenther@suse.de>
26741 * lto-streamer.h (LTO_major_version): Bump to 4.
26743 2014-04-15 Richard Biener <rguenther@suse.de>
26745 * common.opt (lto_partition_model): New enum.
26746 (flto-partition=): Merge separate options with a single with argument,
26747 add -flto-partition=one support.
26748 * flag-types.h (enum lto_partition_model): Declare.
26749 * opts.c (finish_options): Remove duplicate -flto-partition=
26751 * lto-wrapper.c (run_gcc): Adjust.
26753 2014-04-15 Richard Biener <rguenther@suse.de>
26755 * alias.c (ncr_compar): New function.
26756 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26758 2014-04-15 Richard Biener <rguenther@suse.de>
26760 * alias.c (record_component_aliases): Do not walk BINFOs.
26762 2014-04-15 Richard Biener <rguenther@suse.de>
26764 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26765 Add struct function argument and adjust.
26766 (find_func_aliases_for_call): Likewise.
26767 (find_func_aliases): Likewise.
26768 (find_func_clobbers): Likewise.
26769 (intra_create_variable_infos): Likewise.
26770 (compute_points_to_sets): Likewise.
26771 (ipa_pta_execute): Adjust. Do not push/pop cfun.
26773 2014-04-15 Richard Biener <rguenther@suse.de>
26775 * tree.c (iterative_hash_expr): Use enum tree_code_class
26776 to store TREE_CODE_CLASS.
26777 (tree_block): Likewise.
26778 (tree_set_block): Likewise.
26779 * tree.h (fold_build_pointer_plus_loc): Use
26780 convert_to_ptrofftype_loc.
26782 2014-04-15 Jakub Jelinek <jakub@redhat.com>
26785 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26788 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
26790 * cfgloop.h (struct loop): Move force_vectorize down.
26791 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26792 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26793 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26794 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26795 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26796 * tree-core.h (enum annot_expr_kind): Add new kind values.
26797 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26798 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26800 * tree.def (ANNOTATE_EXPR): Tweak comment.
26802 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26804 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26807 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
26809 * tree.h (TYPE_IDENTIFIER): Declare.
26810 * tree.c (subrange_type_for_debug_p): Use it.
26811 * godump.c (go_format_type): Likewise.
26812 * dwarf2out.c (is_cxx_auto, modified_type_die,
26813 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26814 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26816 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26819 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26821 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
26823 * config/i386/i386.c (examine_argument): Return bool. Return true if
26824 parameter should be passed in memory.
26825 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26826 (construct_container): Update calls to examine_argument.
26827 (function_arg_advance_64): Ditto.
26828 (return_in_memory_32): Merge with ix86_return_in_memory.
26829 (return_in_memory_64): Ditto.
26830 (return_in_memory_ms_64): Ditto.
26832 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26834 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26835 * coverage.c (coverage_compute_profile_id): Handle externally visible
26838 2014-04-14 Martin Jambor <mjambor@suse.cz>
26840 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26841 DECL_DISREGARD_INLINE_LIMITS functions.
26843 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26846 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26848 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26851 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26852 optimize_insn_for_speed_p instead of
26853 optimize_function_for_speed_p.
26855 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
26857 * doc/invoke.texi (free): Document AArch64.
26859 2014-04-14 Richard Biener <rguenther@suse.de>
26861 PR tree-optimization/60042
26862 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26863 (insert_into_preds_of_block): Do not prevent PHI insertion
26864 for REFERENCE exprs here ...
26865 (eliminate_dom_walker::before_dom_children): ... but prevent
26866 their use here under similar conditions when applied to the
26867 IL after PRE optimizations.
26869 2014-04-14 Richard Biener <rguenther@suse.de>
26871 * passes.def: Move early points-to after early SRA.
26873 2014-04-14 Richard Biener <rguenther@suse.de>
26875 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26876 check for which sign-changes we allow when forwarding
26877 a converted value into a switch.
26879 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26881 * stor-layout.c (place_field): Finalize non-constant offset for the
26884 2014-04-14 Richard Biener <rguenther@suse.de>
26886 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26888 (expand_switch_using_bit_tests_p): Likewise.
26889 (process_switch): Compute and pass on speed_p based on the
26891 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26892 optimize_bb_for_speed_p.
26894 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26896 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26897 * function.h (struct function): Rename has_force_vect_loops into
26898 has_force_vectorize_loops.
26899 * lto-streamer-in.c (input_cfg): Adjust for renaming.
26900 (input_struct_function_base): Likewise.
26901 * lto-streamer-out.c (output_cfg): Likewise.
26902 (output_struct_function_base): Likewise.
26903 * omp-low.c (expand_omp_simd): Likewise.
26904 * tree-cfg.c (move_sese_region_to_fn): Likewise.
26905 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26906 (version_loop_for_if_conversion): Likewise.
26907 (tree_if_conversion): Likewise.
26908 (main_tree_if_conversion): Likewise.
26909 (gate_tree_if_conversion): Likewise.
26910 * tree-inline.c (copy_loops): Likewise.
26911 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26912 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26913 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26914 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26915 * tree-vectorizer.c (vectorize_loops): Likewise.
26916 * tree-vectorizer.h (unlimited_cost_model): Likewise.
26918 2014-04-14 Richard Biener <rguenther@suse.de>
26921 * lto-streamer-out.c (wrap_refs): New function.
26922 (lto_output): Wrap symbol references in global initializes in
26923 type-preserving MEM_REFs.
26925 2014-04-14 Christian Bruel <christian.bruel@st.com>
26927 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26929 2014-04-14 Christian Bruel <christian.bruel@st.com>
26931 * config/sh/sh.md (setmemqi): New expand pattern.
26932 * config/sh/sh.h (CLEAR_RATIO): Define.
26933 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26934 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26936 2014-04-14 Richard Biener <rguenther@suse.de>
26938 PR middle-end/55022
26939 * fold-const.c (negate_expr_p): Don't negate directional rounding
26941 (fold_negate_expr): Likewise.
26943 2014-04-14 Richard Biener <rguenther@suse.de>
26945 PR tree-optimization/59817
26946 PR tree-optimization/60453
26947 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26948 recursion to catch all CHRECs in the scalar evolution and restrict
26949 the predicate for the remains appropriately.
26951 2014-04-12 Catherine Moore <clm@codesourcery.com>
26953 * config/mips/constraints.md: Add new register constraint "kb".
26954 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26955 (*movhi_internal): Likewise.
26956 (*movqi_internal): Likewise.
26957 * config/mips/mips.h (M16_STORE_REGS): New register class.
26958 (REG_CLASS_NAMES): Add M16_STORE_REGS.
26959 (REG_CLASS_CONTENTS): Likewise.
26960 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26962 2014-04-11 Tobias Burnus <burnus@net-b.de>
26965 * doc/invoke.texi (-Wformat-signedness): Document it.
26966 (Wformat=2): Mention that this enables -Wformat-signedness.
26968 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26970 * common/config/epiphany/epiphany-common.c
26971 (epiphany_option_optimization_table): Enable section anchors by
26972 default at -O1 or higher.
26973 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26974 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26975 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26976 carries no extra cost.
26977 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26978 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26979 * config/epiphany/predicates.md (memclob_operand): New predicate.
26980 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26981 Use memclob_operand predicate and X constraint for operand 3.
26983 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26985 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26986 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26989 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26991 PR rtl-optimization/60651
26992 * mode-switching.c (optimize_mode_switching): Make sure to emit
26993 sets of a lower numbered entity before sets of a higher numbered
26994 entity to a mode of the same or lower priority.
26995 When creating a seginfo for a basic block that starts with a code
26996 label, move the insertion point past the code label.
26997 (new_seginfo): Document and enforce requirement that
26998 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26999 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
27000 * doc/tm.texi: Regenerate.
27002 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
27005 * config/arc/arc.c (arc_save_restore): Fix assert typo.
27007 2013-04-11 Jakub Jelinek <jakub@redhat.com>
27009 * BASE-VER: Set to 4.10.0.
27011 2014-04-11 Tobias Burnus <burnus@net-b.de>
27014 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
27015 * doc/gcc.texi (Service): Update description in the @menu
27016 * doc/invoke.texi (Option Summary): Remove misplaced and
27019 2014-04-11 Steve Ellcey <sellcey@mips.com>
27020 Jakub Jelinek <jakub@redhat.com>
27022 PR middle-end/60556
27023 * expr.c (convert_move): Use emit_store_flag_force instead of
27024 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
27027 2014-04-11 Richard Biener <rguenther@suse.de>
27029 PR middle-end/60797
27030 * varasm.c (assemble_alias): Avoid endless error reporting
27031 recursion by setting TREE_ASM_WRITTEN.
27033 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27035 * config/s390/s390.md: Add a splitter for NOT rtx.
27037 2014-04-11 Jakub Jelinek <jakub@redhat.com>
27039 PR rtl-optimization/60663
27040 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27042 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
27043 Jakub Jelinek <jakub@redhat.com>
27046 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27047 flag from decl_node to node.
27049 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27052 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27053 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27054 ameliorating the cases where it can be.
27056 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
27059 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27061 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27062 (loadsync_<mode>): Change mode.
27063 (load_quadpti, store_quadpti): New.
27064 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27065 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27066 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27068 2014-04-09 Cong Hou <congh@google.com>
27071 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27074 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27076 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27077 instead of vnor to exploit possible fusion opportunity in the
27079 (altivec_expand_vec_perm_const_le): Likewise.
27081 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27083 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27084 (loadsync_<mode>): Change mode.
27085 (load_quadpti, store_quadpti): New.
27086 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27087 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27089 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
27092 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27093 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27094 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27096 2014-04-08 Richard Biener <rguenther@suse.de>
27098 PR middle-end/60706
27099 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27100 a 64bit widest int print double-int similar to on HWI64 hosts.
27102 2014-04-08 Richard Biener <rguenther@suse.de>
27104 PR tree-optimization/60785
27105 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27106 default defs properly.
27108 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
27110 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27111 (Weffc++): Likewise.
27113 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
27115 * ipa-devirt.c (maybe_record_node): When node is not recorded,
27116 set completep to false rather than true.
27118 2014-04-07 Douglas B Rupp <rupp@adacore.com>
27121 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27122 ARM_TARGET2_DWARF_FORMAT.
27124 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
27127 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27128 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27131 2014-04-07 Richard Biener <rguenther@suse.de>
27133 PR tree-optimization/60766
27134 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27135 (may_eliminate_iv): Convert cand_value_at result to desired type.
27137 2014-04-07 Jason Merrill <jason@redhat.com>
27140 * common.opt (-fno-gnu-unique): Add.
27141 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27143 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27145 * haifa-sched.c: Fix outdated function reference and minor
27146 grammar errors in introductory comment.
27148 2014-04-07 Richard Biener <rguenther@suse.de>
27150 PR middle-end/60750
27151 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27152 for noreturn calls.
27153 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27155 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
27158 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27159 size accounting for thunks.
27160 (pa_asm_output_mi_thunk): Use final_start_function() and
27161 final_end_function() to output function start and end directives.
27163 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
27165 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27166 device specific ISA/ feature information. Remove short_sp and
27167 errata_skip ds. Add avr_device_specific_features enum to have device
27169 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27170 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27171 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27172 updated device specific info.
27173 * config/avr/avr-mcus.def: Merge device specific details to
27174 dev_attribute field.
27175 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27177 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27178 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27179 assembler if RMW isa supported by current device.
27180 * config/avr/genmultilib.awk: Update as device info structure changed.
27181 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27183 2014-04-04 Cong Hou <congh@google.com>
27185 PR tree-optimization/60656
27186 * tree-vect-stmts.c (supportable_widening_operation):
27187 Fix a bug that elements in a vector with vect_used_by_reduction
27188 property are incorrectly reordered when the operation on it is not
27189 consistant with the one in reduction operation.
27191 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
27193 PR rtl-optimization/60155
27194 * gcse.c (record_set_data): New function.
27195 (single_set_gcse): New function.
27196 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27197 (hoist_code): Likewise.
27198 (get_pressure_class_and_nregs): Likewise.
27200 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
27202 * explow.c (probe_stack_range): Emit a final optimization blockage.
27204 2014-04-04 Anthony Green <green@moxielogic.com>
27206 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27209 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
27212 * lto-cgraph.c (input_overwrite_node): Check that partitioning
27213 flags are set only during streaming.
27214 * ipa.c (process_references, walk_polymorphic_call_targets,
27215 symtab_remove_unreachable_nodes): Drop bodies of always inline
27216 after early inlining.
27217 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27219 2014-04-04 Jakub Jelinek <jakub@redhat.com>
27220 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27223 * dwarf2out.c (const_ok_for_output_1): Reject expressions
27226 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27229 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27231 (cortex_a53_fdivd): Likewise.
27233 2014-04-04 Martin Jambor <mjambor@suse.cz>
27236 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27237 Adjust all callers.
27238 * cgraph.c (clone_of_p): Also return true if thunks match.
27239 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27240 cgraph_function_or_thunk_node and an obsolete comment.
27241 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27243 (build_function_decl_skip_args): Likewise.
27244 (set_new_clone_decl_and_node_flags): New function.
27245 (duplicate_thunk_for_node): Likewise.
27246 (redirect_edge_duplicating_thunks): Likewise.
27247 (cgraph_clone_node): New parameter args_to_skip, pass it to
27248 redirect_edge_duplicating_thunks which is called instead of
27249 cgraph_redirect_edge_callee.
27250 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27251 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27253 2014-04-04 Jeff Law <law@redhat.com>
27256 * config/arm/predicates.md (const_int_I_operand): New predicate.
27257 (const_int_M_operand): Similarly.
27258 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27260 (insv_t2, extv_reg, extzv_t2): Likewise.
27261 (load_multiple_with_writeback): Similarly for const_int_I_operand.
27262 (pop_multiple_with_writeback_and_return): Likewise.
27263 (vfp_pop_multiple_with_writeback): Likewise
27265 2014-04-04 Richard Biener <rguenther@suse.de>
27268 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27269 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27271 * gimplify.h (gimple_add_tmp_var_fn): Declare.
27272 * gimplify.c (gimple_add_tmp_var_fn): New function.
27273 * gimple-expr.h (create_tmp_reg_fn): Declare.
27274 * gimple-expr.c (create_tmp_reg_fn): New function.
27275 * gimple-low.c (record_vars_into): Don't change cfun.
27276 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27277 code generation without cfun.
27279 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
27282 * Makefile.in (install-driver): Fix shell scripting.
27284 2014-04-03 Cong Hou <congh@google.com>
27286 PR tree-optimization/60505
27287 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27288 threshold of number of iterations below which no vectorization
27290 * tree-vect-loop.c (new_loop_vec_info):
27291 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27292 * tree-vect-loop.c (vect_analyze_loop_operations):
27293 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27294 * tree-vect-loop.c (vect_transform_loop):
27295 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27296 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27297 of iterations of the loop and see if we should build the epilogue.
27299 2014-04-03 Richard Biener <rguenther@suse.de>
27301 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27302 (streamer_tree_cache_create): Adjust.
27303 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27304 to allow optional nodes array.
27305 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27306 (streamer_tree_cache_append): Likewise.
27307 (streamer_tree_cache_create): Create nodes array optionally
27308 as specified by parameter.
27309 * lto-streamer-out.c (create_output_block): Avoid maintaining
27310 the node array in the writer cache.
27311 (DFS_write_tree): Remove assertion.
27312 (produce_asm_for_decls): Free the out decl state hash table early.
27313 * lto-streamer-in.c (lto_data_in_create): Adjust for
27314 streamer_tree_cache_create prototype change.
27316 2014-04-03 Richard Biener <rguenther@suse.de>
27318 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27319 set TREE_CHAIN to NULL_TREE.
27321 2014-04-03 Richard Biener <rguenther@suse.de>
27323 PR tree-optimization/60740
27324 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27325 over all GIMPLE_COND operands.
27327 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
27329 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27330 (Weffc++): Remove Scott's numbering, merge lists and reference
27333 2014-04-03 Nick Clifton <nickc@redhat.com>
27335 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27338 2014-04-03 Martin Jambor <mjambor@suse.cz>
27340 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27341 mention gcc_unreachable before failing.
27342 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27345 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
27348 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27349 inconsistent code and instead mark the context inconsistent.
27350 (possible_polymorphic_call_targets): For inconsistent contexts
27351 return empty complete list.
27353 2014-04-02 Anthony Green <green@moxielogic.com>
27355 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27356 (extendqisi2, extendhisi2): Define.
27357 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27358 (WCHAR_TYPE): Change to unsigned int.
27360 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27362 PR tree-optimization/60733
27363 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27364 insertion point for PHI candidates to be the end of the feeding
27365 block for the PHI argument.
27367 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
27369 PR rtl-optimization/60650
27370 * lra-constraints.c (process_alt_operands): Decrease reject for
27371 earlyclobber matching.
27373 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27375 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27377 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27379 * config/spu/spu.c (pad_bb): Do not crash when the last
27380 insn is CODE_FOR_blockage.
27382 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27384 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27385 lies outside the target mode.
27387 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27390 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27391 software floating point or no floating point registers, do not
27392 allow any type in the FPRs. Eliminate a test for SPE SIMD types
27393 in GPRs that occurs after we tested for GPRs that would never be
27396 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27397 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27398 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
27399 specifically allow DDmode, since that does not use the SPE SIMD
27402 2014-04-02 Richard Biener <rguenther@suse.de>
27404 PR middle-end/60729
27405 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27406 MODE_INTs. Properly use negv_optab.
27407 (expand_abs): Likewise.
27409 2014-04-02 Richard Biener <rguenther@suse.de>
27412 * Makefile.in (install-driver): Guard extra installs with special
27415 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27417 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27418 Document vec_vgbbd.
27420 2014-04-01 Richard Henderson <rth@redhat.com>
27423 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27424 alternative enabled before register allocation.
27426 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
27428 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27429 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27431 (nios2_large_got_address): Remove unneeded 'sym' parameter.
27432 (nios2_got_address): Update nios2_large_got_address call site.
27433 (nios2_delegitimize_address): New function.
27434 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27435 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27436 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27438 2014-04-01 Martin Husemann <martin@duskware.de>
27440 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27443 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
27445 PR rtl-optimization/60604
27446 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27447 check from register_operand.
27448 (register_operand): Redefine in terms of general_operand.
27449 (nonmemory_operand): Use register_operand for the non-constant cases.
27451 2014-04-01 Richard Biener <rguenther@suse.de>
27453 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27455 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
27457 * doc/invoke.texi (mapp-regs): Clarify.
27459 2014-03-31 Ulrich Drepper <drepper@gmail.com>
27461 * config/i386/avx512fintrin.h (__v32hi): Define type.
27462 (__v64qi): Likewise.
27463 (_mm512_set1_epi8): Define.
27464 (_mm512_set1_epi16): Define.
27465 (_mm512_set4_epi32): Define.
27466 (_mm512_set4_epi64): Define.
27467 (_mm512_set4_pd): Define.
27468 (_mm512_set4_ps): Define.
27469 (_mm512_setr4_epi64): Define.
27470 (_mm512_setr4_epi32): Define.
27471 (_mm512_setr4_pd): Define.
27472 (_mm512_setr4_ps): Define.
27473 (_mm512_setzero_epi32): Define.
27475 2014-03-31 Martin Jambor <mjambor@suse.cz>
27477 PR middle-end/60647
27478 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27479 callsite_arguments_match_p. Updated all callers. Also check types of
27480 corresponding formal parameters and actual arguments.
27481 (not_all_callers_have_enough_arguments_p) Renamed to
27482 some_callers_have_mismatched_arguments_p.
27484 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
27486 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27488 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
27491 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27494 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
27496 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27497 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27499 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27500 Use FMAMODE_NOVF512 mode iterator.
27501 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27502 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27503 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27504 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27506 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27507 Use VF_128_256 mode iterator.
27508 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27511 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27513 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27514 static chain if needed.
27516 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27519 * lra-constraints.c (index_part_to_reg): New.
27520 (process_address): Use it.
27522 2014-03-27 Jeff Law <law@redhat.com>
27523 Jakub Jelinek <jakub@redhat.com>
27526 * expr.c (do_tablejump): Use simplify_gen_binary rather than
27527 gen_rtx_{PLUS,MULT} to build up the address expression.
27529 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27530 creating non-canonical RTL.
27532 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27535 * ipa-inline.c (want_inline_small_function_p): Short circuit large
27536 functions; reorganize to make cheap checks first.
27537 (inline_small_functions): Do not estimate growth when dumping;
27539 * ipa-inline.h (inline_summary): Add min_size.
27540 (growth_likely_positive): New function.
27541 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27542 (set_cond_stmt_execution_predicate): Cleanup.
27543 (estimate_edge_size_and_time): Compute min_size.
27544 (estimate_calls_size_and_time): Likewise.
27545 (estimate_node_size_and_time): Likewise.
27546 (inline_update_overall_summary): Update min_size.
27547 (do_estimate_edge_time): Likewise.
27548 (do_estimate_edge_size): Update.
27549 (do_estimate_edge_hints): Update.
27550 (growth_likely_positive): New function.
27552 2014-03-28 Jakub Jelinek <jakub@redhat.com>
27555 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27556 also if addr has VOIDmode.
27558 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27560 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27561 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27563 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27564 instructions as well as AdvancedSIMD loads.
27566 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27568 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27569 Use crypto_aese type.
27570 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27571 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27572 crypto_aese, crypto_aesmc. Move to types.md.
27573 * config/arm/types.md (crypto_aes): Split into crypto_aese,
27575 * config/arm/iterators.md (crypto_type): Likewise.
27577 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27579 * cgraph.c: Include expr.h and tree-dfa.h.
27580 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27583 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27586 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27587 regs from checking multi-reg pseudos.
27589 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27591 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27593 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27595 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27596 if it would clobber the stack pointer, even temporarily.
27598 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
27600 * mode-switching.c: Make small adjustments to the top comment.
27602 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
27604 * config/rs6000/constraints.md (wD constraint): New constraint to
27605 match the constant integer to get the top DImode/DFmode out of a
27606 vector in a VSX register.
27608 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27609 match the constant integer to get the top DImode/DFmode out of a
27610 vector in a VSX register.
27612 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27615 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27618 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27619 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27621 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27622 Optimize vec_extract of 64-bit values, where the value being
27623 extracted is in the top word, where we can use scalar
27624 instructions. Add direct move and store support. Combine the big
27625 endian/little endian vector select load support into a single insn.
27626 (vsx_extract_<mode>_internal1): Likewise.
27627 (vsx_extract_<mode>_internal2): Likewise.
27628 (vsx_extract_<mode>_load): Likewise.
27629 (vsx_extract_<mode>_store): Likewise.
27630 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27631 combined into vsx_extract_<mode>_load.
27632 (vsx_extract_<mode>_one_le): Likewise.
27634 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27635 define the top 64-bit vector element.
27637 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27640 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27641 Document vec_vbpermq builtin.
27644 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27645 enable use of xxsldwi and xxpermdi builtin functions.
27646 (vec_xxpermdi): Likewise.
27648 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27649 Document use of vec_xxsldwi and vec_xxpermdi builtins.
27651 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
27653 PR rtl-optimization/60650
27654 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27656 (find_spills_for): New.
27657 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27658 Spill all pseudos on the second iteration.
27660 2014-03-27 Marek Polacek <polacek@redhat.com>
27663 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27666 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27668 * config/s390/s390.c (s390_can_use_return_insn): Check for
27669 call-saved FPRs on 31 bit.
27671 2014-03-27 Jakub Jelinek <jakub@redhat.com>
27673 PR middle-end/60682
27674 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27675 if they need regimplification, just drop them instead of
27676 calling gimple_regimplify_operands on them.
27678 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
27681 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27682 (aarch64_frame_pointer_required): Adjust logic.
27683 (aarch64_can_eliminate): Adjust logic.
27684 (aarch64_override_options_after_change): Adjust logic.
27686 2014-03-27 Dehao Chen <dehao@google.com>
27688 * ipa-inline.c (early_inliner): Update node's inline info.
27690 2014-03-26 Dehao Chen <dehao@google.com>
27692 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27693 compiler inserted conditional jumps for NAN float check.
27695 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27697 * ubsan.h (ubsan_create_data): Change second argument's type
27698 to const location_t *.
27699 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27701 (ubsan_create_data): Change second argument to const location_t *PLOC.
27702 Create Loc field whenever PLOC is non-NULL.
27703 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27704 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27708 * real.c (real_to_integer2): Change type of low to UHWI.
27710 2014-03-26 Tobias Burnus <burnus@net-b.de>
27712 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27713 (CILK_SELF_SPECS): New define.
27714 (driver_self_specs): Use it.
27716 2014-03-26 Richard Biener <rguenther@suse.de>
27718 * tree-pretty-print.c (percent_K_format): Implement special
27719 case for LTO and its stripped down BLOCK tree.
27721 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27724 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27726 * tree-vrp.c (simplify_internal_call_using_ranges): If only
27727 one range is range_int_cst_p, but not both, at least optimize
27728 addition/subtraction of 0 and multiplication by 0 or 1.
27729 * gimple-fold.c (gimple_fold_call): Fold
27730 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27731 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27732 INTEGER_CSTs, try to fold at least x * 0 and y - y.
27734 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
27736 PR rtl-optimization/60452
27737 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27738 <case REG>: Return 1 for invalid offsets from the frame pointer.
27740 2014-03-26 Marek Polacek <polacek@redhat.com>
27743 * doc/extend.texi (C Extensions): Mention variable-length arrays in
27746 2014-03-26 Marek Polacek <polacek@redhat.com>
27749 * doc/extend.texi (Designated Inits): Describe what happens to omitted
27752 2014-03-26 Marek Polacek <polacek@redhat.com>
27755 * ira-color.c (update_conflict_hard_regno_costs): Perform the
27756 multiplication in unsigned type.
27758 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27760 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27762 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27764 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27766 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27769 * cif-code.def (UNREACHABLE) New code.
27770 * ipa-inline.c (inline_small_functions): Skip edges to
27771 __builtlin_unreachable.
27772 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27773 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27774 predicate to __bulitin_unreachable.
27775 (set_cond_stmt_execution_predicate): Fix issue when
27776 invert_tree_comparison returns ERROR_MARK.
27777 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27778 propagate to inline clones.
27779 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27781 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27782 * cgraphclones.c (cgraph_clone_node): If call destination is already
27783 ureachable, do not redirect it back.
27784 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27787 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27789 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27790 Do not modify inline clones.
27792 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27794 * config/i386/i386.md (general_sext_operand): New mode attr.
27795 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27796 don't generate (sign_extend (const_int)).
27797 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27798 operands[2]. Use We constraint instead of <i> and
27799 <general_sext_operand> predicate instead of <general_operand>.
27800 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27801 * config/i386/constraints.md (We): New constraint.
27802 * config/i386/predicates.md (x86_64_sext_operand,
27803 sext_operand): New predicates.
27805 2014-03-25 Martin Jambor <mjambor@suse.cz>
27808 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27809 inconsistent devirtualizations to __builtin_unreachable.
27811 2014-03-25 Marek Polacek <polacek@redhat.com>
27814 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27816 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
27818 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27819 order of elements for big-endian.
27821 2014-03-25 Richard Biener <rguenther@suse.de>
27823 PR middle-end/60635
27824 * gimplify-me.c (gimple_regimplify_operands): Update the
27827 2014-03-25 Martin Jambor <mjambor@suse.cz>
27830 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27831 (lto_output_varpool_node): Likewise.
27832 (input_overwrite_node): Likewise.
27833 (input_varpool_node): Likewise.
27835 2014-03-25 Richard Biener <rguenther@suse.de>
27837 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27838 (run_gcc): Likewise.
27840 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27842 * combine.c (simplify_compare_const): Add MODE argument.
27843 Handle mode_width 0 as very large mode_width.
27844 (try_combine, simplify_comparison): Adjust callers.
27846 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27847 type to avoid signed integer overflow.
27848 * explow.c (plus_constant): Likewise.
27850 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
27852 * doc/generic.texi: Correct typos.
27854 2014-03-24 Tobias Burnus <burnus@net-b.de>
27856 * doc/invoke.texi (-flto): Expand section about
27857 using static libraries with LTO.
27859 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27861 PR rtl-optimization/60501
27862 * optabs.def (addptr3_optab): New optab.
27863 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27864 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27865 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27867 * lra.c (emit_add3_insn): Use the addptr pattern if available.
27869 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27871 2014-03-24 Ulrich Drepper <drepper@gmail.com>
27873 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27876 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27877 (_mm256_undefined_ps): Define.
27878 (_mm256_undefined_pd): Define.
27879 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27880 (_mm_undefined_pd): Define.
27881 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27882 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27883 (_mm512_undefined_ps): Define.
27884 (_mm512_undefined_pd): Define.
27885 Use _mm*_undefined_*.
27886 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27888 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
27890 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27891 (lshr_simd): DI mode added.
27892 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27893 (aarch64_ushr_simddi): Likewise.
27894 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27895 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27896 (vshrd_n_u64): Likewise.
27898 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27900 * Makefile.in (s-macro_list): Depend on cc1.
27902 2014-03-23 Teresa Johnson <tejohnson@google.com>
27904 * ipa-utils.c (ipa_print_order): Use specified dump file.
27906 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
27908 PR rtl-optimization/60601
27909 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27911 * gcc.c (eval_spec_function): Initialize save_growing_value.
27913 2014-03-22 Jakub Jelinek <jakub@redhat.com>
27916 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27917 code == MINUS_EXPR, never swap op0 with op1.
27919 * toplev.c (init_local_tick): Avoid signed integer multiplication
27921 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27922 shift by first operand's bitsize.
27924 2014-03-21 Jakub Jelinek <jakub@redhat.com>
27927 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27928 redefine to 1 or 0.
27929 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27930 TARGET_ISA_64BIT_P(x).
27932 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27934 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27935 pattern for vector nor instead of subtract from splat(-1).
27936 (altivec_expand_vec_perm_const_le): Likewise.
27938 2014-03-21 Richard Henderson <rth@twiddle.net>
27941 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27942 related insns after epilogue_completed.
27944 2014-03-21 Martin Jambor <mjambor@suse.cz>
27947 * cgraph.h (symtab_node): New flag body_removed.
27948 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27949 when removing bodies.
27950 * symtab.c (dump_symtab_base): Dump body_removed flag.
27951 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27952 had their bodies removed.
27954 2014-03-21 Martin Jambor <mjambor@suse.cz>
27957 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27960 2014-03-21 Richard Biener <rguenther@suse.de>
27962 PR tree-optimization/60577
27963 * tree-core.h (struct tree_base): Document nothrow_flag use
27964 in DECL_NONALIASED.
27965 * tree.h (DECL_NONALIASED): New.
27966 (may_be_aliased): Adjust.
27967 * coverage.c (build_var): Set DECL_NONALIASED.
27969 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27971 * expr.c (expand_expr_real_1): Remove outdated comment.
27973 2014-03-20 Jakub Jelinek <jakub@redhat.com>
27975 PR middle-end/60597
27976 * ira.c (adjust_cleared_regs): Call copy_rtx on
27977 *reg_equiv[REGNO (loc)].src_p before passing it to
27978 simplify_replace_fn_rtx.
27981 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27982 into CONST, put pic register as first operand of PLUS. Use
27983 gen_const_mem for both 32-bit and 64-bit PIC got loads.
27985 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27987 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27989 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27991 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27992 around for store forwarding issue in the FPU on the UT699.
27993 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27994 loads and operations if -mfix-ut699 is specified.
27995 (divtf3_hq): Tweak attribute.
27996 (sqrttf2_hq): Likewise.
27998 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
28000 * calls.c (store_one_arg): Remove incorrect const qualification on the
28001 type of the temporary.
28002 * cfgexpand.c (expand_return): Likewise.
28003 * expr.c (expand_constructor): Likewise.
28004 (expand_expr_real_1): Likewise.
28006 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28008 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
28011 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
28014 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
28016 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
28018 * config/arm/aarch-common-protos.h
28019 (alu_cost_table): Fix spelling of "extend".
28020 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28022 2014-03-19 Richard Biener <rguenther@suse.de>
28024 PR middle-end/60553
28025 * tree-core.h (tree_type_common): Re-order pointer members
28026 to reduce recursion depth during GC walks.
28028 2014-03-19 Marek Polacek <polacek@redhat.com>
28031 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28032 before accessing it.
28034 2014-03-19 Richard Biener <rguenther@suse.de>
28037 * lto-streamer-in.c (input_function): In WPA stage do not drop
28040 2014-03-19 Jakub Jelinek <jakub@redhat.com>
28042 PR tree-optimization/60559
28043 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28044 with build_zero_cst assignment.
28046 2014-03-18 Kai Tietz <ktietz@redhat.com>
28048 PR rtl-optimization/56356
28049 * sdbout.c (sdbout_parms): Verify that parms'
28050 incoming argument is valid.
28051 (sdbout_reg_parms): Likewise.
28053 2014-03-18 Richard Henderson <rth@redhat.com>
28056 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28057 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
28058 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28060 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
28062 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28063 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28064 Italicize plugin event names in description. Explain that
28065 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
28066 Remind that no GCC functions should be called after PLUGIN_FINISH.
28067 Explain what pragmas with expansion are.
28069 2014-03-18 Martin Liska <mliska@suse.cz>
28071 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28072 gimple call statement is update.
28073 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28074 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28076 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28079 * ubsan.c (ubsan_instrument_unreachable): Call
28080 initialize_sanitizer_builtins.
28081 (ubsan_pass): Likewise.
28084 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28085 varpool_finalize_decl instead of rest_of_decl_compilation.
28087 2014-03-18 Richard Biener <rguenther@suse.de>
28089 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28090 by using bitmap_and_compl instead of bitmap_and_compl_into.
28091 (df_rd_transfer_function): Likewise.
28093 2014-03-18 Richard Biener <rguenther@suse.de>
28095 * doc/lto.texi (fresolution): Fix typo.
28097 2014-03-18 Richard Biener <rguenther@suse.de>
28099 * doc/invoke.texi (flto): Update for changes in 4.9.
28101 2014-03-18 Richard Biener <rguenther@suse.de>
28103 * doc/loop.texi: Remove section on the removed lambda framework.
28104 Update loop docs with recent changes in preserving loop structure.
28106 2014-03-18 Richard Biener <rguenther@suse.de>
28108 * doc/lto.texi (-fresolution): Document.
28110 2014-03-18 Richard Biener <rguenther@suse.de>
28112 * doc/contrib.texi: Adjust my name.
28114 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28117 * internal-fn.c: Include diagnostic-core.h.
28118 (expand_BUILTIN_EXPECT): New function.
28119 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28120 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28121 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28122 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28123 IFN_BUILTIN_EXPECT.
28124 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28125 Revert 3 argument __builtin_expect code.
28126 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28127 * gimple-fold.c (gimple_fold_call): Likewise.
28128 * tree.h (fold_builtin_expect): New prototype.
28129 * builtins.c (build_builtin_expect_predicate): Add predictor
28130 argument, if non-NULL, create 3 argument __builtin_expect.
28131 (fold_builtin_expect): No longer static. Add ARG2 argument,
28132 pass it through to build_builtin_expect_predicate.
28133 (fold_builtin_2): Adjust caller.
28134 (fold_builtin_3): Handle BUILT_IN_EXPECT.
28135 * internal-fn.def (BUILTIN_EXPECT): New.
28137 2014-03-18 Tobias Burnus <burnus@net-b.de>
28140 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28141 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28142 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28144 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
28147 * predict.c (combine_predictions_for_bb): Fix up formatting.
28148 (expr_expected_value_1, expr_expected_value): Add predictor argument,
28149 fill what it points to if non-NULL.
28150 (tree_predict_by_opcode): Adjust caller, use the predictor.
28151 * predict.def (PRED_COMPARE_AND_SWAP): Add.
28153 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
28155 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28156 proper constant for the store mode.
28158 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
28160 * symtab.c (change_decl_assembler_name): Fix transparent alias
28161 chain construction.
28163 2014-03-16 Renlin Li <Renlin.Li@arm.com>
28165 * config/aarch64/aarch64.c: Correct the comments about the
28166 aarch64 stack layout.
28168 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
28170 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28171 check for GF_OMP_FOR_KIND_FOR.
28173 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28175 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28176 ymm and zmm register names.
28178 2014-03-17 Jakub Jelinek <jakub@redhat.com>
28181 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28182 note creation for the 2010-08-31 changes.
28184 2014-03-17 Marek Polacek <polacek@redhat.com>
28186 PR middle-end/60534
28187 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28188 as -fno-tree-loop-vectorize.
28189 (expand_omp_simd): Likewise.
28191 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
28193 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28194 (eligible_for_call_delay): New prototype.
28195 * config/sparc/sparc.c (tls_call_delay): Rename into...
28196 (eligible_for_call_delay): ...this. Return false if the instruction
28197 cannot be put in the delay slot of a branch.
28198 (eligible_for_restore_insn): Simplify.
28199 (eligible_for_return_delay): Return false if the instruction cannot be
28200 put in the delay slot of a branch and simplify.
28201 (eligible_for_sibcall_delay): Return false if the instruction cannot be
28202 put in the delay slot of a branch.
28203 * config/sparc/sparc.md (fix_ut699): New attribute.
28204 (tls_call_delay): Delete.
28205 (in_call_delay): Reimplement.
28206 (eligible_for_sibcall_delay): Rename into...
28207 (in_sibcall_delay): ...this.
28208 (eligible_for_return_delay): Rename into...
28209 (in_return_delay): ...this.
28210 (in_branch_delay): Reimplement.
28211 (in_uncond_branch_delay): Delete.
28212 (in_annul_branch_delay): Delete.
28214 2014-03-14 Richard Henderson <rth@redhat.com>
28217 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28218 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28219 (*floathi<X87MODEF>2_i387_with_temp): Remove.
28220 (floathi splitters): Remove.
28221 (float<SWI48x>xf2): New pattern.
28222 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
28223 code that tried to handle DImode for 32-bit, but which was excluded
28224 by the pattern's condition. Drop allocation of stack temporary.
28225 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28226 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28227 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28228 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28229 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28230 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28231 (*float<SWI48><MODEF>2_sse_interunit): Remove.
28232 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28233 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28234 (*float<SWI48x><X87MODEF>2_i387): Remove.
28235 (all float _with_temp splitters): Remove.
28236 (*float<SWI48x><MODEF>2_i387): New pattern.
28237 (*float<SWI48><MODEF>2_sse): New pattern.
28238 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28239 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28241 2014-03-14 Jakub Jelinek <jakub@redhat.com>
28242 Marek Polacek <polacek@redhat.com>
28244 PR middle-end/60484
28245 * common.opt (dump_base_name_prefixed): New Variable.
28246 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28247 if x_dump_base_name_prefixed is already set, set it at the end.
28249 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
28251 PR rtl-optimization/60508
28252 * lra-constraints.c (get_reload_reg): Add new parameter
28254 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28255 Pass the new parameter values.
28257 2014-03-14 Richard Biener <rguenther@suse.de>
28259 * common.opt: Revert unintented changes from r205065.
28260 * opts.c: Likewise.
28262 2014-03-14 Richard Biener <rguenther@suse.de>
28264 PR middle-end/60518
28265 * cfghooks.c (split_block): Properly adjust all loops the
28266 block was a latch of.
28268 2014-03-14 Martin Jambor <mjambor@suse.cz>
28271 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28274 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
28277 * config/avr/avr.c (avr_set_current_function): Pass function name
28278 through default_strip_name_encoding before sanity checking instead
28279 of skipping the first char of the assembler name.
28281 2014-03-13 Richard Henderson <rth@redhat.com>
28284 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28285 (ix86_force_to_memory, ix86_free_from_memory): Remove.
28286 * config/i386/i386-protos.h: Likewise.
28287 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28288 in the expander instead of a splitter.
28289 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28290 any possibility of requiring a memory.
28291 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28292 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28293 (fp branch splitters): Update for ix86_split_fp_branch.
28294 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28295 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28296 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28297 (*fop_<MODEF>_2_i387): Remove f/r alternative.
28298 (*fop_<MODEF>_3_i387): Likewise.
28299 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28300 (splitters for the fop_* register patterns): Remove.
28301 (fscalexf4_i387): Rename from *fscalexf4_i387.
28302 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28304 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28306 PR tree-optimization/59779
28307 * tree-dfa.c (get_ref_base_and_extent): Use double_int
28308 type for bitsize and maxsize instead of HOST_WIDE_INT.
28310 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
28312 PR rtl-optimization/57320
28313 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28314 the CFG after thread_prologue_and_epilogue_insns.
28316 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
28318 PR rtl-optimization/57189
28319 * lra-constraints.c (process_alt_operands): Disfavor spilling
28322 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
28324 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28326 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28328 PR tree-optimization/59025
28329 PR middle-end/60418
28330 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28331 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28333 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
28336 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28337 calls of avr_out_plus_1.
28339 2014-03-13 Bin Cheng <bin.cheng@arm.com>
28341 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28342 BB's single pred and update the father loop's latch info later.
28344 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28346 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28350 (VEC_base): Likewise.
28351 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28352 registers, we need to swap double words in little endian mode.
28354 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28355 to be a container mode for 128-bit integer operations added in ISA
28356 2.07. Unlike TImode and PTImode, the preferred register set is
28357 the Altivec/VMX registers for the 128-bit operations.
28359 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28361 (rs6000_split_128bit_ok_p): Likewise.
28363 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28364 macros for creating ISA 2.07 normal and overloaded builtin
28365 functions with 3 arguments.
28366 (BU_P8V_OVERLOAD_3): Likewise.
28367 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28368 for use as overloaded functions.
28369 (VPERM_1TI_UNS): Likewise.
28370 (VSEL_1TI): Likewise.
28371 (VSEL_1TI_UNS): Likewise.
28372 (ST_INTERNAL_1ti): Likewise.
28373 (LD_INTERNAL_1ti): Likewise.
28374 (XXSEL_1TI): Likewise.
28375 (XXSEL_1TI_UNS): Likewise.
28376 (VPERM_1TI): Likewise.
28377 (VPERM_1TI_UNS): Likewise.
28378 (XXPERMDI_1TI): Likewise.
28379 (SET_1TI): Likewise.
28380 (LXVD2X_V1TI): Likewise.
28381 (STXVD2X_V1TI): Likewise.
28382 (VEC_INIT_V1TI): Likewise.
28383 (VEC_SET_V1TI): Likewise.
28384 (VEC_EXT_V1TI): Likewise.
28385 (EQV_V1TI): Likewise.
28386 (NAND_V1TI): Likewise.
28387 (ORC_V1TI): Likewise.
28388 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28389 added in ISA 2.07. Add both normal 'altivec' builtins, and the
28390 overloaded builtin.
28391 (VADDUQM): Likewise.
28392 (VSUBCUQ): Likewise.
28393 (VADDEUQM): Likewise.
28394 (VADDECUQ): Likewise.
28395 (VSUBEUQM): Likewise.
28396 (VSUBECUQ): Likewise.
28398 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28399 __int128_t and __uint128_t types.
28400 (__uint128_type): Likewise.
28401 (altivec_categorize_keyword): Add support for vector __int128_t,
28402 vector __uint128_t, vector __int128, and vector unsigned __int128
28403 as a container type for TImode operations that need to be done in
28404 VSX/Altivec registers.
28405 (rs6000_macro_to_expand): Likewise.
28406 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28407 to support 128-bit integer instructions vaddcuq, vadduqm,
28408 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28409 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28411 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28412 for V1TImode, and set up preferences to use VSX/Altivec registers.
28413 Setup VSX reload handlers.
28414 (rs6000_debug_reg_global): Likewise.
28415 (rs6000_init_hard_regno_mode_ok): Likewise.
28416 (rs6000_preferred_simd_mode): Likewise.
28417 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28418 (easy_altivec_constant): Likewise.
28419 (output_vec_const_move): Likewise.
28420 (rs6000_expand_vector_set): Convert V1TImode set and extract to
28422 (rs6000_expand_vector_extract): Likewise.
28423 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28425 (rs6000_const_vec): Add support for V1TImode.
28426 (rs6000_emit_le_vsx_load): Swap double words when loading or
28427 storing TImode/V1TImode.
28428 (rs6000_emit_le_vsx_store): Likewise.
28429 (rs6000_emit_le_vsx_move): Likewise.
28430 (rs6000_emit_move): Add support for V1TImode.
28431 (altivec_expand_ld_builtin): Likewise.
28432 (altivec_expand_st_builtin): Likewise.
28433 (altivec_expand_vec_init_builtin): Likewise.
28434 (altivec_expand_builtin): Likewise.
28435 (rs6000_init_builtins): Add support for V1TImode type. Add
28436 support for ISA 2.07 128-bit integer builtins. Define type names
28437 for the VSX/Altivec vector types.
28438 (altivec_init_builtins): Add support for overloaded vector
28439 functions with V1TImode type.
28440 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28441 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28443 (rs6000_split_128bit_ok_p): Likewise.
28444 (rs6000_handle_altivec_attribute): Create V1TImode from vector
28445 __int128_t and vector __uint128_t.
28447 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28448 and mode attributes.
28450 (VSX_M2): Likewise.
28455 (VS_scalar): Likewise.
28456 (VS_double): Likewise.
28457 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28459 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28460 we support the ISA 2.07 128-bit integer arithmetic instructions.
28461 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28462 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28463 and TImode types for use with the builtin functions.
28464 (V1TI_type_node): Likewise.
28465 (unsigned_V1TI_type_node): Likewise.
28466 (intTI_type_internal_node): Likewise.
28467 (uintTI_type_internal_node): Likewise.
28469 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28470 128-bit builtin functions.
28471 (UNSPEC_VADDEUQM): Likewise.
28472 (UNSPEC_VADDECUQ): Likewise.
28473 (UNSPEC_VSUBCUQ): Likewise.
28474 (UNSPEC_VSUBEUQM): Likewise.
28475 (UNSPEC_VSUBECUQ): Likewise.
28476 (VM): Add V1TImode to vector mode iterators.
28478 (VI_unit): Likewise.
28479 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28480 (altivec_vaddcuq): Likewise.
28481 (altivec_vsubuqm): Likewise.
28482 (altivec_vsubcuq): Likewise.
28483 (altivec_vaddeuqm): Likewise.
28484 (altivec_vaddecuq): Likewise.
28485 (altivec_vsubeuqm): Likewise.
28486 (altivec_vsubecuq): Likewise.
28488 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28490 (BOOL_128): Likewise.
28491 (BOOL_REGS_OUTPUT): Likewise.
28492 (BOOL_REGS_OP1): Likewise.
28493 (BOOL_REGS_OP2): Likewise.
28494 (BOOL_REGS_UNARY): Likewise.
28495 (BOOL_REGS_AND_CR0): Likewise.
28497 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28498 128-bit integer builtin support.
28499 (vec_vadduqm): Likewise.
28500 (vec_vaddecuq): Likewise.
28501 (vec_vaddeuqm): Likewise.
28502 (vec_vsubecuq): Likewise.
28503 (vec_vsubeuqm): Likewise.
28504 (vec_vsubcuq): Likewise.
28505 (vec_vsubuqm): Likewise.
28507 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28508 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28509 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28510 128-bit integer add/subtract to ISA 2.07.
28512 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
28514 * config/arc/arc.c (arc_predicate_delay_insns):
28515 Fix third argument passed to conditionalize_nonjump.
28517 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
28519 * config/aarch64/aarch64-builtins.c
28520 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28521 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28522 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28523 instead of __builtin_lfloor.
28524 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28526 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28528 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28529 (tree_ssa_ifcombine_bb_1): New function.
28530 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
28531 is an empty forwarder block to then_bb or vice versa and then_bb
28532 and else_bb are effectively swapped.
28534 2014-03-12 Christian Bruel <christian.bruel@st.com>
28537 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28538 REG_CFA_DEF_CFA note.
28539 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28540 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28542 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28544 PR tree-optimization/60454
28545 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28547 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28549 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28550 Do not define target_cpu_default2 to generic.
28551 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28552 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28553 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28555 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28556 Marc Glisse <marc.glisse@inria.fr>
28558 PR tree-optimization/60502
28559 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28560 instead of build_low_bits_mask.
28562 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28564 PR middle-end/60482
28565 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28566 if there are multiple uses, but op doesn't live on E edge.
28567 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28568 clobber stmts before __builtin_unreachable.
28570 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
28572 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28573 hard_frame_pointer_rtx.
28574 * cse.c (cse_insn): Remove volatile check.
28575 * cselib.c (cselib_process_insn): Likewise.
28576 * dse.c (scan_insn): Likewise.
28578 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28580 * config/arc/arc.c (conditionalize_nonjump): New function,
28582 (arc_ifcvt): ... this.
28583 (arc_predicate_delay_insns): Use it.
28585 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28587 * config/arc/predicates.md (extend_operand): During/after reload,
28588 allow const_int_operand.
28589 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28590 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
28591 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28593 (umulsi3_highpart_i): Likewise.
28595 2014-03-11 Richard Biener <rguenther@suse.de>
28597 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28598 Add asserts to guard possible wrong-code bugs.
28600 2014-03-11 Richard Biener <rguenther@suse.de>
28602 PR tree-optimization/60429
28603 PR tree-optimization/60485
28604 * tree-ssa-structalias.c (set_union_with_increment): Properly
28605 take into account all fields that overlap the shifted vars.
28606 (do_sd_constraint): Likewise.
28607 (do_ds_constraint): Likewise.
28608 (get_constraint_for_ptr_offset): Likewise.
28610 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
28612 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28613 (nios2_compute_frame_layout):
28614 Add calculation of cfun->machine->fp_save_offset.
28615 (nios2_expand_prologue): Correct setting of frame pointer register
28617 (nios2_expand_epilogue): Update recovery of stack pointer from
28618 frame pointer accordingly.
28619 (nios2_initial_elimination_offset): Update calculation of offset
28620 for eliminating to HARD_FRAME_POINTER_REGNUM.
28622 2014-03-10 Jakub Jelinek <jakub@redhat.com>
28625 * ipa.c (symtab_remove_unreachable_nodes): Don't call
28626 cgraph_get_create_node on VAR_DECLs.
28628 2014-03-10 Richard Biener <rguenther@suse.de>
28630 PR middle-end/60474
28631 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28633 2014-03-08 Douglas B Rupp <rupp@gnat.com>
28635 * config/vms/vms.opt (vms_float_format): New variable.
28637 2014-03-08 Tobias Burnus <burnus@net-b.de>
28639 * doc/invoke.texi (-fcilkplus): Update implementation status.
28641 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
28642 Richard Biener <rguenther@suse.de>
28644 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28645 consistently accross all TUs.
28646 (run_gcc): Enable -fshort-double automatically at link at link-time
28647 and disallow override.
28649 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
28652 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28653 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28654 if they can't be used.
28656 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28658 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28659 for Solaris 11/x86 ld.
28660 * configure: Regenerate.
28662 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28664 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28665 (LIB_TLS_SPEC): Save as ld_tls_libs.
28666 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28667 (HAVE_AS_IX86_TLSLDM): New test.
28668 * configure, config.in: Regenerate.
28669 * config/i386/i386.c (legitimize_tls_address): Fall back to
28670 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28671 cannot support TLS_MODEL_LOCAL_DYNAMIC.
28672 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28673 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28675 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
28677 * common.opt (fira-loop-pressure): Mark as optimization.
28679 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
28681 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28682 an OpenMP mappable type.
28684 2014-03-06 Matthias Klose <doko@ubuntu.com>
28686 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28687 MULTILIB_OSDIRNAMES is not defined.
28689 2014-03-06 Jakub Jelinek <jakub@redhat.com>
28690 Meador Inge <meadori@codesourcery.com>
28693 * config/arm/arm.c (arm_tls_symbol_p): Remove.
28694 (arm_legitimize_address): Call legitimize_tls_address for any
28695 arm_tls_referenced_p expression, handle constant addend. Call it
28696 before testing for !TARGET_ARM.
28697 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28699 2014-03-06 Richard Biener <rguenther@suse.de>
28701 PR middle-end/60445
28705 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28707 * tree-streamer.c (record_common_node): Assert we don't record
28708 nodes with type double.
28709 (preload_common_node): Skip type double, complex double and double
28710 pointer since it is now frontend dependent due to fshort-double option.
28712 2014-03-06 Richard Biener <rguenther@suse.de>
28714 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28715 or -fno-lto is specified and the linker has full plugin support.
28716 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28717 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28718 * lto-wrapper.c (merge_and_complain): Merge compile-time
28719 optimization levels.
28720 (run_gcc): And pass it through to the link options.
28722 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
28726 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28728 * cselib.c (remove_useless_values): Skip to avoid quadratic
28729 behavior if the condition moved from...
28730 (cselib_process_insn): ... here holds.
28732 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28735 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28736 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28739 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28740 (TM_H): Add x86-tune.def.
28742 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28744 * config/aarch64/aarch64.c (generic_tunings):
28745 Use cortexa57_extra_costs.
28747 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28750 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28751 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28752 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28755 2014-03-04 Heiher <r@hev.cc>
28757 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28758 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28760 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
28762 * config/i386/predicates.md (const2356_operand): Change to ...
28763 (const2367_operand): ... this.
28764 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28766 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28767 (*avx512pf_scatterpf<mode>sf): Ditto.
28768 (avx512pf_scatterpf<mode>df): Ditto.
28769 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28770 (*avx512pf_scatterpf<mode>df): Ditto.
28771 * config/i386/i386.c (ix86_expand_builtin): Update
28772 incorrect hint operand error message.
28774 2014-03-04 Richard Biener <rguenther@suse.de>
28776 * lto-section-in.c (lto_get_section_data): Fix const cast.
28778 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28780 * tree-streamer.c (record_common_node): Assert we don't record
28781 nodes with type double.
28782 (preload_common_node): Skip type double, complex double and double
28783 pointer since it is now frontend dependent due to fshort-double option.
28785 2014-03-04 Richard Biener <rguenther@suse.de>
28788 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28789 (lto_input_toplevel_asms): Likewise.
28790 * lto-section-in.c (lto_get_section_data): Instead do it here
28793 2014-03-04 Richard Biener <rguenther@suse.de>
28795 PR tree-optimization/60382
28796 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28797 dead PHIs a reduction.
28799 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
28801 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28803 (_mm_prefetch): Move out of GCC target("sse") pragma.
28804 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28805 GCC target("prfchw") pragma.
28806 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28808 * config/i386/i386.c (ix86_option_override_internal): Enable
28809 -mprfchw with -mprefetchwt1.
28811 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28813 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28816 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28818 * opts.h (CL_PCH_IGNORE): Define.
28819 * targhooks.c (option_affects_pch_p):
28820 Return false for options that have CL_PCH_IGNORE set.
28821 * opt-functions.awk: Process PchIgnore.
28822 * doc/options.texi: Document PchIgnore.
28824 * config/arc/arc.opt (misize): Add PchIgnore property.
28826 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28828 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28829 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28830 constraint on constants to permit them being loaded into
28831 GENERAL_REGS or BASE_REGS.
28833 2014-03-03 Nick Clifton <nickc@redhat.com>
28835 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28836 anti-cacnonical alternatives.
28837 (negandhi3_real): New pattern.
28838 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28840 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28842 * config/avr/avr-mcus.def: Remove atxmega16x1.
28843 * config/avr/avr-tables.opt: Regenerate.
28844 * config/avr/t-multilib: Regenerate.
28845 * doc/avr-mmcu.texi: Regenerate.
28847 2014-03-03 Tobias Grosser <tobias@grosser.es>
28848 Mircea Namolaru <mircea.namolaru@inria.fr>
28850 PR tree-optimization/58028
28851 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28854 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28856 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28857 not handled by recognizers.
28859 2014-03-03 Jakub Jelinek <jakub@redhat.com>
28861 PR middle-end/60175
28862 * function.c (expand_function_end): Don't emit
28863 clobber_return_register sequence if clobber_after is a BARRIER.
28864 * cfgexpand.c (construct_exit_block): Append instructions before
28865 return_label to prev_bb.
28867 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28869 * config/rs6000/constraints.md: Document reserved use of "wc".
28871 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28874 * ipa.c (function_and_variable_visibility): When dissolving comdat
28875 group, also set all symbols to local.
28877 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28882 2013-12-14 Jan Hubicka <jh@suse.cz>
28883 PR middle-end/58477
28884 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28886 2014-03-02 Jon Beniston <jon@beniston.com>
28892 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28893 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28894 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28895 (simple_return, *simple_return): New patterns
28896 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28897 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28899 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
28901 * dwarf2out.c (gen_subprogram_die): Tidy.
28903 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
28906 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28907 (*mov_t_msb_neg_negc): ... this new insn.
28909 2014-02-28 Jason Merrill <jason@redhat.com>
28912 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28915 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28918 * dwarf2out.c (decltype_auto_die): New static.
28919 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28920 (gen_type_die_with_usage): Handle 'decltype(auto)'.
28921 (is_cxx_auto): Likewise.
28923 2014-02-28 Ian Bolton <ian.bolton@arm.com>
28925 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28926 we are not using general regs only.
28928 2014-02-28 Richard Biener <rguenther@suse.de>
28931 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28932 previous fix and only allow to remove trivial pre-headers
28933 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28934 (remove_forwarder_block): Properly update the latch of a loop.
28936 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28939 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28940 (cselib_preserved_hash_table): New.
28941 (preserve_constants_and_equivs): Move preserved vals to it.
28942 (cselib_find_slot): Look it up first.
28943 (cselib_init): Initialize it.
28944 (cselib_finish): Release it.
28945 (dump_cselib_table): Dump it.
28947 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28950 * cselib.c (remove_useless_values): Skip to avoid quadratic
28951 behavior if the condition moved from...
28952 (cselib_process_insn): ... here holds.
28954 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28957 * var-tracking.c (vt_initialize): Apply the same condition to
28958 preserve the CFA base value.
28960 2014-02-28 Joey Ye <joey.ye@arm.com>
28963 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28964 if reload in progress or completed.
28966 2014-02-28 Tobias Burnus <burnus@net-b.de>
28968 PR middle-end/60147
28969 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28972 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
28974 * doc/tm.texi.in (Condition Code Status): Update documention for
28975 relative locations of cc0-setter and cc0-user.
28977 2014-02-27 Jeff Law <law@redhat.com>
28979 PR rtl-optimization/52714
28980 * combine.c (try_combine): When splitting an unrecognized PARALLEL
28981 into two independent simple sets, if I3 is a jump, ensure the
28982 pattern we place into I3 is a (set (pc) ...).
28984 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
28985 Jeff Law <law@redhat.com>
28987 PR rtl-optimization/49847
28988 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28989 are in different blocks.
28990 * doc/tm.texi (Condition Code Status): Update documention for
28991 relative locations of cc0-setter and cc0-user.
28993 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
28996 * lra.c (lra_emit_add): Check SUBREG too.
28998 2014-02-27 Andreas Schwab <schwab@suse.de>
29000 * config/m68k/m68k.c (m68k_option_override): Disable
29001 -flive-range-shrinkage for classic m68k.
29002 (m68k_override_options_after_change): Likewise.
29004 2014-02-27 Marek Polacek <polacek@redhat.com>
29006 PR middle-end/59223
29007 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
29008 -Wmaybe-uninitialized.
29010 2014-02-27 Alan Modra <amodra@gmail.com>
29013 * reload1.c (emit_input_reload_insns): When reload_override_in,
29014 set old to rl->in_reg when rl->in_reg is a subreg.
29016 2014-02-26 Richard Biener <rguenther@suse.de>
29019 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29021 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29023 * common/config/i386/predicates.md (const1256_operand): Remove.
29024 (const2356_operand): New.
29025 (const_1_to_2_operand): Remove.
29026 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29027 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29028 (*avx512pf_gatherpf<mode>sf): Ditto.
29029 (avx512pf_gatherpf<mode>df): Ditto.
29030 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29031 (*avx512pf_gatherpf<mode>df): Ditto.
29032 (avx512pf_scatterpf<mode>sf): Ditto.
29033 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29034 (*avx512pf_scatterpf<mode>sf): Ditto.
29035 (avx512pf_scatterpf<mode>df): Ditto.
29036 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29037 (*avx512pf_scatterpf<mode>df): Ditto.
29038 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29040 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
29042 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29043 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29044 (_mm512_mask_testn_epi64_mask): Move to ...
29045 * config/i386/avx512cdintrin.h: Here.
29046 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29047 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29048 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29049 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29050 TARGET_AVX512F from TARGET_AVX512CD.
29052 2014-02-26 Richard Biener <rguenther@suse.de>
29055 * ipa.c (walk_polymorphic_call_targets): Properly guard
29056 call to inline_update_overall_summary.
29058 2014-02-26 Bin Cheng <bin.cheng@arm.com>
29061 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29062 and latches only if requested. Fix latch if it is removed.
29063 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29064 LOOPS_HAVE_PREHEADERS.
29066 2014-02-25 Andrew Pinski <apinski@cavium.com>
29068 * builtins.c (expand_builtin_thread_pointer): Create a new target
29069 when the target is NULL.
29071 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
29073 PR rtl-optimization/60317
29074 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29075 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29076 * lra-assigns.c: Include params.h.
29077 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29078 other reload pseudos considerations.
29080 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29082 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29083 to use canonical form for nor<mode>3.
29085 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29088 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29091 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29093 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29094 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29095 (ix86_handle_option): Handle OPT_mprefetchwt1.
29096 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29097 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29099 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29100 OPTION_MASK_ISA_PREFETCHWT1.
29101 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29102 (PTA_PREFETCHWT1): New.
29103 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29104 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29105 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29106 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29107 (*prefetch_avx512pf_<mode>_: Change into ...
29108 (*prefetch_prefetchwt1_<mode>: This.
29109 * config/i386/i386.opt (mprefetchwt1): New.
29110 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29111 (_mm_prefetch): Handle intent to write.
29112 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29114 2014-02-25 Richard Biener <rguenther@suse.de>
29116 PR middle-end/60291
29117 * emit-rtl.c (mem_attrs_htab): Remove.
29118 (mem_attrs_htab_hash): Likewise.
29119 (mem_attrs_htab_eq): Likewise.
29120 (set_mem_attrs): Always allocate new mem-attrs when something changed.
29121 (init_emit_once): Do not allocate mem_attrs_htab.
29123 2014-02-25 Richard Biener <rguenther@suse.de>
29126 * lto-opts.c (lto_write_options): Output non-explicit conservative
29127 -fwrapv, -fno-trapv and -fno-strict-overflow.
29128 * lto-wrapper.c (merge_and_complain): Handle merging those options.
29129 (run_gcc): And pass them through.
29131 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29133 * sel-sched.c (calculate_new_fences): New parameter ptime.
29134 Calculate it as a maximum over all fence cycles.
29135 (sel_sched_region_2): Adjust the call to calculate_new_fences.
29136 Print the final schedule timing when sched_verbose.
29138 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29140 PR rtl-optimization/60292
29141 * sel-sched.c (fill_vec_av_set): Do not reset target availability
29142 bit fot the fence instruction.
29144 2014-02-24 Alangi Derick <alangiderick@gmail.com>
29146 * calls.h: Fix typo in comment.
29148 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
29150 * config/pa/pa.c (pa_output_move_double): Don't valididate when
29151 adjusting offsetable addresses.
29153 2014-02-24 Guozhi Wei <carrot@google.com>
29155 * sparseset.h (sparseset_pop): Fix the wrong index.
29157 2014-02-24 Walter Lee <walt@tilera.com>
29159 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29160 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29162 * common/config/tilegx/tilegx-common.c
29163 (TARGET_DEFAULT_TARGET_FLAGS): Define.
29164 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29165 (LINK_SPEC): Ditto.
29166 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29167 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29168 (tilegx_gimplify_va_arg_expr): Handle big endian.
29169 (tilegx_expand_unaligned_load): Ditto.
29170 (tilegx_expand_unaligned_store): Ditto.
29171 (TARGET_RETURN_IN_MSB): New.
29172 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29173 (TARGET_ENDIAN_DEFAULT): New.
29174 (TARGET_BIG_ENDIAN): Handle big endian.
29175 (BYTES_BIG_ENDIAN): Ditto.
29176 (WORDS_BIG_ENDIAN): Ditto.
29177 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29178 (ENDIAN_SPEC): New.
29179 (EXTRA_SPECS): New.
29180 * config/tilegx/tilegx.md (extv): Handle big endian.
29182 (insn_st<n>): Ditto.
29183 (insn_st<n>_add<bitsuffix>): Ditto.
29184 (insn_stnt<n>): Ditto.
29185 (insn_stnt<n>_add<bitsuffix>):Ditto.
29186 (vec_interleave_highv8qi): Handle big endian.
29187 (vec_interleave_highv8qi_be): New.
29188 (vec_interleave_highv8qi_le): New.
29189 (insn_v1int_h): Handle big endian.
29190 (vec_interleave_lowv8qi): Handle big endian.
29191 (vec_interleave_lowv8qi_be): New.
29192 (vec_interleave_lowv8qi_le): New.
29193 (insn_v1int_l): Handle big endian.
29194 (vec_interleave_highv4hi): Handle big endian.
29195 (vec_interleave_highv4hi_be): New.
29196 (vec_interleave_highv4hi_le): New.
29197 (insn_v2int_h): Handle big endian.
29198 (vec_interleave_lowv4hi): Handle big endian.
29199 (vec_interleave_lowv4hi_be): New.
29200 (vec_interleave_lowv4hi_le): New.
29201 (insn_v2int_l): Handle big endian.
29202 (vec_interleave_highv2si): Handle big endian.
29203 (vec_interleave_highv2si_be): New.
29204 (vec_interleave_highv2si_le): New.
29205 (insn_v4int_h): Handle big endian.
29206 (vec_interleave_lowv2si): Handle big endian.
29207 (vec_interleave_lowv2si_be): New.
29208 (vec_interleave_lowv2si_le): New.
29209 (insn_v4int_l): Handle big endian.
29210 * config/tilegx/tilegx.opt (mbig-endian): New option.
29211 (mlittle-endian): New option.
29212 * doc/install.texi: Document tilegxbe-linux.
29213 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29215 2014-02-24 Martin Jambor <mjambor@suse.cz>
29218 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29219 there are no parameter descriptors.
29221 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
29223 PR rtl-optimization/60268
29224 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29225 initialization to ...
29226 (sched_rgn_init): ... here.
29227 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29229 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29231 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29234 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29236 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29239 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29241 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29242 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29244 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29246 * config/microblaze/predicates.md: Add cmp_op predicate.
29247 * config/microblaze/microblaze.md: Add branch_compare instruction
29248 which uses cmp_op predicate and emits cmp insn before branch.
29249 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29250 to microblaze_expand_conditional_branch and consolidate logic.
29251 (microblaze_expand_conditional_branch): emit branch_compare
29252 insn instead of handling cmp op separate from branch insn.
29254 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29256 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29259 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29261 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29262 define_insn with define_expand and new define_insn
29263 *altivec_lve<VI_char>x_internal.
29264 (altivec_stve<VI_char>x): Replace define_insn with define_expand
29265 and new define_insn *altivec_stve<VI_char>x_internal.
29266 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29268 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29270 (altivec_expand_stvex_be): New function.
29272 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
29274 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29275 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29276 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29277 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29279 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
29282 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29283 instead of emit_move_insn.
29285 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29287 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29288 vspltw with vsldoi.
29289 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29290 gen_altivec_vsumsws.
29292 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29294 * config/rs6000/altivec.md (altivec_lvxl): Rename as
29295 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29296 (altivec_lvxl_<mode>): New define_expand incorporating
29297 -maltivec=be semantics where needed.
29298 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29299 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29300 semantics where needed.
29301 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29302 (altivec_stvx_<mode>): New define_expand incorporating
29303 -maltivec=be semantics where needed.
29304 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29305 VM2 iterator instead of V4SI.
29306 (altivec_stvxl_<mode>): New define_expand incorporating
29307 -maltivec=be semantics where needed.
29308 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29309 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29310 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29311 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29312 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29313 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29314 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29315 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29316 ALTIVEC_BUILTIN_STVXL.
29317 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29318 (altivec_expand_stvx_be): Likewise.
29319 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29320 (altivec_expand_lvx_be): Likewise.
29321 (altivec_expand_stvx_be): Likewise.
29322 (altivec_expand_builtin): Add cases for
29323 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29324 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29325 (altivec_init_builtins): Add definitions for
29326 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29327 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29329 2014-02-21 Catherine Moore <clm@codesourcery.com>
29331 * doc/invoke.texi (mvirt, mno-virt): Document.
29332 * config/mips/mips.opt (mvirt): New option.
29333 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29335 2014-02-21 Richard Biener <rguenther@suse.de>
29337 PR tree-optimization/60276
29338 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29339 (STMT_VINFO_MIN_NEG_DIST): New macro.
29340 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29341 STMT_VINFO_MIN_NEG_DIST.
29342 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29343 made for negative dependence distances still hold.
29345 2014-02-21 Richard Biener <rguenther@suse.de>
29347 PR middle-end/60291
29348 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29349 DECL_INITIAL for globals not in the current function context.
29351 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29353 PR tree-optimization/56490
29354 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29355 * tree-ssa-uninit.c: Include params.h.
29356 (compute_control_dep_chain): Add num_calls argument, return false
29357 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29358 num_calls to recursive call.
29359 (find_predicates): Change dep_chain into normal array,
29360 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29361 variable and adjust compute_control_dep_chain caller.
29362 (find_def_preds): Likewise.
29364 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
29366 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29367 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29369 2014-02-21 Nick Clifton <nickc@redhat.com>
29371 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29372 (pushhi1): Likewise.
29373 (popqi1): Add mode to pre_dec.
29374 (pophi1): Likewise.
29376 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29378 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29379 mode for mask of V8SFmode permutation.
29381 2014-02-20 Richard Henderson <rth@redhat.com>
29384 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29385 a new pseudo for OLDVAL.
29387 2014-02-20 Jakub Jelinek <jakub@redhat.com>
29390 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29391 gen_reg_rtx if d->testing_p.
29392 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29393 if d->testing_p and we will certainly return true.
29394 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
29397 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
29399 * emit-rtl.c (gen_reg_rtx): Assert that
29400 crtl->emit.regno_pointer_align_length is non-zero.
29402 2014-02-20 Richard Henderson <rth@redhat.com>
29405 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29406 on failure the store back into EXPECT.
29408 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
29409 Sandra Loosemore <sandra@codesourcery.com>
29411 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29412 * config/nios2/nios2.c (nios2_function_profiler): Add
29413 -fPIC (flag_pic == 2) support.
29414 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29415 (nios2_large_offset_p): New function.
29416 (nios2_unspec_reloc_p): Move up position, update to use
29417 nios2_large_offset_p.
29418 (nios2_unspec_address): Remove function.
29419 (nios2_unspec_offset): New function.
29420 (nios2_large_got_address): New function.
29421 (nios2_got_address): Add large offset support.
29422 (nios2_legitimize_tls_address): Update usage of removed and new
29424 (nios2_symbol_binds_local_p): New function.
29425 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29426 (nios2_legitimize_address): Update to use nios2_large_offset_p.
29427 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29428 (nios2_print_operand): Merge H/L processing, add hiadj/lo
29429 processing for (const (unspec ...)).
29430 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29432 2014-02-20 Richard Biener <rguenther@suse.de>
29434 * tree-cfg.c (replace_uses_by): Mark altered BBs before
29435 doing the substitution.
29436 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29438 2014-02-20 Martin Jambor <mjambor@suse.cz>
29441 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29442 info when checking whether lattices are bottom.
29444 2014-02-20 Richard Biener <rguenther@suse.de>
29446 PR middle-end/60221
29447 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29450 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
29453 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29454 parameter specifying the scaling.
29455 (inline_call): Update.
29456 (want_inline_recursively): Guard division by zero.
29457 (recursive_inlining): Update.
29458 * ipa-inline.h (clone_inlined_nodes): Update.
29460 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29463 * config/i386/i386.c (classify_argument): Pass structures of size
29464 64 bytes or less in register.
29466 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29467 Kirill Yukhin <kirill.yukhin@intel.com>
29469 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29470 (_mm_rcp28_round_ss): Ditto.
29471 (_mm_rsqrt28_round_sd): Ditto.
29472 (_mm_rsqrt28_round_ss): Ditto.
29473 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29474 (_mm_rcp14_round_ss): Ditto.
29475 (_mm_rsqrt14_round_sd): Ditto.
29476 (_mm_rsqrt14_round_ss): Ditto.
29477 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29478 the first input operand, get rid of match_dup.
29479 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29481 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29483 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29484 operand as the first input operand, set type attribute.
29485 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29486 Set type attribute.
29487 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29488 operand as the first input operand, set type attribute.
29490 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29492 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29495 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
29498 * config/i386/i386.c (construct_container): Remove TFmode check
29499 for X86_64_INTEGER_CLASS.
29501 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
29504 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29505 only when -Wpsabi is enabled.
29507 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
29510 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29511 passing arrays in registers are the same as for structs, so remove the
29512 special case for them.
29514 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
29516 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29517 destination type, extract only the valid bits if the source type is not
29518 integral and has a different mode.
29520 2014-02-19 Richard Biener <rguenther@suse.de>
29523 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29526 2014-02-19 Richard Biener <rguenther@suse.de>
29529 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29530 (ipa_modify_call_arguments): Emit an argument load explicitely and
29531 preserve virtual SSA form there and for the replacement call.
29532 Do not update SSA form nor free dominance info.
29534 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29536 * ipa.c (function_and_variable_visibility): Also clear WEAK
29537 flag when disolving COMDAT_GROUP.
29539 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29541 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29542 * ipa-prop.c (ipa_set_jf_known_type): Return early when
29543 not devirtualizing.
29544 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29545 do more sanity checks.
29546 (detect_type_change): Return true when giving up early.
29547 (compute_complex_assign_jump_func): Fix type parameter of
29548 ipa_set_ancestor_jf.
29549 (compute_complex_ancestor_jump_func): Likewise.
29550 (update_jump_functions_after_inlining): Fix updating of
29552 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29554 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29556 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29557 inline clones when edge disappears.
29559 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
29562 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29563 Split 64-bit moves into 2 patterns. Do not allow the use of
29564 direct move for TDmode in little endian, since the decimal value
29565 has little endian bytes within a word, but the 64-bit pieces are
29566 ordered in a big endian fashion, and normal subreg's of TDmode are
29568 (mov<mode>_64bit_dm): Likewise.
29569 (movtd_64bit_nodm): Likewise.
29571 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29573 PR tree-optimization/60174
29574 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29575 statement of an SSA_NAME that occurs in an abnormal PHI node.
29577 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29580 * final.c (SEEN_BB): Remove.
29581 (SEEN_NOTE, SEEN_EMITTED): Renumber.
29582 (final_scan_insn): Don't force_source_line on second
29583 NOTE_INSN_BASIC_BLOCK.
29585 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
29588 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29589 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29590 (type_natural_mode): Warn ABI change when %zmm register is not
29591 available for AVX512F vector value passing.
29593 2014-02-18 Kai Tietz <ktietz@redhat.com>
29596 * config/i386/i386.c (ix86_expand_prologue): Use value in
29597 rax register as displacement when restoring %r10 or %rax.
29598 Fix wrong offset when restoring both registers.
29600 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29602 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29603 assertion with conditional return.
29605 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29606 Uros Bizjak <ubizjak@gmail.com>
29609 * config/i386/driver-i386.c (host_detect_local_cpu): If
29610 YMM state is not saved by the OS, also clear has_f16c. Move
29611 CPUID 0x80000001 handling before YMM state saving checking.
29613 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
29615 PR rtl-optimization/58960
29616 * haifa-sched.c (alloc_global_sched_pressure_data): New,
29617 factored out from ...
29618 (sched_init): ... here.
29619 (free_global_sched_pressure_data): New, factored out from ...
29620 (sched_finish): ... here.
29621 * sched-int.h (free_global_sched_pressure_data): Declare.
29622 * sched-rgn.c (nr_regions_initial): New static global.
29623 (haifa_find_rgns): Initialize it.
29624 (schedule_region): Disable sched-pressure for the newly
29627 2014-02-17 Richard Biener <rguenther@suse.de>
29629 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29630 release SSA defs of pattern stmts.
29632 2014-02-17 Richard Biener <rguenther@suse.de>
29634 * tree-inline.c (expand_call_inline): Release the virtual
29635 operand defined by the call we are about to inline.
29637 2014-02-17 Richard Biener <rguenther@suse.de>
29639 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29641 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
29642 Ilya Tocar <ilya.tocar@intel.com>
29644 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29645 arguments order in builtin.
29646 (_mm512_permutexvar_epi64): Ditto.
29647 (_mm512_mask_permutexvar_epi64): Ditto
29648 (_mm512_maskz_permutexvar_epi32): Ditto
29649 (_mm512_permutexvar_epi32): Ditto
29650 (_mm512_mask_permutexvar_epi32): Ditto
29652 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29654 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29655 (p8_vmrgow): Likewise.
29657 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29659 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29662 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29665 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29666 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29667 into 64-bit and 32-bit moves. On 64-bit moves, add support for
29668 using direct move instructions on ISA 2.07. Also adjust
29669 instruction length for 64-bit.
29670 (mov<mode>_64bit, TFmode/TDmode): Likewise.
29671 (mov<mode>_32bit, TFmode/TDmode): Likewise.
29673 2014-02-15 Alan Modra <amodra@gmail.com>
29677 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29678 find_replacement on parts of insn rtl that might be reloaded.
29680 2014-02-15 Richard Biener <rguenther@suse.de>
29682 PR tree-optimization/60183
29683 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29684 (tree_ssa_phiprop): Calculate and free post-dominators.
29686 2014-02-14 Jeff Law <law@redhat.com>
29688 PR rtl-optimization/60131
29689 * ree.c (get_extended_src_reg): New function.
29690 (combine_reaching_defs): Use it rather than assuming location of REG.
29691 (find_and_remove_re): Verify first operand of extension is
29692 a REG before adding the insns to the copy list.
29694 2014-02-14 Roland McGrath <mcgrathr@google.com>
29696 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29697 * configure: Regenerated.
29698 * config.in: Regenerated.
29699 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29700 instead of ASM_SHORT.
29702 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
29703 Richard Earnshaw <rearnsha@arm.com>
29705 PR rtl-optimization/59535
29706 * lra-constraints.c (process_alt_operands): Encourage alternative
29707 when unassigned pseudo class is superset of the alternative class.
29708 (inherit_reload_reg): Don't inherit when optimizing for code size.
29709 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29710 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29711 modes not less than 4 for Thumb1.
29713 2014-02-14 Kyle McMartin <kyle@redhat.com>
29716 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29718 2014-02-14 Richard Biener <rguenther@suse.de>
29720 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29721 (get_frame_arg): Drop the assert with langhook types_compatible_p.
29722 Do not strip INDIRECT_REFs.
29724 2014-02-14 Richard Biener <rguenther@suse.de>
29727 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29728 DECL_FUNCTION_SPECIFIC_TARGET.
29729 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29730 * tree-streamer-out.c (pack_ts_target_option): Remove.
29731 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29732 (write_ts_function_decl_tree_pointers): Do not stream
29733 DECL_FUNCTION_SPECIFIC_TARGET.
29734 * tree-streamer-in.c (unpack_ts_target_option): Remove.
29735 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29736 (lto_input_ts_function_decl_tree_pointers): Do not stream
29737 DECL_FUNCTION_SPECIFIC_TARGET.
29739 2014-02-14 Jakub Jelinek <jakub@redhat.com>
29741 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29742 (get_initial_def_for_induction, vectorizable_induction): Ignore
29743 debug stmts when looking for exit_phi.
29744 (vectorizable_live_operation): Fix up condition.
29746 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29748 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29749 nreverse() because it changes the content of original tree list.
29751 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29753 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29754 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29756 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29758 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29759 GNU coding standards.
29761 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29764 * dwarf2out.c (gen_subprogram_die): Don't call
29765 add_calling_convention_attribute if subr_die is old_die.
29767 2014-02-13 Sharad Singhai <singhai@google.com>
29769 * doc/optinfo.texi: Fix order of nodes.
29771 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
29773 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29774 operands[2], not operands[3].
29776 2014-02-13 Richard Biener <rguenther@suse.de>
29779 * doc/install.texi (ISL): Update recommended version to 0.12.2,
29780 mention the possibility of an in-tree build.
29781 (CLooG): Update recommended version to 0.18.1, mention the
29782 possibility of an in-tree build and clarify that the ISL
29783 bundled with CLooG does not work.
29785 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29788 * expr.c (compress_float_constant): If x is a hard register,
29789 extend into a pseudo and then move to x.
29791 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
29793 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29794 caused by bad second argument to warning_at() with -mhotpatch and
29795 nested functions (e.g. with gfortran).
29797 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
29799 * opts.c (option_name): Remove "enabled by default" rider.
29801 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
29803 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29805 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
29806 Uros Bizjak <ubizjak@gmail.com>
29809 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29810 * configure: Regenerated.
29812 2014-02-12 Richard Biener <rguenther@suse.de>
29814 * vec.c (vec_prefix::calculate_allocation): Move as
29815 inline variant to vec.h.
29816 (vec_prefix::calculate_allocation_1): New out-of-line version.
29817 * vec.h (vec_prefix::calculate_allocation_1): Declare.
29818 (vec_prefix::m_has_auto_buf): Rename to ...
29819 (vec_prefix::m_using_auto_storage): ... this.
29820 (vec_prefix::calculate_allocation): Inline the easy cases
29821 and dispatch to calculate_allocation_1 which doesn't need the
29823 (va_heap::reserve): Use gcc_checking_assert.
29824 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29825 m_using_auto_storage.
29826 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29828 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29829 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29830 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29832 2014-02-12 Richard Biener <rguenther@suse.de>
29834 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29835 when we found a dependence.
29837 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
29839 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29841 (maybe_fold_stmt): ... into this new function.
29842 * omp-low.c (lower_omp): Update comment.
29844 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29847 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29850 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
29852 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29853 identifiers in comments.
29854 (cortexa53_extra_costs): Likewise.
29855 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29856 (cortexa7_extra_costs): Likewise.
29857 (cortexa12_extra_costs): Likewise.
29858 (cortexa15_extra_costs): Likewise.
29859 (v7m_extra_costs): Likewise.
29861 2014-02-12 Richard Biener <rguenther@suse.de>
29863 PR middle-end/60092
29864 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29865 of posix_memalign being successful.
29866 (lower_stmt): Restrict lowering of posix_memalign to when
29867 -ftree-bit-ccp is enabled.
29869 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29871 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29873 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29875 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
29877 PR rtl-optimization/60116
29878 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29879 other_insn once the combination has been validated.
29881 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
29884 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29886 * ipa-devirt.c: Include demangle.h
29887 (odr_violation_reported): New static variable.
29888 (add_type_duplicate): Update odr_violations.
29889 (maybe_record_node): Add completep parameter; update it.
29890 (record_target_from_binfo): Add COMPLETEP parameter;
29891 update it as needed.
29892 (possible_polymorphic_call_targets_1): Likewise.
29893 (struct polymorphic_call_target_d): Add nonconstruction_targets;
29894 rename FINAL to COMPLETE.
29895 (record_targets_from_bases): Sanity check we found the binfo;
29896 fix COMPLETEP updating.
29897 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29898 parameter, fix computing of COMPLETEP.
29899 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29900 at LTO time do demangling.
29901 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29902 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29904 (gimple_get_virt_method_for_binfo): Likewise.
29905 * gimple-fold.h (gimple_get_virt_method_for_binfo,
29906 gimple_get_virt_method_for_vtable): Update prototypes.
29908 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
29911 * genautomata.c (add_presence_absence): Fix typo with
29912 {final_}presence_list.
29914 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29917 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29918 for VSX/Altivec vectors that land in GPR registers.
29920 2014-02-11 Richard Henderson <rth@redhat.com>
29921 Jakub Jelinek <jakub@redhat.com>
29924 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29925 around drhs if type conversion to lacc->type is not useless.
29927 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29929 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29931 (cortex-a57.cortex-a53): Likewise.
29932 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29934 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29936 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29939 2014-02-11 Renlin Li <Renlin.Li@arm.com>
29941 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29942 add_options_for_arm_vfp3.
29944 2014-02-11 Jeff Law <law@redhat.com>
29946 PR middle-end/54041
29947 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29948 object with an undesirable mode.
29950 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29953 * config/i386/sol2-9.h: New file.
29954 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29955 *-*-solaris2.9*): Use it.
29957 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29959 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29960 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29962 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29964 * config/microblaze/microblaze.c: Extend mcpu version format
29966 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
29968 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29970 2014-02-10 Richard Henderson <rth@redhat.com>
29973 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29974 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29975 ms-abi vs -mno-accumulate-outgoing-args.
29976 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29977 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29980 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
29982 PR middle-end/60080
29983 * cfgexpand.c (expand_asm_operands): Attach source location to
29984 ASM_INPUT rtx objects.
29985 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29987 2014-02-10 Nick Clifton <nickc@redhat.com>
29989 * config/mn10300/mn10300.c (popcount): New function.
29990 (mn10300_expand_prologue): Include saved registers in stack usage
29993 2014-02-10 Jeff Law <law@redhat.com>
29995 PR middle-end/52306
29996 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29997 when changing the SET_DEST of a prior insn to avoid an input reload.
29999 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30001 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
30002 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
30003 -mcall-openbsd, or -mcall-linux.
30004 (CC1_ENDIAN_BIG_SPEC): Remove.
30005 (CC1_ENDIAN_LITTLE_SPEC): Remove.
30006 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30007 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
30008 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
30009 and %cc1_endian_default.
30010 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30012 2014-02-10 Richard Biener <rguenther@suse.de>
30014 PR tree-optimization/60115
30015 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
30016 MEM_REF handling. Properly verify that the accesses are not
30017 out of the objects bound.
30019 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30021 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30024 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
30026 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30027 proper constants and fix formatting.
30028 (possible_polymorphic_call_targets): Fix formatting.
30030 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
30031 Ilya Tocar <ilya.tocar@intel.com>
30033 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30034 (_mm512_loadu_epi32): Renamed into...
30035 (_mm512_loadu_si512): This.
30036 (_mm512_storeu_epi32): Renamed into...
30037 (_mm512_storeu_si512): This.
30038 (_mm512_maskz_ceil_ps): Removed.
30039 (_mm512_maskz_ceil_pd): Ditto.
30040 (_mm512_maskz_floor_ps): Ditto.
30041 (_mm512_maskz_floor_pd): Ditto.
30042 (_mm512_floor_round_ps): Ditto.
30043 (_mm512_floor_round_pd): Ditto.
30044 (_mm512_ceil_round_ps): Ditto.
30045 (_mm512_ceil_round_pd): Ditto.
30046 (_mm512_mask_floor_round_ps): Ditto.
30047 (_mm512_mask_floor_round_pd): Ditto.
30048 (_mm512_mask_ceil_round_ps): Ditto.
30049 (_mm512_mask_ceil_round_pd): Ditto.
30050 (_mm512_maskz_floor_round_ps): Ditto.
30051 (_mm512_maskz_floor_round_pd): Ditto.
30052 (_mm512_maskz_ceil_round_ps): Ditto.
30053 (_mm512_maskz_ceil_round_pd): Ditto.
30054 (_mm512_expand_pd): Ditto.
30055 (_mm512_expand_ps): Ditto.
30056 * config/i386/i386.c (ix86_builtins): Remove
30057 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30058 (bdesc_args): Ditto.
30059 * config/i386/predicates.md (const1256_operand): New.
30060 (const_1_to_2_operand): Ditto.
30061 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30062 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30063 (*avx512pf_gatherpf<mode>sf): Ditto.
30064 (avx512pf_gatherpf<mode>df): Ditto.
30065 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30066 (*avx512pf_gatherpf<mode>df): Ditto.
30067 (avx512pf_scatterpf<mode>sf): Ditto.
30068 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30069 (*avx512pf_scatterpf<mode>sf): Ditto.
30070 (avx512pf_scatterpf<mode>df): Ditto.
30071 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30072 (*avx512pf_scatterpf<mode>df): Ditto.
30073 (avx512f_expand<mode>): Removed.
30074 (<shift_insn><mode>3<mask_name>): Change predicate type.
30076 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30078 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30079 not at the end of datarefs vector use ordered_remove to avoid
30080 reordering datarefs vector.
30083 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30084 mark local addressable non-static vars as GOVD_PRIVATE
30085 instead of GOVD_LOCAL.
30086 * omp-low.c (lower_omp_for): Move gimple_bind_vars
30087 and BLOCK_VARS of gimple_bind_block to new_stmt rather
30090 PR middle-end/60092
30091 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30092 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30093 assume_aligned or alloc_align attributes.
30094 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30095 arguments. Handle also assume_aligned and alloc_align attributes.
30096 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
30097 calls to functions with assume_aligned or alloc_align attributes.
30098 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30100 2014-02-08 Terry Guo <terry.guo@arm.com>
30102 * doc/invoke.texi: Document ARM -march=armv7e-m.
30104 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30106 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30107 flag on __cilkrts_rethrow builtin.
30110 * ipa-cp.c (determine_versionability): Fail at -O0
30111 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30112 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30115 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30118 * tree-inline.c (copy_forbidden): Fail for
30119 __attribute__((optimize (0))) functions.
30121 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30123 * varpool.c: Include pointer-set.h.
30124 (varpool_remove_unreferenced_decls): Variables in other partitions
30125 will not be output; be however careful to not lose information
30126 about partitioning.
30128 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30130 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30131 lookup in the vtable constructor.
30133 2014-02-07 Jeff Law <law@redhat.com>
30136 * config/m68k/m68k.md (ashldi_extsi): Turn into a
30137 define_insn_and_split.
30139 * ipa-inline.c (inline_small_functions): Fix typos.
30141 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30143 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30144 (s390_can_use_return_insn): Declare.
30145 * config/s390/s390.h (EPILOGUE_USES): Define.
30146 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30148 (s390_chunkify_start): Handle return JUMP_LABELs.
30149 (s390_early_mach): Emit a main_pool instruction on the entry edge.
30150 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30151 (s390_can_use_return_insn): New functions.
30152 (s390_fix_long_loop_prediction): Handle conditional returns.
30153 (TARGET_SET_UP_BY_PROLOGUE): Define.
30154 * config/s390/s390.md (ANY_RETURN): New code iterator.
30155 (*creturn, *csimple_return, return, simple_return): New patterns.
30157 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30159 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30160 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
30161 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
30162 REG_CFA_RESTORE list when deciding not to restore a register.
30164 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30166 * config/s390/s390.c: Include tree-pass.h and context.h.
30167 (s390_early_mach): New function, split out from...
30168 (s390_emit_prologue): ...here.
30169 (pass_data_s390_early_mach): New pass structure.
30170 (pass_s390_early_mach): New class.
30171 (s390_option_override): Create and register early_mach pass.
30172 Move to end of file.
30174 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30176 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30177 to match for the exit block.
30179 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30181 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30182 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30183 Reject misaligned operands.
30185 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30187 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30189 2014-02-07 Richard Biener <rguenther@suse.de>
30191 PR middle-end/60092
30192 * gimple-low.c (lower_builtin_posix_memalign): New function.
30193 (lower_stmt): Call it to lower posix_memalign in a way
30194 to make alignment info accessible.
30196 2014-02-07 Jakub Jelinek <jakub@redhat.com>
30199 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30200 __builtin_setjmp_receiver.
30202 2014-02-07 Richard Biener <rguenther@suse.de>
30204 PR middle-end/60092
30205 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30206 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30207 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30208 Handle BUILT_IN_POSIX_MEMALIGN.
30209 (find_func_clobbers): Likewise.
30210 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30211 (call_may_clobber_ref_p_1): Likewise.
30213 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30216 * ipa-devirt.c (record_target_from_binfo): Remove overactive
30219 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30222 * lto-cgraph.c (lto_output_node): Use
30223 symtab_get_symbol_partitioning_class.
30224 (lto_output_varpool_node): likewise.
30225 (symtab_get_symbol_partitioning_class): Move here from
30226 lto/lto-partition.c
30227 * cgraph.h (symbol_partitioning_class): Likewise.
30228 (symtab_get_symbol_partitioning_class): Declare.
30230 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30232 * ggc.h (ggc_internal_cleared_alloc): New macro.
30233 * vec.h (vec_safe_copy): Handle memory stats.
30234 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30235 * target-globals.c (save_target_globals): Likewise.
30237 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30240 * expr.c (emit_move_resolve_push): Export; be bit more selective
30241 on when to clear alias set.
30242 * expr.h (emit_move_resolve_push): Declare.
30243 * function.h (struct function): Add tail_call_marked.
30244 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30245 * config/i386/i386-protos.h (ix86_expand_push): Remove.
30246 * config/i386/i386.md (TImode move expander): De not call
30248 (FP push expanders): Preserve memory attributes.
30249 * config/i386/sse.md (push<mode>1): Remove.
30250 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30251 (ix86_expand_push): Remove.
30252 * config/i386/mmx.md (push<mode>1): Remove.
30254 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30256 PR rtl-optimization/60030
30257 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30258 lopart with paradoxical subreg before shifting it up by hprec.
30260 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30262 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30263 Remove extra newline at end of file.
30264 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30265 (arm_issue_rate): Handle cortexa57.
30266 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30267 (cortex-a57.cortex-a53): Likewise.
30269 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30272 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30273 don't record in REG_FRAME_RELATED_EXPR registers not set in that
30275 (arm_expand_prologue): Adjust all callers.
30276 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30277 info, registers also at the lowest numbered registers side. Use
30278 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30282 * var-tracking.c (adjust_mems): Before adding a SET to
30283 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30285 2014-02-06 Alan Modra <amodra@gmail.com>
30288 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30289 change SDmode to DDmode when lra_in_progress.
30291 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30293 PR middle-end/59150
30294 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30295 free_data_ref on the dr first, and before goto again also set dr
30296 to the next dr. For simd_lane_access, free old datarefs[i] before
30297 overwriting it. For get_vectype_for_scalar_type failure, don't
30298 free_data_ref if simd_lane_access.
30300 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30303 * tree.h (opts_for_fn): New inline function.
30304 (opt_for_fn): Define.
30305 * config/i386/i386.c (ix86_function_regparm): Use
30306 opt_for_fn (decl, optimize) instead of optimize.
30308 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
30310 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30311 for SYMBOL_REF in large memory model.
30313 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30315 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30316 and crypto support.
30317 (cortex-a57): Likewise.
30318 (cortex-a57.cortex-a53): Likewise.
30320 2014-02-06 Yury Gribov <y.gribov@samsung.com>
30321 Kugan Vivekanandarajah <kuganv@linaro.org>
30323 * config/arm/arm.c (arm_vector_alignment_reachable): Check
30325 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30327 2014-02-06 Richard Biener <rguenther@suse.de>
30329 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30330 set_loop_copy and initialize_original_copy_tables.
30332 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
30334 * config/aarch64/aarch64-simd.md
30335 (aarch64_ashr_simddi): Change QI to SI.
30337 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30338 Jakub Jelinek <jakub@redhat.com>
30340 PR middle-end/60013
30341 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30344 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30346 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30347 CODE_FOR_altivec_vpku[hw]um to
30348 CODE_FOR_altivec_vpku[hw]um_direct.
30349 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30350 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30351 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30352 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30354 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30356 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30357 generation for -maltivec=be.
30358 (altivec_vsumsws): Simplify redundant test.
30360 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30362 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30363 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30364 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30365 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30366 gen_altivec_vpkuwum.
30367 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30369 (altivec_vpks<VI_char>ss): Likewise.
30370 (altivec_vpks<VI_char>us): Likewise.
30371 (altivec_vpku<VI_char>us): Likewise.
30372 (altivec_vpku<VI_char>um): Likewise.
30373 (altivec_vpku<VI_char>um_direct): New (copy of
30374 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30376 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30377 target is little endian and -maltivec=be is not specified.
30378 (*altivec_vupkhs<VU_char>_direct): New (copy of
30379 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30380 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30381 target is little endian and -maltivec=be is not specified.
30382 (*altivec_vupkls<VU_char>_direct): New (copy of
30383 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30384 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30385 little endian and -maltivec=be is not specified.
30386 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30387 little endian and -maltivec=be is not specified.
30389 2014-02-05 Richard Henderson <rth@redhat.com>
30392 * combine-stack-adj.c: Revert r206943.
30393 * sched-int.h (struct deps_desc): Add last_args_size.
30394 * sched-deps.c (init_deps): Initialize it.
30395 (sched_analyze_insn): Add OUTPUT dependencies between insns that
30396 contain REG_ARGS_SIZE notes.
30398 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30400 * lto-cgraph.c (asm_nodes_output): Make global.
30401 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30402 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30403 (driver_handle_option): Handle OPT_fwpa.
30405 2014-02-05 Jakub Jelinek <jakub@redhat.com>
30408 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30409 a comment typo and formatting issue. If odr_hash hasn't been
30410 created, return vNULL and set *completep to false.
30412 PR middle-end/57499
30413 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30414 bb with no successors.
30416 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
30419 * doc/invoke.texi (-march): Clarify documentation for ARM.
30420 (-mtune): Likewise.
30423 2014-02-05 Richard Biener <rguenther@suse.de>
30425 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30426 when not vectorizing because of too many alias checks.
30427 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30428 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30430 2014-02-05 Nick Clifton <nickc@redhat.com>
30432 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30433 accept extended registers in any mode when compiling for the MN10300.
30435 2014-02-05 Yury Gribov <y.gribov@samsung.com>
30437 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30438 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30439 sanitization attributes.
30440 (can_inline_edge_p): Likewise.
30441 (sanitize_attrs_match_for_inline_p): New function.
30443 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30445 * ipa-prop.c (detect_type_change): Shor circuit testing of
30446 type changes on THIS pointer.
30448 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
30451 * config/pa/pa.c (legitimize_tls_address): Return original address
30452 if not passed a SYMBOL_REF rtx.
30453 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30455 (pa_emit_move_sequence): Simplify TLS source operands.
30456 (pa_legitimate_constant_p): Reject all TLS constants.
30457 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30458 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30460 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30462 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30463 groups when we know they are controlled by LTO.
30464 * varasm.c (default_binds_local_p_1): If object is in other partition,
30465 it will be resolved locally.
30467 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30469 * config/host-linux.c (linux_gt_pch_use_address): Don't
30470 use SSIZE_MAX because it is not always defined.
30472 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
30475 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30476 threshold for pseudo splitting.
30477 (update_ebb_live_info): Process call argument hard registers and
30478 hard registers from insn definition too.
30479 (max_small_class_regs_num): New constant.
30480 (inherit_in_ebb): Update live hard regs through EBBs. Update
30481 reloads_num only for small register classes. Don't split for
30484 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
30487 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30490 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30492 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30493 visibility is safe.
30495 2014-02-04 Marek Polacek <polacek@redhat.com>
30497 * gdbinit.in (pel): Define.
30499 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30501 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30504 2014-02-04 Richard Biener <rguenther@suse.de>
30507 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30508 in function context local.
30509 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30510 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30511 similar to LTO_imported_decl_ref.
30513 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30515 PR tree-optimization/60002
30516 * cgraphclones.c (build_function_decl_skip_args): Clear
30517 DECL_LANG_SPECIFIC.
30519 PR tree-optimization/60023
30520 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30521 false to gsi_replace.
30522 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30523 has been in some EH region and vec_stmt could throw, add
30524 vec_stmt into the same EH region.
30525 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30526 has no lhs, ignore it.
30527 * internal-fn.c (expand_MASK_LOAD): Likewise.
30530 * tree-inline.c (copy_forbidden): Fail for
30531 __attribute__((optimize (0))) functions.
30534 * omp-low.c (simd_clone_struct_copy): If from->inbranch
30535 is set, copy one less argument.
30536 (expand_simd_clones): Don't subtract clone_info->inbranch
30537 from simd_clone_struct_alloc argument.
30539 PR rtl-optimization/57915
30540 * recog.c (simplify_while_replacing): If all unary/binary/relational
30541 operation arguments are constant, attempt to simplify those.
30543 PR middle-end/59261
30544 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30545 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30547 2014-02-04 Richard Biener <rguenther@suse.de>
30549 PR tree-optimization/60012
30550 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30551 TBAA disambiguation to all DDRs.
30553 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30556 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30557 (LINK_SPEC): Use it for -shared, -shared-libgcc.
30559 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30562 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30564 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30566 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30567 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30569 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30572 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30573 to figure out targets of polymorphic calls with known decl.
30574 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30575 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30576 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30577 (get_polymorphic_call_info): ... here.
30578 (get_polymorphic_call_info_from_invariant): New function.
30580 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30582 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30583 lookup via vtable pointer; check for type consistency
30584 and turn inconsitent facts into UNREACHABLE.
30585 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30586 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30587 type inconsistent querries; return UNREACHABLE instead.
30589 2014-02-03 Richard Henderson <rth@twiddle.net>
30592 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30593 already processed this node.
30594 (normalize_one_pred_1): Pass along mark_set.
30595 (normalize_one_pred): Create and destroy a pointer_set_t.
30596 (normalize_one_pred_chain): Likewise.
30598 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
30600 PR gcov-profile/58602
30601 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30603 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30606 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30607 -fno-devirtualize; try to devirtualize by the knowledge of
30608 virtual table pointer given by aggregate propagation.
30609 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30610 (ipa_print_node_jump_functions): Dump also offset that
30611 is relevant for polymorphic calls.
30612 (determine_known_aggregate_parts): Add arg_type parameter; use it
30613 instead of determining the type from pointer type.
30614 (ipa_compute_jump_functions_for_edge): Update call of
30615 determine_known_aggregate_parts.
30616 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30617 (gimple_get_virt_method_for_binfo): ... here; simplify using
30618 vtable_pointer_value_to_vtable.
30619 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30620 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30621 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30622 (vtable_pointer_value_to_vtable): Break out from ...; handle also
30624 (vtable_pointer_value_to_binfo): ... here.
30625 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30627 2014-02-03 Teresa Johnson <tejohnson@google.com>
30629 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30630 redef of outer loop index variable.
30632 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
30636 * doc/extend.texi (Function Attributes): Typo.
30638 2014-02-03 Cong Hou <congh@google.com>
30640 PR tree-optimization/60000
30641 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30642 if the vectorized statement is a store. A store statement can only
30643 appear at the end of pattern statements.
30645 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30647 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30648 (ix86_option_override_internal): Default long double to 64-bit for
30649 32-bit Bionic and to 128-bit for 64-bit Bionic.
30651 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30652 TARGET_LONG_DOUBLE_128 is true.
30653 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30655 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30656 (mlong-double-64): Negate -mlong-double-128.
30657 (mlong-double-128): New option.
30659 * config/i386/i386-c.c (ix86_target_macros): Define
30660 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30662 * doc/invoke.texi: Document -mlong-double-128.
30664 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30666 PR rtl-optimization/60024
30667 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30669 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
30671 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30673 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30675 PR rtl-optimization/57662
30676 * sel-sched.c (code_motion_path_driver): Do not mark already not
30677 existing blocks in the visiting bitmap.
30679 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30681 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30682 on the insn being emitted.
30684 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
30685 Will Deacon <will.deacon@arm.com>
30687 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30689 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30691 * config/arm/arm-tables.opt: Regenerate.
30693 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30695 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30696 for vector types other than V16QImode.
30697 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30698 define_expand, and call altivec_expand_vec_perm_le when producing
30699 code with little endian element order.
30700 (*altivec_vperm_<mode>_internal): New insn having previous
30701 behavior of altivec_vperm_<mode>.
30702 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30703 altivec_expand_vec_perm_le when producing code with little endian
30705 (*altivec_vperm_<mode>_uns_internal): New insn having previous
30706 behavior of altivec_vperm_<mode>_uns.
30708 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30710 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30711 (altivec_vsumsws): Add handling for -maltivec=be with a little
30713 (altivec_vsumsws_direct): New.
30714 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30715 gen_altivec_vsumsws.
30717 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30719 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30720 vtable_pointer_value_to_binfo): New functions.
30721 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30722 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30724 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
30726 * config/nios2/nios2.md (load_got_register): Initialize GOT
30727 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30728 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30730 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30732 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30733 preserverd by passthrough, do not propagate the type.
30735 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30737 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30738 (mips_atomic_assign_expand_fenv): New function.
30739 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30741 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30743 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30744 (__builtin_mips_set_fcsr): Likewise.
30745 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30746 MIPS_USI_FTYPE_VOID.
30747 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30748 (mips16_expand_set_fcsr): Likewise.
30749 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30750 (mips16_set_fcsr_stub): Likewise.
30751 (mips16_get_fcsr_one_only_stub): New class.
30752 (mips16_set_fcsr_one_only_stub): Likewise.
30753 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30754 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30755 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30756 (hard_float): New availability predicate.
30757 (mips_builtins): Add get_fcsr and set_fcsr.
30758 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30759 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30760 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30761 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30762 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30765 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30767 * config/mips/mips.c (mips_one_only_stub): New class.
30768 (mips_need_mips16_rdhwr_p): Replace with...
30769 (mips16_rdhwr_stub): ...this new variable.
30770 (mips16_stub_call_address): New function.
30771 (mips16_rdhwr_one_only_stub): New class.
30772 (mips_expand_thread_pointer): Use mips16_stub_call_address.
30773 (mips_output_mips16_rdhwr): Delete.
30774 (mips_finish_stub): New function.
30775 (mips_code_end): Use it to handle rdhwr stubs.
30777 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
30780 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30781 when calculating size of integer atomic types.
30783 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
30785 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30787 2014-02-01 Jakub Jelinek <jakub@redhat.com>
30789 PR tree-optimization/60003
30790 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30791 * profile.c (branch_prob): Use gimple_call_builtin_p
30792 to check for BUILT_IN_SETJMP_RECEIVER.
30793 * tree-inline.c (copy_bb): Call notice_special_calls.
30795 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
30798 * lra-constraints.c (process_alt_operands): Update reload_sum only
30801 2014-01-31 Richard Henderson <rth@redhat.com>
30803 PR middle-end/60004
30804 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30805 until after else_eh is processed.
30807 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30809 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30810 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30811 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30812 in smmintrin.h, remove them.
30813 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30814 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30815 * config/i386/i386.md (ROUND_SAE): Fix value.
30816 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30817 (const48_operand): New.
30818 * config/i386/subst.md (round), (round_expand): Use
30819 const_4_or_8_to_11_operand.
30820 (round_saeonly), (round_saeonly_expand): Use const48_operand.
30822 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30824 * config/i386/constraints.md (Yk): Swap meaning with k.
30825 * config/i386/i386.md (movhi_internal): Change Yk to k.
30826 (movqi_internal): Ditto.
30827 (*k<logic><mode>): Ditto.
30830 (kandn<mode>): Ditto.
30831 (*<code>hi_1): Ditto.
30832 (*<code>qi_1): Ditto.
30833 (kxnor<mode>): Ditto.
30834 (kortestzhi): Ditto.
30835 (kortestchi): Ditto.
30837 (*one_cmplhi2_1): Ditto.
30838 (*one_cmplqi2_1): Ditto.
30839 * config/i386/sse.md (): Change k to Yk.
30840 (avx512f_load<mode>_mask): Ditto.
30841 (avx512f_blendm<mode>): Ditto.
30842 (avx512f_store<mode>_mask): Ditto.
30843 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30844 (avx512f_storedqu<mode>_mask): Ditto.
30845 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30847 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30848 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30849 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30850 (avx512f_maskcmp<mode>3): Ditto.
30851 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30852 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30853 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30854 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30855 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30856 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30857 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30858 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30859 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30860 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30861 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30862 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30863 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30864 (vec_extract_lo_<mode>_maskm): Ditto.
30865 (vec_extract_hi_<mode>_maskm): Ditto.
30866 (avx512f_vternlog<mode>_mask): Ditto.
30867 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30868 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30869 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30870 (avx512f_<code>v8div16qi2_mask): Ditto.
30871 (avx512f_<code>v8div16qi2_mask_store): Ditto.
30872 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30873 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30874 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30875 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30876 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30877 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30878 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30879 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30880 (avx512cd_maskb_vec_dupv8di): Ditto.
30881 (avx512cd_maskw_vec_dupv16si): Ditto.
30882 (avx512f_vpermi2var<mode>3_maskz): Ditto.
30883 (avx512f_vpermi2var<mode>3_mask): Ditto.
30884 (avx512f_vpermi2var<mode>3_mask): Ditto.
30885 (avx512f_vpermt2var<mode>3_maskz): Ditto.
30886 (*avx512f_gathersi<mode>): Ditto.
30887 (*avx512f_gathersi<mode>_2): Ditto.
30888 (*avx512f_gatherdi<mode>): Ditto.
30889 (*avx512f_gatherdi<mode>_2): Ditto.
30890 (*avx512f_scattersi<mode>): Ditto.
30891 (*avx512f_scatterdi<mode>): Ditto.
30892 (avx512f_compress<mode>_mask): Ditto.
30893 (avx512f_compressstore<mode>_mask): Ditto.
30894 (avx512f_expand<mode>_mask): Ditto.
30895 * config/i386/subst.md (mask): Change k to Yk.
30896 (mask_scalar_merge): Ditto.
30899 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
30901 * doc/extend.texi (Vector Extensions): Document ?: in C++.
30903 2014-01-31 Richard Biener <rguenther@suse.de>
30905 PR middle-end/59990
30906 * builtins.c (fold_builtin_memory_op): Make sure to not
30907 use a floating-point mode or a boolean or enumeral type for
30908 the copy operation.
30910 2014-01-30 DJ Delorie <dj@redhat.com>
30912 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30913 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30914 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30915 whenever main() has an epilogue.
30917 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30919 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30920 unused variable "field".
30921 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30922 (vsx_mergeh_<mode>): Likewise.
30923 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30924 (altivec_vmrghh): Likewise.
30925 (altivec_vmrghw): Likewise.
30926 (altivec_vmrglb): Likewise.
30927 (altivec_vmrglh): Likewise.
30928 (altivec_vmrglw): Likewise.
30929 (altivec_vspltb): Add missing uses.
30930 (altivec_vsplth): Likewise.
30931 (altivec_vspltw): Likewise.
30932 (altivec_vspltsf): Likewise.
30934 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30937 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30938 frame related instructions.
30940 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
30942 PR rtl-optimization/59959
30943 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30944 any reload of register whose subreg is invalid.
30946 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30948 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30949 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30950 Add missing return type - void.
30952 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30954 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30955 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30956 remove element index adjustment for endian (now handled in vsx.md
30958 (altivec_expand_vec_perm_const): Use
30959 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30960 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30961 (vsx_xxspltw_<mode>): Adjust element index for little endian.
30962 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30963 define_expand and a new define_insn *altivec_vspltb_internal;
30964 adjust for -maltivec=be on a little endian target.
30965 (altivec_vspltb_direct): New.
30966 (altivec_vsplth): Divide into a define_expand and a new
30967 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30968 little endian target.
30969 (altivec_vsplth_direct): New.
30970 (altivec_vspltw): Divide into a define_expand and a new
30971 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30972 little endian target.
30973 (altivec_vspltw_direct): New.
30974 (altivec_vspltsf): Divide into a define_expand and a new
30975 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30976 a little endian target.
30978 2014-01-30 Richard Biener <rguenther@suse.de>
30980 PR tree-optimization/59993
30981 * tree-ssa-forwprop.c (associate_pointerplus): Check we
30982 can propagate form the earlier stmt and avoid the transform
30983 when the intermediate result is needed.
30985 2014-01-30 Alangi Derick <alangiderick@gmail.com>
30987 * README.Portability: Fix typo.
30989 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
30991 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30992 comparison_operator with ordered_comparison_operator.
30994 2014-01-30 Nick Clifton <nickc@redhat.com>
30996 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30997 Rename to mn10300_store_multiple_regs.
30998 * config/mn10300/mn10300.c: Likewise.
30999 * config/mn10300/mn10300.md (store_movm): Fix typo: call
31000 store_multiple_regs.
31001 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
31002 Call mn10300_store_multiple_regs.
31004 2014-01-30 Nick Clifton <nickc@redhat.com>
31005 DJ Delorie <dj@redhat.com>
31007 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
31008 %fp 2 to keep registers after it properly word-aligned.
31009 (rl78_alloc_physical_registers_umul): Handle the case where both
31010 input operands are the same.
31012 2014-01-30 Richard Biener <rguenther@suse.de>
31014 PR tree-optimization/59903
31015 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
31018 2014-01-30 Jason Merrill <jason@redhat.com>
31021 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31024 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31026 2014-01-30 Richard Biener <rguenther@suse.de>
31028 PR tree-optimization/59951
31029 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31031 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
31034 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31035 SFmode to DFmode case.
31037 2014-01-29 DJ Delorie <dj@redhat.com>
31039 * config/msp430/msp430.opt (-minrt): New.
31040 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31042 (ENDFILE_SPEC): Likewise.
31044 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
31046 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31047 (estimate_function_body_sizes): Use it.
31049 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
31052 * dwarf2out.c (is_cxx_auto): New.
31053 (is_base_type): Use it.
31054 (gen_type_die_with_usage): Likewise.
31056 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31058 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
31059 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31060 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31061 -maltivec=be with LE targets.
31062 (vsx_mergeh_<mode>): Likewise.
31063 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31064 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31065 (altivec_vmrghb): Replace with define_expand and new
31066 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31067 (altivec_vmrghb_direct): New define_insn.
31068 (altivec_vmrghh): Replace with define_expand and new
31069 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31070 (altivec_vmrghh_direct): New define_insn.
31071 (altivec_vmrghw): Replace with define_expand and new
31072 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31073 (altivec_vmrghw_direct): New define_insn.
31074 (*altivec_vmrghsf): Adjust for endianness.
31075 (altivec_vmrglb): Replace with define_expand and new
31076 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31077 (altivec_vmrglb_direct): New define_insn.
31078 (altivec_vmrglh): Replace with define_expand and new
31079 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31080 (altivec_vmrglh_direct): New define_insn.
31081 (altivec_vmrglw): Replace with define_expand and new
31082 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31083 (altivec_vmrglw_direct): New define_insn.
31084 (*altivec_vmrglsf): Adjust for endianness.
31085 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31086 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31087 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31088 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31089 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31090 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31091 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31092 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31094 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
31096 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31097 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31100 2014-01-29 Richard Biener <rguenther@suse.de>
31102 PR tree-optimization/58742
31103 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31104 associate_pointerplus_align.
31105 (associate_pointerplus_diff): New function.
31106 (associate_pointerplus): Likewise. Call associate_pointerplus_align
31107 and associate_pointerplus_diff.
31109 2014-01-29 Richard Biener <rguenther@suse.de>
31111 * lto-streamer.h (LTO_major_version): Bump to 3.
31112 (LTO_minor_version): Reset to 0.
31114 2014-01-29 Renlin Li <Renlin.Li@arm.com>
31116 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31117 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31118 (arm_file_start): Generate correct asm header for armv7ve.
31119 * config/arm/bpabi.h: Add multilib support for armv7ve.
31120 * config/arm/driver-arm.c: Change the architectures of cortex-a7
31121 and cortex-a15 to armv7ve.
31122 * config/arm/t-aprofile: Add multilib support for armv7ve.
31123 * doc/invoke.texi: Document -march=armv7ve.
31125 2014-01-29 Richard Biener <rguenther@suse.de>
31127 PR tree-optimization/58742
31128 * tree-ssa-forwprop.c (associate_plusminus): Return true
31129 if we changed sth, defer EH cleanup to ...
31130 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
31131 (simplify_mult): New function.
31133 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31135 PR middle-end/59917
31136 PR tree-optimization/59920
31137 * tree.c (build_common_builtin_nodes): Remove
31138 __builtin_setjmp_dispatcher initialization.
31139 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31140 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31141 instead of gsi_after_labels + manually skipping debug stmts.
31142 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31143 ignore bbs with IFN_ABNORMAL_DISPATCHER.
31144 * tree-inline.c (copy_edges_for_bb): Remove
31145 can_make_abnormal_goto argument, instead add abnormal_goto_dest
31146 argument. Ignore computed_goto_p stmts. Don't call
31147 make_abnormal_goto_edges. If a call might need abnormal edges
31148 for non-local gotos, see if it already has an edge to
31149 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31150 with true argument, don't do anything then, otherwise add
31151 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31152 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31154 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31155 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31156 (lower_stmt): Don't set data->calls_builtin_setjmp.
31157 (lower_builtin_setjmp): Adjust comment.
31158 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31159 * tree-cfg.c (found_computed_goto): Remove.
31160 (factor_computed_gotos): Remove.
31161 (make_goto_expr_edges): Return bool, true for computed gotos.
31162 Don't call make_abnormal_goto_edges.
31163 (build_gimple_cfg): Don't set found_computed_goto, don't call
31164 factor_computed_gotos.
31165 (computed_goto_p): No longer static.
31166 (make_blocks): Don't set found_computed_goto.
31167 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31168 (make_edges): If make_goto_expr_edges returns true, push bb
31169 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31170 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31171 vector. Record mapping between bbs and OpenMP regions if there
31172 are any, adjust make_gimple_omp_edges caller. Call
31173 handle_abnormal_edges.
31174 (make_abnormal_goto_edges): Remove.
31175 * tree-cfg.h (make_abnormal_goto_edges): Remove.
31176 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31177 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31178 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31179 * internal-fn.def (ABNORMAL_DISPATCHER): New.
31180 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31181 filling *region also set *region_idx to (*region)->entry->index.
31184 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31185 For REGs set ORIGINAL_REGNO.
31187 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
31189 * doc/md.texi: Mention that a target shouldn't implement
31190 vec_widen_(s|u)mul_even/odd pair if it is less efficient
31193 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31195 PR tree-optimization/59594
31196 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31197 a copy of the datarefs vector rather than the vector itself.
31199 2014-01-28 Jason Merrill <jason@redhat.com>
31202 * dwarf2out.c (auto_die): New static.
31203 (gen_type_die_with_usage): Handle C++1y 'auto'.
31204 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31207 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
31210 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31211 (SPEC_X32): Likewise.
31212 (SPEC_64): Likewise.
31213 * config/i386/i386.c (ix86_option_override_internal): Turn off
31214 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31216 (x86_file_start): Output .code16gcc for TARGET_16BIT.
31217 * config/i386/i386.h (TARGET_16BIT): New macro.
31218 (TARGET_16BIT_P): Likewise.
31219 * config/i386/i386.opt: Add m16.
31220 * doc/invoke.texi: Document -m16.
31222 2014-01-28 Jakub Jelinek <jakub@redhat.com>
31224 PR preprocessor/59935
31225 * input.c (location_get_source_line): Bail out on when line number
31226 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31228 2014-01-28 Richard Biener <rguenther@suse.de>
31230 PR tree-optimization/58742
31231 * tree-ssa-forwprop.c (associate_plusminus): Handle
31232 pointer subtraction of the form (T)(P + A) - (T)P.
31234 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31236 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31239 2014-01-28 Richard Biener <rguenther@suse.de>
31242 2014-01-28 Richard Biener <rguenther@suse.de>
31244 PR rtl-optimization/45364
31245 PR rtl-optimization/59890
31246 * var-tracking.c (local_get_addr_clear_given_value): Handle
31247 already cleared slot.
31248 (val_reset): Handle not allocated local_get_addr_cache.
31249 (vt_find_locations): Use post-order on the inverted CFG.
31251 2014-01-28 Richard Biener <rguenther@suse.de>
31253 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31255 2014-01-28 Richard Biener <rguenther@suse.de>
31257 PR rtl-optimization/45364
31258 PR rtl-optimization/59890
31259 * var-tracking.c (local_get_addr_clear_given_value): Handle
31260 already cleared slot.
31261 (val_reset): Handle not allocated local_get_addr_cache.
31262 (vt_find_locations): Use post-order on the inverted CFG.
31264 2014-01-28 Alan Modra <amodra@gmail.com>
31266 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31267 * configure.ac <recursive call for build != host>: Define
31268 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31269 and LD_FOR_BUILD too.
31270 * configure: Regenerate.
31272 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
31274 * config/i386/i386.c (get_builtin_code_for_version): Separate
31275 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31276 Broadwell from Haswell.
31278 2014-01-27 Steve Ellcey <sellcey@mips.com>
31280 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31281 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31282 * config/mips/mips.c (mips_option_override): Change setting
31284 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31285 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31286 Change from Mask to Var.
31288 2014-01-27 Jeff Law <law@redhat.com>
31290 * ipa-inline.c (inline_small_functions): Fix typo.
31292 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
31294 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31295 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31296 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31297 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31298 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31299 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31300 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31301 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31302 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31303 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31304 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31305 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31306 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31307 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31308 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31309 (_mm512_storeu_epi64): Ditto.
31310 (_mm512_cmpge_epi32_mask): Ditto.
31311 (_mm512_cmpge_epu32_mask): Ditto.
31312 (_mm512_cmpge_epi64_mask): Ditto.
31313 (_mm512_cmpge_epu64_mask): Ditto.
31314 (_mm512_cmple_epi32_mask): Ditto.
31315 (_mm512_cmple_epu32_mask): Ditto.
31316 (_mm512_cmple_epi64_mask): Ditto.
31317 (_mm512_cmple_epu64_mask): Ditto.
31318 (_mm512_cmplt_epi32_mask): Ditto.
31319 (_mm512_cmplt_epu32_mask): Ditto.
31320 (_mm512_cmplt_epi64_mask): Ditto.
31321 (_mm512_cmplt_epu64_mask): Ditto.
31322 (_mm512_cmpneq_epi32_mask): Ditto.
31323 (_mm512_cmpneq_epu32_mask): Ditto.
31324 (_mm512_cmpneq_epi64_mask): Ditto.
31325 (_mm512_cmpneq_epu64_mask): Ditto.
31326 (_mm512_expand_pd): Ditto.
31327 (_mm512_expand_ps): Ditto.
31328 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31329 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31330 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31331 * config/i386/i386.c (ix86_builtins): Add
31332 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31333 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31334 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31335 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31336 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31337 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31338 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31339 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31340 IX86_BUILTIN_PMOVUSQW512_MEM.
31341 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31342 __builtin_ia32_pmovsqd512mem_mask,
31343 __builtin_ia32_pmovqd512mem_mask,
31344 __builtin_ia32_pmovusqw512mem_mask,
31345 __builtin_ia32_pmovsqw512mem_mask,
31346 __builtin_ia32_pmovqw512mem_mask,
31347 __builtin_ia32_pmovusdw512mem_mask,
31348 __builtin_ia32_pmovsdw512mem_mask,
31349 __builtin_ia32_pmovdw512mem_mask,
31350 __builtin_ia32_pmovqb512mem_mask,
31351 __builtin_ia32_pmovusqb512mem_mask,
31352 __builtin_ia32_pmovsqb512mem_mask,
31353 __builtin_ia32_pmovusdb512mem_mask,
31354 __builtin_ia32_pmovsdb512mem_mask,
31355 __builtin_ia32_pmovdb512mem_mask.
31356 (bdesc_args): Add __builtin_ia32_expanddf512,
31357 __builtin_ia32_expandsf512.
31358 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31359 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31360 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31361 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31362 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31363 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31364 (avx512f_<code>v8div16qi2_mask_store): This.
31365 (avx512f_expand<mode>): New.
31367 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
31369 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31371 (_mm512_mask_prefetch_i64gather_pd): Ditto.
31372 (_mm512_prefetch_i32scatter_pd): Ditto.
31373 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31374 (_mm512_prefetch_i64scatter_pd): Ditto.
31375 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31376 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31377 (_mm512_mask_prefetch_i64gather_ps): Ditto.
31378 (_mm512_prefetch_i32scatter_ps): Ditto.
31379 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31380 (_mm512_prefetch_i64scatter_ps): Ditto.
31381 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31382 * config/i386/i386-builtin-types.def: Define
31383 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31384 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31385 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31386 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31387 IX86_BUILTIN_SCATTERPFQPD.
31388 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31389 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31390 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31391 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31392 __builtin_ia32_scatterpfqps.
31393 (ix86_expand_builtin): Expand new built-ins.
31394 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31395 fix memory access data type.
31396 (*avx512pf_gatherpf<mode>_mask): Ditto.
31397 (*avx512pf_gatherpf<mode>): Ditto.
31398 (avx512pf_scatterpf<mode>): Ditto.
31399 (*avx512pf_scatterpf<mode>_mask): Ditto.
31400 (*avx512pf_scatterpf<mode>): Ditto.
31401 (GATHER_SCATTER_SF_MEM_MODE): New.
31402 (avx512pf_gatherpf<mode>df): Ditto.
31403 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31404 (*avx512pf_scatterpf<mode>df): Ditto.
31406 2014-01-27 Jakub Jelinek <jakub@redhat.com>
31409 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31410 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31413 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31415 * common/config/arm/arm-common.c
31416 (arm_rewrite_mcpu): Handle multiple names.
31418 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31420 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31422 * gimple-builder.h (create_gimple_tmp): Delete.
31424 2014-01-27 Christian Bruel <christian.bruel@st.com>
31426 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31429 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
31431 * config/pa/pa.md (call): Generate indirect long calls to non-local
31432 functions when outputing 32-bit code.
31433 (call_value): Likewise except for special call to buggy powf function.
31435 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31436 portable runtime and PIC indirect calls.
31437 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31438 and PIC call sequences. Use ldo instead of blr to set return register
31439 in PIC call sequence.
31441 2014-01-25 Walter Lee <walt@tilera.com>
31443 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31444 avoid clobbering a live register.
31446 2014-01-25 Walter Lee <walt@tilera.com>
31448 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31449 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31450 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31451 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31453 2014-01-25 Walter Lee <walt@tilera.com>
31455 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31456 arguments on even registers.
31457 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31459 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31460 (BIGGEST_ALIGNMENT): Ditto.
31461 (BIGGEST_FIELD_ALIGNMENT): Ditto.
31463 2014-01-25 Walter Lee <walt@tilera.com>
31465 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31466 insns before bundling.
31467 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31469 2014-01-25 Walter Lee <walt@tilera.com>
31471 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31472 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31473 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31475 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31477 * config/mips/constraints.md (kl): Delete.
31478 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31479 define expands, using...
31480 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31481 instructions for MIPS16.
31482 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31483 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31485 2014-01-25 Walter Lee <walt@tilera.com>
31487 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31491 2014-01-25 Walter Lee <walt@tilera.com>
31493 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31494 (TARGET_EXPAND_TO_RTL_HOOK): Define.
31496 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31498 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31501 2014-01-25 Jakub Jelinek <jakub@redhat.com>
31503 * print-rtl.c (in_call_function_usage): New var.
31504 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31505 EXPR_LIST mode as mode and not as reg note name.
31507 PR middle-end/59561
31508 * cfgloopmanip.c (copy_loop_info): If
31509 loop->warned_aggressive_loop_optimizations, make sure
31510 the flag is set in target loop too.
31512 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
31514 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31516 * builtins.def: Likewise.
31517 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31518 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31519 * ira.c (ira_setup_eliminable_regset): Likewise.
31520 * omp-low.c (gate_expand_omp): Likewise.
31521 (execute_lower_omp): Likewise.
31522 (diagnose_sb_0): Likewise.
31523 (gate_diagnose_omp_blocks): Likewise.
31524 (simd_clone_clauses_extract): Likewise.
31527 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31529 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31530 correction for little endian...
31531 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31534 2014-01-24 Jeff Law <law@redhat.com>
31536 PR tree-optimization/59919
31537 * tree-vrp.c (find_assert_locations_1): Do not register asserts
31538 for non-returning calls.
31540 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
31542 * common/config/aarch64/aarch64-common.c
31543 (aarch64_rewrite_mcpu): Handle multiple names.
31544 * config/aarch64/aarch64.h
31545 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31547 2014-01-24 Dodji Seketeli <dodji@redhat.com>
31549 * input.c (add_file_to_cache_tab): Handle the case where fopen
31552 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
31555 * config/i386/i386.md (pushsf splitter): Get stack adjustment
31556 from push operand if code of push isn't PRE_DEC.
31558 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
31561 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31562 -mquad-memory-atomic. Update -mquad-memory documentation to say
31563 it is only used for non-atomic loads/stores.
31565 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31566 -mquad-memory or -mquad-memory-atomic switches.
31568 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31569 -mquad-memory-atomic to ISA 2.07 support.
31571 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31572 to separate support of normal quad word memory operations (ldq, stq)
31573 from the atomic quad word memory operations.
31575 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31576 support to separate non-atomic quad word operations from atomic
31577 quad word operations. Disable non-atomic quad word operations in
31578 little endian mode so that we don't have to swap words after the
31579 load and before the store.
31580 (quad_load_store_p): Add comment about atomic quad word support.
31581 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31582 options printed with -mdebug=reg.
31584 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31585 -mquad-memory-atomic as the test for whether we have quad word
31586 atomic instructions.
31587 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31588 or -mp8-vector are used, allow byte/half-word atomic operations.
31590 * config/rs6000/sync.md (load_lockedti): Insure that the address
31591 is a proper indexed or indirect address for the lqarx instruction.
31592 On little endian systems, swap the hi/lo registers after the lqarx
31594 (load_lockedpti): Use indexed_or_indirect_operand predicate to
31595 insure the address is valid for the lqarx instruction.
31596 (store_conditionalti): Insure that the address is a proper indexed
31597 or indirect address for the stqcrx. instruction. On little endian
31598 systems, swap the hi/lo registers before doing the stqcrx.
31600 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31601 insure the address is valid for the stqcrx. instruction.
31603 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31604 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31605 type of quad memory support is available.
31607 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
31609 PR regression/59915
31610 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31611 there is a danger of looping.
31613 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
31615 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31616 force flag_ira_loop_pressure if set via command line.
31618 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31620 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31621 (ashr_simd): New builtin handling DI mode.
31622 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31623 (aarch64_sshr_simddi): New match pattern.
31624 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31625 (vshrd_n_s64): Likewise.
31626 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31628 2014-01-23 Nick Clifton <nickc@redhat.com>
31630 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31631 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31632 favour of mcu specific scripts.
31633 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31636 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31637 Alex Velenko <Alex.Velenko@arm.com>
31639 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31640 (vaddv_s16): Likewise.
31641 (vaddv_s32): Likewise.
31642 (vaddv_u8): Likewise.
31643 (vaddv_u16): Likewise.
31644 (vaddv_u32): Likewise.
31645 (vaddvq_s8): Likewise.
31646 (vaddvq_s16): Likewise.
31647 (vaddvq_s32): Likewise.
31648 (vaddvq_s64): Likewise.
31649 (vaddvq_u8): Likewise.
31650 (vaddvq_u16): Likewise.
31651 (vaddvq_u32): Likewise.
31652 (vaddvq_u64): Likewise.
31653 (vaddv_f32): Likewise.
31654 (vaddvq_f32): Likewise.
31655 (vaddvq_f64): Likewise.
31656 (vmaxv_f32): Likewise.
31657 (vmaxv_s8): Likewise.
31658 (vmaxv_s16): Likewise.
31659 (vmaxv_s32): Likewise.
31660 (vmaxv_u8): Likewise.
31661 (vmaxv_u16): Likewise.
31662 (vmaxv_u32): Likewise.
31663 (vmaxvq_f32): Likewise.
31664 (vmaxvq_f64): Likewise.
31665 (vmaxvq_s8): Likewise.
31666 (vmaxvq_s16): Likewise.
31667 (vmaxvq_s32): Likewise.
31668 (vmaxvq_u8): Likewise.
31669 (vmaxvq_u16): Likewise.
31670 (vmaxvq_u32): Likewise.
31671 (vmaxnmv_f32): Likewise.
31672 (vmaxnmvq_f32): Likewise.
31673 (vmaxnmvq_f64): Likewise.
31674 (vminv_f32): Likewise.
31675 (vminv_s8): Likewise.
31676 (vminv_s16): Likewise.
31677 (vminv_s32): Likewise.
31678 (vminv_u8): Likewise.
31679 (vminv_u16): Likewise.
31680 (vminv_u32): Likewise.
31681 (vminvq_f32): Likewise.
31682 (vminvq_f64): Likewise.
31683 (vminvq_s8): Likewise.
31684 (vminvq_s16): Likewise.
31685 (vminvq_s32): Likewise.
31686 (vminvq_u8): Likewise.
31687 (vminvq_u16): Likewise.
31688 (vminvq_u32): Likewise.
31689 (vminnmv_f32): Likewise.
31690 (vminnmvq_f32): Likewise.
31691 (vminnmvq_f64): Likewise.
31693 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31695 * config/aarch64/aarch64-simd.md
31696 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31697 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31698 (*aarch64_mul3_elt<mode>): Likewise.
31699 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31700 (*aarch64_mul3_elt_to_64v2df): Likewise.
31701 (*aarch64_mla_elt<mode>): Likewise.
31702 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31703 (*aarch64_mls_elt<mode>): Likewise.
31704 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31705 (*aarch64_fma4_elt<mode>): Likewise.
31706 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31707 (*aarch64_fma4_elt_to_64v2df): Likewise.
31708 (*aarch64_fnma4_elt<mode>): Likewise.
31709 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31710 (*aarch64_fnma4_elt_to_64v2df): Likewise.
31711 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31712 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31713 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31714 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31715 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31716 (aarch64_sqdmull_lane<mode>_internal): Likewise.
31717 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31719 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
31721 * config/aarch64/aarch64-simd.md
31722 (aarch64_be_checked_get_lane<mode>): New define_expand.
31723 * config/aarch64/aarch64-simd-builtins.def
31724 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31725 New builtin definition.
31726 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31727 Use new safe be builtin.
31729 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31731 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31733 (aarch64_be_st1<mode>): Likewise.
31734 (aarch_ld1<VALL:mode>): Define_expand modified.
31735 (aarch_st1<VALL:mode>): Likewise.
31736 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31737 (UNSPEC_ST1): Likewise.
31739 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
31741 * config/microblaze/microblaze.md: Add trap insn and attribute
31743 2014-01-23 Dodji Seketeli <dodji@redhat.com>
31745 PR preprocessor/58580
31746 * input.h (location_get_source_line): Take an additional line_size
31748 (void diagnostics_file_cache_fini): Declare new function.
31749 * input.c (struct fcache): New type.
31750 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31751 New static constants.
31752 (diagnostic_file_cache_init, total_lines_num)
31753 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31754 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31755 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31756 (get_next_line, read_next_line, goto_next_line, read_line_num):
31757 New static function definitions.
31758 (diagnostic_file_cache_fini): New function.
31759 (location_get_source_line): Take an additional output line_len
31760 parameter. Re-write using lookup_or_add_file_to_cache_tab and
31762 * diagnostic.c (diagnostic_finish): Call
31763 diagnostic_file_cache_fini.
31764 (adjust_line): Take an additional input parameter for the length
31765 of the line, rather than calculating it with strlen.
31766 (diagnostic_show_locus): Adjust the use of
31767 location_get_source_line and adjust_line with respect to their new
31768 signature. While displaying a line now, do not stop at the first
31769 null byte. Rather, display the zero byte as a space and keep
31770 going until we reach the size of the line.
31771 * Makefile.in: Add vec.o to OBJS-libcommon
31773 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31774 Ilya Tocar <ilya.tocar@intel.com>
31776 * config/i386/avx512fintrin.h (_mm512_kmov): New.
31777 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31778 (__builtin_ia32_kmov16): Ditto.
31779 * config/i386/i386.md (UNSPEC_KMOV): New.
31782 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31784 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31785 (_mm512_storeu_si512): Ditto.
31787 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
31790 * rtl.h (get_referenced_operands): Declare.
31791 * recog.c (get_referenced_operands): New function.
31792 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31793 operands have been referenced when recording LO_SUM references.
31795 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
31797 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31799 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31801 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31802 Enable for generic and recent AMD targets.
31804 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31806 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31807 ARG_SIZE note when adjustment was eliminated.
31809 2014-01-22 Jeff Law <law@redhat.com>
31811 PR tree-optimization/59597
31812 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31813 in file. Accept new argument REGISTERING and use it to modify
31814 dump output appropriately.
31815 (register_jump_thread): Corresponding changes.
31816 (mark_threaded_blocks): Reinstate code to cancel unprofitable
31817 thread paths involving joiner blocks. Add code to dump cancelled
31818 jump threading paths.
31820 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
31822 PR rtl-optimization/59477
31823 * lra-constraints.c (inherit_in_ebb): Process call for living hard
31824 regs. Update reloads_num and potential_reload_hard_regs for all insns.
31826 2014-01-22 Tom Tromey <tromey@redhat.com>
31828 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31830 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31832 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31834 PR rtl-optimization/59896
31835 * lra-constraints.c (process_alt_operands): Check unused note for
31836 matched operands of insn with no output reloads.
31838 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
31840 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31841 (mips_move_from_gpr_cost): Likewise.
31843 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31845 PR rtl-optimization/59858
31846 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31847 ira_class_hard_regs_num.
31848 (process_alt_operands): Increase reject for dying matched operand.
31850 2014-01-21 Jakub Jelinek <jakub@redhat.com>
31853 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31854 smaller than size, perform several stores or loads and stores
31855 at dst + count - size to store or copy all of size bytes, rather
31856 than just last modesize bytes.
31858 2014-01-20 DJ Delorie <dj@redhat.com>
31860 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31861 that CLOBBERs are REGs before propogating their values.
31863 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
31865 PR middle-end/59789
31866 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31867 (cgraph_inline_failed_type): New function.
31868 * cgraph.h (DEFCIFCODE): Add type.
31869 (cgraph_inline_failed_type_t): New enum.
31870 (cgraph_inline_failed_type): New prototype.
31871 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31872 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31873 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31874 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31875 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31876 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31877 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31878 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31879 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31880 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31881 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31882 OPTIMIZATION_MISMATCH.
31883 * tree-inline.c (expand_call_inline): Emit errors during
31884 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31886 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31889 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31890 mode attribute in insn output.
31892 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
31894 * output.h (output_constant): Delete.
31895 * varasm.c (output_constant): Make private.
31897 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
31899 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31901 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31903 PR middle-end/59860
31904 * tree.h (fold_builtin_strcat): New prototype.
31905 * builtins.c (fold_builtin_strcat): No longer static. Add len
31906 argument, if non-NULL, don't call c_strlen. Optimize
31907 directly into __builtin_memcpy instead of __builtin_strcpy.
31908 (fold_builtin_2): Adjust fold_builtin_strcat caller.
31909 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31911 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31913 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31914 for SImode_address_operand operands, having only a REG argument.
31916 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
31918 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31919 loader name using mbig-endian.
31920 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31922 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31924 * doc/invoke.texi (-march): Clarify documentation for AArch64.
31925 (-mtune): Likewise.
31928 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
31930 * config/aarch64/aarch64-protos.h
31931 (aarch64_cannot_change_mode_class_ptr): Declare.
31932 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31933 aarch64_cannot_change_mode_class_ptr): New.
31934 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31935 backend hook aarch64_cannot_change_mode_class.
31937 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31939 * common/config/aarch64/aarch64-common.c
31940 (aarch64_handle_option): Don't handle any option order logic here.
31941 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31942 selected_cpu, warn on architecture version mismatch.
31943 (aarch64_override_options): Fix parsing order for option strings.
31945 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31946 Iain Sandoe <iain@codesourcery.com>
31949 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31950 warning. Amend comment to reflect current functionality.
31952 2014-01-20 Richard Biener <rguenther@suse.de>
31954 PR middle-end/59860
31955 * builtins.c (fold_builtin_strcat): Remove case better handled
31956 by tree-ssa-strlen.c.
31958 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
31960 * config/aarch64/aarch64.opt
31961 (mcpu, march, mtune): Make case-insensitive.
31963 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31966 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31967 if operands[1] is a REG or ZERO_EXTEND of a REG.
31969 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
31971 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31973 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
31975 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31976 long non-pic millicode calls.
31978 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31980 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31982 2014-01-19 Kito Cheng <kito@0xlab.org>
31984 * builtins.c (expand_movstr): Check movstr expand done or fail.
31986 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31987 H.J. Lu <hongjiu.lu@intel.com>
31990 * config/i386/i386.md (*lea<mode>): Zero-extend return register
31991 to DImode for zero-extended addresses.
31993 2014-01-19 Jakub Jelinek <jakub@redhat.com>
31995 PR rtl-optimization/57763
31996 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31997 on the new indirect jump_insn and increment LABEL_NUSES (label).
31999 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
32003 * config.gcc (x86_archs): New variable.
32004 (x86_64_archs): Likewise.
32005 (x86_cpus): Likewise.
32006 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
32007 --with-arch/--with-cpu= options.
32008 Support --with-arch=/--with-cpu={nehalem,westmere,
32009 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
32011 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
32013 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
32014 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
32016 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
32018 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32020 2014-01-18 Jakub Jelinek <jakub@redhat.com>
32023 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32024 clear cpp_get_options (parse_in)->warn_unused_macros for
32025 ix86_target_macros_internal with cpp_define.
32027 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
32029 * jump.c (delete_related_insns): Keep (use (insn))s.
32030 * reorg.c (redundant_insn): Check for barriers too.
32032 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32034 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32036 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
32038 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32039 call to $$dyncall when TARGET_LONG_CALLS is true.
32041 2014-01-17 Jeff Law <law@redhat.com>
32043 * ree.c (combine_set_extension): Temporarily disable test for
32044 changing number of hard registers.
32046 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32048 PR middle-end/58125
32049 * ipa-inline-analysis.c (inline_free_summary):
32050 Do not free summary of aliases.
32052 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32054 PR middle-end/59706
32055 * gimplify.c (gimplify_expr): Use create_tmp_var
32056 instead of create_tmp_var_raw. If cond doesn't have
32057 integral type, don't add the IFN_ANNOTATE builtin at all.
32059 2014-01-17 Martin Jambor <mjambor@suse.cz>
32062 * ipa-cp.c (prev_edge_clone): New variable.
32063 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32064 Also resize prev_edge_clone vector.
32065 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32066 (ipcp_edge_removal_hook): New function.
32067 (ipcp_driver): Register ipcp_edge_removal_hook.
32069 2014-01-17 Andrew Pinski <apinski@cavium.com>
32070 Steve Ellcey <sellcey@mips.com>
32073 * config/mips/mips.c (mips_print_operand): Check operand mode instead
32076 2014-01-17 Jeff Law <law@redhat.com>
32078 PR middle-end/57904
32079 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32080 so that pass_ccp runs first.
32082 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32084 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32085 (ix86_adjust_cost): Use !TARGET_XXX.
32086 (do_reorder_for_imul): Likewise.
32087 (swap_top_of_ready_list): Likewise.
32088 (ix86_sched_reorder): Likewise.
32090 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32092 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32093 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
32094 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
32095 (intel_memset): New. Duplicate slm_memset.
32096 (intel_cost): New. Duplicate slm_cost.
32097 (m_INTEL): New macro.
32098 (processor_target_table): Add "intel".
32099 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32100 with PROCESSOR_INTEL for "intel".
32101 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
32102 PROCESSOR_SILVERMONT.
32103 (ix86_issue_rate): Likewise.
32104 (ix86_adjust_cost): Likewise.
32105 (ia32_multipass_dfa_lookahead): Likewise.
32106 (swap_top_of_ready_list): Likewise.
32107 (ix86_sched_reorder): Likewise.
32108 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32109 instead of TARGET_OPT_AGU.
32110 * config/i386/i386.h (TARGET_INTEL): New.
32111 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32112 (processor_type): Add PROCESSOR_INTEL.
32113 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32114 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32116 2014-01-17 Marek Polacek <polacek@redhat.com>
32119 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32122 2014-01-17 Richard Biener <rguenther@suse.de>
32124 PR tree-optimization/46590
32125 * opts.c (default_options_table): Add entries for
32126 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32127 all enabled at -O1 but not for -Og.
32128 * common.opt (fbranch-count-reg): Remove Init(1).
32129 (fmove-loop-invariants): Likewise.
32130 (ftree-pta): Likewise.
32132 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32134 * config/i386/i386.c (ix86_data_alignment): For compatibility with
32135 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32136 decls to at least the GCC 4.8 used alignments.
32139 * tree-nested.c (convert_nonlocal_reference_stmt,
32140 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32141 of GIMPLE_BIND stmts, adjust associated decls.
32143 2014-01-17 Richard Biener <rguenther@suse.de>
32145 PR tree-optimization/46590
32146 * vec.h (vec<>::bseach): New member function implementing
32147 binary search according to C89 bsearch.
32148 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32149 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32150 bitmap pointer again. Make accesses_in_loop a flat array.
32151 (mem_ref_obstack): New global.
32152 (outermost_indep_loop): Adjust for mem_ref->stored changes.
32153 (mark_ref_stored): Likewise.
32154 (ref_indep_loop_p_2): Likewise.
32155 (set_ref_stored_in_loop): New helper function.
32156 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32157 (memref_free): Adjust.
32158 (record_mem_ref_loc): Simplify.
32159 (gather_mem_refs_stmt): Adjust.
32160 (sort_locs_in_loop_postorder_cmp): New function.
32161 (analyze_memory_references): Sort accesses_in_loop after
32162 loop postorder number.
32163 (find_ref_loc_in_loop_cmp): New function.
32164 (for_all_locs_in_loop): Find relevant cluster of locs in
32165 accesses_in_loop and iterate without recursion.
32166 (execute_sm): Avoid uninit warning.
32167 (struct ref_always_accessed): Simplify.
32168 (ref_always_accessed::operator ()): Likewise.
32169 (ref_always_accessed_p): Likewise.
32170 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32171 loop postorder numbers here.
32172 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32175 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32178 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32179 on decls for which assemble_alias has been called.
32181 2014-01-17 Nick Clifton <nickc@redhat.com>
32183 * config/msp430/msp430.opt: (mcpu): New option.
32184 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32185 (msp430_option_override): Parse target_cpu. If the MCU name
32186 matches a generic string, clear target_mcu.
32187 (msp430_attr): Allow numeric interrupt values up to 63.
32188 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32189 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32191 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32193 * config/msp430/msp430.md (popm): Use %J rather than %I.
32194 (addsi3): Use msp430_nonimmediate_operand for operand 2.
32195 (addhi_cy_i): Use immediate_operand for operand 2.
32196 * doc/invoke.texi: Document -mcpu option.
32198 2014-01-17 Richard Biener <rguenther@suse.de>
32200 PR rtl-optimization/38518
32201 * df.h (df_analyze_loop): Declare.
32202 * df-core.c: Include cfgloop.h.
32203 (df_analyze_1): Split out main part of df_analyze.
32204 (df_analyze): Adjust.
32205 (loop_inverted_post_order_compute): New function.
32206 (loop_post_order_compute): Likewise.
32207 (df_analyze_loop): New function avoiding whole-function
32208 postorder computes.
32209 * loop-invariant.c (find_defs): Use df_analyze_loop.
32210 (find_invariants): Adjust.
32211 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32213 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
32215 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32216 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32218 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32220 * ipa-ref.c (ipa_remove_stmt_references): Fix references
32221 traversal when removing references.
32223 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
32226 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32228 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
32230 PR middle-end/56791
32231 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32232 pushing a reload for an autoinc when we had previously reloaded an
32233 inner part of the address.
32235 2014-01-16 Jakub Jelinek <jakub@redhat.com>
32237 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32239 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32240 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32241 when not giving up or versioning for alias only because of
32243 (vect_analyze_data_ref_dependences): Set to true.
32244 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32246 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32247 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32250 PR middle-end/58344
32251 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32254 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32255 operand 0 predicate for gathers, use a new pseudo as subtarget.
32257 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32259 PR middle-end/59609
32260 * lra-constraints.c (process_alt_operands): Add printing debug info.
32261 Check absence of input/output reloads for matched operands too.
32263 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32265 PR rtl-optimization/59835
32266 * ira.c (ira_init_register_move_cost): Increase cost for
32269 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
32271 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32273 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
32276 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32277 non-register objects. Use gen_(high/low)part more consistently.
32280 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
32283 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32284 endian support, remove tests for WORDS_BIG_ENDIAN.
32285 (p8_mfvsrd_3_<mode>): Likewise.
32286 (reload_gpr_from_vsx<mode>): Likewise.
32287 (reload_gpr_from_vsxsf): Likewise.
32288 (p8_mfvsrd_4_disf): Likewise.
32290 2014-01-16 Richard Biener <rguenther@suse.de>
32292 PR rtl-optimization/46590
32293 * lcm.c (compute_antinout_edge): Use postorder iteration.
32294 (compute_laterin): Use inverted postorder iteration.
32296 2014-01-16 Nick Clifton <nickc@redhat.com>
32298 PR middle-end/28865
32299 * varasm.c (output_constant): Return the number of bytes actually
32301 (output_constructor_array_range): Update the field size with the
32302 number of bytes emitted by output_constant.
32303 (output_constructor_regular_field): Likewise. Also do not
32304 complain if the total number of bytes emitted is now greater
32305 than the expected fieldpos.
32306 * output.h (output_constant): Update prototype and descriptive comment.
32308 2014-01-16 Marek Polacek <polacek@redhat.com>
32310 PR middle-end/59827
32311 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32312 it is error_mark_node.
32314 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
32316 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32317 VALID_AVX256_REG_OR_OI_MODE.
32319 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
32321 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32322 current procedure should be profiled.
32324 2014-01-15 Andrew Pinski <apinski@cavium.com>
32326 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32327 of moving from/to the STACK_REG register class.
32329 2014-01-15 Richard Henderson <rth@redhat.com>
32332 * reginfo.c (global_regs_decl): Globalize.
32333 * rtl.h (global_regs_decl): Declare.
32334 * ira.c (do_reload): Diagnose frame_pointer_needed and it
32335 reserved via global_regs.
32337 2014-01-15 Teresa Johnson <tejohnson@google.com>
32339 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32341 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
32343 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32344 and vmulosh rather than call gen_vec_widen_smult_*.
32345 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32346 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32347 (vec_widen_smult_even_v16qi): Likewise.
32348 (vec_widen_umult_even_v8hi): Likewise.
32349 (vec_widen_smult_even_v8hi): Likewise.
32350 (vec_widen_umult_odd_v16qi): Likewise.
32351 (vec_widen_smult_odd_v16qi): Likewise.
32352 (vec_widen_umult_odd_v8hi): Likewise.
32353 (vec_widen_smult_odd_v8hi): Likewise.
32354 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32355 vmuloub rather than call gen_vec_widen_umult_*.
32356 (vec_widen_umult_lo_v16qi): Likewise.
32357 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32358 vmulosb rather than call gen_vec_widen_smult_*.
32359 (vec_widen_smult_lo_v16qi): Likewise.
32360 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32361 rather than call gen_vec_widen_umult_*.
32362 (vec_widen_umult_lo_v8hi): Likewise.
32363 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32364 rather than call gen_vec_widen_smult_*.
32365 (vec_widen_smult_lo_v8hi): Likewise.
32367 2014-01-15 Jeff Law <law@redhat.com>
32369 PR tree-optimization/59747
32370 * ree.c (find_and_remove_re): Properly handle case where a second
32371 eliminated extension requires widening a copy created for elimination
32372 of a prior extension.
32373 (combine_set_extension): Ensure that the number of hard regs needed
32374 for a destination register does not change when we widen it.
32376 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
32378 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32379 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32380 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32381 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32382 (avr-*-rtems*): Likewise.
32383 (bfin*-rtems*): Likewise.
32384 (moxie-*-rtems*): Likewise.
32385 (h8300-*-rtems*): Likewise.
32386 (i[34567]86-*-rtems*): Likewise.
32387 (lm32-*-rtems*): Likewise.
32388 (m32r-*-rtems*): Likewise.
32389 (m68k-*-rtems*): Likewise.
32390 (microblaze*-*-rtems*): Likewise.
32391 (mips*-*-rtems*): Likewise.
32392 (powerpc-*-rtems*): Likewise.
32393 (sh-*-rtems*): Likewise.
32394 (sparc-*-rtems*): Likewise.
32395 (sparc64-*-rtems*): Likewise.
32396 (v850-*-rtems*): Likewise.
32397 (m32c-*-rtems*): Likewise.
32399 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
32401 PR rtl-optimization/59511
32402 * ira.c (ira_init_register_move_cost): Use memory costs for some
32403 cases of register move cost calculations.
32404 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32405 instead of BB frequency.
32406 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32407 * lra-assigns.c (find_hard_regno_for): Ditto.
32409 2014-01-15 Richard Biener <rguenther@suse.de>
32411 PR tree-optimization/59822
32412 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32413 (vectorizable_load): Use it to hoist defs of uses of invariant
32414 loads out of the loop.
32416 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32417 Kugan Vivekanandarajah <kuganv@linaro.org>
32420 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32423 2014-01-15 Richard Biener <rguenther@suse.de>
32425 PR rtl-optimization/59802
32426 * lcm.c (compute_available): Use inverted postorder to seed
32427 the initial worklist.
32429 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32432 * config/s390/s390.c (s390_preferred_reload_class): Don't return
32433 ADDR_REGS for invalid symrefs in non-PIC code.
32435 2014-01-15 Jakub Jelinek <jakub@redhat.com>
32438 * builtins.c (determine_block_size): Initialize *probable_max_size
32439 even if len_rtx is CONST_INT.
32441 2014-01-14 Andrew Pinski <apinski@cavium.com>
32443 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32444 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32445 (cortexa53_tunings): Likewise.
32446 (aarch64_sched_issue_rate): New function.
32447 (TARGET_SCHED_ISSUE_RATE): Define.
32449 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32451 * ira-costs.c (find_costs_and_classes): Add missed
32452 ira_init_register_move_cost_if_necessary.
32454 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32457 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32459 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
32462 * config/i386/i386.c (type_natural_mode): Add a bool parameter
32463 to indicate if type is used for function return value. Warn ABI
32464 change if the vector mode isn't available for function return value.
32465 (ix86_function_arg_advance): Pass false to type_natural_mode.
32466 (ix86_function_arg): Likewise.
32467 (ix86_gimplify_va_arg): Likewise.
32468 (function_arg_32): Don't warn ABI change.
32469 (ix86_function_value): Pass true to type_natural_mode.
32470 (ix86_return_in_memory): Likewise.
32471 (ix86_struct_value_rtx): Removed.
32472 (TARGET_STRUCT_VALUE_RTX): Likewise.
32474 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32476 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32477 converting a conditional jump into a conditional return.
32479 2014-01-14 Richard Biener <rguenther@suse.de>
32481 PR tree-optimization/58921
32482 PR tree-optimization/59006
32483 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32484 hoisting invariant stmts.
32485 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32486 invariant loads on the preheader edge if possible.
32488 2014-01-14 Joey Ye <joey.ye@arm.com>
32490 * doc/plugin.texi (Building GCC plugins): Update to C++.
32492 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
32494 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32495 (_mm_rcp28_round_ss): Ditto.
32496 (_mm_rsqrt28_round_sd): Ditto.
32497 (_mm_rsqrt28_round_ss): Ditto.
32498 (_mm_rcp28_sd): Ditto.
32499 (_mm_rcp28_ss): Ditto.
32500 (_mm_rsqrt28_sd): Ditto.
32501 (_mm_rsqrt28_ss): Ditto.
32502 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32503 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32504 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32505 (IX86_BUILTIN_RCP28SD): Ditto.
32506 (IX86_BUILTIN_RCP28SS): Ditto.
32507 (IX86_BUILTIN_RSQRT28SD): Ditto.
32508 (IX86_BUILTIN_RSQRT28SS): Ditto.
32509 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32510 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32511 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32512 (ix86_expand_special_args_builtin): Expand new FTYPE.
32513 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32514 (srcp14<mode>): Make insn unary.
32515 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32516 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32517 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32518 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32519 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32520 Fix rounding: make it SAE only.
32521 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32523 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32525 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32526 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32527 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32528 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32529 (round_saeonly_mask_scalar_operand4): Ditto.
32530 (round_saeonly_mask_scalar_op3): Ditto.
32531 (round_saeonly_mask_scalar_op4): Ditto.
32533 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32535 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32536 Implement -maltivec=be for vec_insert and vec_extract.
32538 2014-01-10 DJ Delorie <dj@redhat.com>
32540 * config/msp430/msp430.md (call_internal): Don't allow memory
32541 references with SP as the base register.
32542 (call_value_internal): Likewise.
32543 * config/msp430/constraints.md (Yc): New. For memory references
32544 that don't use SP as a base register.
32546 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32547 "an integer without a # prefix"
32548 * config/msp430/msp430.md (epilogue_helper): Use it.
32550 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32553 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32554 AVX512F gather builtins.
32555 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32556 on gather decls with INTEGER_TYPE masktype.
32557 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32558 directly into the builtin rather than hoisting it before loop.
32560 PR tree-optimization/59387
32561 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32562 (scev_const_prop): If folded_casts and type has undefined overflow,
32563 use force_gimple_operand instead of force_gimple_operand_gsi and
32564 for each added stmt if it is assign with
32565 arith_code_with_undefined_signed_overflow, call
32566 rewrite_to_defined_overflow.
32567 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32568 gimple-fold.h instead.
32569 (arith_code_with_undefined_signed_overflow,
32570 rewrite_to_defined_overflow): Moved to ...
32571 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32572 rewrite_to_defined_overflow): ... here. No longer static.
32573 Include gimplify-me.h.
32574 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32575 rewrite_to_defined_overflow): New prototypes.
32577 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32579 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32581 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
32583 * builtins.c (get_object_alignment_2): Minor tweak.
32584 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32586 2014-01-13 Christian Bruel <christian.bruel@st.com>
32588 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32589 optimized non constant lengths.
32591 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32594 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32595 load as __atomic_load_N if possible.
32597 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32599 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32601 (rs6000_expand_builtin): Adjust call.
32603 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32606 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32607 * config/rs6000/rs6000.c: Include target-globals.h.
32608 (rs6000_set_current_function): Instead of doing target_reinit
32609 unconditionally, use save_target_globals_default_opts and
32610 restore_target_globals.
32612 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32614 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32615 (rs6000_expand_builtin): Handle mffs and mtfsf.
32616 (rs6000_init_builtins): Define mffs and mtfsf.
32617 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32618 (rs6000_mffs): New pattern.
32619 (rs6000_mtfsf): New pattern.
32621 2014-01-11 Bin Cheng <bin.cheng@arm.com>
32623 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32624 Start narrowing with START. Apply candidate-use pair
32625 and check overall cost in narrowing.
32626 (iv_ca_prune): Pass new argument.
32628 2014-01-10 Jeff Law <law@redhat.com>
32630 PR middle-end/59743
32631 * ree.c (combine_reaching_defs): Ensure the defining statement
32632 occurs before the extension when optimizing extensions with
32633 different source and destination hard registers.
32635 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32638 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32639 vtables into the type inheritance graph.
32641 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32643 PR rtl-optimization/59754
32644 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32645 modes in the REGNO != REGNO case.
32647 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32649 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32651 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32653 PR tree-optimization/59745
32654 * tree-predcom.c (tree_predictive_commoning_loop): Call
32655 free_affine_expand_cache if giving up because components is NULL.
32657 * target-globals.c (save_target_globals): Allocate < 4KB structs using
32658 GC in payload of target_globals struct instead of allocating them on
32659 the heap and the larger structs separately using GC.
32660 * target-globals.h (struct target_globals): Make regs, hard_regs,
32661 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32662 of GTY((skip)) and change type to void *.
32663 (reset_target_globals): Cast loads from those fields to corresponding
32666 2014-01-10 Steve Ellcey <sellcey@mips.com>
32669 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32670 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32671 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32673 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
32676 * aarch64-modes.def (CC_Zmode): New flags mode.
32677 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32678 represents an equality.
32679 (aarch64_get_condition_code): Handle CC_Zmode.
32680 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32682 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32684 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32685 extraction in good case.
32687 2014-01-10 Richard Biener <rguenther@suse.de>
32689 PR tree-optimization/59374
32690 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32691 checking after SLP discovery. Mark stmts not participating
32692 in any SLP instance properly.
32694 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32696 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32697 when handling a SET rtx.
32699 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32701 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32702 (cortex-a57): Likewise.
32703 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32705 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32707 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32708 non-iwmmxt builtins.
32710 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32714 * ipa-devirt.c record_target_from_binfo): Take as argument
32715 stack of binfos and lookup matching one for virtual inheritance.
32716 (possible_polymorphic_call_targets_1): Update.
32718 2014-01-10 Huacai Chen <chenhc@lemote.com>
32720 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32721 kernel strings for Loongson-2E/2F/3A.
32723 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32725 PR middle-end/59670
32726 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32727 is_gimple_call before calling gimple_call_internal_p.
32729 2014-01-09 Steve Ellcey <sellcey@mips.com>
32731 * Makefile.in (TREE_FLOW_H): Remove.
32732 (TREE_SSA_H): Add file names from tree-flow.h.
32733 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32734 * tree.h: Remove tree-flow.h reference.
32735 * hash-table.h: Remove tree-flow.h reference.
32736 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32737 reference with tree-ssa-loop.h.
32739 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32741 * doc/invoke.texi: Add -maltivec={be,le} options, and document
32742 default element-order behavior for -maltivec.
32743 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32745 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32746 when targeting big endian, at least for now.
32747 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32749 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32751 PR middle-end/47735
32752 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32753 var satisfies use_register_for_decl, just take into account type
32754 alignment, rather than decl alignment.
32756 PR tree-optimization/59622
32757 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
32758 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32759 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32760 Don't devirtualize for inplace at all. For targets.length () == 1,
32761 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32763 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32765 * config/i386/i386.md (cpu): Remove the unused btver1.
32767 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32769 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32771 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32774 * tree-core.h (struct target_globals): New forward declaration.
32775 (struct tree_target_option): Add globals field.
32776 * tree.h (TREE_TARGET_GLOBALS): Define.
32777 (prepare_target_option_nodes_for_pch): New prototype.
32778 * target-globals.h (struct target_globals): Define even if
32779 !SWITCHABLE_TARGET.
32780 * tree.c (prepare_target_option_node_for_pch,
32781 prepare_target_option_nodes_for_pch): New functions.
32782 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32783 * config/i386/i386.c: Include target-globals.h.
32784 (ix86_set_current_function): Instead of doing target_reinit
32785 unconditionally, use save_target_globals_default_opts and
32786 restore_target_globals.
32788 2014-01-09 Richard Biener <rguenther@suse.de>
32790 PR tree-optimization/59715
32791 * tree-cfg.h (split_critical_edges): Declare.
32792 * tree-cfg.c (split_critical_edges): Export.
32793 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32795 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
32797 * cfgexpand.c (expand_stack_vars): Optionally disable
32798 asan stack protection.
32799 (expand_used_vars): Likewise.
32800 (partition_stack_vars): Likewise.
32801 * asan.c (asan_emit_stack_protection): Optionally disable
32802 after return stack usage.
32803 (instrument_derefs): Optionally disable memory access instrumentation.
32804 (instrument_builtin_call): Likewise.
32805 (instrument_strlen_call): Likewise.
32806 (asan_protect_global): Optionally disable global variables protection.
32807 * doc/invoke.texi: Added doc for new options.
32808 * params.def: Added new options.
32809 * params.h: Likewise.
32811 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32813 PR rtl-optimization/59724
32814 * ifcvt.c (cond_exec_process_if_block): Don't call
32815 flow_find_head_matching_sequence with 0 longest_match.
32816 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32817 non-active insns if !stop_after.
32818 (try_head_merge_bb): Revert 2014-01-07 changes.
32820 2014-01-08 Jeff Law <law@redhat.com>
32822 * ree.c (get_sub_rtx): New function, extracted from...
32823 (merge_def_and_ext): Here.
32824 (combine_reaching_defs): Use get_sub_rtx.
32826 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
32828 * cgraph.h (varpool_variable_node): Do not choke on null node.
32830 2014-01-08 Catherine Moore <clm@codesourcery.com>
32832 * config/mips/mips.md (simple_return): Attempt to use JRC
32834 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32836 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32838 PR rtl-optimization/59137
32839 * reorg.c (steal_delay_list_from_target): Call update_block for
32841 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32843 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32845 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32846 two duplicate entries.
32848 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32851 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
32853 * config/mips/mips.c (mips_truncated_op_cost): New function.
32854 (mips_rtx_costs): Adjust test for BADDU.
32855 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32857 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
32859 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32860 (*baddu_si): ...this new pattern.
32862 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32865 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32867 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
32869 PR middle-end/57748
32870 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32872 (expand_expr, expand_normal): Adjust.
32873 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32874 inner_reference_p. Use inner_reference_p to expand inner references.
32875 (store_expr): Adjust.
32876 * cfgexpand.c (expand_call_stmt): Adjust.
32878 2014-01-08 Rong Xu <xur@google.com>
32880 * gcov-io.c (gcov_var): Move from gcov-io.h.
32881 (gcov_position): Ditto.
32882 (gcov_is_error): Ditto.
32883 (gcov_rewrite): Ditto.
32884 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32885 only part to libgcc/libgcov.h.
32887 2014-01-08 Marek Polacek <polacek@redhat.com>
32889 PR middle-end/59669
32890 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32892 2014-01-08 Marek Polacek <polacek@redhat.com>
32895 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32897 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32899 PR rtl-optimization/59649
32900 * stor-layout.c (get_mode_bounds): For BImode return
32901 0 and STORE_FLAG_VALUE.
32903 2014-01-08 Richard Biener <rguenther@suse.de>
32905 PR middle-end/59630
32906 * gimple.h (is_gimple_builtin_call): Remove.
32907 (gimple_builtin_call_types_compatible_p): New.
32908 (gimple_call_builtin_p): New overload.
32909 * gimple.c (is_gimple_builtin_call): Remove.
32910 (validate_call): Rename to ...
32911 (gimple_builtin_call_types_compatible_p): ... this and export. Also
32912 check return types.
32913 (validate_type): New static function.
32914 (gimple_call_builtin_p): New overload and adjust.
32915 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32916 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
32917 (gimple_fold_stmt_to_constant_1): Likewise.
32918 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32920 2014-01-08 Richard Biener <rguenther@suse.de>
32922 PR middle-end/59471
32923 * gimplify.c (gimplify_expr): Gimplify register-register type
32924 VIEW_CONVERT_EXPRs to separate stmts.
32926 2014-01-07 Jeff Law <law@redhat.com>
32928 PR middle-end/53623
32929 * ree.c (combine_set_extension): Handle case where source
32930 and destination registers in an extension insn are different.
32931 (combine_reaching_defs): Allow source and destination registers
32932 in extension to be different under limited circumstances.
32933 (add_removable_extension): Remove restriction that the
32934 source and destination registers in the extension are the same.
32935 (find_and_remove_re): Emit a copy from the extension's
32936 destination to its source after the defining insn if
32937 the source and destination registers are different.
32939 PR middle-end/59285
32940 * ifcvt.c (merge_if_block): If we are merging a block with more than
32941 one successor with a block with no successors, remove any BARRIER
32942 after the second block.
32944 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
32946 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32948 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
32951 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32952 for 14-bit register offsets when INT14_OK_STRICT is false.
32954 2014-01-07 Roland Stigge <stigge@antcom.de>
32955 Michael Meissner <meissner@linux.vnet.ibm.com>
32958 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32959 Only check TFmode for SPE constants. Don't check TImode or TDmode.
32961 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32963 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32966 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
32968 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32969 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32970 rtx is const0_rtx or not.
32972 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
32975 * target-globals.c (save_target_globals): Remove this_fn_optab
32977 * toplev.c: Include optabs.h.
32978 (target_reinit): Temporarily restore the global options if another
32979 set of options are in force.
32981 2014-01-07 Jakub Jelinek <jakub@redhat.com>
32983 PR rtl-optimization/58668
32984 * cfgcleanup.c (flow_find_cross_jump): Don't count
32985 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
32986 to determine what is counted.
32987 (flow_find_head_matching_sequence): Use active_insn_p to determine
32989 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32991 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32992 determine what is counted.
32994 PR tree-optimization/59643
32995 * tree-predcom.c (split_data_refs_to_components): If one dr is
32996 read and one write, determine_offset fails and the write isn't
32997 in the bad component, just put the read into the bad component.
32999 2014-01-07 Mike Stump <mikestump@comcast.net>
33000 Jakub Jelinek <jakub@redhat.com>
33003 * tree-core.h (struct tree_optimization_option): Change optabs
33004 type from unsigned char * to void *.
33005 * optabs.c (init_tree_optimization_optabs): Adjust
33006 TREE_OPTIMIZATION_OPTABS initialization.
33008 2014-01-06 Jakub Jelinek <jakub@redhat.com>
33011 * config/i386/i386.h (struct machine_function): Add
33012 no_drap_save_restore field.
33013 * config/i386/i386.c (ix86_save_reg): Use
33014 !cfun->machine->no_drap_save_restore instead of
33015 crtl->stack_realign_needed.
33016 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
33017 this function clears frame_pointer_needed. Set
33018 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33019 and DRAP reg is needed.
33021 2014-01-06 Marek Polacek <polacek@redhat.com>
33024 * doc/implement-c.texi: Mention that other integer types are
33025 permitted as bit-field types in strictly conforming mode.
33027 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
33029 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33030 is newly allocated.
33032 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
33034 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33036 2014-01-06 Martin Jambor <mjambor@suse.cz>
33039 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33041 * ipa-prop.c (ipa_print_node_params): Fix indentation.
33043 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
33047 * var-tracking.c (add_stores): Preserve the value of the source even if
33048 we don't record the store.
33050 2014-01-06 Terry Guo <terry.guo@arm.com>
33052 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33054 2014-01-05 Iain Sandoe <iain@codesourcery.com>
33057 * config/darwin.c (darwin_function_section): Adjust return values to
33058 correspond to optimisation changes made in r206070.
33060 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
33062 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33063 from prefetch_block tune setting.
33064 (nocona_cost): Correct size of prefetch block to 64.
33066 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
33068 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33069 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33070 used to save the static chain register in the computation of the offset
33071 from which the FP registers need to be restored.
33073 2014-01-04 Jakub Jelinek <jakub@redhat.com>
33075 PR tree-optimization/59519
33076 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33077 ICE if get_current_def (current_new_name) is already non-NULL, as long
33078 as it is a phi result of some other phi in *new_exit_bb that has
33081 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33082 or vmovdqu* for misaligned_operand.
33083 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33084 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33085 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33086 aligned_mem for AVX512F masked aligned load and store builtins and for
33087 non-temporal moves.
33089 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
33091 PR tree-optimization/59651
33092 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33093 Address range for negative step should be added by TYPE_SIZE_UNIT.
33095 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
33097 * config/m68k/m68k.c (handle_move_double): Handle pushes with
33098 overlapping registers also for registers other than the stack pointer.
33100 2014-01-03 Marek Polacek <polacek@redhat.com>
33103 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33106 2014-01-03 Jakub Jelinek <jakub@redhat.com>
33109 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33112 * config/i386/i386.md (MODE_SIZE): New mode attribute.
33113 (push splitter): Use <P:MODE_SIZE> instead of
33114 GET_MODE_SIZE (<P:MODE>mode).
33115 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33116 (mov -1, reg peephole2): Likewise.
33117 * config/i386/sse.md (*mov<mode>_internal,
33118 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33119 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33120 *<code><mode>3, *andnot<mode>3<mask_name>,
33121 <mask_codefor><code><mode>3<mask_name>): Likewise.
33122 * config/i386/subst.md (mask_mode512bit_condition,
33123 sd_mask_mode512bit_condition): Likewise.
33125 2014-01-02 Xinliang David Li <davidxl@google.com>
33127 PR tree-optimization/59303
33128 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33129 (dump_predicates): Better output format.
33130 (pred_equal_p): New function.
33131 (is_neq_relop_p): Ditto.
33132 (is_neq_zero_form_p): Ditto.
33133 (pred_expr_equal_p): Ditto.
33134 (pred_neg_p): Ditto.
33135 (simplify_pred): Ditto.
33136 (simplify_preds_2): Ditto.
33137 (simplify_preds_3): Ditto.
33138 (simplify_preds_4): Ditto.
33139 (simplify_preds): Ditto.
33140 (push_pred): Ditto.
33141 (push_to_worklist): Ditto.
33142 (get_pred_info_from_cmp): Ditto.
33143 (is_degenerated_phi): Ditto.
33144 (normalize_one_pred_1): Ditto.
33145 (normalize_one_pred): Ditto.
33146 (normalize_one_pred_chain): Ditto.
33147 (normalize_preds): Ditto.
33148 (normalize_cond_1): Remove function.
33149 (normalize_cond): Ditto.
33150 (is_gcond_subset_of): Ditto.
33151 (is_subset_of_any): Ditto.
33152 (is_or_set_subset_of): Ditto.
33153 (is_and_set_subset_of): Ditto.
33154 (is_norm_cond_subset_of): Ditto.
33155 (pred_chain_length_cmp): Ditto.
33156 (convert_control_dep_chain_into_preds): Type change.
33157 (find_predicates): Ditto.
33158 (find_def_preds): Ditto.
33159 (destroy_predicates_vecs): Ditto.
33160 (find_matching_predicates_in_rest_chains): Ditto.
33161 (use_pred_not_overlap_with_undef_path_pred): Ditto.
33162 (is_pred_expr_subset): Ditto.
33163 (is_pred_chain_subset_of): Ditto.
33164 (is_included_in): Ditto.
33165 (is_superset_of): Ditto.
33167 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33169 Update copyright years.
33171 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33173 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33174 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33175 config/arc/arc.md, config/arc/arc.opt,
33176 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33177 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33178 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33179 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33180 config/linux-protos.h, config/linux.c, config/winnt-c.c,
33181 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33182 vtable-verify.c, vtable-verify.h: Use the standard form for the
33185 2014-01-02 Tobias Burnus <burnus@net-b.de>
33187 * gcc.c (process_command): Update copyright notice dates.
33188 * gcov-dump.c: Ditto.
33190 * doc/cpp.texi: Bump @copying's copyright year.
33191 * doc/cppinternals.texi: Ditto.
33192 * doc/gcc.texi: Ditto.
33193 * doc/gccint.texi: Ditto.
33194 * doc/gcov.texi: Ditto.
33195 * doc/install.texi: Ditto.
33196 * doc/invoke.texi: Ditto.
33198 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33200 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33202 2014-01-01 Jakub Jelinek <jakub@redhat.com>
33204 * config/i386/sse.md (*mov<mode>_internal): Guard
33205 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33207 PR rtl-optimization/59647
33208 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33209 new_rtx into UNSIGNED_FLOAT rtxes.
33211 Copyright (C) 2014 Free Software Foundation, Inc.
33213 Copying and distribution of this file, with or without modification,
33214 are permitted in any medium without royalty provided the copyright
33215 notice and this notice are preserved.