1 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
4 get_dynamic_type; drop TODO.
5 * ipa-polymorphic-call.c
6 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
7 for otr_type to be unknown.
9 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
11 * common/config/score/score-common.c: Remove.
12 * config.gcc: Remove support for score-*.
13 * config/score/constraints.md: Remove.
14 * config/score/elf.h: Remove.
15 * config/score/predicates.md: Remove.
16 * config/score/score-conv.h: Remove.
17 * config/score/score-generic.md: Remove.
18 * config/score/score-modes.def: Remove.
19 * config/score/score-protos.h: Remove.
20 * config/score/score.c: Remove.
21 * config/score/score.h: Remove.
22 * config/score/score.md: Remove.
23 * config/score/score.opt: Remove.
24 * doc/md.texi: Don't document score-*.
26 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
29 * genconditions.c: Directly include ggc.h before rtl.h.
31 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
33 * ipa-polymorphic-call.c
34 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
35 code determining speculative type.
36 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
38 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40 * altivec.md (altivec_lvsl): New define_expand.
41 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
42 (altivec_lvsr): New define_expand.
43 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
44 * rs6000.c (rs6000_expand_builtin): Change to use
45 altivec_lvs[lr]_direct; remove commented-out code.
47 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
49 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
50 Issue a warning message when vec_lvsl or vec_lvsr is used with a
53 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
55 * tree-pretty-print.c (dump_location): Make it extern. Dump also
57 * tree-pretty-print.h (dump_location): Declare.
58 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
59 (pp_gimple_stmt_1): Likewise.
60 (dump_implicit_edges): Likewise.
61 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
65 2014-10-03 David Malcolm <dmalcolm@redhat.com>
67 * gcc.c (driver::global_initializations): Remove "const" so
68 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
69 and decoded_options_count.
71 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
73 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
75 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
76 TARGET_E500_DOUBLE case here.
78 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
83 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
85 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
87 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
88 * lto-cgraph.c (lto_output_edge, input_edge): Stream
90 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
91 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
92 * cgraphclones.c (cgraph_edge::clone): Likewise.
93 * ipa-prop.c (update_jump_functions_after_inlining,
94 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
95 to possible_dynamic_type_change.
96 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
97 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
98 IN_POLY_CDOTR argument.
100 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
101 for BASE and OUTER_TYPE being NULL.
102 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
103 in_poly_cdtor parameter.
105 2014-10-03 Jakub Jelinek <jakub@redhat.com>
107 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
108 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
110 (expand_vec_perm_1): Likewise.
112 2014-10-03 Jakub Jelinek <jakub@redhat.com>
113 Uros Bizjak <ubizjak@gmail.com>
115 PR tree-optimization/61403
116 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
117 error in comment. Also optimize 256-bit vectors for AVX2
118 or AVX (floating vectors only), provided the first permutation
119 can be performed in one insn.
121 2014-10-03 David Malcolm <dmalcolm@redhat.com>
123 * gcc.c (class driver): New class.
124 (main): Reimplement in terms of driver::main, moving most of the
125 locals to be locals within individual methods of class driver.
126 The remaining locals "explicit_link_files", "decoded_options" and
127 "decoded_options_count" are used by multiple driver:: methods, and
128 so become member data. Doing so isolates the argc/argv reads and
129 writes. Replace "goto out" with a special exit code from
130 new method driver::prepare_infiles. Split out the old
131 implementation of main into the following...
132 (driver::main): New function, corresponding to the old "main"
134 (driver::set_progname): New function, taken from the old
135 "main" implementation.
136 (driver::expand_at_files): Likewise.
137 (driver::decode_argv): Likewise.
138 (driver::global_initializations): Likewise.
139 (driver::build_multilib_strings): Likewise.
140 (driver::set_up_specs): Likewise.
141 (driver::putenv_COLLECT_GCC): Likewise.
142 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
143 (driver::handle_unrecognized_options): Likewise.
144 (driver::maybe_print_and_exit): Likewise.
145 (driver::prepare_infiles): Likewise.
146 (driver::do_spec_on_infiles): Likewise.
147 (driver::maybe_run_linker): Likewise.
148 (driver::final_actions): Likewise.
149 (driver::get_exit_code): Likewise.
151 2014-10-03 Yury Gribov <y.gribov@samsung.com>
153 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
154 don't emit empty ctors.
156 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
158 * convert.c (convert_to_integer): Do not introduce useless conversions
159 between integral types.
161 2014-10-03 David Sherwood <david.sherwood@arm.com>
163 * ira-int.h (ira_allocno): Mark hard_regno as signed.
165 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
167 * lra-constraints.c (inherit_in_ebb): Handle calls with
168 multiple return values.
169 * caller-save.c (save_call_clobbered_regs): Likewise.
171 2014-10-03 Jakub Jelinek <jakub@redhat.com>
173 * tree-vect-data-refs.c (vect_permute_load_chain,
174 vect_shift_permute_load_chain): Fix a typo in temporary var names,
178 * omp-low.c (taskreg_contexts): New variable.
179 (scan_omp_parallel): Push newly created context into taskreg_contexts
180 vector and move record layout code to finish_taskreg_scan.
181 (scan_omp_task): Likewise.
182 (finish_taskreg_scan): New function.
183 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
184 vector elements and release it.
187 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
188 of palignr arguments can't be used due to min 0 or max - min
189 too high, try also op0, op1 order of palignr arguments.
191 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
193 * cgraph.h (ipa_polymorphic_call_context):
194 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
195 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
196 * ipa-polymorphic-call.c
197 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
198 past end of dynamic types.
199 (ipa_polymorphic_call_context::stream_out,
200 speculative_outer_type): Stream dynamic flag.
201 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
202 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
204 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
206 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
207 * ipa-prop.c (update_jump_functions_after_inlining,
208 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
210 2014-10-02 Teresa Johnson <tejohnson@google.com>
212 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
213 up when synthesizing counts to avoid rounding errors.
215 2014-10-02 Teresa Johnson <tejohnson@google.com>
218 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
219 asserts to handle incoming insanities.
221 2014-10-02 Martin Jambor <mjambor@suse.cz>
223 PR tree-optimization/63375
224 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
227 2014-10-02 Olivier Hainque <hainque@adacore.com>
229 * Makefile.in (CROSS): Define, to @CROSS.
231 2014-10-02 Jakub Jelinek <jakub@redhat.com>
234 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
235 if it expands to a single insn only.
236 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
237 fail unless in_order is true. Add forward declaration.
238 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
239 is useful for one_operand_p.
240 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
242 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
244 * cgraphclones.c (build_function_type_skip_args): Do not make new
247 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
249 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
250 when speculation is added.
251 (ipa_edge_args): Add polymorphic_call_contexts.
252 (ipa_get_ith_polymorhic_call_context): New accesor.
253 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
254 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
255 (ipa_compute_jump_functions_for_edge): Compute contexts.
256 (update_jump_functions_after_inlining): Update contexts.
257 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
258 update dumping; add speculative edge creation.
259 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
261 (update_indirect_edges_after_inlining): Pass down context.
262 (ipa_edge_duplication_hook): Duplicate contexts.
263 (ipa_write_node_info): Stream out contexts.
264 (ipa_read_node_info): Stream in contexts.
265 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
267 (try_speculative_devirtualization): New function.
268 * ipa-utils.h (try_speculative_devirtualization): Declare.
270 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
272 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
275 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
277 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
280 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
282 * ipa-polymorphic-call.c
283 (ipa_polymorphic_call_context::restrict_to_inner_class):
284 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
285 use speculation_consistent_p to do so; Add CONSDER_BASES
286 and CONSIDER_PLACEMENT_NEW parameters.
287 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
288 short circuit obvious cases.
289 (ipa_polymorphic_call_context::dump): Improve formatting.
290 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
291 combine_speculation_with to record speculations; Do not ICE when
292 object is located in pointer type decl; do not ICE for methods
293 of UNION_TYPE; do not record nonpolymorphic types.
294 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
295 (ipa_polymorphic_call_context::combine_speculation_with): New method.
296 (ipa_polymorphic_call_context::combine_with): New method.
297 (ipa_polymorphic_call_context::make_speculative): Move here; use
299 * cgraph.h (ipa_polymorphic_call_context): Update
300 restrict_to_inner_class prototype; add offset_by, make_speculative,
301 combine_with, useless_p, combine_speculation_with and
302 speculation_consistent_p methods.
303 (ipa_polymorphic_call_context::offset_by): New method.
304 (ipa_polymorphic_call_context::useless_p): New method.
306 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
308 PR rtl-optimization/62151
309 * combine.c (can_combine_p): Allow the destination register of INSN
310 to be clobbered in I3.
311 (subst): Do not substitute into clobbers of registers.
313 2014-10-01 Jakub Jelinek <jakub@redhat.com>
316 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
317 offset, TARGET_MEM_REF and SSA_NAME.
319 * config/i386/i386.c (expand_vec_perm_palignr): Handle
320 256-bit vectors for TARGET_AVX2.
322 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
326 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
327 argument to avx2_permv2ti.
329 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
331 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
333 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
335 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
336 (fmod<mode>3): Ditto.
337 (fpremxf4_i387): Ditto.
338 (reminderxf3): Ditto.
339 (reminder<mode>3): Ditto.
340 (fprem1xf4_i387): Ditto.
342 2014-09-30 Teresa Johnson <tejohnson@google.com>
344 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
345 duplicate_blocks bitmap.
346 (remove_ctrl_stmt_and_useless_edges): Ditto.
347 (create_block_for_threading): Ditto.
348 (compute_path_counts): New function.
349 (update_profile): Ditto.
350 (recompute_probabilities): Ditto.
351 (update_joiner_offpath_counts): Ditto.
352 (freqs_to_counts_path): Ditto.
353 (clear_counts_path): Ditto.
354 (ssa_fix_duplicate_block_edges): Update profile info.
355 (ssa_create_duplicates): Pass new parameter.
356 (ssa_redirect_edges): Remove old profile update.
357 (thread_block_1): New duplicate_blocks bitmap,
358 remove old profile update.
359 (thread_single_edge): Pass new parameter.
361 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
364 * varasm.c (decode_reg_name_and_count): Check availability for
365 registers from ADDITIONAL_REGISTER_NAMES.
367 2014-09-30 David Malcolm <dmalcolm@redhat.com>
370 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
371 (PLUGIN_HEADERS): Add pass-instances.def.
373 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
375 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
377 * config/aarch64/aarch64-simd.md
378 (aarch64_sqdmull_laneq<mode>): Expand iterator.
379 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
380 (vqdmulls_lane_s32): Fix return type.
381 (vqdmulls_laneq_s32): New.
383 2014-09-30 Jakub Jelinek <jakub@redhat.com>
386 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
387 or invert_jump_1 if jump isn't any_condjump_p.
389 2014-09-30 Terry Guo <terry.guo@arm.com>
391 * config/arm/arm-cores.def (cortex-m7): New core name.
392 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
394 * config/arm/arm-tables.opt: Regenerated.
395 * config/arm/arm-tune.md: Regenerated.
396 * config/arm/arm.h (TARGET_VFP5): New macro.
397 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
398 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
399 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
400 * doc/invoke.texi: Document new cpu and fpu names.
402 2014-09-30 Jiong Wang <jiong.wang@arm.com>
404 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
407 2014-09-30 David Sherwood <david.sherwood@arm.com>
409 * ira-int.h (ira_allocno): Add "wmode" field.
410 * ira-build.c (create_insn_allocnos): Add new "parent" function
412 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
413 that cannot be accessed in wmode.
415 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
417 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
420 2014-09-29 Andi Kleen <ak@linux.intel.com>
422 * opts.c (print_filtered_help): Print --param min/max/default
425 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
427 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
429 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
431 * tree-vrp.c (get_single_symbol): New function.
432 (build_symbolic_expr): Likewise.
433 (symbolic_range_based_on_p): New predicate.
434 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
435 for PLUS and MINUS. Do not drop symbolic ranges at the end.
436 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
437 operand is symbolic and based on the other operand.
439 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
441 * config/microblaze/microblaze.md (call_internal1): Use VOID
442 instead of SI to fix "((void (*)(void)) 0)()" issue
444 2014-09-29 Nick Clifton <nickc@redhat.com>
446 * config/msp430/msp430.c (msp430_expand_prologue): Return a
447 CLOBBER rtx for naked functions.
448 (msp430_expand_epilogue): Likewise.
449 (msp430_use_f5_series_hwmult): Cache result.
450 (use_32bit_hwmult): Cache result.
451 (msp430_no_hwmult): New function.
452 (msp430_output_labelref): Use it.
454 2014-09-29 Jakub Jelinek <jakub@redhat.com>
457 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
458 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
459 use the alignment of avar rather than ovar.
461 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
463 * config/pa/pa.c (pa_output_function_epilogue): Only update
464 last_address when a nonnote insn is found.
466 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
469 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
471 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
474 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
475 fix pasto in checking array size.
477 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
480 * passes.def (pass_tracer): Move before last dominator pass.
482 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
484 * gcc.c (try_generate_repro): Remove argument "prog". Change all
486 (run_attempt): Handle errors of "pex_run" invocation.
488 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
490 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
492 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
493 (TARGET_ASAN_SHADOW_OFFSET): Define.
495 2014-09-26 Martin Liska <mliska@suse.cz>
497 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
499 * cgraph.h: Likewise.
500 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
501 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
502 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
503 * tree-ssa-alias.h: Likewise.
505 2014-09-26 Jakub Jelinek <jakub@redhat.com>
506 Max Ostapenko <m.ostapenko@partner.samsung.com>
508 * common.opt: New option.
509 * doc/invoke.texi: Describe new option.
510 * gcc.c (execute): Don't free first string early, but at the end
511 of the function. Call retry_ice if compiler exited with
513 (main): Factor out common code.
514 (print_configuration): New function.
515 (files_equal_p): Likewise.
516 (check_repro): Likewise.
517 (run_attempt): Likewise.
518 (do_report_bug): Likewise.
519 (append_text): Likewise.
520 (try_generate_repro): Likewise
522 2014-09-25 Andi Kleen <ak@linux.intel.com>
524 * config/i386/i386.c (x86_print_call_or_nop): New function.
525 (x86_function_profiler): Support -mnop-mcount and
527 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
528 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
530 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
532 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
533 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
534 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
537 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
539 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
540 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
541 types_odr_comparable): Declare.
542 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
543 * ipa-polymorphic-call.c: New file.
544 (contains_polymorphic_type_p, possible_placement_new,
545 ipa_polymorphic_call_context::restrict_to_inner_class,
546 contains_type_p, decl_maybe_in_construction_p,
547 ipa_polymorphic_call_context::stream_out,
548 ipa_polymorphic_call_context::debug,
549 ipa_polymorphic_call_context::stream_in,
550 ipa_polymorphic_call_context::set_by_decl,
551 ipa_polymorphic_call_context::set_by_invariant,
553 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
554 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
555 extr_type_from_vtbl_ptr_store, record_known_type
556 check_stmt_for_type_change,
557 ipa_polymorphic_call_context::get_dynamic_type): Move here from
559 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
561 (contains_polymorphic_type_p, possible_placement_new,
562 ipa_polymorphic_call_context::restrict_to_inner_class,
563 contains_type_p, decl_maybe_in_construction_p,
564 ipa_polymorphic_call_context::stream_out,
565 ipa_polymorphic_call_context::debug,
566 ipa_polymorphic_call_context::stream_in,
567 ipa_polymorphic_call_context::set_by_decl,
568 ipa_polymorphic_call_context::set_by_invariant,
570 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
571 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
572 extr_type_from_vtbl_ptr_store, record_known_type
573 check_stmt_for_type_change,
574 ipa_polymorphic_call_context::get_dynamic_type): Move to
575 ipa-polymorphic-call.c
576 (type_all_derivations_known_p, types_odr_comparable,
577 types_must_be_same_for_odr): Export.
578 (type_known_to_have_no_deriavations_p): New function.
579 * Makefile.in: Add ipa-polymorphic-call.c
581 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
583 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
585 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
586 (possible_polymorphic_call_targets): Instead of computing both
587 speculative and non-speculative answers, do just one at a time.
588 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
589 (dump_targets): Break out from ...
590 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
591 and non-speculative lists.
592 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
593 * ipa-utils.h (possible_polymorphic_call_targets): Update.
595 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
597 PR rtl-optimization/63348
598 * emit-rtl.c (try_split): Do not emit extra barrier.
600 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
602 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
603 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
605 (aarch64_<sur>shll2_n<mode>): Likewise.
606 (aarch64_<sur>shr_n<mode>): Likewise.
607 (aarch64_<sur>sra_n<mode>: Likewise.
608 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
609 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
610 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
611 * config/aarch64/iterators.md (ve_mode): New.
612 (offsetlr): Remap to infix text for use in new predicates.
613 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
614 (aarch64_simd_shift_imm_hi): Likewise.
615 (aarch64_simd_shift_imm_si): Likewise.
616 (aarch64_simd_shift_imm_di): Likewise.
617 (aarch64_simd_shift_imm_offset_qi): Likewise.
618 (aarch64_simd_shift_imm_offset_hi): Likewise.
619 (aarch64_simd_shift_imm_offset_si): Likewise.
620 (aarch64_simd_shift_imm_offset_di): Likewise.
621 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
622 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
623 (aarch64_simd_shift_imm_bitsize_si): Likewise.
624 (aarch64_simd_shift_imm_bitsize_di): Likewise.
626 2014-09-25 Jiong Wang <jiong.wang@arm.com>
628 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
629 new created BB as the intersection of live-in from "old_dest" and
632 2014-09-25 Felix Yang <felix.yang@huawei.com>
634 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
635 * genautomata.c (merge_states): Ditto.
637 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
640 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
641 in instruction sequence.
643 2014-09-25 Nick Clifton <nickc@redhat.com>
646 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
647 in instruction sequence.
649 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
652 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
653 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
655 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
656 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
657 Anna Tikhonova <anna.tikhonova@intel.com>
658 Ilya Tocar <ilya.tocar@intel.com>
659 Andrey Turetskiy <andrey.turetskiy@intel.com>
660 Ilya Verbin <ilya.verbin@intel.com>
661 Kirill Yukhin <kirill.yukhin@intel.com>
662 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
665 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
666 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
667 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
668 (define_expand "<avx512>_perm<mode>_mask"): ... this.
669 Use VI8F_256_512 mode iterator.
670 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
671 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
673 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
675 Anna Tikhonova <anna.tikhonova@intel.com>
676 Ilya Tocar <ilya.tocar@intel.com>
677 Andrey Turetskiy <andrey.turetskiy@intel.com>
678 Ilya Verbin <ilya.verbin@intel.com>
679 Kirill Yukhin <kirill.yukhin@intel.com>
680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
683 (define_insn "avx_movshdup256<mask_name>"): Add masking.
684 (define_insn "sse3_movshdup<mask_name>"): Ditto.
685 (define_insn "avx_movsldup256<mask_name>"): Ditto.
686 (define_insn "sse3_movsldup<mask_name>"): Ditto.
687 (define_insn "vec_dupv2df<mask_name>"): Ditto.
688 (define_insn "*vec_concatv2df"): Add EVEX version.
690 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
692 Anna Tikhonova <anna.tikhonova@intel.com>
693 Ilya Tocar <ilya.tocar@intel.com>
694 Andrey Turetskiy <andrey.turetskiy@intel.com>
695 Ilya Verbin <ilya.verbin@intel.com>
696 Kirill Yukhin <kirill.yukhin@intel.com>
697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
700 (define_insn "vec_set<mode>_0"): Add EVEX version.
702 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
704 Anna Tikhonova <anna.tikhonova@intel.com>
705 Ilya Tocar <ilya.tocar@intel.com>
706 Andrey Turetskiy <andrey.turetskiy@intel.com>
707 Ilya Verbin <ilya.verbin@intel.com>
708 Kirill Yukhin <kirill.yukhin@intel.com>
709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
713 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
715 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
716 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
717 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
718 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
719 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
720 (define_expand "sse2_cvtpd2ps_mask): New.
721 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
722 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
724 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
725 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
726 Anna Tikhonova <anna.tikhonova@intel.com>
727 Ilya Tocar <ilya.tocar@intel.com>
728 Andrey Turetskiy <andrey.turetskiy@intel.com>
729 Ilya Verbin <ilya.verbin@intel.com>
730 Kirill Yukhin <kirill.yukhin@intel.com>
731 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
734 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
735 (ufix_notruncv8dfv8si2_mask_round): ... this.
737 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
738 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
739 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
740 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
741 (define_expand "sse2_cvtpd2dq"): Delete.
742 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
743 make 2nd operand const0 vector.
744 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
746 (define_mode_attr pd2udqsuff): New.
748 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
749 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
750 (define_insn "*avx_cvttpd2dq256_2"): Delete.
751 (define_expand "sse2_cvttpd2dq"): Ditto.
752 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
753 make 2nd operand const0 vector.
755 2014-09-25 Jakub Jelinek <jakub@redhat.com>
757 PR tree-optimization/63341
758 * tree-vectorizer.h (vect_create_data_ref_ptr,
759 vect_create_addr_base_for_vector_ref): Add another tree argument
760 defaulting to NULL_TREE.
761 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
762 argument, pass it down to vect_create_addr_base_for_vector_ref.
763 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
764 add that to base_offset too if non-NULL.
765 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
766 for dr_explicit_realign_optimized set it to vector byte size
767 - 1 instead of setting offset, pass byte_offset down to
768 vect_create_data_ref_ptr.
770 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
772 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
773 forgotten debug output; canonicalize querries more wtih LTO.
775 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
777 * cgraph.h (class ipa_polymorphic_call_context): Move here from
778 ipa-utils.h; add stream_int and stream_out methods.
779 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
780 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
781 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
783 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
784 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
785 ipa_polymorphic_call_context::clear_speculation,
786 ipa_polymorphic_call_context::clear_outer_type): Move here from
788 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
789 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
790 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
791 ipa_polymorphic_call_context::clear_speculation,
792 ipa_polymorphic_call_context::clear_outer_type): Likewise.
793 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
795 (ipa_polymorphic_call_context::stream_out): New method.
796 (ipa_polymorphic_call_context::stream_in): New method.
797 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
798 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
800 (ipa_analyze_call_uses): Simplify.
801 (update_indirect_edges_after_inlining): Do not care about outer_type.
802 (ipa_write_indirect_edge_info): Update.
803 (ipa_write_indirect_edge_info): Likewise.
804 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
805 (dump_edge_flags): Break out from ...
806 (cgraph_node::dump): ... here; dump indirect edges.
808 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
810 * ipa-utils.h (polymorphic_call_context): Add
811 metdhos dump, debug and clear_outer_type.
812 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
813 (ipa_polymorphic_call_context::clear_outer_type): New method.
814 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
815 * ipa-devirt.c (types_odr_comparable): New function.
816 (types_must_be_same_for_odr): New function.
817 (odr_subtypes_equivalent_p): Simplify.
818 (possible_placement_new): Break out from ...
819 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
820 be more cuatious about returning false in cases the context may be
821 valid in derived type or via placement new.
822 (contains_type_p): Clear maybe_derived_type
823 (ipa_polymorphic_call_context::dump): New method.
824 (ipa_polymorphic_call_context::debug): New method.
825 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
826 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
827 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
828 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
829 to suceed on all valid cases; remove confused sanity check.
830 (dump_possible_polymorphic_call_targets): Simplify.
832 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
834 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
835 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
836 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
837 varpool.c: Rename all instances of DECL_ABSTRACT to
840 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
842 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
843 special handling for stores whose SET_SRC is an UNSPEC (such as
846 2014-09-24 Jiong Wang <jiong.wang@arm.com>
848 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
849 !REG_P (src) to release more instruction sink opportunities.
851 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
853 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
854 move costs for 128-bit types.
856 2014-09-24 Martin Jambor <mjambor@suse.cz>
858 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
859 when duplicating a PASS_THROUGH jump function when creating a
862 2014-09-24 Marek Polacek <polacek@redhat.com>
866 * asan.c (maybe_instrument_call): Add default case.
867 * ipa-pure-const.c (special_builtin_state): Likewise.
868 * predict.c (expr_expected_value_1): Likewise.
869 * lto-streamer-out.c (write_symbol): Initialize variable.
871 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
873 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
875 (vmuld_laneq_f64): Likewise.
876 (vmuls_lane_f32): Likewise.
877 (vmuls_laneq_f32): Likewise.
879 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
882 * varpool.c (varpool_node::add): Pass decl attributes
885 2014-09-24 Jakub Jelinek <jakub@redhat.com>
888 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
890 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
892 PR tree-optimization/63266
893 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
894 marker for unknown byte value.
895 (MARKER_MASK): New macro.
896 (MARKER_BYTE_UNKNOWN): New macro.
897 (HEAD_MARKER): New macro.
898 (do_shift_rotate): Mark bytes with unknown values due to sign
899 extension when doing an arithmetic right shift. Replace hardcoded
900 mask for marker by new MARKER_MASK macro.
901 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
904 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
906 Anna Tikhonova <anna.tikhonova@intel.com>
907 Ilya Tocar <ilya.tocar@intel.com>
908 Andrey Turetskiy <andrey.turetskiy@intel.com>
909 Ilya Verbin <ilya.verbin@intel.com>
910 Kirill Yukhin <kirill.yukhin@intel.com>
911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
915 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
917 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
918 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
920 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
922 Anna Tikhonova <anna.tikhonova@intel.com>
923 Ilya Tocar <ilya.tocar@intel.com>
924 Andrey Turetskiy <andrey.turetskiy@intel.com>
925 Ilya Verbin <ilya.verbin@intel.com>
926 Kirill Yukhin <kirill.yukhin@intel.com>
927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
930 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
931 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
932 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
933 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
934 (define_expand "avx512vl_pshuflw_mask"): New.
935 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
936 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
937 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
938 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
939 (define_expand "avx512vl_pshufhw_mask"): New.
940 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
942 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
943 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
944 Anna Tikhonova <anna.tikhonova@intel.com>
945 Ilya Tocar <ilya.tocar@intel.com>
946 Andrey Turetskiy <andrey.turetskiy@intel.com>
947 Ilya Verbin <ilya.verbin@intel.com>
948 Kirill Yukhin <kirill.yukhin@intel.com>
949 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
952 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
953 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
954 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
955 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
956 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
958 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
960 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
961 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
963 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
964 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
965 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
966 (define_expand "avx512vl_pshufd_mask"): New.
967 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
969 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
971 Anna Tikhonova <anna.tikhonova@intel.com>
972 Ilya Tocar <ilya.tocar@intel.com>
973 Andrey Turetskiy <andrey.turetskiy@intel.com>
974 Ilya Verbin <ilya.verbin@intel.com>
975 Kirill Yukhin <kirill.yukhin@intel.com>
976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
979 (CODE_FOR_avx2_extracti128): Rename to ...
980 (CODE_FOR_avx_vextractf128v4di): this.
981 (CODE_FOR_avx2_inserti128): Rename to ...
982 (CODE_FOR_avx_vinsertf128v4di): this.
983 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
984 CODE_FOR_avx_vextractf128v4di.
985 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
986 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
987 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
988 CODE_FOR_avx512vl_vinsertv8si.
991 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
992 AVX512_VEC mode iterator.
994 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
997 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
998 AVX512_VEC_2 mode iterator.
999 (define_insn "vec_set_lo_<mode><mask_name>"): New.
1000 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1001 (define_expand "avx512vl_vinsert<mode>"): Ditto.
1002 (define_insn "avx2_vec_set_lo_v4di"): Delete.
1003 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1004 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1005 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1006 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1007 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1008 (define_expand "avx2_extracti128"): Delete.
1009 (define_expand "avx2_inserti128"): Ditto.
1011 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1013 Anna Tikhonova <anna.tikhonova@intel.com>
1014 Ilya Tocar <ilya.tocar@intel.com>
1015 Andrey Turetskiy <andrey.turetskiy@intel.com>
1016 Ilya Verbin <ilya.verbin@intel.com>
1017 Kirill Yukhin <kirill.yukhin@intel.com>
1018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1020 * config/i386/sse.md
1021 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1022 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1023 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1024 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1025 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1026 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1027 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1028 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1029 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1030 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1031 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1032 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1033 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1035 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
1037 PR rtl-optimization/63210
1038 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1039 HARD_REGNO is not available for CONFLICT_A.
1041 2014-09-23 Andi Kleen <ak@linux.intel.com>
1043 * cgraph.h (symtab_node): Add no_reorder attribute.
1044 (symbol_table::output_asm_statements): Remove.
1045 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1046 (cgraph_node::create_version_clone): Dito.
1047 (symbol_table::output_asm_statements): Remove.
1048 * trans-mem.c (ipa_tm_create_version_alias): Dito.
1049 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1050 (output_in_order): Add no_reorder flag. Only handle no_reorder
1052 (symbol_table::compile): Add separate pass for no_reorder nodes.
1053 (process_common_attributes): Set no_reorder flag in symtab node.
1055 (process_function_and_variable_attributes): Pass symtab nodes to
1056 process_common_attributes.
1057 * doc/extend.texi (no_reorder): Document no_reorder attribute.
1058 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1059 (lto_output_varpool_node): Dito.
1060 (input_overwrite_node): Dito.
1061 (input_varpool_node): Dito.
1062 * varpool.c (varpool_node::add): Set no_reorder attribute.
1063 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1064 (symbol_table::output_variables): Dito.
1065 * symtab.c (symtab_node::dump_base): Print no_reorder.
1067 2014-09-23 Jiong Wang <jiong.wang@arm.com>
1069 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1072 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
1074 * configure: Regenerate.
1076 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
1078 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1079 when result_mode == shift_mode.
1081 2014-09-23 Kostya Serebryany <kcc@google.com>
1083 Update to match the changed asan API.
1084 * asan.c (asan_global_struct): Update the __asan_global definition
1085 to match the new API.
1086 (asan_add_global): Ditto.
1087 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1090 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1092 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1093 refine the constraints used on 32/64-bit floating point moves.
1095 (f64_vsx): Likewise.
1098 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1099 (BOOL_REGS_OP1): Likewise.
1100 (BOOL_REGS_OP2): Likewise.
1101 (BOOL_REGS_UNARY): Likewise.
1102 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1103 32/64-bit floating point moves. Do not use wa, instead use ww/ws
1104 for moves involving VSX registers. Do not use constraints that
1105 target VSX registers for decimal types.
1106 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1107 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1109 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
1111 * tree.h (int_bit_position): Turn into inline function;
1112 implement using wide int.
1113 * tree.c (int_bit_position): Remove.
1115 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
1118 * target-globals.c (target_globals::~target_globals): Fix location
1119 of ira_int destruction.
1121 2014-09-23 Renlin Li <renlin.li@arm.com>
1123 * config/aarch64/aarch64.md (return): New.
1124 (simple_return): Likewise.
1125 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1126 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1128 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
1130 * common/config/aarch64/aarch64-common.c:
1131 (default_options aarch_option_optimization_table):
1132 Default to -fsched-pressure.
1134 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
1136 * cfgcleanup.c (try_optimize_cfg): Do not remove label
1137 with LABEL_PRESERVE_P flag set.
1139 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1141 Anna Tikhonova <anna.tikhonova@intel.com>
1142 Ilya Tocar <ilya.tocar@intel.com>
1143 Andrey Turetskiy <andrey.turetskiy@intel.com>
1144 Ilya Verbin <ilya.verbin@intel.com>
1145 Kirill Yukhin <kirill.yukhin@intel.com>
1146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1148 * config/i386/sse.md
1149 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1150 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1151 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1152 (define_insn "sse2_shufpd_v2df_mask"): New.
1154 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1156 Anna Tikhonova <anna.tikhonova@intel.com>
1157 Ilya Tocar <ilya.tocar@intel.com>
1158 Andrey Turetskiy <andrey.turetskiy@intel.com>
1159 Ilya Verbin <ilya.verbin@intel.com>
1160 Kirill Yukhin <kirill.yukhin@intel.com>
1161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1163 * config/i386/sse.md
1164 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1165 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1166 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1167 (define_insn "sse_shufps_v4sf_mask"): New.
1169 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1170 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1171 Anna Tikhonova <anna.tikhonova@intel.com>
1172 Ilya Tocar <ilya.tocar@intel.com>
1173 Andrey Turetskiy <andrey.turetskiy@intel.com>
1174 Ilya Verbin <ilya.verbin@intel.com>
1175 Kirill Yukhin <kirill.yukhin@intel.com>
1176 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1178 * config/i386/sse.md
1179 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1180 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1181 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1182 (define_insn "unpcklps128_mask"): New.
1184 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
1185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1186 Anna Tikhonova <anna.tikhonova@intel.com>
1187 Ilya Tocar <ilya.tocar@intel.com>
1188 Andrey Turetskiy <andrey.turetskiy@intel.com>
1189 Ilya Verbin <ilya.verbin@intel.com>
1190 Kirill Yukhin <kirill.yukhin@intel.com>
1191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1193 * config/i386/sse.md
1194 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1195 (define_insn "avx512vl_unpckhpd128_mask"): New.
1196 (define_expand "avx_movddup256<mask_name>"): Add masking.
1197 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1198 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1199 (define_insn "avx512vl_unpcklpd128_mask"): New.
1201 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1203 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1204 * doc/tm.texi: Regenerate.
1205 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1206 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1207 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1209 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1210 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1211 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1212 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1213 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1215 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1216 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1217 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1218 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1219 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1220 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1221 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1222 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1223 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1224 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1225 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1228 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
1230 * tree-ssa-ccp.c (prop_value_d): Rename to ...
1231 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1232 * ipa-prop.c (struct type_change_info): Rename to ...
1233 (prop_type_change_info): ... this; update uses.
1234 * ggc-page.c (globals): Rename to ...
1235 (static struct ggc_globals): ... this; update uses.
1236 * tree-ssa-loop-im.c (mem_ref): Rename to ...
1237 (im_mem_ref): ... this; update uses.
1238 * ggc-common.c (loc_descriptor): Rename to ...
1239 (ggc_loc_descriptor): ... this; update uses.
1240 * lra-eliminations.c (elim_table): Rename to ...
1241 (lra_elim_table): ... this; update uses.
1242 * bitmap.c (output_info): Rename to ...
1243 (bitmap_output_info): ... this; update uses.
1244 * gcse.c (expr): Rename to ...
1245 (gcse_expr) ... this; update uses.
1246 (occr): Rename to ...
1247 (gcse_occr): .. this; update uses.
1248 * tree-ssa-copy.c (prop_value_d): Rename to ...
1249 (prop_value_t): ... this.
1250 * predict.c (block_info_def): Rename to ...
1251 (block_info): ... this; update uses.
1252 (edge_info_def): Rename to ...
1253 (edge_info): ... this; update uses.
1254 * profile.c (bb_info): Rename to ...
1255 (bb_profile_info): ... this; update uses.
1256 * alloc-pool.c (output_info): Rename to ...
1257 (pool_output_info): ... this; update uses.
1258 * ipa-cp.c (topo_info): Rename to ..
1259 (ipa_topo_info): ... this; update uses.
1260 * tree-nrv.c (nrv_data): Rename to ...
1261 (nrv_data_t): ... this; update uses.
1262 * ipa-split.c (bb_info): Rename to ...
1263 (split_bb_info): ... this one.
1264 * profile.h (edge_info): Rename to ...
1265 (edge_profile_info): ... this one; update uses.
1266 * dse.c (bb_info): Rename to ...
1267 (dse_bb_info): ... this one; update uses.
1268 * cprop.c (occr): Rename to ...
1269 (cprop_occr): ... this one; update uses.
1270 (expr): Rename to ...
1271 (cprop_expr): ... this one; update uses.
1273 2014-09-22 Jason Merrill <jason@redhat.com>
1275 * Makefile.in (check-parallel-%): Add @.
1277 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1279 * config/aarch64/geniterators.sh: New.
1280 * config/aarch64/iterators.md (VDQF_DF): New.
1281 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1282 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1284 2014-09-22 Peter A. Bigot <pab@pabigot.com>
1286 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1287 -lnosys when -msim absent.
1289 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
1291 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1293 2014-09-22 Richard Biener <rguenther@suse.de>
1295 * gimplify.c (gimplify_init_constructor): Do not leave
1296 non-GIMPLE vector constructors around.
1297 * tree-cfg.c (verify_gimple_assign_single): Verify that
1298 CONSTRUCTORs have gimple elements.
1300 2014-09-22 Jakub Jelinek <jakub@redhat.com>
1303 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1304 insert a debug source bind stmt setting DEBUG_EXPR_DECL
1305 instead of a normal gimple assignment stmt.
1307 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
1309 * config/bfin/bfin.md: Fix use of constraints in define_split.
1311 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1313 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1314 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1316 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1318 * hard-reg-set.h: Include hash-table.h.
1319 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1321 * target-globals.c (target_globals::~target_globals): Call
1322 hard_regs->finalize.
1323 * rtl.h (subreg_shape): New structure.
1324 (shape_of_subreg): New function.
1325 (simplifiable_subregs): Declare.
1326 * reginfo.c (simplifiable_subreg): New structure.
1327 (simplifiable_subregs_hasher): Likewise.
1328 (simplifiable_subregs): New function.
1329 (invalid_mode_changes): Delete.
1330 (alid_mode_changes, valid_mode_changes_obstack): New variables.
1331 (record_subregs_of_mode): Remove subregs_of_mode parameter.
1332 Record valid mode changes in valid_mode_changes.
1333 (find_subregs_of_mode): Remove subregs_of_mode parameter.
1334 Update calls to record_subregs_of_mode.
1335 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1336 handling. Initialize new variables. Update call to
1337 find_subregs_of_mode.
1338 (invalid_mode_change_p): Check new variables instead of
1339 invalid_mode_changes.
1340 (finish_subregs_of_mode): Finalize new variables instead of
1341 invalid_mode_changes.
1342 (target_hard_regs::finalize): New function.
1343 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1344 even when CLASS_CANNOT_CHANGE_MODE is undefined.
1346 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1348 * combine.c (subst): Use simplify_subreg_regno rather than
1349 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1351 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1353 * rtl.h (subreg_info): Expand commentary
1354 * rtlanal.c (subreg_get_info): Likewise.
1356 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
1358 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1359 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1360 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1362 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
1364 * config/arm/arm.c: #include "tm-constrs.h"
1365 (thumb1_size_rtx_costs): Adjust rtx costs.
1367 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
1369 * configure.ac (target_header_dir): Move block defining
1370 this to before the block setting inhibit_libc.
1371 (inhibit_libc): When considering $with_headers, just
1372 check it it's explicitly "no". If not, also check if
1373 $target_header_dir/stdio.h is present. If not, set
1375 * configure: Regenerate.
1377 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
1379 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1381 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1383 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
1384 insn for divides by integer powers of two.
1385 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1386 (mod<mode>3): Fix formatting.
1387 (three anonymous define_insn and two define_split): Delete.
1389 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1391 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1392 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1393 (floatdisf2_internal2): Ditto.
1394 (ashrdi3_no_power): Ditto. Fix formatting.
1396 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1398 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1399 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1402 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1404 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1405 constant, use addsi3 directly.
1406 (three anonymous define_insn, two define_split): Delete.
1407 (sub<mode>3): Move. Do not allow constant second operand.
1408 Generate different insn for constant first operand.
1409 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1410 (subf<mode>3_imm): New.
1411 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1412 (*plus_ltu<mode>): Only handle registers.
1413 (*plus_ltu<mode>_1): New. Handle integer third operand.
1414 (*plus_gtu<mode>): Only handle registers.
1415 (*plus_gtu<mode>_1): New. Handle integer third operand.
1417 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1419 * config/rs6000/rs6000.md (iorxor): New code_iterator.
1420 (iorxor): New code_attr.
1421 (IORXOR): New code_attr.
1422 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1423 (ior<mode>3, xor<mode>3): Delete.
1424 (<iorxor><mode>3): New.
1425 (splitter for "big" integer ior, xor): New.
1426 (*bool<mode>3): Move. Also handle AND.
1427 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1428 (splitter for "big" integer ior, xor): Delete.
1430 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1432 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1433 (two anonymous define_insn and two define_split): Delete.
1434 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1436 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1438 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1439 (two anonymous define_insn and two define_split): Delete.
1440 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1442 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1444 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1446 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1448 * config/rs6000/predicates.md (ca_operand): Allow subregs.
1449 (input_operand): Do not allow ca_operand.
1450 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1451 carry bit, allow SImode and Pmode.
1452 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1454 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
1456 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1457 clobbered registers using clobber_reg. Remove UNSPEC decoration.
1458 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1459 (*call_rex64_ms_sysv): Remove.
1460 (*call_value_rex64_ms_sysv): Ditto.
1461 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1463 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
1465 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1468 2014-09-20 Andreas Schwab <schwab@suse.de>
1470 * config/ia64/ia64.md: Remove constraints from define_split
1473 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1475 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1476 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1477 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1478 (get_dynamic_type): Remove.
1479 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1480 (clear_speculation): Bring to ipa-deivrt.h
1481 (get_class_context): Rename to ...
1482 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1483 (contains_type_p): Update.
1484 (get_dynamic_type): Rename to ...
1485 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1486 (possible_polymorphic_call_targets): UPdate.
1487 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1488 * ipa-prop.c (ipa_analyze_call_uses): Update.
1490 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1492 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1493 privatize dynamic TLS variables.
1495 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1497 * diagnostic.c (warning_n): New function.
1498 * diagnostic-core.h (warning_n): Declare.
1499 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1500 output dynamic counts when available.
1502 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1504 PR tree-optimization/63255
1505 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1506 issue in setting body_removed flag.
1508 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1511 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1512 that visibility change is possible
1513 (handle_weakref_attribute): Likewise.
1514 * cgraph.h (symtab_node): Add method get_create and
1515 field refuse_visibility_changes.
1516 (symtab_node::get_create): New method.
1517 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1518 * varasm.c (mark_weak): Verify that visibility change is
1521 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
1523 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1524 for base_reg_operand to be common between LO_SUM and PLUS.
1525 (fusion_gpr_mem_combo): New predicate to match a fused address
1526 that combines the addis and memory offset address.
1528 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1530 (emit_fusion_gpr_load): Likewise.
1532 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1533 signature to pass each argument separately, rather than
1534 using an operands array. Rewrite the insns found by peephole2 to
1535 be a single insn, rather than hoping the insns will still be
1536 together when the peephole pass is done. Drop being called via a
1538 (emit_fusion_gpr_load): Change calling signature to be called from
1539 the fusion_gpr_load_<mode> insns with a combined memory address
1540 instead of the peephole pass passing the addis and offset
1543 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1545 (power8 fusion peephole): Drop support for doing power8 via a
1546 normal peephole that was created by the peephole2 pass.
1547 (power8 fusion peephole2): Create a new insn with the fused
1548 address, so that the fused operation is kept together after
1549 register allocation is done.
1550 (fusion_gpr_load_<mode>): Likewise.
1552 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
1555 * tree.c (need_assembler_name_p): Do not mangle variadic types.
1557 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1559 * recog.c (scratch_operand): Do not simply allow all hard registers:
1560 only allow those that are allocatable.
1562 2014-09-19 Felix Yang <felix.yang@huawei.com>
1564 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1565 comments and fix spacing to conform to coding style.
1567 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1569 * genrecog.c (validate_pattern): Allow empty constraints in
1572 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
1574 * dwarf2out.c (decl_ultimate_origin): Update comment.
1575 * tree.c (block_ultimate_origin): Same.
1577 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1579 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1580 Update GCC version name to GCC 5.
1581 (rs6000_function_arg_boundary): Likewise.
1582 (rs6000_function_arg): Likewise.
1584 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1586 * config/sh/sh.md: Fix use of constraints in define_split.
1588 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1591 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1593 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1595 * doc/md.texi (Modifiers): Consistently use "read/write"
1596 nomenclature rather than "input/output".
1597 * genrecog.c (constraints_supported_in_insn_p): New.
1598 (validate_pattern): If needed, also check constraints on
1599 MATCH_SCRATCH operands.
1600 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1601 operands with no '=' or '+' modifier.
1603 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
1605 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1606 scratch register as written.
1608 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1610 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1613 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1615 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1618 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1621 * config/s390/s390.c (s390_emit_epilogue): When doing the return
1622 address load optimization force s390_optimize_prologue to leave it
1623 that way. Only do the optimization if we already decided to push
1624 r14 into a stack slot.
1626 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
1628 * asan.c (build_check_stmt): Alignment arg was added.
1629 (asan_expand_check_ifn): Optimization for alignment >= 8.
1631 2014-09-19 Olivier Hainque <hainque@adacore.com>
1633 * config/i386/vxworksae.h: Remove obsolete definitions.
1634 (STACK_CHECK_PROTECT): Define.
1635 * config/i386/vx-common.h: Remove. Merge contents within
1636 config/i386/vxworks.h.
1637 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1640 2014-09-19 Olivier Hainque <hainque@adacore.com>
1642 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1643 * config/rs6000/t-vxworksmils: New file.
1644 * config/rs6000/vxworksmils.h: New file.
1646 2014-09-19 Olivier Hainque <hainque@adacore.com>
1648 * varasm.c (default_section_type_flags): Flag .persistent.bss
1649 sections as SECTION_BSS.
1651 2014-09-19 Nick Clifton <nickc@redhat.com>
1653 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1654 pop'ed registers so that DCE does not eliminate them.
1656 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
1659 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1661 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1663 * system.h (LIBGCC2_TF_CEXT): Poison.
1664 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1665 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1666 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1667 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1668 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1669 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1670 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1671 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1672 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1674 2014-09-19 Kito Cheng <kito@0xlab.org>
1676 * except.h: Fix header guard.
1677 * addresses.h: Add missing header guard.
1678 * cfghooks.h: Likewise.
1679 * collect-utils.h: Likewise.
1680 * collect2-aix.h: Likewise.
1681 * conditions.h: Likewise.
1682 * cselib.h: Likewise.
1683 * dwarf2asm.h: Likewise.
1684 * graphds.h: Likewise.
1685 * graphite-scop-detection.h: Likewise.
1686 * gsyms.h: Likewise.
1687 * hw-doloop.h: Likewise.
1688 * incpath.h: Likewise.
1689 * ipa-inline.h: Likewise.
1690 * ipa-ref.h: Likewise.
1691 * ira-int.h: Likewise.
1693 * lra-int.h: Likewise.
1695 * lto-section-names.h: Likewise.
1696 * read-md.h: Likewise.
1697 * reload.h: Likewise.
1698 * rtl-error.h: Likewise.
1699 * sdbout.h: Likewise.
1700 * targhooks.h: Likewise.
1701 * tree-affine.h: Likewise.
1702 * xcoff.h: Likewise.
1703 * xcoffout.h: Likewise.
1705 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1708 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1711 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
1714 * lra.c (lra): Call recog_init.
1716 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1719 * asan.c (transform_statements): Don't instrument clobber statements.
1721 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1723 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1724 to neon_load1_1reg<q>.
1726 2014-09-17 Jakub Jelinek <jakub@redhat.com>
1729 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1730 if there are only debug stmts after the noreturn call, instead
1731 remove the debug stmts.
1733 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
1735 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1736 (odr_types_equivalent_p): Use pair hash.
1737 (odr_subtypes_equivalent_p): Likewise, do structural compare
1738 on ODR types that may be mismatched.
1739 (warn_odr): Support warning when only one field is given.
1740 (odr_types_equivalent_p): Strenghten comparsions made;
1742 (add_type_duplicate): Update VISITED hash set.
1744 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1746 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1747 Enable selection of 'posix' or no thread model.
1749 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1751 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1752 when architecture is older than ARMv7.
1754 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
1757 * config/pa/pa.c (pa_function_value): Directly handle aggregates
1758 that fit exactly in a word or double word.
1760 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
1762 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1765 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1767 Anna Tikhonova <anna.tikhonova@intel.com>
1768 Ilya Tocar <ilya.tocar@intel.com>
1769 Andrey Turetskiy <andrey.turetskiy@intel.com>
1770 Ilya Verbin <ilya.verbin@intel.com>
1771 Kirill Yukhin <kirill.yukhin@intel.com>
1772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1774 * config/i386/i386.c
1775 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1776 * config/i386/sse.md
1777 (define_mode_iterator VI48F_256): New.
1778 (define_mode_attr extract_type): Ditto.
1779 (define_mode_attr extract_suf): Ditto.
1780 (define_mode_iterator AVX512_VEC): Ditto.
1782 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1784 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1786 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1788 (define_mode_attr extract_type_2): Ditto.
1789 (define_mode_attr extract_suf_2): Ditto.
1790 (define_mode_iterator AVX512_VEC_2): Ditto.
1792 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1793 AVX512_VEC_2 mode iterator.
1794 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1795 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1796 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1797 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1798 (define_split for V16FI mode): Ditto.
1799 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1800 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1801 (define_split for VI8F_256 mode): Ditto.
1802 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1803 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1804 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1805 (define_split for VI4F_256 mode): Ditto.
1806 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1807 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1808 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1809 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1810 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1811 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1812 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1813 Update `type' attribute, remove explicit `memory' attribute calculation.
1815 2014-09-16 Kito Cheng <kito@0xlab.org>
1817 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1818 ira_spilled_reg_stack_slots_num if using lra.
1819 (do_reload): Remove release ira_spilled_reg_stack_slots part.
1820 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1821 make sure not using lra.
1822 (ira_reuse_stack_slot): Likewise.
1823 (ira_mark_new_stack_slot): Likewise.
1825 2014-09-15 Andi Kleen <ak@linux.intel.com>
1827 * function.c (allocate_struct_function): Force
1828 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1829 profiling is disabled.
1831 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1833 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1834 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1835 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1836 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1837 macro with statically checked member functions.
1838 * rtl.h (rtx_insn::deleted): New method.
1839 (rtx_insn::set_deleted): Likewise.
1840 (rtx_insn::set_undeleted): Likewise.
1841 (INSN_DELETED_P): Remove.
1843 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
1845 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1846 result of emit_jump_insn_before to a new variable.
1847 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1848 (mark_jump_label_1): Likewise.
1849 (mark_jump_label_asm): Likewise.
1850 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1851 * rtl.h (mark_jump_label): Adjust.
1853 2014-09-15 Jakub Jelinek <jakub@redhat.com>
1855 * Makefile.in (dg_target_exps): Remove.
1856 (check_gcc_parallelize): Change to just an upper bound number.
1857 (check-%-subtargets): Always print the non-parallelized goals.
1858 (check_p_vars, check_p_comma, check_p_subwork): Remove.
1859 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1860 check_p_numbers3, check_p_numbers4, check_p_numbers5,
1861 check_p_numbers6): New variables.
1862 (check_p_numbers): Set to sequence from 1 to 9999.
1863 (check_p_subdirs): Set to sequence from 1 to minimum of
1864 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1866 (check-%, check-parallel-%): Rewritten so that for parallelized
1867 testing each job runs all the *.exp files, with
1868 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1870 2014-09-15 David Malcolm <dmalcolm@redhat.com>
1872 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1874 (arc_sets_cc_p): Likewise.
1875 * config/arc/arc.c (arc_print_operand): Use methods of
1876 "final_sequence" for clarity, and to enable strengthening of
1877 locals "jump" and "delay" from rtx to rtx_insn *.
1878 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1879 rtx_insn *; use method of rtx_sequence for typesafety.
1880 (arc_get_insn_variants): Use insn method of rtx_sequence for
1882 (arc_pad_return): Likewise.
1883 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1884 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
1885 dyn_cast to rtx_sequence *, using insn method for typesafety.
1886 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1887 rtx_sequence * and use insn method when invoking get_attr_length.
1888 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1889 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
1890 rtx_sequence *, introducing a local "seq", using its insn method
1891 from typesafety and clarity.
1892 (add_sched_insns_for_speculation): Strengthen local "next" from
1894 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1895 (predicate_insn): Likewise.
1896 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1898 * config/cris/cris.c (cris_notice_update_cc): Likewise.
1899 * config/epiphany/epiphany-protos.h
1900 (extern void epiphany_insert_mode_switch_use): Likewise for param
1902 (get_attr_sched_use_fpu): Likewise for param.
1903 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1904 Likewise for param "insn".
1905 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1906 param "insn" of "target_insert_mode_switch_use" callback.
1907 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1908 (frv_issues_to_branch_unit_p): Likewise.
1909 (frv_pack_insn_p): Likewise.
1910 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1911 const rtx * (i.e. mutable rtx_def * const *) to
1913 * config/i386/i386-protos.h (standard_sse_constant_opcode):
1914 Strengthen first param from rtx to rtx_insn *.
1915 (output_fix_trunc): Likewise.
1916 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1917 (output_fix_trunc): Likewise.
1918 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1920 (min_insn_size): Likewise for param "insn".
1921 (get_mem_group): Likewise.
1923 (get_insn_path): Likewise.
1924 (get_insn_group): Likewise.
1925 (count_num_restricted): Likewise.
1926 (fits_dispatch_window): Likewise.
1927 (add_insn_window): Likewise.
1928 (add_to_dispatch_window): Likewise.
1929 (debug_insn_dispatch_info_file): Likewise.
1930 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1932 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1933 "cmp" and local "prev".
1934 (m32c_output_compare): Likewise for param "insn".
1935 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1936 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1937 (define_predicate "large_insn_p"): Likewise.
1938 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1939 param from rtx to rtx_insn *.
1940 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1941 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1942 (m68k_sched_attr_size): Likewise.
1943 (sched_get_opxy_mem_type): Likewise for param "insn".
1944 (m68k_sched_attr_op_mem): Likewise.
1945 (sched_mem_operand_p): Likewise.
1946 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1947 * config/mep/mep.c (mep_multi_slot): Likewise.
1948 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1950 (mips_sync_loop_insns): Likewise.
1951 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1952 method of "final_sequence" for typesafety.
1953 (mips_process_sync_loop): Strengthen param "insn" from rtx to
1955 (mips_output_sync_loop): Likewise.
1956 (mips_sync_loop_insns): Likewise.
1957 (mips_74k_agen_init): Likewise.
1958 (mips_sched_init): Use NULL rather than NULL_RTX when working with
1960 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1961 Strengthen param "insn" from rtx to rtx_insn *.
1962 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1964 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1966 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1967 "insn". Use method of rtx_sequence for typesafety.
1968 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1970 (branch_needs_nop_p): Likewise.
1971 (use_skip_p): Likewise.
1972 (pa_insn_refs_are_delayed): Likewise.
1973 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1974 for locals "insn", "ninsn".
1975 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1977 (is_cracked_insn): Likewise.
1978 (is_branch_slot_insn): Likewise.
1979 (is_nonpipeline_insn): Likewise.
1980 (insn_terminates_group_p): Likewise.
1981 (insn_must_be_first_in_group): Likewise.
1982 (insn_must_be_last_in_group): Likewise.
1983 (force_new_group): Likewise for param "next_insn".
1984 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1986 (s390_sched_score): Likewise.
1987 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1988 (rtx sfunc_uses_reg): Likewise for sole param.
1989 * config/sh/sh.c (sh_print_operand): Use insn method of
1990 final_sequence for typesafety.
1991 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1992 Use insn method of final_sequence for typesafety.
1993 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1994 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1996 (eligible_for_return_delay): Likewise.
1997 (eligible_for_sibcall_delay): Likewise.
1998 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1999 (eligible_for_return_delay): Likewise.
2000 (eligible_for_sibcall_delay): Likewise.
2001 * config/stormy16/stormy16-protos.h
2002 (xstormy16_output_cbranch_hi): Likewise for final param.
2003 (xstormy16_output_cbranch_si): Likewise.
2004 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2005 (xstormy16_output_cbranch_si): Likewise.
2006 * config/v850/v850-protos.h (notice_update_cc): Likewise.
2007 * config/v850/v850.c (notice_update_cc): Likewise.
2009 * final.c (get_attr_length_1): Strengthen param "insn" and param
2010 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2011 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2012 (get_attr_min_length): Likewise.
2013 (shorten_branches): Likewise for signature of locals "length_fun"
2014 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
2015 from a checked cast and use its methods for clarity and to enable
2016 strengthening local "inner_insn" from rtx to rtx_insn *.
2017 * genattr.c (gen_attr): When writing out the prototypes of the
2018 various generated "get_attr_" functions, strengthen the params of
2019 the non-const functions from rtx to rtx_insn *.
2020 Similarly, strengthen the params of insn_default_length,
2021 insn_min_length, insn_variable_length_p, insn_current_length.
2022 (main): Similarly, strengthen the param of num_delay_slots,
2023 internal_dfa_insn_code, insn_default_latency, bypass_p,
2024 insn_latency, min_issue_delay, print_reservation,
2025 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2026 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
2027 to hook_int_rtx_insn_unreachable.
2028 * genattrtab.c (write_attr_get): When writing out the generated
2029 "get_attr_" functions, strengthen the param "insn" from rtx to
2030 rtx_insn *, eliminating a checked cast.
2031 (make_automaton_attrs): When writing out prototypes of
2032 "internal_dfa_insn_code_", "insn_default_latency_" functions
2033 and the "internal_dfa_insn_code" and "insn_default_latency"
2034 callbacks, strengthen their params from rtx to rtx_insn *
2035 * genautomata.c (output_internal_insn_code_evaluation): When
2036 writing out code, add a checked cast from rtx to rtx_insn * when
2037 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2038 (output_dfa_insn_code_func): Strengthen param of generated
2039 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2040 (output_trans_func): Likewise for generated function
2042 (output_internal_insn_latency_func): When writing out generated
2043 function "internal_insn_latency", rename params from "insn" and
2044 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
2045 locals "insn" and "insn2" as rtx_insn * with checked casts once
2046 we've proven that we're not dealing with const0_rtx.
2047 (output_insn_latency_func): Strengthen param of generated
2048 function "insn_latency" from rtx to rtx_insn *.
2049 (output_print_reservation_func): Likewise for generated function
2050 "print_reservation".
2051 (output_insn_has_dfa_reservation_p): Likewise for generated
2052 function "insn_has_dfa_reservation_p".
2053 * hooks.c (hook_int_rtx_unreachable): Rename to...
2054 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2055 from rtx to rtx_insn *.
2056 * hooks.h (hook_int_rtx_unreachable): Likewise.
2057 (extern int hook_int_rtx_insn_unreachable): Likewise.
2058 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2059 (get_attr_min_length): Likewise.
2060 * recog.c (get_enabled_alternatives): Likewise.
2061 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2062 * reorg.c (find_end_label): Introduce local rtx "pat" and
2063 strengthen local "insn" from rtx to rtx_insn *.
2064 (redundant_insn): Use insn method of "seq" rather than element for
2065 typesafety; strengthen local "control" from rtx to rtx_insn *.
2066 * resource.c (mark_referenced_resources): Add checked cast to
2067 rtx_insn * within INSN/JUMP_INSN case.
2068 (mark_set_resources): Likewise.
2069 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2072 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2074 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2075 param "label" from rtx to rtx_insn *.
2076 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2078 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2079 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2080 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2081 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2082 * final.c (default_label_align_after_barrier_max_skip): Strengthen
2083 param from rtx to rtx_insn *.
2084 (default_loop_align_max_skip): Likewise.
2085 (default_label_align_max_skip): Likewise.
2086 (default_jump_align_max_skip): Likewise.
2087 * target.def (label_align_after_barrier_max_skip): Likewise.
2088 (loop_align_max_skip): Likewise.
2089 (label_align_max_skip): Likewise.
2090 (jump_align_max_skip): Likewise.
2091 * targhooks.h (default_label_align_after_barrier_max_skip):
2093 (default_loop_align_max_skip): Likewise.
2094 (default_label_align_max_skip): Likewise.
2095 (default_jump_align_max_skip): Likewise.
2097 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2099 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2100 from const_rtx to const rtx_insn *. Update union members from rtx
2102 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2103 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2104 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2105 strengthen both params from const_rtx to const rtx_insn *.
2106 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2107 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2108 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2110 * target.def (can_follow_jump): Strengthen both params from
2111 const_rtx to const rtx_insn *, and update default implementation
2112 from hook_bool_const_rtx_const_rtx_true to
2113 hook_bool_const_rtx_insn_const_rtx_insn_true.
2115 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2117 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2118 "insn" from rtx to rtx_insn *.
2119 * sched-int.h (deps_start_bb): Likewise for 2nd param.
2121 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2123 Anna Tikhonova <anna.tikhonova@intel.com>
2124 Ilya Tocar <ilya.tocar@intel.com>
2125 Andrey Turetskiy <andrey.turetskiy@intel.com>
2126 Ilya Verbin <ilya.verbin@intel.com>
2127 Kirill Yukhin <kirill.yukhin@intel.com>
2128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2130 * config/i386/sse.md
2131 (define_insn "vcvtph2ps<mask_name>"): Add masking.
2132 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2133 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2134 (define_expand "vcvtps2ph_mask"): New.
2135 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2136 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2137 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2139 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2141 Anna Tikhonova <anna.tikhonova@intel.com>
2142 Ilya Tocar <ilya.tocar@intel.com>
2143 Andrey Turetskiy <andrey.turetskiy@intel.com>
2144 Ilya Verbin <ilya.verbin@intel.com>
2145 Kirill Yukhin <kirill.yukhin@intel.com>
2146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2148 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2150 (define_mode_iterator VI24_AVX512BW_1): Ditto.
2151 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2152 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2153 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2154 also for TARGET_AVX512VL.
2155 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2157 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
2159 * doc/install.texi (Options specification): add
2160 --disable-libsanitizer item.
2162 2014-09-14 James Clarke <jrtc27@jrtc27.com>
2163 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2166 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2168 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2169 kernel version check to avoid incrementing it after every major OS X
2171 (darwin_default_min_version): Avoid static memory buffer.
2173 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
2175 * tree.c (need_assembler_name_p): Store C++ type mangling only
2178 2014-09-13 Marek Polacek <polacek@redhat.com>
2180 * tree.c (protected_set_expr_location): Don't check whether T is
2183 2014-09-12 DJ Delorie <dj@redhat.com>
2185 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2186 (extend_and_shift1_hipsi2): Likewise.
2187 (extend_and_shift2_hipsi2): Likewise.
2189 2014-09-12 David Malcolm <dmalcolm@redhat.com>
2191 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2192 with NULL when dealing with an insn.
2193 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2194 from rtx to rtx_insn *.
2195 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2196 const_rtx to const rtx_insn *.
2197 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2199 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
2201 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2204 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2206 * target.def (libgcc_floating_mode_supported_p): New hook.
2207 * targhooks.c (default_libgcc_floating_mode_supported_p): New
2209 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2210 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2211 (LIBGCC2_HAS_TF_MODE): Remove.
2212 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2213 * doc/tm.texi: Regenerate.
2214 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2216 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2217 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2218 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2219 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2220 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2221 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2222 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2223 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2224 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2225 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2227 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2228 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2229 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2230 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2231 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2232 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2233 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2234 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2235 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2236 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2237 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2238 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2239 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2240 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2242 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2244 (ia64_libgcc_floating_mode_supported_p): New function.
2245 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2246 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2247 (IA64_NO_LIBGCC_TFMODE): Define.
2248 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2249 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2251 (pdp11_scalar_mode_supported_p): New function.
2252 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2253 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2255 2014-09-12 Richard Biener <rguenther@suse.de>
2258 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2260 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
2262 * tree.c (integer_each_onep): New function.
2263 * tree.h (integer_each_onep): Declare it.
2264 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2265 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2266 (X & 1) == 0 for vector and complex.
2268 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2270 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2272 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
2273 cost to spilling from integer to FP registers.
2275 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2277 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2279 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2280 are now handled correctly.
2282 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2284 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2285 handling of CALLER_SAVE_REGS and POINTER_REGS.
2287 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2289 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2290 the number of hard registers.
2292 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2294 Anna Tikhonova <anna.tikhonova@intel.com>
2295 Ilya Tocar <ilya.tocar@intel.com>
2296 Andrey Turetskiy <andrey.turetskiy@intel.com>
2297 Ilya Verbin <ilya.verbin@intel.com>
2298 Kirill Yukhin <kirill.yukhin@intel.com>
2299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2301 * config/i386/sse.md
2302 (define_mode_iterator VI48_AVX512VL): New.
2303 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2304 "avx512f_vternlog<mode>_maskz" and update mode iterator.
2305 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2306 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2307 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2308 "avx512f_vternlog<mode>_mask" and update mode iterator.
2309 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2310 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2312 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2313 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2314 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2315 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2316 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2317 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2319 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2321 Anna Tikhonova <anna.tikhonova@intel.com>
2322 Ilya Tocar <ilya.tocar@intel.com>
2323 Andrey Turetskiy <andrey.turetskiy@intel.com>
2324 Ilya Verbin <ilya.verbin@intel.com>
2325 Kirill Yukhin <kirill.yukhin@intel.com>
2326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2328 * config/i386/sse.md (VI128_256): Delete.
2329 (define_mode_iterator VI124_256): New.
2330 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2331 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2332 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2333 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2334 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2335 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2336 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2337 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2339 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2340 in presence of AVX-512.
2342 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2343 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2344 Anna Tikhonova <anna.tikhonova@intel.com>
2345 Ilya Tocar <ilya.tocar@intel.com>
2346 Andrey Turetskiy <andrey.turetskiy@intel.com>
2347 Ilya Verbin <ilya.verbin@intel.com>
2348 Kirill Yukhin <kirill.yukhin@intel.com>
2349 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2351 * config/i386/sse.md
2352 (define_expand "<avx512>_gathersi<mode>"): Rename from
2353 "avx512f_gathersi<mode>".
2354 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2355 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2356 (define_expand "<avx512>_gatherdi<mode>"): Rename from
2357 "avx512f_gatherdi<mode>".
2358 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2359 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2361 (define_expand "<avx512>_scattersi<mode>"): Rename from
2362 "avx512f_scattersi<mode>".
2363 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2364 (define_expand "<avx512>_scatterdi<mode>"): Rename from
2365 "avx512f_scatterdi<mode>".
2366 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2368 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
2370 * ira.h (ira_finish_once): Delete.
2371 * ira-int.h (target_ira_int::~target_ira_int): Declare.
2372 (target_ira_int::free_ira_costs): Likewise.
2373 (target_ira_int::free_register_move_costs): Likewise.
2374 (ira_finish_costs_once): Delete.
2375 * ira.c (free_register_move_costs): Replace with...
2376 (target_ira_int::free_register_move_costs): ...this new function.
2377 (target_ira_int::~target_ira_int): Define.
2378 (ira_init): Call free_register_move_costs as a member function rather
2379 than a global function.
2380 (ira_finish_once): Delete.
2381 * ira-costs.c (free_ira_costs): Replace with...
2382 (target_ira_int::free_ira_costs): ...this new function.
2383 (ira_init_costs): Call free_ira_costs as a member function rather
2384 than a global function.
2385 (ira_finish_costs_once): Delete.
2386 * target-globals.c (target_globals::~target_globals): Call the
2387 target_ira_int destructor.
2388 * toplev.c: Include lra.h.
2389 (finalize): Call lra_finish_once rather than ira_finish_once.
2391 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
2393 * common.opt (flto-odr-type-merging): New flag.
2394 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2395 (types_same_for_odr): Likewise.
2396 (odr_subtypes_equivalent_p): Likewise.
2397 (add_type_duplicate): Do not walk type variants.
2398 (register_odr_type): New function.
2399 * ipa-utils.h (register_odr_type): Declare.
2400 (odr_type_p): New function.
2401 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2403 * doc/invoke.texi (-flto-odr-type-merging): Document.
2404 * tree.c (need_assembler_name_p): Compute ODR names when asked
2406 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2408 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
2411 * config/i386/i386.c (ix86_option_override_internal): Also turn
2412 off OPTION_MASK_ABI_X32 for -m16.
2414 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2416 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2419 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2422 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2423 Directly forward to __*_DENORM_MIN__.
2425 2014-09-11 David Malcolm <dmalcolm@redhat.com>
2427 * rtl.h (LABEL_REF_LABEL): New macro.
2429 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2430 of XEXP (, 0), where we know that we have a LABEL_REF.
2431 * cfgbuild.c (make_edges): Likewise.
2432 (purge_dead_tablejump_edges): Likewise.
2433 * cfgexpand.c (convert_debug_memory_address): Likewise.
2434 * cfgrtl.c (patch_jump_insn): Likewise.
2435 * combine.c (distribute_notes): Likewise.
2436 * cse.c (hash_rtx_cb): Likewise.
2437 (exp_equiv_p): Likewise.
2438 (fold_rtx): Likewise.
2439 (check_for_label_ref): Likewise.
2440 * cselib.c (rtx_equal_for_cselib_1): Likewise.
2441 (cselib_hash_rtx): Likewise.
2442 * emit-rtl.c (mark_label_nuses): Likewise.
2443 * explow.c (convert_memory_address_addr_space): Likewise.
2444 * final.c (output_asm_label): Likewise.
2445 (output_addr_const): Likewise.
2446 * gcse.c (add_label_notes): Likewise.
2447 * genconfig.c (walk_insn_part): Likewise.
2448 * genrecog.c (validate_pattern): Likewise.
2449 * ifcvt.c (cond_exec_get_condition): Likewise.
2450 (noce_emit_store_flag): Likewise.
2451 (noce_get_alt_condition): Likewise.
2452 (noce_get_condition): Likewise.
2453 * jump.c (maybe_propagate_label_ref): Likewise.
2454 (mark_jump_label_1): Likewise.
2455 (redirect_exp_1): Likewise.
2456 (rtx_renumbered_equal_p): Likewise.
2457 * lra-constraints.c (operands_match_p): Likewise.
2458 * reload.c (operands_match_p): Likewise.
2459 (find_reloads): Likewise.
2460 * reload1.c (set_label_offsets): Likewise.
2461 * reorg.c (get_branch_condition): Likewise.
2462 * rtl.c (rtx_equal_p_cb): Likewise.
2463 (rtx_equal_p): Likewise.
2464 * rtlanal.c (reg_mentioned_p): Likewise.
2465 (rtx_referenced_p): Likewise.
2466 (get_condition): Likewise.
2467 * sched-vis.c (print_value): Likewise.
2468 * varasm.c (const_hash_1): Likewise.
2469 (compare_constant): Likewise.
2470 (const_rtx_hash_1): Likewise.
2471 (output_constant_pool_1): Likewise.
2473 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
2475 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2476 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2478 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2479 cr6_test_for_lt_reverse): Ditto.
2481 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
2484 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2486 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2488 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2489 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2490 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2491 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2494 (aarch64_fold_builtin): Remove all reinterpret cases.
2496 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2498 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2500 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2501 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2502 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2503 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2504 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2505 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2506 aarch64_reinterpretv2df<mode>): Delete.
2508 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2510 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2511 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2512 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2513 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2514 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2515 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2516 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2517 vreinterpret_u32_f64): Use cast.
2519 * config/aarch64/iterators.md (VD_RE): Delete.
2521 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
2523 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2524 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2525 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2526 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2527 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2528 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2529 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2530 Replace inline assembler with __aarch64_vset_lane_any.
2532 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
2534 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2536 (vmull_high_lane_s32): Likewise.
2537 (vmull_high_lane_u16): Likewise.
2538 (vmull_high_lane_u32): Likewise.
2540 2014-09-11 Jason Merrill <jason@redhat.com>
2543 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2545 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
2548 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2549 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
2550 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2552 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2553 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2554 Anna Tikhonova <anna.tikhonova@intel.com>
2555 Ilya Tocar <ilya.tocar@intel.com>
2556 Andrey Turetskiy <andrey.turetskiy@intel.com>
2557 Ilya Verbin <ilya.verbin@intel.com>
2558 Kirill Yukhin <kirill.yukhin@intel.com>
2559 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2561 * config/i386/sse.md
2562 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2563 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2564 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2566 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2567 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2569 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2571 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2572 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2573 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2574 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2575 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2576 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2577 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2578 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2580 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2582 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2583 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2584 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2586 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2588 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2589 to access removed nodes.
2591 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2593 PR tree-optimization/63186
2594 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2595 (mark_nonssa_use): Likewise.
2596 (verify_non_ssa_vars): Verify all header blocks for label
2599 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2601 Anna Tikhonova <anna.tikhonova@intel.com>
2602 Ilya Tocar <ilya.tocar@intel.com>
2603 Andrey Turetskiy <andrey.turetskiy@intel.com>
2604 Ilya Verbin <ilya.verbin@intel.com>
2605 Kirill Yukhin <kirill.yukhin@intel.com>
2606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2608 * config/i386/sse.md
2609 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2610 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2611 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2612 "<avx2_avx512f>_permvar<mode><mask_name>".
2613 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2614 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2615 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2616 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2618 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2619 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2620 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2621 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2623 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2625 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2626 V2DF, V4SF, DF, and DI modes.
2627 (vsx_fmav2df2): Likewise.
2628 (vsx_float_fix_<mode>2): Likewise.
2629 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2631 2014-09-10 Xinliang David Li <davidxl@google.com>
2634 * config/arm/arm.md (movcond_addsi): Handle case where source
2635 and target operands are the same.
2637 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2639 * final.c (this_is_asm_operands): Strengthen this variable from
2640 rtx to const rtx_insn *.
2641 * output.h (this_is_asm_operands): Likewise.
2642 * rtl-error.c (location_for_asm): Strengthen param "insn" from
2643 const_rtx to const rtx_insn *.
2644 (diagnostic_for_asm): Likewise.
2645 * rtl-error.h (error_for_asm): Likewise.
2646 (warning_for_asm): Likewise.
2648 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2650 * genextract.c (print_header): When writing out insn_extract to
2651 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2652 * recog.h (insn_extract): Strengthen the param from rtx to
2655 2014-09-10 Mike Stump <mikestump@comcast.net>
2657 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2660 2014-09-10 Martin Jambor <mjambor@suse.cz>
2662 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2663 (analyze): Do not set analyze flag if expand_thunk returns false;.
2664 (create_wrapper): Likewise.
2665 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2667 2014-09-10 Martin Jambor <mjambor@suse.cz>
2670 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2671 new decl properly. Analyze the new thunk if it is expanded.
2673 2014-09-10 Andreas Schwab <schwab@suse.de>
2675 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2676 [USED_FOR_TARGET]: Define.
2678 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
2680 * config/mips/mips.c (mips_secondary_reload_class): Handle
2683 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
2685 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2688 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2690 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2691 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2692 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2693 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2694 flag_delete_null_pointer_checks for them.
2695 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2696 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2697 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2698 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2699 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2701 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2702 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2703 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2704 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2705 * doc/invoke.texi (-fsanitize=nonnull-attribute,
2706 -fsanitize=returns-nonnull-attribute): Document.
2708 * ubsan.h (struct ubsan_mismatch_data): Removed.
2709 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2710 * ubsan.c (ubsan_source_location): For unknown locations,
2711 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2712 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2713 Allow more than one location and arbitrary extra arguments passed
2714 in ... instead of through MISMATCH pointer.
2715 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2716 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2717 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2720 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2722 Anna Tikhonova <anna.tikhonova@intel.com>
2723 Ilya Tocar <ilya.tocar@intel.com>
2724 Andrey Turetskiy <andrey.turetskiy@intel.com>
2725 Ilya Verbin <ilya.verbin@intel.com>
2726 Kirill Yukhin <kirill.yukhin@intel.com>
2727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2729 * config/i386/sse.md
2730 (define_mode_iterator VI48F): New.
2731 (define_insn "<avx512>_compress<mode>_mask"): Rename from
2732 "avx512f_compress<mode>_mask" and update mode iterator.
2733 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2734 "avx512f_compressstore<mode>_mask" and update mode iterator.
2735 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2736 "avx512f_expand<mode>_maskz" and update mode iterator.
2737 (define_insn "<avx512>_expand<mode>_mask"): Rename from
2738 "avx512f_expand<mode>_mask" and update mode iterator.
2740 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2742 Anna Tikhonova <anna.tikhonova@intel.com>
2743 Ilya Tocar <ilya.tocar@intel.com>
2744 Andrey Turetskiy <andrey.turetskiy@intel.com>
2745 Ilya Verbin <ilya.verbin@intel.com>
2746 Kirill Yukhin <kirill.yukhin@intel.com>
2747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2749 * config/i386/i386.c
2750 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2751 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2752 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2753 avx512dq_rangepv4sf_mask.
2754 * config/i386/sse.md
2755 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2757 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2758 (define_insn "reduces<mode>"): Ditto.
2759 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2761 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2762 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2763 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2765 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2767 Anna Tikhonova <anna.tikhonova@intel.com>
2768 Ilya Tocar <ilya.tocar@intel.com>
2769 Andrey Turetskiy <andrey.turetskiy@intel.com>
2770 Ilya Verbin <ilya.verbin@intel.com>
2771 Kirill Yukhin <kirill.yukhin@intel.com>
2772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2774 * config/i386/i386.c
2775 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2776 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2777 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2778 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2779 avx512vl_getmantv2df_mask.
2780 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2781 avx512f_vgetmantv4sf_round.
2782 * config/i386/sse.md
2783 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2784 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2786 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2787 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2788 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2789 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2791 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2792 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2793 update mode iterator.
2795 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2796 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2799 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2800 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2801 update mode iterator.
2802 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2803 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2806 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2807 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2809 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2810 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2811 update mode iterator.
2812 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2813 "avx512f_getmant<mode><round_saeonly_name>".
2815 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2818 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2820 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2821 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2822 Anna Tikhonova <anna.tikhonova@intel.com>
2823 Ilya Tocar <ilya.tocar@intel.com>
2824 Andrey Turetskiy <andrey.turetskiy@intel.com>
2825 Ilya Verbin <ilya.verbin@intel.com>
2826 Kirill Yukhin <kirill.yukhin@intel.com>
2827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2829 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2830 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2831 (define_mode_iterator FMAMODE_AVX512): New.
2832 (define_mode_iterator FMAMODE): Remove conditions.
2833 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2834 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2835 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2837 (define_mode_iterator FMAMODE_NOVF512): Remove.
2838 (define_insn "*fma_fmadd_<mode>"): Rename from
2839 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2840 FMAMODE mode iterator.
2841 (define_mode_iterator VF_SF_AVX512VL): New.
2842 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2843 Use VF_SF_AVX512VL mode iterator.
2844 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2845 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2847 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2848 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2850 (define_insn "*fma_fmsub_<mode>"): Rename from
2851 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2852 FMAMODE mode iterator.
2853 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2854 Use VF_SF_AVX512VL mode iterator.
2855 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2856 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2858 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2859 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2861 (define_insn "*fma_fnmadd_<mode>"): Rename from
2862 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2863 use FMAMODE mode iterator.
2864 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2865 Use VF_SF_AVX512VL mode iterator.
2866 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2867 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2869 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2870 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2872 (define_insn "*fma_fnmsub_<mode>"): Rename from
2873 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2874 FMAMODE mode iterator.
2875 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2876 Use VF_SF_AVX512VL mode iterator.
2877 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2878 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2880 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2881 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2883 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2884 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2885 use VF_AVX512VL mode iterator.
2886 (define_insn "*fma_fmaddsub_<mode>"): Rename from
2887 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2889 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2890 Use VF_SF_AVX512VL mode iterator.
2891 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2892 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2894 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2895 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2897 (define_insn "*fma_fmsubadd_<mode>"): Rename from
2898 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2899 remove usage of subst.
2900 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2901 Use VF_SF_AVX512VL mode iterator.
2902 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2903 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2905 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2906 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2909 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2912 * calls.c (precompute_arguments): Check
2913 promoted_for_signed_and_unsigned_p and set the promoted mode.
2914 (promoted_for_signed_and_unsigned_p): New function.
2915 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2916 and set the promoted mode.
2917 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2918 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2919 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2921 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2923 * opth-gen.awk: Generate mapping from cpp message reasons to the
2924 options that enable them.
2925 * doc/options.texi (CppReason): Document.
2927 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2929 * doc/invoke.texi (Wnormalized=): Update.
2931 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2934 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2935 operands. Split off the constant operand alternative to ...
2936 (*bool<mode>3_imm): New.
2938 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2940 * rtl.h (single_set_2): Strengthen first param from const_rtx to
2941 const rtx_insn *, and move prototype to above...
2942 (single_set): ...this. Convert this from a macro to an inline
2943 function, enforcing the requirement that the param is a const
2945 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2947 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2948 Strengthen both params from rtx to rtx_insn *.
2949 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2950 Likewise; introduce locals "producer_set", "consumer_set", using
2951 them in place of "producer" and "consumer" when dealing with SET
2953 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2954 when invoking single_set in region guarded by INSN_P.
2955 (avr_out_bitop): Likewise.
2956 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2957 region guarded by GET_CODE check, using methods to strengthen
2958 local "this_insn" from rtx to rtx_insn *, and for clarity.
2959 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2960 Strengthen local "insn" from rtx to rtx_insn *.
2961 (define_insn_and_split "xload<mode>_A"): Likewise.
2962 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2964 (find_load): Likewise for return type.
2965 (workaround_speculation): Likewise for both locals named
2967 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2969 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2971 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2973 * config/h8300/h8300.c (notice_update_cc): Likewise.
2974 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2975 "insn" and "dep_insn".
2976 (exact_store_load_dependency): Likewise for both params.
2977 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2978 since this now clashes with inline function. Instead, delay
2979 calling single_set until the point where its needed, and then
2980 assign the result to "compare_set" and rework the conditional that
2982 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2983 local "last" from rtx to rtx_insn *.
2984 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2986 (mips_store_data_bypass_p): Likewise for both params.
2987 * config/mips/mips.c (mips_load_store_insns): Likewise for second
2989 (mips_store_data_bypass_p): Likewise for both params.
2990 (mips_orphaned_high_part_p): Likewise for param "insn".
2991 * config/mn10300/mn10300.c (extract_bundle): Likewise.
2992 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2993 Introduce local rtx "insn2_pat".
2994 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2996 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2997 Introduce local rtx "set", using it in place of "insn" for the
2998 result of single_set. This appears to fix a bug, since the call
2999 to find_regno_note on a SET does nothing.
3000 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3001 params from rtx to rtx_insn *.
3002 (set_to_load_agen): Likewise.
3003 * config/s390/s390.c (s390_label_align): Likewise for local
3004 "prev_insn". Introduce new rtx locals "set" and "src", using
3005 them in place of "prev_insn" for the results of single_set
3006 and SET_SRC respectively.
3007 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3008 Introduce new rtx local "set" using in place of "jump" for the
3009 result of single_set. Use SET_SRC (set) rather than plain
3011 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3013 (noncall_uses_reg): Likewise.
3014 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3015 guarded by GET_CODE check, using its methods for clarity, and to
3016 enable strengthening local "this_insn" from rtx to rtx_insn *.
3017 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3018 "insn" from rtx to rtx_insn *.
3019 (define_expand "umulhisi3"): Likewise.
3020 (define_expand "smulsi3_highpart"): Likewise.
3021 (define_expand "umulsi3_highpart"): Likewise.
3022 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3023 local "after". Replace GET_CODE check with a dyn_cast,
3024 introducing new local rtx_sequence * "seq", using insn method for
3027 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3028 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
3029 place of "insn" once we're dealing with patterns rather than the
3031 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3032 (scan_trace): Likewise for local "elt", updating lookups within
3033 sequence to use insn method rather than element method.
3034 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3036 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3037 * ifcvt.c (noce_try_abs): Likewise for local "insn".
3038 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3039 invoking single_set.
3040 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3041 "insn" from rtx to rtx_insn *.
3042 (skip_usage_debug_insns): Likewise for return type, adding a
3044 (check_secondary_memory_needed_p): Likewise for local "insn".
3045 (inherit_reload_reg): Likewise.
3046 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3047 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3049 (store_data_bypass_p): Likewise for both params.
3050 (if_test_bypass_p): Likewise.
3051 * recog.h (store_data_bypass_p): Likewise for both params.
3052 (if_test_bypass_p): Likewise.
3053 * reload.c (find_equiv_reg): Likewise for local "where".
3054 * reorg.c (delete_jump): Likewise for param "insn".
3055 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3056 to const rtx_insn *.
3057 * store-motion.c (replace_store_insn): Likewise for param "del".
3058 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3059 and use its methods for clarity, and to strengthen local "del"
3060 from rtx to rtx_insn *.
3061 (build_store_vectors): Use insn method of "st" when calling
3062 replace_store_insn for typesafety and clarity.
3064 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3066 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3067 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3068 on how to make it legal in future.
3070 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3072 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3074 (restinsn): Likewise.
3075 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3077 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3079 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3081 (arc_hazard): Likewise for both params.
3082 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3083 checked casts to rtx_sequence * and uses of the insn method for
3085 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3086 (arc_adjust_insn_length): Likewise for param "insn".
3087 (struct insn_length_parameters_s): Likewise for first param of
3088 "get_variants" callback field.
3089 (arc_get_insn_variants): Likewise for first param and local
3090 "inner". Replace a check of GET_CODE with a dyn_cast to
3091 rtx_sequence *, using methods for type-safety and clarity.
3092 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3093 rtx_sequence * and uses of the insn method for type-safety when
3094 invoking arc_adjust_insn_length.
3095 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3097 (arm_address_offset_is_imm): Likewise.
3098 (struct tune_params): Likewise for params 1 and 3 of the
3099 "sched_adjust_cost" callback field.
3100 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3101 params 1 and 3 ("insn" and "dep").
3102 (xscale_sched_adjust_cost): Likewise.
3103 (fa726te_sched_adjust_cost): Likewise.
3104 (cortexa7_older_only): Likewise for param "insn".
3105 (cortexa7_younger): Likewise.
3106 (arm_attr_length_move_neon): Likewise.
3107 (arm_address_offset_is_imm): Likewise.
3108 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3109 * config/avr/avr.c (avr_notice_update_cc): Likewise.
3110 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3111 (workaround_speculation): Likewise for local "last_condjump".
3112 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3113 (shadow_or_blockage_p): Likewise.
3114 (get_unit_reqs): Likewise.
3115 (get_unit_operand_masks): Likewise.
3116 (c6x_registers_update): Likewise.
3117 (returning_call_p): Likewise.
3118 (can_use_callp): Likewise.
3119 (convert_to_callp): Likewise.
3120 (find_last_same_clock): Likwise for local "t".
3121 (reorg_split_calls): Likewise for local "shadow".
3122 (hwloop_pattern_reg): Likewise for param "insn".
3123 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3124 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3125 (frv_extract_membar): Likewise.
3126 (frv_optimize_membar_local): Strengthen param "last_membar" from
3127 rtx * to rtx_insn **.
3128 (frv_optimize_membar_global): Strengthen param "membar" from rtx
3130 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3132 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3133 both params from rtx to rtx_insn *.
3134 (ia64_ld_address_bypass_p): Likewise.
3135 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3137 (ia64_safe_type): Likewise.
3138 (group_barrier_needed): Likewise.
3139 (safe_group_barrier_needed): Likewise.
3140 (ia64_single_set): Likewise.
3141 (is_load_p): Likewise.
3142 (record_memory_reference): Likewise.
3143 (get_mode_no_for_insn): Likewise.
3144 (important_for_bundling_p): Likewise.
3145 (unknown_for_bundling_p): Likewise.
3146 (ia64_st_address_bypass_p): Likewise for both params.
3147 (ia64_ld_address_bypass_p): Likewise.
3148 (expand_vselect): Introduce new local rtx_insn * "insn", using it
3149 in place of rtx "x" after the emit_insn call.
3150 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3151 Strengthen param from rtx to rtx_insn *.
3152 (ix86_agi_dependent): Likewise for both params.
3153 (ix86_attr_length_immediate_default): Likewise for param 1.
3154 (ix86_attr_length_address_default): Likewise for param.
3155 (ix86_attr_length_vex_default): Likewise for param 1.
3156 * config/i386/i386.c (ix86_attr_length_immediate_default):
3157 Likewise for param "insn".
3158 (ix86_attr_length_address_default): Likewise.
3159 (ix86_attr_length_vex_default): Likewise.
3160 (ix86_agi_dependent): Likewise for both params.
3161 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3162 (vselect_insn): Likewise for this variable.
3163 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3165 (m68k_sched_attr_opy_type): Likewise.
3166 * config/m68k/m68k.c (sched_get_operand): Likewise.
3167 (sched_attr_op_type): Likewise.
3168 (m68k_sched_attr_opx_type): Likewise.
3169 (m68k_sched_attr_opy_type): Likewise.
3170 (sched_get_reg_operand): Likewise.
3171 (sched_get_mem_operand): Likewise.
3172 (m68k_sched_address_bypass_p): Likewise for both params.
3173 (sched_get_indexed_address_scale): Likewise.
3174 (m68k_sched_indexed_address_bypass_p): Likewise.
3175 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3176 (m68k_sched_indexed_address_bypass_p): Likewise.
3177 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3178 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3180 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3181 params from rtx to rtx_insn *.
3182 (mips_fmadd_bypass): Likewise.
3183 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3184 (mips_linked_madd_p): Likewise.
3185 (mips_macc_chains_last_hilo): Likewise for this variable.
3186 (mips_macc_chains_record): Likewise for param.
3187 (vr4130_last_insn): Likewise for this variable.
3188 (vr4130_swap_insns_p): Likewise for both params.
3189 (mips_ls2_variable_issue): Likewise for param.
3190 (mips_need_noat_wrapper_p): Likewise for param "insn".
3191 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3192 in place of "x" after the emit_insn.
3193 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3194 params from rtx to rtx_insn *.
3195 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3196 (pa_combine_instructions): Introduce local "par" for result of
3197 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3199 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3200 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3201 (rl78_alloc_physical_registers_op1): Likewise.
3202 (rl78_alloc_physical_registers_op2): Likewise.
3203 (rl78_alloc_physical_registers_ro1): Likewise.
3204 (rl78_alloc_physical_registers_cmp): Likewise.
3205 (rl78_alloc_physical_registers_umul): Likewise.
3206 (rl78_alloc_address_registers_macax): Likewise.
3207 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3208 * config/s390/predicates.md (execute_operation): Likewise for
3210 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3212 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3213 (addr_generation_dependency_p): Likewise for param "insn".
3214 (s390_agen_dep_p): Likewise for both params.
3215 (s390_fpload_toreg): Likewise for param "insn".
3216 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3217 * config/sh/sh.c (sh_loop_align): Likewise for param and local
3219 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3220 * config/sh/sh_treg_combine.cc
3221 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3223 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3224 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3225 "and_insn", "load", "shift".
3226 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3228 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3229 for XEXP (note, 0) of the REG_CC_SETTER note.
3230 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3231 rtx_insn *, eliminating a checked cast made redundant by this.
3232 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3234 * genattr.c (main): When writing out the prototype to
3235 const_num_delay_slots, strengthen the param from rtx to
3237 * genattrtab.c (write_const_num_delay_slots): Likewise when
3238 writing out the implementation of const_num_delay_slots.
3239 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3240 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3241 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3242 favor of new rtx locals "src" and "set" and new local rtx_insn *
3244 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3246 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3247 locals "cond", "if_then_else", "set" and new rtx_insn * locals
3249 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3250 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
3251 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
3252 the top-level scope, replacing with new more tightly-scoped rtx
3253 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3254 "new_insn", "copy_of_insn_b", and make local rtx "set" more
3256 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3258 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3260 (ira_setup_alts): Likewise for param "insn".
3261 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3262 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3264 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3265 new more-tightly scoped rtx locals "add3_insn", "insn",
3266 "add2_insn" and rtx_insn * "move_insn".
3267 * postreload-gcse.c (eliminate_partially_redundant_load): Add
3268 checked cast on result of gen_move_insn when invoking
3270 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3272 (verify_changes): Add a checked cast on "object" when invoking
3274 (extract_insn_cached): Strengthen param "insn" from rtx to
3276 (extract_constrain_insn_cached): Likewise.
3277 (extract_insn): Likewise.
3278 * recog.h (insn_invalid_p): Likewise for param 1.
3279 (recog_memoized): Likewise for param.
3280 (extract_insn): Likewise.
3281 (extract_constrain_insn_cached): Likewise.
3282 (extract_insn_cached): Likewise.
3283 * reload.c (can_reload_into): Likewise for local "test_insn".
3284 * reload.h (cleanup_subreg_operands): Likewise for param.
3285 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3286 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3287 result of emit_insn. Remove a checked cast made redundant by this
3289 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3291 * sel-sched.c (get_reg_class): Likewise.
3293 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
3294 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3296 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3297 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3299 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3301 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3303 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3304 const rtx_insn *, and from rtx to rtx_insn * for the other
3306 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3307 INSN_LOCATION, since we know INSN_P holds.
3308 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3309 (insn_file): Likewise.
3310 (insn_scope): Likewise.
3311 (insn_location): Likewise.
3313 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3314 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3315 for the result of gen_load_const_gp.
3316 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3317 param from rtx to rtx_insn *.
3318 * config/rs6000/rs6000.c (output_call): Likewise.
3319 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3320 introducing a checked cast to rtx_sequence * and use of the insn
3322 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3323 from rtx to rtx_insn *.
3324 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3325 (insn_line): Likewise.
3326 (insn_file): Likewise.
3327 (insn_location): Likewise.
3328 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3329 from rtx to rtx_insn *.
3330 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3331 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3332 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3334 * reorg.c (relax_delay_slots): Strengthen locals named "after"
3335 from rtx to rtx_insn *; use methods of "pat" for type-safety.
3337 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3339 * combine.c (try_combine): Eliminate checked cast on result of
3341 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3342 autogenerated one by strengthening the return type and params 2 and 3
3343 from rtx to rtx_insn *, and by naming the params.
3344 * gengenrtl.c (special_rtx): Add INSN to those that are
3346 * rtl.h (gen_rtx_INSN): New prototype.
3348 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3350 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3352 (no_equiv): Likewise.
3353 (update_equiv_regs): Likewise.
3354 (setup_reg_equiv): Likewise. Strengthen locals "elem",
3355 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3356 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
3358 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3359 from rtx to rtx_insn_list *.
3360 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3361 rtx_insn_list * and use methods for clarity and typesafety.
3362 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3364 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
3365 redundant check on INSN_P (insns): this cannot hold, as "insns" is
3366 an INSN_LIST, not an insn.
3367 (reverse_equiv_p): Strengthen local "insns" from rtx to
3368 rtx_insn_list * and use methods for clarity and typesafety.
3369 (contains_reloaded_insn_p): Likewise for local "list".
3371 2014-09-09 Jiong Wang <jiong.wang@arm.com>
3373 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3374 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3375 (arm_builtin_vectorized_function): Likewise.
3376 * config/arm/arm_neon_builtins.def: New macro for copysignf.
3377 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3379 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
3381 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3382 * builtins.h (default_target_builtins): Likewise.
3383 * gcse.h (default_target_gcse): Likewise.
3384 * target-globals.h (target_globals): Add a destructor. Convert
3385 void-pointer fields back to their real type and change from
3386 GTY((atomic)) to GTY((skip)).
3387 (restore_target_globals): Remove casts accordingly.
3388 * target-globals.c (save_target_globals): Use XCNEW rather than
3389 ggc_internal_cleared_alloc to allocate non-GC structures.
3390 Use ggc_cleared_alloc to allocate the target_globals structure
3392 (target_globals::~target_globals): Define.
3394 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3396 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3397 mnemonic instead of fldmfdd.
3398 * config/arm/arm.c (vfp_output_fstmd): Rename to...
3399 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
3400 Output vpush when address register is SP.
3401 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3402 (vfp_output_vstmd): ... This.
3403 * config/arm/vfp.md (push_multi_vfp): Update call to
3406 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3408 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3410 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3412 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3413 (*sqrtdf2_vfp): Likewise.
3414 (*cmpsf_vfp): Likewise.
3415 (*cmpsf_trap_vfp): Likewise.
3416 (*cmpdf_vfp): Likewise.
3417 (*cmpdf_trap_vfp): Likewise.
3419 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3421 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3422 (*truncdfsf2_vfp): Likewise.
3423 (*truncsisf2_vfp): Likewise.
3424 (*truncsidf2_vfp): Likewise.
3425 (fixuns_truncsfsi2): Likewise.
3426 (fixuns_truncdfsi2): Likewise.
3427 (*floatsisf2_vfp): Likewise.
3428 (*floatsidf2_vfp): Likewise.
3429 (floatunssisf2): Likewise.
3430 (floatunssidf2): Likewise.
3432 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3434 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3435 (*muldf3_vfp): Likewise.
3436 (*mulsf3negsf_vfp): Likewise.
3437 (*muldf3negdf_vfp): Likewise.
3438 (*mulsf3addsf_vfp): Likewise.
3439 (*muldf3adddf_vfp): Likewise.
3440 (*mulsf3subsf_vfp): Likewise.
3441 (*muldf3subdf_vfp): Likewise.
3442 (*mulsf3negsfaddsf_vfp): Likewise.
3443 (*fmuldf3negdfadddf_vfp): Likewise.
3444 (*mulsf3negsfsubsf_vfp): Likewise.
3445 (*muldf3negdfsubdf_vfp): Likewise.
3447 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3449 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3450 (*absdf2_vfp): Likewise.
3451 (*negsf2_vfp): Likewise.
3452 (*negdf2_vfp): Likewise.
3453 (*addsf3_vfp): Likewise.
3454 (*adddf3_vfp): Likewise.
3455 (*subsf3_vfp): Likewise.
3456 (*subdf3_vfp): Likewise.
3457 (*divsf3_vfp): Likewise.
3458 (*divdf3_vfp): Likewise.
3460 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3462 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3464 (arm_print_operand): Don't convert real values to decimal
3465 representation in default case.
3466 (fp_immediate_constant): Delete.
3467 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3468 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3470 (*thumb2_movsi_vfp): Likewise.
3471 (*movdi_vfp): Likewise.
3472 (*movdi_vfp_cortexa8): Likewise.
3473 (*movhf_vfp_neon): Likewise.
3474 (*movhf_vfp): Likewise.
3475 (*movsf_vfp): Likewise.
3476 (*thumb2_movsf_vfp): Likewise.
3477 (*movdf_vfp): Likewise.
3478 (*thumb2_movdf_vfp): Likewise.
3479 (*movsfcc_vfp): Likewise.
3480 (*thumb2_movsfcc_vfp): Likewise.
3481 (*movdfcc_vfp): Likewise.
3482 (*thumb2_movdfcc_vfp): Likewise.
3484 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3486 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3490 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3493 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3494 Use qualifier_immediate for last operand. Rename to...
3495 (aarch64_types_ternop_lane_qualifiers): ... This.
3496 (TYPES_QUADOP): Rename to...
3497 (TYPES_TERNOP_LANE): ... This.
3498 (aarch64_simd_expand_args): Return const0_rtx when encountering user
3499 error. Change return of 0 to return of NULL_RTX.
3500 (aarch64_crc32_expand_builtin): Likewise.
3501 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3502 ICE when expanding unknown builtin.
3503 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3504 TERNOP_LANE qualifiers.
3505 (sqdmlsl_lane): Likewise.
3506 (sqdmlal_laneq): Likewise.
3507 (sqdmlsl_laneq): Likewise.
3508 (sqdmlal2_lane): Likewise.
3509 (sqdmlsl2_lane): Likewise.
3510 (sqdmlal2_laneq): Likewise.
3511 (sqdmlsl2_laneq): Likewise.
3513 2014-09-09 Nick Clifton <nickc@redhat.com>
3515 * doc/invoke.texi (Optimization Options): Add missing @gol to the
3517 (S/390 and zSeries Options): Remove superfluous word from the
3518 description of the -mhotpatch option.
3520 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
3522 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3523 * ira.c: #include "shrink-wrap.h"
3524 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3525 * ifcvt.c: #include "shrink-wrap.h"
3526 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3528 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
3530 * common/config/picochip/picochip-common.c: Remove.
3531 * config.gcc: Remove support for picochip.
3532 * config/picochip/constraints.md: Remove.
3533 * config/picochip/dfa_space.md: Remove.
3534 * config/picochip/dfa_speed.md: Remove.
3535 * config/picochip/picochip-protos.h: Remove.
3536 * config/picochip/picochip.c: Remove.
3537 * config/picochip/picochip.h: Remove.
3538 * config/picochip/picochip.md: Remove.
3539 * config/picochip/picochip.opt: Remove.
3540 * config/picochip/predicates.md: Remove.
3541 * config/picochip/t-picochip: Remove.
3542 * doc/md.texi: Don't document picochi.
3544 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3546 * basic-block.h (control_flow_insn_p): Strengthen param from
3547 const_rtx to const rtx_insn *.
3548 * cfgbuild.c (control_flow_insn_p): Likewise.
3550 2014-09-08 David Malcolm <dmalcolm@redhat.com>
3552 * gcse.c (modify_mem_list): Strengthen this variable from
3553 vec<rtx> * to vec<rtx_insn *> *.
3554 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3556 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3557 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3558 (record_last_mem_set_info): Strengthen param "insn" from rtx to
3560 (record_last_set_info): Likewise for local "last_set_insn".
3562 2014-09-08 DJ Delorie <dj@redhat.com>
3564 * doc/invoke.texi (MSP430 Options): Add -minrt.
3566 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3568 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
3569 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3570 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3572 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3574 (adjust_splat): New function.
3575 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3576 (dump_swap_insn_table): Add case for SH_SPLAT.
3578 2014-09-08 Richard Biener <rguenther@suse.de>
3581 * tree-inline.c (copy_loops): The source loop header should
3583 (tree_function_versioning): If loops need fixup after removing
3584 unreachable blocks fix them.
3585 * omp-low.c (simd_clone_adjust): Do not add incr block to
3586 loop under construction.
3588 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
3590 * config/aarch64/aarch64-builtins.c
3591 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3593 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3595 * config/i386/cygming.h (TF_SIZE): Remove.
3596 * config/i386/darwin.h (TF_SIZE): Remove.
3597 * config/i386/dragonfly.h (TF_SIZE): Remove.
3598 * config/i386/freebsd.h (TF_SIZE): Remove.
3599 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3600 * config/i386/openbsdelf.h (TF_SIZE): Remove.
3601 * config/i386/sol2.h (TF_SIZE): Remove.
3602 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3603 * config/ia64/linux.h (TF_SIZE): Remove.
3604 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3605 * doc/tm.texi: Regenerate.
3606 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3608 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3610 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3612 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3614 * doc/tm.texi: Regenerate.
3615 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3617 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3618 * config/cris/cris.h (__make_dp): Remove.
3620 2014-09-08 Richard Biener <rguenther@suse.de>
3623 * cfgloop.c (mark_loop_for_removal): Track former header
3625 * cfgloop.h (struct loop): Add former_header member unconditionally.
3626 * loop-init.c (fix_loop_structure): Enable bogus loop removal
3627 diagnostic unconditionally.
3629 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3632 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3633 constraint for operand0 and remove write only modifier from operand3.
3635 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
3637 PR rtl-optimization/62208
3638 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3639 rather than const0_rtx in eq/ne-xor simplifications.
3641 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3643 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3644 (arc_output_mi_thunk): Likewise.
3646 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3647 arguments to silence bogus warning.
3649 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
3652 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3654 2014-09-06 Tom de Vries <tom@codesourcery.com>
3656 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3657 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3658 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3660 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
3663 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3664 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3666 2014-09-05 Easwaran Raman <eraman@google.com>
3668 PR rtl-optimization/62146
3669 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3670 hoisted instruction unconditional.
3672 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
3675 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3676 Do not allow any_mask_operand for operands[2].
3677 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3679 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3681 * config/arc/arc.c (arc_print_operand): Use insn method of
3682 final_sequence for type-safety.
3683 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3684 "insn" from rtx to rtx_insn *.
3685 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3686 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3687 Likewise for locals "branch", "label".
3688 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3689 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
3690 (same_cmp_following_p): Likewise for locals "i2", "i3".
3691 * config/sh/sh_optimize_sett_clrt.cc
3692 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3693 param "cbranch_insn".
3694 * function.c (convert_jumps_to_returns): Likewis for local "jump".
3695 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3696 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3698 (condjump_p): Likewise.
3699 (condjump_in_parallel_p): Likewise.
3701 (any_uncondjump_p): Likewise.
3702 (any_condjump_p): Likewise.
3703 (condjump_label): Likewise.
3704 (returnjump_p): Strengthen param "insn" from rtx to
3706 (onlyjump_p): Strengthen param "insn" from const_rtx to
3708 (jump_to_label_p): Likewise.
3709 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3710 (invert_jump): Likewise.
3711 * reorg.c (simplejump_or_return_p): Add checked cast when calling
3713 (get_jump_flags): Strengthen param "insn" from rtx to
3715 (get_branch_condition): Likewise.
3716 (condition_dominates_p): Likewise.
3717 (make_return_insns): Move declaration of local "pat" earlier, to
3718 after we've handled NONJUMP_INSN_P and non-sequences, using its
3719 methods to simplify the code and for type-safety.
3720 * rtl.h (find_constant_src): Strengthen param from const_rtx to
3722 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3723 (condjump_p): Strengthen param from const_rtx to
3725 (any_condjump_p): Likewise.
3726 (any_uncondjump_p): Likewise.
3728 (condjump_label): Likewise.
3729 (simplejump_p): Likewise.
3730 (returnjump_p): Likewise.
3731 (onlyjump_p): Likewise.
3732 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3733 (invert_jump): Likewise.
3734 (condjump_in_parallel_p): Strengthen param from const_rtx to
3736 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3737 to const rtx_insn *.
3738 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3739 to const rtx_insn *.
3740 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3742 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3744 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3745 above the conditional, and convert the check on GET_CODE to a
3746 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3747 the conditional. Simplify the conditional by using methods of
3750 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3752 * haifa-sched.c (check_clobbered_conditions): Strengthen local
3753 "link" from rtx to rtx_insn_list *, and use its methods for
3754 clarity and type-safety.
3755 (toggle_cancelled_flags): Likewise.
3756 (restore_last_backtrack_point): Likewise.
3757 (queue_to_ready): Use insn method of "link" in one place.
3758 (schedule_block): Strengthen local "link" from rtx to
3759 rtx_insn_list *, and use its methods for clarity and type-safety.
3761 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3763 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3764 param "insn" from const_rtx to const rtx_insn *.
3765 (sched_get_reverse_condition_uncached): Likewise.
3766 (sched_get_condition_with_rev): Likewise.
3767 (sched_has_condition_p): Likewise.
3768 (sched_insns_conditions_mutex_p): Likewise for both params.
3769 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3770 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3771 (setup_insn_reg_uses): Move local "list" to be more tightly
3772 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
3773 its methods for clarity and type-safety.
3774 (sched_analyze_1): Strengthen local "pending" from rtx to
3775 rtx_insn_list *, and local "pending_mem" from rtx to
3776 rtx_expr_list *. Use methods of each for clarity and type-safety.
3777 (sched_analyze_2): Likewise.
3778 (sched_analyze_insn): Likewise.
3780 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3781 param from const_rtx to const rtx_insn *.
3782 (sched_insns_conditions_mutex_p): Likewise for both params.
3783 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3786 * system.h (CONST_CAST_RTX_INSN): New macro.
3788 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3790 * recog.c (peep2_attempt): Strengthen return type from rtx to
3792 (peep2_update_life): Likewise for params "last", "prev", removing
3793 a checked cast made redundant by this.
3794 (peephole2_optimize): Likewise for local "last".
3796 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3798 * basic-block.h (set_block_for_insn): Eliminate this macro in
3800 * rtl.h (set_block_for_insn): New inline function, imposing the
3801 requirement that the "insn" param is an rtx_insn *.
3803 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3805 * caller-save.c (setup_save_areas): Strengthen local "insn" from
3807 * final.c (get_call_reg_set_usage): Likewise for first param,
3808 eliminating a checked cast.
3809 * regs.h (get_call_reg_set_usage): Likewise for first param.
3810 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3811 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3812 cast, replacing references to "x" with "call_insn" where
3814 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3815 rtx_insn *, adding a checked cast.
3817 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3819 * output.h (final_scan_insn): Strengthen first param from rtx to
3822 * final.c (final_scan_insn): Likewise, renaming it back from
3823 "uncast_insn" to "insn", eliminating the checked cast.
3825 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3826 "vec" with an rtx_sequence * "seq", taking a copy of
3827 "final_sequence", and using methods of "seq" for clarity, and for
3828 type-safety in the calls to final_scan_insn.
3829 * config/mips/mips.c (mips_output_conditional_branch): Use methods
3830 of "final_sequence" for clarity, and for type-safety in the call to
3832 * config/sh/sh.c (print_slot): Strengthen param from rtx to
3833 rtx_sequence * and rename from "insn" to "seq".
3835 2014-09-05 David Malcolm <dmalcolm@redhat.com>
3837 * jump.c (delete_related_insns): Introduce a new local "table" by
3838 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3839 get_labels method of "table" to simplify access to the labels in
3842 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3844 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3845 f_minmaxs, f_minmaxd types.
3847 2014-09-05 Richard Biener <rguenther@suse.de>
3849 * cfgloop.c (mark_loop_for_removal): Record former header
3850 when ENABLE_CHECKING.
3851 * cfgloop.h (strut loop): Add former_header member when
3853 * loop-init.c (fix_loop_structure): Sanity check loops
3854 marked for removal if they re-appeared.
3856 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3858 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3859 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3861 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3862 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3863 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3864 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3865 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3866 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3867 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3868 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3869 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3870 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3871 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3872 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3873 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3874 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3875 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3876 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3877 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3878 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3879 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3880 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3881 with int{32,16,8}_t.
3883 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3885 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3886 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3887 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3888 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3889 Remove temporary __asm__ and reimplement.
3891 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3893 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3894 handling cmge, cmgt, cmeq, cmtst.
3896 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3897 cmlt, cmgeu, cmgtu, cmtst): Remove.
3899 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3900 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3901 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3902 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3904 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3906 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3908 (aarch64_fold_builtin): Update pattern for cmtst.
3910 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3913 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3915 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3916 Switch operands, separate out more cases, refactor.
3918 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3920 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3921 argument; rename old version to...
3922 (aarch64_const_vec_all_same_in_range_p): ...this.
3923 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3925 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3927 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3929 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3930 Remove qualifier_const_pointer, update comment.
3932 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3934 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3936 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3938 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3939 varargs with pointer parameter.
3940 (aarch64_simd_expand_builtin): pass pointer into previous.
3942 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3944 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3947 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
3949 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3950 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3951 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3952 Replace temporary asm with call to builtin.
3953 (vrbit_p8, vrbitq_p8): New functions.
3955 2014-09-05 Richard Biener <rguenther@suse.de>
3957 * cfgloop.c (mark_loop_for_removal): New function.
3958 * cfgloop.h (mark_loop_for_removal): Declare.
3959 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3960 (merge_blocks): Likewise.
3961 (duplicate_block): Likewise.
3962 * except.c (sjlj_emit_dispatch_table): Likewise.
3963 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3964 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3965 (thread_through_loop_header): Likewise.
3967 2014-09-05 Richard Biener <rguenther@suse.de>
3970 * fold-const.c (try_move_mult_to_index): Remove.
3971 (fold_binary_loc): Do not call it.
3972 * tree-data-ref.c (dr_analyze_indices): Strip conversions
3973 from the base object again.
3975 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
3977 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3980 2014-09-05 Bin Cheng <bin.cheng@arm.com>
3983 * config/arm/arm.md (setmem): New pattern.
3984 * config/arm/arm-protos.h (struct tune_params): New fields.
3985 (arm_gen_setmem): New prototype.
3986 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3987 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3988 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3989 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3990 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3991 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3992 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3993 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3994 (arm_const_inline_cost): New function.
3995 (arm_block_set_max_insns): New function.
3996 (arm_block_set_non_vect_profit_p): New function.
3997 (arm_block_set_vect_profit_p): New function.
3998 (arm_block_set_unaligned_vect): New function.
3999 (arm_block_set_aligned_vect): New function.
4000 (arm_block_set_unaligned_non_vect): New function.
4001 (arm_block_set_aligned_non_vect): New function.
4002 (arm_block_set_vect, arm_gen_setmem): New functions.
4004 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4006 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4008 2014-09-05 Bin Cheng <bin.cheng@arm.com>
4010 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4012 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4014 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4016 * valtrack.h: Adjust.
4018 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4020 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4022 (emit_jump_insn_before_noloc): Likewise.
4023 (emit_call_insn_before_noloc): Likewise.
4024 (emit_label_before): Likewise.
4025 (emit_label_after): Likewise.
4026 (emit_insn_before_setloc): Likewise.
4027 (emit_jump_insn_before_setloc): Likewise.
4028 (emit_call_insn_before_setloc): Likewise.
4029 (emit_call_insn_before): Likewise.
4032 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4034 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4035 rtx_insn *, eliminating a checked cast.
4037 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4039 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4040 const_rtx to const rtx_insn *.
4041 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4044 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4046 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4047 fixup_args_size_notes.
4048 * expr.c (fixup_args_size_notes): Strengthen first two params from
4049 rtx to rtx_insn *, eliminating a checked cast.
4050 * rtl.h (fixup_args_size_notes): Strengthen first two params from
4053 2014-09-05 David Malcolm <dmalcolm@redhat.com>
4055 * haifa-sched.c (get_ready_element): Strengthen return type from
4057 * sched-int.h (get_ready_element): Likewise.
4059 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
4062 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4063 indexed_or_indirect_operand instead of memory_operand.
4064 (floatsi<mode>2_lfiwzx_mem): Ditto.
4066 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4068 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4069 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4070 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4072 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
4074 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4076 (get_last_nonnote_insn): Likewise.
4077 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4078 * resource.c (find_basic_block): Likewise.
4080 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4083 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4085 * genattr.c (main): Within the prototype of insn_latency written
4086 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4087 * genautomata.c (output_internal_maximal_insn_latency_func):
4088 Within the implementation of insn_latency written out to
4089 insn-automata.c, strengthen both params from rtx to rtx_insn *,
4090 eliminating a pair of checked casts.
4092 2014-09-04 David Malcolm <dmalcolm@redhat.com>
4094 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4097 * rtl.h (eh_returnjump_p): Likewise.
4099 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
4101 * Makefile.in (TAGS): Handle constructs in timevar.def.
4103 2014-09-04 Guozhi Wei <carrot@google.com>
4106 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4107 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4108 it into two patterns.
4109 (move_lo_quad_internal_be_<mode>): Likewise.
4111 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4113 * doc/options.texi: Document that Var and Init are required if CPP
4115 * optc-gen.awk: Require Var and Init if CPP is given.
4116 * common.opt (Wpedantic): Use Init.
4118 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4120 * config/rs6000/rs6000.c (special_handling_values): Add
4122 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4123 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
4124 as swappable with special handling SH_EXTRACT. Remove
4125 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4127 (adjust_extract): New function.
4128 (handle_special_swappables): Add default to case statement; add
4129 case for SH_EXTRACT that calls adjust_extract.
4130 (dump_swap_insn_table): Handle SH_EXTRACT.
4132 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4134 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4135 selection of 0th memory doubleword, regardless of endianness.
4137 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4139 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4141 2014-09-04 Alan Modra <amodra@gmail.com>
4144 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4147 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
4149 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4150 * targhooks.c (default_dwarf_frame_reg_mode): New function.
4151 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4152 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4153 * doc/tm.texi: Regenerate.
4154 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4155 selection logic to default_dwarf_frame_reg_mode.
4157 2014-09-03 Marek Polacek <polacek@redhat.com>
4159 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4162 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4164 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4165 the automodified register.
4167 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
4169 * output.h (get_some_local_dynamic_name): Declare.
4170 * final.c (some_local_dynamic_name): New variable.
4171 (get_some_local_dynamic_name): New function.
4172 (final_end_function): Clear some_local_dynamic_name.
4173 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4174 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4175 (print_operand): Report an error if '%&' is used inappropriately.
4176 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4177 (get_some_local_dynamic_name_1): Delete.
4178 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4179 (rs6000_get_some_local_dynamic_name): Delete.
4180 (rs6000_get_some_local_dynamic_name_1): Delete.
4181 (print_operand): Report an error if '%&' is used inappropriately.
4182 * config/s390/s390.c (machine_function): Remove some_ld_name.
4183 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4184 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4185 * config/sparc/sparc.c: Include rtl-iter.h.
4186 (machine_function): Remove some_ld_name.
4187 (sparc_print_operand): Report an error if '%&' is used inappropriately.
4188 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4190 2014-09-03 Richard Henderson <rth@redhat.com>
4192 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4193 (aarch64_popwb_pair_reg): Remove.
4194 (aarch64_set_frame_expr): Remove.
4195 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4196 the restore ops performed by the insns generated.
4197 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4198 insn. Perform the calls_eh_return addition later; do not attempt to
4199 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
4200 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4201 special markup at all. Load cfun->machine->frame.hard_fp_offset
4202 into a local variable.
4203 (aarch64_frame_pointer_required): Don't check calls_alloca.
4205 2014-09-03 Richard Biener <rguenther@suse.de>
4207 * opts.c (default_options_optimization): Adjust
4208 max-combine-insns to 2 for -Og.
4210 2014-09-03 Martin Jambor <mjambor@suse.cz>
4213 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4214 pass-trough jump functions correctly.
4216 2014-09-03 Martin Jambor <mjambor@suse.cz>
4219 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4220 created replacements in ascending order of offsets.
4221 (known_aggs_to_agg_replacement_list): Likewise.
4223 2014-09-03 Martin Liska <mliska@suse.cz>
4225 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4226 is set to set uninitialized value for vnresult.
4228 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4230 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4231 for TARGET_MUST_PASS_IN_STACK.
4233 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4235 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4236 for TARGET_ARG_PARTIAL_BYTES.
4238 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4240 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4241 instructions for varargs implementation.
4242 (nds32_expand_epilogue): Emit stack adjustment instructions for
4243 varargs implementation.
4245 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4247 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4248 optimization detection.
4250 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4252 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4254 (nds32_function_arg_advance): Deal with nameless arguments.
4255 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4256 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4257 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4259 2014-09-03 Richard Biener <rguenther@suse.de>
4261 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4262 (struct bb_bitmap_sets): Remove deferred member.
4263 (BB_DEFERRED): Remove.
4264 (defer_or_phi_translate_block): Remove.
4265 (compute_antic_aux): Remove deferring of blocks, assert
4266 proper iteration order.
4267 (compute_antic): Do not set BB_DEFERRED.
4268 (eliminate): Allocate el_avail of proper size initially.
4270 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4272 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4273 according to the value of crtl->args.pretend_args_size.
4275 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4277 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4278 varargs information.
4280 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4282 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4283 implementation for TARGET_SETUP_INCOMING_VARARGS.
4284 (nds32_strict_argument_naming): Refine comment.
4285 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4286 Define for future implementation.
4288 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
4290 * config/i386/adxintrin.h (_subborrow_u32): New.
4291 (_addcarry_u32): Ditto.
4292 (_subborrow_u64): Ditto.
4293 (_addcarry_u64): Ditto.
4294 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4296 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4297 __builtin_ia32_sbb_u64
4299 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4301 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4303 (nds32_function_arg_advance): Likewise.
4304 (nds32_init_cumulative_args): Likewise.
4305 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4306 (NDS32_FIRST_GPR_REGNUM): Define.
4307 (NDS32_LAST_GPR_REGNUM): Define.
4308 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4309 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4310 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4311 (machine_function): Use GRP-specific stuff.
4313 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4315 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4316 (nds32_expand_epilogue): Likewise.
4317 (nds32_expand_prologue_v3push): Likewise.
4318 (nds32_expand_epilogue_v3pop): Likewise.
4320 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4322 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4323 v3push/v3pop for variadic function.
4324 * config/nds32/nds32.md (prologue, epilogue): Likewise.
4326 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4328 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4329 Check rtx for varargs implementation.
4330 (nds32_output_stack_pop): Likewise.
4331 * config/nds32/nds32-protos.h: Have a rtx argument for
4332 nds32_output_stack_push and nds32_output_stack_pop.
4333 * config/nds32/nds32.md: Likewise.
4335 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4337 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4338 to check if FUNC is an interrupt service routine.
4339 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4341 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4343 * config/nds32/nds32.h (machine_function): Add some fields for variadic
4344 arguments implementation.
4346 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4348 * config/nds32/nds32-predicates.c
4349 (nds32_valid_stack_push_pop): Rename to ...
4350 (nds32_valid_stack_push_pop_p): ... this.
4351 * config/nds32/nds32-protos.h: Likewise.
4352 * config/nds32/predicates.md: Likewise.
4354 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4356 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4357 (nds32_emit_stack_v3push): ... this.
4358 (nds32_gen_stack_v3pop): Rename to ...
4359 (nds32_emit_stack_v3pop): ... this and consider CFA restore
4362 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4364 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4365 (nds32_emit_stack_push_multiple): ... this.
4366 (nds32_gen_stack_pop_multiple): Rename to ...
4367 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4370 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4373 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4374 and add a second splitter to handle the remaining cases.
4376 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
4378 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4380 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4382 * cfgexpand.c (label_rtx_for_bb): Change type to
4383 hash_map<basic_block, rtx_code_label *> *.
4384 (expand_gimple_basic_block): Adjust.
4385 (pass_expand::execute): Likewise.
4387 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4389 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4390 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4391 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4392 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4393 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4394 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4395 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4398 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
4400 * alloc-pool.c: Include coretypes.h.
4401 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4402 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4403 hash_set instead of htab.
4404 * ggc-page.c (in_gc): New variable.
4405 (ggc_free): Do nothing if a collection is taking place.
4406 (ggc_collect): Set in_gc appropriately.
4407 * ggc.h (gt_ggc_mx(const char *)): New function.
4408 (gt_pch_nx(const char *)): Likewise.
4409 (gt_ggc_mx(int)): Likewise.
4410 (gt_pch_nx(int)): Likewise.
4411 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4412 (hash_map::hash_entry::pch_nx): Likewise.
4413 (hash_map::hash_entry::pch_nx_helper): Likewise.
4414 (hash_map::hash_map): Adjust.
4415 (hash_map::create_ggc): New function.
4416 (gt_ggc_mx): Likewise.
4417 (gt_pch_nx): Likewise.
4418 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4419 (default_hashset_traits::pch_nx): Likewise.
4420 (hash_set::hash_entry::ggc_mx): Likewise.
4421 (hash_set::hash_entry::pch_nx): Likewise.
4422 (hash_set::hash_entry::pch_nx_helper): Likewise.
4423 (hash_set::hash_set): Adjust.
4424 (hash_set::create_ggc): New function.
4425 (hash_set::elements): Likewise.
4426 (gt_ggc_mx): Likewise.
4427 (gt_pch_nx): Likewise.
4428 * hash-table.h (hash_table::hash_table): Adjust.
4429 (hash_table::m_ggc): New member.
4430 (hash_table::~hash_table): Adjust.
4431 (hash_table::expand): Likewise.
4432 (hash_table::empty): Likewise.
4433 (gt_ggc_mx): New function.
4434 (hashtab_entry_note_pointers): Likewise.
4435 (gt_pch_nx): Likewise.
4437 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4439 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
4440 built-in definition.
4441 (XVCVUXDDP_SCALE): Likewise.
4442 (XVCVDPSXDS_SCALE): Likewise.
4443 (XVCVDPUXDS_SCALE): Likewise.
4444 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4445 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4446 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4447 VSX_BUILTIN_XVCVDPUXDS_SCALE.
4448 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4450 * config/rs6000/rs6000.c (real.h): New include.
4451 (rs6000_scale_v2df): New function.
4452 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4453 (UNSPEC_VSX_XVCVUXDDP): Likewise.
4454 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4455 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4456 (vsx_xvcvsxddp_scale): New define_expand.
4457 (vsx_xvcvsxddp): New define_insn.
4458 (vsx_xvcvuxddp_scale): New define_expand.
4459 (vsx_xvcvuxddp): New define_insn.
4460 (vsx_xvcvdpsxds_scale): New define_expand.
4461 (vsx_xvcvdpsxds): New define_insn.
4462 (vsx_xvcvdpuxds_scale): New define_expand.
4463 (vsx_xvcvdpuxds): New define_insn.
4464 * doc/extend.texi (vec_ctf): Add new prototypes.
4465 (vec_cts): Likewise.
4466 (vec_ctu): Likewise.
4467 (vec_splat): Likewise.
4468 (vec_div): Likewise.
4469 (vec_mul): Likewise.
4471 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4474 * config/arm/neon.md
4475 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4476 <v_cmp_result>): New pattern.
4477 * config/arm/iterators.md (NEON_VCVT): New int iterator.
4478 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4479 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4480 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4481 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4482 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4484 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4487 * config/arm/iterators.md (FIXUORS): New code iterator.
4488 (VCVT): New int iterator.
4489 (su_optab): New code attribute.
4491 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4493 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4495 * config/aarch64/predicates.md (aarch64_comparison_operation):
4496 New special predicate.
4497 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4498 aarch64_comparison_operation instead of matching an operator.
4499 Update operand numbers.
4500 (csinc3<mode>_insn): Likewise.
4501 (*csinv3<mode>_insn): Likewise.
4502 (*csneg3<mode>_insn): Likewise.
4503 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4504 * config/aarch64/aarch64.c (aarch64_get_condition_code):
4505 Return -1 instead of aborting on invalid condition codes.
4506 (aarch64_print_operand): Update aarch64_get_condition_code callsites
4507 to assert that the returned condition code is valid.
4508 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4510 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
4512 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4513 tree.def, and gimple.def
4515 2014-09-02 Jakub Jelinek <jakub@redhat.com>
4516 Balaji V. Iyer <balaji.v.iyer@intel.com>
4517 Igor Zamyatin <igor.zamyatin@intel.com>
4519 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4520 (__cilkrts_cilk_for_64): Likewise.
4521 * cilk-common.c (declare_cilk_for_builtin): New function.
4522 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4523 __cilkrts_cilk_for_64 bultins.
4524 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4526 (cilk_for_32_fndecl): New define.
4527 (cilk_for_64_fndecl): Likewise.
4528 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4529 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4530 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4531 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4532 GF_OMP_FOR_COMBINED_INTO.
4533 * gimplify.c (gimplify_scan_omp_clauses): Added
4534 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4535 (gimplify_adjust_omp_clauses): Ditto.
4536 (gimplify_omp_for): Added CILK_FOR case.
4537 (gimplify_expr): Ditto.
4538 * omp-low.c: Include cilk.h.
4539 (extract_omp_for_data): Set appropriate kind for
4540 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4541 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4542 (create_omp_child_function_name): Added second argument to handle
4544 (cilk_for_check_loop_diff_type): New function.
4545 (expand_cilk_for_call): Likewise.
4546 (expand_cilk_for): Likewise.
4547 (create_omp_child_function): Set cilk_for_count; handle the cases when
4548 it is true; call create_omp_child_function_name with second argument.
4549 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4550 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4551 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4552 * tree-nested.c (convert_nonlocal_omp_clauses): Added
4553 OMP_CLAUSE__CILK_FOR_COUNT_ case.
4554 (convert_local_omp_clauses): Ditto.
4555 * tree-pretty-print.c (dump_omp_clause): Added
4556 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4557 (dump_generic_node): Added CILK_FOR case.
4558 * tree.c (omp_clause_num_ops): New element
4559 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4560 (omp_clause_code_name): New element _Cilk_for_count_.
4561 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4562 * tree.def: Add tree code for CILK_FOR.
4564 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4566 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4567 (ppc403-compare): Add "exts with dot" case.
4568 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4569 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4570 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4571 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4572 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4573 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4574 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4575 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4576 cell-cmp-microcoded): Similarly.
4577 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4578 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4579 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4580 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4581 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4582 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4583 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4584 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4585 (power6-compare): Add "exts with dot" case.
4586 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4587 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4588 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4590 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4591 if avoiding Cell microcode.
4592 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4593 (is_cracked_insn): Ditto.
4594 (insn_must_be_first_in_group): Ditto.
4595 * config/rs6000/rs6000.md (dot): Adjust comment.
4596 (cell_micro): Handle exts+dot.
4597 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4598 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4599 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4600 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4601 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4602 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4603 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4605 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4607 * config/rs6000/rs6000.md (QHSI): Delete.
4608 (EXTQI, EXTHI, EXTSI): New mode iterators.
4609 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4610 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4611 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4612 9 anonymous instructions, and 8 splitters): Delete.
4613 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4614 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4615 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4616 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4617 *zero_extendsi<mode>2_dot2): New.
4619 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4621 * config/rs6000/rs6000.md (any_extend): New code iterator.
4622 (u, su): New code attributes.
4623 (dmode, DMODE): New mode attributes.
4624 (<su>mul<mode>3_highpart): New.
4625 (*<su>mul<mode>3_highpart): New.
4626 (<su>mulsi3_highpart_le): New.
4627 (<su>muldi3_highpart_le): New.
4628 (<su>mulsi3_highpart_64): New.
4629 (<u>mul<mode><dmode>3): New.
4630 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4632 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4635 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
4637 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4638 *mulsi3_internal2, and two splitters): Delete.
4639 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4641 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4643 2014-09-02 Richard Biener <rguenther@suse.de>
4645 PR tree-optimization/62695
4646 * tree-ssa-structalias.c (find_func_clobbers): Add missing
4649 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
4652 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4654 2014-09-01 Andi Kleen <ak@linux.intel.com>
4656 * file-find.c (add_prefix_begin): Add.
4657 (do_add_prefix): Rename from add_prefix with first argument.
4658 (add_prefix): Add new wrapper.
4659 * file-find.h (add_prefix_begin): Add.
4660 * gcc-ar.c (main): Support -B option.
4662 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4664 * genemit.c: Include dumpfile.h.
4665 (gen_split): Print name of splitter function to dump file.
4667 2014-09-01 Richard Biener <rguenther@suse.de>
4669 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4670 Use stack auto_vecs for constraint expressions.
4671 (find_func_aliases_for_call): Likewise.
4672 (find_func_aliases): Likewise.
4673 (find_func_clobbers): Likewise.
4675 2014-09-01 Richard Biener <rguenther@suse.de>
4677 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4678 operands vector in most cases. Remove redundant code.
4680 2014-09-01 Olivier Hainque <hainque@adacore.com>
4682 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4683 $WIND_BASE instead of designating a harcoded arbitrary home dir.
4684 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4686 2014-09-01 Richard Biener <rguenther@suse.de>
4688 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4689 copy_reference_ops_from_call, vn_nary_op_compute_hash,
4690 vn_reference_compute_hash, vn_reference_insert): Remove.
4691 (vn_reference_lookup_call): New function.
4692 * tree-ssa-sccvn.c (vn_reference_compute_hash,
4693 copy_reference_ops_from_ref, copy_reference_ops_from_call,
4694 vn_reference_insert, vn_nary_op_compute_hash): Make static.
4695 (create_reference_ops_from_call): Remove.
4696 (vn_reference_lookup_3): Properly update shared_lookup_references.
4697 (vn_reference_lookup_pieces): Assert that we updated
4698 shared_lookup_references properly.
4699 (vn_reference_lookup): Likewise.
4700 (vn_reference_lookup_call): New function.
4701 (visit_reference_op_call): Use it. Avoid re-building the
4703 (visit_reference_op_load): Remove redundant lookup.
4704 (visit_reference_op_store): Perform special tail-merging work
4705 only when possibly doing tail-merging.
4706 (visit_use): Likewise.
4707 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4709 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4712 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4713 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4714 (find_inc): Revert 2014-08-13 change.
4716 2014-09-01 Marek Polacek <polacek@redhat.com>
4719 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4720 Change the type of V to unsigned HOST_WIDE_INT.
4722 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
4724 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4725 the size of byte markers.
4726 (do_shift_rotate): Fix confusion between host, target and marker byte
4728 (verify_symbolic_number_p): Likewise.
4729 (find_bswap_or_nop_1): Likewise.
4730 (find_bswap_or_nop): Likewise.
4732 2014-09-01 Olivier Hainque <hainque@adacore.com>
4734 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4735 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4737 2014-09-01 Jakub Jelinek <jakub@redhat.com>
4739 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4740 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4741 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4743 2014-09-01 Yury Gribov <y.gribov@samsung.com>
4747 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4748 (build_check_stmt): Likewise.
4749 (instrument_strlen_call): Likewise.
4750 (asan_expand_check_ifn): Likewise and fix types.
4751 (maybe_cast_to_ptrmode): New function.
4753 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4755 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4757 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4759 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4761 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
4763 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4764 prefix to function labels when generating fast indirect calls.
4766 2014-08-30 David Malcolm <dmalcolm@redhat.com>
4770 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4771 param back from rtx_insn * to rtx. Rename param from "label" to
4772 "label_or_return", reintroducing "label" as an rtx_insn * after
4773 we've ensured it's not a RETURN.
4774 (first_active_target_insn): Likewise for return type and param;
4775 add a checked cast to rtx_insn * once we've ensured "insn" is not
4777 (steal_delay_list_from_target): Convert param "pnew_thread" back
4778 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
4780 (own_thread_p): Convert param "thread" back from an rtx_insn * to
4781 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
4782 cast once we've established we're not dealing with a RETURN,
4783 renaming subsequent uses of "thread" to "thread_insn".
4784 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4786 (follow_jumps): Convert return type and param "label" from
4787 rtx_insn * back to rtx. Move initialization of "value" to after
4788 the handling for ANY_RETURN_P, adding a checked cast there to
4789 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
4790 rename to "this_label_or_return", reintroducing "this_label" as
4791 an rtx_insn * once we've handled the case where it could be an
4793 (fill_slots_from_thread): Rename param "thread" to
4794 "thread_or_return", converting from an rtx_insn * back to an rtx.
4795 Reintroduce name "thread" as an rtx_insn * local with a checked
4796 cast once we've handled the case of it being an ANY_RETURN_P.
4797 Convert local "new_thread" from an rtx_insn * back to an rtx.
4798 Add a checked cast when assigning to "trial" from "new_thread".
4799 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
4800 checked cast to rtx_insn * from "new_thread" when invoking
4802 (fill_eager_delay_slots): Convert locals "target_label",
4803 "insn_at_target" from rtx_insn * back to rtx.
4804 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4805 (relax_delay_slots): Convert locals "trial", "target_label" from
4806 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
4807 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
4808 invoking update_block.
4809 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4810 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4812 * resource.h (mark_target_live_regs): Undo erroneous conversion
4813 of second param of r214693, converting it back from rtx_insn * to
4814 rtx, since it could be a RETURN.
4816 * resource.c (find_dead_or_set_registers): Similarly, convert
4817 param "jump_target" back from an rtx_insn ** to an rtx *, as we
4818 could be writing back a RETURN. Rename local rtx_insn * "next" to
4819 "next_insn", and introduce "lab_or_return" as a local rtx,
4820 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4821 (mark_target_live_regs): Undo erroneous conversion
4822 of second param of r214693, converting it back from rtx_insn * to
4823 rtx, since it could be a RETURN. Rename it from "target" to
4824 "target_maybe_return", reintroducing the name "target" as a local
4825 rtx_insn * with a checked cast, after we've handled the case of
4828 2014-08-29 DJ Delorie <dj@redhat.com>
4830 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4831 pointer size up to a power of two.
4832 * defaults.h (DWARF2_ADDR_SIZE): Round up.
4833 (POINTER_SIZE_UNITS): New, rounded up value.
4834 * dwarf2asm.c (size_of_encoded_value): Use it.
4835 (dw2_output_indirect_constant_1): Likewise.
4836 * expmed.c (init_expmed_one_conv): We now know the sizes of
4838 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4839 * optabs.c (expand_float): Use precision, not size.
4840 (expand_fix): Likewise.
4841 * simplify-rtx (simplify_unary_operation_1): Likewise.
4842 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4843 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4844 (default_assemble_integer) Likewise.
4845 (dump_tm_clone_pairs): Likewise.
4846 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4847 * var-tracking.c (adjust_mems): Allow partial-int modes also.
4848 (prepare_call_arguments): Likewise.
4849 * stor-layout.c (finalize_type_size): Preserve precision.
4850 (layout_type): Use precision, not size.
4852 * expr.c (convert_move): If the target has an explicit converter,
4855 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4857 * gdbinit.in: Skip various inline functions in rtl.h when
4860 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
4863 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4865 2014-08-29 Richard Biener <rguenther@suse.de>
4867 PR tree-optimization/62291
4868 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4869 exactly the vector size needed and use quick_push.
4870 (phi_translate_1): Adjust comment.
4871 (valid_in_sets): Remove block argument and remove pointless
4873 (dependent_clean): Adjust for removal of block argument.
4875 (compute_antic_aux): Likewise.
4876 (compute_partial_antic_aux): Likewise.
4878 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4879 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4880 Anna Tikhonova <anna.tikhonova@intel.com>
4881 Ilya Tocar <ilya.tocar@intel.com>
4882 Andrey Turetskiy <andrey.turetskiy@intel.com>
4883 Ilya Verbin <ilya.verbin@intel.com>
4884 Kirill Yukhin <kirill.yukhin@intel.com>
4885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4887 * config/i386/sse.md
4888 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4889 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4890 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4891 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4893 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
4894 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4895 Anna Tikhonova <anna.tikhonova@intel.com>
4896 Ilya Tocar <ilya.tocar@intel.com>
4897 Andrey Turetskiy <andrey.turetskiy@intel.com>
4898 Ilya Verbin <ilya.verbin@intel.com>
4899 Kirill Yukhin <kirill.yukhin@intel.com>
4900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4902 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4903 * config/i386/sse.md
4904 (define_mode_iterator VI4_128_8_256): New.
4905 (define_mode_iterator VI2_128_4_256): Ditto.
4906 (define_mode_iterator PMOV_DST_MODE): Rename into
4907 (define_mode_iterator PMOV_DST_MODE_1): this.
4908 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4909 Use PMOV_DST_MODE_1 mode iterator.
4910 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4912 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4914 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4915 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4916 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4917 (define_mode_iterator PMOV_DST_MODE_2): New.
4918 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4919 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4920 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4922 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4923 (define_mode_attr pmov_dst_3): Ditto.
4924 (define_mode_attr pmov_dst_zeroed_3): Ditto.
4925 (define_mode_attr pmov_suff_3): Ditto.
4926 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4927 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4928 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4929 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4930 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4931 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4932 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4933 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4934 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4935 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4936 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4937 (define_mode_attr pmov_dst_4): Ditto.
4938 (define_mode_attr pmov_dst_zeroed_4): Ditto.
4939 (define_mode_attr pmov_suff_4): Ditto.
4940 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4941 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4942 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4943 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4944 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4945 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4946 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4947 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4948 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4949 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4950 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4952 2014-08-29 Richard Biener <rguenther@suse.de>
4954 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4955 NON_LVALUE_EXPR in gimple.
4957 2014-08-29 Richard Biener <rguenther@suse.de>
4960 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4961 from previous refactoring.
4962 (gimple_fold_builtin_strncpy): Likewise.
4964 2014-08-29 David Malcolm <dmalcolm@redhat.com>
4967 * function.c (assign_parm_setup_reg): Remove erroneous checked
4968 cast to rtx_insn * on result of gen_extend_insn in favor of
4969 introducing a new local rtx "pat".
4971 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4973 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4975 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4977 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4979 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4980 (next_insn): Likewise.
4981 * emit-rtl.c (next_insn): Likewise.
4982 (previous_insn): Likewise.
4983 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4984 "insn" and "next" from rtx to rtx_insn *.
4985 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4986 "insn", "insn1", "vliw_start", "prologue_end_note",
4987 "last_insn_in_packet".
4989 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4991 * shrink-wrap.h (active_insn_between): Strengthen both params from
4993 * function.c (active_insn_between): Likewise.
4995 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4997 * genattr.c (main): When writing out insn-attr.h, strengthen param
4998 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4999 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5000 writing out the definition of dfa_clear_single_insn_cache to the
5001 generated insn-automata.c
5003 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5005 * resource.h (clear_hashed_info_for_insn): Strengthen param from
5007 (incr_ticks_for_insn): Likewise.
5008 (init_resource_info): Likewise.
5010 * resource.c (init_resource_info): Likewise.
5011 (clear_hashed_info_for_insn): Likewise.
5012 (incr_ticks_for_insn): Likewise.
5014 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5016 (steal_delay_list_from_target): Use methods of "seq".
5017 (try_merge_delay_insns): Use methods of "merged_insns".
5018 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5019 (reorg_redirect_jump): Likewise for param "jump".
5021 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5023 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5025 * config/s390/s390.c (s390_split_branches): Eliminate top-level
5026 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5028 (s390_mainpool_finish): In three places, split out a local rtx
5029 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5030 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
5031 and split another local rtx "insn" out into rtx "pat" and
5033 * config/sh/sh.c (output_branchy_insn): Rather than working
5034 directly on operands[9], introduce local rtx_code_label *
5035 variables named "lab" in two places, working on them, and then
5036 assigning them to operands[9], so that the intervening operations
5037 are known by the type system to be on insns.
5039 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5041 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5044 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5045 in invocation of INSN_HAS_LOCATION.
5047 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5049 * config/rs6000/altivec.h (vec_xl): New #define.
5050 (vec_xst): Likewise.
5051 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5052 (XXSPLTD_V2DI): Likewise.
5053 (DIV_V2DI): Likewise.
5054 (UDIV_V2DI): Likewise.
5055 (MUL_V2DI): Likewise.
5056 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5057 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5058 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5059 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5060 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5061 (UNSPEC_VSX_DIVSD): Likewise.
5062 (UNSPEC_VSX_DIVUD): Likewise.
5063 (UNSPEC_VSX_MULSD): Likewise.
5064 (vsx_mul_v2di): New insn-and-split.
5065 (vsx_div_v2di): Likewise.
5066 (vsx_udiv_v2di): Likewise.
5067 (vsx_xxspltd_<mode>): New insn.
5069 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5071 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5073 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5074 (NEXT_INSN): Likewise.
5075 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5076 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5078 (no_labels_between_p): Likewise for both params.
5080 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5081 cast when using NEXT_INSN on operands[2].
5082 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5083 "insn" from rtx to rtx_insn *, adding a checked cast.
5084 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5086 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5088 (arc_text_label): Likewise for param "insn".
5089 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5091 (arc_ccfsm_record_condition): Likewise for param "jump".
5092 (arc_text_label): Likewise for local "label".
5093 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5094 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5095 a method for typesafety. Add a checked cast.
5096 * config/arc/constraints.md (Clb): Add a checked cast when getting
5097 the CODE_LABEL from a LABEL_REF.
5098 * config/arm/arm.c (require_pic_register): Strengthen locals
5099 "seq", "insn" from rtx to rtx_insn *.
5100 (create_fix_barrier): Likewise for locals "selected", "next".
5101 (thumb1_reorg): Likewise for locals "prev", "insn".
5102 (arm_expand_prologue): Likewise for local "last".
5103 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5105 (thumb2_output_casesi): Likewise for operands[2].
5106 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5107 strengthen local "insn" from rtx to rtx_insn *.
5108 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5109 type and param "insn".
5110 (find_prev_insn_start): Likewise.
5111 (hwloop_optimize): Likewise for locals "insn", "last_insn",
5113 (gen_one_bundle): Likewise for loal "t".
5114 (find_load): Likewise for param "insn".
5115 (workaround_speculation): Likewise for locals "insn", "next",
5116 "target", "next_tgt".
5117 * config/c6x/c6x.c (assign_reservations): Likewise for both params
5118 and for locals "insn", "within", "last".
5119 (count_unit_reqs): Likewise for params "head", "tail" and local
5121 (try_rename_operands): Likewise for params "head", "tail".
5122 (reshuffle_units): Likewise for locals "head", "tail", "insn".
5123 (struct c6x_sched_context): Likewise for fields
5124 "last_scheduled_insn", "last_scheduled_iter0".
5125 (init_sched_state): Replace NULL_RTX with NULL.
5126 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5128 (undo_split_delayed_nonbranch): Likewise for param and for local
5130 (conditionalize_after_sched): Likewise for local "insn".
5131 (bb_earliest_end_cycle): Likewise.
5132 (filter_insns_above): Likewise for locals "insn", "next".
5133 (hwloop_optimize): Remove redundant checked cast.
5134 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5135 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5137 (cris_simple_epilogue): Likewise.
5138 (cris_expand_prologue): Likewise.
5139 (cris_expand_epilogue): Likewise.
5140 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5141 local "insn" from rtx to rtx_insn *.
5142 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5143 (struct frv_packet_group): Likewise for the elements within array
5144 fields "insns", "sorted", and for field "nop".
5145 (frv_packet): Likewise for the elements within array field
5147 (frv_add_insn_to_packet): Likewise for param "insn".
5148 (frv_insert_nop_in_packet): Likewise for param "insn" and local
5150 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5151 (frv_sort_insn_group_1): Likewise for local "insn".
5152 (frv_optimize_membar_local): Likewise.
5153 (frv_align_label): Likewise for locals "x", "last", "barrier",
5155 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5157 (ia64_sched_init): Likewise for local "insn".
5158 (scheduled_good_insn): Likewise for param "last".
5159 (struct _ia64_sched_context): Likewise for field
5160 "last_scheduled_insn".
5161 (ia64_init_sched_context): Replace NULL_RTX with NULL.
5162 (struct bundle_state): Likewise for field "insn".
5163 (issue_nops_and_insn): Likewise for param "insn".
5164 (get_next_important_insn): Likewise for return type and both
5166 (ia64_add_bundle_selector_before): Likewise for param "insn".
5167 (bundling): Likewise for params "prev_head_insn", "tail" and
5168 locals "insn", "next_insn", "b". Eliminate top-level local rtx
5169 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5170 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5171 Strengthen final param from rtx to rtx_insn *.
5172 (iq2000_move_1word): Likewise for second param.
5173 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5174 param "cur_insn" and local "next_insn".
5175 (iq2000_move_1word): Likewise for param "insn".
5176 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5177 casts when using NEXT_INSN on operands[1].
5178 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5179 "insn" from rtx to rtx_insn *.
5180 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5181 "x", introducing local rtx_insn * "insn" for when working with the
5182 CODE_LABEL of the LABEL_REF.
5183 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5185 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5187 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5189 (conditionalize_block): Likewise for return type and param.
5190 (mcore_is_dead): Likewise for param "first" and local "insn".
5191 (emit_new_cond_insn): Likewise for return type.
5192 (conditionalize_block): Likewise for return type, param, and
5193 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5195 (conditionalize_optimization): Likewise for local "insn".
5196 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5198 * config/microblaze/microblaze.md: Add checked casts when using
5200 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5201 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5202 and rtx_insn * "insn".
5203 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5204 checked cast when using NEXT_INSN on operands[2].
5205 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5206 local "insn" from rtx to rtx_insn *.
5207 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5209 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5210 Add a checked cast when using NEXT_INSN on operands[1].
5211 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5213 (pa_output_cbranch): Likewise for final param.
5214 (pa_output_lbranch): Likewise for second param.
5215 (pa_output_bb): Likewise for third param.
5216 (pa_output_bvb): Likewise.
5217 (pa_output_dbra): Likewise for second param.
5218 (pa_output_movb): Likewise.
5219 (pa_output_parallel_movb): Likewise.
5220 (pa_output_parallel_addb): Likewise.
5221 (pa_output_millicode_call): Likewise for first param.
5222 (pa_output_mul_insn): Likewise for second param.
5223 (pa_output_div_insn): Likewise for third param.
5224 (pa_output_mod_insn): Likewise for second param.
5225 (pa_jump_in_call_delay): Likewise for param.
5226 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5227 (pa_output_div_insn): Likewise.
5228 (pa_output_mod_insn): Likewise.
5229 (pa_output_cbranch): Likewise.
5230 (pa_output_lbranch): Likewise.
5231 (pa_output_bb): Likewise.
5232 (pa_output_bvb): Likewise.
5233 (pa_output_dbra): Likewise.
5234 (pa_output_movb): Likewise.
5235 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5236 to simplify and for typesafety.
5237 (pa_output_call): Use method of rtx_sequence *.
5238 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5239 (pa_jump_in_call_delay): Likewise.
5240 (pa_output_parallel_movb): Likewise.
5241 (pa_output_parallel_addb): Likewise.
5242 (pa_following_call): Likewise.
5243 (pa_combine_instructions): Likewise for locals "anchor",
5245 (pa_can_combine_p): Likewise for params "anchor", "floater" and
5246 locals "start", "end".
5247 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5248 param "insn" and local "local_insn".
5249 (picochip_final_prescan_insn): Likewise for local "local_insn".
5250 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5252 (uses_TOC): Likewise.
5253 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5254 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5255 splitting out to more tightly-scoped locals, 3 as rtx and one as
5257 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5259 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5261 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5263 (fixup_addr_diff_vecs): Likewise.
5264 (reg_unused_after): Likewise for param 2.
5265 (sh_can_redirect_branch): Likewise for both params.
5266 (check_use_sfunc_addr): Likewise for param 1.
5267 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5268 (find_barrier): Likewise for local "last_got".
5269 (gen_block_redirect): Likewise for return type, param "jump" and
5270 locals "prev", "scan", "next", "insn".
5271 (struct far_branch): Likewise for fields "near_label",
5272 "insert_place", "far_label".
5273 (gen_far_branch): Likewise for local "jump".
5274 (fixup_addr_diff_vecs): Likewise for param "first" and locals
5276 (barrier_align): Likewise for param and for locals "prev", "x".
5277 Introduce local rtx_sequence * "prev_seq" and use insn method for
5278 typesafety and clarity.
5279 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5280 (get_dest_uid): Likewise for local "dest".
5281 (split_branches): Likewise for locals "next", "beyond", "label",
5282 "block", "far_label". Add checked casts when assigning to
5283 bp->far_label and "far_label".
5284 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5285 (sequence_insn_p): Likewise.
5286 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
5287 more loop-scoped rtx "insn" when walking LABEL_REFS.
5288 (sh_can_redirect_branch): Strengthen both params from rtx to
5290 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
5291 new local rtx_sequence * "seq" via a dyn_cast, and use a method
5292 for clarity and typesafety.
5293 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5294 "insn" from rtx to rtx_insn *.
5295 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5296 when using NEXT_INSN on the CODE_LABEL in operands[2].
5297 (define_insn "casesi_worker_2"): Likewise.
5298 (define_insn "casesi_shift_media"): Likewise.
5299 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5301 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5302 Strengthen field "insn" from rtx to rtx_insn *.
5303 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5304 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5305 param "start_insn" and local "start_insn".
5306 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5308 (find_set_of_reg_bb): Likewise for param "insn".
5309 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5310 (trace_reg_uses): Likewise for param "start_insn".
5311 (sh_treg_combine::cbranch_trace): Likewise for field
5313 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5315 (sh_treg_combine::record_set_of_reg): Likewise for param
5316 "start_insn" and local "i".
5317 (sh_treg_combine::can_remove_cstore): Likewise for local
5319 (sh_treg_combine::try_optimize_cbranch): Likewise for param
5321 (sh_treg_combine::execute): Likewise for local "i".
5322 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5324 (sparc_check_64): Likewise for second param.
5325 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5326 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
5327 dyn_cast, using its insn method for typesafety and clarity.
5328 (empty_delay_slot): Strengthen param "insn" from rtx to
5330 (set_extends): Likewise.
5331 (sparc_check_64): Likewise.
5332 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5333 for locals "seq", "last_insn".
5334 (combine_bnp): Likewise for param "insn".
5335 (xstormy16_reorg): Likewise for local "insn".
5336 * config/v850/v850.c (substitute_ep_register): Likewise for params
5337 "first_insn", "last_insn" and local "insn".
5338 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5339 elements of "regs" array, and local "insn".
5340 * except.c (emit_note_eh_region_end): Likewise for param "insn".
5341 * final.c (final_sequence): Strengthen this global from rtx to
5343 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5345 (final_scan_insn): Update assignment to "final_sequence" to be
5346 from "seq", the cast version of "body", for type-safety.
5347 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5348 "insns" from rtx to rtx_insn *.
5349 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5350 * genattr.c (main): When writing out generated insn-attr.h,
5351 strengthen params 1 and 3 of eligible_for_delay,
5352 eligible_for_annul_true, eligible_for_annul_false from rtx to
5354 * genattrtab.c (write_eligible_delay): Likewise when writing out
5355 generated insn-attrtab.c; also local "insn" the generated
5357 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5359 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5360 "start_label" from rtx to rtx_insn *.
5361 * ira.c (decrease_live_ranges_number): Likewise for local "p".
5362 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5363 "insns" and local "insn".
5364 (validate_equiv_mem): Likewise for param "start" and local "insn".
5365 (memref_used_between_p): Likewise for params "start", "end" and
5367 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5369 * loop-doloop.c (doloop_optimize): Within region guarded by
5370 INSN_P (doloop_pat), introduce a new local rtx_insn *
5371 "doloop_insn" via a checked cast, and use it for typesafety,
5372 eventually writing the value back into doloop_pat.
5373 * output.h (final_sequence): Strengthen this global from rtx to
5375 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5376 reintroducing "insn" as an rtx_insn * via a checked cast.
5377 Strengthen param "attempt" and local "new_insn"from rtx to
5379 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5381 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5382 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5383 "p" in favor of more tightly-scoped replacements, sometimes rtx
5384 and sometimes rtx_insn *, as appropriate.
5385 (delete_output_reload): Eliminate top-level rtx "i1", splitting
5386 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5387 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
5388 local "trial" from rtx to rtx_insn *.
5389 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5390 rtx to rtx_insn *. Strenghten local "pat" from rtx to
5391 rtx_sequence * and use methods for clarity and typesafety.
5392 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5393 rtx to rtx_insn *. Strenghten local "li" from rtx to
5394 rtx_insn_list * and use its methods for clarity and typesafety.
5395 (steal_delay_list_from_target): Strengthen param "insn" from rtx
5397 (steal_delay_list_from_fallthrough): Likewise.
5398 (try_merge_delay_insns): Likewise for param "thread" and locals
5399 "trial", "next_trial", "delay_insn".
5400 (redundant_insn): Likewise for param "target" and local "trial".
5401 (own_thread_p): Likewise for param "thread" and locals
5402 "active_insn", "insn".
5403 (get_label_before): Likewise for param "insn".
5404 (fill_simple_delay_slots): Likewise for local "new_label"; use
5405 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5406 (label_before_next_insn): Strengthen return type and local "insn"
5407 from rtx to rtx_insn *.
5408 (relax_delay_slots): Likewise for locals "other", "tmp".
5409 (make_return_insns): Likewise for param "first" and locals "insn",
5410 "jump_insn", "prev". Move declaration of "pat" to its assignment
5411 and strengthen from rtx to rtx_sequence *. Use its methods for
5412 clarity and typesafety.
5413 * rtlanal.c (no_labels_between_p): Strengthen params from
5414 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
5416 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5417 from const_rtx to const rtx_insn *.
5418 (reg_set_between_p): Rename param "from_insn" to
5419 "uncast_from_insn", and reintroduce "from_insn" as a
5420 const rtx_insn * via a checked cast.
5421 (modified_between_p): Likewise for param "start" as "uncast_start".
5422 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5423 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5424 "tmp", head" from rtx to rtx_insn *.
5425 (recompute_rev_top_order): Likewise for local "insn".
5426 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5427 * store-motion.c (build_store_vectors): Likewise for local "insn".
5428 Strengthen local "st" from rtx to rtx_insn_list * and use methods
5429 for clarity and typesafety.
5430 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5432 (computation_cost): Likewise for local "seq".
5433 (get_address_cost): Likewise.
5435 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5437 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5439 (label_is_jump_target_p): Likewise for second param.
5441 * rtlanal.c (tablejump_p): Likewise for param "insn".
5442 (label_is_jump_target_p): Likewise for param "jump_insn".
5444 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5446 * rtl.h (find_first_parameter_load): Strengthen return type and
5447 both params from rtx to rtx_insn *.
5448 * rtlanal.c (find_first_parameter_load): Strengthen return type,
5449 both params and locals "before", "first_set" from rtx to
5450 rtx_insn *. Remove now-redundant cast.
5451 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5453 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5455 * rtl.h (find_last_value): Delete.
5456 * rtlanal.c (find_last_value): Delete.
5458 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5460 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5461 from rtx to rtx_insn *.
5462 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5463 rtx "note" with new local rtx_insn * "new_head" when calculating
5464 head insn of new basic block.
5465 * combine.c (combine_split_insns): Strengthen return type and local
5466 "ret" from rtx to rtx_insn *.
5467 (likely_spilled_retval_p): Likewise for locals "use" and "p".
5468 (try_combine): Eliminate local "m_split", splitting into new
5469 locals "m_split_insn" and "m_split_pat".
5470 (find_split_point): Strengthen local "seq" from rtx into
5472 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5473 locals "label", "branch".
5474 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5476 (define_expand "umulsi3_highpart"): Likewise for local "insn".
5477 * dse.c (note_add_store_info): Likewise for fields "first",
5479 (note_add_store): Likewise for local "insn".
5480 (emit_inc_dec_insn_before): Likewise for locals "insn",
5482 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5483 (replace_read): Likewise for locals "insns", "this_insn".
5484 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5485 (notice_eh_throw): Likewise for param "insn".
5486 (before_next_cfi_note): Likewise for return type, param, and local
5488 (connect_traces): Likewise for local "note".
5489 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5490 (verify_rtl_sharing): Likewise.
5491 (unshare_all_rtl_in_chain): Likewise for param "insn".
5492 (get_first_nonnote_insn): Likewise for local "insn".
5493 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
5494 "seq" and use its methods to clarify things.
5495 (next_insn): Strengthen return type from rtx to rtx_insn *.
5496 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5497 local rtx_insn * using a checked cast, dropping a checked cast
5498 made redundant by this change. Use a cast to and method of
5499 rtx_sequence to clarify the code.
5500 (previous_insn): Rename param "insn" to "uncast_insn" and
5501 reintroduce "insn" as a local rtx_insn * using a checked cast,
5502 dropping a checked cast made redundant by this change. Use a cast
5503 to and method of rtx_sequence to clarify the code.
5504 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5505 reintroduce "insn" as a local rtx_insn * using a checked cast,
5506 dropping a checked cast made redundant by this change.
5507 (next_nonnote_insn_bb): Likewise.
5508 (prev_nonnote_insn): Likewise.
5509 (prev_nonnote_insn_bb): Likewise.
5510 (next_nondebug_insn): Likewise.
5511 (prev_nondebug_insn): Likewise.
5512 (next_nonnote_nondebug_insn): Likewise.
5513 (prev_nonnote_nondebug_insn): Likewise.
5514 (next_real_insn): Likewise.
5515 (prev_real_insn): Likewise.
5516 (next_active_insn): Likewise.
5517 (prev_active_insn): Likewise.
5518 (next_cc0_user): Likewise. Use rtx_sequence and a method for
5520 (prev_cc0_setter): Likewise.
5521 (try_split): Rename param "trial" to "uncast_trial" and
5522 reintroduce "insn" as a local rtx_insn * using a checked cast,
5523 dropping checked casts made redundant by this change.
5524 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5526 (remove_insn): Rename param "insn" to "uncast_insn" and
5527 reintroduce "insn" as a local rtx_insn * using a checked cast.
5528 (emit_pattern_after_setloc): Likewise for param "after", as
5530 (emit_pattern_after): Likewise. Strengthen local "prev" from
5532 (emit_pattern_before_setloc): Rename param "before" to
5533 "uncast_before" and reintroduce "before" as a local rtx_insn *
5534 using a checked cast. Strengthen locals "first", "last" from
5536 (emit_pattern_before): Likewise rename/cast param "before" to
5537 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5538 * except.c (copy_reg_eh_region_note_forward): Strengthen param
5539 "first" and local "insn" from rtx to rtx_insn *.
5540 (copy_reg_eh_region_note_backward): Likewise for param "last"
5542 * expr.c (fixup_args_size_notes): Rename param "last" to
5543 "uncast_last" and reintroduce "last" as a local rtx_insn *
5544 using a checked cast. Strengthen local "insn" from rtx to
5546 * function.c (set_insn_locations): Strengthen param "insn" from
5548 (record_insns): Likewise for param "insns" and local "tmp".
5549 (active_insn_between): Rename param "tail" to
5550 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5551 using a checked cast.
5552 (thread_prologue_and_epilogue_insns): Split out top-level local
5553 rtx "seq" into three different rtx_insn * locals. Strengthen
5554 local "prologue_seq" from rtx to rtx_insn *.
5555 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5556 from rtx to rtx_insn *.
5557 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5558 (priority): Likewise for locals "prev_first", "twin".
5559 (setup_insn_max_reg_pressure): Likewise for param "after".
5560 (sched_setup_bb_reg_pressure_info): Likewise.
5561 (no_real_insns_p): Strengthen params from const_rtx to
5563 (schedule_block): Strengthen local "next_tail" from rtx to
5565 * ifcvt.c (find_active_insn_before): Strengthen return type and
5566 param "insn" from rtx to rtx_insn *.
5567 (find_active_insn_after): Likewise.
5568 (cond_exec_process_insns): Likewise for param "start" and local "insn".
5569 (cond_exec_process_if_block): Likewise for locals "then_start",
5570 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5571 (noce_process_if_block): Likewise for local "jump".
5572 (merge_if_block): Likewise for two locals named "end".
5573 (cond_exec_find_if_block): Likewise for local "last_insn".
5574 * jump.c (delete_related_insns): Rename param "insn" to
5575 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5576 checked cast. Strengthen local "p" from rtx to rtx_insn *.
5577 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5579 (split_reg): Likewise.
5580 * lra.c (lra_process_new_insns): Likewise.
5581 * modulo-sched.c (permute_partial_schedule): Strengthen param
5582 "last" from rtx to rtx_insn *.
5583 * optabs.c (add_equal_note): Likewise for param "insns" and local
5585 (expand_binop_directly): Add checked casts to rtx_insn * within
5586 NEXT_INSN (pat) uses.
5587 (expand_unop_direct): Likewise.
5588 (maybe_emit_unop_insn): Likewise.
5589 * recog.c (peep2_attempt): Strengthen locals "last",
5590 "before_try", "x" from rtx to rtx_insn *.
5591 * reorg.c (optimize_skip): Strengthen return type and local
5592 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
5593 and locals "trial", "next_trial" from rtx to rtx_insn *.
5594 * resource.c (next_insn_no_annul): Strengthen return type and
5595 param "insn" from rtx to rtx_insn *. Use a cast to and method of
5596 rtx_sequence to clarify the code.
5597 (mark_referenced_resources): Add a checked cast to rtx_insn *
5598 within PREV_INSN (x).
5599 (find_dead_or_set_registers): Strengthen return type, param
5600 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5601 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
5603 (mark_target_live_regs): Strengthen params "insns" and "target",
5604 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5605 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
5607 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5608 from rtx to rtx_insn *.
5609 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5610 from rtx to rtx_insn *.
5611 (copy_reg_eh_region_note_backward): Likewise.
5612 (unshare_all_rtl_in_chain): Likewise for sole param.
5613 (dump_rtl_slim): Strengthen second and third params from const_rtx
5614 to const rtx_insn *.
5615 * sched-deps.c (sched_free_deps): Strengthen params "head" and
5616 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5617 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5618 "next_tail" from rtx to rtx_insn *.
5619 (begin_move_insn): Likewise for local "next".
5620 * sched-int.h (sched_free_deps): Likewise for first and second
5622 (no_real_insns_p): Strengthen both params from const_rtx to
5624 (sched_setup_bb_reg_pressure_info): Strengthen second params from
5626 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5628 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5629 and locals "insn", "tail" from const_rtx to const rtx_insn *.
5630 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5632 (debug_rtl_slim): Strengthen params "first" and "last" from
5633 const_rtx to const rtx_insn *.
5634 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5635 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5636 (convert_to_simple_return): Likewise for param "returnjump".
5637 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5639 (convert_to_simple_return): Likewise for param "returnjump".
5640 * valtrack.c (propagate_for_debug): Likewise for params
5642 * valtrack.h (propagate_for_debug): Likewise for second param.
5644 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5646 * output.h (insn_current_reference_address): Strengthen param
5647 from rtx to rtx_insn *.
5648 * final.c (insn_current_reference_address): Likewise.
5650 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5652 * basic-block.h (inside_basic_block_p): Strengthen param from
5653 const_rtx to const rtx_insn *.
5654 * cfgbuild.c (inside_basic_block_p): Likewise.
5656 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5658 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5660 (get_trace_info): Likewise for param "insn".
5661 (save_point_p): Likewise.
5662 (maybe_record_trace_start): Likewise for both params.
5663 (maybe_record_trace_start_abnormal): Likewise.
5664 (create_trace_edges): Likewise for sole param and for three of the
5666 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5667 to rtx_insn *, and update a call to pat->element to pat->insn.
5669 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5671 * function.h (struct expr_status): Convert field "x_forced_labels"
5672 from rtx_expr_list * to rtx_insn_list *.
5674 * cfgbuild.c (make_edges): Convert local "x" from an
5675 rtx_expr_list * to an rtx_insn_list *, replacing use of
5676 "element" method with "insn" method.
5677 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5678 * except.c (sjlj_emit_dispatch_table): Replace use of
5679 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5681 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5682 rtx_expr_list * to an rtx_insn_list *, replacing use of
5683 "element" method with "insn" method.
5684 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5685 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5686 rtx_insn *, adding a checked cast. Replace use of
5687 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5689 (expand_label): Likewise for local "label_r".
5691 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5693 * function.h (struct rtl_data): Convert field
5694 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5696 * rtl.h (remove_node_from_insn_list): New prototype.
5698 * builtins.c (expand_builtin): When prepending to
5699 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5701 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5702 to rtx_insn_list *, and use its "insn" method rather than
5704 * cfgrtl.c (delete_insn): Use new function
5705 remove_node_from_insn_list rather than
5706 remove_node_from_expr_list.
5707 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5708 to rtx_insn_list *, and use its "insn" method rather than
5710 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5711 * reload1.c (set_initial_label_offsets): Likewise for local "x".
5712 * rtlanal.c (remove_node_from_insn_list): New function, adapted
5713 from remove_node_from_expr_list.
5714 * stmt.c (expand_label): When prepending to
5715 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5718 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5720 * function.h (struct rtl_data): Strengthen fields "x_return_label"
5721 and "x_naked_return_label" from rtx to rtx_code_label *.
5723 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5725 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5726 (SET_NEXT_INSN): Likewise.
5727 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5729 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5730 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
5731 to split out the SEQUENCE from local "bundle", strengthening the
5732 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5733 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5734 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5735 and the type of the elements of the "slot" array from rtx to
5737 (reorg_split_calls): Likewise for locals "insn" and "next", and
5738 the type of the elements of the "slot" array.
5740 * config/frv/frv.c (frv_nops): Likewise for the elements of this
5742 (frv_function_prologue): Likewise for locals "insn", "next",
5744 (frv_register_nop): Introduce a local "nop_insn" to be the
5745 rtx_insn * containing rtx "nop".
5747 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5748 used as an insn and sometimes as a pattern, so rename it to
5749 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5750 using it where dealing with the core insn.
5752 * config/picochip/picochip.c (reorder_var_tracking_notes):
5753 Strengthen locals "insn", "next", "last_insn", "queue",
5754 "next_queue", "prev" from rtx to rtx_insn *.
5756 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5757 the second param is an rtx_insn ** rather than an rtx **.
5758 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5759 from rtx to rtx_sequence *, and introduce local named "sequence",
5760 using methods of rtx_sequence to clarify the code.
5761 (remove_insn): Introduce local rtx_sequence * named "sequence" and
5763 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5764 Rename param "after" to "uncast_after", reintroducing "after" as a
5765 local rtx_insn * with a checked cast.
5766 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5767 reintroducing "after" as a local rtx_insn * with a checked cast.
5768 Strengthen local "last" from rtx to rtx_insn * and remove the
5769 now-redundant checked casts.
5770 (copy_delay_slot_insn): Strengthen return type and param from rtx
5773 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5774 "last" from rtx to rtx_insn *.
5776 2014-08-28 David Malcolm <dmalcolm@redhat.com>
5778 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5779 param from rtx to rtx_insn *.
5781 * emit-rtl.c (copy_delay_slot_insn): Likewise.
5783 * reorg.c (skip_consecutive_labels): Strengthen return type, param
5784 and local "insn" from rtx to rtx_insn *.
5785 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5786 (unfilled_slots_next): Likewise.
5787 (function_return_label): Strengthen from rtx to rtx_code_label *.
5788 (function_simple_return_label): Likewise.
5789 (first_active_target_insn): Strengthen return type and param from
5791 (find_end_label): Strengthen return type from rtx to
5792 rtx_code_label *; strengthen locals as appropriate.
5793 (emit_delay_sequence): Strengthen return type, param "insn" and
5794 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
5795 and local "li" from rtx to rtx_insn_list *, using methods of
5796 rtx_insn_list for clarity and typesafety.
5797 (add_to_delay_list): Strengthen return type and param "insn" from
5798 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
5799 rtx_insn_list * and use methods of rtx_insn_list.
5800 (delete_from_delay_slot): Strengthen return type, param "insn",
5801 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5802 Strengthen local "seq" from rtx to rtx_sequence *, and local
5803 "delay_list" from rtx to rtx_insn_list *, using methods of
5804 rtx_sequence for clarity and type-safety.
5805 (delete_scheduled_jump): Add checked cast when invoking
5806 delete_from_delay_slot. Strengthen local "trial" from rtx to
5808 (optimize_skip): Strengthen return type and local "delay_list"
5809 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
5811 (steal_delay_list_from_target): Strengthen return type, param
5812 "delay_list" and local "new_delay_list" from rtx to
5813 rtx_insn_list *. Strengthen param "seq" from rtx to
5814 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
5816 Split out local "temp" into multiple more-tightly scoped locals:
5817 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
5818 of rtx_insn_list and rtx_sequence for clarity and typesafety.
5819 Strengthen locals named "trial" from rtx to rtx_insn *.
5820 (steal_delay_list_from_fallthrough): Strengthen return type and
5821 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
5822 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
5823 Strengthen local "trial" from rtx to rtx_insn *.
5824 (try_merge_delay_insns): Strength local "merged_insns" from rtx
5825 to rtx_insn_list * and use its methods. Strengthen local "pat"
5826 from rtx to rtx_sequence * and use its methods. Strengthen locals
5827 "dtrial" and "new_rtx" from rtx to rtx_insn *.
5828 (get_label_before): Strengthen return type and local "label" from
5830 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5831 "next_trial", "next", prev". Strengthen local "delay_list" from
5832 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
5834 (follow_jumps): Strengthen return type, param "label" and locals
5835 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5836 (fill_slots_from_thread): Strengthen return type, param
5837 "delay_list" from rtx to rtx_insn_list *. Strengthen params
5838 "insn", "thread", "opposite_thread" and locals "new_thread",
5839 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
5840 "sequence" from a checked cast to rtx_sequence so that we can call
5841 steal_delay_list_from_target and steal_delay_list_from_fallthrough
5842 with an rtx_sequence *.
5843 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5844 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5845 Strengthen local "delay_list" from rtx to rtx_insn_list *.
5846 (relax_delay_slots): Strengthen param "first" and locals "insn",
5847 "next", "trial", "delay_insn", "target_label" from rtx to
5848 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
5849 Introduce a local "trial_seq" for PATTERN (trial) of type
5850 rtx_sequence *, in both cases using methods of rtx_sequence.
5851 (dbr_schedule): Strengthen param "first" and locals "insn",
5852 "next", "epilogue_insn" from rtx to rtx_insn *.
5854 2014-08-28 Richard Biener <rguenther@suse.de>
5856 PR tree-optimization/62283
5857 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5858 Do not peel loops for alignment where the vector loop likely
5859 doesn't run at least VF times.
5861 2014-08-28 Bin Cheng <bin.cheng@arm.com>
5863 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5864 important_candidates. Consider all important candidates if
5865 IVS doesn't give any result. Remove check on ivs->upto.
5866 (try_add_cand_for): Call iv_ca_add_use only once.
5868 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5870 Anna Tikhonova <anna.tikhonova@intel.com>
5871 Ilya Tocar <ilya.tocar@intel.com>
5872 Andrey Turetskiy <andrey.turetskiy@intel.com>
5873 Ilya Verbin <ilya.verbin@intel.com>
5874 Kirill Yukhin <kirill.yukhin@intel.com>
5875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5877 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5878 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5880 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5881 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5882 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5883 (define_insn "*mul<mode>3"): Add EVEX version.
5885 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5886 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5887 Anna Tikhonova <anna.tikhonova@intel.com>
5888 Ilya Tocar <ilya.tocar@intel.com>
5889 Andrey Turetskiy <andrey.turetskiy@intel.com>
5890 Ilya Verbin <ilya.verbin@intel.com>
5891 Kirill Yukhin <kirill.yukhin@intel.com>
5892 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5894 * config/i386/sse.md
5895 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5896 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5897 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5898 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5899 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5900 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5901 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5902 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5903 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5904 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5905 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5906 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5907 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5908 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5909 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5910 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5912 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5914 Anna Tikhonova <anna.tikhonova@intel.com>
5915 Ilya Tocar <ilya.tocar@intel.com>
5916 Andrey Turetskiy <andrey.turetskiy@intel.com>
5917 Ilya Verbin <ilya.verbin@intel.com>
5918 Kirill Yukhin <kirill.yukhin@intel.com>
5919 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5921 * config/i386/sse.md
5922 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5923 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5924 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5926 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5928 Anna Tikhonova <anna.tikhonova@intel.com>
5929 Ilya Tocar <ilya.tocar@intel.com>
5930 Andrey Turetskiy <andrey.turetskiy@intel.com>
5931 Ilya Verbin <ilya.verbin@intel.com>
5932 Kirill Yukhin <kirill.yukhin@intel.com>
5933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5935 * config/i386/sse.md
5936 (define_mode_iterator VI128_256): New.
5937 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5939 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5940 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5941 Anna Tikhonova <anna.tikhonova@intel.com>
5942 Ilya Tocar <ilya.tocar@intel.com>
5943 Andrey Turetskiy <andrey.turetskiy@intel.com>
5944 Ilya Verbin <ilya.verbin@intel.com>
5945 Kirill Yukhin <kirill.yukhin@intel.com>
5946 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5948 * config/i386/sse.md
5949 (define_mode_iterator VI8_256_512): New.
5950 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5952 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5953 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5955 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5957 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5959 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
5960 pointer to the cumulative reloc value and return the value for
5962 (compute_reloc_for_rtx): Take a const_rtx. Call
5963 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5964 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
5965 for_each_rtx for the CONST case.
5967 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5969 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5970 (mark_constants_in_pattern): ...this new function to iterate over
5972 (mark_constants): Update accordingly.
5974 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5976 * varasm.c: Include rtl-iter.h.
5977 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5978 Remove the pointer to the cumulative hashval_t and just return
5979 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
5980 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5981 Accumulate the hashval_ts here instead of const_rtx_hash_1.
5983 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5985 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5986 Give real type of data parameter. Remove return value.
5987 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5988 to iterate over subrtxes.
5990 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5992 * var-tracking.c (use_narrower_mode_test): Turn from being a
5993 for_each_rtx callback to being a function that examines each
5995 (adjust_mems): Update accordingly.
5997 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
5999 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6000 callback to being a function that examines each subrtx itself.
6001 Remove handling of null rtxes.
6002 (add_uses): Update accordingly.
6004 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6006 * var-tracking.c: Include rtl-iter.h.
6007 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6008 to being a function that examines each subrtx itself.
6009 (use_type): Update accordingly.
6011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6013 * store-motion.c: Include rtl-iter.h.
6014 (extract_mentioned_regs_1): Delete.
6015 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6016 for_each_rtx to iterate over subrtxes.
6018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6020 * sel-sched.c: Include rtl-iter.h
6021 (count_occurrences_1): Delete.
6022 (count_occurrences_equiv): Turn rtxes into const_rtxes.
6023 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6025 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6027 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6028 * rtlanal.c (tls_referenced_p_1): Delete.
6029 (tls_referenced_p): Take a const_rtx rather than an rtx.
6030 Use FOR_EACH_SUBRTX rather than for_each_rtx.
6032 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6034 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6035 (for_each_inc_dec): Take an rtx rather than an rtx *.
6036 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6037 (cselib_record_sets): Likewise.
6038 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6039 (check_for_inc_dec): Likewise.
6040 * rtlanal.c (for_each_inc_dec_ops): Delete.
6041 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6042 rather than a pointer to the memory address. Replace
6043 for_each_inc_dec_ops argument with separate function and data
6044 arguments. Abort on non-autoinc addresses.
6045 (for_each_inc_dec_find_mem): Delete.
6046 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
6047 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6049 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6051 * rtl.h (find_all_hard_regs): Declare.
6052 * rtlanal.c (find_all_hard_regs): New function.
6053 (record_hard_reg_uses_1): Delete.
6054 (record_hard_reg_uses): Use find_all_hard_regs.
6056 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6058 * rtl.h (replace_label_data): Delete.
6059 (replace_label): Take the old label, new label and update-nuses flag
6060 as direct arguments. Return void.
6061 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6062 * rtlanal.c (replace_label): Update interface as above. Handle
6063 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
6064 iterator. Use FOR_EACH_SUBRTX_PTR.
6066 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6068 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6069 with const_rtx parameters.
6070 * varasm.c (get_pool_constant): Likewise.
6071 * rtlanal.c (rtx_referenced_p_1): Delete.
6072 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6073 Assert that the rtx we're looking for is nonnull. Allow searches
6074 for constant pool SYMBOL_REFs.
6076 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6078 * reload1.c: Include rtl-iter.h.
6079 (note_reg_elim_costly): Turn from being a for_each_rtx callback
6080 to being a function that examines each subrtx itself.
6081 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6083 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6085 * regcprop.c (cprop_find_used_regs_1): Delete.
6086 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6090 * regcprop.c: Include rtl-iter.h.
6091 (kill_value): Take a const_rtx.
6092 (kill_autoinc_value): Turn from being a for_each_rtx callback
6093 to being a function that examines each subrtx itself.
6094 (copyprop_hardreg_forward_1): Update accordingly.
6096 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6098 * reg-stack.c: Include rtl-iter.h.
6099 (subst_stack_regs_in_debug_insn): Delete.
6100 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6101 instead of for_each_rtx.
6103 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6105 * lower-subreg.c (find_decomposable_subregs): Turn from being
6106 a for_each_rtx callback to being a function that examines each
6107 subrtx itself. Remove handling of null rtxes.
6108 (decompose_multiword_subregs): Update accordingly.
6110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6112 * lower-subreg.c (adjust_decomposed_uses): Delete.
6113 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6114 Remove handling of null rtxes.
6116 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6118 * lower-subreg.c: Include rtl-iter.h.
6119 (resolve_subreg_use): Turn from being a for_each_rtx callback
6120 to being a function that examines each subrtx itself. Remove
6121 handling of null rtxes.
6122 (resolve_reg_notes, resolve_simple_move): Update accordingly.
6123 (decompose_multiword_subregs): Likewise.
6125 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6127 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6128 to being a function that examines each subrtx itself.
6129 (simplify_using_condition, simplify_using_initial_values): Update
6132 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6134 * loop-iv.c: Include rtl-iter.h.
6135 (find_single_def_src): New function.
6136 (replace_single_def_regs): Turn from being a for_each_rtx callback
6137 to being a function that examines each subrtx itself.
6138 (replace_in_expr, simplify_using_initial_values): Update accordingly.
6140 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6142 * jump.c (eh_returnjump_p_1): Delete.
6143 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6144 Remove handling of null rtxes.
6146 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6148 * jump.c: Include rtl-iter.h.
6149 (returnjump_p_1): Delete.
6150 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6151 Remove handling of null rtxes.
6153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6155 * ira.c: Include rtl-iter.h.
6156 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6157 to being a function that examines each subrtx itself. Remove
6158 handling of null rtxes.
6159 (update_equiv_regs): Update call accordingly.
6161 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6163 * fwprop.c: Include rtl-iter.h.
6164 (varying_mem_p): Turn from being a for_each_rtx callback to being
6165 a function that examines each subrtx itself.
6166 (propagate_rtx): Update accordingly.
6168 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6170 * function.c: Include rtl-iter.h
6171 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6172 callback to being a function that examines each subrtx itself.
6173 Return the changed flag.
6174 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6175 (instantiate_virtual_regs): Update calls accordingly.
6177 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6179 * final.c: Include rtl-iter.h.
6180 (mark_symbol_ref_as_used): Delete.
6181 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6184 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6186 * emit-rtl.c: Include rtl-iter.h.
6187 (find_auto_inc): Turn from being a for_each_rtx callback to being
6188 a function that examines each subrtx itself. Assume the first operand
6189 to an RTX_AUTOINC is the automodified register.
6190 (try_split): Update call accordingly.
6192 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6194 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6195 Return a bool, inverting the result so that 0/false means "not ok".
6196 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6197 subrtxes of a CONST.
6198 (mem_loc_descriptor, add_const_value_attribute)
6199 (resolve_addr_in_expr): Update calls accordingly.
6201 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6203 * dwarf2out.c: Include rtl-iter.h.
6204 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6205 Remove unused data parameter. Return a bool, inverting the result
6206 so that 0/false means "not ok".
6207 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
6208 instead of for_each_rtx.
6210 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6212 * dse.c: Include rtl-iter.h.
6213 (check_mem_read_rtx): Change void * parameter to real type.
6214 Remove return value.
6215 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
6216 for_each_rtx. Don't handle null rtxes.
6218 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6220 * df-problems.c: Include rtl-iter.h.
6221 (find_memory): Turn from being a for_each_rtx callback to being
6222 a function that examines each subrtx itself. Continue to look for
6223 volatile references even after a nonvolatile one has been found.
6224 (can_move_insns_across): Update calls accordingly.
6226 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6228 * ddg.c (walk_mems_2, walk_mems_1): Delete.
6229 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6230 to iterate over subrtxes. Return a bool rather than an int.
6232 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6234 * ddg.c: Include rtl-iter.h.
6235 (mark_mem_use_1): Rename to...
6236 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
6237 instead of for_each_rtx.
6238 (mem_read_insn_p): Update accordingly.
6240 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6242 * cse.c (change_cc_mode_args): Delete.
6243 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6244 a function that examines each subrtx itself. Take the fields of
6245 change_cc_mode_args as argument and return void.
6246 (cse_change_cc_mode_insn): Update calls accordingly.
6248 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6250 * cse.c (is_dead_reg): Change argument to const_rtx.
6251 (dead_debug_insn_data): Delete.
6252 (is_dead_debug_insn): Expand commentary. Turn from being a
6253 for_each_rtx callback to being a function that examines
6254 each subrtx itself. Take the fields of dead_debug_insn_data
6256 (delete_trivially_dead_insns): Update call accordingly.
6258 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6260 * cse.c (check_for_label_ref): Move earlier in file. Turn from
6261 being a for_each_rtx callback to being a function that examines
6263 (cse_extended_basic_block): Update call accordingly.
6265 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6267 * cse.c (check_dependence_data): Delete.
6268 (check_dependence): Change from being a for_each_rtx callback to being
6269 a function that examines all subrtxes itself. Don't handle null rtxes.
6270 (invalidate): Update call accordingly.
6272 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6274 * cse.c: Include rtl-iter.h.
6275 (approx_reg_cost_1): Delete.
6276 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6277 Don't handle null rtxes.
6279 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6281 * cfgcleanup.c: Include rtl-iter.h.
6282 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6283 to being a function that examines each subrtx itself.
6284 (thread_jump): Update accordingly.
6286 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6288 * combine-stack-adj.c: Include rtl-iter.h.
6289 (record_stack_refs_data): Delete.
6290 (record_stack_refs): Turn from being a for_each_rtx callback
6291 to being a function that examines each subrtx itself.
6292 Take a pointer to the reflist. Invert sense of return value
6293 so that true means success and false means failure. Don't
6295 (combine_stack_adjustments_for_block): Update accordingly.
6297 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6299 * combine.c (record_truncated_value): Turn from being a for_each_rtx
6300 callback to a function that takes an rtx and returns a bool
6301 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6304 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6306 * combine.c: Include rtl-iter.h.
6307 (unmentioned_reg_p_1): Delete.
6308 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6309 Don't handle null rtxes.
6311 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6313 * calls.c: Include rtl-iter.h.
6314 (internal_arg_pointer_based_exp_1): Delete.
6315 (internal_arg_pointer_based_exp): Take a const_rtx.
6316 Use FOR_EACH_SUBRTX to iterate over subrtxes.
6318 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6320 * caller-save.c: Include rtl-iter.h.
6321 (add_used_regs_1): Delete.
6322 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6323 to iterate over subrtxes. Assert that any remaining pseudos
6326 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6328 * bt-load.c: Include rtl-iter.h.
6329 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6330 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
6331 to iterate over subrtxes.
6332 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6333 find_btr_use rather than btr_referenced_p.
6335 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6337 * alias.c: Include rtl-iter.h.
6338 (refs_newer_value_cb): Delete.
6339 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6341 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
6343 * rtl-iter.h: New file.
6344 * rtlanal.c: Include it.
6345 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6346 (generic_subrtx_iterator <T>::add_single_to_queue)
6347 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6348 (generic_subrtx_iterator <T>::free_array): New functions.
6349 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6350 (generic_subrtx_iterator <const_rtx_accessor>)
6351 (generic_subrtx_iterator <rtx_var_accessor>
6352 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6353 (setup_reg_subrtx_bounds): New function.
6354 (init_rtlanal): Call it.
6356 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6359 * config/sh/sh.md (ashlsi3): Handle negative shift count for
6361 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6363 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
6365 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6367 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6369 * rtl.h (JUMP_LABEL_AS_INSN): New.
6371 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6373 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6375 (alloc_EXPR_LIST): Strengthen return type from rtx to
6377 (remove_free_EXPR_LIST_node): Likewise for param.
6378 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6379 from rtx to rtx_expr_list *.
6380 * sched-int.h (struct deps_desc): Strengthen fields
6381 "pending_read_mems" and "pending_write_mems" from rtx to
6384 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6385 rtx to rtx_expr_list *.
6386 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6387 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6389 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
6390 from rtx to rtx_expr_list *.
6391 * loop-iv.c (simplify_using_initial_values): Strengthen local
6392 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6393 "pnote_next" from rtx * to rtx_expr_list **.
6394 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
6395 param "exprp" from rtx * to rtx_expr_list **.
6396 (add_insn_mem_dependence): Strengthen local "mem_list" from
6397 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
6399 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6400 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
6401 param "old_mems_p" from rtx * to rtx_expr_list **.
6402 * var-tracking.c (struct adjust_mem_data): Strengthen field
6403 "side_effects" from rtx to rtx_expr_list *.
6404 (adjust_insn): Replace NULL_RTX with NULL when assigning to
6406 (prepare_call_arguments): Likewise.
6408 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6410 * function.h (struct rtl_data): Strengthen field
6411 "x_stack_slot_list" from rtx to rtx_expr_list *.
6413 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6414 when assigning to stack_slot_list.
6416 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6418 * function.h (struct rtl_data): Strengthen field
6419 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6420 * rtl.h (remove_node_from_expr_list): Strengthen second param from
6421 rtx * to rtx_expr_list **.
6423 * cfgbuild.c (make_edges): In loop over
6424 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6425 rtx_expr_list *, and use methods of the latter class to clarify
6427 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6428 rtx_expr_list *, and use methods of the latter class to clarify
6430 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6431 * reload1.c (set_initial_label_offsets): Likewise for local "x".
6432 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6433 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
6434 to rtx_expr_list *. Use methods of the latter class to clarify
6437 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6439 * function.h (struct expr_status): Strengthen field
6440 "x_forced_labels" from rtx to rtx_expr_list *.
6442 * cfgbuild.c (make_edges): Split local "x" into two locals,
6443 strengthening one from rtx to rtx_expr_list *, and using methods
6445 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6446 loop over forced_labels, introduce strengthen it from rtx to
6447 rtx_expr_list *, using methods to clarify the code.
6448 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6449 to rtx_expr_list *, using methods of said class to clarify the
6451 * reload1.c (set_initial_label_offsets): Split local "x" into two
6452 per-loop variables, strengthening the first from rtx to
6453 rtx_expr_list * and using methods.
6455 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6457 * coretypes.h (class rtx_expr_list): Add forward declaration.
6458 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6459 * gengenrtl.c (special_rtx): Add EXPR_LIST.
6460 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6461 invariant: GET_CODE (X) == EXPR_LIST.
6462 (is_a_helper <rtx_expr_list *>::test): New.
6463 (rtx_expr_list::next): New.
6464 (rtx_expr_list::element): New.
6465 (gen_rtx_EXPR_LIST): New.
6467 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6469 * varasm.c (mark_constants): Convert a GET_CODE check into a
6470 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6471 Use methods of rtx_sequence to clarify the code.
6473 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6475 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6476 local "seq" via a checked cast, and use methods of rtx_sequence
6477 to simplify the code.
6479 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6481 * resource.c (mark_referenced_resources): Strengthen local
6482 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6483 using methods of rtx_sequence to clarify the code.
6484 (find_dead_or_set_registers): Within the switch statement, convert
6485 a GET_CODE check to a dyn_cast, introducing local "seq". Within
6486 the JUMP_P handling, introduce another local "seq", adding a
6487 checked cast to rtx_sequence *. In both cases, use methods of
6488 rtx_sequence to clarify the code.
6489 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6490 via a checked cast, and use methods of rtx_sequence to simplify
6493 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6495 * reorg.c (redundant_insn): In two places in the function, replace
6496 a check of GET_CODE with a dyn_cast, introducing local "seq", and
6497 usings methods of rtx_sequence to clarify the code.
6499 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6501 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6502 local "seq" with a checked cast, and use methods of rtx_sequence
6503 to clarify the code.
6505 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6507 * function.c (contains): Introduce local "seq" for PATTERN (insn),
6508 with a checked cast, in the region for where we know it's a
6509 SEQUENCE. Use methods of rtx_sequence.
6511 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6513 * final.c (get_attr_length_1): Replace GET_CODE check with a
6514 dyn_cast, introducing local "seq" and the use of methods of
6516 (shorten_branches): Likewise, introducing local "body_seq".
6517 Strengthen local "inner_insn" from rtx to rtx_insn *.
6518 (reemit_insn_block_notes): Replace GET_CODE check with a
6519 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6520 Use methods of rtx_sequence.
6521 (final_scan_insn): Likewise, introducing local "seq" for when
6522 "body" is known to be a SEQUENCE, using its methods.
6524 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6526 * except.c (can_throw_external): Strengthen local "seq" from rtx
6527 to rtx_sequence *. Use methods of rtx_sequence.
6528 (insn_nothrow_p): Likewise.
6530 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6532 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6533 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6534 Use methods of rtx_sequence.
6535 (scan_trace): Likewise for local "pat".
6537 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6539 * coretypes.h (class rtx_sequence): Add forward declaration.
6540 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6541 invariant: GET_CODE (X) == SEQUENCE.
6542 (is_a_helper <rtx_sequence *>::test): New.
6543 (is_a_helper <const rtx_sequence *>::test): New.
6544 (rtx_sequence::len): New.
6545 (rtx_sequence::element): New.
6546 (rtx_sequence::insn): New.
6548 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6550 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6552 (alloc_INSN_LIST): Strengthen return type from rtx to
6554 (copy_INSN_LIST): Likewise for return type and param.
6555 (concat_INSN_LIST): Likewise for both params and return type.
6556 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6557 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
6558 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6559 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
6561 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6562 "implicit_sets", "control_uses", "clobbers" from rtx to
6564 (struct deps_desc): Likewise for fields "pending_read_insns",
6565 "pending_write_insns", "pending_jump_insns",
6566 "last_pending_memory_flush", "last_function_call",
6567 "last_function_call_may_noreturn", "sched_before_next_call",
6568 "sched_before_next_jump".
6569 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6570 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6572 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6573 from rtx to rtx_insn_list *.
6574 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6577 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6578 to rtx_insn_list **.
6579 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6581 (queue_insn): Likewise for local "link".
6582 (struct haifa_saved_data): Strengthen field "insn_queue" from
6583 rtx * to rtx_insn_list **.
6584 (save_backtrack_point): Update allocation of save->insn_queue to
6585 reflect the strengthening of elements from rtx to rtx_insn_list *.
6586 (queue_to_ready): Strengthen local "link" from rtx to
6587 rtx_insn_list *; use methods "next" and "insn" when traversing the
6589 (early_queue_to_ready): Likewise for locals "link", "next_link",
6591 (schedule_block): Update allocation of insn_queue to reflect the
6592 strengthening of elements from rtx to rtx_insn_list *. Strengthen
6593 local "link" from rtx to rtx_insn_list *, and use methods when
6595 (add_to_speculative_block): Strengthen locals "twins" and
6596 "next_node" from rtx to rtx_insn_list *, and use methods when
6597 working with them. Strengthen local "twin" from rtx to
6598 rtx_insn *, eliminating a checked cast.
6599 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6600 from rtx to rtx_insn_list *, and use methods when working with
6603 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6604 from rtx to rtx_insn_list *, adding a checked cast.
6605 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6607 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6608 "newlink" from rtx to rtx_insn_list *. Strengthen local
6609 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
6610 from rtx to rtx_insn *.
6611 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6612 from rtx to rtx_insn_list *. Use methods of the latter class.
6613 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6614 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6615 (remove_free_INSN_LIST_node): Strengthen return type and local
6616 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
6617 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
6618 rtx_insn_list *, using "insn" method.
6620 * sched-deps.c (add_dependence_list): Strengthen param "list"
6621 from rtx to rtx_insn_list *, and use methods when working with it.
6622 (add_dependence_list_and_free): Strengthen param "listp" from
6623 rtx * to rtx_insn_list **.
6624 (remove_from_dependence_list): Strenghten param "listp" from rtx *
6625 to rtx_insn_list **, and use methods when working with *listp.
6626 (remove_from_both_dependence_lists): Strengthen param "listp" from
6627 rtx * to rtx_insn_list **
6628 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6629 to rtx_insn_list **. Eliminate local "link", in favor of two new
6630 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6632 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6633 by introducing local "cond_deps".
6634 (remove_from_deps): Strengthen param "insn" from rtx to
6637 * sched-rgn.c (concat_insn_mem_list): Strengthen param
6638 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6639 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6640 Use methods of rtx_insn_list.
6642 * store-motion.c (struct st_expr): Strengthen fields
6643 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6644 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6646 (find_moveable_store): Split out "tmp" into multiple more-tightly
6647 scoped locals. Use methods of rtx_insn_list *.
6648 (compute_store_table): Strengthen local "tmp" from rtx to
6649 rtx_insn *. Use methods of rtx_insn_list *.
6651 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6653 * coretypes.h (class rtx_insn_list): Add forward declaration.
6654 * rtl.h (class rtx_insn_list): New subclass of rtx_def
6655 (is_a_helper <rtx_insn_list *>::test): New.
6656 (rtx_insn_list::next): New.
6657 (rtx_insn_list::insn): New.
6658 (gen_rtx_INSN_LIST): Add prototype.
6659 * emit-rtl.c (gen_rtx_INSN_LIST): New.
6660 * gengenrtl.c (special_rtx): Add INSN_LIST.
6662 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6664 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6665 "prev" from rtx to rtx_insn *.
6667 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6669 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6670 functions. Require merely an rtx for now, not an rtx_insn *.
6671 (BLOCK_FOR_INSN): Likewise.
6672 (INSN_LOCATION): Likewise.
6673 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6675 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6677 * rtl.h (PATTERN): Convert this macro into a pair of inline
6678 functions, for now, requiring const_rtx and rtx.
6680 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6682 * target.def (unwind_emit): Strengthen param "insn" from rtx to
6684 (final_postscan_insn): Likewise.
6685 (adjust_cost): Likewise.
6686 (adjust_priority): Likewise.
6687 (variable_issue): Likewise.
6688 (macro_fusion_pair_p): Likewise.
6689 (dfa_post_cycle_insn): Likewise.
6690 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6691 (first_cycle_multipass_issue): Likewise.
6692 (dfa_new_cycle): Likewise.
6693 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6694 (speculate_insn): Likewise for param "insn".
6695 (gen_spec_check): Likewise for params "insn" and "label".
6696 (get_insn_spec_ds): Likewise for param "insn".
6697 (get_insn_checked_ds): Likewise.
6698 (dispatch_do): Likewise.
6699 (dispatch): Likewise.
6700 (cannot_copy_insn_p): Likewise.
6701 (invalid_within_doloop): Likewise.
6702 (legitimate_combined_insn): Likewise.
6706 * doc/tm.texi: Automatically updated to reflect changes to
6709 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6711 (schedule_block): Likewise.
6712 (sched_init): Likewise.
6713 (sched_speculate_insn): Strengthen param "insn" from rtx to
6715 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6717 * hooks.c (hook_bool_rtx_true): Rename to...
6718 hook_bool_rtx_insn_true): ...this, and strengthen first param from
6720 (hook_constcharptr_const_rtx_null): Rename to...
6721 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6722 first param from const_rtx to const rtx_insn *.
6723 (hook_bool_rtx_int_false): Rename to...
6724 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6725 param from rtx to rtx_insn *.
6726 (hook_void_rtx_int): Rename to...
6727 (hook_void_rtx_insn_int): ...this, and strengthen first param from
6730 * hooks.h (hook_bool_rtx_true): Rename to...
6731 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6733 (hook_bool_rtx_int_false): Rename to...
6734 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6735 param from rtx to rtx_insn *.
6736 (hook_void_rtx_int): Rename to...
6737 (hook_void_rtx_insn_int): ...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 *.
6743 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6744 and local "prev" from rtx to rtx_insn *.
6746 * sched-int.h (sched_speculate_insn): Strengthen first param from
6749 * sel-sched.c (create_speculation_check): Likewise for local "label".
6750 * targhooks.c (default_invalid_within_doloop): Strengthen param
6751 "insn" from const_rtx to const rtx_insn *.
6752 * targhooks.h (default_invalid_within_doloop): Strengthen param
6753 from const_rtx to const rtx_insn *.
6755 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6756 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6758 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6760 (arc_invalid_within_doloop): Likewise, with const.
6762 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6763 (arm_cannot_copy_insn_p): Likewise for param "insn".
6764 (arm_unwind_emit): Likewise.
6766 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6769 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6770 (c6x_variable_issue): Likewise. Removed now-redundant checked
6772 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6774 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6775 Likewise for param "insn".
6776 (epiphany_mode_after): Likewise.
6777 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6778 params "insn", "dep_insn".
6779 (epiphany_mode_needed): Likewise for param "insn".
6780 (epiphany_mode_after): Likewise.
6782 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6783 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6784 (ix86_avx_u128_mode_needed): Likewise.
6785 (ix86_i387_mode_needed): Likewise.
6786 (ix86_mode_needed): Likewise.
6787 (ix86_avx_u128_mode_after): Likewise.
6788 (ix86_mode_after): Likewise.
6789 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6790 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6791 (ix86_adjust_priority): Likewise for param "insn".
6792 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6793 (do_dispatch): Likewise.
6794 (has_dispatch): Likewise.
6795 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6797 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6798 reflect renaming of default hook implementation from
6799 hook_constcharptr_const_rtx_null to
6800 hook_constcharptr_const_rtx_insn_null.
6801 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6803 (ia64_variable_issue): Likewise for param "insn".
6804 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6805 (ia64_dfa_new_cycle): Likewise.
6806 (ia64_get_insn_spec_ds): Likewise.
6807 (ia64_get_insn_checked_ds): Likewise.
6808 (ia64_speculate_insn): Likewise.
6809 (ia64_gen_spec_check): Likewise for params "insn", "label".
6810 (ia64_asm_unwind_emit): Likewise for param "insn".
6812 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6814 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6816 (m68k_sched_variable_issue): Likewise for param "insn".
6818 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6821 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6822 Likewise for params "insn", "dep".
6824 * config/mips/mips.c (mips_adjust_cost): Likewise.
6825 (mips_variable_issue): Likewise for param "insn".
6826 (mips_final_postscan_insn): Likewise.
6828 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6829 for params "insn", "dep".
6831 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6833 (pa_adjust_priority): Likewise for param "insn".
6835 * config/picochip/picochip.c (picochip_sched_adjust_cost):
6836 Likewise for params "insn", "dep_insn".
6838 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6840 (rs6000_variable_issue): Likewise.
6841 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6842 (rs6000_debug_adjust_cost): Likewise.
6843 (rs6000_adjust_priority): Likewise for param "insn".
6844 (rs6000_use_sched_lookahead_guard): Likewise.
6845 (get_next_active_insn): Likewise for return type and both params.
6846 (redefine_groups): Likewise for params "prev_head_insn", "tail"
6847 and locals "insn", "next_insn".
6848 (pad_groups): Likewise.
6850 * config/s390/s390.c (s390_adjust_priority): Likewise for param
6852 (s390_cannot_copy_insn_p): Likewise.
6853 (s390_sched_variable_issue): Likewise for third param, eliminating
6855 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6856 default hook implementation from hook_constcharptr_const_rtx_null
6857 to hook_constcharptr_const_rtx_insn_null.
6859 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6860 from rtx to rtx_insn *.
6861 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6862 (sh_variable_issue): Likewise for param "insn".
6863 (sh_dfa_new_cycle): Likewise.
6864 (sh_mode_needed): Likewise.
6865 (sh_mode_after): Likewise.
6867 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6868 params "insn", "dep_insn".
6869 (hypersparc_adjust_cost): Likewise.
6870 (sparc_adjust_cost): Likewise.
6872 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6873 param, eliminated checked cast.
6874 (spu_sched_adjust_cost): Likewise for first and third params.
6876 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6877 params "insn" and "dep_insn" from rtx to rtx_insn *.
6879 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6881 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6883 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6884 (set_is_load_p): ...this, updating to work on a SET pattern rather
6886 (is_store_insn): Rename to...
6887 (set_is_store_p): ...this, updating to work on a SET pattern
6888 rather than an insn.
6889 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6890 top of function to where it is needed. Rewrite the bogus
6891 condition that checks for "insn" and "dep" being PARALLEL to
6892 instead use single_set, introducing locals "insn_set" and
6893 "dep_set". Given that we only ever returned "cost" for a non-pair
6894 of SETs, bail out early if we don't have a pair of SET.
6895 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6896 use the new locals "insn_set" and "dep_set", and update calls to
6897 is_load_insn and is_store_insn to be calls to set_is_load_p and
6900 2014-08-27 Guozhi Wei <carrot@google.com>
6903 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6904 amount before using it.
6906 2014-08-27 Richard Biener <rguenther@suse.de>
6908 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6909 get_maxval_strlen inside a more useful API.
6910 (gimple_fold_builtin_with_strlen): Remove and fold into ...
6911 (gimple_fold_builtin): ... caller.
6912 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6913 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6914 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6915 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6916 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6917 gimple_fold_builtin_sprintf): Adjust to compute maxval
6920 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
6923 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6925 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6927 Anna Tikhonova <anna.tikhonova@intel.com>
6928 Ilya Tocar <ilya.tocar@intel.com>
6929 Andrey Turetskiy <andrey.turetskiy@intel.com>
6930 Ilya Verbin <ilya.verbin@intel.com>
6931 Kirill Yukhin <kirill.yukhin@intel.com>
6932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6934 * config/i386/sse.md
6935 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6936 Use `concat_tg_mode' attribute to determine asm register size.
6938 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6940 Anna Tikhonova <anna.tikhonova@intel.com>
6941 Ilya Tocar <ilya.tocar@intel.com>
6942 Andrey Turetskiy <andrey.turetskiy@intel.com>
6943 Ilya Verbin <ilya.verbin@intel.com>
6944 Kirill Yukhin <kirill.yukhin@intel.com>
6945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6947 * config/i386/sse.md
6948 (define_mode_iterator VI48_AVX512VL): New.
6949 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6950 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6951 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6952 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6953 with VI1): Change mode iterator.
6954 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6955 with VI_ULOADSTORE_BW_AVX512VL): New.
6956 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6957 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6958 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6959 with VI1): Change mode iterator.
6960 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6961 with VI_ULOADSTORE_BW_AVX512VL): New.
6962 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6963 with VI_ULOADSTORE_F_AVX512VL): Ditto.
6964 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6965 with VI1): Change mode iterator.
6966 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6967 with VI_ULOADSTORE_BW_AVX512VL): New.
6968 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6969 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6970 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6971 (define_insn "<avx512>_storedqu<mode>_mask" with
6972 VI48_AVX512VL): New.
6973 (define_insn "<avx512>_storedqu<mode>_mask" with
6974 VI12_AVX512VL): Ditto.
6976 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6978 Anna Tikhonova <anna.tikhonova@intel.com>
6979 Ilya Tocar <ilya.tocar@intel.com>
6980 Andrey Turetskiy <andrey.turetskiy@intel.com>
6981 Ilya Verbin <ilya.verbin@intel.com>
6982 Kirill Yukhin <kirill.yukhin@intel.com>
6983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6985 * config/i386/sse.md
6986 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6987 (define_mode_iterator VI48_AVX512BW): New.
6988 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6989 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6990 with VI48_AVX2_48_AVX512F): New.
6991 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6992 with VI2_AVX512VL): Ditto.
6994 2014-08-27 Richard Biener <rguenther@suse.de>
6997 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6998 (fold_builtin_3): Do not fold strcat_chk here.
6999 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7001 (gimple_fold_builtin): Fold strcat_chk here.
7003 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
7005 * dwarf2out.h (dwarf2out_decl): Remove prototype.
7006 * dwarf2out.c (dwarf2out_decl): Make static.
7008 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
7010 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7014 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7015 from rtx to rtx_insn *.
7016 (cselib_lookup_from_insn): Likewise for final param.
7017 (cselib_subst_to_values_from_insn): Likewise.
7018 (cselib_add_permanent_equiv): Likewise.
7020 * cselib.c (cselib_current_insn): Likewise for this variable.
7021 (cselib_subst_to_values_from_insn): Likewise for param "insn".
7022 (cselib_lookup_from_insn): Likewise.
7023 (cselib_add_permanent_equiv): Likewise for param "insn" and local
7024 "save_cselib_current_insn".
7025 (cselib_process_insn): Replace use of NULL_RTX with NULL.
7027 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7028 from rtx to rtx_insn *.
7030 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7032 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7035 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7037 * df.h (df_dump_insn_problem_function): Strengthen first param of
7038 this callback from const_rtx to const rtx_insn *.
7039 (struct df_insn_info): Strengthen field "insn" from rtx to
7041 (DF_REF_INSN): Eliminate this function, reinstating the older
7043 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7044 (df_reg_defined): Likewise.
7045 (df_find_use): Likewise.
7046 (df_reg_used): Likewise.
7047 (df_dump_insn_top): Strengthen param 1 from const_rtx to
7049 (df_dump_insn_bottom): Likewise.
7050 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7051 (df_insn_debug_regno): Likewise.
7052 (debug_df_insn): Likewise.
7053 (df_rd_simulate_one_insn): Likewise for param 2.
7054 (df_word_lr_simulate_defs): Likewise for param 1.
7055 (df_word_lr_simulate_uses): Likewise.
7056 (df_md_simulate_one_insn): Likewise for param 2.
7057 (df_simulate_find_noclobber_defs): Likewise for param 1.
7058 (df_simulate_find_defs): Likewise.
7059 (df_simulate_defs): Likewise.
7060 (df_simulate_uses): Likewise.
7061 (df_simulate_one_insn_backwards): Likewise for param 2.
7062 (df_simulate_one_insn_forwards): Likewise.
7063 (df_uses_create): Likewise for param 2.
7064 (df_insn_create_insn_record): Likewise for param 1.
7065 (df_insn_delete): Likewise.
7066 (df_insn_rescan): Likewise.
7067 (df_insn_rescan_debug_internal): Likewise.
7068 (df_insn_change_bb): Likewise.
7069 (df_notes_rescan): Likewise.
7070 * rtl.h (remove_death): Likewise for param 2.
7071 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7073 * sched-int.h (reemit_notes): Strengthen param from rtx to
7075 * valtrack.h (propagate_for_debug): Likewise for param 1.
7077 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7078 local "tmp_rtx" from const_rtx to const rtx_insn *.
7079 * combine.c (remove_death): Strengthen param "insn" from rtx to
7081 (move_deaths): Likewise for local "where_dead".
7082 * cse.c (delete_trivially_dead_insns): Introduce local
7083 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7084 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7086 (df_reg_defined): Likewise.
7087 (df_find_use): Likewise.
7088 (df_reg_used): Likewise.
7089 (df_dump_insn_problem_data): Strengthen param "insn" from
7090 const_rtx to const rtx_insn *.
7091 (df_dump_insn_top): Likewise.
7092 (df_dump_insn_bottom): Likewise.
7093 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7094 (df_insn_debug_regno): Likewise.
7095 (debug_df_insn): Likewise.
7096 (DF_REF_INSN): Delete.
7097 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7098 from rtx to rtx_insn *.
7099 (df_chain_insn_top_dump): Strengthen param "insn" from
7100 const_rtx to const rtx_insn *.
7101 (df_chain_insn_bottom_dump): Likewise.
7102 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7104 (df_word_lr_simulate_uses): Likewise.
7105 (df_print_note): Likewise.
7106 (df_remove_dead_and_unused_notes): Likewise.
7107 (df_set_unused_notes_for_mw): Likewise.
7108 (df_set_dead_notes_for_mw): Likewise.
7109 (df_create_unused_note): Likewise.
7110 (df_simulate_find_defs): Likewise.
7111 (df_simulate_find_uses): Likewise.
7112 (df_simulate_find_noclobber_defs): Likewise.
7113 (df_simulate_defs): Likewise.
7114 (df_simulate_uses): Likewise.
7115 (df_simulate_one_insn_backwards): Likewise.
7116 (df_simulate_one_insn_forwards): Likewise.
7117 (df_md_simulate_one_insn): Likewise.
7118 * df-scan.c (df_uses_create): Likewise.
7119 (df_insn_create_insn_record): Likewise.
7120 (df_insn_delete): Likewise.
7121 (df_insn_rescan): Likewise.
7122 (df_insn_rescan_debug_internal): Likewise.
7123 (df_insn_change_bb): Likewise.
7124 (df_notes_rescan): Likewise.
7125 (df_refs_add_to_chains): Likewise.
7126 (df_insn_refs_verify): Likewise.
7127 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7128 when invoking df_insn_delete.
7129 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7130 (set_unique_reg_note): Add checked cast.
7131 * final.c (cleanup_subreg_operands): Likewise.
7132 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7133 "insn" from rtx to rtx_insn *.
7134 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7135 "last" from rtx to rtx_insn *.
7136 * ira-emit.c (change_regs_in_insn): New function.
7137 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7138 Invoke change_regs_in_insn rather than change_regs.
7139 * ira.c (update_equiv_regs): Strengthen locals "insn",
7140 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
7141 for_each_rtx_in_insn rather than for_each_rtx.
7142 * recog.c (confirm_change_group): Add checked casts.
7143 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7145 (peep2_fill_buffer): Add checked cast.
7146 * rtlanal.c (remove_note): Likewise.
7147 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7148 locals "next" "end" from rtx to rtx_insn *.
7150 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7152 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7154 (struct reg_use_data): Likewise for field "insn".
7155 (insn_cost): Likewise for param.
7156 (real_insn_for_shadow): Likewise for return type and param.
7157 (increase_insn_priority): Likewise for param 1.
7158 (debug_dependencies): Likewise for both params.
7160 * haifa-sched.c (insn_delay): Likewise for param "insn".
7161 (real_insn_for_shadow): Likewise for return type and param "insn".
7162 (update_insn_after_change): Likewise for param "insn".
7163 (recompute_todo_spec): Likewise for param "next" and locals "pro",
7165 (insn_cost): Likewise for param "insn".
7166 (increase_insn_priority): Likewise.
7167 (calculate_reg_deaths): Likewise.
7168 (setup_insn_reg_pressure_info): Likewise.
7169 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7170 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7171 (model_recompute): Likewise.
7172 (must_restore_pattern_p): Likewise for param "next".
7173 (model_excess_cost): Likewise for param "insn".
7174 (queue_remove): Likewise.
7175 (adjust_priority): Likewise for param "prev".
7176 (update_register_pressure): Likewise for param "insn".
7177 (setup_insn_max_reg_pressure): Likewise for local "insn".
7178 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7179 (model_add_to_schedule): Likewise.
7180 (model_reset_queue_indices): Likewise for local "insn".
7181 (unschedule_insns_until): Strengthen local "recompute_vec" from
7182 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
7183 "con" from rtx to rtx_insn *.
7184 (restore_last_backtrack_point): Likewise for both locals "x". Add
7186 (estimate_insn_tick): Likewise for param "insn".
7187 (commit_schedule): Likewise for params "prev_head", "tail" and
7189 (verify_shadows): Likewise for locals "i1", "i2".
7190 (dump_insn_stream): Likewise for params "head", "tail" and locals
7191 "next_tail", "insn".
7192 (schedule_block): Likewise for locals "insn", "x". Add a checked
7194 (fix_inter_tick): Likewise for params "head", "tail".
7195 (create_check_block_twin): Likewise for local "jump".
7196 (haifa_change_pattern): Likewise for param "insn".
7197 (haifa_speculate_insn): Likewise.
7198 (dump_new_block_header): Likewise for params "head", "tail".
7199 (fix_jump_move): Likewise for param "jump".
7200 (move_block_after_check): Likewise.
7201 (sched_init_insn_luid): Likewise for param "insn".
7202 (sched_init_luids): Likewise for local "insn".
7203 (insn_luid): Likewise for param "insn".
7204 (init_h_i_d): Likewise.
7205 (haifa_init_h_i_d): Likewise for local "insn".
7206 (haifa_init_insn): Likewise for param "insn".
7207 * sched-deps.c (add_dependence): Likewise for local "real_pro",
7209 (create_insn_reg_use): Likewise for param "insn".
7210 (setup_insn_reg_uses): Likewise. Add a checked cast.
7211 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7212 "tail" from rtx to rtx_insn *.
7213 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7214 "insn", "next_tail".
7216 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7218 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7219 from rtx to rtx_insn *.
7220 (model_add_to_schedule): Likewise for locals "start", "end",
7223 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7225 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7227 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
7228 "to" and locals "insn", "next", "copy". Remove now-redundant
7231 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7233 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7234 rtx_insn * and param 4 from rtx * to rtx_insn **.
7235 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7236 param 2 from rtx * to rtx_insn **.
7238 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7239 rtx_insn * and final param from rtx * to rtx_insn **.
7241 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7242 from rtx to rtx_insn *.
7243 (try_head_merge_bb): Likewise for both locals named "move_upto".
7244 * df-problems.c (can_move_insns_across): Likewise for params
7245 "from", "to", "across_from", "across_to" and locals "insn",
7246 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
7248 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7249 from rtx to rtx_insn *.
7250 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7251 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7252 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7254 (noce_try_abs): Likewise.
7255 (noce_get_condition): Likewise for param "jump". Strengthen param
7256 "earliest" from rtx * to rtx_insn **.
7257 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7259 (find_cond_trap): Likewise.
7260 (dead_or_predicable): Likewise for local "earliest".
7261 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
7263 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7264 and local "prev". Strengthen param "earliest" from rtx * to
7266 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7267 Strengthen param "earliest" from rtx * to rtx_insn **.
7269 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7271 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7272 "to" and local "insn" from rtx to rtx_insn *.
7274 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7276 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7277 from rtx to rtx_insn *.
7278 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7279 (code_motion_path_driver): Likewise for local "last_insn".
7280 (simplify_changed_insns): Likewise for local "insn".
7282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7284 * rtl.h (push_to_sequence): Strengthen param from rtx to
7286 (push_to_sequence2): Likewise for both params.
7287 (delete_insns_since): Likewise for param.
7288 (reorder_insns_nobb): Likewise for all three params.
7289 (set_new_first_and_last_insn): Likewise for both params.
7291 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7292 rtx_insn *. Remove now-redundant cast.
7293 (set_last_insn): Likewise.
7295 * builtins.c (expand_builtin_return): Strengthen local
7296 "call_fusage" from rtx to rtx_insn *.
7297 * cfgrtl.c (create_basic_block_structure): Likewise for local
7299 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7300 "first", "last" and local "insn".
7301 (delete_insns_since): Likewise for param "from".
7302 (reorder_insns_nobb): Likewise for params "from", "to", "after"
7304 (push_to_sequence): Likewise for param "first" and local "last".
7305 (push_to_sequence2): Likewise for params "first" and "last".
7306 * lra.c (emit_add3_insn): Likewise for local "last".
7307 (lra_emit_add): Likewise.
7308 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7310 (process_address_1): Likewise for locals "insn", last".
7311 * modulo-sched.c (ps_first_note): Likewise for return type.
7312 * optabs.c (expand_binop_directly): Likewise for param "last".
7314 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7316 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7318 * emit-rtl.c (get_last_insn_anywhere): Likewise.
7320 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7322 * function.h (struct sequence_stack): Strengthen fields "first"
7323 and "last" from rtx to rtx_insn *.
7324 (struct emit_status): Likewise for fields "x_first_insn" and
7327 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7328 (set_first_insn): Add checked cast.
7329 (get_last_insn): Remove now-redundant checked cast.
7330 (set_last_insn): Add checked cast.
7332 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7333 "saved_first" and "saved_last" from rtx to rtx_insn *.
7335 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7337 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7338 (unlink_insn_chain): Strengthen both params from rtx to
7341 * cfgrtl.c (cfg_layout_function_header): Likewise for this
7343 (unlink_insn_chain): Likewise for params "first" and "last".
7344 Remove now-redundant checked cast.
7345 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7346 (fixup_reorder_chain): Strengthen local "insn" from rtx to
7348 * emit-rtl.c (link_insn_into_chain): Likewise for all three
7350 (add_insn): Likewise for param "insn" and local "prev".
7351 (add_insn_after_nobb): Likewise for both params and local "next".
7352 (add_insn_before_nobb): Likewise for both params and local "prev".
7353 (add_insn_after): Rename param "after" to "uncast_after",
7354 introducing local "after" with another checked cast.
7355 (add_insn_before): Rename params "insn" and "before", giving them
7356 "uncast_" prefixes, adding the old names back using checked casts.
7357 (emit_note_after): Likewise for param "after".
7358 (emit_note_before): Likewise for param "before".
7359 (emit_label): Add a checked cast.
7361 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7363 * cselib.h (cselib_record_sets_hook): Strengthen initial param
7364 "insn" from rtx to rtx_insn *.
7366 * cselib.c (cselib_record_sets_hook): Likewise.
7368 * var-tracking.c (add_with_sets): Likewise, renaming back from
7369 "uncast_insn" to "insn" and eliminating the checked cast from rtx
7372 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7374 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7375 and "header_" from rtx to rtx_insn *.
7376 (struct basic_block_d): Likewise for field "head_" within "x"
7377 field of union basic_block_il_dependent.
7378 (BB_HEAD): Drop function...
7379 (SET_BB_HEAD): ...and this function in favor of...
7380 (BB_HEAD): ...reinstate macro.
7381 (BB_END): Drop function...
7382 (SET_BB_END): ...and this function in favor of...
7383 (BB_END): ...reinstate macro.
7384 (BB_HEADER): Drop function...
7385 (SET_BB_HEADER): ...and this function in favor of...
7386 (BB_HEADER): ...reinstate macro.
7388 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7389 (fix_crossing_unconditional_branches): Likewise.
7390 * caller-save.c (save_call_clobbered_regs): Likewise.
7391 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7392 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7393 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7394 (merge_blocks_move_successor_nojumps): Likewise.
7395 (outgoing_edges_match): Update use of for_each_rtx to
7396 for_each_rtx_in_insn.
7397 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7398 (expand_gimple_cond): Likewise.
7399 (expand_gimple_tailcall): Likewise.
7400 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7402 (construct_exit_block): Drop use of SET_BB_END.
7403 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7405 (delete_insn): Rename param "insn" to "uncast_insn", introducing
7406 a new local "insn" with a checked cast to rtx_insn *. Drop use of
7407 SET_BB_HEAD and SET_BB_END.
7408 (create_basic_block_structure): Drop use of SET_BB_HEAD and
7410 (rtl_delete_block): Drop use of SET_BB_HEAD.
7411 (rtl_split_block): Drop use of SET_BB_END.
7412 (emit_nop_for_unique_locus_between): Likewise.
7413 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7414 (block_label): Drop use of SET_BB_HEAD.
7415 (fixup_abnormal_edges): Drop use of SET_BB_END.
7416 (record_effective_endpoints): Drop use of SET_BB_HEADER.
7417 (relink_block_chain): Likewise.
7418 (fixup_reorder_chain): Drop use of SET_BB_END.
7419 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7420 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7421 rtx_insn **. Drop use of SET_BB_HEADER.
7422 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7424 (BB_HEAD): Delete this function.
7425 (SET_BB_HEAD): Likewise.
7427 (SET_BB_END): Likewise.
7428 (BB_HEADER): Likewise.
7429 (SET_BB_HEADER): Likewise.
7430 * emit-rtl.c (add_insn_after): Rename param "insn" to
7431 "uncast_insn", adding a new local "insn" and a checked cast to
7432 rtx_insn *. Drop use of SET_BB_END.
7433 (remove_insn): Strengthen locals "next" and "prev" from rtx to
7434 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
7435 (reorder_insns): Drop use of SET_BB_END.
7436 (emit_insn_after_1): Strengthen param "first" and locals "last",
7437 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
7438 (emit_pattern_after_noloc): Add checked cast.
7439 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7440 (restore_other_notes): Likewise.
7441 (move_insn): Likewise.
7442 (sched_extend_bb): Likewise.
7443 (fix_jump_move): Likewise.
7444 * ifcvt.c (noce_process_if_block): Likewise.
7445 (dead_or_predicable): Likewise.
7446 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7447 * reg-stack.c (change_stack): Drop use of SET_BB_END.
7448 * sel-sched-ir.c (sel_move_insn): Likewise.
7449 * sel-sched.c (move_nop_to_previous_block): Likewise.
7451 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7453 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7457 * basic-block.h (create_basic_block_structure): Strengthen params
7458 1 "head" and 2 "end" from rtx to rtx_insn *.
7459 * cfgrtl.c (create_basic_block_structure): Likewise.
7460 (rtl_create_basic_block): Update casts from void * to rtx to
7461 rtx_insn *, so that we can pass them as rtx_insn * to
7462 create_basic_block_structure.
7463 * sel-sched-ir.c (sel_create_basic_block): Likewise.
7465 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7467 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7469 (check_for_inc_dec): Strengthen param "insn" from rtx to
7472 * cselib.h (cselib_process_insn): Likewise.
7474 * cselib.c (cselib_record_sets): Likewise.
7475 (cselib_process_insn): Likewise.
7477 * dse.c (struct insn_info): Likewise for field "insn".
7478 (check_for_inc_dec_1): Likewise for local "insn".
7479 (check_for_inc_dec): Likewise for param "insn".
7480 (scan_insn): Likewise.
7481 (dse_step1): Likewise for local "insn".
7483 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7484 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
7486 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7488 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7489 from rtx to rtx_insn *.
7490 (DEP_PRO): Delete this function and...
7491 (SET_DEP_PRO): ...this function in favor of...
7492 (DEP_PRO): ...reinstate this macro.
7493 (DEP_CON): Delete this function and...
7494 (SET_DEP_CON): ...this function in favor of...
7495 (DEP_CON): ...reinstate this old macro.
7496 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7497 (init_dep): Likewise.
7498 (set_priorities): Likewise for both params.
7499 (sd_copy_back_deps): Likewise for params 1 and 2.
7501 * haifa-sched.c (priority): Likewise for param "insn" and local
7503 (set_priorities): Likewise for params "head" and "tail" and local
7505 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7507 (add_to_speculative_block): Add a checked cast.
7508 (create_check_block_twin): Drop use of SET_DEP_CON.
7509 (add_jump_dependencies): Strengthen params "insn" and "jump" from
7512 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7513 Drop use of SET_DEP_PRO
7514 (init_dep): Strengthen params "pro" and "con" from rtx to
7516 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
7520 (SET_DEP_PRO): Delete.
7521 (SET_DEP_CON): Delete.
7523 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7525 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7526 from rtx to rtx_insn *.
7527 (VINSN_INSN_RTX): Eliminate rvalue function and...
7528 (SET_VINSN_INSN): ...lvalue function in favor of...
7529 (VINSN_INSN_RTX): reinstate this old macro.
7531 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7532 in favor of VINSN_INSN_RTX.
7533 (VINSN_INSN_RTX): Delete this function.
7534 (SET_VINSN_INSN_RTX): Likewise.
7536 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7538 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7539 (BND_TO): Delete this function and...
7540 (SET_BND_TO): ...this functions in favor of...
7541 (BND_TO): ...reinstating this macro.
7542 (struct _fence): Strengthen field "executing_insns" from
7543 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
7544 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7545 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7546 and param "insn" from rtx to insn_t.
7547 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7550 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7552 (rtx_vec_t): Likewise.
7553 (struct sched_deps_info_def): Strengthen param of "start_insn"
7554 callback from rtx to rtx_insn *. Likewise for param "insn2" of
7555 "note_mem_dep" callback and first param of "note_dep" callback.
7557 * haifa-sched.c (add_to_speculative_block): Strengthen param
7558 "insn" from rtx to rtx_insn *.
7559 (clear_priorities): Likewise.
7560 (calc_priorities): Likewise for local "insn".
7562 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7563 Remove redundant checked cast.
7564 (haifa_note_mem_dep): Likewise for param "pending_insn".
7565 (haifa_note_dep): Likewise for param "elem".
7566 (note_mem_dep): Likewise for param "e".
7567 (sched_analyze_1): Add checked casts.
7568 (sched_analyze_2): Likewise.
7570 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7571 from rtx to rtx_insn *.
7572 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7573 from vec<rtx> * to vec<rtx_insn *> *.
7575 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7577 (flist_add): Strengthen param "executing_insns" from
7578 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7579 (advance_deps_context): Remove now-redundant checked cast.
7580 (init_fences): Replace uses of NULL_RTX with NULL.
7581 (merge_fences): Strengthen params "last_scheduled_insn" and
7582 "sched_next" from rtx to rtx_insn * and "executing_insns" from
7583 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7584 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7585 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7586 an instruction, rather than doing double-duty as a pattern.
7587 (return_nop_to_pool): Update for change of insn_t.
7588 (deps_init_id): Remove now-redundant checked cast.
7589 (struct sched_scan_info_def): Strengthen param of "init_insn"
7590 callback from rtx to insn_t.
7591 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7592 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7594 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7595 "end" from rtx to rtx_insn *.
7596 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7597 (rtx insn_rtx, bool force_unique_p)
7598 (BND_TO): Delete function.
7599 (SET_BND_TO): Delete function.
7601 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7603 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7604 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7606 (undo_transformations): Likewise for param "insn".
7607 (update_liveness_on_insn): Likewise.
7608 (compute_live_below_insn): Likewise for param "insn" and local
7610 (update_data_sets): Likewise for param "insn".
7611 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7612 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7613 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7615 (move_cond_jump): Likewise for param "insn".
7616 (move_cond_jump): Drop use of SET_BND_TO.
7617 (compute_av_set_on_boundaries): Likewise.
7618 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7619 (update_and_record_unavailable_insns): Strengthen local "bb_end"
7620 from rtx to rtx_insn *.
7621 (maybe_emit_renaming_copy): Likewise for param "insn".
7622 (maybe_emit_speculative_check): Likewise.
7623 (handle_emitting_transformations): Likewise.
7624 (remove_insn_from_stream): Likewise.
7625 (code_motion_process_successors): Strengthen local "succ" from rtx
7628 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7630 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7631 ilist_t, not _xlist_t;
7632 (ILIST_INSN): Define in terms of new union field "insn".
7633 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7635 (struct _list_node): Add new field "insn" to the union, of type
7637 (ilist_add): Replace macro with an inline function, requiring an
7639 (ilist_remove): Define this macro directly in terms of
7640 _list_remove, rather than indirectly via _xlist_remove.
7641 (ilist_clear): Likewise, in terms of _list_clear rather than
7643 (ilist_is_in_p): Replace macro with an inline function, requiring
7645 (_list_iter_cond_insn): New function.
7646 (ilist_iter_remove): Define this macro directly in terms of
7647 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7648 (ilist_iterator): Define directly in terms of _list_iterator
7649 rather than indirectly through _xlist_iterator.
7650 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7651 than in terms of _FOR_EACH_X.
7652 (FOR_EACH_INSN_1): Likewise.
7654 2014-08-26 Joseph Myers <joseph@codesourcery.com>
7658 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7659 DECL_HARD_REGISTER and return for invalid register specifications.
7660 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7661 DECL_HARD_REGISTER, call expand_one_error_var.
7662 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7663 CC_REGNUM with non-MODE_CC modes.
7664 (arm_regno_class): Return NO_REGS for PC_REGNUM.
7666 2014-08-26 Marek Polacek <polacek@redhat.com>
7669 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7671 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
7673 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7674 qi cost; add di cost.
7675 (cortexa57_addrcost_table): Likewise.
7677 2014-08-26 Marek Polacek <polacek@redhat.com>
7680 * expr.c (is_aligning_offset): Remove logical not.
7682 2014-08-26 Marek Polacek <polacek@redhat.com>
7685 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7686 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7688 2014-08-26 Richard Biener <rguenther@suse.de>
7690 PR tree-optimization/62175
7691 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7692 expand possibly trapping operations.
7694 2014-08-26 David Malcolm <dmalcolm@redhat.com>
7696 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7697 "insn" from rtx to rtx_insn *.
7698 (permute_load): Likewise for param "insn".
7699 (permute_store): Likewise.
7700 (handle_special_swappables): Likewise for local "insn".
7701 (replace_swap_with_copy): Likewise for locals "insn" and
7703 (rs6000_analyze_swaps): Likewise for local "insn".
7705 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7707 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7712 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7713 "note_list" from rtx to rtx_insn *.
7714 (BB_NOTE_LIST): Replace this function and...
7715 (SET_BB_NOTE_LIST): ...this function with...
7716 (BB_NOTE_LIST): ...the former macro implementation.
7718 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7719 local "from_start" from rtx to rtx_insn *. Strengthen param
7720 "to_endp" from rtx * to rtx_insn **.
7722 * haifa-sched.c (concat_note_lists): Likewise.
7723 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7725 (sel_restore_notes): Likewise.
7726 (move_bb_info): Likewise.
7727 (BB_NOTE_LIST): Delete this function.
7728 (SET_BB_NOTE_LIST): Delete this function.
7729 * sel-sched.c (create_block_for_bookkeeping): Eliminate
7730 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7732 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7734 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7735 from rtx * to rtx_insn **.
7736 (reorder2): Likewise.
7737 (dependencies_evaluation_hook): Strengthen params "head", "tail"
7738 from rtx to rtx_insn *.
7740 * doc/tm.texi: Update mechanically for above change to target.def.
7742 * sched-int.h (note_list): Strengthen this variable from rtx to
7744 (remove_notes): Likewise for both params.
7745 (restore_other_notes): Likewise for return type and first param.
7746 (struct ready_list): Strengthen field "vec" from rtx * to
7748 (struct dep_replacement): Strenghten field "insn" from rtx to
7750 (struct deps_desc): Likewise for fields "last_debug_insn",
7752 (struct haifa_sched_info): Likewise for callback field
7753 "can_schedule_ready_p"'s param, for first param of "new_ready"
7754 callback field, for both params of "rank" callback field, for
7755 first field of "print_insn" callback field (with a const), for
7756 both params of "contributes_to_priority" callback, for param
7757 of "insn_finishes_block_p" callback, for fields "prev_head",
7758 "next_tail", "head", "tail", for first param of "add_remove_insn"
7759 callback, for first param of "begin_schedule_ready" callback, for
7760 both params of "begin_move_insn" callback, and for second param
7761 of "advance_target_bb" callback.
7762 (add_dependence): Likewise for params 1 and 2.
7763 (sched_analyze): Likewise for params 2 and 3.
7764 (deps_analyze_insn): Likewise for param 2.
7765 (ready_element): Likewise for return type.
7766 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7767 (try_ready): Strenghten param from rtx to rtx_insn *.
7768 (sched_emit_insn): Likewise for return type.
7769 (record_delay_slot_pair): Likewise for params 1 and 2.
7770 (add_delay_dependencies): Likewise for param.
7771 (contributes_to_priority): Likewise for both params.
7772 (find_modifiable_mems): Likewise.
7774 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
7775 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
7776 "first_older_only_insn" from rtx to rtx_insn *.
7777 (arm_sched_reorder): Strengthen param "ready" from rtx * to
7780 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7781 "last_scheduled_iter0" from rtx to rtx_insn *.
7782 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7783 (c6x_sched_reorder_1): Strengthen param "ready" and locals
7784 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7785 "insn" from rtx to rtx_insn *.
7786 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7788 (c6x_sched_reorder2): Strengthen param "ready" and locals
7789 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7790 "insn" from rtx to rtx_insn *.
7791 (c6x_variable_issue): Add a checked cast when assigning from insn
7792 to ss.last_scheduled_iter0.
7793 (split_delayed_branch): Strengthen param "insn" and local "i1"
7794 from rtx to rtx_insn *.
7795 (split_delayed_nonbranch): Likewise.
7796 (undo_split_delayed_nonbranch): Likewise for local "insn".
7797 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7798 "entry_after", "end_packet", "head_insn", "tail_insn",
7799 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7800 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7801 to rtx_insn **. Remove now-redundant checked cast on last_insn,
7802 but add a checked cast on loop->start_label. Consolidate calls to
7803 avoid assigning result of gen_spkernel to "insn", now an
7806 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7807 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
7809 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7810 rtx_insn **. Strengthen locals "top", "next" from rtx to
7812 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7813 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
7814 (add_parameter_dependencies): Strengthen params "call", "head" and
7815 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7816 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7817 (add_dependee_for_func_arg): Likewise for param "arg" and local
7819 (ix86_dependencies_evaluation_hook): Likewise for params "head",
7820 "tail" and locals "insn", "first_arg".
7822 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7823 for params "head", "tail" and locals "insn", "next", "next_tail".
7824 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7825 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7826 "insn", "lowest", "highest" from rtx to rtx_insn *.
7827 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7829 (ia64_sched_reorder2): Likewise.
7831 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7832 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
7833 from rtx * to rtx_insn **.
7834 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7836 (mep_print_sched_insn): Strengthen param "insn" from rtx to
7838 (mep_sched_reorder): Strengthen param "ready" from rtx * to
7839 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
7842 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7843 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
7845 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7846 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
7847 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7849 (vr4130_reorder): Likewise.
7850 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
7852 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7854 (mips_sched_reorder): Likewise.
7855 (mips_sched_reorder2): Likewise.
7857 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7859 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7860 Strengthen local "tmp" from rtx to rtx_insn *.
7861 (rs6000_sched_reorder2): Likewise.
7863 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7864 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7865 (s390_sched_reorder): Strengthen param "ready" from rtx * to
7866 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
7868 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7869 "tmp2" from rtx to rtx_insn *.
7870 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7871 Strengthen local "insn" from rtx to rtx_insn *.
7872 (ready_reorder): Strengthen param "ready" from rtx * to
7873 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7874 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
7875 (sh_reorder2): Likewise.
7877 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
7878 local "insn" from rtx to rtx_insn *.
7880 * haifa-sched.c (note_list): Strengthen this variable from rtx to
7882 (scheduled_insns): Strengthen this variable from vec<rtx> to
7884 (set_modulo_params): Likewise for locals "i1", "i2".
7885 (record_delay_slot_pair): Likewise for params "i1", "i2".
7886 (add_delay_dependencies): Likewise for param "insn".
7887 (cond_clobbered_p): Likewise.
7888 (recompute_todo_spec): Likewise for local "prev".
7889 (last_scheduled_insn): Likewise for this variable.
7890 (nonscheduled_insns_begin): Likewise.
7891 (model_set_excess_costs): Strengthen param "insns" from rtx * to
7893 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7895 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7896 Strengthen local "insn" from rtx to rtx_insn *.
7897 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7898 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7899 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7900 (ready_remove_first): Likewise for return type and local "t".
7901 (ready_element): Likewise for return type.
7902 (ready_remove): Likewise for return type and local "t".
7903 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7904 (check_clobbered_conditions): Strengthen local "x" from rtx to
7905 rtx_insn *, adding a checked cast.
7906 (schedule_insn): Likewise for param "insn".
7907 (remove_notes): Likewise for params "head", "tail" and locals
7908 "next_tail", "insn", "next".
7909 (struct haifa_saved_data): Likewise for fields
7910 "last_scheduled_insn", "nonscheduled_insns_begin".
7911 (save_backtrack_point): Update for change to field "vec" of
7913 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7915 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
7916 from rtx to rtx_insn *
7917 (resolve_dependencies): Strengthen param "insn" from rtx to
7919 (restore_other_notes): Likewise for return type, for param "head"
7920 and local "note_head".
7921 (undo_all_replacements): Likewise for local "insn".
7922 (first_nonscheduled_insn): Likewise for return type and local "insn".
7923 (queue_to_ready): Likewise for local "insn", adding checked casts.
7924 (early_queue_to_ready): Likewise for local "insn".
7925 (debug_ready_list_1): Strengthen local "p" from rtx * to
7927 (move_insn): Strengthen param "insn" and local "note" from rtx to
7929 (insn_finishes_cycle_p): Likewise for param "insn".
7930 (max_issue): Likewise for local "insn".
7931 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
7933 (commit_schedule): Strengthen param "prev_head" and local "insn"
7934 from rtx to rtx_insn *
7935 (prune_ready_list): Likewise for local "insn".
7936 (schedule_block): Likewise for locals "prev_head", "head", "tail",
7937 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7938 (set_priorities): Likewise for local "prev_head".
7939 (try_ready): Likewise for param "next".
7940 (fix_tick_ready): Likewise.
7941 (change_queue_index): Likewise.
7942 (sched_extend_ready_list): Update for change to field "vec" of
7944 (generate_recovery_code): Strengthen param "insn" from rtx to
7946 (begin_speculative_block): Likewise.
7947 (create_check_block_twin): Likewise for param "insn" and locals
7948 "label", "check", "twin". Introduce local "check_pat" to avoid
7949 "check" being used as a plain rtx before being used as an insn.
7950 (fix_recovery_deps): Add a checked cast to rtx_insn * when
7951 extracting elements from ready_list.
7952 (sched_remove_insn): Strengthen param "insn" from rtx to
7954 (sched_emit_insn): Likewise for return type.
7955 (ready_remove_first_dispatch): Likewise for return type and local
7958 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7960 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7963 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7964 from rtx to rtx_insn *.
7965 (add_dependence_list): Likewise for param "insn". Add a checked
7967 (add_dependence_list_and_free): Strengthen param "insn" from rtx
7968 to rtx_insn *. Strengthen param "list_p" from rtx * to
7970 (chain_to_prev_insn): Strengthen param "insn" and locals
7971 "prec_nonnote", "i" from rtx to rtx_insn *.
7972 (flush_pending_lists): Likewise for param "insn".
7973 (cur_insn): Likewise for this variable.
7974 (haifa_start_insn): Add a checked cast.
7975 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7976 (sched_analyze_reg): Likewise for param "insn".
7977 (sched_analyze_1): Likewise.
7978 (sched_analyze_2): Likewise. Add checked casts.
7979 (sched_analyze_insn): Likewise. Also for local "prev".
7980 (deps_analyze_insn): Likewise for param "insn".
7981 (sched_analyze): Likewise for params "head", "tail" and local "insn".
7982 (add_dependence_1): Likewise for params "insn", "elem".
7983 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7984 (parse_add_or_inc): Likewise for param "insn".
7985 (find_inc): Likewise for local "inc_cand".
7986 (find_modifiable_mems): Likewise for params "head", "tail" and
7987 locals "insn", "next_tail".
7989 * sched-ebb.c (init_ready_list): Likewise for local "insn".
7990 (begin_schedule_ready): Likewise for param "insn".
7991 (begin_move_insn): Likewise for params "insn" and "last".
7992 (ebb_print_insn): Strengthen param "insn" from const_rtx to
7994 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7995 (ebb_contributes_to_priority): Likewise for params "next", "insn".
7996 (ebb_add_remove_insn): Likewise for param "insn".
7997 (advance_target_bb): Likewise.
7999 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8001 (check_live): Likewise for param "insn".
8002 (init_ready_list): Likewise for local "insn".
8003 (can_schedule_ready_p): Likewise for param "insn".
8004 (begin_schedule_ready): Likewise.
8005 (new_ready): Likewise for param "next".
8006 (rgn_print_insn): Likewise for param "insn".
8007 (rgn_rank): Likewise for params "insn1", "insn2".
8008 (contributes_to_priority): Likewise for params "next", "insn".
8009 (rgn_insn_finishes_block_p): Likewise for param "insn".
8010 (add_branch_dependences): Likewise for params "head", "tail" and
8011 locals "insn", "last".
8012 (rgn_add_remove_insn): Likewise for param "insn".
8013 (advance_target_bb): Likewise.
8015 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8016 const_rtx to const rtx_insn *.
8018 * sel-sched-dump.h (sel_print_insn): Likewise.
8020 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8021 (deps_init_id): Likewise.
8023 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8024 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8027 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8029 * output.h (final_start_function): Strengthen param 1 from rtx to
8032 * final.c (final_start_function): Likewise, renaming back from
8033 "uncast_first" to "first", and dropping the checked cast from rtx
8036 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8038 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8039 * final.c (final): Likewise. Rename param back from
8040 "uncast_first" to "first" and eliminate the checked cast from rtx
8043 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8045 * output.h (shorten_branches): Strengthen param from rtx to
8048 * final.c (shorten_branches): Likewise, renaming param back from
8049 "uncast_first" to "first", and dropping the checked cast from rtx
8052 * genattr.c (gen_attr): Likewise when writing out the prototype of
8055 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8057 * sched-int.h (struct haifa_sched_info): Strengthen fields
8058 "prev_head" and "next_tail" from rtx to rtx_insn *.
8060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8062 * rtl.h (rtx_jump_table_data::get_labels): New method.
8063 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8064 with use of the new rtx_jump_table_data::get_labels method.
8065 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8066 to rtx_jump_table_data *. Simplify by using get_labels method.
8067 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8068 a dyn_cast, introducing local "table", using it to replace
8069 label-lookup logic with a get_labels method call.
8070 (patch_jump_insn): Simplify using get_labels method.
8071 * dwarf2cfi.c (create_trace_edges): Likewise.
8072 * rtlanal.c (label_is_jump_target_p): Likewise.
8074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8076 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8079 * emit-rtl.c (unshare_all_rtl_1): Likewise.
8080 (unshare_all_rtl_again): Likewise, also for local "p".
8082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8084 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8086 * cfgrtl.c (delete_insn_and_edges): Likewise.
8088 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8090 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8091 from rtx to rtx_insn *.
8093 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8095 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8097 * function.c (thread_prologue_and_epilogue_insns): Likewise for
8098 locals "returnjump", "epilogue_end", "insn", "next".
8100 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8101 "returnjump" from rtx * to rtx_insn **.
8102 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8106 * basic-block.h (struct edge_def). Strengthen "r" within
8107 union edge_def_insns from rtx to rtx_insn *.
8109 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8110 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
8112 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8113 from rtx to rtx_insn *.
8114 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8116 * postreload-gcse.c (reg_killed_on_edge): Likewise.
8117 (reg_used_on_edge): Likewise.
8118 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8119 (gt_pch_nx): New overload for rtx_insn *&.
8120 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8121 from rtx to rtx_insn *.
8123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8125 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8126 from rtx to rtx_insn *.
8127 (BB_FOOTER): Replace function with access macro.
8128 (SET_BB_FOOTER): Delete.
8130 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8132 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8133 (emit_barrier_after_bb): Likewise.
8134 (record_effective_endpoints): Likewise.
8135 (relink_block_chain): Likewise.
8136 (fixup_fallthru_exit_predecessor): Likewise.
8137 (cfg_layout_duplicate_bb): Likewise.
8138 (cfg_layout_split_block): Likewise.
8139 (cfg_layout_delete_block): Likewise.
8140 (cfg_layout_merge_blocks): Likewise.
8141 (BB_FOOTER): Delete function.
8142 (SET_BB_FOOTER): Delete function.
8143 * combine.c (update_cfg_for_uncondjump): Replace uses of
8144 SET_BB_FOOTER with BB_FOOTER.
8146 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8148 * except.h (struct eh_landing_pad_d): Strengthen field
8149 "landing_pad" from rtx to rtx_code_label *.
8151 * except.c (sjlj_emit_dispatch_table): Likewise for param
8153 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8155 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8157 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8158 first param from rtx to rtx_insn *.
8159 * config/xtensa/xtensa.c (struct machine_function): Likewise for
8160 field "set_frame_ptr_insn".
8161 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8162 "csend" from rtx to rtx_code_label *.
8163 (xtensa_expand_atomic): Likewise for local "csloop".
8164 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8166 (xtensa_call_tls_desc): Likewise for return type and locals
8167 "call_insn", "insns".
8168 (xtensa_legitimize_tls_address): Likewise for local "insns".
8169 (xtensa_expand_prologue): Likewise for locals "insn", "first".
8171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8173 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8174 first param from rtx to rtx_insn *.
8175 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8178 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8180 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8181 Strengthen param 1 from rtx to rtx_insn *.
8182 (tilepro_output_cbranch): Likewise.
8183 (tilepro_adjust_insn_length): Likewise.
8184 (tilepro_final_prescan_insn): Likewise for sole param.
8186 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8187 Likewise for local "last".
8188 (cbranch_predicted_p): Likewise for param "insn".
8189 (tilepro_output_simple_cbranch_with_opcode): Likewise.
8190 (tilepro_output_cbranch_with_opcode): Likewise.
8191 (tilepro_output_cbranch): Likewise.
8192 (frame_emit_load): Likewise for return type and locals "seq",
8194 (emit_sp_adjust): Likewise for return type and local "insn".
8195 (tilepro_expand_epilogue): Likewise for locals "last_insn",
8197 (tilepro_adjust_insn_length): Likewise for param "insn".
8198 (next_insn_to_bundle): Likewise for return type and params
8200 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8201 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8203 (match_addli_pcrel): Likewise for param "insn".
8204 (replace_addli_pcrel): Likewise.
8205 (match_auli_pcrel): Likewise.
8206 (replace_auli_pcrel): Likewise.
8207 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8209 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8210 "queue", "next_queue", "prev".
8211 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8212 (tilepro_final_prescan_insn): Likewise for param "insn".
8214 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8216 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8217 Strengthen param 1 from rtx to rtx_insn *.
8218 (tilegx_output_cbranch): Likewise.
8219 (tilegx_adjust_insn_length): Likewise.
8220 (tilegx_final_prescan_insn): Likewise for sole param.
8222 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8224 (cbranch_predicted_p): Likewise for param "insn".
8225 (tilegx_output_simple_cbranch_with_opcode): Likewise.
8226 (tilegx_output_cbranch_with_opcode): Likewise.
8227 (tilegx_output_cbranch): Likewise.
8228 (frame_emit_load): Likewise for return type.
8229 (set_frame_related_p): Likewise for locals "seq", "insn".
8230 (emit_sp_adjust): Likewise for return type, and for local "insn".
8231 Introduce local "pat" for use in place of "insn" where the latter
8232 isn't an instruction.
8233 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8234 from rtx to rtx_insn *.
8235 (tilegx_adjust_insn_length): Likewise for param "insn".
8236 (next_insn_to_bundle): Likewise for return type and params "r" and
8238 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8240 (replace_insns): Likewise for params "old_insn", "new_insns".
8241 (replace_mov_pcrel_step1): Likewise for param "insn" and local
8243 (replace_mov_pcrel_step2): Likewise.
8244 (replace_mov_pcrel_step3): Likewise.
8245 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8247 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8248 "queue", "next_queue", "prev".
8249 (tilegx_output_mi_thunk): Likewise for local "insn".
8250 (tilegx_final_prescan_insn): Likewise for param "insn".
8252 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8254 * config/spu/spu.c (frame_emit_store): Strengthen return type from
8256 (frame_emit_load): Likewise.
8257 (frame_emit_add_imm): Likewise, also for local "insn".
8258 (spu_expand_prologue): Likewise for local "insn".
8259 (struct spu_bb_info): Likewise for field "prop_jump".
8260 (emit_nop_for_insn): Likewise for param "insn" and local
8262 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8264 (spu_emit_branch_hint): Likewise for params "before", "branch" and
8265 locals "hint", "insn".
8266 (get_branch_target): Likewise for param "branch".
8267 (insn_clobbers_hbr): Likewise for param "insn".
8268 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8269 locals "insn", "before_4", "before_16".
8270 (insert_hbrp): Likewise for local "insn".
8271 (spu_machine_dependent_reorg): Likewise for locals "branch",
8272 "insn", "next", "bbend".
8273 (uses_ls_unit): Likewise for param "insn".
8274 (get_pipe): Likewise.
8275 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8276 introducing a checked cast.
8277 (spu_sched_adjust_cost): Likewise for params "insn" and
8279 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8280 (spu_sms_res_mii): Likewise.
8282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8284 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8285 from rtx to rtx_insn *.
8286 (output_cbranch): Likewise for param 6.
8287 (output_return): Likewise for param 1.
8288 (output_sibcall): Likewise.
8289 (output_v8plus_shift): Likewise.
8290 (output_v8plus_mult): Likewise.
8291 (output_v9branch): Likewise for param 7.
8292 (output_cbcond): Likewise for param 3.
8294 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8296 (sparc_legitimize_pic_address): Likewise.
8297 (sparc_emit_call_insn): Likewise.
8298 (emit_save_or_restore_regs): Likewise.
8299 (emit_window_save): Likewise for return type and local "insn".
8300 (sparc_expand_prologue): Likewise for local "insn".
8301 (sparc_flat_expand_prologue): Likewise.
8302 (output_return): Likewise for param "insn".
8303 (output_sibcall): Likewise for param "insn" and local "delay".
8304 (output_ubranch): Likewise for param "insn".
8305 (output_cbranch): Likewise.
8306 (output_cbcond): Likewise.
8307 (output_v9branch): Likewise.
8308 (output_v8plus_shift): Likewise.
8309 (sparc_output_mi_thunk): Likewise for local "insn".
8310 (get_some_local_dynamic_name): Likewise.
8311 (output_v8plus_mult): Likewise for param "insn".
8313 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8315 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8316 from rtx to rtx_insn *.
8317 (output_branchy_insn): Likewise for param 3.
8318 (output_far_jump): Likewise for param 1.
8319 (final_prescan_insn): Likewise.
8320 (sh_insn_length_adjustment): Likewise for sole param.
8322 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8323 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8325 (sh_emit_compare_and_set): Likewise for local "lab".
8326 (output_far_jump): Strengthen param "insn" and local "prev" from
8328 (output_branchy_insn): Likewise for param "insn" and local
8330 (output_ieee_ccmpeq): Likewise for param "insn".
8331 (struct label_ref_list_d): Strengthen field "label" from rtx to
8333 (pool_node): Likewise.
8334 (pool_window_label): Likewise for this global.
8335 (add_constant): Likewise for return type and locals "lab", "new_rtx".
8336 (dump_table): Strengthen params "start", "barrier" and local
8337 "scan" from rtx to rtx_insn *.
8338 (broken_move): Likewise for param "insn".
8339 (untangle_mova): Likewise for params "first_mova" and "new_mova".
8340 Strengthen param "first_mova" from rtx * to rtx_insn **.
8341 (mova_p): Likewise for param "insn".
8342 (fixup_mova): Likewise for param "mova".
8343 (find_barrier): Likewise for return type, params "mova" and
8344 "from", and locals "barrier_before_mova", "found_barrier",
8345 "good_barrier", "orig", "last_symoff", "next". Strengthen local
8346 "label" from rtx to rtx_code_label *.
8347 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8349 (sh_reorg): Likewise for locals "link", "scan", "barrier".
8350 (split_branches): Likewise for param "first" and local "insn".
8351 (final_prescan_insn): Likewise for param "insn".
8352 (sequence_insn_p): Likewise for locals "prev", "next".
8353 (sh_insn_length_adjustment): Likewise for param "insn".
8354 (sh_can_redirect_branch): Likewise for local "insn".
8355 (find_r0_life_regions): Likewise for locals "end", "insn".
8356 (sh_output_mi_thunk): Likewise for local "insns".
8358 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8360 * config/score/score.c (score_output_mi_thunk): Strengthen local
8361 "insn" from rtx to rtx_insn *.
8362 (score_prologue): Likewise.
8364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8366 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8367 1 from rtx to rtx_insn *.
8368 (s390_emit_jump): Likewise for return type.
8369 (s390_emit_call): Likewise.
8370 (s390_load_got): Likewise.
8372 * config/s390/s390.c (last_scheduled_insn): Likewise for this
8374 (s390_match_ccmode): Likewise for param "insn".
8375 (s390_emit_jump): Likewise for return type.
8376 (s390_split_branches): Likewise for local "label".
8377 (struct constant): Strengthen field "label" from rtx to
8379 (struct constant_pool): Likewise for field "label". Strengthen
8380 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8382 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8384 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8385 (s390_end_pool): Likewise.
8386 (s390_dump_pool): Likewise for local "insn".
8387 (s390_mainpool_start): Likewise.
8388 (s390_chunkify_start): Likewise.
8389 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8390 with insns. Strengthen locals "label", "jump", "barrier", "next",
8391 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8392 (s390_chunkify_finish): Strengthen local "insn" from rtx to
8394 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8395 "jump", "label", "next_insn".
8396 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8397 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8399 (s390_load_got): Likewise for return type and local "insns".
8400 (s390_save_gprs_to_fprs): Likewise for local "insn".
8401 (s390_restore_gprs_from_fprs): Likewise.
8402 (pass_s390_early_mach::execute): Likewise.
8403 (s390_emit_prologue): Likewise for local "insns".
8404 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8406 (s390_emit_call): Strengthen return type and local "insn" from
8408 (s390_emit_tpf_eh_return): Likewise for local "insn".
8409 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8410 "next_insn", introducing locals "s_pat", "rpat" to allow this.
8411 (s390_fix_long_loop_prediction): Likewise for param "insn" and
8413 (s390_non_addr_reg_read_p): Likewise for param "insn".
8414 (find_cond_jump): Likewise for return type and param "insn".
8415 (s390_swap_cmp): Likewise for param "insn".
8416 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8417 "prev_insn", "next_insn".
8418 (s390_reorg): Likewise for locals "insn", "target".
8419 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8420 (s390_sched_variable_issue): For now, rename param "insn" to
8421 "uncast_insn", introducing a checked cast.
8422 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8424 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8425 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
8427 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8429 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8430 param from rtx to rtx_insn *.
8431 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8433 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8435 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8436 4 from rtx to rtx_insn *.
8437 (rs6000_final_prescan_insn): Likewise for first param.
8438 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8440 (rs6000_get_some_local_dynamic_name): Likewise.
8441 (output_cbranch): Likewise for param "insn".
8442 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8443 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8444 (rs6000_emit_allocate_stack): Likewise for local "insn".
8445 (load_cr_save): Likewise.
8446 (restore_saved_cr): Likewise.
8447 (restore_saved_lr): Likewise.
8448 (emit_cfa_restores): Likewise.
8449 (rs6000_output_function_epilogue): Likewise for locals "insn" and
8450 "deleted_debug_label".
8451 (rs6000_output_mi_thunk): Likewise for local "insn".
8452 (rs6000_final_prescan_insn): Likewise for param "insn".
8454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8456 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8457 Strengthen param "insn" from rtx to rtx_insn *.
8458 * config/picochip/picochip.c (picochip_current_prescan_insn):
8459 Likewise for this variable.
8460 (picochip_final_prescan_insn): Likewise for param "insn".
8462 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8464 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8465 from rtx to rtx_insn *.
8466 (pa_output_indirect_call): Likewise.
8467 (pa_adjust_insn_length): Likewise.
8468 (pa_attr_length_millicode_call): Likewise.
8469 (pa_attr_length_call): Likewise.
8470 (pa_attr_length_indirect_call): Likewise.
8472 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8474 (pa_attr_length_millicode_call): Likewise.
8475 (pa_attr_length_call): Likewise.
8476 (pa_output_call): Likewise.
8477 (pa_attr_length_indirect_call): Likewise.
8478 (pa_output_indirect_call): Likewise.
8480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8482 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8483 Strengthen first param from rtx to rtx_insn *.
8484 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8489 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8490 type from rtx to rtx_insn *.
8491 (mips_expand_call): Likewise.
8492 (mips_adjust_insn_length): Likewise for first param.
8493 (mips_output_conditional_branch): Likewise.
8494 (mips_output_order_conditional_branch): Likewise.
8495 (mips_final_prescan_insn): Likewise.
8497 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8498 rtx_insn * for the SEQUENCE case.
8499 (SEQ_END): Likewise.
8500 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8501 (mips_emit_call_insn): Likewise, also for local "insn".
8502 (mips16_gp_pseudo_reg): Likewise for local "scan".
8503 (mips16_build_call_stub): Likewise for return type and for local
8504 "insn". Introduce a new local "pattern" so that "insn" can indeed
8506 (mips_expand_call): Strengthen return type and local "insn" from
8508 (mips_block_move_loop): Strengthen local "label" from rtx to
8510 (mips_expand_synci_loop): Likewise for locals "label",
8512 (mips_set_frame_expr): Strengthen local "insn" from rtx to
8514 (mips16e_collect_argument_saves): Likewise for locals "insn",
8516 (mips_find_gp_ref): Likewise for param of callback for "pred"
8517 param, and for local "insn".
8518 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8519 (mips_insn_has_flexible_gp_ref_p): Likewise.
8520 (mips_epilogue_emit_cfa_restores): Likewise for return type and
8522 (mips_epilogue_set_cfa): Likewise for local "insn".
8523 (mips_expand_epilogue): Likewise.
8524 (mips_adjust_insn_length): Likewise for param "insn".
8525 (mips_output_conditional_branch): Likewise.
8526 (mips_output_order_conditional_branch): Likewise.
8527 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8528 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8529 "falu2_turn_enabled_insn".
8530 (mips_builtin_branch_and_move): Strengthen locals "true_label",
8531 "done_label" from rtx to rtx_code_label *.
8532 (struct mips16_constant): Likewise for field "label".
8533 (mips16_add_constant): Likewise for return type.
8534 (mips16_emit_constants_1): Strengthen return type and param "insn"
8535 from rtx to rtx_insn *.
8536 (mips16_emit_constants): Likewise for param "insn".
8537 (mips16_insn_length): Likewise.
8538 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8539 to rtx_code_label *.
8540 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8541 from rtx to rtx_insn *.
8542 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8543 "jump". Strengthen local "label" from rtx to rtx_code_label *.
8544 (r10k_simplify_address): Strengthen param "insn" and local
8545 "def_insn" from rtx to rtx_insn *.
8546 (r10k_safe_address_p): Strengthen param "insn" from rtx to
8548 (r10k_needs_protection_p_1): Update target type of cast of data
8549 from to rtx to rtx_insn *.
8550 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8551 rtx * to rtx_insn **.
8552 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8554 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8555 (mips_call_expr_from_insn): Likewise for param "insn".
8556 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8557 (mips_find_pic_call_symbol): Likewise for param "insn".
8558 (mips_annotate_pic_calls): Likewise for local "insn".
8559 (mips_sim_insn): Likewise for this variable.
8560 (struct mips_sim): Likewise for field "insn" within elements of
8562 (mips_sim_wait_reg): Likewise for param "insn".
8563 (mips_sim_wait_regs): Likewise.
8564 (mips_sim_wait_units): Likewise.
8565 (mips_sim_wait_insn): Likewise.
8566 (mips_sim_issue_insn): Likewise.
8567 (mips_sim_finish_insn): Likewise.
8568 (mips_seq_time): Likewise for param "seq" and local "insn".
8569 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8570 locals "first", "second".
8571 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8572 "last", "last2", "next".
8573 (mips_avoid_hazard): Likewise for params "after", "insn".
8574 (mips_reorg_process_insns): Likewise for locals "insn",
8575 "last_insn", "subinsn", "next_insn".
8576 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8577 (mips16_split_long_branches): Likewise for locals "insn" "jump",
8579 (mips_output_mi_thunk): Likewise for local "insn".
8580 (mips_final_prescan_insn): Likewise for param "insn".
8582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8584 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8585 Strengthen return type and local "insns" from rtx to rtx_insn *.
8586 (microblaze_legitimize_tls_address): Likewise for local "insns".
8587 (microblaze_block_move_loop): Strengthen local "label" from rtx
8588 to rtx_code_label *.
8589 (microblaze_expand_prologue): Strengthen two locals named "insn"
8590 from rtx to rtx_insn *.
8591 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8592 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8593 "insn". Strengthen locals "div_label", "div_end_label" from rtx
8594 to rtx_code_label *.
8596 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8598 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8599 param from rtx to rtx_insn *.
8600 (mep_reuse_lo): Likewise for third param.
8601 (mep_use_post_modify_p): Likewise for first param.
8602 (mep_core_address_length): Likewise.
8603 (mep_cop_address_length): Likewise.
8604 (mep_final_prescan_insn): Likewise.
8605 (mep_store_data_bypass_p): Likewise for both params.
8606 (mep_mul_hilo_bypass_p): Likewise.
8607 (mep_ipipe_ldc_p): Likewise for param.
8609 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8610 (mep_rewrite_mult): Likewise.
8611 (mep_rewrite_mulsi3): Likewise.
8612 (mep_rewrite_maddsi3): Likewise.
8613 (mep_reuse_lo_p_1): Likewise.
8614 (mep_reuse_lo_p): Likewise.
8615 (mep_frame_expr): Likewise.
8616 (mep_make_parallel): Likewise for both params.
8617 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8619 (mep_use_post_modify_p): Likewise for param "insn".
8620 (mep_core_address_length): Likewise.
8621 (mep_cop_address_length): Likewise.
8622 (mep_reg_set_in_function): Likewise for local "insn".
8623 (mep_asm_without_operands_p): Likewise.
8624 (F): Likewise for return type and param "x".
8625 (add_constant): Likewise for local "insn".
8626 (maybe_dead_move): Likewise for return type and local "insn".
8627 (mep_expand_prologue): Likewise for local "insn".
8628 (mep_final_prescan_insn): Likewise for param "insn".
8629 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8630 "next", "follow", "x".
8631 (mep_insert_repeat_label_last): Likewise for return type, param
8632 "last_insn", and locals "next", "prev". Strengthen param "label"
8633 from rtx to rtx_code_label *.
8634 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8636 (struct mep_doloop_end): Likewise for fields "insn" and
8638 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8639 Strengthen local "repeat_label" from rtx to rtx_code_label *.
8640 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8642 (mep_invert_branch): Likewise for params "insn" and "after".
8643 (mep_reorg_erepeat): Likewise for param "insns" and locals
8644 "insn", "prev", "new_last", "barrier", "user". Strengthen local
8645 "l" from rtx to rtx_code_label *.
8646 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8647 from rtx to rtx_insn *.
8648 (mep_reorg_addcombine): Likewise for param "insns" and locals
8650 (add_sp_insn_p): Likewise for param "insn".
8651 (mep_reorg_noframe): Likewise for param "insns" and locals
8652 "start_frame_insn", "end_frame_insn", "next".
8653 (mep_reorg): Likewise for local "insns".
8654 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
8656 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8657 (mep_mul_hilo_bypass_p): Likewise.
8658 (mep_ipipe_ldc_p): Likewise for param "insn".
8659 (mep_make_bundle): Likewise for return type, param "cop" and local
8660 "insn", splitting out the latter into a new local "seq" for when it
8661 is a SEQUENCE rather than an insn.
8662 (core_insn_p): Likewise for param "insn".
8663 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8664 "last", "first", "note", "prev", "core_insn".
8666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8668 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8670 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8671 (m68k_final_prescan_insn): Likewise for first param.
8673 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8674 (m68k_set_frame_related): Likewise for param "insn".
8675 (output_btst): Likewise for param "insn".
8676 (m68k_final_prescan_insn): Likewise.
8677 (m68k_move_to_reg): Likewise for local "insn".
8678 (m68k_call_tls_get_addr): Likewise for local "insns".
8679 (m68k_call_m68k_read_tp): Likewise.
8680 (strict_low_part_peephole_ok): Likewise for param "first_insn".
8681 (m68k_output_mi_thunk): Likewise for local "insn".
8683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8685 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8686 first param from rtx to rtx_insn *.
8687 (iq2000_adjust_insn_length): Likewise.
8688 (iq2000_output_conditional_branch): Likewise.
8689 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8690 "insn" and local "nop_insn".
8691 (iq2000_annotate_frame_insn): Likewise for param "insn".
8692 (iq2000_expand_prologue): Likewise for both locals "insn".
8693 (iq2000_adjust_insn_length): Likewise for param "insn".
8694 (iq2000_output_conditional_branch): Likewise.
8696 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8698 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8699 "insns" from rtx to rtx_insn *.
8700 (ia64_emit_cond_move): Likewise for locals "insn", "first".
8701 (struct spill_fill_data): Likewise for field "init_after" and for
8702 elements of array field "prev_insn".
8703 (spill_restore_mem): Likewise for locals "insn", "first".
8704 (do_spill): Likewise for local "insn".
8705 (do_restore): Likewise.
8706 (ia64_expand_prologue): Likewise.
8707 (ia64_expand_epilogue): Likewise.
8708 (emit_insn_group_barriers): Likewise for locals "insn",
8710 (emit_all_insn_group_barriers): Likewise for locals "insn",
8712 (dfa_stop_insn): Likewise for this global.
8713 (dfa_pre_cycle_insn): Likewise.
8714 (ia64_nop): Likewise.
8715 (final_emit_insn_group_barriers): Likewise for locals "insn",
8717 (emit_predicate_relation_info): Likewise for locals "head", "n",
8719 (ia64_reorg): Likewise for local "insn".
8720 (ia64_output_mi_thunk): Likewise.
8721 (expand_vec_perm_interleave_2): Likewise for local "seq".
8723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8725 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8726 param 1 "insn" from rtx to rtx_insn *.
8727 (ix86_use_lea_for_mov): Likewise.
8728 (ix86_avoid_lea_for_addr): Likewise.
8729 (ix86_split_lea_for_addr): Likewise.
8730 (ix86_lea_for_add_ok): Likewise.
8731 (ix86_output_call_insn): Likewise.
8733 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8734 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8735 (ix86_output_function_epilogue): Likewise for locals "insn",
8736 "deleted_debug_label".
8737 (legitimize_tls_address): Likewise for local "insn".
8738 (get_some_local_dynamic_name): Likewise.
8739 (increase_distance): Likewise for params "prev", "next".
8740 (distance_non_agu_define_in_bb): Likewise for params "insn",
8741 "start" and locals "prev", "next".
8742 (distance_non_agu_define): Likewise for param "insn".
8743 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8744 locals "next", "prev".
8745 (distance_agu_use): Likewise for param "insn".
8746 (ix86_lea_outperforms): Likewise.
8747 (ix86_ok_to_clobber_flags): Likewise.
8748 (ix86_avoid_lea_for_add): Likewise.
8749 (ix86_use_lea_for_mov): Likewise.
8750 (ix86_avoid_lea_for_addr): Likewise.
8751 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8752 (ix86_split_lea_for_addr): Likewise for param "insn".
8753 (ix86_lea_for_add_ok): Likewise for param "insn".
8754 (ix86_expand_carry_flag_compare): Likewise for local
8756 (ix86_expand_int_movcc): Likewise.
8757 (ix86_output_call_insn): Likewise for param "insn".
8758 (ix86_output_call_insn): Likewise for local "i".
8759 (x86_output_mi_thunk): Introduce local "insn", using it in place
8760 of "tmp" when dealing with insns.
8761 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8763 (ix86_pad_returns): Likewise for locals "ret", "prev".
8764 (ix86_count_insn_bb): Likewise for local "insn".
8765 (ix86_pad_short_function): Likewise for locals "ret", "insn".
8766 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8767 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8768 (expand_vec_perm_interleave2): Likewise for local "seq".
8769 (expand_vec_perm_vperm2f128_vblend): Likewise.
8770 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
8771 call to for_each_rtx with for_each_rtx_in_insn.
8773 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8775 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8776 "label" from rtx to rtx_code_label *.
8777 (ix86_expand_prologue): Likewise.
8778 (ix86_expand_split_stack_prologue): Likewise for locals "label",
8780 (ix86_split_idivmod): Likewise for locals "end_label" and
8782 (ix86_expand_branch): Likewise for local "label2".
8783 (ix86_expand_aligntest): Likewise for return type and local "label".
8784 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8786 (expand_movmem_epilogue): Likewise for the various locals named
8788 (expand_setmem_epilogue): Likewise.
8789 (expand_small_movmem_or_setmem): Likewise for local "label".
8790 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8791 Strengthen param "done_label" from rtx * to rtx_code_label **.
8792 Strengthen locals "loop_label" and "label" from rtx to
8794 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8795 Likewise for locals "loop_label", "label".
8796 (ix86_expand_set_or_movmem): Likewise for locals "label",
8797 "jump_around_label", "hot_label".
8798 (ix86_expand_strlensi_unroll_1): Likewise for locals
8799 "align_2_label", align_3_label", "align_4_label", "end_0_label",
8801 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8802 (void ix86_emit_i387_log1p): Likewise for locals "label1",
8803 "label2", "jump_label".
8804 (ix86_expand_sse_compare_and_jump): Likewise for return type and
8806 (ix86_expand_lfloorceil): Likewise for local "label".
8807 (ix86_expand_rint): Likewise.
8808 (ix86_expand_floorceildf_32): Likewise.
8809 (ix86_expand_floorceil): Likewise.
8810 (ix86_expand_rounddf_32): Likewise.
8811 (ix86_expand_trunc): Likewise.
8812 (ix86_expand_truncdf_32): Likewise.
8813 (ix86_expand_round): Likewise.
8815 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8817 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8818 first param from rtx to rtx_insn *.
8819 (h8300_insn_length_from_table): Likewise.
8820 * config/h8300/h8300.c (F): Likewise for return type and param
8822 (Fpa): Add a checked cast to rtx_insn *.
8823 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8825 (final_prescan_insn): Likewise for param "insn".
8826 (h8300_binary_length): Likewise.
8827 (h8300_insn_length_from_table): Likewise.
8829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8831 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8832 Strengthen first param "insn" from rtx to rtx_insn *.
8834 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8836 (frame_insn): Likewise for return type. Introduce local "insn"
8837 for use in place of local "x" for use as an rtx_insn *.
8838 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8839 (epiphany_expand_prologue): Likewise for local "insn".
8840 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8841 * config/epiphany/resolve-sw-modes.c
8842 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8845 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8847 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8848 param from rtx to rtx_insn *.
8849 (c6x_final_prescan_insn): Likewise for first param.
8851 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8852 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8853 (c6x_expand_compare): Strengthen local "insns" from rtx to
8855 (c6x_get_unit_specifier): Likewise for param "insn".
8856 (c6x_print_unit_specifier_field): Likewise.
8857 (c6x_final_prescan_insn): Likewise.
8858 (emit_add_sp_const): Likewise for local "insn".
8859 (c6x_expand_prologue): Likewise.
8861 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8863 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8864 param 1 from rtx to rtx_insn *.
8865 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8866 the various locals named "insn".
8867 (expand_epilogue_reg_restore): Likewise.
8868 (frame_related_constant_load): Likewise.
8869 (add_to_reg): Likewise.
8870 (emit_link_insn): Likewise.
8871 (do_link): Likewise.
8872 (expand_interrupt_handler_prologue): Likewise.
8873 (branch_dest): Likewise for param "branch".
8874 (asm_conditional_branch): Likewise for param "insn".
8875 (gen_one_bundle): Likewise for elements of param "slot" and local
8877 (bfin_gen_bundles): Likewise for locals "insn", "next" and
8878 elements of local "slot".
8879 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8880 "queue", "next_queue", "prev".
8881 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8882 (add_sched_insns_for_speculation): Likewise for local "insn".
8884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8886 * config/avr/avr-protos.h (output_movqi): Strengthen first param
8887 from rtx to rtx_insn *.
8888 (output_movhi): Likewise.
8889 (output_movsisf): Likewise.
8890 (avr_out_tstsi): Likewise.
8891 (avr_out_tsthi): Likewise.
8892 (avr_out_tstpsi): Likewise.
8893 (avr_out_compare): Likewise.
8894 (avr_out_compare64): Likewise.
8895 (avr_out_movpsi): Likewise.
8896 (ashlqi3_out): Likewise.
8897 (ashlhi3_out): Likewise.
8898 (ashlsi3_out): Likewise.
8899 (ashrqi3_out): Likewise.
8900 (ashrhi3_out): Likewise.
8901 (ashrsi3_out): Likewise.
8902 (lshrqi3_out): Likewise.
8903 (lshrhi3_out): Likewise.
8904 (lshrsi3_out): Likewise.
8905 (avr_out_ashlpsi3): Likewise.
8906 (avr_out_ashrpsi3): Likewise.
8907 (avr_out_lshrpsi3): Likewise.
8908 (avr_out_fract): Likewise.
8909 (avr_out_sbxx_branch): Likewise.
8910 (avr_out_round): Likewise.
8911 (avr_out_xload): Likewise.
8912 (avr_out_movmem): Likewise.
8913 (adjust_insn_length): Likewise.
8914 (avr_out_lpm): Likewise.
8915 (reg_unused_after): Likewise.
8916 (_reg_unused_after): Likewise.
8917 (avr_jump_mode): Likewise for second param.
8918 (jump_over_one_insn): Likewise for first param.
8919 (avr_final_prescan_insn): Likewise.
8920 (out_shift_with_cnt): Likewise for second param.
8922 * config/avr/avr.c (get_sequence_length): Likewise for param
8923 "insns" and local "insn".
8924 (emit_push_byte): Likewise for local "insn".
8925 (emit_push_sfr): Likewise.
8926 (avr_prologue_setup_frame): Likewise for locals "insn",
8927 "fp_plus_insns", "sp_plus_insns".
8928 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8930 (avr_jump_mode): Likewise for param "insn".
8931 (avr_final_prescan_insn): Likewise.
8932 (avr_find_unused_d_reg): Likewise.
8933 (avr_out_lpm_no_lpmx): Likewise.
8934 (avr_out_lpm): Likewise.
8935 (avr_out_xload): Likewise.
8936 (output_movqi): Likewise.
8937 (output_movhi): Likewise.
8938 (out_movqi_r_mr): Likewise.
8939 (out_movhi_r_mr): Likewise.
8940 (out_movsi_r_mr): Likewise.
8941 (out_movsi_mr_r): Likewise.
8942 (output_movsisf): Likewise.
8943 (avr_out_load_psi): Likewise.
8944 (avr_out_store_psi): Likewise.
8945 (avr_out_movpsi): Likewise.
8946 (out_movqi_mr_r): Likewise.
8947 (avr_out_movhi_mr_r_xmega): Likewise.
8948 (out_movhi_mr_r): Likewise.
8949 (compare_condition): Likewise for param "insn" and local "next".
8950 (compare_sign_p): Likewise for param "insn".
8951 (compare_diff_p): Likewise.
8952 (compare_eq_p): Likewise.
8953 (avr_out_compare): Likewise.
8954 (avr_out_compare64): Likewise.
8955 (avr_out_tsthi): Likewise.
8956 (avr_out_tstpsi): Likewise.
8957 (avr_out_tstsi): Likewise.
8958 (out_shift_with_cnt): Likewise.
8959 (ashlqi3_out): Likewise.
8960 (ashlhi3_out): Likewise.
8961 (avr_out_ashlpsi3): Likewise.
8962 (ashlsi3_out): Likewise.
8963 (ashrqi3_out): Likewise.
8964 (ashrhi3_out): Likewise.
8965 (avr_out_ashrpsi3): Likewise.
8966 (ashrsi3_out): Likewise.
8967 (lshrqi3_out): Likewise.
8968 (lshrhi3_out): Likewise.
8969 (avr_out_lshrpsi3): Likewise.
8970 (lshrsi3_out): Likewise.
8971 (avr_out_fract): Likewise.
8972 (avr_out_round): Likewise.
8973 (avr_adjust_insn_length): Likewise.
8974 (reg_unused_after): Likewise.
8975 (_reg_unused_after): Likewise.
8976 (avr_compare_pattern): Likewise.
8977 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8978 and locals "branch1", "branch2", "insn2", "jump".
8979 (avr_reorg): Likewise for local "insn".
8980 (avr_2word_insn_p): Likewise for param "insn".
8981 (jump_over_one_insn_p): Likewise.
8982 (avr_out_sbxx_branch): Likewise.
8983 (avr_out_movmem): Likewise.
8985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
8987 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8988 param from rtx to rtx_insn *.
8989 (thumb1_final_prescan_insn): Likewise.
8990 (thumb2_final_prescan_insn): Likewise.
8992 * config/arm/arm.c (emit_set_insn): Strengthen return type from
8994 (struct minipool_node): Likewise for field "insn".
8995 (dump_minipool): Likewise for param "scan".
8996 (create_fix_barrier): Likewise for local "from". Strengthen local
8997 "label" from rtx to rtx_code_label *.
8998 (push_minipool_barrier): Strengthen param "insn" from rtx to
9000 (push_minipool_fix): Likewise.
9001 (note_invalid_constants): Likewise.
9002 (thumb2_reorg): Likewise for local "insn".
9003 (arm_reorg): Likewise.
9004 (thumb2_final_prescan_insn): Likewise for param
9005 "insn" and local "first_insn".
9006 (arm_final_prescan_insn): Likewise for param "insn" and locals
9007 "start_insn", "this_insn".
9008 (arm_debugger_arg_offset): Likewise for param "insn".
9009 (thumb1_emit_multi_reg_push): Likewise for return type and local
9011 (thumb1_final_prescan_insn): Likewise for param "insn".
9012 (thumb_far_jump_used_p): Likewise for local "insn".
9013 (thumb1_expand_prologue): Likewise.
9014 (arm_expand_epilogue_apcs_frame): Likewise.
9015 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9016 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9017 from rtx to rtx_code_label *.
9018 (arm_split_atomic_op): Likewise for local "label".
9019 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9021 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9023 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9024 first param from rtx to rtx_insn *.
9025 (arc_verify_short): Likewise.
9026 (arc_short_long): Likewise.
9027 (arc_need_delay): Likewise.
9029 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9031 (arc_ccfsm_advance): Likewise for param "insn" and locals
9032 "start_insn", "this_insn".
9033 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9034 (arc_ccfsm_post_advance): Likewise for param "insn".
9035 (arc_next_active_insn): Likewise for return type and param "insn".
9036 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
9037 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9038 (output_short_suffix): Likewise for local "insn".
9039 (arc_final_prescan_insn): Likewise for param "insn". Remove
9040 now-redundant checked cast.
9041 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9042 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9043 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
9044 for use where lc_set became an insn.
9045 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9047 (arc_get_insn_variants): Likewise for local "prev".
9048 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9050 (arc_predicate_delay_insns): Likewise for local "insn".
9051 (arc_pad_return): Likewise for local "prev". For now, add a
9052 checked cast when extracting the insn from "final_sequence".
9053 (arc_short_long): Likewise for param "insn".
9054 (arc_need_delay): Likewise for param "insn" and local "next".
9055 (arc_label_align): Likewise for locals "prev", "next".
9057 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9059 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9060 "insn" from rtx to rtx_insn *.
9061 (alpha_gp_save_rtx): Likewise for local "seq".
9062 (alpha_instantiate_decls): Likewise for local "top".
9063 (get_some_local_dynamic_name): Likewise for local "insn".
9064 (alpha_does_function_need_gp): Likewise.
9065 (set_frame_related_p): Likewise for return type and for locals
9067 (emit_frame_store_1): Likewise for local "insn".
9068 (alpha_expand_prologue): Likewise for locals "insn", "seq".
9069 (alpha_end_function): Likewise for local "insn".
9070 (alpha_output_mi_thunk_osf): Likewise.
9071 (alphaev4_insn_pipe): Likewise for param "insn".
9072 (alphaev5_insn_pipe): Likewise.
9073 (alphaev4_next_group): Likewise for return type and param 1
9075 (alphaev5_next_group): Likewise.
9076 (alpha_align_insns_1): Likewise for return type and param 1 of
9077 callback param "next_group", and for locals "i", "next", "prev",
9078 "where", "where2", "insn".
9080 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
9082 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9083 rather than modifying the stmt.
9085 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9087 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9088 cgraph_state conversion.
9090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9092 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9093 Strengthen local "insns" from rtx to rtx_insn *.
9094 (aarch64_set_frame_expr): Likewise for local "insn".
9095 (aarch64_save_or_restore_fprs): Likewise.
9096 (aarch64_save_or_restore_callee_save_registers): Likewise.
9097 (aarch64_expand_prologue): Likewise.
9098 (aarch64_expand_epilogue): Likewise.
9099 (aarch64_output_mi_thunk): Likewise.
9100 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9101 "label2" from rtx to rtx_code_label *.
9102 (aarch64_split_atomic_op): Likewise for local "label".
9104 2014-08-25 Martin Liska <mliska@suse.cz>
9106 * cgraph.h (symtab_node):
9107 (bool needed_p (void)): created from decide_is_symbol_needed
9108 (bool referred_to_p (void)): created from referred_to_p
9109 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9110 * cgraph.h (cgraph_node):
9111 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9112 (void expand (void)): created from expand_function
9113 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9114 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9115 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9116 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9117 * cgraph.h (varpool_node):
9118 (static void add (tree decl): created from varpool_add_new_variable
9119 * cgraph.h (cgraph_edge):
9121 (void remove_caller (void)): created from cgraph_edge_remove_caller
9122 (void remove_callee (void)): created from cgraph_edge_remove_callee
9123 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9124 created from cgraph_set_call_stmt
9125 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9126 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9127 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9128 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9129 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9130 created from cgraph_speculative_call_info
9131 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9132 int freq_scale, bool update_original)): created from cgraph_clone_edge
9133 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9134 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9135 (bool recursive_p (void)): created from cgraph_edge_recursive_p
9136 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9137 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9138 (static void rebuild_references (void)): created from cgraph_rebuild_references
9139 * cgraph.h (symbol_table):
9140 (create_reference): renamed from add_reference
9141 (maybe_create_reference): renamed from maybe_add_reference
9142 (void register_symbol (symtab_node *node)): new function
9143 (void clear_asm_symbols (void)): new function
9144 (void unregister (symtab_node *node)): new function
9145 (void release_symbol (cgraph_node *node, int uid)): new function
9146 (cgraph_node * allocate_cgraph_symbol (void)): new function
9147 (void initialize (void)): created from cgraph_init
9148 (symtab_node *first_symbol (void)):new function
9149 (asm_node *first_asm_symbol (void)):new function
9150 (symtab_node *first_defined_symbol (void)):new function
9151 (varpool_node *first_variable (void)):new function
9152 (varpool_node *next_variable (varpool_node *node)):new function
9153 (varpool_node *first_static_initializer (void)):new function
9154 (varpool_node *next_static_initializer (varpool_node *node)):new function
9155 (varpool_node *first_defined_variable (void)):new function
9156 (varpool_node *next_defined_variable (varpool_node *node)):new function
9157 (cgraph_node *first_defined_function (void)):new function
9158 (cgraph_node *next_defined_function (cgraph_node *node)):new function
9159 (cgraph_node *first_function (void)):new function
9160 (cgraph_node *next_function (cgraph_node *node)):new function
9161 (cgraph_node *first_function_with_gimple_body (void)):new function
9162 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9163 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9164 created from symtab_remove_unreachable_nodes
9165 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9166 (void process_new_functions (void)): created from cgraph_process_new_functions
9167 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9168 (bool output_variables (void)): created from varpool_node::output_variables
9169 (void output_asm_statements (void)): created from output_asm_statements
9170 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9171 (void compile (void)): created from compile
9172 (void output_weakrefs (void)): created from output_weakrefs
9173 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9174 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9175 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9176 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9177 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9178 created from cgraph_next_function_with_gimple_body
9179 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9180 created from cgraph_remove_edge_removal_hook
9181 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9182 created from cgraph_add_node_removal_hook
9183 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9184 created from cgraph_remove_node_removal_hook
9185 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9186 created from varpool_add_node_removal_hook
9187 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9188 created from varpool_remove_node_removal_hook
9189 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9190 created from cgraph_add_function_insertion_hook
9191 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9192 created from cgraph_remove_function_insertion_hook
9193 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9194 created from varpool_add_variable_insertion_hook
9195 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9196 created from varpool_remove_variable_insertion_hook
9197 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9198 created from cgraph_add_edge_duplication_hook
9199 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9200 created from cgraph_remove_edge_duplication_hook
9201 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9202 created from cgraph_add_node_duplication_hook
9203 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9204 created from cgraph_remove_node_duplication_hook
9205 (void call_edge_removal_hooks (cgraph_edge *e)):
9206 created from cgraph_call_edge_removal_hooks
9207 (void call_cgraph_insertion_hooks (cgraph_node *node)):
9208 created from call_function_insertion_hooks
9209 (void call_cgraph_removal_hooks (cgraph_node *node)):
9210 created from cgraph_call_node_removal_hooks
9211 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9212 created from cgraph_node::call_duplication_hooks
9213 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9214 created from cgraph_call_edge_duplication_hooks
9215 (void call_varpool_removal_hooks (varpool_node *node)):
9216 created from varpool_call_node_removal_hooks
9217 (void call_varpool_insertion_hooks (varpool_node *node)):
9218 created from varpool_call_variable_insertion_hooks
9219 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9220 created from insert_to_assembler_name_hash
9221 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9222 created from unlink_from_assembler_name_hash
9223 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9224 created from symtab_prevail_in_asm_name_hash
9225 (void symtab_initialize_asm_name_hash (void)):
9226 created from symtab_initialize_asm_name_hash
9227 (void change_decl_assembler_name (tree decl, tree name)):
9228 created from change_decl_assembler_name
9229 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9230 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9231 created from decl_assembler_name_hash
9232 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9233 created from decl_assembler_name_equal
9234 (static hashval_t hash_node_by_assembler_name (const void *p)):
9235 created from hash_node_by_assembler_name
9236 (static int eq_assembler_name (const void *p1, const void *p2)):
9237 created from eq_assembler_name
9239 2014-08-25 Marek Polacek <polacek@redhat.com>
9241 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9243 2014-08-25 Petr Murzin <petr.murzin@intel.com>
9245 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9246 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9247 SWI1248_AVX512BW mode iterator.
9249 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
9252 * config/sh/predicates.md (general_extend_operand): Disable
9253 TRUNCATE before reload completes.
9255 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
9257 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9259 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
9262 * config/sh/sh.opt (musermode): Allow negative form.
9263 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9264 targets that don't support it.
9265 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9266 Document -mno-usermode option.
9268 2014-08-24 Kito Cheng <kito@0xlab.org>
9270 * system.h (CALLER_SAVE_PROFITABLE): Poison.
9271 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9272 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9273 * doc/tm.texi: Regenerate.
9275 2014-08-24 Kito Cheng <kito@0xlab.org>
9277 * ira.c: Fix typo in comment.
9279 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
9281 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9282 Deprecate c++1y. Change language to reflect greater confidence in C++14.
9284 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
9287 * config/pa/pa.c (pa_output_function_epilogue): Don't set
9288 last_address when the current function is a thunk.
9289 (pa_asm_output_mi_thunk): When we don't have named sections or they
9290 are not being used, check that thunk can reach the stub table with a
9293 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9295 * web.c (union_match_dups): Strengthen param "insn" from rtx to
9297 (pass_web::execute): Likewise for local "insn".
9299 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9301 * var-tracking.c (struct micro_operation_def): Strengthen field
9302 "insn" from rtx to rtx_insn *.
9303 (struct emit_note_data_def): Likewise.
9304 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9305 (vt_stack_adjustments): Likewise for local "insn".
9306 (adjust_insn): Likewise for param "insn".
9307 (val_store): Likewise.
9308 (val_resolve): Likewise.
9309 (struct count_use_info): Likewise for field "insn".
9310 (log_op_type): Likewise for param "insn".
9311 (reverse_op): Likewise.
9312 (prepare_call_arguments): Likewise.
9313 (add_with_sets): The initial param takes an insn, but we can't
9314 yet strengthen it from rtx to rtx_insn * since it's used as a
9315 cselib_record_sets_hook callback. For now rename initial param
9316 from "insn" to "uncast_insn", and introduce a local "insn" of
9317 the stronger rtx_insn * type, with a checked cast.
9318 (compute_bb_dataflow): Strengthen local "insn" from rtx to
9320 (emit_note_insn_var_location): Likewise.
9321 (emit_notes_for_changes): Likewise.
9322 (emit_notes_for_differences): Likewise.
9323 (next_non_note_insn_var_location): Likewise for return type and
9325 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9326 (vt_initialize): Likewise for local "insn".
9327 (delete_debug_insns): Likewise for locals "insn" and "next".
9329 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9331 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9333 (mark_constant_pool): Likewise for local "insn".
9335 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9337 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9339 (dead_debug_promote_uses): Likewise.
9340 (dead_debug_insert_temp): Likewise.
9342 2014-08-23 David Malcolm <dmalcolm@redhat.com>
9344 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9345 from const_rtx to const rtx_insn *.
9346 (store_killed_after): Likewise. Strengthen locals "last", "act"
9347 from rtx to rtx_insn *.
9348 (store_killed_before): Strengthen param "insn" from const_rtx to
9349 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
9350 (find_moveable_store): Strengthen param "insn" from rtx to
9352 (compute_store_table): Likewise for local "insn".
9353 (insert_insn_start_basic_block): Likewise for param "insn" and
9354 locals "prev", "before", "insn".
9355 (insert_store): For now, add a checked cast to rtx_insn * on the
9356 result of gen_move_insn.
9357 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9359 (replace_store_insn): Likewise. For now, add a checked cast to
9360 rtx_insn * on the result of gen_move_insn.
9362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9364 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9366 (expand_sjlj_dispatch_table): Likewise.
9368 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9370 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9371 "insn" from rtx to rtx_insn *.
9373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9375 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9376 "insn" from rtx to rtx_insn *.
9377 (dup_block_and_redirect): Likewise for param 3 "before".
9379 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9380 from rtx to rtx_insn *.
9381 (move_insn_for_shrink_wrap): Likewise.
9382 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9383 (dup_block_and_redirect): Likewise for param "before" and local
9385 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9387 (convert_to_simple_return): Likewise for local "start".
9389 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9390 Strengthen local "insn" from rtx to rtx_insn *, for use when
9391 invoking requires_stack_frame_p.
9393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9395 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9397 (speculate_expr): Likewise for locals "orig_insn_rtx",
9399 (eq_transformed_insns): Likewise for locals "i1", "i2".
9400 (check_for_new_jump): Likewise for return type and local "end".
9401 (find_new_jump): Likewise for return type and local "jump".
9402 (sel_split_edge): Likewise for local "jump".
9403 (sel_create_recovery_block): Likewise.
9404 (sel_redirect_edge_and_branch_force): Likewise.
9405 (sel_redirect_edge_and_branch): Likewise.
9407 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9409 * sel-sched.c (substitute_reg_in_expr): Strengthen local
9410 "new_insn" from rtx to rtx_insn *.
9411 (create_insn_rtx_with_rhs): Likewise for return type and for local
9413 (create_insn_rtx_with_lhs): Likewise.
9414 (create_speculation_check): Likewise for local "insn_rtx".
9415 (implicit_clobber_conflict_p): Likewise for local "insn".
9416 (get_expr_cost): Likewise.
9417 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9418 (move_cond_jump): Likewise for locals "next", "prev", "link",
9419 "head", "from", "to".
9421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9423 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9424 "next" from rtx to rtx_insn *.
9425 (find_conditional_protection): Likewise for local "next".
9426 (is_conditionally_protected): Likewise for local "insn1".
9427 (is_pfree): Likewise for locals "insn1", "insn2".
9429 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9431 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9432 from rtx to rtx_insn *.
9434 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9435 locals "insn1", "insn2" from rtx to rtx_insn *.
9436 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9437 locals "insn", "prev", "last_jump", "next_tail".
9438 (schedule_ebb): Likewise for params "head", "tail".
9439 (schedule_ebbs): Likewise for locals "tail", "head".
9441 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9442 to rtx_insn on "last_insn" in one of the invocations of
9445 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9447 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9448 "elem", "insn" from rtx to rtx_insn *.
9449 (change_spec_dep_to_hard): Likewise.
9450 (get_back_and_forw_lists): Likewise for local "con".
9451 (sd_add_dep): Likewise for locals "elem", "insn".
9452 (sd_resolve_dep): Likewise for locals "pro", "con".
9453 (sd_unresolve_dep): Likewise.
9454 (sd_delete_dep): Likewise.
9455 (chain_to_prev_insn): Likewise for local "pro".
9456 (find_inc): Likewise for locals "pro", "con".
9458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9460 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9462 (reg_set_between_p): Strengthen local "insn" from const_rtx to
9464 (modified_between_p): Strengthen local "insn" from rtx to
9466 (remove_reg_equal_equiv_notes_for_regno): Likewise.
9467 (keep_with_call_p): Strengthen local "i2" from const_rtx to
9470 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9472 * resource.c (next_insn_no_annul): Strengthen local "next" from
9474 (mark_referenced_resources): Likewise for local "insn".
9476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9478 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9480 (find_reloads): Likewise for param 1.
9481 (subst_reloads): Likewise for sole param.
9482 (find_equiv_reg): Likwise for param 2.
9483 (regno_clobbered_p): Likwise for param 2.
9484 (reload): Likewise for param 1.
9486 * caller-save.c (save_call_clobbered_regs): Strengthen local
9487 "insn" from rtx to rtx_insn *.
9488 (insert_one_insn): Likewise for local "insn".
9490 * reload.c (this_insn): Likewise for this global.
9491 (find_reloads): Likewise for param "insn".
9492 (find_reloads_toplev): Likewise.
9493 (find_reloads_address): Likewise.
9494 (subst_reg_equivs): Likewise.
9495 (update_auto_inc_notes): Likewise.
9496 (find_reloads_address_1): Likewise.
9497 (find_reloads_subreg_address): Likewise.
9498 (subst_reloads): Likewise.
9499 (find_equiv_reg): Likewise, also for local "p".
9500 (regno_clobbered_p): Likewise for param "insn".
9502 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9504 (spill_reg_store): Likewise for the elements of this array.
9505 (remove_init_insns): Likewise for local "equiv_insn".
9506 (will_delete_init_insn_p): Likewise for param "insn".
9507 (reload): Likewise for param ""first" and local "insn".
9508 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9510 (calculate_elim_costs_all_insns): Likewise.
9511 (delete_caller_save_insns): Likewise.
9512 (spill_failure): Likewise for param "insn".
9513 (delete_dead_insn): Likewise.
9514 (set_label_offsets): Likewise.
9515 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9517 (elimination_costs_in_insn): Likewise for param "insn".
9518 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9519 when referring to an insn.
9520 (set_initial_label_offsets): Likewise.
9521 (set_offsets_for_label): Strengthen param "insn" from rtx to
9523 (init_eliminable_invariants): Likewise for param "first" and local
9525 (fixup_eh_region_note): Likewise for param "insn".
9526 (reload_as_needed): Likewise for locals "prev", "insn",
9527 "old_next", "old_prev", "next".
9528 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9530 (reload_inheritance_insn): Strengthen elements of this array from
9532 (failed_reload): Likewise for param "insn".
9533 (choose_reload_regs): Likewise for local "insn". Replace use of
9534 NULL_RTX with NULL when referring to an insn.
9535 (input_reload_insns): Strengthen elements of this array from rtx
9537 (other_input_address_reload_insns): Likewise for this global.
9538 (other_input_reload_insns): Likewise for this global.
9539 (input_address_reload_insns): Likwise for the elements of this
9541 (inpaddr_address_reload_insns): Likwise for the elements of this
9543 (output_reload_insns): Likewise for the elements of this array.
9544 (output_address_reload_insns): Likewise for the elements of this
9546 (outaddr_address_reload_insns): Likewise for the elements of this
9548 (operand_reload_insns): Likewise for this global.
9549 (other_operand_reload_insns): Likewise for this global.
9550 (other_output_reload_insns): Likewise for the elements of this
9552 (new_spill_reg_store): Likewise for the elements of this
9554 (emit_input_reload_insns): Likewise for locals "insn", "temp".
9555 Strengthen local "where" from rtx * to rtx_insn **.
9556 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9557 from rtx to rtx_insn *.
9558 (do_input_reload): Likewise for local "insn".
9559 (do_output_reload): Likewise for local "insn".
9560 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9561 (emit_insn_if_valid_for_reload): Likewise for return type and local
9562 "last". Add checked cast to rtx_insn when returning "insn" since
9563 this has been through emit_insn.
9564 (gen_reload): Strengthen return type and locals "last", "insn", "set"
9565 from rtx to rtx_insn *. Add checked cast to rtx_insn when
9566 returning "insn" since it's been through
9567 emit_insn_if_valid_for_reload at this point.
9568 (delete_output_reload): Strengthen param "insn" and locals
9569 "output_reload_insn", "i2" from rtx to rtx_insn *.
9570 (delete_address_reloads): Likewise for params "dead_insn",
9571 "current_insn" and locals "prev", "next".
9572 (delete_address_reloads_1): Likewise for params "dead_insn",
9573 "current_insn" and locals "prev", "i2".
9574 (inc_for_reload): Likewise for locals "last", "add_insn".
9575 (add_auto_inc_notes): Strengthen param "insn" from rtx to
9578 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9579 param of this duplicate of the prototype from reload.h
9581 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9583 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9585 (regstat_bb_compute_calls_crossed): Likewise.
9587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9589 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9591 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9593 (regrename_analyze): Strengthen local "insn" from rtx to
9595 (scan_rtx_reg): Likewise for param "insn".
9596 (scan_rtx_address): Likewise.
9597 (scan_rtx): Likewise.
9598 (restore_operands): Likewise.
9599 (record_out_operands): Likewise.
9600 (build_def_use): Likewise for local "insn". Replace use of
9601 NULL_RTX with NULL when dealing with an insn.
9603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9605 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9606 * reginfo.c (reg_scan): Likewise, also for local "insn".
9607 (reg_scan_mark_refs): Likewise for param "insn".
9608 (init_subregs_of_mode): Likewise for local "insn".
9610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9612 * regcprop.c (struct queued_debug_insn_change): Strengthen field
9613 "insn" from rtx to rtx_insn *.
9614 (replace_oldest_value_reg): Likewise for param "insn".
9615 (replace_oldest_value_addr): Likewise.
9616 (replace_oldest_value_mem): Likewise.
9617 (apply_debug_insn_changes): Likewise for local "last_insn".
9618 (copyprop_hardreg_forward_1): Likewise for local "insn".
9620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9622 * reg-stack.c (next_flags_user): Strengthen return type and param
9623 "insn" from rtx to rtx_insn *.
9624 (straighten_stack): Likewise for param "insn".
9625 (check_asm_stack_operands): Likewise.
9626 (remove_regno_note): Likewise.
9627 (emit_pop_insn): Likewise for return type, param "insn", local
9629 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
9630 "limit" from rtx to rtx_insn *.
9631 (swap_to_top): Likewise for param "insn".
9632 (move_for_stack_reg): Likewise.
9633 (move_nan_for_stack_reg): Likewise.
9634 (swap_rtx_condition): Likewise.
9635 (compare_for_stack_reg): Likewise.
9636 (subst_all_stack_regs_in_debug_insn): Likewise.
9637 (subst_stack_regs_pat): Likewise, and local "insn2".
9638 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9640 (subst_stack_regs): Likewise.
9641 (change_stack): Likewise.
9642 (convert_regs_1): Likewise for locals "insn", "next".
9644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9646 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9648 (combine_set_extension): Likewise for param "curr_insn".
9649 (transform_ifelse): Likewise for param "def_insn".
9650 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
9651 from vec<rtx> * to vec<rtx_insn *> *.
9652 (is_cond_copy_insn): Likewise for param "insn".
9653 (struct ext_state): Strengthen the four vec fields from vec<rtx>
9655 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9656 local "def_insn" from rtx to rtx_insn *.
9657 (get_sub_rtx): Likewise for param "def_insn".
9658 (merge_def_and_ext): Likewise.
9659 (combine_reaching_defs): Likewise.
9660 (add_removable_extension): Likewise for param "insn".
9661 (find_removable_extensions): Likewise for local "insn".
9662 (find_and_remove_re): Likewise for locals "curr_insn" and
9663 "def_insn". Strengthen locals "reinsn_del_list" and
9664 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9668 * recog.c (split_insn): Strengthen param "insn" and locals
9669 "first", "last" from rtx to rtx_insn *.
9670 (split_all_insns): Likewise for locals "insn", "next".
9671 (split_all_insns_noflow): Likewise.
9673 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9675 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9677 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9678 (debug_rtx_find): Likewise for param 1 "x".
9680 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9681 const_rtx to const rtx_insn *. Likewise for local "insn".
9682 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9683 (debug_rtx_find): Likewise for param 1 "x".
9684 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9685 from const_rtx to const rtx_insn * within the appropriate cases of
9686 the switch statement.
9688 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9689 Strengthen local "insns" from rtx to rtx_insn * since this is
9690 passed to a call to debug_rtx_list.
9692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9694 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9697 * function.c (stack_protect_epilogue): Add checked cast to
9698 rtx_insn for now when invoking predict_insn_def.
9700 * predict.c (predict_insn): Strengthen param "insn" from rtx to
9702 (predict_insn_def): Likewise.
9703 (rtl_predict_edge): Likewise for local "last_insn".
9704 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9706 (combine_predictions_for_insn): Strengthen param "insn" from rtx
9708 (bb_estimate_probability_locally): Likewise for local "last_insn".
9709 (expensive_function_p): Likewise for local "insn".
9711 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9712 local "jmp", since this is used when invoking predict_insn_def.
9714 2014-08-22 Marek Polacek <polacek@redhat.com>
9717 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9719 2014-08-22 Marek Polacek <polacek@redhat.com>
9722 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9723 a comparison in parens.
9724 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9729 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9732 * cprop.c (fis_get_condition): Likewise.
9734 * postreload.c (reload_cse_regs): Likewise for param "first".
9735 (reload_cse_simplify): Likewise for param "insn".
9736 (reload_cse_regs_1): Likewise for local "insn".
9737 (reload_cse_simplify_set): Likewise for param "insn".
9738 (reload_cse_simplify_operands): Likewise.
9739 (struct reg_use): Likewise for field "insn".
9740 (reload_combine_purge_insn_uses): Likewise for param "insn".
9741 (fixup_debug_insns): Likewise for params "from", "to" and local
9743 (try_replace_in_use): Likewise for local "use_insn".
9744 (reload_combine_recognize_const_pattern): Likewise for param
9745 "insn" and locals "add_moved_after_insn", "use_insn".
9746 (reload_combine_recognize_pattern): Likewise for param "insn" and
9748 (reload_combine): Likewise for locals "insn", "prev".
9749 (reload_combine_note_use): Likewise for param "insn".
9750 (move2add_use_add2_insn): Likewise.
9751 (move2add_use_add3_insn): Likewise.
9752 (reload_cse_move2add): Likewise, also for local "next".
9753 (move2add_note_store): Likewise for local "insn".
9755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9757 * postreload-gcse.c (struct occr): Strengthen field "insn" from
9759 (struct unoccr): Likewise.
9760 (struct modifies_mem): Likewise.
9761 (alloc_mem): Likewise for local "insn".
9762 (insert_expr_in_table): Likewise for param "insn".
9763 (dump_expr_hash_table_entry): Likewise for local "insn".
9764 (oprs_unchanged_p): Likewise for param "insn".
9765 (load_killed_in_block_p): Likewise for local "setter".
9766 (record_last_reg_set_info): Likewise for param "insn".
9767 (record_last_reg_set_info_regno): Likewise.
9768 (record_last_mem_set_info): Likewise.
9769 (record_last_set_info): Likewise for local "last_set_insn".
9770 (record_opr_changes): Likewise for param "insn".
9771 (hash_scan_set): Likewise.
9772 (compute_hash_table): Likewise for local "insn".
9773 (get_avail_load_store_reg): Likewise for param "insn".
9774 (eliminate_partially_redundant_load): Likewise, also for locals
9775 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
9777 (eliminate_partially_redundant_loads): Likewise for local "insn".
9779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9781 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9783 (expand_binop): Likewise for locals "entry_last", "last", "insns"
9784 (expand_twoval_unop): Likewise for locals entry_last", "last".
9785 (expand_twoval_binop): Likewise.
9786 (expand_twoval_binop_libfunc): Likewise for local "insns".
9787 (widen_leading): Likewise for local "last".
9788 (expand_doubleword_clz): Likewise for local "seq". Strengthen
9789 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9790 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9791 (expand_parity): Likewise for locals "last" and "seq".
9792 (expand_ffs): Likewise for local "seq". Strengthen local
9793 "nonzero_label" from rtx to rtx_code_label *.
9794 (expand_absneg_bit): Strengthen local "insns" from rtx to
9796 (expand_unop_direct): Likewise for local "last".
9797 (expand_unop): Likewise for locals "last", "insns".
9798 (expand_abs_nojump): Likewise for local "last".
9799 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9800 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9802 (expand_copysign_absneg): Strengthen local "label" from rtx to
9804 (expand_copysign_bit): Strengthen local "insns" from rtx to
9806 (struct no_conflict_data): Likewise for fields "first", "insn".
9807 (emit_libcall_block_1): Likewise for param "insns" and locals
9808 "next", "last", "insn".
9809 (emit_libcall_block): For now, add a checked cast to rtx_insn *
9810 on "insns" when invoking emit_libcall_block_1. Ultimately we
9811 want to strengthen insns itself.
9812 (prepare_cmp_insn): Strengthen local "last" from rtx to
9814 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9815 (prepare_float_lib_cmp): Likewise for local "insns".
9816 (emit_conditional_move): Likewise for local "last".
9817 (emit_conditional_add): Likewise.
9818 (have_sub2_insn): Likewise for local "seq".
9819 (expand_float): Likewise for local "insns". Strengthen locals
9820 "label", "neglabel" from rtx to rtx_code_label *.
9821 (expand_fix): Likewise for locals "last", "insn", "insns" (to
9822 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9823 (expand_fixed_convert): Likewise for local "insns" (to
9825 (expand_sfix_optab): Likewise for local "last".
9826 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9827 to rtx_code_label *.
9828 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9829 from rtx to rtx_insn *.
9830 (expand_atomic_fetch_op): Likewise for local "insn".
9831 (maybe_legitimize_operand_same_code): Likewise for local "last".
9832 (maybe_legitimize_operands): Likewise.
9834 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9836 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9837 "insn" from rtx to rtx_insn *.
9838 (ps_rtl_insn): Likewise for return type.
9839 (doloop_register_get): Likewise for params "head", "tail" and
9840 locals "insn", "first_insn_not_to_check".
9841 (schedule_reg_move): Likewise for local "this_insn".
9842 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9843 of gen_move_insn for now.
9844 (reset_sched_times): Strengthen local "insn" from rtx to
9846 (permute_partial_schedule): Likewise.
9847 (duplicate_insns_of_cycles): Likewise for local "u_insn".
9848 (dump_insn_location): Likewise for param "insn".
9849 (loop_canon_p): Likewise for local "insn".
9850 (sms_schedule): Likewise.
9851 (print_partial_schedule): Likewise.
9852 (ps_has_conflicts): Likewise.
9854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9856 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9857 "tailp" from rtx * to rtx_insn **.
9859 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9860 from rtx to rtx_insn *.
9861 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9862 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
9863 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9865 * modulo-sched.c (const_iteration_count): Strengthen return type
9866 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
9867 use of NULL_RTX with NULL when working with insns.
9868 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9870 (sms_schedule): Likewise.
9871 * sched-rgn.c (init_ready_list): Likewise, also for locals
9872 "src_head" and "src_next_tail".
9873 (compute_block_dependences): Likewise.
9874 (free_block_dependencies): Likewise.
9875 (debug_rgn_dependencies): Likewise.
9876 (free_rgn_deps): Likewise.
9877 (compute_priorities): Likewise.
9878 (schedule_region): Likewise.
9879 * sel-sched.c (find_ebb_boundaries): Likewise.
9881 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9882 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9884 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9886 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9887 from rtx to rtx_insn *.
9888 (new_seginfo): Likewise for param "insn".
9889 (create_pre_exit): Likewise for locals "last_insn",
9890 "before_return_copy", "return_copy".
9891 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9896 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9897 from rtx to rtx_insn *.
9898 (lra_push_insn): Likewise for 1st param.
9899 (lra_push_insn_and_update_insn_regno_info): Likewise.
9900 (lra_pop_insn): Likewise for return type.
9901 (lra_invalidate_insn_data): Likewise for 1st param.
9902 (lra_set_insn_deleted): Likewise.
9903 (lra_delete_dead_insn): Likewise.
9904 (lra_process_new_insns): Likewise for first 3 params.
9905 (lra_set_insn_recog_data): Likewise for 1st param.
9906 (lra_update_insn_recog_data): Likewise.
9907 (lra_set_used_insn_alternative): Likewise.
9908 (lra_invalidate_insn_regno_info): Likewise.
9909 (lra_update_insn_regno_info): Likewise.
9910 (lra_former_scratch_operand_p): Likewise.
9911 (lra_eliminate_regs_1): Likewise.
9912 (lra_get_insn_recog_data): Likewise.
9914 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9917 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9919 (substitute_within_insn): New.
9920 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9921 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
9922 Replace call to "substitute" with call to substitute_within_insn.
9924 * lra-constraints.c (curr_insn): Strengthen from rtx to
9926 (get_equiv_with_elimination): Likewise for param "insn".
9927 (match_reload): Strengthen params "before" and "after" from rtx *
9929 (emit_spill_move): Likewise for return type. Add a checked cast
9930 to rtx_insn * on result of gen_move_insn for now.
9931 (check_and_process_move): Likewise for local "before". Replace
9932 NULL_RTX with NULL when referring to insns.
9933 (process_addr_reg): Strengthen params "before" and "after" from
9934 rtx * to rtx_insn **.
9935 (insert_move_for_subreg): Likewise.
9936 (simplify_operand_subreg): Strengthen locals "before" and "after"
9937 from rtx to rtx_insn *.
9938 (process_address_1): Strengthen params "before" and "after" from
9939 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
9941 (process_address): Strengthen params "before" and "after" from
9942 rtx * to rtx_insn **.
9943 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9944 (curr_insn_transform): Strengthen locals "before" and "after"
9945 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
9947 (loc_equivalence_callback): Update cast of "data", changing
9948 resulting type from rtx to rtx_insn *.
9949 (substitute_pseudo_within_insn): New.
9950 (inherit_reload_reg): Strengthen param "insn" from rtx to
9951 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
9952 NULL when referring to insns. Add a checked cast to rtx_insn *
9953 when using usage_insn to invoke lra_update_insn_regno_info.
9954 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9955 likewise for locals "restore", "save". Add checked casts to
9956 rtx_insn * when using usage_insn to invoke
9957 lra_update_insn_regno_info and lra_process_new_insns. Replace
9958 NULL_RTX with NULL when referring to insns.
9959 (split_if_necessary): Strengthen param "insn" from rtx to
9961 (update_ebb_live_info): Likewise for params "head", "tail" and local
9963 (get_last_insertion_point): Likewise for return type and local "insn".
9964 (get_live_on_other_edges): Likewise for local "last".
9965 (inherit_in_ebb): Likewise for params "head", "tail" and locals
9966 "prev_insn", "next_insn", "restore".
9967 (remove_inheritance_pseudos): Likewise for local "prev_insn".
9968 (undo_optional_reloads): Likewise for local "insn".
9970 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9972 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9974 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9976 (spill_pseudos): Likewise for local "insn".
9977 (init_elimination): Likewise.
9978 (process_insn_for_elimination): Likewise for param "insn".
9980 * lra-lives.c (curr_insn): Likewise.;
9982 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9983 (remove_pseudos): Likewise for param "insn".
9984 (spill_pseudos): Likewise for local "insn".
9985 (lra_final_code_change): Likewise for locals "insn", "curr".
9987 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9988 (lra_set_insn_deleted): Likewise.
9989 (lra_delete_dead_insn): Likewise, and for local "prev".
9990 (new_insn_reg): Likewise for param "insn".
9991 (lra_set_insn_recog_data): Likewise.
9992 (lra_update_insn_recog_data): Likewise.
9993 (lra_set_used_insn_alternative): Likewise.
9994 (get_insn_freq): Likewise.
9995 (invalidate_insn_data_regno_info): Likewise.
9996 (lra_invalidate_insn_regno_info): Likewise.
9997 (lra_update_insn_regno_info): Likewise.
9998 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10000 (lra_push_insn_1): Strengthen param "insn" from rtx to
10002 (lra_push_insn): Likewise.
10003 (lra_push_insn_and_update_insn_regno_info): Likewise.
10004 (lra_pop_insn): Likewise for return type and local "insn".
10005 (push_insns): Likewise for params "from", "to", and local "insn".
10006 (setup_sp_offset): Likewise for params "from", "last" and locals
10008 (lra_process_new_insns): Likewise for params "insn", "before",
10009 "after" and local "last".
10010 (struct sloc): Likewise for field "insn".
10011 (lra_former_scratch_operand_p): Likewise for param "insn".
10012 (remove_scratches): Likewise for locals "insn", "last".
10013 (check_rtl): Likewise for local "insn".
10014 (add_auto_inc_notes): Likewise for param "insn".
10015 (update_inc_notes): Likewise for local "insn".
10016 (lra): Replace NULL_RTX with NULL when referring to insn.
10018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10020 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10022 (resolve_reg_notes): Likewise.
10023 (resolve_simple_move): Likewise for return type, param "insn", and
10024 locals "insns", "minsn".
10025 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10026 (resolve_use): Likewise.
10027 (resolve_debug): Likewise.
10028 (find_decomposable_shift_zext): Likewise.
10029 (resolve_shift_zext): Likewise for return type, param "insn", and
10030 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
10031 (decompose_multiword_subregs): Likewise for local "insn",
10032 "orig_insn", "decomposed_shift", "end".
10034 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10036 * basic-block.h (basic_block split_edge_and_insert): Strengthen
10037 param "insns" from rtx to rtx_insn *.
10039 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10041 (struct iv_to_split): Likewise.
10042 (loop_exit_at_end_p): Likewise for local "insn".
10043 (split_edge_and_insert): Likewise for param "insns".
10044 (compare_and_jump_seq): Likewise for return type, param "cinsn",
10045 and locals "seq", "jump".
10046 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10047 "branch_code"; update invocations of compare_and_jump_seq to
10048 eliminate NULL_RTX in favor of NULL.
10049 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10051 (reset_debug_uses_in_loop): Likewise.
10052 (analyze_insn_to_expand_var): Likewise for param "insn".
10053 (analyze_iv_to_split_insn): Likewise.
10054 (analyze_insns_in_loop): Likewise for local "insn".
10055 (insert_base_initialization): Likewise for param
10056 "insn" and local "seq".
10057 (split_iv): Likewise for param "insn" and local "seq".
10058 (expand_var_during_unrolling): Likewise for param "insn".
10059 (insert_var_expansion_initialization): Likewise for local "seq".
10060 (combine_var_copies_in_loop_exit): Likewise.
10061 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10063 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10064 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10069 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10071 (iv_analyze_result): Likewise.
10072 (iv_analyze_expr): Likewise.
10075 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10076 local "def_insn" from rtx to rtx_insn *.
10077 (get_biv_step_1): Likewise for local "insn".
10078 (iv_analyze_expr): Likewise for param "insn".
10079 (iv_analyze_def): Likewise for local "insn".
10080 (iv_analyze_op): Likewise for param "insn".
10081 (iv_analyze): Likewise.
10082 (iv_analyze_result): Likewise.
10084 (suitable_set_for_replacement): Likewise.
10085 (simplify_using_initial_values): Likewise for local "insn".
10086 (iv_number_of_iterations): Likewise for param "insn".
10087 (check_simple_exit): Add checked cast to rtx_insn when invoking
10088 iv_number_of_iterations for now (until get_condition is
10091 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10092 "insn" from rtx to rtx_insn *.
10093 (analyze_insns_in_loop): Likewise for local "insn".
10095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10097 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10099 (struct invariant): Likewise.
10100 (hash_invariant_expr_1): Likewise for param "insn".
10101 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10102 (find_exits): Likewise for local "insn".
10103 (create_new_invariant): Likewise for param "insn".
10104 (check_dependencies): Likewise.
10105 (find_invariant_insn): Likewise.
10106 (record_uses): Likewise.
10107 (find_invariants_insn): Likewise.
10108 (find_invariants_bb): Likewise for local "insn".
10109 (get_pressure_class_and_nregs): Likewise for param "insn".
10110 (calculate_loop_reg_pressure): Likewise for local "insn".
10112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10114 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10116 (add_test): Likewise for locals "seq", "jump".
10117 (doloop_modify): Likewise for locals "sequence", "jump_insn".
10119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10121 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10123 (rebuild_jump_labels_chain): Likewise for param "chain".
10125 * cfgexpand.c (pass_expand::execute): Add checked cast to
10126 rtx_insn * when calling rebuild_jump_labels_chain in region where
10127 we know e->insns.r is non-NULL.
10129 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10131 (rebuild_jump_labels): Likewise.
10132 (rebuild_jump_labels_chain): Likewise for param "chain".
10133 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10134 (init_label_info): Likewise for param "f".
10135 (maybe_propagate_label_ref): Likewise for params "jump_insn",
10136 "prev_nonjump_insn".
10137 (mark_all_labels): Likewise for param "f" and locals "insn",
10138 "prev_nonjump_insn".
10140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10142 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10143 from rtx to rtx_insn *insn.
10144 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10145 (ira_add_allocno_copy): Likewise.
10146 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10148 (ira_create_copy): Likewise.
10149 (ira_add_allocno_copy): Likewise.
10150 (create_bb_allocnos): Likewise for local "insn".
10151 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10152 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10153 process_regs_for_copy for rtx_insn * param.
10154 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10155 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
10156 process_regs_for_copy for rtx_insn * param.
10157 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10158 * ira-costs.c (record_reg_classes): Likewise for param "insn".
10159 (record_operand_costs): Likewise.
10160 (scan_one_insn): Likewise for return type, and for param "insn".
10161 (process_bb_for_costs): Likewise for local "insn".
10162 (process_bb_node_for_hard_reg_moves): Likewise.
10163 * ira-emit.c (struct move): Likewise for field "insn".
10164 (create_move): Eliminate use of NULL_RTX when dealing with an
10166 (emit_move_list): Strengthen return type and locals "result",
10167 "insn" from rtx to rtx_insn *insn.
10168 (emit_moves): Likewise for locals "insns", "tmp".
10169 (ira_emit): Likewise for local "insn".
10170 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10172 (find_call_crossed_cheap_reg): Likewise.
10173 (process_bb_node_lives): Likewise for local "insn".
10174 * ira.c (decrease_live_ranges_number): Likewise.
10175 (compute_regs_asm_clobbered): Likewise.
10176 (build_insn_chain): Likewise.
10177 (find_moveable_pseudos): Likewise, also locals "def_insn",
10178 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
10179 to rtx_insn **. Add a checked cast when assigning from
10180 "closest_use" into closest_uses array in a region where we know
10181 it's a non-NULL insn.
10182 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10184 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10185 "last_interesting_insn", "uin".
10186 (move_unallocated_pseudos): Likewise for locals "def_insn",
10187 "move_insn", "newinsn".
10189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10191 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10192 Strengthen locals "done_label", "do_error" from rtx to
10194 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10195 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
10197 (ubsan_expand_si_overflow_neg_check): Likewise for locals
10198 "done_label", "do_error" to rtx_code_label * and local "last" to
10200 (ubsan_expand_si_overflow_mul_check): Likewise for locals
10201 "done_label", "do_error", "large_op0", "small_op0_large_op1",
10202 "one_small_one_large", "both_ops_large", "after_hipart_neg",
10203 "after_lopart_neg", "do_overflow", "hipart_different" to
10204 rtx_code_label * and local "last" to rtx_insn *.
10206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10208 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10209 "insn" and "move_insn" from rtx to rtx_insn *.
10211 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10213 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10215 (cheap_bb_rtx_cost_p): Likewise.
10216 (first_active_insn): Likewise for return type and local "insn".
10217 (last_active_insn): Likewise for return type and locals "insn",
10219 (struct noce_if_info): Likewise for fields "jump", "insn_a",
10221 (end_ifcvt_sequence): Likewise for return type and locals "insn",
10223 (noce_try_move): Likewise for local "seq".
10224 (noce_try_store_flag): Likewise.
10225 (noce_try_store_flag_constants): Likewise.
10226 (noce_try_addcc): Likewise.
10227 (noce_try_store_flag_mask): Likewise.
10228 (noce_try_cmove): Likewise.
10229 (noce_try_minmax): Likewise.
10230 (noce_try_abs): Likewise.
10231 (noce_try_sign_mask): Likewise.
10232 (noce_try_bitop): Likewise.
10233 (noce_can_store_speculate_p): Likewise for local "insn".
10234 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10236 (check_cond_move_block): Likewise for local "insn".
10237 (cond_move_convert_if_block): Likewise.
10238 (cond_move_process_if_block): Likewise for locals "seq",
10240 (noce_find_if_block): Likewise for local "jump".
10241 (merge_if_block): Likewise for local "last".
10242 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10243 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10244 (block_has_only_trap): Likewise for return type and local "trap".
10245 (find_if_case_1): Likewise for local "jump".
10246 (dead_or_predicable): Likewise for locals "head", "end", "jump",
10249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10251 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10252 "last_insn", "loop_end" from rtx to rtx_insn *.
10254 * hw-doloop.c (scan_loop): Likewise for local "insn".
10255 (discover_loop): Likewise for param "tail_insn".
10256 (discover_loops): Likewise for local "tail".
10258 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10259 cast to rtx_insn * when assigning from an rtx local to a
10260 hwloop_info's "last_insn" field.
10262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10264 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10265 (add_delay_dependencies): Strengthen local "pro" from rtx to
10267 (recompute_todo_spec): Likewise.
10268 (dep_cost_1): Likewise for locals "insn", "used".
10269 (schedule_insn): Likewise for local "dbg".
10270 (schedule_insn): Likewise for locals "pro", "next".
10271 (unschedule_insns_until): Likewise for local "con".
10272 (restore_pattern): Likewise for local "next".
10273 (estimate_insn_tick): Likewise for local "pro".
10274 (resolve_dependencies): Likewise for local "next".
10275 (fix_inter_tick): Likewise.
10276 (fix_tick_ready): Likewise for local "pro".
10277 (add_to_speculative_block): Likewise for locals "check", "twin",
10279 (sched_extend_bb): Likewise for locals "end", "insn".
10280 (init_before_recovery): Likewise for local "x".
10281 (sched_create_recovery_block): Likewise for local "barrier".
10282 (create_check_block_twin): Likewise for local "pro".
10283 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10285 (unlink_bb_notes): Update for change to type of bb_header.
10286 Strengthen locals "prev", "label", "note", "next" from rtx to
10288 (clear_priorities): Likewise for local "pro".
10290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10292 * gcse.c (struct occr): Strengthen field "insn" from rtx to
10294 (test_insn): Likewise for this global.
10295 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10297 (oprs_anticipatable_p): Likewise.
10298 (oprs_available_p): Likewise.
10299 (insert_expr_in_table): Strengthen param "insn" from rtx to
10301 (hash_scan_set): Likewise.
10302 (hash_scan_clobber): Likewise.
10303 (hash_scan_call): Likewise.
10304 (hash_scan_insn): Likewise.
10305 (compute_hash_table_work): Likewise for local "insn".
10306 (process_insert_insn): Likewise for return type and local "pat".
10307 (insert_insn_end_basic_block): Likewise for locals "new_insn",
10308 "pat", "pat_end", "maybe_cc0_setter".
10309 (pre_edge_insert): Likewise for local "insn".
10310 (pre_insert_copy_insn): Likewise for param "insn".
10311 (pre_insert_copies): Likewise for local "insn".
10312 (struct set_data): Likewise for field "insn".
10313 (single_set_gcse): Likewise for param "insn".
10314 (gcse_emit_move_after): Likewise.
10315 (pre_delete): Likewise for local "insn".
10316 (update_bb_reg_pressure): Likewise for param "from" and local
10318 (should_hoist_expr_to_dom): Likewise for param "from".
10319 (hoist_code): Likewise for local "insn".
10320 (get_pressure_class_and_nregs): Likewise for param "insn".
10321 (calculate_bb_reg_pressure): Likewise for local "insn".
10322 (compute_ld_motion_mems): Likewise.
10324 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10326 * genpeep.c (main): Rename param back from "uncast_ins1" to
10327 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
10330 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10332 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10335 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10336 documentation to state it is only for VSX operations.
10338 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10339 constraint only active if VSX.
10341 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10342 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10343 (lfiwzx): Likewise.
10345 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10347 * fwprop.c (single_def_use_dom_walker::before_dom_children):
10348 Strengthen local "insn" from rtx to rtx_insn *.
10349 (use_killed_between): Likewise for param "target_insn".
10350 (all_uses_available_at): Likewise for param "target_insn" and
10352 (update_df_init): Likewise for params "def_insn", "insn".
10353 (update_df): Likewise for param "insn".
10354 (try_fwprop_subst): Likewise for param "def_insn" and local
10356 (free_load_extend): Likewise for param "insn".
10357 (forward_propagate_subreg): Likewise for param "def_insn" and
10359 (forward_propagate_asm): Likewise for param "def_insn" and local
10361 (forward_propagate_and_simplify): Likewise for param "def_insn"
10362 and local "use_insn".
10363 (forward_propagate_into): Likewise for locals "def_insn" and
10366 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10368 * function.c (emit_initial_value_sets): Strengthen local "seq"
10369 from rtx to rtx_insn *.
10370 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10372 (instantiate_virtual_regs): Likewise for local "insn".
10373 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10374 (reorder_blocks_1): Likewise for param "insns" and local "insn".
10375 (expand_function_end): Likewise for locals "insn" and "seq".
10376 (epilogue_done): Likewise for local "insn".
10377 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10379 (reposition_prologue_and_epilogue_notes): Likewise for locals
10380 "insn", "last", "note", "first".
10381 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10382 (pass_match_asm_constraints::execute): Likewise for local "insn".
10384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10386 * output.h (final_scan_insn): Strengthen return type from rtx to
10388 (final_forward_branch_p): Likewise for param.
10389 (current_output_insn): Likewise for this global.
10391 * final.c (rtx debug_insn): Likewise for this variable.
10392 (current_output_insn): Likewise.
10393 (get_attr_length_1): Rename param "insn" to "uncast_insn",
10394 adding "insn" back in as an rtx_insn * with a checked cast, so
10395 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10397 (compute_alignments): Strengthen local "label" from rtx to
10399 (shorten_branches): Rename param from "first" to "uncast_first",
10400 introducing a new local rtx_insn * "first" using a checked cast to
10401 effectively strengthen "first" from rtx to rtx_insn * without
10402 affecting the type signature. Strengthen locals "insn", "seq",
10403 "next", "label" from rtx to rtx_insn *.
10404 (change_scope): Strengthen param "orig_insn" and local "insn" from
10406 (final_start_function): Rename param from "first" to "uncast_first",
10407 introducing a new local rtx_insn * "first" using a checked cast to
10408 effectively strengthen "first" from rtx to rtx_insn * without
10409 affecting the type signature. Strengthen local "insn" from rtx to
10411 (dump_basic_block_info): Strengthen param "insn" from rtx to
10413 (final): Rename param from "first" to "uncast_first",
10414 introducing a new local rtx_insn * "first" using a checked cast to
10415 effectively strengthen "first" from rtx to rtx_insn * without
10416 affecting the type signature. Strengthen locals "insn", "next"
10417 from rtx to rtx_insn *.
10418 (output_alternate_entry_point): Strengthen param "insn" from rtx to
10420 (call_from_call_insn): Strengthen param "insn" from rtx to
10422 (final_scan_insn): Rename param from "insn" to "uncast_insn",
10423 introducing a new local rtx_insn * "insn" using a checked cast to
10424 effectively strengthen "insn" from rtx to rtx_insn * without
10425 affecting the type signature. Strengthen return type and locals
10426 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
10427 now-redundant checked cast to rtx_insn * from both invocations of
10428 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
10429 introducing a local "call_insn" for use when invoking
10430 call_from_call_insn.
10431 (notice_source_line): Strengthen param "insn" from rtx to
10433 (leaf_function_p): Likewise for local "insn".
10434 (final_forward_branch_p): Likewise.
10435 (leaf_renumber_regs): Likewise for param "first".
10436 (rest_of_clean_state): Likewise for locals "insn" and "next".
10437 (self_recursive_call_p): Likewise for param "insn".
10438 (collect_fn_hard_reg_usage): Likewise for local "insn".
10439 (get_call_fndecl): Likewise for param "insn".
10440 (get_call_cgraph_rtl_info): Likewise.
10441 (get_call_reg_set_usage): 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.
10446 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10447 cast when assigning from param "insn" to current_output_insn.
10448 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10449 so that we can assign it back to current_output_insn.
10451 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10453 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10454 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10455 atmxt540s and atmxt540sreva devices.
10456 * config/avr/avr-tables.opt: Regenerate.
10457 * config/avr/t-multilib: Regenerate.
10458 * doc/avr-mmcu.texi: Regenerate.
10460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10462 * expr.c (convert_move): Strengthen local "insns" from rtx to
10464 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10465 "top_label" from rtx to rtx_code_label *.
10466 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10468 (emit_single_push_insn): Likewise for locals "prev", "last".
10469 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10470 to rtx_code_label *.
10471 (store_constructor): Likewise for locals "loop_start", "loop_end".
10472 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10474 (expand_expr_real_2): Likewise.
10475 (expand_expr_real_1): Strengthen local "label" from rtx to
10478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10480 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10481 from rtx to rtx_insn *.
10482 (store_bit_field_1): Likewise.
10483 (extract_bit_field_1): Likewise.
10484 (expand_mult_const): Likewise for local "insns".
10485 (expmed_mult_highpart): Strengthen local "label" from rtx to
10487 (expand_smod_pow2): Likewise.
10488 (expand_sdiv_pow2): Likewise.
10489 (expand_divmod): Strengthen locals "last", "insn" from rtx to
10490 rtx_insn *. Strengthen locals "label", "label1", "label2",
10491 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10492 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10493 (emit_store_flag): Likewise.
10494 (emit_store_flag_force): Strengthen local "label" from rtx to
10496 (do_cmp_and_jump): Likewise for param "label".
10498 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10500 * explow.c (force_reg): Strengthen local "insn" from rtx to
10502 (adjust_stack_1): Likewise.
10503 (allocate_dynamic_stack_space): Likewise. Strengthen locals
10504 "final_label", "available_label", "space_available" from rtx to
10506 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10507 (anti_adjust_stack_and_probe): Likewise.
10509 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10511 * except.h (sjlj_emit_function_exit_after): Strengthen param
10512 "after" from rtx to rtx_insn *. This is only called with
10513 result of get_last_insn (in function.c) so type-change should be
10516 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10517 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10518 to rtx_insn *. These fields are only used from except.c so this
10519 type-change should be self-contained to this patch.
10521 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10522 local "last" from rtx to rtx_insn *.
10523 (dw2_build_landing_pads): Likewise for local "seq".
10524 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10525 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10526 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
10528 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10530 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10531 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10532 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10533 referring to an insn. Strengthen local "dispatch_label" from
10534 rtx to rtx_code_label *.
10535 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10537 (expand_eh_return): Strengthen local "around_label" from
10538 rtx to rtx_code_label *.
10539 (convert_to_eh_region_ranges): Strengthen locals "iter",
10540 "last_action_insn", "first_no_action_insn",
10541 "first_no_action_insn_before_switch",
10542 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10544 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10546 * dwarf2out.c (last_var_location_insn): Strengthen this variable
10547 from rtx to rtx_insn *.
10548 (cached_next_real_insn): Likewise.
10549 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10550 working with insns.
10551 (dwarf2out_var_location): Strengthen locals "next_real",
10552 "next_note", "expected_next_loc_note", "last_start", "insn" from
10555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10557 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10558 from rtx to rtx_insn *.
10559 (create_pseudo_cfg): Likewise for local "insn".
10561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10563 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10564 from rtx to rtx_insn *.
10565 (df_bb_regno_last_def_find): Likewise.
10567 * df-problems.c (df_rd_bb_local_compute): Likewise.
10568 (df_lr_bb_local_compute): Likewise.
10569 (df_live_bb_local_compute): Likewise.
10570 (df_chain_remove_problem): Likewise.
10571 (df_chain_create_bb): Likewise.
10572 (df_word_lr_bb_local_compute): Likewise.
10573 (df_remove_dead_eq_notes): Likewise for param "insn".
10574 (df_note_bb_compute): Likewise for local "insn".
10575 (simulate_backwards_to_point): Likewise.
10576 (df_md_bb_local_compute): Likewise.
10578 * df-scan.c (df_scan_free_bb_info): Likewise.
10579 (df_scan_start_dump): Likewise.
10580 (df_scan_start_block): Likewise.
10581 (df_install_ref_incremental): Likewise for local "insn".
10582 (df_insn_rescan_all): Likewise.
10583 (df_reorganize_refs_by_reg_by_insn): Likewise.
10584 (df_reorganize_refs_by_insn_bb): Likewise.
10585 (df_recompute_luids): Likewise.
10586 (df_bb_refs_record): Likewise.
10587 (df_update_entry_exit_and_calls): Likewise.
10588 (df_bb_verify): Likewise.
10590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10592 * ddg.h (struct ddg_node): Strengthen fields "insn" and
10593 "first_note" from rtx to rtx_insn *.
10594 (get_node_of_insn): Likewise for param 2 "insn".
10595 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10597 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10599 (mem_write_insn_p): Likewise.
10600 (mem_access_insn_p): Likewise.
10601 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10602 (def_has_ccmode_p): Likewise for param "insn".
10603 (add_cross_iteration_register_deps): Likewise for locals
10604 "def_insn" and "use_insn".
10605 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10606 (build_intra_loop_deps): Likewise for local "src_insn".
10607 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10609 (get_node_of_insn): Likewise for param "insn".
10611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10613 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10614 (deletable_insn_p): Strengthen param "insn" from rtx to
10615 rtx_insn *. Add checked cast to rtx_call_insn when invoking
10616 find_call_stack_args, since this is guarded by CALL_P (insn).
10617 (marked_insn_p): Strengthen param "insn" from rtx to
10619 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
10620 invoking find_call_stack_args, since this is guarded by
10622 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10623 rtx_insn *; we know this is an insn since this was called by
10624 mark_nonreg_stores.
10625 (mark_nonreg_stores_2): Likewise.
10626 (mark_nonreg_stores): Strengthen param "insn" from rtx to
10628 (find_call_stack_args): Strengthen param "call_insn" from rtx to
10629 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10631 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10632 from rtx to rtx_insn *.
10633 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10634 "next", "ref_insn".
10635 (delete_unmarked_insns): Likewise for locals "insn", "next".
10636 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10637 (mark_reg_dependencies): Likewise for param "insn".
10638 (rest_of_handle_ud_dce): Likewise for local "insn".
10639 (word_dce_process_block): Likewise.
10640 (dce_process_block): Likewise.
10642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10644 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10645 from rtx to rtx_insn *.
10646 (struct change_cc_mode_args): Likewise for field "insn".
10647 (this_insn): Strengthen from rtx to rtx_insn *.
10648 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10650 (validate_canon_reg): Strengthen param "insn" from rtx to
10652 (canon_reg): Likewise.
10653 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
10655 (record_jump_equiv): Strengthen param "insn" from rtx to
10657 (try_back_substitute_reg): Likewise, also for locals "prev",
10659 (find_sets_in_insn): Likewise for param "insn".
10660 (canonicalize_insn): Likewise.
10661 (cse_insn): Likewise. Add a checked cast.
10662 (invalidate_from_clobbers): Likewise for param "insn".
10663 (invalidate_from_sets_and_clobbers): Likewise.
10664 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10666 (cse_prescan_path): Strengthen local "insn" from rtx to
10668 (cse_extended_basic_block): Likewise for locals "insn" and
10670 (cse_main): Likewise for param "f".
10671 (check_for_label_ref): Likewise for local "insn".
10672 (set_live_p): Likewise for second param ("insn").
10673 (insn_live_p): Likewise for first param ("insn") and for local
10675 (cse_change_cc_mode_insn): Likewise for first param "insn".
10676 (cse_change_cc_mode_insns): Likewise for first and second params
10678 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10680 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10683 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10684 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10685 Anna Tikhonova <anna.tikhonova@intel.com>
10686 Ilya Tocar <ilya.tocar@intel.com>
10687 Andrey Turetskiy <andrey.turetskiy@intel.com>
10688 Ilya Verbin <ilya.verbin@intel.com>
10689 Kirill Yukhin <kirill.yukhin@intel.com>
10690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10692 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10694 * config/i386/sse.md
10695 (define_mode_iterator VI248_AVX2): Delete.
10696 (define_mode_iterator VI2_AVX2_AVX512BW): New.
10697 (define_mode_iterator VI48_AVX2): Ditto.
10698 (define_insn <shift_insn><mode>3): Delete.
10699 (define_insn "<shift_insn><mode>3<mask_name>" with
10700 VI2_AVX2_AVX512BW): New.
10701 (define_insn "<shift_insn><mode>3<mask_name>" with
10704 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10706 Anna Tikhonova <anna.tikhonova@intel.com>
10707 Ilya Tocar <ilya.tocar@intel.com>
10708 Andrey Turetskiy <andrey.turetskiy@intel.com>
10709 Ilya Verbin <ilya.verbin@intel.com>
10710 Kirill Yukhin <kirill.yukhin@intel.com>
10711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10713 * config/i386/sse.md
10714 (define_mode_iterator VI4F_BRCST32x2): New.
10715 (define_mode_attr 64x2_mode): Ditto.
10716 (define_mode_attr 32x2mode): Ditto.
10717 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10718 with VI4F_BRCST32x2): Ditto.
10719 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10720 with V16FI mode iterator): Ditto.
10721 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10722 with V16FI): Ditto.
10723 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10724 with VI8F_BRCST64x2): Ditto.
10726 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
10727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10728 Anna Tikhonova <anna.tikhonova@intel.com>
10729 Ilya Tocar <ilya.tocar@intel.com>
10730 Andrey Turetskiy <andrey.turetskiy@intel.com>
10731 Ilya Verbin <ilya.verbin@intel.com>
10732 Kirill Yukhin <kirill.yukhin@intel.com>
10733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10735 * config/i386/sse.md
10736 (define_mode_iterator VI8_AVX512VL): New.
10737 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10739 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
10741 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10742 (define_mode_iterator V48_AVX512VL): New.
10743 (define_mode_iterator V12_AVX512VL): Ditto.
10744 (define_insn <avx512>_load<mode>_mask): Split into two similar
10745 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10746 Refactor output template.
10747 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10749 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10751 * cprop.c (struct occr): Strengthen field "insn" from rtx to
10753 (reg_available_p): Likewise for param "insn".
10754 (insert_set_in_table): Likewise.
10755 (hash_scan_set): Likewise.
10756 (hash_scan_insn): Likewise.
10757 (make_set_regs_unavailable): Likewise.
10758 (compute_hash_table_work): Likewise for local "insn".
10759 (reg_not_set_p): Strengthen param "insn" from const_rtx to
10761 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10762 (try_replace_reg): Likewise.
10763 (find_avail_set): Likewise.
10764 (cprop_jump): Likewise for params "setcc", "jump".
10765 (constprop_register): Likewise for param "insn".
10766 (cprop_insn): Likewise.
10767 (do_local_cprop): Likewise.
10768 (local_cprop_pass): Likewise for local "insn".
10769 (bypass_block): Likewise for params "setcc" and "jump".
10770 (bypass_conditional_jumps): Likewise for locals "setcc" and
10772 (one_cprop_pass): Likewise for local "insn".
10774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10776 * compare-elim.c (struct comparison_use): Strengthen field "insn"
10777 from rtx to rtx_insn *.
10778 (struct comparison): Likewise, also for field "prev_clobber".
10779 (conforming_compare): Likewise for param "insn".
10780 (arithmetic_flags_clobber_p): Likewise.
10781 (find_flags_uses_in_insn): Likewise.
10782 (find_comparison_dom_walker::before_dom_children): Likewise for
10783 locals "insn", "next", "last_clobber".
10784 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
10788 * combine-stack-adj.c (struct csa_reflist): Strengthen field
10789 "insn" from rtx to rtx_insn *.
10790 (single_set_for_csa): Likewise for param "insn".
10791 (record_one_stack_ref): Likewise.
10792 (try_apply_stack_adjustment): Likewise.
10793 (struct record_stack_refs_data): Likewise for field "insn".
10794 (maybe_move_args_size_note): Likewise for params "last" and "insn".
10795 (prev_active_insn_bb): Likewise for return type and param "insn".
10796 (next_active_insn_bb): Likewise.
10797 (force_move_args_size_note): Likewise for params "prev" and "last"
10798 and locals "test", "next_candidate", "prev_candidate".
10799 (combine_stack_adjustments_for_block): Strengthen locals
10800 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10803 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10805 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10806 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10807 (subst_insn): Likewise for this variable.
10808 (added_links_insn): Likewise.
10809 (struct insn_link): Likewise for field "insn".
10810 (alloc_insn_link): Likewise for param "insn".
10811 (struct undobuf): Likewise for field "other_insn".
10812 (find_single_use): Likewise for param "insn" and local "next".
10813 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10814 (delete_noop_moves): Likewise for locals "insn", "next".
10815 (create_log_links): Likewise for locals "insn", "use_insn".
10816 Strengthen local "next_use" from rtx * to rtx_insn **.
10817 (insn_a_feeds_b): Likewise for params "a", "b".
10818 (combine_instructions): Likewise for param "f" and locals "insn",
10819 "next", "prev", "first", "last_combined_insn", "link", "link1",
10820 "temp". Replace use of NULL_RTX with NULL when referring to
10822 (setup_incoming_promotions): Likewise for param "first"
10823 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10824 (can_combine_p): Likewise for params "insn", "i3", "pred",
10825 "pred2", "succ", "succ2" and for local "p".
10826 (combinable_i3pat): Likewise for param "i3".
10827 (cant_combine_insn_p): Likewise for param "insn".
10828 (likely_spilled_retval_p): Likewise.
10829 (adjust_for_new_dest): Likewise.
10830 (update_cfg_for_uncondjump): Likewise, also for local "insn".
10831 (try_combine): Likewise for return type and for params "i3", "i2",
10832 "i1", "i0", "last_combined_insn", and for locals "insn",
10833 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10834 "i0_insn". Eliminate local "tem" in favor of new locals
10835 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
10836 checked cast for now to rtx_insn * on the return type of
10837 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
10839 (find_split_point): Strengthen param "insn" from rtx to
10841 (simplify_set): Likewise for local "other_insn".
10842 (recog_for_combine): Likewise for param "insn".
10843 (record_value_for_reg): Likewise.
10844 (record_dead_and_set_regs_1): Likewise for local
10845 "record_dead_insn".
10846 (record_dead_and_set_regs): Likewise for param "insn".
10847 (record_promoted_value): Likewise.
10848 (check_promoted_subreg): Likewise.
10849 (get_last_value_validate): Likewise.
10850 (reg_dead_at_p): Likewise.
10851 (move_deaths): Likewise for param "to_insn".
10852 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10853 and locals "place", "place2", "cc0_setter". Eliminate local "tem
10854 in favor of new locals "tem_note" and "tem_insn", the latter being
10856 (distribute_links): Strengthen locals "place", "insn" from rtx to
10859 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10861 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10863 (can_delete_label_p): Require a const rtx_code_label * rather than
10865 (delete_insn): Add checked cast to rtx_code_label * when we know
10866 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
10868 (delete_insn_chain): Strengthen locals "prev" and "current" from
10869 rtx to rtx_insn *. Add a checked cast when assigning from
10870 "finish" (strengthening the params will come later). Add a
10871 checked cast to rtx_note * in region where we know
10873 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10875 (compute_bb_for_insn): Likewise.
10876 (free_bb_for_insn): Likewise for local "insn".
10877 (compute_bb_for_insn): Likewise.
10878 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10879 local "insn" from rtx to rtx_insn *
10880 (flow_active_insn_p): Require a const rtx_insn * rather than a
10882 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10884 (can_fallthru): Likewise for locals "insn" and "insn2".
10885 (bb_note): Likewise for local "note".
10886 (first_insn_after_basic_block_note): Likewise for local "note" and
10888 (rtl_split_block): Likewise for locals "insn" and "next".
10889 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10891 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10892 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10894 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10895 them), "kill_from", "barrier", "new_insn".
10896 (patch_jump_insn): Likewise for params "insn", "old_label".
10897 (redirect_branch_edge): Likewise for locals "old_label", "insn".
10898 (force_nonfallthru_and_redirect): Likewise for locals "insn",
10899 "old_label", "new_label".
10900 (rtl_tidy_fallthru_edge): Likewise for local "q".
10901 (rtl_split_edge): Likewise for locals "before", "last".
10902 (commit_one_edge_insertion): Likewise for locals "before",
10903 "after", "insns", "tmp", "last", adding a checked cast where
10904 currently necessary.
10905 (commit_edge_insertions): Likewise.
10906 (rtl_dump_bb): Likewise for locals "insn", "last".
10907 (print_rtl_with_bb): Likewise for local "x".
10908 (rtl_verify_bb_insns): Likewise for local "x".
10909 (rtl_verify_bb_pointers): Likewise for local "insn".
10910 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10912 (rtl_verify_fallthru): Likewise for local "insn".
10913 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10914 (purge_dead_edges): Likewise for local "insn".
10915 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10916 (skip_insns_after_block): Likewise for return type and for locals
10917 "insn", "last_insn", "next_head", "prev".
10918 (record_effective_endpoints): Likewise for locals "next_insn",
10920 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10921 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10922 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10923 (duplicate_insn_chain): For now, add checked cast from rtx to
10924 rtx_insn * when returning insn.
10925 (cfg_layout_duplicate_bb): Likewise for local "insn".
10926 (cfg_layout_delete_block): Likewise for locals "insn", "next",
10927 "prev", "remaints".
10928 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10929 (rtl_block_empty_p): Likewise.
10930 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10931 "split_point", "last".
10932 (rtl_block_ends_with_call_p): Likewise for local "insn".
10933 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10935 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10936 "split_at_insn" from rtx to rtx_insn *.
10937 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10938 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10939 to const rtx_insn *.
10940 (rtl_account_profile_record): Likewise.
10942 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10944 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10946 (average_num_loop_insns): Likewise.
10947 (init_set_costs): Likewise for local "seq".
10948 (seq_cost): Likewise for param "seq", from const_rtx to const
10951 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10953 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10956 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10958 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10959 "f1" and "f2" from rtx * to rtx_insn **.
10960 (flow_find_head_matching_sequence): Likewise.
10962 * cfgcleanup.c (try_simplify_condjump): Strengthen local
10963 "cbranch_insn" from rtx to rtx_insn *.
10964 (thread_jump): Likewise for local "insn".
10965 (try_forward_edges): Likewise for local "last".
10966 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10967 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10969 (can_replace_by): Likewise for params "i1", "i2".
10970 (old_insns_match_p): Likewise.
10971 (merge_notes): Likewise.
10972 (walk_to_nondebug_insn): Likewise for param "i1".
10973 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10974 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
10975 "afterlast1", "afterlast2" from rtx to rtx_insn *.
10976 (flow_find_head_matching_sequence): Strengthen params "f1" and
10977 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
10978 "last1", "last2", "beforelast1", "beforelast2" from rtx to
10980 (outgoing_edges_match): Likewise for locals "last1", "last2".
10981 (try_crossjump_to_edge): Likewise for local "insn".
10982 Replace call to for_each_rtx with for_each_rtx_in_insn.
10984 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10985 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10986 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
10987 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10988 (try_optimize_cfg): Strengthen local "last" from rtx to
10990 (delete_dead_jumptables): Likewise for locals "insn", "next",
10993 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10994 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10995 "rtx else_first_tail", to reflect the basic-block.h changes above.
10997 2014-08-21 David Malcolm <dmalcolm@redhat.com>
10999 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11001 (purge_dead_tablejump_edges): Likewise.
11002 (find_bb_boundaries): Likewise for locals "insn", "end",
11003 "flow_transfer_insn".
11005 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11007 * caller-save.c (save_call_clobbered_regs): Strengthen locals
11008 "ins" and "prev" from rtx to rtx_insn *.
11010 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11012 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11014 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11015 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11017 (load_register_parameters): Likewise for local "before_arg".
11018 (check_sibcall_argument_overlap): Likewise for param "insn".
11019 (expand_call): Likewise for locals "normal_call_insns",
11020 "tail_call_insns", "insns", "before_call", "after_args",
11021 "before_arg", "last", "prev". Strengthen one of the "last" from
11022 rtx to rtx_call_insn *.
11023 (fixup_tail_calls): Strengthen local "insn" from rtx to
11025 (emit_library_call_value_1): Likewise for locals "before_call" and
11028 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11030 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11031 and "last" from rtx to rtx_insn *.
11032 (expand_builtin_nonlocal_goto): Likewise for local "insn".
11033 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11035 (expand_errno_check): Strengthen local "lab" from rtx to
11037 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11039 (expand_builtin_mathfn_2): Likewise.
11040 (expand_builtin_mathfn_ternary): Likewise.
11041 (expand_builtin_mathfn_3): Likewise.
11042 (expand_builtin_interclass_mathfn): Likewise for local "last".
11043 (expand_builtin_int_roundingfn): Likewise for local "insns".
11044 (expand_builtin_int_roundingfn_2): Likewise.
11045 (expand_builtin_strlen): Likewise for local "before_strlen".
11046 (expand_builtin_strncmp): Likewise for local "seq".
11047 (expand_builtin_signbit): Likewise for local "last".
11048 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11049 from rtx to rtx_code_label *.
11050 (expand_stack_restore): Strengthen local "prev" from rtx to
11053 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11055 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11057 (struct btr_def_s): Likewise.
11058 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11060 (add_btr_def): Likewise.
11061 (new_btr_user): Likewise.
11062 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11064 (link_btr_uses): Likewise.
11065 (move_btr_def): Likewise for locals "insp", "old_insn",
11066 "new_insn". Add checked cast to rtx_insn * for now on result of
11068 (can_move_up): Strengthen param "insn" from const_rtx to
11071 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11073 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11075 (get_uncond_jump_length): Likewise for locals "label", "jump".
11076 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11078 (add_labels_and_missing_jumps): Likewise for local "new_jump".
11079 (fix_up_fall_thru_edges): Likewise for local "old_jump".
11080 (find_jump_block): Likewise for local "insn".
11081 (fix_crossing_conditional_branches): Likewise for locals
11082 "old_jump", "new_jump".
11083 (fix_crossing_unconditional_branches): Likewise for locals
11084 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11085 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11087 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11089 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11091 (struct mem_insn): Likewise for field "insn".
11092 (reg_next_use): Strengthen from rtx * to rtx_insn **.
11093 (reg_next_inc_use): Likewise.
11094 (reg_next_def): Likewise.
11095 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11096 from rtx to rtx_insn *.
11097 (move_insn_before): Likewise for param "next_insn" and local "insns".
11098 (attempt_change): Likewise for local "mov_insn".
11099 (try_merge): Likewise for param "last_insn".
11100 (get_next_ref): Likewise for return type and local "insn".
11101 Strengthen param "next_array" from rtx * to rtx_insn **.
11102 (parse_add_or_inc): Strengthen param "insn" from rtx to
11104 (find_inc): Likewise for locals "insn" and "other_insn" (three of
11106 (merge_in_block): Likewise for locals "insn", "curr",
11108 (pass_inc_dec::execute): Update allocations of the arrays to
11109 reflect the stronger types.
11111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11113 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11114 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
11115 from rtx to rtx_code_label *.
11117 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11119 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11122 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11124 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11125 generated a warning and prevented bootstrapping the compiler.
11127 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11129 * rtl.h (delete_related_insns): Strengthen return type from rtx to
11132 * jump.c (delete_related_insns): Likewise, also for locals "next"
11135 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11137 * genautomata.c (output_internal_insn_latency_func): When writing
11138 the function "internal_insn_latency" to insn-automata.c,
11139 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11140 allowing the optional guard function of (define_bypass) clauses to
11141 expect a pair of rtx_insn *, rather than a pair of rtx.
11142 (output_insn_latency_func): When writing the function
11143 "insn_latency", add an "uncast_" prefix to params "insn" and
11144 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11145 using checked casts from the params, thus enabling the above
11146 change to the generated "internal_insn_latency" function.
11148 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
11150 PR tree-optimization/62091
11151 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11152 handle correctly arrays.
11153 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11154 inheritance binfos.
11155 (record_known_type): Walk into inner type.
11156 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11157 condition on no type changes.
11159 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11161 * genattrtab.c (write_attr_get): Within the generated get_attr_
11162 functions, rename param "insn" to "uncast_insn" and reintroduce
11163 "insn" as an local rtx_insn * using a checked cast, so that "insn"
11164 is an rtx_insn * within insn-attrtab.c
11166 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11168 * output.h (peephole): Strengthen return type from rtx to
11170 * rtl.h (delete_for_peephole): Likewise for both params.
11171 * genpeep.c (main): In generated "peephole" function, strengthen
11172 return type and local "insn" from rtx to rtx_insn *. For now,
11173 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11174 rtx_insn *, with a checked cast.
11175 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11176 locals "insn", "next", "prev" from rtx to rtx_insn *.
11178 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
11180 PR tree-optimization/62112
11181 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11182 * gimple-iterator.h (gsi_replace): Return bool.
11183 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11184 moved from ref_may_alias_global_p.
11185 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11187 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11188 (stmt_kills_ref_p_1): Rename...
11189 (stmt_kills_ref_p): ... to this.
11190 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11191 stmt_kills_ref_p): Declare.
11192 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11193 Move the self-assignment case...
11194 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11196 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11198 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11200 * emit-rtl.c (try_split): Likewise, also for locals "before" and
11201 "after". For now, don't strengthen param "trial", which requires
11202 adding checked casts when returning it.
11204 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11206 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11207 "label" from rtx to rtx_code_label *. Strengthen param 1 of
11208 "var_location" hook from rtx to rtx_insn *.
11209 (debug_nothing_rtx): Delete in favor of...
11210 (debug_nothing_rtx_code_label): New prototype.
11211 (debug_nothing_rtx_rtx): Delete unused prototype.
11212 (debug_nothing_rtx_insn): New prototype.
11214 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11215 invoking debug_hooks->var_location (in two places, one in a NOTE
11216 case of a switch statement, the other guarded by a CALL_P
11217 conditional. Add checked cast to rtx_code_label * when invoking
11218 debug_hooks->label (within CODE_LABEL case of switch statement).
11220 * dbxout.c (dbx_debug_hooks): Update "label" hook from
11221 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11222 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11223 (xcoff_debug_hooks): Likewise.
11224 * debug.c (do_nothing_debug_hooks): Likewise.
11225 (debug_nothing_rtx): Delete in favor of...
11226 (debug_nothing_rtx_insn): New function.
11227 (debug_nothing_rtx_rtx): Delete unused function.
11228 (debug_nothing_rtx_code_label): New function.
11229 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11230 debug_nothing_rtx to debug_nothing_rtx_code_label.
11231 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11233 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11234 debug_nothing_rtx to debug_nothing_rtx_insn.
11235 (sdbout_label): Strengthen param "insn" from rtx to
11237 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11238 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
11239 "var_location" hook from debug_nothing_rtx to
11240 debug_nothing_rtx_insn.
11242 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11244 * recog.h (insn_output_fn): Update this function typedef to match
11245 the changes below to the generated output functions, strengthening
11246 the 2nd param from rtx to rtx_insn *.
11248 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11249 insn when invoking an output function, to match the new signature
11250 of insn_output_fn with a stronger second param.
11252 * genconditions.c (write_header): In the generated code for
11253 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11254 to match the other changes in this patch.
11256 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11257 the generated "gen_" functions from rtx to rtx_insn * within their
11260 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11261 the subfunctions within the generated "recog_", "split", "peephole2"
11262 function trees from rtx to rtx_insn *. For now, the top-level
11263 generated functions ("recog", "split", "peephole2") continue to
11264 take a plain rtx for "insn", to avoid introducing dependencies on
11265 other patches. Rename this 2nd param from "insn" to
11266 "uncast_insn", and reintroduce "insn" as a local variable of type
11267 rtx_insn *, initialized at the top of the generated function with
11268 a checked cast on "uncast_insn".
11269 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11270 the generated "gen_" functions from rtx to rtx_insn * within their
11273 * genoutput.c (process_template): Strengthen the 2nd param within
11274 the generated "output_" functions "insn" from rtx to rtx_insn *.
11276 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11278 * tree-profile.c (tree_profiling): Skip external functions
11279 when doing coverage instrumentation.
11280 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11282 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11284 * config/rs6000/altivec.h (vec_cpsgn): New #define.
11285 (vec_mergee): Likewise.
11286 (vec_mergeo): Likewise.
11287 (vec_cntlz): Likewise.
11288 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11289 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11290 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11291 VMRGEW, and VMRGOW.
11292 * doc/extend.texi: Document various forms of vec_cpsgn,
11293 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11294 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11295 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11296 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11297 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11299 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11301 * config/rs6000/rs6000.c (context.h): New include.
11302 (tree-pass.h): Likewise.
11303 (make_pass_analyze_swaps): New decl.
11304 (rs6000_option_override): Register pass_analyze_swaps.
11305 (swap_web_entry): New subsclass of web_entry_base (df.h).
11306 (special_handling_values): New enum.
11307 (union_defs): New function.
11308 (union_uses): Likewise.
11309 (insn_is_load_p): Likewise.
11310 (insn_is_store_p): Likewise.
11311 (insn_is_swap_p): Likewise.
11312 (rtx_is_swappable_p): Likewise.
11313 (insn_is_swappable_p): Likewise.
11314 (chain_purpose): New enum.
11315 (chain_contains_only_swaps): New function.
11316 (mark_swaps_for_removal): Likewise.
11317 (swap_const_vector_halves): Likewise.
11318 (adjust_subreg_index): Likewise.
11319 (permute_load): Likewise.
11320 (permute_store): Likewise.
11321 (handle_special_swappables): Likewise.
11322 (replace_swap_with_copy): Likewise.
11323 (dump_swap_insn_table): Likewise.
11324 (rs6000_analyze_swaps): Likewise.
11325 (pass_data_analyze_swaps): New pass_data.
11326 (pass_analyze_swaps): New rtl_opt_pass.
11327 (make_pass_analyze_swaps): New function.
11328 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11330 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11332 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11333 type from rtx to rtx_insn *.
11334 (create_copy_of_insn_rtx): Likewise.
11335 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11336 (create_copy_of_insn_rtx): Likewise, also for local "res".
11338 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11340 * rtl.h (find_first_parameter_load): Strengthen return type from
11342 * rtlanal.c (find_first_parameter_load): Strengthen return type
11343 from rtx to rtx_insn *. Add checked cast for now, to postpone
11344 strengthening the params.
11346 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11349 * diagnostic.c: Set default caret.
11350 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11352 * diagnostic.h (struct diagnostic_context):
11354 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11356 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11357 (sel_bb_head): Strengthen return type insn_t (currently just an
11358 rtx) to rtx_insn *.
11359 (sel_bb_end): Likewise.
11361 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11362 (sel_bb_head): Strengthen return type and local "head" from
11363 insn_t (currently just an rtx) to rtx_insn *.
11364 (sel_bb_end): Likewise for return type.
11365 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11368 2014-08-21 David Malcolm <dmalcolm@redhat.com>
11370 * basic-block.h (get_last_bb_insn): Strengthen return type from
11372 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11375 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
11378 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11380 (diagnostic_report_diagnostic): ... from here.
11381 * toplev.c (general_init): Move code to c-family.
11383 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11385 * df.h (web_entry_base): Replace existing struct web_entry with a
11386 new class web_entry_base with only the predecessor member.
11387 (unionfind_root): Remove declaration and move to class member.
11388 (unionfind_union): Remove declaration and move to friend
11390 (union_defs): Remove declaration.
11391 * web.c (web_entry_base::unionfind_root): Modify to be member
11392 function and adjust accessors.
11393 (unionfind_union): Modify to be friend function and adjust
11395 (web_entry): New subclass of web_entry_base containing the reg
11397 (union_match_dups): Modify for struct -> class changes.
11398 (union_defs): Likewise.
11399 (entry_register): Likewise.
11400 (pass_web::execute): Likewise.
11402 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
11404 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11405 builtin define __VEC_ELEMENT_REG_ORDER__.
11407 2014-08-20 Martin Jambor <mjambor@suse.cz>
11408 Wei Mi <wmi@google.com>
11411 PR middle-end/61776
11412 * tree-ssa-operands.c (update_stmt_operands): Remove
11413 MODIFIED_NORETURN_CALLS.
11414 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11415 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11416 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11417 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11418 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11419 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11420 (gimple_call_set_ctrl_altering): New func.
11421 (gimple_call_ctrl_altering_p): Ditto.
11422 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11423 (make_blocks): Use gimple_call_initialize_ctrl_altering.
11424 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11425 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11426 remove MODIFIED_NORETURN_CALLS.
11428 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11430 * coverage.c (coverage_compute_profile_id): Return non-0;
11431 also handle symbols with unique name.
11432 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11434 2014-08-20 Steve Ellcey <sellcey@mips.com>
11436 PR middle-end/49191
11437 * doc/sourcebuild.texi (non_strict_align): New.
11439 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
11441 * cgraphunit.c (ipa_passes, compile): Reshedule
11442 symtab_remove_unreachable_nodes passes; update comments.
11443 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11444 TODO_remove_functions before the pass; the functions ought to be
11446 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11447 TODO_remove_functions.
11448 * passes.c (pass_data_early_local_passes): Do not schedule function
11450 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11452 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11455 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11456 before setting the option.
11457 * diagnostic.c (diagnostic_classify_diagnostic): Record
11458 command-line status.
11460 2014-08-20 Richard Biener <rguenther@suse.de>
11463 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11464 to build uint{16,32,64}_type_node.
11466 2014-08-20 Terry Guo <terry.guo@arm.com>
11468 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11469 with immediate_operand.
11471 2014-08-20 David Malcolm <dmalcolm@redhat.com>
11473 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11474 "insn" from an as_a to a safe_as_a, for the case when "insn" is
11477 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11479 PR preprocessor/51303
11480 * incpath.c (remove_duplicates): Use cpp_warning.
11482 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11486 * doc/options.texi (CPP): Document it.
11487 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11488 * optc-gen.awk: Handle CPP.
11489 * opth-gen.awk: Likewise.
11491 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11493 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11495 (duplicate_insn_chain): Likewise.
11496 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11497 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
11498 checked cast for now (until we can strengthen the params in the
11500 (duplicate_insn_chain): Likewise.
11502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11504 * rtl.h (next_cc0_user): Strengthen return type from rtx to
11506 (prev_cc0_setter): Likewise.
11508 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11509 rtx_insn *, adding checked casts for now as necessary.
11510 (prev_cc0_setter): Likewise.
11512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11514 * expr.h (emit_move_insn): Strengthen return type from rtx to
11516 (emit_move_insn_1): Likewise.
11517 (emit_move_complex_push): Likewise.
11518 (emit_move_complex_parts): Likewise.
11520 * expr.c (emit_move_via_integer): Strengthen return type from rtx
11521 to rtx_insn *. Replace use of NULL_RTX with NULL when working
11523 (emit_move_complex_push): Strengthen return type from rtx to
11525 (emit_move_complex): Likewise, also for local "ret".
11526 (emit_move_ccmode): Likewise.
11527 (emit_move_multi_word): Likewise for return type and locals
11528 "last_insn", "seq".
11529 (emit_move_insn_1): Likewise for return type and locals "result",
11531 (emit_move_insn): Likewise for return type and local "last_insn".
11532 (compress_float_constant): Likewise.
11534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11536 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11537 from rtx to rtx_insn *.
11539 * rtl.h (emit_insn_before): Likewise.
11540 (emit_insn_before_noloc): Likewise.
11541 (emit_insn_before_setloc): Likewise.
11542 (emit_jump_insn_before): Likewise.
11543 (emit_jump_insn_before_noloc): Likewise.
11544 (emit_jump_insn_before_setloc): Likewise.
11545 (emit_call_insn_before): Likewise.
11546 (emit_call_insn_before_noloc): Likewise.
11547 (emit_call_insn_before_setloc): Likewise.
11548 (emit_debug_insn_before): Likewise.
11549 (emit_debug_insn_before_noloc): Likewise.
11550 (emit_debug_insn_before_setloc): Likewise.
11551 (emit_label_before): Likewise.
11552 (emit_insn_after): Likewise.
11553 (emit_insn_after_noloc): Likewise.
11554 (emit_insn_after_setloc): Likewise.
11555 (emit_jump_insn_after): Likewise.
11556 (emit_jump_insn_after_noloc): Likewise.
11557 (emit_jump_insn_after_setloc): Likewise.
11558 (emit_call_insn_after): Likewise.
11559 (emit_call_insn_after_noloc): Likewise.
11560 (emit_call_insn_after_setloc): Likewise.
11561 (emit_debug_insn_after): Likewise.
11562 (emit_debug_insn_after_noloc): Likewise.
11563 (emit_debug_insn_after_setloc): Likewise.
11564 (emit_label_after): Likewise.
11565 (emit_insn): Likewise.
11566 (emit_debug_insn): Likewise.
11567 (emit_jump_insn): Likewise.
11568 (emit_call_insn): Likewise.
11569 (emit_label): Likewise.
11570 (gen_clobber): Likewise.
11571 (emit_clobber): Likewise.
11572 (gen_use): Likewise.
11573 (emit_use): Likewise.
11576 (emit_barrier_before): Strengthen return type from rtx to
11578 (emit_barrier_after): Likewise.
11579 (emit_barrier): Likewise.
11581 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
11582 from rtx to rtx_insn *. Add checked casts for now when converting
11583 "last" from rtx to rtx_insn *.
11584 (emit_insn_before_noloc): Likewise for return type.
11585 (emit_jump_insn_before_noloc): Likewise.
11586 (emit_call_insn_before_noloc): Likewise.
11587 (emit_debug_insn_before_noloc): Likewise.
11588 (emit_barrier_before): Strengthen return type and local "insn"
11589 from rtx to rtx_barrier *.
11590 (emit_label_before): Strengthen return type from rtx to
11591 rtx_insn *. Add checked cast for now when returning param
11592 (emit_pattern_after_noloc): Strengthen return type from rtx to
11593 rtx_insn *. Add checked casts for now when converting "last" from
11595 (emit_insn_after_noloc): Strengthen return type from rtx to
11597 (emit_jump_insn_after_noloc): Likewise.
11598 (emit_call_insn_after_noloc): Likewise.
11599 (emit_debug_insn_after_noloc): Likewise.
11600 (emit_barrier_after): Strengthen return type from rtx to
11602 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11603 Add checked cast for now when converting "label" from rtx to
11605 (emit_pattern_after_setloc): Strengthen return type from rtx to
11606 rtx_insn *. Add checked casts for now when converting "last" from
11608 (emit_pattern_after): Strengthen return type from rtx to
11610 (emit_insn_after_setloc): Likewise.
11611 (emit_insn_after): Likewise.
11612 (emit_jump_insn_after_setloc): Likewise.
11613 (emit_jump_insn_after): Likewise.
11614 (emit_call_insn_after_setloc): Likewise.
11615 (emit_call_insn_after): Likewise.
11616 (emit_debug_insn_after_setloc): Likewise.
11617 (emit_debug_insn_after): Likewise.
11618 (emit_pattern_before_setloc): Likewise. Add checked casts for now
11619 when converting "last" from rtx to rtx_insn *.
11620 (emit_pattern_before): Strengthen return type from rtx to
11622 (emit_insn_before_setloc): Likewise.
11623 (emit_insn_before): Likewise.
11624 (emit_jump_insn_before_setloc): Likewise.
11625 (emit_jump_insn_before): Likewise.
11626 (emit_call_insn_before_setloc): Likewise.
11627 (emit_call_insn_before): Likewise.
11628 (emit_debug_insn_before_setloc): Likewise.
11629 (emit_debug_insn_before): Likewise.
11630 (emit_insn): Strengthen return type and locals "last", "insn",
11631 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
11632 within cases where we know we have an insn.
11633 (emit_debug_insn): Likewise.
11634 (emit_jump_insn): Likewise.
11635 (emit_call_insn): Strengthen return type and local "insn" from rtx
11637 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
11638 a checked cast to rtx_insn * for now on "label".
11639 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11640 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11641 (emit_use): Likewise.
11642 (gen_use): Likewise, also for local "seq".
11643 (emit): Likewise for return type and local "insn".
11644 (rtx_insn): Likewise for return type and local "new_rtx".
11646 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11647 from rtx to rtx_barrier *.
11649 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11650 changed return type from rtx to rtx_insn *, we must update
11651 "emit_fn" type, and this in turn means updating...
11652 (frame_insn): ...this. Strengthen return type from rtx to
11653 rtx_insn *. Introduce a new local "insn" of the appropriate type.
11655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11657 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11658 rtx to rtx_jump_table_data *. Also for local.
11659 * rtl.h (emit_jump_table_data): Likewise.
11661 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11663 * basic-block.h (create_basic_block_structure): Strengthen third
11664 param "bb_note" from rtx to rtx_note *.
11665 * rtl.h (emit_note_before): Strengthen return type from rtx to
11667 (emit_note_after): Likewise.
11668 (emit_note): Likewise.
11669 (emit_note_copy): Likewise. Also, strengthen param similarly.
11670 * function.h (struct rtl_data): Strengthen field
11671 "x_stack_check_probe_note" from rtx to rtx_note *.
11673 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11674 from rtx to rtx_note *.
11675 * cfgrtl.c (create_basic_block_structure): Strengthen third param
11676 "bb_note" from rtx to rtx_note *.
11677 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
11678 when calling emit_note_copy.
11679 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11681 (emit_note_after): Likewise.
11682 (emit_note_before): Likewise.
11683 (emit_note_copy): Likewise. Also, strengthen param similarly.
11684 (emit_note): Likewise.
11685 * except.c (emit_note_eh_region_end): Likewise for return type.
11686 Strengthen local "next" from rtx to rtx_insn *.
11687 (convert_to_eh_region_ranges): Strengthen local "note"
11688 from rtx to rtx_note *.
11689 * final.c (change_scope): Likewise.
11690 (reemit_insn_block_notes): Likewise, for both locals named "note".
11691 Also, strengthen local "insn" from rtx to rtx_insn *.
11692 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11694 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11695 strengthen local "seq" from rtx to rtx_insn *.
11696 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11698 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11700 (get_bb_note_from_pool): Strengthen return type from rtx to
11702 (sel_create_basic_block): Strengthen local "new_bb_note" from
11703 insn_t to rtx_note *.
11704 * var-tracking.c (emit_note_insn_var_location): Strengthen local
11705 "note" from rtx to rtx_note *.
11706 (emit_notes_in_bb): Likewise.
11708 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11710 * function.h (struct rtl_data): Strengthen field
11711 "x_parm_birth_insn" from rtx to rtx_insn *.
11712 * function.c (struct assign_parm_data_all): Strengthen fields
11713 "first_conversion_insn" and "last_conversion_insn" from rtx to
11716 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11718 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11719 to rtx_insn *; also for local "var_end_seq".
11720 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11721 (maybe_cleanup_end_of_block): Likewise for param "last" and local
11723 (expand_gimple_cond): Likewise for locals "last2" and "last".
11724 (mark_transaction_restart_calls): Likewise for local "insn".
11725 (expand_gimple_stmt): Likewise for return type and locals "last"
11727 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11728 (avoid_complex_debug_insns): Likewise for param "insn".
11729 (expand_debug_locations): Likewise for locals "insn", "last",
11730 "prev_insn" and "insn2".
11731 (expand_gimple_basic_block): Likewise for local "last".
11732 (construct_exit_block): Likewise for locals "head", "end",
11734 (pass_expand::execute): Likewise for locals "var_seq",
11735 "var_ret_seq", "next".
11737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11739 * asan.h (asan_emit_stack_protection): Strengthen return type from
11741 * asan.c (asan_emit_stack_protection): Likewise. Add local
11742 "insns" to hold the return value.
11744 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11746 * basic-block.h (bb_note): Strengthen return type from rtx to
11748 * sched-int.h (bb_note): Likewise.
11749 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
11751 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11753 * rtl.h (make_insn_raw): Strengthen return type from rtx to
11756 * emit-rtl.c (make_insn_raw): Strengthen return type and local
11757 "insn" from rtx to rtx_insn *.
11758 (make_debug_insn_raw): Strengthen return type from rtx to
11759 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11760 (make_jump_insn_raw): Strengthen return type from rtx to
11761 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11762 (make_call_insn_raw): Strengthen return type from rtx to
11763 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11764 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11765 callback from rtx to rtx_insn *; likewise for local "insn" and
11766 "next", adding a checked cast to rtx_insn in the relevant cases of
11767 the switch statement.
11768 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11769 callback from rtx to rtx_insn *.
11770 (emit_pattern_after_setloc): Likewise.
11771 (emit_pattern_after): Likewise.
11772 (emit_pattern_before_setloc): Likewise.
11773 (emit_pattern_before): Likewise.
11775 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11777 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11779 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11780 accepting an rtx_insn *.
11781 (last_call_insn): Strengthen return type from rtx to
11784 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11786 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11787 "insns" from rtx to rtx_insn *.
11788 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11789 locals "insn" and "prev".
11791 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11793 * rtl.h (tablejump_p): Strengthen third param from rtx * to
11794 rtx_jump_table_data **.
11796 * cfgbuild.c (make_edges): Introduce local "table", using it in
11797 place of "tmp" for jump table data.
11798 (find_bb_boundaries): Strengthen local "table" from rtx to
11799 rtx_jump_table_data *.
11800 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11801 (outgoing_edges_match): Likewise for locals "table1" and "table2".
11802 (try_crossjump_to_edge): Likewise.
11803 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11805 (patch_jump_insn): Introduce local "table", using it in place of
11806 "tmp" for jump table data.
11807 (force_nonfallthru_and_redirect): Introduce local "table", so that
11808 call to tablejump_p can receive an rtx_jump_table_data **. Update
11809 logic around the call to overwrite "note" appropriately if
11810 tablejump_p returns non-zero.
11811 (get_last_bb_insn): Introduce local "table", using it in place of
11812 "tmp" for jump table data.
11813 * dwarf2cfi.c (create_trace_edges): Likewise.
11815 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11816 from rtx to rtx_jump_table_data *.
11817 (create_fix_barrier): Strengthen local "tmp" from rtx to
11818 rtx_jump_table_data *.
11819 (arm_reorg): Likewise for local "table".
11821 * config/s390/s390.c (s390_chunkify_start): Likewise.
11823 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11825 * jump.c (delete_related_insns): Strengthen local "lab_next" from
11826 rtx to rtx_jump_table_data *.
11828 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11829 rtx_jump_table_data **. Add a checked cast when writing through
11830 the pointer: we know there that local "table" is non-NULL and that
11831 JUMP_TABLE_DATA_P (table) holds.
11832 (label_is_jump_target_p): Introduce local "table", using it in
11833 place of "tmp" for jump table data.
11835 2014-08-19 Marek Polacek <polacek@redhat.com>
11838 * doc/invoke.texi: Document -Wbool-compare.
11840 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11842 * rtl.h (entry_of_function): Strengthen return type from rtx to
11844 * cfgrtl.c (entry_of_function): Likewise.
11846 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11848 * emit-rtl.h (get_insns): Strengthen return type from rtx to
11849 rtx_insn *, adding a checked cast for now.
11850 (get_last_insn): Likewise.
11852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11854 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11857 * emit-rtl.c (gen_label_rtx): Likewise.
11859 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11861 * rtl.h (previous_insn): Strengthen return type from rtx to
11863 (next_insn): Likewise.
11864 (prev_nonnote_insn): Likewise.
11865 (prev_nonnote_insn_bb): Likewise.
11866 (next_nonnote_insn): Likewise.
11867 (next_nonnote_insn_bb): Likewise.
11868 (prev_nondebug_insn): Likewise.
11869 (next_nondebug_insn): Likewise.
11870 (prev_nonnote_nondebug_insn): Likewise.
11871 (next_nonnote_nondebug_insn): Likewise.
11872 (prev_real_insn): Likewise.
11873 (next_real_insn): Likewise.
11874 (prev_active_insn): Likewise.
11875 (next_active_insn): Likewise.
11877 * emit-rtl.c (next_insn): Strengthen return type from rtx to
11878 rtx_insn *, adding a checked cast.
11879 (previous_insn): Likewise.
11880 (next_nonnote_insn): Likewise.
11881 (next_nonnote_insn_bb): Likewise.
11882 (prev_nonnote_insn): Likewise.
11883 (prev_nonnote_insn_bb): Likewise.
11884 (next_nondebug_insn): Likewise.
11885 (prev_nondebug_insn): Likewise.
11886 (next_nonnote_nondebug_insn): Likewise.
11887 (prev_nonnote_nondebug_insn): Likewise.
11888 (next_real_insn): Likewise.
11889 (prev_real_insn): Likewise.
11890 (next_active_insn): Likewise.
11891 (prev_active_insn): Likewise.
11893 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11894 param "stepfunc" so that it returns an rtx_insn * rather than an
11895 rtx, to track the change to prev_nonnote_insn_bb, which is the
11896 only function this is called with.
11897 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11899 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
11901 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11904 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11906 * coretypes.h (class rtx_debug_insn): Add forward declaration.
11907 (class rtx_nonjump_insn): Likewise.
11908 (class rtx_jump_insn): Likewise.
11909 (class rtx_call_insn): Likewise.
11910 (class rtx_jump_table_data): Likewise.
11911 (class rtx_barrier): Likewise.
11912 (class rtx_code_label): Likewise.
11913 (class rtx_note): Likewise.
11915 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11916 adding the invariant DEBUG_INSN_P (X).
11917 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11918 the invariant NONJUMP_INSN_P (X).
11919 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11920 the invariant JUMP_P (X).
11921 (class rtx_call_insn): New, a subclass of rtx_insn, adding
11922 the invariant CALL_P (X).
11923 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11924 invariant JUMP_TABLE_DATA_P (X).
11925 (class rtx_barrier): New, a subclass of rtx_insn, adding the
11926 invariant BARRIER_P (X).
11927 (class rtx_code_label): New, a subclass of rtx_insn, adding
11928 the invariant LABEL_P (X).
11929 (class rtx_note): New, a subclass of rtx_insn, adding
11930 the invariant NOTE_P(X).
11931 (is_a_helper <rtx_debug_insn *>::test): New.
11932 (is_a_helper <rtx_nonjump_insn *>::test): New.
11933 (is_a_helper <rtx_jump_insn *>::test): New.
11934 (is_a_helper <rtx_call_insn *>::test): New.
11935 (is_a_helper <rtx_jump_table_data *>::test): New functions,
11936 overloaded for both rtx and rtx_insn *.
11937 (is_a_helper <rtx_barrier *>::test): New.
11938 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11939 for both rtx and rtx_insn *.
11940 (is_a_helper <rtx_note *>::test): New.
11942 2014-08-19 Marek Polacek <polacek@redhat.com>
11944 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11945 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11946 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11947 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11949 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11951 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11952 rtx_insn *. To help with transition, for now, convert from an
11953 access macro into a pair of functions: BND_TO, returning an
11955 (SET_BND_TO): New function, for use where BND_TO is used as an
11958 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11960 (BND_TO): New function, adding a checked cast.
11961 (SET_BND_TO): New function.
11963 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11965 (compute_av_set_on_boundaries): Likewise.
11967 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11969 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11970 destination if it is used in source.
11971 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11972 (*popcount<mode>2_falsedep_1): Likewise.
11974 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
11977 * configure.ac: Set install_gold_as_default to no first.
11978 * configure: Regenerated.
11980 2014-08-19 David Malcolm <dmalcolm@redhat.com>
11982 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11983 "note_list" field will eventually be an rtx_insn *. To help with
11984 transition, for now, convert from an access macro into a pair of
11985 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11986 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11989 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11990 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11992 * sel-sched-ir.c (init_bb): Likewise.
11993 (sel_restore_notes): Likewise.
11994 (move_bb_info): Likewise.
11995 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11996 (SET_BB_NOTE_LIST): New function.
11998 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12000 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12001 field will eventually be an rtx_insn *. To help with transition,
12002 for now, convert from an access macro into a pair of functions:
12003 VINSN_INSN_RTX, returning an rtx_insn *, and...
12004 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12005 is used as an lvalue.
12007 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12008 SET_VINSN_INSN_RTX where it's used as an lvalue.
12009 (VINSN_INSN_RTX): New function.
12010 (SET_VINSN_INSN_RTX): New function.
12012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12014 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12015 eventually be rtx_insn *, but to help with transition, for now,
12016 convert from an access macro into a pair of functions: DEP_PRO
12017 returning an rtx_insn * and...
12018 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12019 lvalue, returning an rtx&.
12020 (DEP_CON): Analogous changes to DEP_PRO above.
12021 (SET_DEP_CON): Likewise.
12023 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12024 an lvalue to SET_DEP_CON.
12025 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12026 (sd_copy_back_deps): Likewise for DEP_CON.
12027 (DEP_PRO): New function, adding a checked cast for now.
12028 (DEP_CON): Likewise.
12029 (SET_DEP_PRO): New function.
12030 (SET_DEP_CON): Likewise.
12032 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12034 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12035 (extra_options): Add i386/cygwin.opt.
12036 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12037 (CPP_SPEC): Accept -pthread.
12038 (LINK_SPEC): Ditto.
12039 (GOMP_SELF_SPECS): Update comment.
12040 * config/i386/cygwin.opt: New file for -pthread flag.
12042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12044 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12045 * df.h (DF_REF_INSN): Convert from a macro to a function, so
12046 that we can return an rtx_insn *.
12048 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
12050 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12051 when building executables, not DLLs. Add --large-address-aware
12052 under the same conditions.
12053 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12054 when building executables, not DLLs. Add --large-address-aware
12055 under the same conditions when using -m32.
12057 * config/i386/cygwin-stdint.h: Throughout, make type
12058 definitions dependent on target architecture, not host.
12060 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12062 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
12063 the return type from rtx to rtx_insn *, which will enable various
12064 conversions in followup patches. For now this is is done by a
12066 (NEXT_INSN): Likewise.
12067 (SET_PREV_INSN): Convert to an inline function. This is intended
12068 for use as an lvalue, and so returns an rtx& to allow in-place
12070 (SET_NEXT_INSN): Likewise.
12072 2014-07-08 Mark Wielaard <mjw@redhat.com>
12075 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12077 2014-08-19 Marek Polacek <polacek@redhat.com>
12080 * cgraphunit.c (handle_alias_pairs): Fix condition.
12082 2014-08-19 Richard Biener <rguenther@suse.de>
12084 * gimple-fold.c (fold_gimple_assign): Properly build a
12085 null-pointer constant when devirtualizing addresses.
12087 2014-07-07 Mark Wielaard <mjw@redhat.com>
12089 * dwarf2out.c (decl_quals): New function.
12090 (modified_type_die): Take one cv_quals argument instead of two,
12091 one for const and one for volatile.
12092 (add_type_attribute): Likewise.
12093 (generic_parameter_die): Call add_type_attribute with one modifier
12095 (base_type_for_mode): Likewise.
12096 (add_bounds_info): Likewise.
12097 (add_subscript_info): Likewise.
12098 (gen_array_type_die): Likewise.
12099 (gen_descr_array_type_die): Likewise.
12100 (gen_entry_point_die): Likewise.
12101 (gen_enumeration_type_die): Likewise.
12102 (gen_formal_parameter_die): Likewise.
12103 (gen_subprogram_die): Likewise.
12104 (gen_variable_die): Likewise.
12105 (gen_const_die): Likewise.
12106 (gen_field_die): Likewise.
12107 (gen_pointer_type_die): Likewise.
12108 (gen_reference_type_die): Likewise.
12109 (gen_ptr_to_mbr_type_die): Likewise.
12110 (gen_inheritance_die): Likewise.
12111 (gen_subroutine_type_die): Likewise.
12112 (gen_typedef_die): Likewise.
12113 (force_type_die): Likewise.
12115 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12117 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12119 * configure: Regenerate.
12121 2014-08-19 Richard Biener <rguenther@suse.de>
12123 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12124 DECL_EXTERNALs in BLOCKs as non-references.
12125 * tree-streamer-out.c (streamer_write_chain): Likewise.
12127 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
12128 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12129 Anna Tikhonova <anna.tikhonova@intel.com>
12130 Ilya Tocar <ilya.tocar@intel.com>
12131 Andrey Turetskiy <andrey.turetskiy@intel.com>
12132 Ilya Verbin <ilya.verbin@intel.com>
12133 Kirill Yukhin <kirill.yukhin@intel.com>
12134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12136 * config/i386/sse.md
12137 (define_mode_iterator VI48_AVX512F): Delete.
12138 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12139 (define_mode_iterator VI2_AVX512VL): Ditto.
12140 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12143 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12145 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12146 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12147 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12148 with VI48_AVX512F_AVX512VL): New.
12149 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12150 with VI2_AVX512VL): Ditto.
12152 2014-08-19 Marek Polacek <polacek@redhat.com>
12154 * doc/invoke.texi: Document -Wc99-c11-compat.
12156 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12158 * rtl.h (PREV_INSN): Split macro in two: the existing one,
12159 for rvalues, and...
12160 (SET_PREV_INSN): New macro, for use as an lvalue.
12161 (NEXT_INSN, SET_NEXT_INSN): Likewise.
12163 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12164 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12165 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12166 (fixup_abnormal_edges): Likewise.
12167 (unlink_insn_chain): Likewise.
12168 (fixup_reorder_chain): Likewise.
12169 (cfg_layout_delete_block): Likewise.
12170 (cfg_layout_merge_blocks): Likewise.
12171 * combine.c (update_cfg_for_uncondjump): Likewise.
12172 * emit-rtl.c (link_insn_into_chain): Likewise.
12173 (remove_insn): Likewise.
12174 (delete_insns_since): Likewise.
12175 (reorder_insns_nobb): Likewise.
12176 (emit_insn_after_1): Likewise.
12177 * final.c (rest_of_clean_state): Likewise.
12178 (final_scan_insn): Likewise.
12179 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12180 * haifa-sched.c (concat_note_lists): Likewise.
12181 (remove_notes): Likewise.
12182 (restore_other_notes): Likewise.
12183 (move_insn): Likewise.
12184 (unlink_bb_notes): Likewise.
12185 (restore_bb_notes): Likewise.
12186 * jump.c (delete_for_peephole): Likewise.
12187 * optabs.c (emit_libcall_block_1): Likewise.
12188 * reorg.c (emit_delay_sequence): Likewise.
12189 (fill_simple_delay_slots): Likewise.
12190 * sel-sched-ir.c (sel_move_insn): Likewise.
12191 (sel_remove_insn): Likewise.
12192 (get_bb_note_from_pool): Likewise.
12193 * sel-sched.c (move_nop_to_previous_block): Likewise.
12195 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12196 * config/c6x/c6x.c (gen_one_bundle): Likewise.
12197 (c6x_gen_bundles): Likewise.
12198 (hwloop_optimize): Likewise.
12199 * config/frv/frv.c (frv_function_prologue): Likewise.
12200 (frv_register_nop): Likewise.
12201 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12202 (ia64_reorg): Likewise.
12203 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12204 (mep_make_bundle): Likewise.
12205 (mep_bundle_insns): Likewise.
12206 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12207 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12208 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
12212 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
12213 return type from rtx to rtx_insn *.
12214 (BB_END): Likewise.
12215 (BB_HEADER): Likewise.
12216 (BB_FOOTER): Likewise.
12217 (SET_BB_HEAD): Convert to a function.
12218 (SET_BB_END): Likewise.
12219 (SET_BB_HEADER): Likewise.
12220 (SET_BB_FOOTER): Likewise.
12222 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12223 Strengthen the return type from rtx to rtx_insn *. For now, this
12224 is done by adding a checked cast, but this will eventually
12225 become a field lookup.
12226 (BB_END): Likewise.
12227 (BB_HEADER): Likewise.
12228 (BB_FOOTER): Likewise.
12229 (SET_BB_HEAD): New function, from macro of same name. This is
12230 intended for use as an lvalue, and so returns an rtx& to allow
12231 in-place modification.
12232 (SET_BB_END): Likewise.
12233 (SET_BB_HEADER): Likewise.
12234 (SET_BB_FOOTER): Likewise.
12236 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12238 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12239 for rvalues, and...
12240 (SET_BB_HEAD): New macro, for use as a lvalue.
12241 (BB_END, SET_BB_END): Likewise.
12242 (BB_HEADER, SET_BB_HEADER): Likewise.
12243 (BB_FOOTER, SET_BB_FOOTER): Likewise.
12245 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12246 of BB_* macros into SET_BB_* macros.
12247 (fix_crossing_unconditional_branches): Likewise.
12248 * caller-save.c (save_call_clobbered_regs): Likewise.
12249 (insert_one_insn): Likewise.
12250 * cfgbuild.c (find_bb_boundaries): Likewise.
12251 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12252 (outgoing_edges_match): Likewise.
12253 (try_optimize_cfg): Likewise.
12254 * cfgexpand.c (expand_gimple_cond): Likewise.
12255 (expand_gimple_tailcall): Likewise.
12256 (expand_gimple_basic_block): Likewise.
12257 (construct_exit_block): Likewise.
12258 * cfgrtl.c (delete_insn): Likewise.
12259 (create_basic_block_structure): Likewise.
12260 (rtl_delete_block): Likewise.
12261 (rtl_split_block): Likewise.
12262 (emit_nop_for_unique_locus_between): Likewise.
12263 (rtl_merge_blocks): Likewise.
12264 (block_label): Likewise.
12265 (try_redirect_by_replacing_jump): Likewise.
12266 (emit_barrier_after_bb): Likewise.
12267 (fixup_abnormal_edges): Likewise.
12268 (record_effective_endpoints): Likewise.
12269 (relink_block_chain): Likewise.
12270 (fixup_reorder_chain): Likewise.
12271 (fixup_fallthru_exit_predecessor): Likewise.
12272 (cfg_layout_duplicate_bb): Likewise.
12273 (cfg_layout_split_block): Likewise.
12274 (cfg_layout_delete_block): Likewise.
12275 (cfg_layout_merge_blocks): Likewise.
12276 * combine.c (update_cfg_for_uncondjump): Likewise.
12277 * emit-rtl.c (add_insn_after): Likewise.
12278 (remove_insn): Likewise.
12279 (reorder_insns): Likewise.
12280 (emit_insn_after_1): Likewise.
12281 * haifa-sched.c (get_ebb_head_tail): Likewise.
12282 (restore_other_notes): Likewise.
12283 (move_insn): Likewise.
12284 (sched_extend_bb): Likewise.
12285 (fix_jump_move): Likewise.
12286 * ifcvt.c (noce_process_if_block): Likewise.
12287 (dead_or_predicable): Likewise.
12288 * ira.c (update_equiv_regs): Likewise.
12289 * reg-stack.c (change_stack): Likewise.
12290 * sel-sched-ir.c (sel_move_insn): Likewise.
12291 * sel-sched.c (move_nop_to_previous_block): Likewise.
12293 * config/c6x/c6x.c (hwloop_optimize): Likewise.
12294 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12296 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12298 * rtl.h (for_each_rtx_in_insn): New function.
12299 * rtlanal.c (for_each_rtx_in_insn): Likewise.
12301 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12303 * coretypes.h (class rtx_insn): Add forward declaration.
12305 * rtl.h: Include is-a.h.
12306 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12307 workaround to ensure gengtype knows inheritance is occurring,
12308 whilst continuing to use the pre-existing special-casing for
12310 (class rtx_insn): New subclass of rtx_def, adding the
12311 invariant that we're dealing with something we can sanely use
12312 INSN_UID, NEXT_INSN, PREV_INSN on.
12313 (is_a_helper <rtx_insn *>::test): New.
12314 (is_a_helper <const rtx_insn *>::test): New.
12316 2014-08-18 David Malcolm <dmalcolm@redhat.com>
12318 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12320 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12322 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12325 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
12327 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12328 to BUILT_IN_UNREACHABLE.
12330 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
12333 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12335 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12336 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12337 (ffs<mode>2): Do not expand with tzcnt for
12338 TARGET_AVOID_FALSE_DEP_FOR_BMI.
12339 (ffssi2_no_cmove): Ditto.
12340 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12341 (ctz<mode>2): New expander.
12342 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12343 (*ctz<mode>2_falsedep): New insn.
12344 (*ctz<mode>2): Rename from ctz<mode>2.
12345 (clz<mode>2_lzcnt): New expander.
12346 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12347 (*clz<mode>2_lzcnt_falsedep): New insn.
12348 (*clz<mode>2): Rename from ctz<mode>2.
12349 (popcount<mode>2): New expander.
12350 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12351 (*popcount<mode>2_falsedep): New insn.
12352 (*popcount<mode>2): Rename from ctz<mode>2.
12353 (*popcount<mode>2_cmp): Remove.
12354 (*popcountsi2_cmp_zext): Ditto.
12356 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
12358 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12359 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12360 * config/microblaze/microblaze.h
12361 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12363 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
12366 * configure.ac: Set install_gold_as_default to no for
12368 * configure: Regenerated.
12370 2014-08-18 Roman Gareev <gareevroman@gmail.com>
12372 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12373 * config.in: Add undef of HAVE_isl.
12374 * configure: Regenerate.
12375 * configure.ac: Add definition of HAVE_isl.
12376 * graphite-blocking.c: Add checking of HAVE_isl.
12377 * graphite-dependences.c: Likewise.
12378 * graphite-interchange.c: Likewise.
12379 * graphite-isl-ast-to-gimple.c: Likewise.
12380 * graphite-optimize-isl.c: Likewise.
12381 * graphite-poly.c: Likewise.
12382 * graphite-scop-detection.c: Likewise.
12383 * graphite-sese-to-poly.c: Likewise.
12384 * graphite.c: Likewise.
12385 * toplev.c: Replace the checking of HAVE_cloog with the checking
12388 2014-08-18 Richard Biener <rguenther@suse.de>
12390 PR tree-optimization/62090
12391 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12392 (fold_builtin_3): Do not fold snprintf.
12393 (fold_builtin_4): Likewise.
12394 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12395 moved from builtins.c.
12396 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12397 (gimple_fold_builtin): Do not fold sprintf here.
12399 2014-08-18 Richard Biener <rguenther@suse.de>
12401 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12403 (maybe_canonicalize_mem_ref_addr): ... this function.
12404 (fold_stmt_1): Apply it here before all simplification.
12406 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
12409 * cgraph.h (cgraph_node::create_indirect_edge): Add
12410 compute_indirect_info param.
12411 * cgraph.c (cgraph_node::create_indirect_edge): Compute
12412 indirect_info only when it is required.
12413 * cgraphclones.c (cgraph_clone_edge): Do not recompute
12414 indirect_info fore cloned indirect edge.
12416 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12418 Anna Tikhonova <anna.tikhonova@intel.com>
12419 Ilya Tocar <ilya.tocar@intel.com>
12420 Andrey Turetskiy <andrey.turetskiy@intel.com>
12421 Ilya Verbin <ilya.verbin@intel.com>
12422 Kirill Yukhin <kirill.yukhin@intel.com>
12423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12425 * config/i386/sse.md
12426 (define_mode_iterator VI8_AVX2_AVX512BW): New.
12427 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12429 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12431 Anna Tikhonova <anna.tikhonova@intel.com>
12432 Ilya Tocar <ilya.tocar@intel.com>
12433 Andrey Turetskiy <andrey.turetskiy@intel.com>
12434 Ilya Verbin <ilya.verbin@intel.com>
12435 Kirill Yukhin <kirill.yukhin@intel.com>
12436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12438 * config/i386/sse.md
12439 (define_mode_iterator VF1_AVX512VL): New.
12440 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12441 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12444 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12446 Anna Tikhonova <anna.tikhonova@intel.com>
12447 Ilya Tocar <ilya.tocar@intel.com>
12448 Andrey Turetskiy <andrey.turetskiy@intel.com>
12449 Ilya Verbin <ilya.verbin@intel.com>
12450 Kirill Yukhin <kirill.yukhin@intel.com>
12451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12453 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12454 * config/i386/i386.md
12455 (define_code_iterator any_float): New.
12456 (define_code_attr floatsuffix): New.
12457 * config/i386/sse.md
12458 (define_mode_iterator VF1_128_256VL): New.
12459 (define_mode_iterator VF2_512_256VL): New.
12460 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12462 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12463 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12465 (define_mode_attr qq2pssuff): New.
12466 (define_mode_attr sselongvecmode): New.
12467 (define_mode_attr sselongvecmodelower): New.
12468 (define_mode_attr sseintvecmode3): New.
12469 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12471 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12472 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12473 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12474 (define_insn "ufloatv2siv2df2<mask_name>"): New.
12476 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12477 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12478 Anna Tikhonova <anna.tikhonova@intel.com>
12479 Ilya Tocar <ilya.tocar@intel.com>
12480 Andrey Turetskiy <andrey.turetskiy@intel.com>
12481 Ilya Verbin <ilya.verbin@intel.com>
12482 Kirill Yukhin <kirill.yukhin@intel.com>
12483 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12485 * config/i386/sse.md
12486 (define_mode_iterator VF2_AVX512VL): New.
12487 (define_mode_attr sseintvecmode2): New.
12488 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12489 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12490 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12492 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12494 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12496 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12499 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12500 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12501 Anna Tikhonova <anna.tikhonova@intel.com>
12502 Ilya Tocar <ilya.tocar@intel.com>
12503 Andrey Turetskiy <andrey.turetskiy@intel.com>
12504 Ilya Verbin <ilya.verbin@intel.com>
12505 Kirill Yukhin <kirill.yukhin@intel.com>
12506 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12508 * config/i386/i386.md
12509 (define_insn "*movoi_internal_avx"): Add evex version.
12510 (define_insn "*movti_internal"): Ditto.
12512 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12513 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12514 Anna Tikhonova <anna.tikhonova@intel.com>
12515 Ilya Tocar <ilya.tocar@intel.com>
12516 Andrey Turetskiy <andrey.turetskiy@intel.com>
12517 Ilya Verbin <ilya.verbin@intel.com>
12518 Kirill Yukhin <kirill.yukhin@intel.com>
12519 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12521 * config/i386/i386.md
12522 (define_attr "isa"): Add avx512dq, noavx512dq.
12523 (define_attr "enabled"): Ditto.
12524 * config/i386/sse.md
12525 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12527 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
12528 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12529 Anna Tikhonova <anna.tikhonova@intel.com>
12530 Ilya Tocar <ilya.tocar@intel.com>
12531 Andrey Turetskiy <andrey.turetskiy@intel.com>
12532 Ilya Verbin <ilya.verbin@intel.com>
12533 Kirill Yukhin <kirill.yukhin@intel.com>
12534 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12536 * config/i386/i386.c
12537 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12538 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12539 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12540 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12541 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12542 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12543 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12544 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12545 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12546 * config/i386/sse.md
12547 (define_mode_iterator VMOVE): Allow V4TI mode.
12548 (define_mode_iterator V_AVX512VL): New.
12549 (define_mode_iterator V): New handling for AVX512VL.
12550 (define_insn "avx512f_load<mode>_mask"): Delete.
12551 (define_insn "<avx512>_load<mode>_mask"): New.
12552 (define_insn "avx512f_store<mode>_mask"): Delete.
12553 (define_insn "<avx512>_store<mode>_mask"): New.
12556 2014-08-18 Yury Gribov <y.gribov@samsung.com>
12559 * asan.c (instrument_derefs): Fix bitfield check.
12561 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12563 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12564 * config/rs6000/htm.md (ttest): Remove clobber.
12565 * config/rs6000/predicates.md (any_mask_operand): New predicate.
12566 (and_operand): Reformat.
12567 (and_2rld_operand): New predicate.
12568 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12570 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12571 parameter. Handle AND directly.
12572 (rs6000_split_logical_di): Remove last parameter.
12573 (rs6000_split_logical): Remove last parameter. Remove obsolete
12575 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12576 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12577 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
12578 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12579 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12580 and 5 anonymous splitters): Delete.
12581 (and<mode>3): New expander.
12582 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12583 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12584 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12585 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12586 (floatdisf2_internal1): Remove clobbers.
12587 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12588 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12589 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12590 (and<mode>3 for BOOL_128): Remove clobber.
12591 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
12592 rs6000_split_logical.
12593 (*bool<mode>3_internal for BOOL_128): Adjust call of
12594 rs6000_split_logical.
12595 (*boolc<mode>3_internal1 for BOOL_128,
12596 *boolc<mode>3_internal2 for BOOL_128,
12597 *boolcc<mode>3_internal1 for BOOL_128,
12598 *boolcc<mode>3_internal2 for BOOL_128,
12599 *eqv<mode>3_internal1 for BOOL_128,
12600 *eqv<mode>3_internal2 for BOOL_128,
12601 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12602 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12604 (*vec_reload_and_reg_<mptrsize>): Delete.
12606 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12608 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12609 and split, *boolccsi3_internal3 and split): Delete.
12610 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12611 *boolccdi3_internal3 and split): Delete.
12612 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12613 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
12615 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12617 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12618 and split, *boolcsi3_internal3 and split): Delete.
12619 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12620 *boolcdi3_internal3 and split): Delete.
12621 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12623 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
12625 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12626 <'u'>: Also support printing the low-order 16 bits.
12627 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12628 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12629 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12630 *booldi3_internal3 and split): Delete.
12631 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12632 *bool<mode>3_dot2): New.
12633 (two anonymous define_splits for non_logical_cint_operand): Merge.
12635 2014-08-17 Marek Polacek <polacek@redhat.com>
12636 Manuel López-Ibáñez <manu@gcc.gnu.org>
12639 * diagnostic.c (adjust_line): Add gcc_checking_assert.
12640 (diagnostic_show_locus): Don't print caret diagnostic
12641 if a column is larger than the line_width.
12643 2014-08-17 Roman Gareev <gareevroman@gmail.com>
12645 * common.opt: Make the ISL AST generator to be the main code generator
12648 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
12650 * wide-int.h (generic_wide_int): Declare as class instead of struct.
12652 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
12655 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12657 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12658 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12659 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12661 * config/pa/pa.md (begin_brtab): Delete insn.
12662 (end_brtab): Likewise.
12664 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12666 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12668 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
12670 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12671 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12672 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12673 (get_dynamic_type): Remove.
12674 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12675 (clear_speculation): Bring to ipa-deivrt.h
12676 (get_class_context): Rename to ...
12677 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12678 (contains_type_p): Update.
12679 (get_dynamic_type): Rename to ...
12680 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12681 (possible_polymorphic_call_targets): UPdate.
12682 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12683 * ipa-prop.c (ipa_analyze_call_uses): Update.
12685 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
12687 * doc/invoke.texi (SH options): Document missing processor variant
12688 options. Remove references to Hitachi. Undocument deprecated mspace
12691 2014-08-15 Jason Merrill <jason@redhat.com>
12693 * tree.c (type_hash_canon): Uncomment assert.
12695 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12697 * input.h (in_system_header_at): Add comment.
12699 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12702 * diagnostic.c (build_message_string): Make it extern.
12703 * diagnostic.h (build_message_string): Make it extern.
12705 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
12707 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12708 load/store from/to non-floating class pseudo.
12710 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12712 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12714 2014-08-15 Richard Biener <rguenther@suse.de>
12716 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12717 (get_constraint_for_ssa_var): Remove dead code.
12718 (get_constraint_for_1): Adjust.
12719 (find_what_var_points_to): Likewise.
12720 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
12722 2014-08-15 Ilya Tocar <tocarip@gmail.com>
12725 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12726 (_mm512_mask_cmpge_epu32_mask): Ditto.
12727 (_mm512_cmpge_epu32_mask): Ditto.
12728 (_mm512_mask_cmpge_epi64_mask): Ditto.
12729 (_mm512_cmpge_epi64_mask): Ditto.
12730 (_mm512_mask_cmpge_epu64_mask): Ditto.
12731 (_mm512_cmpge_epu64_mask): Ditto.
12732 (_mm512_mask_cmple_epi32_mask): Ditto.
12733 (_mm512_cmple_epi32_mask): Ditto.
12734 (_mm512_mask_cmple_epu32_mask): Ditto.
12735 (_mm512_cmple_epu32_mask): Ditto.
12736 (_mm512_mask_cmple_epi64_mask): Ditto.
12737 (_mm512_cmple_epi64_mask): Ditto.
12738 (_mm512_mask_cmple_epu64_mask): Ditto.
12739 (_mm512_cmple_epu64_mask): Ditto.
12740 (_mm512_mask_cmplt_epi32_mask): Ditto.
12741 (_mm512_cmplt_epi32_mask): Ditto.
12742 (_mm512_mask_cmplt_epu32_mask): Ditto.
12743 (_mm512_cmplt_epu32_mask): Ditto.
12744 (_mm512_mask_cmplt_epi64_mask): Ditto.
12745 (_mm512_cmplt_epi64_mask): Ditto.
12746 (_mm512_mask_cmplt_epu64_mask): Ditto.
12747 (_mm512_cmplt_epu64_mask): Ditto.
12748 (_mm512_mask_cmpneq_epi32_mask): Ditto.
12749 (_mm512_mask_cmpneq_epu32_mask): Ditto.
12750 (_mm512_cmpneq_epu32_mask): Ditto.
12751 (_mm512_mask_cmpneq_epi64_mask): Ditto.
12752 (_mm512_cmpneq_epi64_mask): Ditto.
12753 (_mm512_mask_cmpneq_epu64_mask): Ditto.
12754 (_mm512_cmpneq_epu64_mask): Ditto.
12755 (_mm512_castpd_ps): Ditto.
12756 (_mm512_castpd_si512): Ditto.
12757 (_mm512_castps_pd): Ditto.
12758 (_mm512_castps_si512): Ditto.
12759 (_mm512_castsi512_ps): Ditto.
12760 (_mm512_castsi512_pd): Ditto.
12761 (_mm512_castpd512_pd128): Ditto.
12762 (_mm512_castps512_ps128): Ditto.
12763 (_mm512_castsi512_si128): Ditto.
12764 (_mm512_castpd512_pd256): Ditto.
12765 (_mm512_castps512_ps256): Ditto.
12766 (_mm512_castsi512_si256): Ditto.
12767 (_mm512_castpd128_pd512): Ditto.
12768 (_mm512_castps128_ps512): Ditto.
12769 (_mm512_castsi128_si512): Ditto.
12770 (_mm512_castpd256_pd512): Ditto.
12771 (_mm512_castps256_ps512): Ditto.
12772 (_mm512_castsi256_si512): Ditto.
12773 (_mm512_cmpeq_epu32_mask): Ditto.
12774 (_mm512_mask_cmpeq_epu32_mask): Ditto.
12775 (_mm512_mask_cmpeq_epu64_mask): Ditto.
12776 (_mm512_cmpeq_epu64_mask): Ditto.
12777 (_mm512_cmpgt_epu32_mask): Ditto.
12778 (_mm512_mask_cmpgt_epu32_mask): Ditto.
12779 (_mm512_mask_cmpgt_epu64_mask): Ditto.
12780 (_mm512_cmpgt_epu64_mask): Ditto.
12781 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12782 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12783 * config/i386/i386.c (enum ix86_builtins): Add
12784 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12785 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12786 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12787 (bdesc_args): Add __builtin_ia32_si512_256si,
12788 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12789 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12790 __builtin_ia32_pd512_pd.
12791 (ix86_expand_args_builtin): Handle new FTYPEs.
12792 * config/i386/sse.md (castmode): Add 512-bit modes.
12793 (AVX512MODE2P): New.
12794 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12795 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12797 2014-08-15 Richard Biener <rguenther@suse.de>
12799 * fold-const.c (tree_swap_operands_p): Put all constants
12800 last, also strip sign-changing NOPs when considering further
12801 canonicalization. Canonicalize also when optimizing for size.
12803 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12805 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12806 one_match > zero_match case to just before simple_sequence.
12808 2014-08-15 Richard Biener <rguenther@suse.de>
12810 * data-streamer.h (streamer_string_index, string_for_index):
12812 * data-streamer-out.c (streamer_string_index): Make static.
12813 * data-streamer-in.c (string_for_index): Likewise.
12814 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12815 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12817 2014-08-15 Richard Biener <rguenther@suse.de>
12819 PR tree-optimization/62031
12820 * tree-data-ref.c (dr_analyze_indices): Do not set
12821 DR_UNCONSTRAINED_BASE.
12822 (dr_may_alias_p): All indirect accesses have to go the
12823 formerly DR_UNCONSTRAINED_BASE path.
12824 * tree-data-ref.h (struct indices): Remove
12825 unconstrained_base member.
12826 (DR_UNCONSTRAINED_BASE): Remove.
12828 2014-08-15 Jakub Jelinek <jakub@redhat.com>
12830 PR middle-end/62092
12831 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12832 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12833 in OMP_CLAUSE_MAP in some outer target region.
12835 2014-08-15 Bin Cheng <bin.cheng@arm.com>
12837 * tree-ssa-loop-ivopts.c (ivopts_data): New field
12838 name_expansion_cache.
12839 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12840 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12841 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12842 (difference_cannot_overflow_p): New parameter. Use affine
12843 expansion for equality check.
12844 (iv_elimination_compare_lt): Pass new argument.
12846 2014-08-14 DJ Delorie <dj@redhat.com>
12848 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12849 variables to the accumulator.
12851 * config/rl78/predicates.md (rl78_near_mem_operand): New.
12852 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12853 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12854 with far-far moves.
12856 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12857 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12858 (umulqihi3_virt): Likewise.
12859 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12860 (umulqihi3_real): Likewise.
12862 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12864 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12866 PR tree-optimization/62091
12867 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12868 function_entry_reached.
12869 (walk_aliased_vdefs): Clear it here.
12870 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12872 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
12874 * ipa-utils.h (compare_virtual_tables): Declare.
12875 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12877 2014-08-14 Marek Polacek <polacek@redhat.com>
12880 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12881 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12883 2014-08-14 Tom de Vries <tom@codesourcery.com>
12885 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12887 2014-08-14 Tom de Vries <tom@codesourcery.com>
12889 PR rtl-optimization/62004
12890 PR rtl-optimization/62030
12891 * ifcvt.c (rtx_interchangeable_p): New function.
12892 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12893 * emit-rtl.h (mem_attrs_eq_p): Declare.
12895 2014-08-14 Roman Gareev <gareevroman@gmail.com>
12897 * graphite-scop-detection.c:
12898 Add inclusion of cp-tree.h.
12899 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12900 in case they are pointers to object types
12902 2014-08-14 Richard Biener <rguenther@suse.de>
12904 * BASE-VER: Change to 5.0.0
12906 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12908 Anna Tikhonova <anna.tikhonova@intel.com>
12909 Ilya Tocar <ilya.tocar@intel.com>
12910 Andrey Turetskiy <andrey.turetskiy@intel.com>
12911 Ilya Verbin <ilya.verbin@intel.com>
12912 Kirill Yukhin <kirill.yukhin@intel.com>
12913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12915 * config/i386/sse.md (define_mode_attr avx512): New.
12916 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12918 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12919 (define_mode_attr ssse3_avx2): Ditto.
12920 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12921 (define_mode_attr avx2_avx512bw): New.
12922 (define_mode_attr ssedoublemodelower): New.
12923 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12924 V32HI, V64QI modes.
12925 (define_mode_attr ssebytemode): Allow V8DI modes.
12926 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12927 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12928 (define_mode_attr ssePSmode2): New.
12929 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12930 V16HI, V32HI modes.
12931 (define_mode_attr dbpsadbwmode): New.
12932 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12933 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12934 (vi8_sse4_1_avx2_avx512): New.
12935 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12937 (define_mode_attr blendbits): Move before its immediate use.
12939 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12940 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12941 Anna Tikhonova <anna.tikhonova@intel.com>
12942 Ilya Tocar <ilya.tocar@intel.com>
12943 Andrey Turetskiy <andrey.turetskiy@intel.com>
12944 Ilya Verbin <ilya.verbin@intel.com>
12945 Kirill Yukhin <kirill.yukhin@intel.com>
12946 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12948 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12949 * config/i386/subst.md
12950 (define_mode_iterator SUBST_V): Update.
12951 (define_mode_iterator SUBST_A): Ditto.
12952 (define_subst_attr "mask_operand7"): New.
12953 (define_subst_attr "mask_operand10"): New.
12954 (define_subst_attr "mask_operand_arg34") : New.
12955 (define_subst_attr "mask_expand_op3"): New.
12956 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12957 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12958 (define_subst_attr "mask_avx512vl_condition"): New.
12959 (define_subst_attr "round_mask_operand4"): Ditto.
12960 (define_subst_attr "round_mask_scalar_op3"): Delete.
12961 (define_subst_attr "round_mask_op4"): New.
12962 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12964 (define_subst_attr "round_modev8sf_condition"): New.
12965 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12967 (define_subst_attr "round_saeonly_mask_operand4"): New.
12968 (define_subst_attr "round_saeonly_mask_op4"): New.
12969 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12970 V8DImode, V16SImode.
12971 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12972 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12973 (define_subst_attr "mask_expand4_args"): New.
12974 (define_subst "mask_expand4"): New.
12976 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12978 Anna Tikhonova <anna.tikhonova@intel.com>
12979 Ilya Tocar <ilya.tocar@intel.com>
12980 Andrey Turetskiy <andrey.turetskiy@intel.com>
12981 Ilya Verbin <ilya.verbin@intel.com>
12982 Kirill Yukhin <kirill.yukhin@intel.com>
12983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12985 * config/i386/i386.md
12986 (define_attr "isa"): Add avx512bw,noavx512bw.
12987 (define_attr "enabled"): Ditto.
12988 (define_split): Add 32/64-bit mask logic.
12989 (define_insn "*k<logic>qi"): New.
12990 (define_insn "*k<logic>hi"): New.
12991 (define_insn "*anddi_1"): Add mask version.
12992 (define_insn "*andsi_1"): Ditto.
12993 (define_insn "*<code><mode>_1"): Ditto.
12994 (define_insn "*<code>hi_1"): Ditto.
12995 (define_insn "kxnor<mode>"): New.
12996 (define_insn "kunpcksi"): New.
12997 (define_insn "kunpckdi"): New.
12998 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12999 (define_insn "*one_cmplhi2_1"): Ditto.
13001 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13003 Anna Tikhonova <anna.tikhonova@intel.com>
13004 Ilya Tocar <ilya.tocar@intel.com>
13005 Andrey Turetskiy <andrey.turetskiy@intel.com>
13006 Ilya Verbin <ilya.verbin@intel.com>
13007 Kirill Yukhin <kirill.yukhin@intel.com>
13008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13010 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13013 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
13014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13015 Anna Tikhonova <anna.tikhonova@intel.com>
13016 Ilya Tocar <ilya.tocar@intel.com>
13017 Andrey Turetskiy <andrey.turetskiy@intel.com>
13018 Ilya Verbin <ilya.verbin@intel.com>
13019 Kirill Yukhin <kirill.yukhin@intel.com>
13020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13022 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
13024 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13025 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13026 xmm/ymm16+ when availble.
13027 * config/i386/i386.h
13028 (HARD_REGNO_NREGS): Add mask regs.
13029 (VALID_AVX512F_REG_MODE): Ditto.
13030 (VALID_AVX512F_REG_MODE) : Define.
13031 (VALID_MASK_AVX512BW_MODE): Ditto.
13032 (reg_class) (MASK_REG_P(X)): Define.
13033 * config/i386/i386.md: Do not split long moves with mask register,
13034 use kmovb if avx512bw is availible.
13035 (movdi_internal): Handle mask registers.
13037 2014-08-14 Richard Biener <rguenther@suse.de>
13039 PR tree-optimization/62081
13040 * tree-ssa-loop.c (pass_fix_loops): New pass.
13041 (pass_tree_loop::gate): Do not fixup loops here.
13042 * tree-pass.h (make_pass_fix_loops): Declare.
13043 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13045 2014-08-14 Richard Biener <rguenther@suse.de>
13047 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13048 (type_hash_canon): ... this and avoid 2nd lookup for the add.
13050 2014-08-14 Richard Biener <rguenther@suse.de>
13052 PR tree-optimization/62090
13053 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13054 (fold_builtin_2): Do not fold sprintf.
13055 (fold_builtin_3): Likewise.
13056 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13057 moved from builtins.c.
13058 (gimple_fold_builtin): Fold sprintf.
13060 2014-08-14 Richard Biener <rguenther@suse.de>
13062 PR rtl-optimization/62079
13063 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13066 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13068 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13069 current_function_decl.
13071 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
13073 * cgraph.c (cgraph_node::function_symbol): Fix wrong
13074 cgraph_function_node to cgraph_node::function_symbol
13077 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
13079 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13080 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13082 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
13084 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13087 2014-08-13 Roman Gareev <gareevroman@gmail.com>
13089 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13092 2014-08-12 Jakub Jelinek <jakub@redhat.com>
13095 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13096 any registers that are used in mem_insn.
13098 2014-08-12 Steve Ellcey <sellcey@mips.com>
13100 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13102 2014-08-12 Steve Ellcey <sellcey@mips.com>
13104 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13105 (MULTILIB_DIRNAMES): Ditto.
13106 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13107 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13108 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13109 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13110 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13111 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13113 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13116 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13117 of __ARM_SIZEOF_WCHAR_T.
13119 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13122 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13123 Remove unnecessary attributes.
13125 2014-08-12 Yury Gribov <y.gribov@samsung.com>
13127 * internal-fn.c (init_internal_fns): Fix off-by-one.
13129 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13131 Anna Tikhonova <anna.tikhonova@intel.com>
13132 Ilya Tocar <ilya.tocar@intel.com>
13133 Andrey Turetskiy <andrey.turetskiy@intel.com>
13134 Ilya Verbin <ilya.verbin@intel.com>
13135 Kirill Yukhin <kirill.yukhin@intel.com>
13136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13138 * config/i386/i386.c (standard_sse_constant_opcode): Use
13139 vpxord/vpternlog if avx512 is availible.
13141 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13143 PR middle-end/62103
13144 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13145 bitfields, that is when size doesn't match the size of type or the
13146 size of the constructor.
13148 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13150 * config/rs6000/constraints.md (wh constraint): New constraint,
13151 for FP registers if direct move is available.
13152 (wi constraint): New constraint, for VSX/FP registers that can
13153 handle 64-bit integers.
13154 (wj constraint): New constraint for VSX/FP registers that can
13155 handle 64-bit integers for direct moves.
13156 (wk constraint): New constraint for VSX/FP registers that can
13157 handle 64-bit doubles for direct moves.
13158 (wy constraint): Make documentation match implementation.
13160 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13161 scalar_in_vmx_p field to simplify tests of whether SFmode or
13162 DFmode can go in the Altivec registers.
13163 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13164 (rs6000_setup_reg_addr_masks): Likewise.
13165 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13166 field, and wh/wi/wj/wk constraints.
13167 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13168 the wh/wi/wj/wk constraints.
13169 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13170 upper registers, prefer VSX registers unless the operation is a
13171 memory operation with REG+OFFSET addressing.
13173 * config/rs6000/vsx.md (VSr mode attribute): Add support for
13174 DImode. Change SFmode to use ww constraint instead of d to allow
13175 SF registers in the upper registers.
13178 (VSr5): Fix thinko in comment.
13179 (VSa): New mode attribute that is an alternative to wa, that
13180 returns the VSX register class that a mode can go in, but may not
13181 be the preferred register class.
13182 (VS_64dm): New mode attribute for appropriate register classes for
13183 referencing 64-bit elements of vectors for direct moves and normal
13185 (VS_64reg): Likewise.
13186 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13187 register allocator to only registers the data type can handle.
13188 (vsx_le_perm_load_<mode>): Likewise.
13189 (vsx_le_perm_store_<mode>): Likewise.
13190 (vsx_xxpermdi2_le_<mode>): Likewise.
13191 (vsx_xxpermdi4_le_<mode>): Likewise.
13192 (vsx_lxvd2x2_le_<mode>): Likewise.
13193 (vsx_lxvd2x4_le_<mode>): Likewise.
13194 (vsx_stxvd2x2_le_<mode>): Likewise.
13195 (vsx_add<mode>3): Likewise.
13196 (vsx_sub<mode>3): Likewise.
13197 (vsx_mul<mode>3): Likewise.
13198 (vsx_div<mode>3): Likewise.
13199 (vsx_tdiv<mode>3_internal): Likewise.
13200 (vsx_fre<mode>2): Likewise.
13201 (vsx_neg<mode>2): Likewise.
13202 (vsx_abs<mode>2): Likewise.
13203 (vsx_nabs<mode>2): Likewise.
13204 (vsx_smax<mode>3): Likewise.
13205 (vsx_smin<mode>3): Likewise.
13206 (vsx_sqrt<mode>2): Likewise.
13207 (vsx_rsqrte<mode>2): Likewise.
13208 (vsx_tsqrt<mode>2_internal): Likewise.
13209 (vsx_fms<mode>4): Likewise.
13210 (vsx_nfma<mode>4): Likewise.
13211 (vsx_eq<mode>): Likewise.
13212 (vsx_gt<mode>): Likewise.
13213 (vsx_ge<mode>): Likewise.
13214 (vsx_eq<mode>_p): Likewise.
13215 (vsx_gt<mode>_p): Likewise.
13216 (vsx_ge<mode>_p): Likewise.
13217 (vsx_xxsel<mode>): Likewise.
13218 (vsx_xxsel<mode>_uns): Likewise.
13219 (vsx_copysign<mode>3): Likewise.
13220 (vsx_float<VSi><mode>2): Likewise.
13221 (vsx_floatuns<VSi><mode>2): Likewise.
13222 (vsx_fix_trunc<mode><VSi>2): Likewise.
13223 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13224 (vsx_x<VSv>r<VSs>i): Likewise.
13225 (vsx_x<VSv>r<VSs>ic): Likewise.
13226 (vsx_btrunc<mode>2): Likewise.
13227 (vsx_b2trunc<mode>2): Likewise.
13228 (vsx_floor<mode>2): Likewise.
13229 (vsx_ceil<mode>2): Likewise.
13230 (vsx_<VS_spdp_insn>): Likewise.
13231 (vsx_xscvspdp): Likewise.
13232 (vsx_xvcvspuxds): Likewise.
13233 (vsx_float_fix_<mode>2): Likewise.
13234 (vsx_set_<mode>): Likewise.
13235 (vsx_extract_<mode>_internal1): Likewise.
13236 (vsx_extract_<mode>_internal2): Likewise.
13237 (vsx_extract_<mode>_load): Likewise.
13238 (vsx_extract_<mode>_store): Likewise.
13239 (vsx_splat_<mode>): Likewise.
13240 (vsx_xxspltw_<mode>): Likewise.
13241 (vsx_xxspltw_<mode>_direct): Likewise.
13242 (vsx_xxmrghw_<mode>): Likewise.
13243 (vsx_xxmrglw_<mode>): Likewise.
13244 (vsx_xxsldwi_<mode>): Likewise.
13245 (vsx_xscvdpspn): Tighten constraints to only use register classes
13247 (vsx_xscvspdpn): Likewise.
13248 (vsx_xscvdpspn_scalar): Likewise.
13250 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13251 wj, and wk constraints.
13252 (GPR_REG_CLASS_P): New helper macro for register classes targeting
13253 general purpose registers.
13255 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13257 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13258 DImode instead of wm. Use wk constraint for direct move of DFmode
13260 (extendsidi2_lfiwax): Likewise.
13261 (lfiwax): Likewise.
13262 (lfiwzx): Likewise.
13263 (movdi_internal64): Likewise.
13265 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13266 wk constraints. Make the wy constraint documentation match them
13269 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
13271 Replacement of isl_int by isl_val
13272 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13273 (compute_bounds_for_param): use isl_val instead of isl_int
13274 (compute_bounds_for_loop): likewise
13275 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13276 (build_linearized_memory_access): use isl_val instead of isl_int
13277 (pdr_stride_in_loop): likewise
13278 * graphite-optimize-isl.c:
13279 (getPrevectorMap): use isl_val instead of isl_int
13281 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13282 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13283 (extern the_isl_ctx): declare
13284 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13285 (extract_affine_gmp): likewise
13287 (build_loop_iteration_domains): likewise
13288 (add_param_constraints): likewise
13290 2014-08-11 Richard Biener <rguenther@suse.de>
13292 PR tree-optimization/62075
13293 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13294 handle uses in patterns.
13296 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13297 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13298 Anna Tikhonova <anna.tikhonova@intel.com>
13299 Ilya Tocar <ilya.tocar@intel.com>
13300 Andrey Turetskiy <andrey.turetskiy@intel.com>
13301 Ilya Verbin <ilya.verbin@intel.com>
13302 Kirill Yukhin <kirill.yukhin@intel.com>
13303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13305 * common/config/i386/i386-common.c
13306 (OPTION_MASK_ISA_AVX512VL_SET): Define.
13307 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13308 (ix86_handle_option): Handle OPT_mavx512vl.
13309 * config/i386/cpuid.h (bit_AVX512VL): Define.
13310 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13311 set -mavx512vl accordingly.
13312 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13313 OPTION_MASK_ISA_AVX512VL.
13314 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13315 (ix86_option_override_internal): Define PTA_AVX512VL, handle
13316 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13317 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13318 * config/i386/i386.h (TARGET_AVX512VL): Define.
13319 (TARGET_AVX512VL_P(x)): Ditto.
13320 * config/i386/i386.opt: Add mavx512vl.
13322 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
13324 PR tree-optimization/62073
13325 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13328 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13330 Anna Tikhonova <anna.tikhonova@intel.com>
13331 Ilya Tocar <ilya.tocar@intel.com>
13332 Andrey Turetskiy <andrey.turetskiy@intel.com>
13333 Ilya Verbin <ilya.verbin@intel.com>
13334 Kirill Yukhin <kirill.yukhin@intel.com>
13335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13337 * common/config/i386/i386-common.c
13338 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13339 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13340 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13341 (ix86_handle_option): Handle OPT_mavx512bw.
13342 * config/i386/cpuid.h (bit_AVX512BW): Define.
13343 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13344 set -mavx512bw accordingly.
13345 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13346 OPTION_MASK_ISA_AVX512BW.
13347 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13348 (ix86_option_override_internal): Define PTA_AVX512BW, handle
13349 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13350 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13351 * config/i386/i386.h (TARGET_AVX512BW): Define.
13352 (TARGET_AVX512BW_P(x)): Ditto.
13353 * config/i386/i386.opt: Add mavx512bw.
13355 2014-08-11 Richard Biener <rguenther@suse.de>
13357 PR tree-optimization/62070
13358 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13359 Remove SSA checking.
13361 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13363 * asan.c (asan_check_flags): New enum.
13364 (build_check_stmt_with_calls): Removed function.
13365 (build_check_stmt): Split inlining logic to
13366 asan_expand_check_ifn.
13367 (instrument_derefs): Rename parameter.
13368 (instrument_mem_region_access): Rename parameter.
13369 (instrument_strlen_call): Likewise.
13370 (asan_expand_check_ifn): New function.
13371 (asan_instrument): Remove old code.
13372 (pass_sanopt::execute): Change handling of
13373 asan-instrumentation-with-call-threshold.
13374 (asan_clear_shadow): Fix formatting.
13375 (asan_function_start): Likewise.
13376 (asan_emit_stack_protection): Likewise.
13377 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13378 Update description.
13379 * internal-fn.c (expand_ASAN_CHECK): New function.
13380 * internal-fn.def (ASAN_CHECK): New internal function.
13381 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13382 Update description.
13383 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13384 * tree.c: Small comment fix.
13386 2014-08-11 Yury Gribov <y.gribov@samsung.com>
13388 * gimple.c (gimple_call_fnspec): Support internal functions.
13389 (gimple_call_return_flags): Use const.
13390 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13391 * internal-fn.def: Add fnspec information.
13392 * internal-fn.h (internal_fn_fnspec): New function.
13393 (init_internal_fns): Declare new function.
13394 * internal-fn.c (internal_fn_fnspec_array): New global variable.
13395 (init_internal_fns): New function.
13396 * tree-core.h: Update macro call.
13397 * tree.c (build_common_builtin_nodes): Initialize internal fns.
13399 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
13401 * lto-streamer.h (struct output_block::symbol): Change from
13402 struct symtab_node to plain symtab_node.
13403 (referenced_from_this_partition_p): Change first parameter
13404 from struct symtab_node to plain symtab_node.
13406 2014-08-10 Marek Polacek <polacek@redhat.com>
13409 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13411 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
13413 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13414 DECL correctly; do not give up on types in static storage.
13416 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
13418 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13420 2014-08-09 Roman Gareev <gareevroman@gmail.com>
13422 * graphite-isl-ast-to-gimple.c:
13423 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13425 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13427 2014-08-08 Guozhi Wei <carrot@google.com>
13429 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13431 2014-08-08 Cary Coutant <ccoutant@google.com>
13433 * dwarf2out.c (get_skeleton_type_unit): Remove.
13434 (output_skeleton_debug_sections): Remove skeleton type units.
13435 (output_comdat_type_unit): Likewise.
13436 (dwarf2out_finish): Likewise.
13438 2014-08-07 Yi Yang <ahyangyi@google.com>
13440 * predict.c (expr_expected_value_1): Remove the redundant assignment.
13442 2014-08-08 Richard Biener <rguenther@suse.de>
13444 * lto-streamer.h (struct lto_input_block): Make it a class
13445 with a constructor.
13446 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13447 (struct lto_function_header, struct lto_simple_header,
13448 struct lto_simple_header_with_strings,
13449 struct lto_decl_header, struct lto_function_header): Make
13450 a simple inheritance hieararchy. Remove unused fields.
13451 (struct lto_asm_header): Remove.
13452 * lto-streamer-out.c (produce_asm): Adjust.
13453 (lto_output_toplevel_asms): Likewise.
13454 (produce_asm_for_decls): Likewise.
13455 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13456 * data-streamer-in.c (string_for_index): Likewise.
13457 * ipa-inline-analysis.c (inline_read_section): Likewise.
13458 * ipa-prop.c (ipa_prop_read_section): Likewise.
13459 (read_replacements_section): Likewise.
13460 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13461 * lto-section-in.c (lto_create_simple_input_block): Likewise.
13462 (lto_destroy_simple_input_block): Likewise.
13463 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13464 (lto_input_toplevel_asms): Likewise.
13466 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
13467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13468 Anna Tikhonova <anna.tikhonova@intel.com>
13469 Ilya Tocar <ilya.tocar@intel.com>
13470 Andrey Turetskiy <andrey.turetskiy@intel.com>
13471 Ilya Verbin <ilya.verbin@intel.com>
13472 Kirill Yukhin <kirill.yukhin@intel.com>
13473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13475 * common/config/i386/i386-common.c
13476 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13477 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13478 (ix86_handle_option): Handle OPT_mavx512dq.
13479 * config/i386/cpuid.h (bit_AVX512DQ): Define.
13480 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13481 set -mavx512dq accordingly.
13482 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13483 OPTION_MASK_ISA_AVX512DQ.
13484 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13485 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13486 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13487 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13488 * config/i386/i386.h (TARGET_AVX512DQ): Define.
13489 (TARGET_AVX512DQ_P(x)): Ditto.
13490 * config/i386/i386.opt: Add mavx512dq.
13492 2014-08-08 Richard Biener <rguenther@suse.de>
13494 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13495 target_percent, target_percent_s): Export.
13496 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13497 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13498 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13499 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13500 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13501 Move to gimple-fold.c.
13502 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13504 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13505 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13506 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13507 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13508 (rewrite_call_expr_array): Remove.
13509 (fold_builtin_sprintf_chk): Likewise.
13510 (fold_builtin_snprintf_chk): Likewise.
13511 (fold_builtin_varargs): Remove handling of sprintf_chk,
13512 vsprintf_chk, snprintf_chk and vsnprintf_chk.
13513 (gimple_fold_builtin_sprintf_chk): Remove.
13514 (gimple_fold_builtin_snprintf_chk): Likewise.
13515 (gimple_fold_builtin_varargs): Likewise.
13516 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13517 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13518 * gimple.c (gimple_seq_add_seq_without_update): New function.
13519 * gimple.h (gimple_seq_add_seq_without_update): Declare.
13520 * gimple-fold.c: Include output.h.
13521 (gsi_replace_with_seq_vops): New function, split out from ...
13522 (gimplify_and_update_call_from_tree): ... here.
13523 (replace_call_with_value): New function.
13524 (replace_call_with_call_and_fold): Likewise.
13525 (var_decl_component_p): Moved from builtins.c.
13526 (gimple_fold_builtin_memory_op): Moved from builtins.c
13527 fold_builtin_memory_op and rewritten to GIMPLE.
13528 (gimple_fold_builtin_memset): Likewise.
13529 (gimple_fold_builtin_strcpy): Likewise.
13530 (gimple_fold_builtin_strncpy): Likewise.
13531 (gimple_fold_builtin_strcat): Likewise.
13532 (gimple_fold_builtin_fputs): Likewise.
13533 (gimple_fold_builtin_memory_chk): Likewise.
13534 (gimple_fold_builtin_stxcpy_chk): Likewise.
13535 (gimple_fold_builtin_stxncpy_chk): Likewise.
13536 (gimple_fold_builtin_snprintf_chk): Likewise.
13537 (gimple_fold_builtin_sprintf_chk): Likewise.
13538 (gimple_fold_builtin_strlen): New function.
13539 (gimple_fold_builtin_with_strlen): New function split out from
13540 gimple_fold_builtin.
13541 (gimple_fold_builtin): Change signature and handle
13542 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13543 here. Call gimple_fold_builtin_with_strlen.
13544 (gimple_fold_call): Adjust.
13546 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13548 * calls.c (precompute_arguments): Check
13549 promoted_for_signed_and_unsigned_p and set the promoted mode.
13550 (promoted_for_signed_and_unsigned_p): New function.
13551 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13552 and set the promoted mode.
13553 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13554 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13555 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13558 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
13560 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13561 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13562 (expand_call): Likewise.
13563 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13564 to get promoted mode.
13565 * combine.c (record_promoted_value): Skip > 0 comparison with
13566 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13567 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13568 of SUBREG_PROMOTED_UNSIGNED_P.
13569 (convert_modes): Likewise.
13570 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13571 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13572 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13573 SUBREG_PROMOTED_UNSIGNED_SET.
13574 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13575 instead of SUBREG_PROMOTED_UNSIGNED_SET.
13576 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13577 SUBREG_PROMOTED_SET.
13578 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13579 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13580 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13581 of SUBREG_PROMOTED_UNSIGNED_P.
13582 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13583 (SUBREG_PROMOTED_SET): New define.
13584 (SUBREG_PROMOTED_GET): Likewise.
13585 (SUBREG_PROMOTED_SIGN): Likewise.
13586 (SUBREG_PROMOTED_SIGNED_P): Likewise.
13587 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13588 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13589 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13590 instead of SUBREG_PROMOTED_UNSIGNED_GET.
13591 (nonzero_bits1): Skip > 0 comparison with the results as
13592 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13593 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13594 of !SUBREG_PROMOTED_UNSIGNED_P.
13595 * simplify-rtx.c (simplify_unary_operation_1): Use new
13596 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13597 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13598 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13599 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13601 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
13603 * ipa-devirt.c: Include gimple-pretty-print.h
13604 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13606 (decl_maybe_in_construction_p): Fix conditional on cdtor check
13607 (get_polymorphic_call_info): Fix return value
13608 (type_change_info): New sturcture based on ipa-prop
13610 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13611 based on ipa-prop variant.
13612 (extr_type_from_vtbl_ptr_store): New function
13613 based on ipa-prop variant.
13614 (record_known_type): New function.
13615 (check_stmt_for_type_change): New function.
13616 (get_dynamic_type): New function.
13617 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13618 * tree-ssa-pre.c: ipa-utils.h
13619 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13620 machinery; sanity check with ipa-prop devirtualization.
13621 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13624 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13626 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13627 * alias.c, cfgexpand.c, cgraphbuild.c,
13628 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13629 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13630 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13631 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13632 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13633 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13634 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13635 dse.c, except.c, gengtype.c, gimple-expr.c,
13636 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13637 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13638 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13639 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13640 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13641 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13643 * pointer-set.c: Remove file.
13644 * pointer-set.h: Remove file.
13646 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13648 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13649 * config/arm/types.md (f_sels, f_seld): Delete.
13651 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13653 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13654 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13655 (aarch64_movdi_<mode>high): Likewise.
13656 (aarch64_mov<mode>high_di): Likewise.
13657 (aarch64_movdi_<mode>low): Likewise.
13658 (aarch64_mov<mode>low_di): Likewise.
13659 (aarch64_movtilow_tilow): Likewise.
13660 Add comment explaining usage of fp,simd attributes and of
13661 TARGET_FLOAT and TARGET_SIMD.
13663 2014-08-07 Ian Bolton <ian.bolton@arm.com>
13664 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13666 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13667 Use MOVN when one of the half-words is 0xffff.
13669 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13671 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13673 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13675 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
13676 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13677 (rfs_str): String corresponding to RFS_* constants.
13678 (rank_for_schedule_stats_t): New typedef.
13679 (rank_for_schedule_stats): New static variable.
13680 (rfs_result): New static function.
13681 (rank_for_schedule): Track statistics for deciding heuristics.
13682 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13684 (ready_sort): Use them for debug printouts.
13685 (schedule_block): Init statistics state. Print statistics on
13686 rank_for_schedule decisions.
13688 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13690 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13692 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
13694 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13697 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
13699 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13700 function to not conflict.
13701 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13702 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13703 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13704 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13705 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13708 2014-08-07 Marek Polacek <polacek@redhat.com>
13710 * fold-const.c (fold_binary_loc): Add folding of
13711 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13713 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
13715 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13716 instead of type size.
13717 (ASM_FINISH_DECLARE_OBJECT): Likewise.
13719 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
13721 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13722 (*thumb1_movqi_insn): Likewise.
13723 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13725 2014-08-07 Tom de Vries <tom@codesourcery.com>
13727 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13728 (glibc_2_11_or_earlier): Remove effective-target keywords.
13730 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13732 * config/arm/arm.c (bdesc_2arg): Fix typo.
13733 (arm_atomic_assign_expand_fenv): Remove The default implementation.
13735 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
13737 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13739 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
13742 * haifa-sched.c (advance_one_cycle): Fix dump.
13743 (schedule_block): Don't advance cycle if we are already at the
13744 beginning of the cycle.
13746 2014-08-06 Martin Jambor <mjambor@suse.cz>
13749 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13751 2014-08-06 Richard Biener <rguenther@suse.de>
13754 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13756 (lto_input_tree): Pop SCCs here.
13758 2014-08-06 Richard Biener <rguenther@suse.de>
13760 PR tree-optimization/61320
13761 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13762 handle misaligned loads.
13764 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
13766 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13767 (aarch64_expand_vec_perm_const): Check for dup before zip.
13769 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13771 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13772 CONST_INT_P instead of GET_CODE and compare.
13773 (aarch64_select_cc_mode): Likewise.
13774 (aarch64_print_operand): Likewise.
13775 (aarch64_rtx_costs): Likewise.
13776 (aarch64_simd_valid_immediate): Likewise.
13777 (aarch64_simd_check_vect_par_cnst_half): Likewise.
13778 (aarch64_simd_emit_pair_result_insn): Likewise.
13780 2014-08-05 David Malcolm <dmalcolm@redhat.com>
13782 * gdbhooks.py (find_gcc_source_dir): New helper function.
13783 (class PassNames): New class, locating and parsing passes.def.
13784 (class BreakOnPass): New command "break-on-pass".
13786 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
13788 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13791 2014-08-05 Richard Biener <rguenther@suse.de>
13793 PR rtl-optimization/61672
13794 * emit-rtl.h (mem_attrs_eq_p): Declare.
13795 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
13796 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13797 * cfgcleanup.c (merge_memattrs): Likewise.
13798 Include emit-rtl.h.
13800 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13802 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13803 rather than singleton vectors.
13804 (vqdmlsls_lane_s32): Likewise.
13806 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13808 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13809 Use VSDQ_HSI mode iterator.
13810 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13811 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13812 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13813 Use BUILTIN_VDQHS macro.
13814 (sqrdmulh_laneq): Likewise.
13815 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13816 (vqdmlals_laneq_s32): Likewise.
13817 (vqdmlslh_laneq_s16): Likewise.
13818 (vqdmlsls_laneq_s32): Likewise.
13819 (vqdmulhh_laneq_s16): Likewise.
13820 (vqdmulhs_laneq_s32): Likewise.
13821 (vqrdmulhh_laneq_s16): Likewise.
13822 (vqrdmulhs_laneq_s32): Likewise.
13824 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13826 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13827 (vmuld_laneq_f64): Likewise.
13828 (vmuls_laneq_f32): Likewise.
13829 (vmul_n_f64): Likewise.
13830 (vmuld_lane_f64): Reimplement in C.
13831 (vmuls_lane_f32): Likewise.
13833 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13835 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13837 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13839 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13841 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13842 (rbitsi2): Likewise.
13843 (*arm_rev): Set predicable and predicable_short_it attributes.
13845 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13847 * convert.c (convert_to_integer): Guard transformation to lrint by
13850 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
13852 * config/aarch64/aarch64-builtins.c
13853 (aarch64_simd_builtin_type_mode): Delete.
13854 (v8qi_UP): Remap to V8QImode.
13855 (v4hi_UP): Remap to V4HImode.
13856 (v2si_UP): Remap to V2SImode.
13857 (v2sf_UP): Remap to V2SFmode.
13858 (v1df_UP): Remap to V1DFmode.
13859 (di_UP): Remap to DImode.
13860 (df_UP): Remap to DFmode.
13861 (v16qi_UP):V16QImode.
13862 (v8hi_UP): Remap to V8HImode.
13863 (v4si_UP): Remap to V4SImode.
13864 (v4sf_UP): Remap to V4SFmode.
13865 (v2di_UP): Remap to V2DImode.
13866 (v2df_UP): Remap to V2DFmode.
13867 (ti_UP): Remap to TImode.
13868 (ei_UP): Remap to EImode.
13869 (oi_UP): Remap to OImode.
13870 (ci_UP): Map to CImode.
13871 (xi_UP): Remap to XImode.
13872 (si_UP): Remap to SImode.
13873 (sf_UP): Remap to SFmode.
13874 (hi_UP): Remap to HImode.
13875 (qi_UP): Remap to QImode.
13876 (aarch64_simd_builtin_datum): Make mode a machine_mode.
13877 (VAR1): Build builtin name.
13878 (aarch64_init_simd_builtins): Remove dead code.
13880 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13882 * graphite-isl-ast-to-gimple.c:
13883 (set_options): New function.
13884 (scop_to_isl_ast): Add calling of set_options.
13886 2014-08-05 Jakub Jelinek <jakub@redhat.com>
13888 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13889 (analyze_iv_to_split_insn): Don't initialize them.
13890 (get_ivts_expr): Removed.
13891 (allocate_basic_variable, insert_base_initialization): Use
13892 SET_SRC instead of *get_ivts_expr.
13893 (split_iv): Use &SET_SRC instead of get_ivts_expr.
13895 2014-08-05 Roman Gareev <gareevroman@gmail.com>
13897 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13898 (translate_isl_ast_for_loop): Add checking of the
13899 flag_loop_parallelize_all.
13900 (ast_build_before_for): New function.
13901 (scop_to_isl_ast): Add checking of the
13902 flag_loop_parallelize_all.
13903 * graphite-dependences.c: Move the defenition of the
13904 scop_get_dependences from graphite-optimize-isl.c to this file.
13905 (apply_schedule_on_deps): Add checking of the ux's emptiness.
13906 (carries_deps): Add checking of the x's value.
13907 * graphite-optimize-isl.c: Move the defenition of the
13908 scop_get_dependences to graphite-dependences.c.
13909 * graphite-poly.h: Add declarations of scop_get_dependences
13912 2014-08-04 Rohit <rohitarulraj@freescale.com>
13915 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13917 (alt_reg_names): Likewise.
13918 (rs6000_dwarf_register_span): For SPE high registers, replace
13919 dwarf register numbers with GCC hard register numbers.
13920 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13921 (rs6000_dbx_register_number): For SPE high registers, return dwarf
13922 register number for the corresponding GCC hard register number.
13923 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13924 newly added GCC hard register numbers for SPE high registers.
13925 (DWARF_FRAME_REGISTERS): Likewise.
13926 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13927 (DWARF_FRAME_REGNUM): Likewise.
13928 (FIXED_REGISTERS): Likewise.
13929 (CALL_USED_REGISTERS): Likewise.
13930 (CALL_REALLY_USED_REGISTERS): Likewise.
13931 (REG_ALLOC_ORDER): Likewise.
13932 (enum reg_class): Likewise.
13933 (REG_CLASS_NAMES): Likewise.
13934 (REG_CLASS_CONTENTS): Likewise.
13935 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13937 2014-08-04 Richard Biener <rguenther@suse.de>
13939 * gimple-fold.h (gimple_fold_builtin): Remove.
13940 * gimple-fold.c (gimple_fold_builtin): Make static.
13941 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13942 fold_stmt, not gimple_fold_builtin.
13944 2014-08-04 Martin Liska <mliska@suse.cz>
13946 * cgraph.h (csi_end_p): Removed.
13947 (csi_next): Likewise.
13948 (csi_node): Likewise.
13949 (csi_start): Likewise.
13950 (cgraph_node_in_set_p): Likewise.
13951 (cgraph_node_set_size): Likewise.
13952 (vsi_end_p): Likewise.
13953 (vsi_next): Likewise.
13954 (vsi_node): Likewise.
13955 (vsi_start): Likewise.
13956 (varpool_node_set_size): Likewise.
13957 (cgraph_node_set_nonempty_p): Likewise.
13958 (varpool_node_set_nonempty_p): Likewise.
13959 * cgraphunit.c (cgraph_process_new_functions): vec replaces
13961 * ipa-inline-transform.c: Likewise.
13962 * ipa-utils.c (cgraph_node_set_new): Removed.
13963 (cgraph_node_set_add): Likewise.
13964 (cgraph_node_set_remove): Likewise.
13965 (cgraph_node_set_find): Likewise.
13966 (dump_cgraph_node_set): Likewise.
13967 (debug_cgraph_node_set): Likewise.
13968 (free_cgraph_node_set): Likewise.
13969 (varpool_node_set_new): Likewise.
13970 (varpool_node_set_add): Likewise.
13971 (varpool_node_set_remove): Likewise.
13972 (varpool_node_set_find): Likewise.
13973 (dump_varpool_node_set): Likewise.
13974 (free_varpool_node_set): Likewise.
13975 (debug_varpool_node_set): Likewise.
13976 * tree-emutls.c (struct tls_var_data):
13977 (emutls_index): Removed.
13978 (emutls_decl): Likewise.
13979 (gen_emutls_addr): Function implementation uses newly added
13980 hash_map<varpool_node *, tls_var_data>.
13981 (clear_access_vars): Likewise.
13982 (create_emultls_var): Likewise.
13983 (ipa_lower_emutls): Likewise.
13984 (reset_access): New function.
13986 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13988 * config/i386/i386.c (ix86_option_override_internal): Add
13989 PTA_RDRND and PTA_MOVBE for bdver4.
13991 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13992 James Greenhalgh <james.greenhalgh@arm.com>
13994 * doc/md.texi (clrsb): Document.
13995 (clz): Change reference to x into operand 1.
13997 (popcount): Likewise.
13999 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14002 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14003 move to subtarget in serial version if result is ignored.
14005 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14006 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14008 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14009 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
14010 (sched_analyze_insn): Update use of try_group_insn to
14011 sched_macro_fuse_insns.
14012 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14013 arguments that are not conditional jumps.
14015 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14017 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14018 family information. Handle BTVER2 cpu with cpuid family value.
14020 2014-08-04 Tom de Vries <tom@codesourcery.com>
14022 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14023 (glibc_2_11_or_earlier): Document effective-target keywords.
14025 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14027 * ipa-devirt.c (odr_type_warn_count): Add type.
14028 (possible_polymorphic_call_targets): Set it.
14029 (ipa_devirt): Use it.
14031 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
14033 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14035 * ipa-devirt.c: Include hash-map.h
14036 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14037 (clear_speculation): Break out of ...
14038 (get_class_context): ... here; speed up handling obviously useless
14040 (odr_type_warn_count, decl_warn_count): New structures.
14041 (final_warning_record): New structure.
14042 (final_warning_records): New static variable.
14043 (possible_polymorphic_call_targets): Cleanup handling of
14044 speculative info; do not build speculation when user do not care;
14045 record info about warnings when asked for.
14046 (add_decl_warning): New function.
14047 (type_warning_cmp): New function.
14048 (decl_warning_cmp): New function.
14049 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14050 (gate): Enable pass when warnings are requested.
14051 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14054 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14056 * hash-map.h (default_hashmap_traits::mark_key_deleted):
14058 (hash_map::remove): New method.
14059 (hash_map::traverse): New method.
14060 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14061 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14062 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14063 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14064 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14065 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14068 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
14070 * hash-set.h: new File.
14071 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14072 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14073 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14074 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14075 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14076 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14077 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14078 varpool.c: Use hash_set instead of pointer_set.
14080 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
14082 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14084 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14086 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14087 for frame access when strict_p is false.
14089 2014-08-01 Renlin Li <renlin.li@arm.com>
14090 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14092 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14093 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14094 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14096 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14098 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14099 aarch64_mem_pair_offset.
14101 2014-08-01 Jiong Wang <jiong.wang@arm.com>
14103 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14105 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14106 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14108 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
14110 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14112 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
14114 PR regression/61510
14115 * cgraphunit.c (analyze_functions): Use get_create rather than get
14116 for decls which are clones of abstract functions.
14118 2014-08-01 Martin Liska <mliska@suse.cz>
14120 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14121 * ipa-prop.h (count_formal_params): Global function created from static.
14122 * ipa-prop.c (count_formal_params): Likewise.
14123 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14124 profiles for semantically equivalent functions.
14125 * passes.c (do_per_function): If we load body of a function
14126 during WPA, this condition should behave same.
14127 * varpool.c (ctor_for_folding): More tolerant assert for variable
14128 aliases created during WPA.
14130 2014-08-01 Martin Liska <mliska@suse.cz>
14132 * doc/invoke.texi (Options That Control Optimization): Documentation
14133 for -foptimize-strlen introduced. Optimization levels default options
14136 2014-08-01 Jakub Jelinek <jakub@redhat.com>
14138 * opts.c (common_handle_option): Handle -fsanitize=alignment.
14139 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14140 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14142 * stor-layout.h (min_align_of_type): New prototype.
14143 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14144 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
14146 * ubsan.c: Include builtins.h.
14147 (ubsan_expand_bounds_ifn): Change return type to bool,
14148 always return true.
14149 (ubsan_expand_null_ifn): Change return type to bool, change
14150 argument to gimple_stmt_iterator *. Handle both null and alignment
14151 sanitization, take type from ckind argument's type rather than
14153 (instrument_member_call): Removed.
14154 (instrument_mem_ref): Remove t argument, add mem and base arguments.
14155 Handle both null and alignment sanitization, don't say whole
14156 struct access is member access. Build 3 argument IFN_UBSAN_NULL
14157 call instead of 2 argument.
14158 (instrument_null): Adjust instrument_mem_ref caller. Don't
14159 instrument calls here.
14160 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14161 like SANITIZE_NULL.
14162 * stor-layout.c (min_align_of_type): New function.
14163 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14164 Or it into SANITIZE_UNDEFINED.
14165 * doc/invoke.texi (-fsanitize=alignment): Document.
14167 2014-07-31 Andi Kleen <ak@linux.intel.com>
14169 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14171 2014-07-31 Andi Kleen <ak@linux.intel.com>
14173 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14175 (vn_reference_compute_hash): Dito.
14176 (vn_nary_op_compute_hash): Dito.
14177 (vn_phi_compute_hash): Dito.
14178 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14180 2014-07-31 Andi Kleen <ak@linux.intel.com>
14182 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14183 Rename to inchash:add_expr_commutative. Convert to inchash.
14184 (iterative_hash_hashable_expr): Rename to
14185 inchash:add_hashable_expr. Convert to inchash.
14186 (avail_expr_hash): Dito.
14188 2014-07-31 Andi Kleen <ak@linux.intel.com>
14190 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14191 Convert to inchash.
14193 2014-07-31 Andi Kleen <ak@linux.intel.com>
14195 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14197 2014-07-31 Andi Kleen <ak@linux.intel.com>
14199 * Makefile.in (OBJS): Add rtlhash.o
14200 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14201 (loc_checksum): Dito.
14202 (loc_checksum_ordered): Dito.
14203 (hash_loc_operands): Dito.
14205 (hash_loc_list): Dito.
14206 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14207 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14208 * rtlhash.c: New file.
14209 * rtlhash.h: New file.
14211 2014-07-31 Andi Kleen <ak@linux.intel.com>
14213 * inchash.h (inchash): Change inchash class to namespace.
14214 (class hash): ... Rename from inchash.
14215 (add_object): Move from macro to class template.
14216 * lto-streamer-out.c (hash_tree): Change inchash
14218 * tree.c (build_type_attribute_qual_variant): Dito.
14219 (type_hash_list): Dito.
14220 (attribute_hash_list): Dito.
14221 (iterative_hstate_expr): Rename to inchash::add_expr
14222 (build_range_type_1): Change inchash to inchash::hash
14223 and use hash::add_expr.
14224 (build_array_type_1): Dito.
14225 (build_function_type): Dito
14226 (build_method_type_directly): Dito.
14227 (build_offset_type): Dito.
14228 (build_complex_type): Dito.
14229 (make_vector_type): Dito.
14230 * tree.h (iterative_hash_expr): Dito.
14232 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
14234 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14236 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14238 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14239 correct alphabetical position.
14240 (vpaddd_f64): Rewrite using builtins.
14241 (vpaddd_s64): Move to correct alphabetical position.
14244 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
14247 * config/sh/sh.c (sh_legitimate_address_p,
14248 sh_legitimize_reload_address): Handle reg+reg address modes when
14249 ALLOW_INDEXED_ADDRESS is false.
14250 * config/sh/predicates.md (general_movsrc_operand,
14251 general_movdst_operand): Likewise.
14253 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14255 * config/aarch64/aarch64-builtins.c
14256 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14259 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
14261 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14262 the generated mask based on BYTES_BIG_ENDIAN.
14263 (aarch64_simd_check_vect_par_cnst_half): New.
14264 * config/aarch64/aarch64-protos.h
14265 (aarch64_simd_check_vect_par_cnst_half): New.
14266 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14267 the check out to aarch64_simd_check_vect_par_cnst_half.
14268 (vect_par_cnst_lo_half): Likewise.
14269 * config/aarch64/aarch64-simd.md
14270 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14271 (move_hi_quad_<mode>): Always generate a low mask.
14273 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14275 * doc/invoke.texi (AVR Options): Add documentation about
14276 __AVR_DEVICE_NAME__ built-in macro.
14278 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
14281 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14282 constraints are satisfied.
14283 (<shift>di3_neon): Likewise.
14285 2014-07-31 Richard Biener <rguenther@suse.de>
14287 PR tree-optimization/61964
14288 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14289 by structural equality.
14291 2014-07-31 Yury Gribov <y.gribov@samsung.com>
14293 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14294 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14295 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14297 * gcc.c (sanitize_spec_function): Support new option.
14298 (SANITIZER_SPEC): Remove now redundant check.
14299 * opts.c (common_handle_option): Support new option.
14300 (finish_options): Check for incompatibilities.
14301 * toplev.c (process_options): Split userspace-specific checks.
14303 2014-07-31 Richard Biener <rguenther@suse.de>
14305 * lto-streamer.h (struct output_block): Remove global.
14306 (struct data_in): Remove labels, num_named_labels and
14307 num_unnamed_labels.
14308 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14309 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14311 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
14314 * common.opt (-Wreturn-local-addr): Moved from c.opt.
14315 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14316 (isolate_path): New argument to avoid inserting a trap.
14317 (find_implicit_erroneous_behaviour): Handle returning the address
14318 of a local variable.
14319 (find_explicit_erroneous_behaviour): Likewise.
14321 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
14324 * toplev.c (init_random_seed): Move piece of code never called to
14326 (set_random_seed): see above.
14328 2014-07-31 Tom de Vries <tom@codesourcery.com>
14330 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14332 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
14334 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14335 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14337 2014-07-31 Richard Biener <rguenther@suse.de>
14339 * data-streamer.h (streamer_write_data_stream): Declare here,
14341 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
14342 * lto-cgraph.c (lto_output_node): Adjust.
14343 (lto_output_varpool_node): Likewise.
14344 * data-streamer-out.c (streamer_string_index): Likewise.
14345 (streamer_write_data_stream, lto_append_block): Move from ...
14346 * lto-section-out.c (lto_output_data_stream,
14347 lto_append_block): ... here.
14349 2014-07-30 Mike Stump <mikestump@comcast.net>
14351 * configure.ac: Also check for popen.
14352 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14353 * configure: Regenerate.
14354 * config.in: Regenerate.
14356 2014-07-30 Martin Jambor <mjambor@suse.cz>
14358 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14359 parameter to gimple.
14361 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14363 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14364 address as second parameter to __tpf_eh_return routine.
14366 2014-07-30 Jiong Wang <jiong.wang@arm.com>
14368 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14371 2014-07-30 Tom Tromey <tromey@redhat.com>
14374 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14375 * doc/extend.texi (Type Attributes): Document designated_init
14378 2014-07-30 Roman Gareev <gareevroman@gmail.com>
14380 * graphite-isl-ast-to-gimple.c:
14381 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14382 (gcc_expression_from_isl_expression): Pass type to
14383 gcc_expression_from_isl_ast_expr_id.
14385 2014-07-30 Richard Biener <rguenther@suse.de>
14387 * lto-streamer.h (lto_write_data): New function.
14388 * langhooks.c (lhd_append_data): Do not free block.
14389 * lto-section-out.c (lto_write_data): New function writing
14390 raw data to the current section.
14391 (lto_write_stream): Adjust for langhook semantic change.
14392 (lto_destroy_simple_output_block): Write header directly.
14393 * lto-opts.c (lto_write_options): Write options directly.
14394 * lto-streamer-out.c (produce_asm): Write heaeder directly.
14395 (lto_output_toplevel_asms): Likewise.
14396 (copy_function_or_variable): Copy data directly.
14397 (write_global_references): Output index table directly.
14398 (lto_output_decl_state_refs): Likewise.
14399 (write_symbol): Write data directly.
14400 (produce_symtab): Adjust.
14401 (produce_asm_for_decls): Output header and refs directly.
14403 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14405 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14406 to speculative_targets
14407 (get_class_context): Fix handling of contextes without outer type;
14408 avoid matching non-polymorphic types in LTO.
14409 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14410 parameter to speculative_targetsp; handle speculation.
14411 (dump_possible_polymorphic_call_targets): Update dumping.
14413 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
14415 * common.opt (Wodr): Enable by default.
14417 2014-07-29 Olivier Hainque <hainque@adacore.com>
14419 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14421 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
14424 * gengtype.c (strtoken): New function.
14425 (create_user_defined_type): Replace strtok with strtoken.
14427 2014-07-29 Nathan Sidwell <nathan@acm.org>
14429 * gcov-io.c (gcov_var): Make hidden.
14430 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14431 (gcov_do_dump): Declare.
14432 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14434 2014-07-29 Martin Jambor <mjambor@suse.cz>
14436 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14437 parameter to gimple.
14438 (sra_modify_assign): Likewise.
14440 2014-07-29 Richard Biener <rguenther@suse.de>
14442 PR middle-end/52478
14443 * expr.c (expand_expr_real_2): Revert last change.
14445 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14447 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14448 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14449 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14451 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14452 (contains_type_p): Forward declare.
14453 (polymorphic_call_target_hasher::hash): Hash speculative info.
14454 (polymorphic_call_target_hasher::equal): Compare speculative info.
14455 (get_class_context): Handle speuclation.
14456 (contains_type_p): Update.
14457 (get_polymorphic_call_info_for_decl): Update.
14458 (walk_ssa_copies): Break out from ...
14459 (get_polymorphic_call_info): ... here; set speculative context
14461 * ipa-prop.c (ipa_write_indirect_edge_info,
14462 ipa_read_indirect_edge_info): Stream speculative context.
14463 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14464 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14465 SPECULATIVE_MAYBE_DERIVED_TYPE).
14466 (possible_polymorphic_call_targets overriders): Update.
14467 (dump_possible_polymorphic_call_targets overriders): Update.
14468 (dump_possible_polymorphic_call_target_p overriders): Update.
14470 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
14472 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14473 ipa-devirt path; fix thinko there.
14475 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
14477 * config/i386/i386.c (ix86_return_in_memory): Replace one
14478 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14480 2014-07-28 Marek Polacek <polacek@redhat.com>
14482 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
14484 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
14486 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14487 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14488 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14489 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14490 (USE_LD_AS_NEEDED): Likewise.
14491 (ASM_APP_ON): Likewise.
14492 (ASM_APP_OFF): Likewise.
14493 (TARGET_POSIX_IO): Likewise.
14494 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14495 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14496 (USE_LD_AS_NEEDED): Likewise.
14497 (ASM_APP_ON): Likewise.
14498 (ASM_APP_OFF): Likewise.
14499 (TARGET_POSIX_IO): Likewise.
14501 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
14503 PR middle-end/61734
14504 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14505 operators other than the equality operators.
14507 2014-07-28 Richard Biener <rguenther@suse.de>
14509 PR middle-end/52478
14510 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14511 sure to register SImode ones, not only >= word_mode ones.
14512 * expr.c (expand_expr_real_2): When expanding -ftrapv
14513 binops do not use OPTAB_LIB_WIDEN.
14515 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
14517 PR middle-end/61919
14518 * tree-outof-ssa.c (insert_partition_copy_on_edge)
14519 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14520 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14521 inserting them in the insn stream.
14523 2014-07-28 Marek Polacek <polacek@redhat.com>
14525 PR middle-end/61913
14526 * common.opt (Wodr): Add Var.
14528 2014-07-28 Richard Biener <rguenther@suse.de>
14530 PR tree-optimization/61921
14531 * tree-ssa-structalias.c (create_variable_info_for_1): Check
14532 if there is a varpool node before dereferencing it.
14534 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14536 * graphite-sese-to-poly.c:
14537 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14538 id of the pbb), which contains pointer to the pbb1.
14540 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14542 2014-07-28 Roman Gareev <gareevroman@gmail.com>
14544 * graphite-isl-ast-to-gimple.c:
14545 (graphite_create_new_guard): New function.
14546 (translate_isl_ast_node_if): New function.
14547 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14549 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14551 2014-07-27 Anthony Green <green@moxielogic.com>
14553 * config.gcc: Add moxie-*-moxiebox* configuration.
14554 * config/moxie/moxiebox.h: New file.
14556 2014-07-26 Andrew Pinski <apinski@cavium.com>
14558 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14559 from the read only register.
14561 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14563 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14564 as the allocation class if it isn't likely to be spilled.
14566 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
14568 * rtl.h (tls_referenced_p): Declare.
14569 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14570 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14571 (mips_cannot_force_const_mem): Use tls_referenced_p.
14572 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14573 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14574 instead of pa_tls_referenced_p.
14575 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14576 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14577 (pa_legitimate_constant_p): Likewise.
14578 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14579 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14580 (rs6000_cannot_force_const_mem, rs6000_emit_move)
14581 (rs6000_address_for_altivec): Use tls_referenced_p instead of
14582 rs6000_tls_referenced_p.
14583 (rs6000_tls_symbol_ref_1): Delete.
14585 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
14588 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14589 Optimize inverse of a VEC_CONCAT.
14591 2014-07-25 Xinliang David Li <davidxl@google.com>
14593 * params.def: New parameter.
14594 * coverage.c (get_coverage_counts): Check new flag.
14595 (coverage_compute_profile_id): Check new flag.
14596 (coverage_begin_function): Check new flag.
14597 (coverage_end_function): Check new flag.
14598 * value-prof.c (coverage_node_map_initialized_p): New function.
14599 (init_node_map): Populate map with all functions.
14600 * doc/invoke.texi: Document new parameter.
14602 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
14603 Richard Biener <rguenther@suse.de>
14605 * lto-streamer-out.c (struct sccs): Turn to ...
14606 (class DFS): ... this one; refactor the DFS walk so it can
14607 be re-done on per-SCC basis.
14608 (DFS::DFS): New constructor.
14609 (DFS::~DFS): New destructor.
14610 (hash_tree): Add new MAP argument holding in-SCC hash values;
14611 remove POINTER_TYPE hashing hack.
14612 (scc_entry_compare): Rename to ...
14613 (DFS::scc_entry_compare): ... this one.
14614 (hash_scc): Rename to ...
14615 (DFS::hash_scc): ... this one; pass output_block instead
14616 of streamer_cache; work harder to get unique and stable SCC
14618 (DFS_write_tree): Rename to ...
14619 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14620 (lto_output_tree): Update.
14622 2014-07-25 Andi Kleen <ak@linux.intel.com>
14624 * lto-streamer-out.c (hash_tree): Convert to inchash.
14626 2014-07-25 Andi Kleen <ak@linux.intel.com>
14628 * tree.c (build_type_attribute_qual_variant): Use inchash.
14629 (type_hash_list): Dito.
14630 (attribute_hash_list): Dito
14631 (iterative_hstate_expr): Dito.
14632 (iterative_hash_expr): Dito.
14633 (build_range_type_1): Dito.
14634 (build_array_type_1): Dito.
14635 (build_function_type): Dito.
14636 (build_method_type_directly): Dito.
14637 (build_offset_type): Dito.
14638 (build_complex_type): Dito.
14639 (make_vector_type): Dito.
14640 * tree.h (iterative_hash_expr): Add compat wrapper.
14641 (iterative_hstate_expr): Add.
14643 2014-07-25 Andi Kleen <ak@linux.intel.com>
14645 * Makefile.in (OBJS): Add inchash.o.
14646 (PLUGIN_HEADERS): Add inchash.h.
14647 * ipa-devirt.c: Include inchash.h.
14648 * lto-streamer-out.c: Dito.
14649 * tree-ssa-dom.c: Dito.
14650 * tree-ssa-pre.c: Dito.
14651 * tree-ssa-sccvn.c: Dito.
14652 * tree-ssa-tail-merge.c: Dito.
14654 * tree.c (iterative_hash_hashval_t): Move to ...
14655 (iterative_hash_host_wide_int): Move to ...
14656 * inchash.c: Here. New file.
14657 * tree.h (iterative_hash_hashval_t): Move to ...
14658 (iterative_hash_host_wide_int): Move to ...
14659 * inchash.h: Here. New file.
14661 2014-07-25 Richard Biener <rguenther@suse.de>
14663 PR middle-end/61762
14664 PR middle-end/61894
14665 * fold-const.c (native_encode_int): Add and handle offset
14666 parameter to do partial encodings of expr.
14667 (native_encode_fixed): Likewise.
14668 (native_encode_real): Likewise.
14669 (native_encode_complex): Likewise.
14670 (native_encode_vector): Likewise.
14671 (native_encode_string): Likewise.
14672 (native_encode_expr): Likewise.
14673 * fold-const.c (native_encode_expr): Add offset parameter
14675 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14676 (fold_ctor_reference): Handle all reads from tcc_constant
14679 2014-07-25 Richard Biener <rguenther@suse.de>
14681 * tree-inline.c (estimate_move_cost): Mark speed_p argument
14682 as possibly unused.
14684 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14686 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14688 2014-07-24 Kyle McMartin <kyle@redhat.com>
14690 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14692 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14694 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14696 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14698 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14699 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14700 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14702 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14704 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14705 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14706 aggregate types. Instead, *all* aggregate types, except for single-
14707 element or homogeneous float/vector aggregates, are quadword-aligned
14708 if required by their type alignment. Issue -Wpsabi note when a type
14709 is now treated differently than before.
14711 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14713 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14714 does not fit fully into floating-point registers, and there is still
14715 space in the register parameter area, use GPRs to pass those parts
14716 of the argument. Issue -Wpsabi note if any parameter is now treated
14717 differently than before.
14718 (rs6000_arg_partial_bytes): Update.
14720 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
14722 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14724 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14726 * rtl.h (target_rtl): Remove lang_dependent_initialized.
14727 * toplev.c (initialize_rtl): Don't use it. Move previously
14728 "language-dependent" calls to...
14729 (backend_init): ...here.
14730 (lang_dependent_init_target): Don't set lang_dependent_initialized.
14731 Assert that RTL initialization hasn't happend yet.
14733 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14735 PR rtl-optimization/61629
14736 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14737 they have already been initialized.
14739 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
14741 PR middle-end/61268
14742 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14743 DECL_INCOMING_RTL and entry_parm.
14744 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14745 * calls.c (load_register_parameters): Likewise argument values.
14746 (emit_library_call_value_1, store_one_arg): Likewise argument
14748 * config/i386/i386.c (assign_386_stack_local): Likewise the local
14750 * explow.c (validize_mem): Modify the argument in-place.
14752 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14754 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14755 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14757 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14759 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14760 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14762 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14764 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14765 (aarch64_save_callee_saves): New parameter "skip_wb".
14766 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14768 2014-07-24 Jiong Wang <jiong.wang@arm.com>
14770 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14772 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14774 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14776 * graphite-isl-ast-to-gimple.c:
14777 (graphite_create_new_loop): Add calling of isl_id_free to properly
14778 decrement reference counts.
14780 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14782 2014-07-24 Martin Liska <mliska@suse.cz>
14783 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14785 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14786 (rs6000_code_end): Likewise.
14788 2014-07-24 Martin Liska <mliska@suse.cz>
14790 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14791 symtab_node funtion used.
14792 (rs6000_xcoff_declare_object_name): Likewise.
14794 2014-07-24 Martin Liska <mliska@suse.cz>
14796 * cgraphunit.c (compile): Correct function used.
14798 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14800 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14803 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
14806 * varasm.c (bss_initializer_p): Handle offlined ctors.
14807 (align_variable, get_variable_align): Likewise.
14808 (make_decl_one_only): Likewise.
14809 (default_binds_local_p_1): Likewise.
14810 (decl_binds_to_current_def_p): Likewise.
14811 (get_variable_section): Get constructor if it is offlined.
14812 (assemble_variable_contents): Sanity check that the caller
14813 streamed in the ctor in LTO.
14815 2014-07-24 Roman Gareev <gareevroman@gmail.com>
14817 * graphite-isl-ast-to-gimple.c:
14818 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14819 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14820 isl_ast_op_pdiv_r to the different case.
14822 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14824 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14826 PR middle-end/61876
14827 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14828 when flag_errno_math is on.
14830 2014-07-24 Martin Liska <mliska@suse.cz>
14832 * cgraph.h (varpool_node):
14833 (availability get_availability (void)):
14834 created from cgraph_variable_initializer_availability
14835 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14836 created from: cgraph_variable_initializer_availability
14837 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14838 (void finalize_named_section_flags (void)):
14839 created from varpool_finalize_named_section_flags
14840 (bool assemble_decl (void)): created from varpool_assemble_decl
14841 (void analyze (void)): created from varpool_analyze_node
14842 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14843 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14844 (void remove_initializer (void)): created from varpool_remove_initializer
14845 (tree get_constructor (void)): created from varpool_get_constructor
14846 (bool externally_visible_p (void)): created from varpool_externally_visible_p
14847 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14848 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14849 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14850 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14851 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14852 (static bool output_variables (void)): created from varpool_output_variables
14853 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14854 created from varpool_extra_name_alias
14855 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14856 (static void dump_varpool (FILE *f)): created from dump_varpool
14857 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14858 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14859 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14860 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14861 (void assemble_aliases (void)): created from assemble_aliases
14863 2014-07-24 Martin Liska <mliska@suse.cz>
14865 * cgraph.h (symtab_node):
14866 (void register_symbol (void)): created from symtab_register_node
14867 (void remove (void)): created from symtab_remove_node
14868 (void dump (FILE *f)): created from dump_symtab_node
14869 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14870 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14871 (struct ipa_ref *add_reference (symtab_node *referred_node,
14872 enum ipa_ref_use use_type)): created from add_reference
14873 (struct ipa_ref *add_reference (symtab_node *referred_node,
14874 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14875 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14876 gimple stmt)): created from maybe_add_reference
14877 (bool semantically_equivalent_p (symtab_node *target)): created from
14878 symtab_semantically_equivalent_p
14879 (void remove_from_same_comdat_group (void)): created from
14880 remove_from_same_comdat_group
14881 (void add_to_same_comdat_group (symtab_node *old_node)): created from
14882 symtab_add_to_same_comdat_group
14883 (void dissolve_same_comdat_group_list (void)): created from
14884 symtab_dissolve_same_comdat_group_list
14885 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14886 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14887 created from symtab_alias_ultimate_target
14888 (inline symtab_node *next_defined_symbol (void)): created from
14889 symtab_next_defined_symbol
14890 (bool resolve_alias (symtab_node *target)): created from
14891 symtab_resolve_alias
14892 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14893 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14894 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14895 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14896 (void set_section (const char *section)): created from set_section_1
14897 (enum availability get_availability (void)): created from symtab_node_availability
14898 (void make_decl_local (void)): created from symtab_make_decl_local
14899 (bool real_symbol_p (void)): created from symtab_read_node
14900 (can_be_discarded_p (void)): created from symtab_can_be_discarded
14901 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14902 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14903 symtab_in_same_comdat_p;
14904 (bool address_taken_from_non_vtable_p (void)): created from
14905 address_taken_from_non_vtable_p
14906 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14907 (static void dump_table (FILE *)): created from dump_symtab
14908 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14909 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14910 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14911 symtab_used_from_object_file_p
14912 (void dump_base (FILE *)): created from dump_symtab_base
14913 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14914 (void unregister (void)): created from symtab_unregister_node
14915 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14916 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14917 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14918 symtab_nonoverwritable_alias_1
14919 * cgraph.h (cgraph_node):
14920 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14921 created from cgraph_remove_node_and_inline_clones
14922 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14923 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14924 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14925 (cgraph_node *function_symbol (enum availability *avail = NULL)):
14926 created from cgraph_function_node
14927 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14928 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14929 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14930 created from cgraph_create_clone
14931 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14932 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14933 created from cgraph_create_virtual_clone
14934 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14935 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14936 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14937 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14938 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14939 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14940 created from cgraph_function_version_info
14941 (struct cgraph_function_version_info *insert_new_function_version (void)):
14942 created from insert_new_cgraph_node_version
14943 (struct cgraph_function_version_info *function_version (void)): created from
14944 get_cgraph_node_version
14945 (void analyze (void)): created from analyze_function
14946 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14947 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14948 tree real_alias) cgraph_add_thunk
14949 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14950 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14951 created from cgraph_function_or_thunk_node
14952 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14953 created from expand_thunk
14954 (void reset (void)): created from cgraph_reset_node
14955 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14956 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14957 (void remove (void)): created from cgraph_remove_node
14958 (void dump (FILE *f)): created from dump_cgraph_node
14959 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14960 (bool get_body (void)): created from cgraph_get_body
14961 (void release_body (void)): created from cgraph_release_function_body
14962 (void unnest (void)): created from cgraph_unnest_node
14963 (void make_local (void)): created from cgraph_make_node_local
14964 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14965 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14966 gcov_type count, int freq)): created from cgraph_create_edge
14967 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14968 gcov_type count, int freq)): created from cgraph_create_indirect_edge
14969 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14970 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14971 created from cgraph_create_edge_including_clones
14972 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14973 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14974 (void remove_callers (void)): created from cgraph_node_remove_callers
14975 (void remove_callees (void)): created from cgraph_node_remove_callees
14976 (enum availability get_availability (void)): created from cgraph_function_body_availability
14977 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14978 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14979 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14980 (void call_duplication_hooks (cgraph_node *node2)): created from
14981 cgraph_call_node_duplication_hooks
14982 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14983 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14984 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14985 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14986 (void call_function_insertion_hooks (void)):
14987 created from cgraph_call_function_insertion_hooks
14988 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14989 (bool local_p (void)): created from cgraph_local_node
14990 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14991 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14992 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14993 (inline bool only_called_directly_or_aliased_p (void)):
14994 created from cgraph_only_called_directly_or_aliased_p
14995 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14996 created from cgraph_will_be_removed_from_program_if_no_direct_calls
14997 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14998 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14999 (bool can_remove_if_no_direct_calls_p (void)):
15000 created from cgraph_can_remove_if_no_direct_calls_p
15001 (inline bool has_gimple_body_p (void)):
15002 created from cgraph_function_with_gimple_body_p
15003 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15004 (static void dump_cgraph (FILE *f)): created from dump_cgraph
15005 (static inline void debug_cgraph (void)): created from debug_cgraph
15006 (static void record_function_versions (tree decl1, tree decl2)):
15007 created from record_function_versions
15008 (static void delete_function_version (tree decl)):
15009 created from delete_function_version
15010 (static void add_new_function (tree fndecl, bool lowered)):
15011 created from cgraph_add_new_function
15012 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15013 (static cgraph_node * create (tree decl)): created from cgraph_create_node
15014 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15015 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15016 (static cgraph_node *get_for_asmname (tree asmname)):
15017 created from cgraph_node_for_asm
15018 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15019 created from cgraph_same_body_alias
15020 (static bool used_from_object_file_p_worker (cgraph_node *node,
15021 void *): new function
15022 (static bool non_local_p (cgraph_node *node, void *)):
15023 created from cgraph_non_local_node_p_1
15024 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15025 created from verify_cgraph
15026 (static bool make_local (cgraph_node *node, void *)):
15027 created from cgraph_make_node_local
15028 (static cgraph_node *create_alias (tree alias, tree target)):
15029 created from cgraph_create_function_alias
15030 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15031 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15032 created from cgraph_create_edge_1
15033 * cgraph.h (varpool_node):
15034 (void remove (void)): created from varpool_remove_node
15035 (void dump (FILE *f)): created from dump_varpool_node
15037 2014-07-24 Richard Biener <rguenther@suse.de>
15040 * tree-ssa-structalias.c (create_variable_info_for_1):
15041 Use varpool_get_constructor.
15042 (create_variable_info_for): Likewise.
15044 2014-07-24 Jiong Wang <jiong.wang@arm.com>
15046 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15047 subtract outgoing area size when restoring stack_pointer_rtx.
15049 2014-07-24 Nick Clifton <nickc@redhat.com>
15051 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15052 that operations are taking place in parallel.
15053 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15055 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
15057 * omp-low.c (extract_omp_for_data): Add missing break statement.
15059 2014-07-24 Richard Biener <rguenther@suse.de>
15061 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15062 * tree-inline.c (estimate_move_cost): Add speed_p parameter
15063 and adjust MOVE_RATIO query accordingly.
15064 (estimate_num_insns): Adjust callers.
15065 * ipa-prop.c (ipa_populate_param_decls): Likewise.
15066 * ipa-cp.c (gather_context_independent_values,
15067 estimate_local_effects): Likewise.
15068 * ipa-split.c (consider_split): Likewise.
15070 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
15072 * config/i386/driver-i386.c: Remove names of unused arguments and
15073 unnecessary unused attributes.
15074 * config/i386/host-mingw32.c: Likewise.
15075 * config/i386/i386.c: Likewise.
15076 * config/i386/winnt-stubs.c: Likewise.
15077 * config/i386/winnt.c: Likewise.
15079 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15081 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15082 (aarch64_gen_loadwb_pair): New helper function.
15083 (aarch64_expand_epilogue): Simplify code using new helper functions.
15084 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15086 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15088 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15089 (aarch64_gen_storewb_pair): New helper function.
15090 (aarch64_expand_prologue): Simplify code using new helper functions.
15091 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15093 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15095 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15096 Rename to aarch64_save_callee_saves, remove restore code.
15097 (aarch64_restore_callee_saves): New function.
15099 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15101 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15102 (aarch64_save_callee_saves): New function to handle reg save
15103 for both core and vectore regs.
15105 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15107 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15108 (aarch64_gen_store_pair): New helper function.
15109 (aarch64_save_or_restore_callee_save_registers)
15110 (aarch64_save_or_restore_fprs): Use new helper functions.
15112 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15114 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15115 (aarch64_save_or_restore_callee_save_registers)
15116 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15118 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15120 * config/aarch64/aarch64.c
15121 (aarch64_save_or_restore_callee_save_registers)
15122 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15124 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15126 * config/aarch64/aarch64.c
15127 (aarch64_save_or_restore_callee_save_registers)
15128 (aarch64_save_or_restore_fprs): Remove 'increment'.
15130 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15132 * config/aarch64/aarch64.c
15133 (aarch64_save_or_restore_callee_save_registers)
15134 (aarch64_save_or_restore_fprs): Use register offset in
15135 cfun->machine->frame.reg_offset.
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): Remove base_rtx.
15143 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15145 * config/aarch64/aarch64.c
15146 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15147 to 'start_offset'. Remove local variable 'start_offset'.
15149 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15151 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15152 type to HOST_WIDE_INT.
15154 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15156 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15157 (aarch64_save_or_restore_fprs)
15158 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15160 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15162 * config/arm/t-rtems-eabi: Add
15163 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15164 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15165 mbig-endian/mthumb/march=armv7-r, and
15166 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15169 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
15170 Chris Johns <chrisj@rtems.org>
15171 Joel Sherrill <joel.sherrill@oarcorp.com>
15173 * config.gcc: Add nios2-*-rtems*.
15174 * config/nios2/rtems.h: New file.
15175 * gcc/config/nios2/t-rtems: New file.
15177 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15180 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15181 constant numbers, not general constants.
15182 (rs6000_expand_vector_init): Ditto.
15184 2014-07-23 Nathan Sidwell <nathan@acm.org>
15186 * gcov-tool.c (gcov_list): Declare here.
15187 (set_gcov_list): Remove.
15188 (gcov_output_files): Set gcov_list directly.
15190 2014-07-23 Host Schirmeier <horst@schirmeier.com>
15192 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15194 2014-07-23 Jiong Wang <jiong.wang@arm.com>
15196 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15197 callee-saved registers are available for padding purpose
15198 and r3 is not mandatory, then prefer use those callee-saved
15201 2014-07-23 Richard Biener <rguenther@suse.de>
15203 * params.def (PARAM_MAX_COMBINE_INSNS): New.
15204 * combine.c: Include statistics.h and params.h.
15205 (combine_instructions): Guard three and four insn combines
15206 with max-combine-insns value. Record statistics for combines
15208 * doc/invoke.texi (max-combine-insns): Document new param.
15210 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15212 * graphite-isl-ast-to-gimple.c:
15213 (translate_isl_ast_node_block): New function.
15214 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15216 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15217 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15219 2014-07-23 Roman Gareev <gareevroman@gmail.com>
15221 * graphite-isl-ast-to-gimple.c:
15222 (get_max_schedule_dimensions): New function.
15223 (extend_schedule): Likewise.
15224 (generate_isl_schedule): Add calling of extend_schedule and
15225 get_max_schedule_dimensions.
15227 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15229 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15230 (case UNSPEC): Handle UNSPEC_RBIT.
15232 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15234 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15235 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15237 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15239 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15241 2014-07-22 Roman Gareev <gareevroman@gmail.com>
15243 * graphite-isl-ast-to-gimple.c:
15244 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15245 (ivs_params_clear):
15246 (build_iv_mapping): New function.
15247 (translate_isl_ast_node_user): Likewise.
15248 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15250 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15251 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15252 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15254 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15257 * config/arm/arm.md (setmem): New pattern.
15258 * config/arm/arm-protos.h (struct tune_params): New fields.
15259 (arm_gen_setmem): New prototype.
15260 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15261 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15262 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15263 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15264 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15265 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15266 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15267 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15268 (arm_const_inline_cost): New function.
15269 (arm_block_set_max_insns): New function.
15270 (arm_block_set_non_vect_profit_p): New function.
15271 (arm_block_set_vect_profit_p): New function.
15272 (arm_block_set_unaligned_vect): New function.
15273 (arm_block_set_aligned_vect): New function.
15274 (arm_block_set_unaligned_non_vect): New function.
15275 (arm_block_set_aligned_non_vect): New function.
15276 (arm_block_set_vect, arm_gen_setmem): New functions.
15278 2014-07-21 Bin Cheng <bin.cheng@arm.com>
15280 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15282 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
15285 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15286 out of #ifdef __OPTIMIZE__.
15288 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15290 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15291 different trapping status if -fnon-call-exceptions is enabled.
15293 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
15295 * expr.c (store_field): Handle VOIDmode for calls that return values
15296 in multiple locations.
15298 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15300 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
15301 (altivec_vsldoi_<mode>): Likewise.
15303 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15305 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15306 to the number of characters in the line.
15308 2014-07-20 Roman Gareev <gareevroman@gmail.com>
15310 * graphite-isl-ast-to-gimple.c: Add using of
15311 build_nonstandard_integer_type instead of int128_integer_type_node.
15313 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
15315 * toplev.c (output_stack_usage): Adjust the location of the warning.
15317 2014-07-19 Daniel Cederman <cederman@gaisler.com>
15319 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15320 (*membar_storeload): Disable for LEON3.
15322 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15324 PR rtl-optimization/61461
15325 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15327 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
15330 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15331 Fix instruction constraint.
15332 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15334 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
15336 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15338 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
15340 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15341 GNU coding standards.
15342 (nds32_register_move_cost): Likewise.
15343 (nds32_memory_move_cost): Likewise.
15344 (nds32_address_cost): Likewise.
15346 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15348 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15350 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
15352 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15353 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15354 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15355 (HAVE_sync_compare_and_swapqi): Define.
15356 (HAVE_sync_compare_and_swaphi): Likewise.
15357 (HAVE_sync_compare_and_swapsi): Likewise.
15359 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
15361 * config/mips/p5600.md: Add missing cpu tests.
15363 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15365 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15366 (vmla_f64): Likewise.
15367 (vfms_f64): Likewise.
15368 (vmls_f64): Likewise.
15370 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15372 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15373 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15375 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15377 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15378 (vmlal_high_lane_s32): Likewise.
15379 (vmlal_high_lane_u16): Likewise.
15380 (vmlal_high_lane_u32): Likewise.
15381 (vmlsl_high_lane_s16): Likewise.
15382 (vmlsl_high_lane_s32): Likewise.
15383 (vmlsl_high_lane_u16): Likewise.
15384 (vmlsl_high_lane_u32): Likewise.
15386 2014-07-17 Terry Guo <terry.guo@arm.com>
15388 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15389 (alus_reg): Renamed to alus_sreg.
15390 * config/arm/arm-fixed.md: Change type of non-dsp instructions
15391 from alu_reg to alu_sreg. Change type of dsp instructions from
15392 alu_reg to alu_dsp_reg.
15393 * config/arm/thumb1.md: Likewise.
15394 * config/arm/thumb2.md: Likewise.
15395 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15396 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15397 with alu_sreg and alus_sreg.
15398 * config/arm/arm1026ejs.md (alu_op): Likewise.
15399 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15400 * config/arm/arm926ejs.md (9_alu_op): Likewise.
15401 * config/arm/fa526.md (526_alu_op): Likewise.
15402 * config/arm/fa606te.md (606te_alu_op): Likewise.
15403 * config/arm/fa626te.md (626te_alu_op): Likewise.
15404 * config/arm/fa726te.md (726te_alu_op): Likewise.
15405 * config/arm/fmp626.md (mp626_alu_op): Likewise.
15406 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15407 alu_sreg, alu_dsp_reg and alus_sreg.
15408 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15409 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15410 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15411 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15412 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15413 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15414 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15415 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15416 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15417 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15418 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15419 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15420 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15421 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15422 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15423 alus_reg to alus_sreg.
15425 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
15427 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15430 2014-07-17 Richard Biener <rguenther@suse.de>
15432 PR rtl-optimization/61801
15433 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15434 don't set reg_pending_barrier if it appears in a debug-insn.
15436 2014-07-16 DJ Delorie <dj@redhat.com>
15438 * config/rx/rx.c (rx_option_override): Fix alignment values.
15439 (rx_align_for_label): Likewise.
15441 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
15444 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15445 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15446 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15448 (cris_print_index, cris_print_operand, cris_constant_index_p)
15449 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15450 (cris_address_cost): Ditto last CONSTANT_P.
15451 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
15452 callers changed. Yield cris_offsettable_symbol for non-PIC
15453 constant symbolic expressions including labels. Yield cris_unspec
15455 (cris_expand_pic_call_address): New parameter MARKERP. Set its
15456 target to pic_offset_table_rtx for calls that will likely go
15457 through PLT, const0_rtx when they can't. All callers changed.
15458 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15459 symbolic expressions to be PICified. Remove second, redundant,
15460 assert on can_create_pseudo_p returning non-zero. Use
15461 replace_equiv_address_nv, not replace_equiv_address, for final
15463 * config/cris/cris.md ("movsi"): Move variable t to pattern
15464 toplevel. Adjust assert for new cris_symbol_type member. Use
15465 CONSTANT_P instead of CONSTANT_ADDRESS_P.
15466 ("*movsi_internal") <case 9>: Make check for valid unspec operands
15468 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15469 ("call", "call_value"): Use second incoming operand as a marker
15470 for pic-offset-table-register being used.
15471 ("*expanded_call_non_v32", "*expanded_call_v32")
15472 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15473 second incoming operand to CALL, match cris_call_type_marker.
15474 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
15475 ("*expanded_call_side"): Ditto. Fix typo in comment.
15476 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15478 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15479 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15480 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
15481 users changed. Add members cris_offsettable_symbol and cris_unspec.
15482 (cris_symbol_type): Rename from cris_pic_symbol_type.
15483 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15485 * config/cris/cris-protos.h (cris_symbol_type_of,
15486 cris_expand_pic_call_address): Adjust prototypes.
15487 (cris_legitimate_constant_p): New prototype.
15489 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15490 an existing tmake_file. Don't add t-slibgcc and t-linux.
15492 2014-07-17 Jason Merrill <jason@redhat.com>
15495 * symtab.c (symtab_remove_from_same_comdat_group): Also
15496 set_comdat_group to NULL_TREE.
15497 (verify_symtab): Fix diagnostic.
15499 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
15502 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15504 2014-07-16 Dodji Seketeli <dodji@redhat.com>
15506 Support location tracking for built-in macro tokens
15507 * input.h (is_location_from_builtin_token): New function declaration.
15508 * input.c (is_location_from_builtin_token): New function definition.
15509 * toplev.c (general_init): Tell libcpp what the pre-defined
15510 spelling location for built-in tokens is.
15512 2014-07-16 Jakub Jelinek <jakub@redhat.com>
15514 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15515 on the FUNCTION_DECL.
15517 2014-07-16 Richard Biener <rguenther@suse.de>
15520 * doc/extend.texi (always_inline): Clarify.
15522 2014-07-15 Eric Christopher <echristo@gmail.com>
15524 * doc/invoke.texi (Link Options): Document -z option.
15526 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
15528 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15529 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15531 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
15533 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15535 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
15537 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15538 varpool_assemble_decl.
15539 * varpool.c (varpool_assemble_decl): Assert that node->definition is
15542 2014-07-15 Michael Matz <matz@suse.de>
15544 PR rtl-optimization/61772
15545 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15547 2014-07-15 Richard Biener <rguenther@suse.de>
15549 * opts.c (default_options_table): Disable bit-ccp at -Og.
15551 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15553 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15555 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
15557 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15558 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15559 call langhook for unknown declaration.
15560 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15561 * tree.h (DECL_ARGUMENTS): Update.
15562 * print-tree.c (print_node): Update.
15563 * tree-core.h (tree_decl_non_common): Remove arguments.
15564 (tree_function_decl): Add arguments.
15566 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
15568 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15570 2014-07-14 Richard Biener <rguenther@suse.de>
15572 PR tree-optimization/61779
15573 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15574 simplifying a condition.
15576 2014-07-14 Richard Biener <rguenther@suse.de>
15578 * builtins.c (c_strlen): Make only_value == 2 really only
15579 affect warning generation.
15581 2014-07-14 Richard Biener <rguenther@suse.de>
15583 PR tree-optimization/61757
15584 PR tree-optimization/61783
15585 PR tree-optimization/61787
15586 * tree-ssa-dom.c (record_equality): Revert canonicalization
15587 change and add comment.
15588 (propagate_rhs_into_lhs): Revert previous fix, removing
15589 loop depth restriction again.
15591 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15593 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15594 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15595 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15596 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15597 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15598 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15599 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15601 2014-07-14 Richard Biener <rguenther@suse.de>
15603 * cgraph.h (decl_in_symtab_p): Make inline.
15605 2014-07-14 Jakub Jelinek <jakub@redhat.com>
15607 PR middle-end/61294
15608 * doc/invoke.texi (-Wmemset-transposed-args): Document.
15611 * config/i386/i386.c (classify_argument): Don't merge classes above
15614 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
15616 * cgraph.h (symtab_node): Add nonzero_address.
15617 (decl_in_symtab_p): Break out from ...
15618 (symtab_get_node): ... here.
15619 * fold-const.c: Include cgraph.h
15620 (tree_single_nonzero_warnv_p): Use symtab to determine
15621 if symbol is non-zero.
15622 * symtab.c (symtab_node::nonzero_address): New method.
15624 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15626 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15627 forgotten in previous commit.
15629 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15631 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15633 * ipa-devirt.c: Include stor-layout.h and intl.h
15634 (odr_subtypes_equivalent_p): New function.
15635 (warn_odr): New function.
15636 (warn_type_mismatch): New function.
15637 (odr_types_equivalent_p): New function.
15638 (add_type_duplicate): Use it.
15639 * common.opt (Wodr): New flag.
15640 * doc/invoke.texi (Wodr): Document new warning.
15642 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
15644 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15645 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15646 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15647 (varpool_get_constructor): Push CTORS_IN timevar.
15648 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15650 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
15652 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15653 Remove VOID_FTYPE_PUSHORT.
15654 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15655 Change code to USHORT_FTYPE_VOID.
15656 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15657 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15658 (ix86_atomic_assign_expand_fenv): Update for
15659 __builtin_ia32_fnstsw changes.
15660 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15661 (fnstsw): Change operand 0 to nonimmediate operand.
15663 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15665 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15666 (varpool_get_constructor): New function.
15667 (varpool_ctor_useable_for_folding_p): Break out from ...
15668 (ctor_for_folding): ... here; use varpool_get_constructor.
15669 (varpool_assemble_decl): Likewise.
15670 * lto-streamer.h (struct output_block): Turn cgraph_node
15672 (lto_input_variable_constructor): Declare.
15673 * ipa-visibility.c (function_and_variable_visibility): Use
15674 varpool_get_constructor.
15675 * cgraph.h (varpool_get_constructor): Declare.
15676 (varpool_ctor_useable_for_folding_p): New function.
15677 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15678 parameter; return error_mark_node for non-trivial constructors.
15679 (lto_write_tree_1, DFS_write_tree): Update use of
15680 get_symbol_initial_value.
15681 (output_function): Update initialization of symbol.
15682 (output_constructor): New function.
15683 (copy_function): Rename to ..
15684 (copy_function_or_variable): ... this one; handle vars too.
15685 (lto_output): Output variable sections.
15686 * lto-streamer-in.c (input_constructor): New function.
15687 (lto_read_body): Rename from ...
15688 (lto_read_body_or_constructor): ... this one; handle vars too.
15689 (lto_input_variable_constructor): New function.
15690 * ipa-prop.c (ipa_prop_write_jump_functions,
15691 ipa_prop_write_all_agg_replacement): Update.
15692 * lto-cgraph.c (compute_ltrans_boundary): Use it.
15693 (output_cgraph_opt_summary): Set symbol to NULL.
15695 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15697 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15698 non-polymorphic types.
15699 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15700 * ipa-devirt.c (types_same_for_odr): Do not explode when one
15701 of types is not polymorphic.
15703 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
15705 * lra-constraints.c (remove_inheritance_pseudos): Process
15706 destination pseudo too.
15708 2014-07-11 Rong Xu <xur@google.com>
15710 * gcov-tool.c (gcov_output_files): Fix build error introduced in
15713 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15715 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15716 * config/avr/avr-devices.c (AVR_MCU): Same.
15717 (avr_mcu_types): add text start value to end of device list.
15718 * config/avr/avr-mcus.def: Add text section start for all devices.
15719 (ata5782): Add new avr5 device.
15721 * config/avr/avr-tables.opt: Regenerate.
15722 * config/avr/avr.h: Add declaration for text section start handler.
15723 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15725 (LINK_SPEC): Include text section start handler to linker spec.
15726 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15727 pass -Ttext option to linker if the text section start for the device
15729 * config/avr/t-multilib: Regenerate.
15730 * doc/avr-mmcu.texi: Regenerate.
15732 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
15734 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15735 * config/rs6000/aix52.h (LINK_SPEC): Same.
15736 * config/rs6000/aix53.h (LINK_SPEC): Same.
15737 * config/rs6000/aix61.h (LINK_SPEC): Same.
15738 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15740 2014-07-11 Roman Gareev <gareevroman@gmail.com>
15742 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15743 (graphite_verify): New function.
15744 (ivs_params_clear): New function.
15745 (gcc_expression_from_isl_ast_expr_id): New function.
15746 (gcc_expression_from_isl_expr_int): New function.
15747 (binary_op_to_tree): New function.
15748 (ternary_op_to_tree): New function.
15749 (unary_op_to_tree): New function.
15750 (nary_op_to_tree): New function.
15751 (gcc_expression_from_isl_expr_op): New function.
15752 (gcc_expression_from_isl_expression): New function.
15753 (graphite_create_new_loop): New function.
15754 (translate_isl_ast_for_loop): New function.
15755 (get_upper_bound): New function.
15756 (graphite_create_new_loop_guard): New function.
15757 (translate_isl_ast_node_for): New function.
15758 (translate_isl_ast): New function.
15759 (add_parameters_to_ivs_params): New function.
15760 (scop_to_isl_ast): New parameter ip.
15761 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15763 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
15765 * config/xtensa/predicates.md (call expander): Update for
15766 DECL_SECTION_NAME being string.
15768 2014-07-11 Richard Biener <rguenther@suse.de>
15770 PR middle-end/61473
15771 * builtins.c (fold_builtin_memory_op): Inline memory moves that
15772 can be implemented with a single load followed by a single store.
15773 (c_strlen): Only warn when only_value is not 2.
15775 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
15777 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15779 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
15782 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15783 (*movhi_bytes): Likewise.
15784 (*arm_movqi_insn): Likewise.
15786 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
15789 * config/alpha/alpha.c: Include tree-pass.h, context.h
15790 and pass_manager.h.
15791 (pass_data_handle_trap_shadows): New pass.
15792 (pass_handle_trap_shadows::gate): New pass gate function.
15793 (make_pass_handle_trap_shadows): New function.
15794 (rest_of_handle_trap_shadows): Ditto.
15796 (alpha_align_insns_1): Rename from alpha_align_insns.
15797 (pass_data_align_insns): New pass.
15798 (pass_align_insns::gate): New pass gate function.
15799 (make_pass_aling_insns): New function.
15800 (rest_of_align_insns): Ditto.
15801 (alpha_align_insns): Ditto.
15803 (alpha_option_override): Declare handle_trap_shadows info
15804 and align_insns_info. Register handle_trap_shadows and align_insns
15806 (alpha_reorg): Do not call alpha_trap_shadows and
15807 alpha_align_insn from here.
15809 (alpha_pad_function_end): Do not skip BARRIERs.
15811 2014-07-10 Rong Xu <xur@google.com>
15813 Add gcov-tool: an offline gcda profile processing tool support.
15814 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15815 (gcov_is_error): Ditto.
15816 (gcov_read_string): Ditto.
15817 (gcov_read_sync): Ditto.
15818 * gcov-io.h: Move counter defines to gcov-counter.def.
15819 * gcov-dump.c (tag_counters): Use gcov-counter.def.
15820 * coverage.c: Ditto.
15821 * gcov-tool.c: Offline gcda profile processing tool.
15822 (unlink_gcda_file): Remove one gcda file.
15823 (unlink_profile_dir): Remove gcda files from the profile path.
15824 (gcov_output_files): Output gcda files to an output dir.
15825 (profile_merge): Merge two profiles in directory.
15826 (print_merge_usage_message): Print merge usage.
15827 (merge_usage): Print merge usage and exit.
15828 (do_merge): Driver for profile merge sub-command.
15829 (profile_rewrite): Rewrite profile.
15830 (print_rewrite_usage_message): Print rewrite usage.
15831 (rewrite_usage): Print rewrite usage and exit.
15832 (do_rewrite): Driver for profile rewrite sub-command.
15833 (print_usage): Print gcov-info usage and exit.
15834 (print_version): Print gcov-info version.
15835 (process_args): Process arguments.
15836 (main): Main routine for gcov-tool.
15837 * Makefile.in: Build and install gcov-tool.
15838 * gcov-counter.def: New file split from gcov-io.h.
15839 * doc/gcc.texi: Include gcov-tool.texi.
15840 * doc/gcov-tool.texi: Document for gcov-tool.
15842 2014-07-10 Richard Biener <rguenther@suse.de>
15844 PR tree-optimization/61757
15845 * tree-ssa-dom.c (loop_depth_of_name): Restore.
15846 (propagate_rhs_into_lhs): Revert part of last change.
15848 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
15850 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15853 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
15855 PR middle-end/53590
15856 * function.c (allocate_struct_function): Revert r188667 change.
15858 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15860 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
15862 * doc/install.texi: Remove links to defunct package providers for
15865 2014-07-09 Tom de Vries <tom@codesourcery.com>
15867 * final.c (get_call_fndecl): Declare.
15868 (self_recursive_call_p): New function.
15869 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15871 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15873 * ipa-devirt.c (record_node): Walk through aliases.
15875 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15877 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15879 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15882 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15884 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15886 * ipa-visibility.c (function_and_variable_visibility): Remove
15887 temporary hack disabling local aliases on AIX.
15889 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15891 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15892 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15894 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
15896 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15897 * rs6000/rs6000.c: Inline output of .set instruction.
15898 (declare_alias_data): New struct.
15899 (rs6000_declare_alias): New function.
15900 (rs6000_xcoff_declare_function_name): Use it.
15901 (rs6000_xcoff_declare_object_name): New function.
15902 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15903 (ASM_OUTPUT_DEF): Turn to empty definition.
15905 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15908 * hash-table.h: use hash_table::value_type instead of
15909 Descriptor::value_type in the return types of several methods.
15911 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15913 * tree-pass.h (pass_data): Remove has_execute member.
15914 * passes.c (execute_one_pass): Don't check pass->has_execute.
15915 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15916 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15917 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15918 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15919 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15920 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15921 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15922 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15923 gimple-low.c, gimple-ssa-isolate-paths.c,
15924 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15925 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15926 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15927 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15928 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15929 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15930 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15931 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15932 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15933 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15934 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15935 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15936 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15937 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15938 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15939 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15940 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15941 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15942 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15943 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15944 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15945 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15946 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15947 web.c: Remove initializer for pass_data::has_execute.
15949 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
15951 * graphite-htab.h: Use hash_map instead of hash_table.
15952 * graphite-clast-to-gimple.c: Adjust.
15953 * passes.c: Use hash_map instead of hash_table.
15954 * sese.c: Likewise.
15955 * sese.h: Remove now unused code.
15957 2014-07-08 Sriraman Tallam <tmsriram@google.com>
15960 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15963 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15965 PR rtl-optimization/61673
15966 * combine.c (simplify_comparison): Test just mode's sign bit
15967 in tmode rather than the sign bit and any bits above it.
15969 2014-07-08 Roman Gareev <gareevroman@gmail.com>
15971 * graphite-isl-ast-to-gimple.c (generate_isl_context):
15972 Add __isl_give to the declaration.
15973 (generate_isl_schedule): Likewise.
15974 (scop_to_isl_ast): Likewise.
15976 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15978 * config/arm/arm.c (cortexa5_extra_costs): New table.
15979 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15981 2014-07-08 Jakub Jelinek <jakub@redhat.com>
15983 PR tree-optimization/61725
15984 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15985 range, use range_includes_zerop_p instead of integer_zerop on
15986 vr0->min, only use log2 of max if min is not negative.
15988 2014-07-08 Richard Biener <rguenther@suse.de>
15990 * tree-ssa-dom.h (loop_depth_of_name): Remove.
15991 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15992 restriction on loop depth difference.
15993 (record_equality): Likewise.
15994 (propagate_rhs_into_lhs): Likewise. Simplify condition.
15995 (loop_depth_of_name): Remove.
15996 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15997 restriction on loop depth difference.
15998 (init_copy_prop): Likewise.
16000 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
16002 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16004 (walk_aliased_vdefs): Likewise.
16005 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16006 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16007 (detect_type_change_from_memory_writes): Check if entry was reached.
16009 2014-07-08 Richard Biener <rguenther@suse.de>
16011 PR tree-optimization/61681
16012 * tree-ssa-structalias.c (find_what_var_points_to): Expand
16013 NONLOCAL inside ESCAPED.
16015 2014-07-08 Richard Biener <rguenther@suse.de>
16017 PR tree-optimization/61680
16018 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16019 Handle properly all read-write dependences with group accesses.
16021 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
16023 PR tree-optimization/61576
16024 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16025 block containing reduction statement is predecessor of phi basi block.
16027 2014-07-08 Marek Polacek <polacek@redhat.com>
16030 * fold-const.c (round_up_loc): Change the parameter type.
16032 * fold-const.h (round_up_loc): Adjust declaration.
16033 * stor-layout.c (finalize_record_size): Check for too large types.
16035 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
16037 * symtab.c: Include calls.h.
16038 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16040 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
16042 * config/rs6000/rs6000.c (output_vec_const_move): Handle
16043 little-endian code generation.
16044 * config/rs6000/spe.md (spe_evmergehi): Rename to...
16045 (vec_perm00_v2si): ... this. Handle little-endian code generation.
16046 (spe_evmergehilo): Rename to...
16047 (vec_perm01_v2si): ... this. Handle little-endian code generation.
16048 (spe_evmergelo): Rename to...
16049 (vec_perm11_v2si): ... this. Handle little-endian code generation.
16050 (spe_evmergelohi): Rename to...
16051 (vec_perm10_v2si): ... this. Handle little-endian code generation.
16052 (spe_evmergehi, spe_evmergehilo): New expanders.
16053 (spe_evmergelo, spe_evmergelohi): Likewise.
16054 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16055 (*frob_tf_ti): Likewise.
16056 (*frob_<mode>_di_2): Likewise.
16057 (*frob_tf_di_8_2): Likewise.
16058 (*frob_di_<mode>): Likewise.
16059 (*frob_ti_tf): Likewise.
16060 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16061 (*frob_ti_<mode>_8_2): Likewise.
16062 (*frob_ti_tf_2): Likewise.
16063 (mov_si<mode>_e500_subreg0): Rename to...
16064 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
16066 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16067 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16068 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
16069 the big endianness only.
16070 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16071 (*mov_si<mode>_e500_subreg0_2): Rename to...
16072 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
16073 big big endianness only.
16074 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16075 (*mov_si<mode>_e500_subreg4): Rename to...
16076 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
16078 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16079 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16080 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
16081 the big endianness only.
16082 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16084 (*mov_si<mode>_e500_subreg4_2): Rename to...
16085 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
16087 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16088 (*mov_sitf_e500_subreg8): Rename to...
16089 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
16091 (*mov_sitf_e500_subreg8_le): New instruction pattern.
16092 (*mov_sitf_e500_subreg8_2): Rename to...
16093 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
16095 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16096 (*mov_sitf_e500_subreg12): Rename to...
16097 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
16099 (*mov_sitf_e500_subreg12_le): New instruction pattern.
16100 (*mov_sitf_e500_subreg12_2): Rename to...
16101 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
16103 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16105 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
16107 * asan.c (instrument_strlen_call): Do not instrument first byte
16108 in strlen if already instrumented.
16110 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16112 * config/arm/arm.opt (mwords-little-endian): Delete.
16113 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16114 of TARGET_LITTLE_WORDS.
16115 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16116 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16118 * doc/invoke.texi: Remove references to -mwords-little-endian.
16120 2014-07-07 Jakub Jelinek <jakub@redhat.com>
16122 * expmed.c (struct init_expmed_rtl): Change all fields but
16123 pow2 and cint from struct rtx_def to rtx.
16124 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16125 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
16128 2014-07-06 Marek Polacek <polacek@redhat.com>
16131 * doc/invoke.texi: Document -Wsizeof-array-argument.
16133 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16135 * wide-int.h (wide_int_storage): Change declaration from struct
16138 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
16140 * cgraph.c (cgraph_create_indirect_edge): Update call of
16141 get_polymorphic_call_info.
16142 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16143 (possible_polymorphic_call_targets): Add parameter call.
16144 (decl_maybe_in_construction_p): New predicate.
16145 (get_polymorphic_call_info): Add parameter call;
16146 use decl_maybe_in_construction_p.
16147 * gimple-fold.c (fold_gimple_assign): Update use of
16148 possible_polymorphic_call_targets.
16149 (gimple_fold_call): Likewise.
16150 * ipa-prop.c: Inlcude calls.h
16151 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16152 (param_type_may_change_p): New predicate.
16153 (detect_type_change_from_memory_writes): Break out from ...
16154 (detect_type_change): ... this one; use param_type_may_change_p.
16155 (detect_type_change_ssa): Use param_type_may_change_p.
16156 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16158 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
16161 * config/arm/arm-protos.h (arm_legitimate_address_p,
16162 arm_is_constant_pool_ref): Add prototypes.
16163 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16164 (arm_is_constant_pool_ref) New function.
16165 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16166 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16167 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16168 operand. Remove pool_range and neg_pool_range attributes.
16169 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16170 pool_range and neg_pool_range attributes.
16171 * config/arm/constraints.md (Uh): New constraint.
16172 (Uq): Don't allow constant pool references.
16174 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
16176 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16177 (move_lo_quad_internal_be_<mode>): Likewise.
16178 (move_lo_quad_<mode>): Convert to define_expand.
16179 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16180 (aarch64_simd_move_hi_quad_be_<mode>): New.
16181 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16182 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16183 (aarch64_combinez_be<mode>): New.
16184 (aarch64_combine<mode>): Convert to define_expand.
16185 (aarch64_combine_internal<mode>): New.
16186 (aarch64_simd_combine<mode>): Remove bogus RTL description.
16188 2014-07-04 Tom de Vries <tom@codesourcery.com>
16190 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16191 combination of earlyclobber and read/write modifiers.
16193 2014-07-04 Tom de Vries <tom@codesourcery.com>
16195 * config/aarch64/aarch64-simd.md
16196 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16198 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
16201 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16203 2014-07-04 Jakub Jelinek <jakub@redhat.com>
16205 PR middle-end/61654
16206 * cgraphunit.c (expand_thunk): Call free_dominance_info.
16208 PR tree-optimization/61684
16209 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16210 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16212 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16213 Kito Cheng <kito@0xlab.org>
16214 Monk Chiang <sh.chiang04@gmail.com>
16216 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16217 (nds32_symbol_load_store_p): Move to ...
16218 (nds32_fp_as_gp_check_available): Move to ...
16219 * config/nds32/nds32-fp-as-gp.c: ... here.
16220 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16221 extern declaration.
16223 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16224 Kito Cheng <kito@0xlab.org>
16225 Monk Chiang <sh.chiang04@gmail.com>
16227 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16228 (nds32_expand_store_multiple): Move to ...
16229 (nds32_expand_movmemqi): Move to ...
16230 * config/nds32/nds32-memory-manipulation.c: ... here.
16232 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16233 Kito Cheng <kito@0xlab.org>
16234 Monk Chiang <sh.chiang04@gmail.com>
16236 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16237 (nds32_output_casesi_pc_relative): Move to ...
16238 (nds32_output_casesi): Move to ...
16239 (nds32_mem_format): Move to ...
16240 (nds32_output_16bit_store): Move to ...
16241 (nds32_output_16bit_load): Move to ...
16242 (nds32_output_32bit_store): Move to ...
16243 (nds32_output_32bit_load): Move to ...
16244 (nds32_output_32bit_load_s): Move to ...
16245 (nds32_output_stack_push): Move to ...
16246 (nds32_output_stack_pop): Move to ...
16247 * config/nds32/nds32-md-auxiliary.c: ... here.
16249 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16250 Ling-Hua Tseng <uranus@tinlans.org>
16252 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16253 the purpose of this file.
16255 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16256 Kito Cheng <kito@0xlab.org>
16257 Monk Chiang <sh.chiang04@gmail.com>
16259 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16260 (nds32_address_cost): Move implementation to ...
16261 * config/nds32/nds32-cost.c: ... here.
16262 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16263 (nds32_address_cost_impl): Declare.
16265 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16266 Kito Cheng <kito@0xlab.org>
16267 Monk Chiang <sh.chiang04@gmail.com>
16269 * config/nds32/nds32.c
16270 (nds32_consecutive_registers_load_store_p): Move to ...
16271 (nds32_valid_multiple_load_store): Move to ...
16272 (nds32_valid_stack_push_pop): Move to ...
16273 (nds32_can_use_bclr_p): Move to ...
16274 (nds32_can_use_bset_p): Move to ...
16275 (nds32_can_use_btgl_p): Move to ...
16276 (nds32_can_use_bitci_p): Move to ...
16277 * config/nds32/nds32-predicates.c: ... here.
16279 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16280 Kito Cheng <kito@0xlab.org>
16281 Monk Chiang <sh.chiang04@gmail.com>
16283 * config/nds32/nds32.c
16284 (nds32_expand_builtin_null_ftype_reg): Move to ...
16285 (nds32_expand_builtin_reg_ftype_imm): Move to ...
16286 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16287 (nds32_init_builtins): Move implementation to ...
16288 (nds32_expand_builtin): Move implementation to ...
16289 * config/nds32/nds32-intrinsic.c: ... here.
16290 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16291 (nds32_expand_builtin_impl): Declare.
16293 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16294 Kito Cheng <kito@0xlab.org>
16295 Monk Chiang <sh.chiang04@gmail.com>
16297 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16298 (nds32_emit_section_tail_template): Move to ...
16299 (nds32_emit_isr_jmptbl_section): Move to ...
16300 (nds32_emit_isr_vector_section): Move to ...
16301 (nds32_emit_isr_reset_conten): Move to ...
16302 (nds32_check_isr_attrs_conflict): Move to ...
16303 (nds32_construct_isr_vectors_information): Move to ...
16304 (nds32_asm_file_start): Move implementation to ...
16305 (nds32_asm_file_end): Move implementation to ...
16306 * config/nds32/nds32-isr.c: ... here.
16307 * config/nds32/nds32-protos.h
16308 (nds32_check_isr_attrs_conflict): Declare.
16309 (nds32_construct_isr_vectors_information): Declare.
16310 (nds32_asm_file_start_for_isr): Declare.
16311 (nds32_asm_file_end_for_isr): Declare.
16313 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
16314 Kito Cheng <kito@0xlab.org>
16315 Monk Chiang <sh.chiang04@gmail.com>
16317 * config.gcc (nds32*): Add new modules to extra_objs.
16318 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16319 (nds32be-*-*): Likewise.
16320 * config/nds32/nds32-cost.c: New file.
16321 * config/nds32/nds32-fp-as-gp.c: New file.
16322 * config/nds32/nds32-intrinsic.c: New file.
16323 * config/nds32/nds32-isr.c: New file.
16324 * config/nds32/nds32-md-auxiliary.c: New file.
16325 * config/nds32/nds32-memory-manipulation.c: New file.
16326 * config/nds32/nds32-pipelines-auxiliary.c: New file.
16327 * config/nds32/nds32-predicates.c: New file.
16328 * config/nds32/t-nds32: New file.
16330 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16332 PR tree-optimization/61682
16333 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16334 using cases and when one of the operands is equal to 1.
16336 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
16338 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16339 ashr<mode>3): Correct mode of operands[2].
16340 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16341 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16342 Correct mode of operands[2]. Fix split condition.
16344 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
16346 * arm.md (arch): Add armv6_or_vfpv3.
16347 (arch_enabled): Add test for the above.
16348 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16350 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16352 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16354 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16355 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16356 HWI 1 and negate the unsigned value.
16357 * expmed.c (expand_sdiv_pow2): For modes wider than word always
16358 use AND instead of shift.
16359 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16361 2014-07-03 Marek Polacek <polacek@redhat.com>
16363 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16364 (-fsanitize=float-divide-by-zero): Move to the table with
16365 -fsanitize=undefined suboptions.
16366 (-fsanitize=float-cast-overflow): Likewise.
16368 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
16370 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16371 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16374 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16376 * loop-invariant.c (struct invariant): Add a new member: eqno;
16377 (find_identical_invariants): Update eqno;
16378 (create_new_invariant): Init eqno;
16379 (get_inv_cost): Compute comp_cost with eqno;
16381 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16383 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16384 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16385 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16386 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16387 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16389 2014-07-02 Christian Bruel <christian.bruel@st.com>
16393 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16394 (make_preds_opaque): Delete.
16395 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16396 (commit_mode_sets): New function.
16397 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16398 Process all modes at once.
16399 * basic-block.h (pre_edge_lcm_avs): Declare.
16400 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16401 Call clear_aux_for_edges. Fix comments.
16402 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16403 (pre_edge_rev_lcm): Idem.
16404 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16406 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16407 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16409 * config/i386/i386.c (x96_emit_mode_set): Idem.
16410 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16411 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
16412 (fpscr_toggle) Disallow from delay slot.
16413 * target.def (emit_mode_set): Add prev_mode parameter.
16414 * doc/tm.texi: Regenerate.
16416 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16418 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16421 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16423 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16424 vtable_pointer_value_to_vtable): Constify.
16425 (contains_polymorphic_type_p): Declare.
16426 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16427 vtable_pointer_value_to_vtable): Constify.
16428 (contains_polymorphic_type_p): New predicate.
16429 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16431 (ipa_set_ancestor_jf): Likewise.
16432 (detect_type_change): Return false in easy cases.
16433 (compute_complex_assign_jump_func): Require type to contain
16435 (compute_known_type_jump_func): Likewise.
16437 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
16439 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16441 (type_in_anonymous_namespace_p): Constify argument.
16442 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16443 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16444 (main_odr_variant): New function.
16445 (hash_type_name): Make static; update assert; do not ICE on
16447 (types_same_for_odr): Bring here from tree.c; simplify and remove
16448 old structural comparing code that doesn't work for templates.
16449 (odr_hasher::equal): Update assert.
16450 (add_type_duplicate): Return true when bases should be computed;
16451 replace incomplete loader by complete; do not output duplicated
16452 warnings; do not ICE on non-records; set odr_violated flag.
16453 (get_odr_type): Be ready to replace incomplete type by complete
16454 one; work on ODR variants instead of main variants; reorder item
16455 in array so bases have still smaller indexes.
16456 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16457 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16459 2014-07-01 Cary Coutant <ccoutant@google.com>
16461 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16463 (resolve_addr_in_expr): When replacing the rtx in a location list
16464 entry, get a new address table entry.
16465 (dwarf2out_finish): Call index_location_lists even if there are no
16466 addr_index_table entries yet.
16468 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16470 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16471 change for not being obvious.
16473 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
16475 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16478 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16480 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16481 (vcagt_f64): Likewise.
16482 (vcale_f64): Likewise.
16483 (vcaled_f64): Likewise.
16484 (vcales_f32): Likewise.
16485 (vcalt_f64): Likewise.
16486 (vcaltd_f64): Likewise.
16487 (vcalts_f32): Likewise.
16489 2014-07-01 Marek Polacek <polacek@redhat.com>
16491 * doc/invoke.texi: Document -Wint-conversion.
16493 2014-07-01 Marek Polacek <polacek@redhat.com>
16496 * doc/invoke.texi: Document -Wincompatible-pointer-types.
16498 2014-07-01 Martin Liska <mliska@suse.cz>
16500 IPA REF alias refactoring
16501 * cgraph.h (iterate_direct_aliases): New function.
16502 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16503 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16504 FOR_EACH_ALIAS added.
16505 (cgraph_for_node_and_aliases): Likewise.
16506 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16507 * ipa-inline.c (reset_edge_caches): Likewise.
16508 (update_caller_keys): Likewise.
16509 * trans-mem.c (ipa_tm_execute): Likewise.
16510 *varpool.c (varpool_analyze_node): Likewise.
16511 (varpool_for_node_and_aliases): Likewise.
16512 * ipa-ref.h (first_alias): New function.
16513 (last_alias): Likewise.
16514 (has_aliases_p): Likewise.
16515 * ipa-ref.c (ipa_ref::remove_reference): Removal function
16516 is sensitive to IPA_REF_ALIASes.
16517 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16518 are put at the beginning of the list.
16519 (symtab_node::iterate_direct_aliases): New function.
16521 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16524 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16526 (write_ts_type_common_tree_pointers): Do not stream fields not set
16527 for incomplete types; do not stream duplicated fields for variants;
16528 sanity check that variant and type match.
16529 (write_ts_type_non_common_tree_pointers): Likewise.
16530 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16531 TYPE_SIZE whether type is complete.
16532 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16533 write_ts_type_common_tree_pointers
16534 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16536 2014-06-30 Joseph Myers <joseph@codesourcery.com>
16538 * var-tracking.c (add_stores): Return instead of asserting if old
16539 and new values for conditional store are the same.
16541 2014-06-30 Richard Henderson <rth@redhat.com>
16545 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16546 the cfg if there were any changes.
16547 * passes.def: Revert move of peephole2 after reorder_blocks;
16548 move duplicate_computed_gotos before peephole2.
16550 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
16552 * except.c (emit_note_eh_region_end): New helper function.
16553 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16554 emit EH_REGION_END note.
16555 * jump.c (cleanup_barriers): Do not split a call and its
16556 corresponding CALL_ARG_LOCATION note.
16558 2014-06-30 Jeff Law <law@redhat.com>
16560 PR tree-optimization/61607
16561 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16562 deeper into the SSA_NAME_VALUE chain.
16564 2014-06-30 Marek Polacek <polacek@redhat.com>
16566 * convert.c (convert_to_integer): Don't instrument conversions if the
16567 function has no_sanitize_undefined attribute.
16568 * ubsan.c: Don't run the ubsan pass if the function has
16569 no_sanitize_undefined attribute.
16571 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16573 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16574 -fsanitize=undefined suboptions.
16576 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
16578 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16579 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16580 against bigendian and adjust indices.
16582 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16584 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
16586 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
16589 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16590 Add alternative; make early clobber. Adjust both split patterns
16591 to use operand 0 as the working register.
16593 2014-06-30 Jakub Jelinek <jakub@redhat.com>
16595 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16596 as ira_object_id_map might be NULL, or 1.
16598 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16600 * loop-invariant.c (get_inv_cost): Handle register class.
16601 (gain_for_invariant): Check the register pressure of the inv
16602 and its overlapped register class, other than all.
16604 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
16606 * doc/invoke.texi (Optimize Options): Fix descriptions of
16607 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16609 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
16611 * doc/extend.texi (Function Attributes): Update 'naked' attribute
16614 2014-06-29 Tobias Grosser <tobias@grosser.es>
16617 * graphite-isl-ast-to-gimple.c: Add missing guards.
16619 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16621 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16622 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16623 * flag-types.h: Add new enum fgraphite_generator.
16624 * graphite-isl-ast-to-gimple.c: New.
16625 * graphite-isl-ast-to-gimple.h: New.
16626 * graphite.c (graphite_transform_loops): Add choice of Graphite
16627 code generator, which depends on flag_graphite_code_gen.
16629 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16631 * graphite-dependences.c (subtract_commutative_associative_deps):
16632 Add NULL checking of the following variables: must_raw_no_source,
16633 may_raw_no_source, must_war_no_source, may_war_no_source,
16634 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16635 must_war, may_war, must_waw, may_waw.
16637 2014-06-29 Roman Gareev <gareevroman@gmail.com>
16639 * graphite-clast-to-gimple.c: gloog is renamed to
16640 graphite_regenerate_ast_cloog. gloog_error is renamed to
16641 graphite_regenerate_error.
16642 * graphite-clast-to-gimple.h: The definition of the struct
16643 bb_pbb_def is moved to graphite-htab.h.
16644 Add inclusion of the hash-table.h.
16645 * graphite-htab.h: The declaration of the function gloog is moved
16646 to graphite-clast-to-gimple.h and renamed to
16647 graphite_regenerate_ast_cloog.
16648 * graphite.c (graphite_transform_loops): gloog is renamed
16649 to graphite_regenerate_ast_cloog.
16651 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16653 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16655 (write_ts_type_common_tree_pointers): Do not stream fields not set
16656 for incomplete types; do not stream duplicated fields for variants;
16657 sanity check that variant and type match.
16658 (write_ts_type_non_common_tree_pointers): Likewise.
16659 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16660 TYPE_SIZE whether type is complete.
16661 (lto_input_ts_type_common_tree_pointers): Do same changes as in
16662 write_ts_type_common_tree_pointers
16663 (lto_input_ts_type_non_common_tree_pointers): Likewise.
16665 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16667 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16669 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16671 * tree-inline.c (remap_type_1): Do not duplicate fields
16672 that are shared in between type and its main variant.
16674 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16676 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16678 (ipa_set_ancestor_jf) Likewise.
16679 (check_stmt_for_type_change): Check that we work on main variant.
16680 (detect_type_change): Look into main variant.
16681 (compute_known_type_jump_func): Check that main variant has BINFO.
16683 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16685 * ipa-devirt.c (set_type_binfo): New function.
16686 (add_type_duplicate): Use it.
16687 (get_odr_type): Sanity check that binfos points to main variants.
16688 (get_class_context): Be sure the context's outer_type is main variant.
16689 (contains_type_p): Walk main variant.
16690 (get_polymorphic_call_info_for_decl): Set outer_type to be
16692 (get_polymorphic_call_info): Likewise.
16693 (possible_polymorphic_call_targets): Sanity check that we operate
16696 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
16698 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16700 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16702 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16703 accidental change due to wide-int branch merge.
16705 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16707 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16708 compressed debug support.
16709 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16710 * configure: Regenerate.
16711 * config.in: Regenerate.
16712 * common.opt (compressed_debug_sections): New enum.
16713 (gz, gz=): New options.
16714 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16715 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16716 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16717 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16718 LINK_COMPRESS_DEBUG_SPEC.
16719 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16720 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16721 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16722 (Debugging Options): Document -gz[=type].
16724 2014-06-27 Martin Jambor <mjambor@suse.cz>
16727 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16728 args_to_skip, use those from node instead. Copy args_to_skip and
16729 combined_args_to_skip from node to the new thunk.
16730 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16731 (cgraph_create_virtual_clone): Moved computation of
16732 combined_args_to_skip...
16733 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16735 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
16737 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16738 redundant diagnostic machinary.
16740 2014-06-27 Richard Biener <rguenther@suse.de>
16742 * tree-ssa-math-opts.c (bswap_replace): Fix
16743 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16745 2014-06-27 Martin Liska <mliska@suse.cz>
16747 * gimple.h (gimple_location_safe): New function introduced.
16748 * cgraphunit.c (walk_polymorphic_call_targets): Usage
16749 of gimple_location_safe replaces gimple_location.
16750 (gimple_fold_call): Likewise.
16751 * ipa-devirt.c (ipa_devirt): Likewise.
16752 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16753 * ipa.c (walk_polymorphic_call_targets): Likewise.
16754 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16756 2014-06-27 Jakub Jelinek <jakub@redhat.com>
16758 PR tree-optimization/57233
16759 PR tree-optimization/61299
16760 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16762 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
16763 would be lowered to scalar shifts, check if corresponding
16764 shifts and vector BIT_IOR_EXPR are supported and don't lower
16765 or lower just to narrower vector type in that case.
16766 * expmed.c (expand_shift_1): Fix up handling of vector
16767 shifts and rotates.
16769 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
16772 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16774 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
16776 * doc/invoke.texi (-fsemantic-interposition): Document.
16777 * common.opt (fsemantic-interposition): New flag.
16778 * varasm.c (decl_replaceable_p): Use it.
16780 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16783 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16784 extraction other than index 3.
16786 2014-06-26 Teresa Johnson <tejohnson@google.com>
16788 * doc/invoke.texi: Fix typo.
16789 * dumpfile.c: Add support for documented -fdump-* options
16790 optimized/missed/note/optall.
16792 2014-06-26 Martin Jambor <mjambor@suse.cz>
16794 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16795 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16796 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16797 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16798 * opts.c (default_options_optimization): Set
16799 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16800 * doc/invoke.texi (allow-load-data-races)
16801 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16802 (allow-store-data-races): Document the new default.
16804 2014-06-26 Martin Jambor <mjambor@suse.cz>
16806 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16807 renamed to ipa_impossible_devirt_target. Fix typo.
16808 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16809 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16810 ipa_impossible_devirt_target.
16812 2014-06-26 Richard Biener <rguenther@suse.de>
16814 PR tree-optimization/61607
16815 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16816 explaining why we restrict copies on loop depth.
16817 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16819 (record_equivalences_from_phis): Instead add it here.
16821 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
16823 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16824 (LTO_WRAPPER_OBJS): New variable.
16825 (lto-wrapper$(exeext)): Use it.
16826 * collect2.c: Include "collect-utils.h".
16827 (verbose, debug): Remove variables.
16828 (at_file_supplied): No longer static.
16829 (tool_name): New variable.
16830 (do_wait, fork_execute, maybe_unlink): Don't declare.
16831 (tool_cleanup): No longer static.
16832 (notice): Remove function.
16833 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16834 fork_execute calls.
16835 (collect_wait, do_wait, collect_execute): Remove functions.
16836 (maybe_unlink): No longer static.
16837 * collect2.h (verbose, debug): Don't declare.
16838 (at_file_supplied): Declare.
16839 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
16841 (collect_execute): Replace with implementation from collect2, plus a
16842 new arg use_atfile. All callers changed.
16843 (collect_wait): Replace with implementation from collect2.
16844 (maybe_unlink_file): Remove function.
16845 (fork_execute): Replace with implementation from collect2, plus a
16846 new arg use_atfile. All callers changed.
16847 (do_wait): Add call to utils_cleanup to the error path.
16848 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16849 (tool_cleanup): Adjust declarations.
16850 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16851 * tlink.c: Include "collect-utils.h".
16852 (tlink_execute): New arg use_atfile. All callers changed.
16853 (tlink_init, tlink_execute): Remove declarations.
16855 * collect-utils.c (save_temps): New variable.
16856 (do_wait): Use it instead of debug. Use fatal_error.
16857 * collect-utils.h (save_temps): Declare.
16858 * collect2.c (verbose): Rename from vflag. All uses changed.
16859 (tool_cleanup): New function, copied from collect_atexit.
16860 (collect_atexit, handler): Just call it.
16861 * collect2.h (verbose): Declaration renamed from vflag.
16862 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16865 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16866 (lto-wrapper$(exeext)): Link with collect-utils.o.
16867 * collect-utils.c: New file.
16868 * collect-utils.h: New file.
16869 * lto-wrapper.c: Include "collect-utils.h".
16870 (args_name): Delete variable.
16871 (tool_name): New variable.
16872 (tool_cleanup): New function.
16873 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
16874 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16875 (fork_execute): Remove functions.
16877 2014-06-26 Nick Clifton <nickc@redhat.com>
16879 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16881 * doc/extend.texi (Function Attributes): Fix typo in description
16882 of RX vector attribute.
16884 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
16886 * config.gcc (supported_defaults): Error when passing either
16887 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16889 2014-06-26 Richard Biener <rguenther@suse.de>
16891 * tree-ssa-dom.c (cprop_operand): Remove restriction on
16892 propagating volatile pointers.
16894 2014-06-26 Richard Biener <rguenther@suse.de>
16896 PR tree-optimization/61607
16897 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16898 loop if we redirected its latch edge.
16899 (thread_block_1): Do not cancel loops prematurely.
16901 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
16903 * toplev.c (backend_init_target): Move init_emit_regs and
16905 (backend_init) ... here; skip ira_init_once and backend_init_target.
16906 (target_reinit) ... and here; clear
16907 this_target_rtl->lang_dependent_initialized.
16908 (lang_dependent_init_target): Clear
16909 this_target_rtl->lang_dependent_initialized;
16910 break out rtl initialization to ...
16911 (initialize_rtl): ... here; call also backend_init_target
16913 * toplev.h (initialize_rtl): New function.
16914 * function.c: Include toplev.h
16915 (init_function_start): Call initialize_rtl.
16916 * rtl.h (target_rtl): Add target_specific_initialized,
16917 lang_dependent_initialized.
16919 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
16920 Jakub Jelinek <jakub@redhat.com>
16922 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16924 2014-06-25 Tom de Vries <tom@codesourcery.com>
16926 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16928 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16930 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16931 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16932 Issue a strict overflow warning if appropriate.
16934 2014-06-25 Martin Liska <mliska@suse.cz>
16936 IPA REF refactoring
16937 * Makefile.in: Removed header file (ipa-ref-inline.h).
16938 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16940 (cgraph_speculative_call_info): Likewise.
16941 (cgraph_for_node_thunks_and_aliases): Likewise.
16942 (cgraph_for_node_and_aliases): Likewise.
16943 (verify_cgraph_node): Likewise.
16944 * cgraph.h: Batch of IPA REF functions become member functions of
16945 symtab_node: add_reference, maybe_add_reference, clone_references,
16946 clone_referring, clone_reference, find_reference,
16947 remove_stmt_references, remove_all_references,
16948 remove_all_referring, dump_references, dump_referring,
16949 has_alias_p, iterate_reference, iterate_referring.
16950 * cgraphbuild.c (record_reference): New IPA REF function used.
16951 (record_type_list): Likewise.
16952 (record_eh_tables): Likewise.
16953 (mark_address): Likewise.
16954 (mark_load): Likewise.
16955 (mark_store): Likewise.
16956 (pass_build_cgraph_edges): Likewise.
16957 (rebuild_cgraph_edge): Likewise.
16958 (cgraph_rebuild_references): Likewise.
16959 (pass_remove_cgraph_callee_edges): Likewise.
16960 * cgraphclones.c (cgraph_clone_node): Likewise.
16961 (cgraph_create_virtual_clone): Likewise.
16962 (cgraph_materialize_clone): Likewise.
16963 (cgraph_materialize_all_clones): Likewise.
16964 * cgraphunit.c (cgraph_reset_node): Likewise.
16965 (cgraph_reset_node): Likewise.
16966 (analyze_function): Likewise.
16967 (assemble_thunks_and_aliases): Likewise.
16968 (expand_function): Likewise.
16969 * ipa-comdats.c (propagate_comdat_group): Likewise.
16970 (enqueue_references): Likewise.
16971 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16972 (create_specialized_node): Likewise.
16973 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16974 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16975 * ipa-inline.c (reset_edge_caches): Likewise.
16976 (update_caller_keys): Likewise.
16977 (execute): Likewise.
16978 * ipa-prop.c (remove_described_reference): Likewise.
16979 (propagate_controlled_uses): Likewise.
16980 (ipa_edge_duplication_hook): Likewise.
16981 (ipa_modify_call_arguments): Likewise.
16982 * ipa-pure-const.c (propagate_pure_const): Likewise.
16983 * ipa-ref-inline.h: Header file removed, functions moved
16984 to symtab_node class.
16985 * ipa-ref.c (remove_reference): New class member function.
16986 (cannot_lead_to_return): New class member function.
16987 (referring_ref_list): Likewise.
16988 (referred_ref_list): Likewise.
16989 Rest of functions moved to symtab_node class.
16990 * ipa-ref.h: New member functions remove_reference,
16991 cannot_lead_to_return, referring_ref_list, referred_ref_list added
16993 ipa_ref_list class has new member functions: first_reference,
16994 first_referring, clear, nreferences.
16995 * ipa-reference.c (analyze_function): New IPA REF function used.
16996 (write_node_summary_p): Likewise.
16997 (ipa_reference_write_optimization_summary): Likewise.
16998 * ipa-split.c (split_function): Likewise.
16999 * ipa-utils.c (ipa_reverse_postorder): Likewise.
17000 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17001 (function_and_variable_visibility): Likewise.
17002 * ipa.c (has_addr_references_p): Likewise.
17003 (process_references): Argument type changed.
17004 (symtab_remove_unreachable_nodes): New IPA REF function used.
17005 (process_references): Likewise.
17006 (set_writeonly_bit): Likewise.
17007 * lto-cgraph.c: Implementation of new symtab_node member functions
17008 that uses new IPA REF functions.
17009 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17011 * lto-streamer-out.c (output_symbol_p): Likewise.
17012 * lto-streamer.h (referenced_from_this_partition_p): Argument type
17014 * symtab.c: Implementation of new IPA REF API.
17015 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17016 (ipa_tm_create_version): Likewise.
17017 (ipa_tm_execute): Likewise.
17018 * tree-emutls.c (gen_emutls_addr): Likewise.
17019 * tree-inline.c (copy_bb): Likewise.
17020 (delete_unreachable_blocks_update_callgraph): Likewise.
17021 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17022 (varpool_for_node_and_aliases): Likewise.
17024 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17026 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17028 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
17031 * fold-const.c (fold_checksum_tree): Use a hash_table of const
17032 tree_node * instead of tree_node *.
17034 (print_fold_checksum): Likewise.
17035 (fold_check_failed): Likewise.
17036 (debug_fold_checksum): Likewise.
17037 (fold_build1_stat_loc): Likewise.
17038 (fold_build2_stat_loc): Likewise.
17039 (fold_build3_stat_loc): Likewise.
17040 (fold_build_call_array_loc): Likewise.
17042 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
17044 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17045 implementation with call to...
17046 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17048 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17051 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
17053 PR tree-optimization/57742
17054 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17055 after replacing the statement.
17057 2014-06-25 Nick Clifton <nickc@redhat.com>
17059 * config/v850/v850.c (GHS_default_section_names): Change to const
17061 (GHS_current_section_names): Likewise.
17062 (v850_insert_attributes): Do not build strings, just assign the
17063 names directly. Change the type of 'chosen_section' to const
17065 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17066 directly to the array entry.
17067 * config/v850/v850.h (GHS_default_section_names): Change to const
17069 (GHS_current_section_names): Likewise.
17071 2014-06-25 Jakub Jelinek <jakub@redhat.com>
17073 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17074 (LANG_HOOKS_DECLS): Add it.
17075 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17077 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17078 * langhooks.h (struct lang_hooks_for_decls): Add
17079 omp_clause_linear_ctor hook.
17080 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17081 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
17082 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
17083 combined simd loop use omp_clause_linear_ctor hook.
17085 2014-06-24 Cong Hou <congh@google.com>
17087 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17088 pattern recognition.
17089 (type_conversion_p): PROMOTION is true if it's a type promotion
17090 conversion, and false otherwise. Return true if the given expression
17091 is a type conversion one.
17092 * tree-vectorizer.h: Adjust the number of patterns.
17093 * tree.def: Add SAD_EXPR.
17094 * optabs.def: Add sad_optab.
17095 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17096 * expr.c (expand_expr_real_2): Likewise.
17097 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17098 * gimple.c (get_gimple_rhs_num_ops): Likewise.
17099 * optabs.c (optab_for_tree_code): Likewise.
17100 * tree-cfg.c (estimate_operator_cost): Likewise.
17101 * tree-ssa-operands.c (get_expr_operands): Likewise.
17102 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17103 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17104 * doc/generic.texi: Add document for SAD_EXPR.
17105 * doc/md.texi: Add document for ssad and usad.
17107 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17109 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17110 qualification in cast.
17112 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
17114 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17115 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17116 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17117 (tree_function_decl): ... here.
17118 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17119 streaming of vindex to ...
17120 (write_ts_function_decl_tree_pointers): ... here.
17121 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17122 Do not stream DECL_VINDEX.
17123 (lto_input_ts_function_decl_tree_pointers): Stream it here.
17125 2014-06-24 Catherine Moore <clm@codesourcery.com>
17126 Sandra Loosemore <sandra@codesourcery.com>
17128 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17129 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17130 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17132 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17134 * doc/invoke.texi (Warning Options): Remove duplicated
17135 -Wmaybe-uninitialized.
17137 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
17139 PR tree-optimization/57742
17140 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17141 (handle_builtin_malloc, handle_builtin_memset): New functions.
17142 (strlen_optimize_stmt): Call them.
17143 * passes.def: Move strlen after loop+dom but before vrp.
17145 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17148 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17149 model family 6 CPU with has_longmode never use a CPU without
17152 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
17155 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17158 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17160 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17161 * dominance.c (iterate_fix_dominators): Use hash_map instead of
17163 * hash-map.h: New file.
17164 * ipa-comdats.c: Use hash_map instead of pointer_map.
17166 * lto-section-out.c: Adjust.
17167 * lto-streamer.h: Replace pointer_map with hash_map.
17168 * symtab.c (verify_symtab): Likewise.
17169 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17170 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17171 * tree-streamer.h: Likewise.
17172 * tree-streamer.c: Adjust.
17173 * pointer-set.h: Remove pointer_map.
17175 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17177 * hash-table.h: Add a template arg to choose between storing values
17178 and storing pointers to values, and then provide partial
17179 specializations for both.
17180 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17181 should store, not the type values should point to.
17182 * tree-into-ssa.c (var_info_hasher): Likewise.
17183 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17184 * tree-complex.c: Adjust.
17185 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17186 table instead of int_tree_map *.
17187 * tree-parloops.c: Adjust.
17188 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17189 type is being stored.
17190 * tree-vectorizer.c: Adjust.
17192 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
17194 * hash-table.h: Remove a layer of indirection from hash_table so that
17195 it contains the hash table's data instead of a pointer to the data.
17196 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17197 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17198 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17199 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17200 fold-const.c, gcse.c, ggc-common.c,
17201 gimple-ssa-strength-reduction.c, gimplify.c,
17202 graphite-clast-to-gimple.c, graphite-dependences.c,
17203 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17204 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17205 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17206 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17207 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17208 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17209 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17210 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17211 tree-ssa-live.c, tree-ssa-loop-im.c,
17212 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17213 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17214 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17215 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17216 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17217 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17218 vtable-verify.c, vtable-verify.h: Adjust.
17220 2014-06-24 Richard Biener <rguenther@suse.de>
17222 PR tree-optimization/61572
17223 * tree-ssa-sink.c (statement_sink_location): Do not sink
17224 loads from hard registers.
17226 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17228 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17229 not mentioned in clauses use private clause if the iterator is
17230 declared in #pragma omp for simd, and when adding lastprivate
17231 instead, add it to the outer #pragma omp for too. Diagnose
17232 if the variable is private in outer context. For simd collapse > 1
17233 loops, replace all iterators with temporaries.
17234 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17235 same even in collapse > 1 loops.
17237 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17238 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17240 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17241 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17243 (gimplify_adjust_omp_clauses): Likewise.
17244 * omp-low.c (lower_rec_simd_input_clauses,
17245 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17246 safelen the same as safelen(1).
17247 * tree-nested.c (convert_nonlocal_omp_clauses,
17248 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
17249 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17250 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17251 Fixup handling of GIMPLE_OMP_TARGET.
17252 (convert_tramp_reference_stmt, convert_gimple_call): Handle
17255 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
17257 PR tree-optimization/61554
17258 * tree-ssa-propagate.c: Include "bitmap.h".
17259 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17260 properly update constructor/destructor.
17261 (substitute_and_fold_dom_walker::before_dom_children):
17262 Remove call to gimple_purge_dead_eh_edges, add bb->index to
17263 need_eh_cleaup instead.
17264 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17267 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17269 * varpool.c (dump_varpool_node): Dump used_by_single_function.
17270 * tree-pass.h (make_pass_ipa_single_use): New pass.
17271 * cgraph.h (used_by_single_function): New flag.
17272 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17274 * passes.def (pass_ipa_single_use): Scedule.
17275 * ipa.c (BOTTOM): New macro.
17276 (meet): New function
17277 (propagate_single_user): New function.
17278 (ipa_single_use): New function.
17279 (pass_data_ipa_single_use): New pass.
17280 (pass_ipa_single_use): New pass.
17281 (pass_ipa_single_use::gate): New gate.
17282 (make_pass_ipa_single_use): New function.
17284 2014-06-23 Kai Tietz <ktietz@redhat.com>
17287 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17288 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17290 2014-06-23 Richard Biener <rguenther@suse.de>
17292 * tree-ssa-loop.c (gate_loop): New function.
17293 (pass_tree_loop::gate): Call it.
17294 (pass_data_tree_no_loop, pass_tree_no_loop,
17295 make_pass_tree_no_loop): New.
17296 * tree-vectorizer.c: Include tree-scalar-evolution.c
17297 (pass_slp_vectorize::execute): Initialize loops and SCEV if
17299 (pass_slp_vectorize::clone): New method.
17300 * timevar.def (TV_TREE_NOLOOP): New.
17301 * tree-pass.h (make_pass_tree_no_loop): Declare.
17302 * passes.def (pass_tree_no_loop): New pass group with
17305 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
17308 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17309 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17311 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17313 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17314 "yes" where needed.
17316 2014-06-23 Alan Modra <amodra@gmail.com>
17319 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17320 to zero on debug statements.
17322 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17325 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17326 Ignore third operand if present by marking qualifier_internal.
17328 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17330 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17332 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17333 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17334 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17335 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17336 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17337 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17338 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17339 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17340 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17341 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17342 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17343 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17344 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17345 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17346 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17347 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17348 logic in GCC vector extensions
17350 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17351 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17352 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17353 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17354 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17355 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17356 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17357 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17358 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17359 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17361 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17363 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17366 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17367 (vget_low_s64): Use __GET_LOW macro.
17368 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17369 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17370 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17371 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17372 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17374 (vcombine_s64): Use GCC vector extensions; remove cast.
17375 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17376 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17377 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17378 Fix type signature; remove cast.
17380 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
17383 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17385 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17387 (BUILTIN_VD1): New.
17388 (BUILTIN_VD_RE): Remove.
17389 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17390 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17391 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17392 variant but not df.
17393 (vreinterpretv1df*, vreinterpret*v1df): New.
17394 (vreinterpretdf*, vreinterpret*df): Remove.
17395 * config/aarch64/aarch64-simd.md (aarch64_create,
17396 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17397 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17399 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17400 (vcreate_f64): Remove cast, use v1df builtin.
17401 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17402 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17403 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17404 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17405 vmov_n_f64, vst1_f64): Use gcc vector extensions.
17406 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17407 add range check using __builtin_aarch64_im_lane_boundsi.
17408 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17409 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17410 type signature, use gcc vector extensions.
17411 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17412 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17413 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17414 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17415 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17416 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17417 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17418 vreinterpret_u64_f64): Use v1df builtin not df.
17420 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
17422 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17425 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
17427 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17430 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17432 * loop-invariant.c (pre_check_invariant_p): New function.
17433 (find_invariant_insn): Call pre_check_invariant_p.
17435 2014-06-22 Richard Henderson <rth@redhat.com>
17438 * compare-elim.c (struct comparison): Add eh_note.
17439 (find_comparison_dom_walker::before_dom_children): Don't eliminate
17440 a redundant comparison in a different EH region. Purge EH edges if
17443 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17445 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17446 (var_shift): Use it.
17447 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17448 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17449 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17450 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17451 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17452 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17453 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17454 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17455 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17456 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17457 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17458 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17459 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17460 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17461 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17462 *rotldi3_internal15be): Use the new attribute. Merge register and
17463 integer alternatives.
17465 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17467 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17468 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17469 split, *ashrdi3_internal3 and split): Delete, merge into...
17470 (ashr<mode>3): New expander.
17471 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17472 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
17474 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17476 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17477 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17478 *rotldi3_internal3 and split): Delete, merge into...
17479 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17480 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
17481 Use "rotlw" extended mnemonic.
17483 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17485 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17486 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17487 and split, *ashldi3_internal3 and split): Delete, merge into...
17488 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17489 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
17491 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17493 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17494 (lshrsi3, two anonymous define_insns and define_splits,
17495 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17496 *lshrdi3_internal3 and split): Delete, merge into...
17497 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17498 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
17500 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
17502 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17503 Remove "O" alternative.
17505 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
17507 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17508 (mips_move_from_gpr_cost): Likewise.
17509 (mips_register_move_cost): Update accordingly.
17510 (mips_secondary_reload_class): Remove name of in_p.
17512 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
17515 * config/i386/i386.md (x86_64_shrd, x86_shrd,
17516 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17518 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17520 * config/nios2/nios2.c: Include "builtins.h".
17522 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17524 * cgraph.h (tls_model_names): New variable.
17525 * print-tree.c (print_node): Simplify.
17526 * varpool.c (tls_model_names): New variable.
17527 (dump_varpool_node): Output tls model.
17529 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17531 * ipa-visibility.c (function_and_variable_visibility): Disable
17532 temporarily local aliases for some targets.
17534 2014-06-20 Marek Polacek <polacek@redhat.com>
17536 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17537 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17538 into SANITIZE_UNDEFINED.
17539 * doc/invoke.texi: Describe -fsanitize=bounds.
17540 * gimplify.c (gimplify_call_expr): Add gimplification of internal
17541 functions created in the FEs.
17542 * internal-fn.c: Move "internal-fn.h" after "tree.h".
17543 (expand_UBSAN_BOUNDS): New function.
17544 * internal-fn.def (UBSAN_BOUNDS): New internal function.
17545 * internal-fn.h: Don't define internal functions here.
17546 * opts.c (common_handle_option): Add -fsanitize=bounds.
17547 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17548 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17549 * tree-core.h: Define internal functions here.
17550 (struct tree_base): Add ifn field.
17551 * tree-pretty-print.c: Include "internal-fn.h".
17552 (dump_generic_node): Handle functions without CALL_EXPR_FN.
17553 * tree.c (get_callee_fndecl): Likewise.
17554 (build_call_expr_internal_loc): New function.
17555 * tree.def (CALL_EXPR): Update description.
17556 * tree.h (CALL_EXPR_IFN): Define.
17557 (build_call_expr_internal_loc): Declare.
17558 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17560 (ubsan_type_descriptor): Change bool parameter to enum
17561 ubsan_print_style. Adjust the code. Add handling of
17563 (ubsan_expand_bounds_ifn): New function.
17564 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17565 (ubsan_build_overflow_builtin): Likewise.
17566 (instrument_bool_enum_load): Likewise.
17567 (ubsan_instrument_float_cast): Likewise.
17568 * ubsan.h (enum ubsan_print_style): New enum.
17569 (ubsan_expand_bounds_ifn): Declare.
17570 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
17572 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
17574 * config/rs6000/rs6000.md: Append `DONE' to preparation
17575 statements of `bswap' pattern splitters.
17577 2014-06-20 Tom de Vries <tom@codesourcery.com>
17579 * target.def (call_fusage_contains_non_callee_clobbers): Update
17581 * doc/tm.texi: Regenerate.
17583 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17584 Max Ostapenko <m.ostapenko@partner.samsung.com>
17587 * asan.c (instrument_strlen_call): Fixed instrumentation of
17590 2014-06-20 Martin Jambor <mjambor@suse.cz>
17593 * ipa-prop.c (impossible_devirt_target): New function.
17594 (try_make_edge_direct_virtual_call): Use it, also instead of
17597 2014-06-20 Yury Gribov <y.gribov@samsung.com>
17598 Max Ostapenko <m.ostapenko@partner.samsung.com>
17601 * asan.c (build_check_stmt): Add condition.
17603 2014-06-20 Martin Jambor <mjambor@suse.cz>
17606 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17609 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17611 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17613 (VCONQ): Make comment more helpful.
17615 * config/aarch64/aarch64-simd.md
17616 (aarch64_sqdmulh_lane<mode>):
17617 Use VCOND for operands 2. Update lane checking and flipping logic.
17618 (aarch64_sqrdmulh_lane<mode>): Likewise.
17619 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17620 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17621 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17622 attribute of operand 3 to VCOND.
17623 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17624 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17625 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17626 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17627 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17628 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17630 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17631 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17632 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17633 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17634 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17635 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17636 operand to VCOND. Update lane flipping and bounds checking logic.
17637 (aarch64_sqdmlal2_lane<mode>): Likewise.
17638 (aarch64_sqdmlsl_lane<mode>): Likewise.
17639 (aarch64_sqdmull_lane<mode>): Likewise.
17640 (aarch64_sqdmull2_lane<mode>): Likewise.
17641 (aarch64_sqdmlal_laneq<mode>):
17642 Replace VCON usage with VCONQ.
17643 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17644 (aarch64_sqdmlal2_laneq<mode>): Emit
17645 aarch64_sqdmlal2_laneq<mode>_internal insn.
17646 Replace VCON with VCONQ.
17647 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17648 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17649 (aarch64_sqdmull_laneq<mode>): Emit
17650 aarch64_sqdmull_laneq<mode>_internal insn.
17651 Replace VCON with VCONQ.
17652 (aarch64_sqdmull2_laneq<mode>): Emit
17653 aarch64_sqdmull2_laneq<mode>_internal insn.
17654 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17655 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17656 of 3rd argument to int16x4_t.
17657 (vqdmlalh_lane_s16): Likewise.
17658 (vqdmlslh_lane_s16): Likewise.
17659 (vqdmull_high_lane_s16): Likewise.
17660 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17661 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17662 (vqdmlsl_lane_s16): Likewise.
17663 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17664 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17665 (vqdmlals_lane_s32): Likewise.
17666 (vqdmlsls_lane_s32): Likewise.
17667 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17668 (vqdmulls_lane_s32): Likewise.
17669 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17670 (vqdmlsl_lane_s32): Likewise.
17671 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17672 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17673 (vqrdmulhh_lane_s16): Likewise.
17674 (vqdmlsl_high_lane_s16): Likewise.
17675 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17676 (vqdmlsl_high_lane_s32): Likewise.
17677 (vqrdmulhs_lane_s32): Likewise.
17679 2014-06-20 Tom de Vries <tom@codesourcery.com>
17681 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17682 get_call_reg_set_usage.
17684 2014-06-20 Tom de Vries <tom@codesourcery.com>
17686 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17687 it contains all call_used_regs.
17689 2014-06-20 Tom de Vries <tom@codesourcery.com>
17691 * final.c (collect_fn_hard_reg_usage): Add and use variable
17692 function_used_regs.
17694 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
17696 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17697 (set_init_priority, get_init_priority, set_fini_priority,
17698 get_fini_priority): New methods.
17699 * tree.c (init_priority_for_decl): Remove.
17700 (init_ttree): Do not initialize init priority.
17701 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17702 (decl_priority_info): Remove.
17703 (decl_init_priority_insert): Rewrite.
17704 (decl_fini_priority_insert): Rewrite.
17705 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17706 tree_priority_map_marked_p): Remove.
17707 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17708 * lto-streamer-out.c (hash_tree): Do not hash priorities.
17709 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17710 not output priorities.
17711 (pack_ts_function_decl_value_fields): Likewise.
17712 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17713 not input priorities.
17714 (unpack_ts_function_decl_value_fields): Likewise.
17715 * symtab.c (symbol_priority_map): Declare.
17716 (init_priority_hash): Declare.
17717 (symtab_unregister_node): Unregister from priority hash, too.
17718 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17720 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17721 (symbol_priority_info): New function.
17722 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17724 * tree-core.h (tree_priority_map): Remove.
17726 2014-06-20 Jakub Jelinek <jakub@redhat.com>
17728 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17729 0xff to uint64_t before shifting it up.
17731 2014-06-20 Julian Brown <julian@codesourcery.com>
17732 Chung-Lin Tang <cltang@codesourcery.com>
17734 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17735 TARGET_THUMB1_ONLY. Add comments.
17737 2014-06-19 Tom de Vries <tom@codesourcery.com>
17739 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17740 return type to void.
17741 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17743 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17745 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17746 as "move", from depends_on.
17748 2014-06-19 Terry Guo <terry.guo@arm.com>
17750 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17753 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
17755 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17757 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
17759 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
17762 * config/sh/sh.c (prepare_move_operands): Don't process TLS
17763 addresses here if reload in progress or completed.
17765 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17767 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17768 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17769 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17770 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17771 (mips_register_priority): New function that implements the target
17772 hook TARGET_REGISTER_PRIORITY.
17773 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17774 (mips_lra_p): Likewise for TARGET_LRA_P.
17775 (TARGET_REGISTER_PRIORITY): Define macro.
17776 (TARGET_SPILL_CLASS): Likewise.
17777 (TARGET_LRA_P): Likewise.
17778 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17780 (REG_CLASS_NAMES): Likewise.
17781 (REG_CLASS_CONTENTS): Likewise.
17782 (BASE_REG_CLASS): Use M16_SP_REGS.
17783 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17784 New set attribute to enable alternatives depending on the register
17786 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17787 (*lea64): Disable pattern for MIPS16.
17788 * config/mips/mips.opt (mlra): New option.
17790 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
17792 * lra-constraints.c (base_to_reg): New function.
17793 (process_address): Use new function.
17795 2014-06-18 Tom de Vries <tom@codesourcery.com>
17797 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17798 * config/aarch64/aarch64.c
17799 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17800 (aarch64_emit_call_insn): New function.
17801 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17803 * config/aarch64/aarch64.md (define_expand "call_internal")
17804 (define_expand "call_value_internal", define_expand "sibcall_internal")
17805 (define_expand "sibcall_value_internal"): New.
17806 (define_expand "call", define_expand "call_value")
17807 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17808 expand variant and aarch64_emit_call_insn.
17810 2014-06-18 Radovan Obradovic <robradovic@mips.com>
17811 Tom de Vries <tom@codesourcery.com>
17813 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17814 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17816 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
17817 clobbers to CALL_INSN_FUNCTION_USAGE.
17818 (define_expand "sibcall_internal")
17819 (define_expand "sibcall_value_internal"): New.
17820 (define_expand "call", define_expand "call_value"): Add argument to
17821 arm_emit_call_insn.
17822 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17823 (define_expand "sibcall_value"): Use sibcall_value_internal and
17824 arm_emit_call_insn.
17826 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17828 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17830 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17832 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17835 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17837 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17838 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17839 annotations. Fix DWARF information.
17841 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17843 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17844 __udivmoddi4, and fixups for negative operands.
17846 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17848 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17850 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17852 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17855 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17857 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17860 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17862 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17863 describing register usage on function entry and exit.
17865 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17867 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17868 (__aeabi_ldivmod): Fix whitespace.
17870 2014-06-18 Andreas Schwab <schwab@suse.de>
17872 * doc/md.texi (Standard Names): Use @itemx for grouped items.
17873 Remove blank line after @item.
17875 2014-06-18 Richard Henderson <rth@redhat.com>
17878 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17880 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
17882 * config/arm/arm.c (neon_vector_mem_operand): Allow register
17883 POST_MODIFY for neon loads and stores.
17884 (arm_print_operand): Output post-index register for neon loads and
17887 2014-06-18 Richard Biener <rguenther@suse.de>
17889 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17891 2014-06-18 Richard Biener <rguenther@suse.de>
17893 * tree-pass.h (make_pass_dce_loop): Remove.
17894 * passes.def: Replace pass_dce_loop with pass_dce.
17895 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17896 changed free niter estimates and reset the scev cache.
17897 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17898 make_pass_dce_loop): Remove.
17899 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17900 (fini_copy_prop): Return whether something changed. Always
17901 let substitute_and_fold perform DCE and free niter estimates
17902 and reset the scev cache if so.
17903 (execute_copy_prop): If sth changed schedule cleanup-cfg.
17904 (pass_data_copy_prop): Do not unconditionally schedule
17905 cleanup-cfg or update-ssa.
17907 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17909 PR tree-optimization/61518
17910 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17911 reduction var is used in reduction stmt or phi-function only.
17913 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17915 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17917 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17919 PR tree-optimization/61517
17920 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17921 whose rhs's first tree is the source expression instead of the
17923 (find_bswap_or_nop): Likewise.
17924 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17925 gimple stmt whose rhs's first tree is the source. In the memory source
17926 case, move the stmt to be replaced close to one of the original load to
17927 avoid the problem of a store between the load and the stmt's original
17929 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17932 2014-06-18 Andreas Schwab <schwab@suse.de>
17934 PR rtl-optimization/54555
17935 * postreload.c (move2add_use_add2_insn): Substitute
17936 STRICT_LOW_PART only if it is cheaper.
17938 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
17940 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17941 Do not use unspec as call operand. Use memory_operand instead of
17942 memory_nox32_operand and add "m" operand constraint. Disable
17943 pattern for TARGET_X32.
17944 (*sibcall_pop_memory): Ditto.
17945 (*sibcall_value_memory): Ditto.
17946 (*sibcall_value_pop_memory): Ditto.
17947 (sibcall peepholes): Merge SImode and DImode patterns using
17948 W mode iterator. Use memory_operand instead of memory_nox32_operand.
17949 Disable pattern for TARGET_X32. Check if eliminated register is
17950 really dead after call insn. Generate call RTX without unspec operand.
17951 (sibcall_value peepholes): Ditto.
17952 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
17953 instead of memory_nox32_operand. Check if eliminated register is
17954 really dead after call insn. Generate call RTX without unspec operand.
17955 (sibcall_value_pop peepholes): Ditto.
17956 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17958 2014-06-18 Terry Guo <terry.guo@arm.com>
17961 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17964 2014-06-18 Olivier Hainque <hainque@adacore.com>
17966 * tree-core.h (tree_block): Add an "end_locus" field, allowing
17967 memorization of the end of block source location.
17968 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17969 * gimplify.c (gimplify_bind_expr): Propagate the block start and
17970 end source location info we have on the block entry/exit code we
17973 2014-06-18 Richard Biener <rguenther@suse.de>
17975 * common.opt (fssa-phiopt): New option.
17976 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17978 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17979 * doc/invoke.texi (-fssa-phiopt): Document.
17981 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17983 * genattrtab.c (n_bypassed): New variable.
17984 (process_bypasses): Initialise n_bypassed.
17985 Count number of bypassed reservations.
17986 (make_automaton_attrs): Allocate space for bypassed reservations
17987 rather than number of bypasses.
17989 2014-06-18 Richard Biener <rguenther@suse.de>
17991 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17992 we propagated anything.
17993 (substitute_and_fold_dom_walker::before_dom_children): Something
17994 changed if we propagated into PHI arguments.
17995 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17998 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
18000 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18002 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18003 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18004 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18005 Introduces alternative way of loads group permutaions.
18006 (vect_transform_grouped_load): Try alternative way of permutations.
18008 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18010 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18011 changed in ORT_TARGET region, don't jump to do_outer.
18012 (struct gimplify_adjust_omp_clauses_data): New type.
18013 (gimplify_adjust_omp_clauses_1): Adjust for data being
18014 a struct gimplify_adjust_omp_clauses_data pointer instead
18015 of tree *. Pass pre_p as a new argument to
18016 lang_hooks.decls.omp_finish_clause hook.
18017 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18018 splay_tree_foreach to pass both list_p and pre_p.
18019 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18020 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18021 gimplify_adjust_omp_clauses callers.
18022 * langhooks.c (lhd_omp_finish_clause): New function.
18023 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18024 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18025 * langhooks.h (struct lang_hooks_for_decls): Add a new
18026 gimple_seq * argument to omp_finish_clause hook.
18027 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18028 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18029 (scan_omp_parallel, lower_omp_for): When adding
18030 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18031 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18032 * tree-nested.c (convert_nonlocal_omp_clauses,
18033 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18034 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18036 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
18038 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18039 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18041 2014-06-17 Xinliang David Li <davidxl@google.com>
18043 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18044 * passes.c (pass_init_dump_file): Do not set initialize
18045 flag to false unconditionally.
18047 2014-06-17 Richard Biener <rguenther@suse.de>
18049 * genopinit.c (main): Use vec<>::qsort method.
18050 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18052 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18054 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
18056 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18057 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18058 (mips_move_to_gpr_cost): Remove ST_REGS case.
18059 (mips_move_from_gpr_cost): Likewise.
18060 (mips_register_move_cost): Likewise.
18061 (mips_secondary_reload_class): Likewise.
18063 2014-06-17 Richard Biener <rguenther@suse.de>
18065 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18066 (pass_all_optimizations): Move 3rd copy-prop pass from after
18067 fre to before ifcombine/phiopt.
18069 2014-06-17 Richard Biener <rguenther@suse.de>
18071 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18072 and allow all blocks to be forwarders.
18074 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
18077 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18078 variable 'size'; calculate 'size' right in the front; use
18079 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18080 pcum->aapcs_stack_words.
18082 2014-06-17 Nick Clifton <nickc@redhat.com>
18084 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18085 (umulhi3, mulsidi3, umulsidi3): Likewise.
18087 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
18089 PR middle-end/61508
18090 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18091 check for section name.
18093 2014-06-17 Richard Biener <rguenther@suse.de>
18095 * tree-ssa-propagate.c: Include domwalk.h.
18096 (substitute_and_fold): Outline main worker into a domwalker ...
18097 (substitute_and_fold_dom_walker::before_dom_children): ... here.
18098 Schedule stmts we can fully propagate for removal. Remove
18100 (substitute_and_fold): Apply a dominator walk to perform
18101 substitution. Process stmts scheduled for removal here.
18103 2014-06-17 Richard Biener <rguenther@suse.de>
18105 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18106 of PHI node moving.
18108 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
18110 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18111 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18112 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18113 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18114 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18116 (get_fpscr) : Likewise.
18118 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18120 PR rtl-optimization/61325
18121 * lra-constraints.c (valid_address_p): Add forward declaration.
18122 (simplify_operand_subreg): Check address validity before and after
18123 alter_reg of memory subreg.
18125 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
18127 * config/i386/i386.c (decide_alg): Correctly handle
18128 maximum size of stringop algorithm.
18130 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18132 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18134 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
18136 PR rtl-optimization/61522
18137 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18139 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
18142 * symtab.c (symtab_node::reset_section): New method.
18143 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18145 * cgraph.h (reset_section): Declare.
18146 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18147 do not consider comdat locals.
18148 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18150 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18151 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18152 reset sections of symbols dragged out of the comdats.
18153 (function_and_variable_visibility): Reset sections of
18156 2014-06-16 Richard Biener <rguenther@suse.de>
18158 PR tree-optimization/61482
18159 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18160 [-INF(OVF), +INF(OVF)] range.
18162 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18164 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18165 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18166 handling 32-bit multiplication.
18168 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
18170 PR middle-end/61430
18171 * lra-lives.c (process_bb_lives): Skip creating copy during
18172 insn scan when src/dest has constrained to same regno.
18174 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18176 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18177 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18179 2014-06-16 Yury Gribov <y.gribov@samsung.com>
18181 * asan.c (check_func): New function.
18182 (maybe_create_ssa_name): Likewise.
18183 (build_check_stmt_with_calls): Likewise.
18184 (use_calls_p): Likewise.
18185 (report_error_func): Change interface.
18186 (build_check_stmt): Allow non-integer lengths; add support
18188 (asan_instrument): Likewise.
18189 (instrument_mem_region_access): Moved code to build_check_stmt.
18190 (instrument_derefs): Likewise.
18191 (instrument_strlen_call): Likewise.
18192 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18193 * doc/invoke.texi: Describe new parameter.
18194 * params.def: Define new parameter.
18195 * params.h: Likewise.
18196 * sanitizer.def: Describe new builtins.
18198 2014-06-16 Richard Biener <rguenther@suse.de>
18200 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18201 Make all defs available at the end.
18202 (eliminate): If we remove a PHI node schedule cfg-cleanup.
18204 2014-06-18 Jakub Jelinek <jakub@redhat.com>
18207 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18209 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
18212 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18213 initialization. Replace remaining use of uid.
18215 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
18217 * c-family/c-common.c (handle_tls_model_attribute): Use
18218 set_decl_tls_model.
18219 * c-family/c-common.c (handle_tls_model_attribute): Use
18220 set_decl_tls_model.
18221 * cgraph.h (struct varpool_node): Add tls_model.
18222 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18223 * tree.h (DECL_TLS_MODEL): Update.
18224 (DECL_THREAD_LOCAL_P): Check that variable is static.
18225 (decl_tls_model): Declare.
18226 (set_decl_tls_model): Declare.
18227 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18228 set symbol prorperties.
18229 (get_emutls_init_templ_addr): Cleanup.
18230 (new_emutls_decl): Update.
18231 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18232 (lto_input_varpool_node): Likewise.
18233 * lto-streamer-out.c (hash_tree): Likewise.
18234 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18235 not stream DECL_TLS_MODEL.
18236 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18237 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18239 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18241 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18243 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18245 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18246 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18248 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18249 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18250 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18251 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18252 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18253 (df_get_artificial_defs, df_get_artificial_uses)
18254 (df_single_def, df_single_use): Update accordingly.
18255 (df_refs_chain_dump): Take the first element in a linked list as
18256 parameter, rather than a pointer to an array of pointers.
18257 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18258 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18259 (df_chain_create_bb_process_use): Likewise.
18260 (df_md_bb_local_compute_process_def): Likewise.
18261 * fwprop.c (process_defs, process_uses): Likewise.
18262 (register_active_defs, update_uses): Likewise.
18263 (forward_propagate_asm): Update for new df_ref linking.
18264 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18265 (df_null_ref_rec, df_null_mw_rec): Likewise.
18266 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18268 (df_scan_free_bb_info): Remove check for null artificial_defs.
18269 (df_install_ref_incremental): Adjust for new df_ref linking.
18270 Use a single-element insertion rather than a full sort.
18271 (df_ref_chain_delete_du_chain): Take the first element
18272 in a linked list as parameter, rather than a pointer to an array of
18274 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18275 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18276 (df_insn_info_delete): Remove check for null defs and call to
18277 df_scan_free_mws_vec.
18278 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18279 null rather than df_null_*_rec.
18280 (df_insn_rescan_debug_internal): Likewise, and update null
18281 checks in the same way. Remove check for null defs.
18282 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18283 Move a single element rather doing a full sort.
18284 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18286 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
18287 Initialize df_ref and df_mw_hardreg lists to null rather than
18289 (df_ref_compare): Take df_refs as parameter, transferring the
18290 old interface to...
18291 (df_ref_ptr_compare): ...this new function.
18292 (df_sort_and_compress_refs): Update accordingly.
18293 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18294 old interface to...
18295 (df_mw_ptr_compare): ...this new function.
18296 (df_sort_and_compress_mws): Update accordingly.
18297 (df_install_refs, df_install_mws): Return a linked list rather than
18298 an array of pointers.
18299 (df_refs_add_to_chains): Assert that old lists are empty rather
18301 (df_insn_refs_verify): Don't handle null defs speciailly.
18302 * web.c (union_match_dups): Update for new df_ref linking.
18304 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18306 * df.h (df_ref_create, df_ref_remove): Delete.
18307 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18308 (df_ref_remove): Likewise.
18310 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18312 * df.h (df_single_def, df_single_use): New functions.
18313 * ira.c (find_moveable_pseudos): Use them.
18315 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18317 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18318 * df-problems.c (df_note_bb_compute): Use it.
18319 * regstat.c (regstat_bb_compute_ri): Likewise.
18321 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18323 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18324 * cse.c (cse_extended_basic_block): Use them.
18325 * dce.c (mark_artificial_use): Likewise.
18326 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18327 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18328 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18329 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18330 (df_simulate_initialize_backwards): Likewise.
18331 (df_simulate_finalize_backwards): Likewise.
18332 (df_simulate_initialize_forwards): Likewise.
18333 (df_md_simulate_artificial_defs_at_top): Likewise.
18334 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18335 * regrename.c (init_rename_info): Likewise.
18336 * regstat.c (regstat_bb_compute_ri): Likewise.
18337 (regstat_bb_compute_calls_crossed): Likewise.
18339 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
18341 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18342 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18343 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18344 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18345 * combine.c (create_log_links): Likewise.
18346 * compare-elim.c (find_flags_uses_in_insn): Likewise.
18347 (try_eliminate_compare): Likewise.
18348 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18349 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18350 (remove_reg_equal_equiv_notes_for_defs): Likewise.
18351 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18352 (word_dce_process_block, dce_process_block): Likewise.
18353 * ddg.c (def_has_ccmode_p): Likewise.
18354 * df-core.c (df_bb_regno_first_def_find): Likewise.
18355 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18356 * df-problems.c (df_rd_simulate_one_insn): Likewise.
18357 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18358 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18359 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18360 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18361 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18362 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18363 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18364 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18365 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18366 * fwprop.c (local_ref_killed_between_p): Likewise.
18367 (all_uses_available_at, free_load_extend): Likewise.
18368 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18369 * hw-doloop.c (scan_loop): Likewise.
18370 * ifcvt.c (dead_or_predicable): Likewise.
18371 * init-regs.c (initialize_uninitialized_regs): Likewise.
18372 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18373 (process_bb_node_lives): Likewise.
18374 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18375 (find_moveable_pseudos): Likewise.
18376 * loop-invariant.c (check_dependencies, record_uses): Likewise.
18377 * recog.c (peep2_find_free_register): Likewise.
18378 * ree.c (get_defs): Likewise.
18379 * regstat.c (regstat_bb_compute_ri): Likewise.
18380 (regstat_bb_compute_calls_crossed): Likewise.
18381 * sched-deps.c (find_inc, find_mem): Likewise.
18382 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18383 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18384 * shrink-wrap.c (requires_stack_frame_p): Likewise.
18385 (prepare_shrink_wrap): Likewise.
18386 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18387 * web.c (union_defs, pass_web::execute): Likewise.
18388 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18389 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18391 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
18393 * lra-assign.c (assign_by_spills): Add code to assign vector regs
18394 to inheritance pseudos.
18395 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18397 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
18400 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18401 (BU_MISC_2): Rename to ...
18402 (BU_LDBL128_2): ... this.
18403 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18404 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18405 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18406 RS6000_BTM_LDBL128.
18407 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18408 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18409 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18410 (unpacktf_1): Likewise.
18411 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18412 (__builtin_longdouble_dw1): Likewise.
18413 * doc/sourcebuild.texi (longdouble128): Document.
18415 2014-06-13 Jeff Law <law@redhat.com>
18417 PR rtl-optimization/61094
18418 PR rtl-optimization/61446
18419 * ree.c (combine_reaching_defs): Get the mode for the copy from
18420 the extension insn rather than the defining insn.
18422 2014-06-13 Dehao Chen <dehao@google.com>
18424 * dwarf2out.c (add_linkage_name): Emit more linkage name.
18426 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
18428 * doc/install.texi (--enable-linker-plugin-configure-flags)
18429 (--enable-linker-plugin-flags): Document new flags.
18431 2014-06-13 Martin Jambor <mjambor@suse.cz>
18434 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18435 cache_token if returning early.
18437 2014-06-13 Nick Clifton <nickc@redhat.com>
18439 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18440 requested alignment is active.
18441 (LABEL_ALIGN): Likewise.
18442 (LOOP_ALIGN): Likewise.
18444 2014-06-13 Richard Biener <rguenther@suse.de>
18446 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18447 Rewrite to propagate the VN result into all uses where
18448 possible and to remove stmts becoming dead because of that.
18449 (eliminate): Generalize stmt removal handling, remove in
18450 reverse dominator order to support proper debug stmt
18451 generation. Update stmts before removing stmts.
18452 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18454 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18456 PR tree-optimization/61375
18457 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18458 symbolic number cannot be represented in an uint64_t.
18459 (find_bswap_or_nop_1): Likewise.
18461 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18463 * symtab.c (symtab_node::reset_section): New method.
18464 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18466 * cgraph.h (reset_section): Declare.
18467 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18468 do not consider comdat locals.
18469 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18471 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18472 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18473 reset sections of symbols dragged out of the comdats.
18474 (function_and_variable_visibility): Reset sections of
18477 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
18479 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18480 to use symtab and decl_binds_to_current_def_p
18481 * tree-vectorizer.c (increase_alignment): Increase alignment
18482 of alias target, too.
18484 2014-06-12 Jakub Jelinek <jakub@redhat.com>
18486 PR middle-end/61486
18487 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18488 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18489 if outer combined construct is distribute.
18490 (gimplify_omp_for): For OMP_DISTRIBUTE set
18491 gimplify_omp_ctxp->distribute.
18492 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18493 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18494 mapping into decl map.
18496 2014-06-12 Jason Merrill <jason@redhat.com>
18498 * common.opt (fabi-version): Change default to 0.
18500 2014-06-12 Jason Merrill <jason@redhat.com>
18502 * toplev.c (process_options): Reject -fabi-version=1.
18504 2014-06-12 Jeff Law <law@redhat.com>
18506 PR tree-optimization/61009
18507 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18508 value when we stop processing a block due to problematic PHIs.
18510 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
18512 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18513 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18514 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18515 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18516 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18517 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18518 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18519 are not in the spec.
18521 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
18524 * config/aarch64/aarch64-modes.def: Add V1DFmode.
18525 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18528 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
18530 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18532 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
18535 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18536 loading from address spaces.
18538 2014-06-12 Martin Liska <mliska@suse.cz>
18541 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18542 statement is reachable.
18544 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18546 * symtab.c (section_hash): New hash.
18547 (symtab_unregister_node): Clear section before freeing.
18548 (hash_section_hash_entry): New haser.
18549 (eq_sections): New function.
18550 (symtab_node::set_section_for_node): New method.
18551 (set_section_1): Update.
18552 (symtab_node::set_section): Take string instead of tree as parameter.
18553 (symtab_resolve_alias): Update.
18554 * cgraph.h (section_hash_entry_d): New structure.
18555 (section_hash_entry): New typedef.
18556 (cgraph_node): Change comdat_group_ to x_comdat_group,
18557 change section_ to x_section and turn into section_hash_entry;
18558 update accestors; put set_section_for_node offline.
18559 * tree.c (decl_section_name): Turn into string.
18560 (set_decl_section_name): Change parameter to be string.
18561 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18562 * sdbout.c (sdbout_one_type): Update.
18563 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18564 * varasm.c (IN_NAMED_SECTION, get_named_section,
18565 resolve_unique_section, hot_function_section, get_named_text_section,
18566 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18567 make_decl_rtl, default_unique_section): Update.
18568 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18569 (c6x_elf_unique_section): Update.
18570 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18571 * config/pa/pa.c (pa_function_section): Update.
18572 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18573 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18574 * config/arc/arc.c (arc_in_small_data_p): Update.
18575 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18576 * config/mcore/mcore.c (mcore_unique_section): Update.
18577 * config/mips/mips.c (mips16_build_function_stub): Update.
18578 (mips16_build_call_stub): Update.
18579 (mips_function_rodata_section): Update.
18580 (mips_in_small_data_p): Update.
18581 * config/score/score.c (score_in_small_data_p): Update.
18582 * config/rx/rx.c (rx_in_small_data): Update.
18583 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18584 (rs6000_xcoff_asm_named_section): Update.
18585 (rs6000_xcoff_unique_section): Update.
18586 * config/frv/frv.c (frv_string_begins_with): Update.
18587 (frv_in_small_data_p): Update.
18588 * config/v850/v850.c (v850_encode_data_area): Update.
18589 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18590 (bfin_handle_l1_data_attribute): Update.
18591 (bfin_handle_l2_attribute): Update.
18592 * config/mep/mep.c (mep_unique_section): Update.
18593 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18595 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18596 (h8300_handle_tiny_data_attribute): Update.
18597 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18598 (m32r_in_small_data_p): Update.
18599 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18600 * config/i386/i386.c (ix86_in_large_data_p): Update.
18601 * config/i386/winnt.c (i386_pe_unique_section): Update.
18602 * config/darwin.c (darwin_function_section): Update.
18603 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18604 * tree-emutls.c (get_emutls_init_templ_addr): Update.
18605 (new_emutls_decl): Update.
18606 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18607 input_varpool_node): Update.
18608 (ead_string_cst): Turn to ...
18609 (read_string): ... this one.
18610 * dwarf2out.c (secname_for_decl): Update.
18611 * asan.c (asan_protect_global): Update.
18613 2014-06-11 DJ Delorie <dj@redhat.com>
18615 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18617 * config/rx/rx.c (rx_option_override): Likewise.
18618 (rx_align_for_label): Likewise.
18620 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18622 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
18624 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18627 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18629 * common.md: New file.
18630 * doc/md.texi: Update description of generic, machine-independent
18632 * config/s390/constraints.md (e): Delete.
18633 * Makefile.in (md_file): Include common.md.
18634 * config/m32c/t-m32c (md_file): Likewise.
18635 * genpreds.c (general_mem): New array.
18636 (generic_constraint_letters): Remove constraints now defined by
18638 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18639 Allow the first character to be '<' or '>' as well.
18640 * genoutput.c (general_mem): New array.
18641 (indep_constraints): Remove constraints now defined by common.md.
18642 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18643 Remove special handling of 'm'.
18644 * ira-costs.c (record_reg_classes): Remove special handling of
18645 constraints now defined by common.md.
18646 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18647 * ira-lives.c (single_reg_class): Likewise.
18648 (ira_implicitly_set_insn_hard_regs): Likewise.
18649 * lra-constraints.c (reg_class_from_constraints): Likewise.
18650 (process_alt_operands, process_address, curr_insn_transform): Likewise.
18651 * postreload.c (reload_cse_simplify_operands): Likewise.
18652 * reload.c (push_secondary_reload, scratch_reload_class)
18653 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18654 * reload1.c (maybe_fix_stack_asms): Likewise.
18655 * targhooks.c (default_secondary_reload): Likewise.
18656 * stmt.c (parse_output_constraint): Likewise.
18657 * recog.c (preprocess_constraints): Likewise.
18658 (constrain_operands, peep2_find_free_register): Likewise.
18659 (asm_operand_ok): Likewise, but add a comment saying why 'o'
18660 must be handled specially.
18662 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18664 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18665 * genpreds.c (have_const_dbl_constraints): Delete.
18666 (add_constraint): Don't set it.
18667 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18668 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18669 constraints using the lookup_constraint logic.
18670 * ira-lives.c (single_reg_class): Likewise.
18671 * ira.c (ira_setup_alts): Likewise.
18672 * lra-constraints.c (process_alt_operands): Likewise.
18673 * recog.c (asm_operand_ok, constrain_operands): Likewise.
18674 * reload.c (find_reloads): Likewise.
18676 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18678 * genpreds.c (const_int_start, const_int_end): New variables.
18679 (choose_enum_order): Output CONST_INT constraints before memory
18681 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18683 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18684 * ira.c (ira_setup_alts): Likewise.
18685 * lra-constraints.c (process_alt_operands): Likewise.
18686 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18687 * reload.c (find_reloads): Likewise.
18689 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18691 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18692 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
18693 * recog.c (preprocess_constraints): Update accordingly.
18695 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18697 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18698 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18699 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18700 * genpreds.c (print_type_tree): New function.
18701 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18702 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18703 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18704 Write out enum constraint_type and get_constraint_type.
18705 * lra-constraints.c (satisfies_memory_constraint_p): Take a
18706 constraint_num rather than a constraint string.
18707 (satisfies_address_constraint_p): Likewise.
18708 (reg_class_from_constraints): Avoid old constraint macros.
18709 (process_alt_operands, process_address_1): Likewise.
18710 (curr_insn_transform): Likewise.
18711 * ira-costs.c (record_reg_classes): Likewise.
18712 (record_operand_costs): Likewise.
18713 * ira-lives.c (single_reg_class): Likewise.
18714 (ira_implicitly_set_insn_hard_regs): Likewise.
18715 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18716 * postreload.c (reload_cse_simplify_operands): Likewise.
18717 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18718 (constrain_operands, peep2_find_free_register): Likewise.
18719 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18720 (find_reloads, alternative_allows_const_pool_ref): Likewise.
18721 * reload1.c (maybe_fix_stack_asms): Likewise.
18722 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18723 * targhooks.c (default_secondary_reload): Likewise.
18724 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18725 to EXTRA_CONSTRAINT_STR.
18726 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18728 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18730 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18731 (write_constraint_satisfied_p_array): ...this new function.
18732 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18734 (write_insn_preds_c): Update accordingly.
18736 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18738 * genpreds.c (write_lookup_constraint): Rename to...
18739 (write_lookup_constraint_1): ...this.
18740 (write_lookup_constraint_array): New function.
18741 (write_tm_preds_h): Define lookup_constraint as an inline function
18742 that uses write_lookup_constraint_array where possible.
18743 (write_insn_preds_c): Update for the changes above.
18745 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
18747 * doc/md.texi (regclass_for_constraint): Rename to...
18748 (reg_class_for_constraint): ...this.
18749 * genpreds.c (num_constraints, enum_order, register_start)
18750 (register_end, satisfied_start, memory_start, memory_end)
18751 (address_start, address_end): New variables.
18752 (add_constraint): Count the number of constraints.
18753 (choose_enum_order): New function.
18754 (write_enum_constraint_num): Iterate over enum_order.
18755 (write_regclass_for_constraint): Rename to...
18756 (write_reg_class_for_constraint_1): ...this and update output
18758 (write_constraint_satisfied_p): Rename to...
18759 (write_constraint_satisfied_p_1): ...this and update output
18760 accordingly. Do nothing if all extra constraints are register
18762 (write_insn_extra_memory_constraint): Delete.
18763 (write_insn_extra_address_constraint): Delete.
18764 (write_range_function): New function.
18765 (write_tm_preds_h): Define constraint_satisfied_p and
18766 reg_class_for_constraint as inline functions that do a range check
18767 before calling the out-of-line function. Use write_range_function
18768 to implement insn_extra_{register,memory,address}_constraint,
18769 the first of which is new.
18770 (write_insn_preds_c): Update after above changes to write_* functions.
18771 (main): Call choose_enum_order.
18773 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
18775 PR tree-optimization/61306
18776 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18777 expression instead of its size.
18778 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18779 false to prevent optimization when the result is unpredictable due to
18780 arithmetic right shift of signed type with highest byte is set.
18781 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18782 (init_symbolic_number): Likewise.
18783 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18784 when the result is unpredictable due to sign extension.
18786 2014-06-11 Terry Guo <terry.guo@arm.com>
18788 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18789 (*thumb1_addsi3): Ditto.
18790 (*thumb_subdi3): Ditto.
18791 (thumb1_subsi3_insn): Ditto.
18792 (*thumb_mulsi3): Ditto.
18793 (*thumb_mulsi3_v6): Ditto.
18794 (*thumb1_andsi3_insn): Ditto.
18795 (thumb1_bicsi3): Ditto.
18796 (*thumb1_iorsi3_insn): Ditto.
18797 (*thumb1_xorsi3_insn): Ditto.
18798 (*thumb1_ashlsi3): Ditto.
18799 (*thumb1_ashrsi3): Ditto.
18800 (*thumb1_lshrsi3): Ditto.
18801 (*thumb1_rotrsi3): Ditto.
18802 (*thumb1_negdi2): Ditto.
18803 (*thumb1_negsi2): Ditto.
18804 (*thumb1_abssi2): Ditto.
18805 (*thumb1_neg_abssi2): Ditto.
18806 (*thumb1_one_cmplsi2): Ditto.
18807 (*thumb1_zero_extendhisi2): Ditto.
18808 (*thumb1_zero_extendqisi2): Ditto.
18809 (*thumb1_zero_extendqisi2_v6): Ditto.
18810 (thumb1_extendhisi2): Ditto.
18811 (thumb1_extendqisi2): Ditto.
18812 (*thumb1_movdi_insn): Ditto.
18813 (*thumb1_movsi_insn): Ditto.
18814 (*thumb1_movhi_insn): Ditto.
18815 (thumb_movhi_clobber): Ditto.
18816 (*thumb1_movqi_insn): Ditto.
18817 (*thumb1_movhf): Ditto.
18818 (*thumb1_movsf_insn): Ditto.
18819 (*thumb_movdf_insn): Ditto.
18820 (movmem12b): Ditto.
18822 (cbranchqi4): Ditto.
18823 (cbranchsi4_insn): Ditto.
18824 (cbranchsi4_scratch): Ditto.
18825 (*negated_cbranchsi4): Ditto.
18826 (*tbit_cbranch): Ditto.
18827 (*tlobits_cbranch): Ditto.
18828 (*tstsi3_cbranch): Ditto.
18829 (*cbranchne_decr1): Ditto.
18830 (*addsi3_cbranch): Ditto.
18831 (*addsi3_cbranch_scratch): Ditto.
18832 (*thumb_cmpdi_zero): Ditto.
18833 (cstoresi_eq0_thumb1): Ditto.
18834 (cstoresi_ne0_thumb1): Ditto.
18835 (*cstoresi_eq0_thumb1_insn): Ditto.
18836 (*cstoresi_ne0_thumb1_insn): Ditto.
18837 (cstoresi_nltu_thumb1): Ditto.
18838 (cstoresi_ltu_thumb1): Ditto.
18839 (thumb1_addsi3_addgeu): Ditto.
18840 (*thumb_jump): Ditto.
18841 (*call_reg_thumb1_v5): Ditto.
18842 (*call_reg_thumb1): Ditto.
18843 (*call_value_reg_thumb1_v5): Ditto.
18844 (*call_value_reg_thumb1): Ditto.
18845 (*call_insn): Ditto.
18846 (*call_value_insn): Ditto.
18847 (thumb1_casesi_internal_pic): Ditto.
18848 (thumb1_casesi_dispatch): Ditto.
18849 (*thumb1_indirect_jump): Ditto.
18850 (prologue_thumb1_interwork): Ditto.
18851 (*epilogue_insns): Ditto.
18852 (consttable_1): Ditto.
18853 (consttable_2): Ditto.
18854 (tablejump): Ditto.
18855 (*thumb1_tablejump): Ditto.
18856 (thumb_eh_return): Ditto.
18857 (define_peephole2): Two of them are thumb1 only and got moved into
18858 new file thumb1.md.
18859 (define_split): Six of them are thumb1 only and got moved into new
18861 * config/arm/thumb1.md: New file comprised of above thumb1 only
18864 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18866 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18867 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18869 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18870 (aarch64_crc_builtin_datum): New struct.
18871 (aarch64_crc_builtin_data): New.
18872 (aarch64_init_crc32_builtins): New function.
18873 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18874 (aarch64_crc32_expand_builtin): New.
18875 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18876 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18877 __ARM_FEATURE_CRC32 when appropriate.
18878 (TARGET_CRC32): Define.
18879 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18880 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18881 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18882 (aarch64_<crc_variant>): New pattern.
18883 * config/aarch64/arm_acle.h: New file.
18884 * config/aarch64/iterators.md (CRC): New int iterator.
18885 (crc_variant, crc_mode): New int attributes.
18886 * doc/aarch64-acle-intrinsics.texi: New file.
18887 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18888 Include aarch64-acle-intrinsics.texi.
18890 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
18892 * tree-vect-data-refs.c (vect_grouped_store_supported): New
18893 check for stores group of length 3.
18894 (vect_permute_store_chain): New permutations for stores group of
18896 * tree-vect-stmts.c (vect_model_store_cost): Change cost
18897 of vec_perm_shuffle for the new permutations.
18899 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
18901 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18902 table rewriting temporarily on targets not supporting ONE_ONLY.
18904 2014-06-11 Richard Biener <rguenther@suse.de>
18906 PR middle-end/61437
18908 2014-06-04 Richard Biener <rguenther@suse.de>
18910 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18911 TREE_PUBLIC and DECL_EXTERNAL decls.
18913 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
18915 * varasm.c (set_implicit_section): New function.
18916 (resolve_unique_section): Use it to set implicit section
18918 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18919 (default_function_section): Likewise.
18920 (decl_binds_to_current_def_p): Constify argument.
18921 * varasm.h (decl_binds_to_current_def_p): Update prototype.
18922 * asan.c (asan_protect_global): Use
18923 symtab_get_node (decl)->implicit_section.
18924 * symtab.c (dump_symtab_base): Dump implicit sections.
18925 (verify_symtab_base): Verify sanity of sectoins and comdats.
18926 (symtab_resolve_alias): Alias share the section of its target.
18927 (set_section_1): New function.
18928 (symtab_node::set_section): Move here, recurse to aliases.
18929 (verify_symtab): Check for duplicated symtab lists.
18930 * tree-core.h (implicit_section_name_p): Remove.
18931 * tree-vect-data-refs.c: Include varasm.h.
18932 (vect_can_force_dr_alignment_p): Fix conditional on when
18933 decl bints to current definition; use
18934 symtab_get_node (decl)->implicit_section.
18935 * cgraph.c (cgraph_make_node_local_1): Fix section set.
18936 * cgraph.h (struct symtab_node): Add implicit_section.
18937 (set_section): Rename to ...
18938 (set_section_for_node): ... this one.
18939 (set_section): Declare.
18940 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18941 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18942 input_overwrite_node, input_varpool_node): Stream implicit_section.
18943 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18944 removal; it will fail in LTO.
18946 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18948 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18949 Change second alternative type to f_mcr.
18950 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18951 and 12th alternatives' types to f_mcr and f_mrc.
18952 (*movdi_aarch64): Same for 12th and 13th alternatives.
18953 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18954 (aarch64_movtilow_tilow): Change type to fmov.
18956 2014-06-10 Jiong Wang <jiong.wang@arm.com>
18958 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18959 (aarch64_save_or_restore_callee_save_registers): Fix layout.
18961 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18963 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18965 (aarch64_sqrdmulh_lane<mode>): Likewise.
18966 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18967 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18968 (aarch64_sqdmulh_laneq<mode>): New expander.
18969 (aarch64_sqrdmulh_laneq<mode>): Likewise.
18970 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18971 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18972 (aarch64_sqdmulh_lane<mode>): New expander.
18973 (aarch64_sqrdmulh_lane<mode>): Likewise.
18974 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18975 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18976 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18977 (aarch64_sqdmlal_laneq<mode>): Likewise.
18978 (aarch64_sqdmlsl_lane<mode>): Likewise.
18979 (aarch64_sqdmlsl_laneq<mode>): Likewise.
18980 (aarch64_sqdmlal2_lane<mode>): Likewise.
18981 (aarch64_sqdmlal2_laneq<mode>): Likewise.
18982 (aarch64_sqdmlsl2_lane<mode>): Likewise.
18983 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18984 (aarch64_sqdmull_lane<mode>): Likewise.
18985 (aarch64_sqdmull_laneq<mode>): Likewise.
18986 (aarch64_sqdmull2_lane<mode>): Likewise.
18987 (aarch64_sqdmull2_laneq<mode>): Likewise.
18989 2014-06-10 Richard Biener <rguenther@suse.de>
18991 PR tree-optimization/61438
18992 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18993 (eliminate_dom_walker::before_dom_children): Only try to inhibit
18994 insertion of IVs if running PRE.
18995 (eliminate): Adjust.
18996 (pass_pre::execute): Likewise.
18997 (pass_fre::execute): Likewise.
18999 2014-06-10 Richard Biener <rguenther@suse.de>
19001 PR middle-end/61456
19002 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19003 Do not use the main variant for the type comparison.
19004 (ncr_compar): Likewise.
19005 (nonoverlapping_component_refs_p): Likewise.
19007 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
19009 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19010 REG_CFA_RESTORE mode.
19012 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
19014 * config/i386/i386.c (expand_vec_perm_pblendv): New.
19015 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19016 expand_vec_perm_pblendv.
19018 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19020 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19022 Simplify description of __crc32d and __crc32cd intrinsics.
19023 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19026 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
19029 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19030 * config.in: Regenerate.
19031 * configure: Likewise.
19033 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
19035 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19037 (intersect_static_var_sets): Remove.
19038 (propagate): Do not prune local statics.
19040 2014-06-10 Jakub Jelinek <jakub@redhat.com>
19043 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19044 Set lastprivate_firstprivate even if omp_private_outer_ref
19045 langhook returns true.
19046 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19047 langhook, call unshare_expr on new_var and call
19048 build_outer_var_ref to get the last argument.
19050 2014-06-10 Marek Polacek <polacek@redhat.com>
19053 * doc/extend.texi: Add cindex for transparent_union.
19055 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19057 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19058 init_symbolic_number ().
19060 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
19062 PR middle-end/61141
19063 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19064 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19065 (verify_rtl_sharing): Likewise.
19067 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
19070 * tree.c (build_qualified_type): Use a canonical type for
19073 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19075 * config/arm/arm-modes.def: Remove XFmode.
19077 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
19080 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19081 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19082 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19083 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19084 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19085 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19086 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19087 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19088 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19090 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
19092 * tree-core.h (tree_decl_with_vis): Remove section_name.
19094 2014-06-09 Kito Cheng <kito@0xlab.org>
19096 * ira.c (ira): Don't call init_caller_save if LRA enabled
19097 since LRA use its own infrastructure to handle that.
19099 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19101 * symtab.c (dump_symtab_base): Update dumping.
19102 (symtab_make_decl_local): Clear only DECL_COMDAT.
19103 * tree-vect-data-refs.c (Check that variable is static before
19104 tampering with sections.
19105 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19106 (cgraph_create_virtual_clone): Likewise.
19107 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19108 (decl_section_name, set_decl_section_name): New accessors.
19109 (find_decls_types_r): Do not walk section name
19110 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19111 (decl_comdat_group, decl_comdat_group_id): Constify.
19112 (decl_section_name, set_decl_section_name): Update.
19113 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19114 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19115 (cgraph_make_node_local_1): Clear section and comdat group.
19116 * cgraph.h (set_comdat_group): Sanity check.
19117 (get_section, set_section): New.
19118 * ipa-comdats.c (ipa_comdats): Use get_section.
19119 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19120 * lto-streamer-out.c: Do not follow section names.
19121 * c-family/c-common.c (handle_section_attribute): Update.
19122 * lto-cgraph.c (lto_output_node): Output section.
19123 (lto_output_varpool_node): Likewise.
19124 (read_comdat_group): Rename to ...
19125 (read_identifier): ... this one.
19126 (read_string_cst): New function.
19127 (input_node, input_varpool_node): Input section names.
19128 * tree-emutls.c (get_emutls_init_templ_addr): Update.
19129 (new_emutls_decl): Update.
19130 (secname_for_decl): Check section names only of static vars.
19131 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19132 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19133 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19134 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19135 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19136 * config/mcore/mcore.c (mcore_unique_section): Likewise.
19137 * config/mips/mips.c (mips16_build_function_stub): Likewise.
19138 * config/v850/v850.c (v850_insert_attributes): Likewise.
19139 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19141 (h8300_handle_tiny_data_attribute): Likewise.
19142 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19143 (bfin_handle_l2_attribute): Likewise.
19145 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19147 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19148 remove static initializer.
19150 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19152 * varasm.c (use_blocks_for_decl_p): Check symbol table
19153 instead of alias attribute.
19154 (place_block_symbol): Recurse on aliases.
19156 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19158 * ipa-visibility.c: Include varasm.h
19159 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19161 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
19163 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19164 outputting aliases.
19166 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
19168 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19169 from test_insn into GGC space escape via SET_SRC.
19171 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
19173 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19174 call statement, if any.
19175 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19176 statements, if any. Tidy up.
19178 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19181 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19182 iterators, VSX_D that handles 64-bit types, and VSX_LE that
19183 handles swapping the two 64-bit double words on little endian
19184 systems. Include V1TImode and optionally TImode in VSX_LE so that
19185 these types are properly swapped. Change all of the insns and
19186 splits that do the 64-bit swaps to use VSX_LE.
19187 (vsx_le_perm_load_<mode>): Likewise.
19188 (vsx_le_perm_store_<mode>): Likewise.
19189 (splitters for little endian memory operations): Likewise.
19190 (vsx_xxpermdi2_le_<mode>): Likewise.
19191 (vsx_lxvd2x2_le_<mode>): Likewise.
19192 (vsx_stxvd2x2_le_<mode>): Likewise.
19194 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
19197 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19198 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19199 and corresponding splitters. Zero extend general register
19200 or memory input operand to XMM temporary. Enable for
19201 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19202 (floatunssi<mode>2): Update expander predicate.
19204 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
19206 PR rtl-optimization/61325
19207 * lra-constraints.c (process_address_1): Check scale equal to one
19208 to prevent transformation: base + scale * index => base + new_reg.
19210 2014-06-06 Richard Biener <rguenther@suse.de>
19212 PR tree-optimization/59299
19213 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19215 (nearest_common_dominator_of_uses): Likewise.
19216 (statement_sink_location): Adjust. Support sinking loads.
19218 2014-06-06 Martin Jambor <mjambor@suse.cz>
19220 * ipa-prop.c (get_place_in_agg_contents_list): New function.
19221 (build_agg_jump_func_from_list): Likewise.
19222 (determine_known_aggregate_parts): Renamed to
19223 determine_locally_known_aggregate_parts. Moved some functionality
19224 to the two functions above, removed bound checks.
19226 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
19228 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19229 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19230 (aarch64_progress_pointer): Likewise.
19231 (aarch64_copy_one_part_and_move_pointers): Likewise.
19232 (aarch64_expand_movmen): Likewise.
19233 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19234 * config/aarch64/aarch64.md (movmem<mode>): New.
19236 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
19238 * targhooks.c (default_add_stmt_cost): Call target specific
19239 hook instead of default one.
19241 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
19243 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19244 endianness instead of host endianness.
19245 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19248 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19251 * function.c (instantiate_decls): Process the saved static chain.
19252 (expand_function_start): If not optimizing, save the static chain
19254 * tree-nested.c (convert_all_function_calls): Always create the static
19255 chain for nested functions if not optimizing.
19257 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19259 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19261 2014-06-06 Richard Biener <rguenther@suse.de>
19263 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19264 (construct_init_block): Likewise.
19265 (construct_exit_block): Likewise.
19266 (pass_expand::execute): Likewise.
19267 * graphite.c (graphite_transforms): Replace check for current_loops
19268 with a check for > 1 loops.
19269 (pass_graphite_transforms::execute): Adjust.
19270 * ipa-split.c (split_function): Remove check for current_loops.
19271 * omp-low.c (expand_parallel_call): Likewise.
19272 (expand_omp_for_init_counts): Likewise.
19273 (extract_omp_for_update_vars): Likewise.
19274 (expand_omp_for_generic): Likewise.
19275 (expand_omp_sections): Likewise.
19276 (expand_omp_target): Likewise.
19277 * tracer.c (tail_duplicate): Likewise.
19278 (pass_tracer::execute): Likewise.
19279 * trans-mem.c (expand_transaction): Likewise.
19280 * tree-complex.c (expand_complex_div_wide): Likewise.
19281 * tree-eh.c (lower_resx): Likewise.
19282 (cleanup_empty_eh_merge_phis): Likewise.
19283 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19284 current_loops with a check for > 1 loops.
19285 (pass_predcom::execute): Adjust.
19286 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19287 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19288 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19289 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19290 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19291 * tree-switch-conversion.c (process_switch): Likewise.
19292 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19293 * tree-vrp.c (vrp_visit_phi_node): Likewise.
19294 (execute_vrp): Likewise.
19295 * ubsan.c (ubsan_expand_null_ifn): Likewise.
19297 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
19299 * rtl.h (insn_location): Declare.
19300 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19301 with UNKNOWN_LOCATION.
19302 * emit-rtl.c (insn_location): New function.
19303 * final.c (notice_source_line): Check that the instruction has a
19304 location before retrieving it and use insn_location.
19305 * modulo-sched.c (loop_single_full_bb_p): Likewise.
19306 * print-rtl.c (print_rtx): Likewise.
19308 2014-06-06 Richard Biener <rguenther@suse.de>
19310 * passes.def: Move 2nd VRP pass before phi-only-cprop.
19312 2014-06-06 Christian Bruel <christian.bruel@st.com>
19314 PR tree-optimization/43934
19315 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19318 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
19320 * ira-lives.c (single_reg_class): Add missing break. Explicitly
19321 return NO_REGS for extra address and memory constraints. Handle
19322 operands that match (or are equivalent to something that matches)
19323 extra constant constraints. Ignore other non-register operands.
19325 2014-06-06 Alan Modra <amodra@gmail.com>
19328 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19329 * doc/tm.texi: Regenerate.
19330 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19331 Use throughout in place of REG_PARM_STACK_SPACE.
19332 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19333 "incoming" param. Pass to rs6000_function_parms_need_stack.
19334 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19335 prototype_p when incoming. Use function decl when incoming
19336 to handle K&R style functions.
19337 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19338 (INCOMING_REG_PARM_STACK_SPACE): Define.
19340 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19343 * cfgexpand.c (expand_debug_expr): Use address space of nested
19344 TREE_TYPE for ADDR_EXPR and MEM_REF.
19346 2014-06-05 Jeff Law <law@redhat.com>
19348 PR tree-optimization/61289
19349 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19350 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
19351 looking for those which match LHS. All callers changed.
19352 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19353 parameters and code which manipulated them. All callers changed.
19354 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19355 and DST_MAP parameters. Simplify invalidation code by just calling
19356 invalidate_equivalences. All callers changed.
19357 (thread_across_edge): Simplify now that we don't need to maintain
19358 the map of equivalences to invalidate.
19360 2014-06-05 Kai Tietz <ktietz@redhat.com>
19361 Richard Henderson <rth@redhat.com>
19364 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19365 checking for !TARGET_X32.
19366 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19367 (sibcall_intern): New define_insn, plus required peepholes.
19368 (sibcall_pop_intern): Likewise.
19369 (sibcall_value_intern): Likewise.
19370 (sibcall_value_pop_intern): Likewise.
19372 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
19374 * tree-inline.c (tree_function_versioning): Check DF info existence
19375 before accessing it.
19377 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19379 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19381 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19382 aarch64_frame hard_fp_offset and frame_size.
19383 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19384 frame_size; remove original_frame_size.
19385 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19386 (aarch64_initial_elimination_offset): Remove frame_size and
19387 offset. Use aarch64_frame frame_size.
19389 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19390 Jiong Wang <jiong.wang@arm.com>
19391 Renlin <renlin.li@arm.com>
19393 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19394 initialization of R30 offset. Update offset. Iterate core
19395 regisers upto X30. Remove X29, X30 specific code.
19397 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19398 Jiong Wang <jiong.wang@arm.com>
19400 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19401 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19402 (aarch64_register_saved_on_entry): Adjust test.
19404 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19406 * config/aarch64/aarch64.h (machine_function): Move
19407 saved_varargs_size from here...
19408 (aarch64_frame): ... to here.
19410 * config/aarch64/aarch64.c (aarch64_expand_prologue)
19411 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19412 (aarch64_initial_elimination_offset)
19413 (aarch64_setup_incoming_varargs): Adjust location of
19414 saved_varargs_size.
19416 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
19418 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19421 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
19422 Prachi Godbole <Prachi.Godbole@imgtec.com>
19424 * config/mips/mips-cpus.def: Add definition for p5600. Updated
19425 mips32r5 entry to use PROCESSOR_P5600.
19426 * config/mips/mips-tables.opt: Regenerate.
19427 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19428 * config/mips/mips.c (mips_fmadd_bypass): New function.
19429 (mips_rtx_cost_data): Add costs for p5600.
19430 (mips_issue_rate): Add support for p5600.
19431 (mips_multipass_dfa_lookahead): Likewise.
19432 * config/mips/mips.h (TUNE_P5600): New define.
19433 (TUNE_MACC_CHAINS): Add TUNE_P5600.
19434 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19435 * config/mips/mips.md: Include p5600.md.
19436 (processor): Add p5600.
19437 * config/mips/p5600.md: New file.
19439 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
19441 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19442 * config/i386/predicates.md (palignr_operand): New.
19443 Indicates if permutation is suitable for palignr instruction.
19445 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
19447 PR tree-optimization/61319
19448 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19449 stmt belongs to loop.
19451 2014-06-05 Richard Biener <rguenther@suse.de>
19453 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19454 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19455 (lookup_tmp_var): Adjust.
19456 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19458 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19460 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19462 2014-06-05 Marek Polacek <polacek@redhat.com>
19465 * doc/invoke.texi: Document -Wlogical-not-parentheses.
19467 2014-06-04 Tom de Vries <tom@codesourcery.com>
19469 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19472 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
19474 PR tree-optimization/61385
19475 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19477 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
19479 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
19480 changed to use fatal_error.
19481 (main): Ensure lto_wrapper_cleanup is run atexit.
19483 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19485 * lra-constraints.c (valid_address_p): Move earlier in file.
19486 (address_eliminator): New structure.
19487 (satisfies_memory_constraint_p): New function.
19488 (satisfies_address_constraint_p): Likewise.
19489 (process_alt_operands, process_address, curr_insn_transform): Use them.
19491 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19493 * lra-int.h (lra_static_insn_data): Make operand_alternative a
19495 (target_lra_int, default_target_lra_int, this_target_lra_int)
19496 (op_alt_data): Delete.
19497 * lra.h (lra_init): Delete.
19498 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19499 (init_insn_code_data_once): Remove op_alt_data handling.
19500 (finish_insn_code_data_once): Likewise.
19501 (init_op_alt_data): Delete.
19502 (get_static_insn_data): Initialize operand_alternative to null.
19503 (free_insn_recog_data): Cast operand_alternative before freeing it.
19504 (setup_operand_alternative): Take the operand_alternative as
19505 parameter and assume it isn't already cached in the static
19507 (lra_set_insn_recog_data): Update accordingly.
19508 (lra_init): Delete.
19509 * ira.c (ira_init): Don't call lra_init.
19510 * target-globals.h (this_target_lra_int): Declare.
19511 (target_globals): Remove lra_int.
19512 (restore_target_globals): Update accordingly.
19513 * target-globals.c: Don't include lra-int.h.
19514 (default_target_globals, save_target_globals): Remove lra_int.
19516 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19518 * recog.h (operand_alternative): Convert reg_class, reject,
19519 matched and matches into bitfields.
19520 (preprocess_constraints): New overload.
19521 (preprocess_insn_constraints): New function.
19522 (preprocess_constraints): Take the insn as parameter.
19523 (recog_op_alt): Change into a pointer.
19524 (target_recog): Add x_op_alt.
19525 * recog.c (asm_op_alt): New variable.
19526 (recog_op_alt): Change into a pointer.
19527 (preprocess_constraints): New overload, replacing the old function
19528 definition with one that doesn't use global state.
19529 (preprocess_insn_constraints): New function.
19530 (preprocess_constraints): Use them. Take the insn as parameter.
19531 Use asm_op_alt for asms.
19532 (recog_init): Free existing x_op_alt entries.
19533 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19535 (make_early_clobber_and_input_conflicts): Likewise.
19536 (process_bb_node_lives): Pass the insn to process_constraints.
19537 * reg-stack.c (check_asm_stack_operands): Likewise.
19538 (subst_asm_stack_regs): Likewise.
19539 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19540 * regrename.c (build_def_use): Likewise.
19541 * sched-deps.c (sched_analyze_insn): Likewise.
19542 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19543 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19544 (note_invalid_constants): Likewise.
19545 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19546 (ix86_legitimate_combined_insn): Make operand_alternative pointer
19549 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19551 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19552 * ira-lives.c (check_and_make_def_conflict): Check for disabled
19554 (make_early_clobber_and_input_conflicts): Likewise.
19555 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19557 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19559 * recog.h (alternative_class): New function.
19560 (which_op_alt): Return a const recog_op_alt.
19561 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19562 (subst_asm_stack_regs): Likewise.
19563 * config/arm/arm.c (note_invalid_constants): Likewise.
19564 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
19565 the operand_alternative; use alternative class instead.
19566 * sel-sched.c (get_reg_class): Likewise.
19567 * regrename.c (build_def_use): Likewise.
19568 (hide_operands, restore_operands, record_out_operands): Update type
19571 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
19573 * recog.h (recog_op_alt): Convert to a flat array.
19574 (which_op_alt): New function.
19575 * recog.c (recog_op_alt): Convert to a flat array.
19576 (preprocess_constraints): Update accordingly, grouping all
19577 operands of the same alternative together, rather than the
19579 * ira-lives.c (check_and_make_def_conflict): Likewise.
19580 (make_early_clobber_and_input_conflicts): Likewise.
19581 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19582 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19583 (subst_asm_stack_regs): Likewise.
19584 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19585 * regrename.c (hide_operands, record_out_operands): Likewise.
19586 (build_def_use): Likewise.
19587 * sel-sched.c (get_reg_class): Likewise.
19588 * config/arm/arm.c (note_invalid_constants): Likewise.
19590 2014-06-04 Jason Merrill <jason@redhat.com>
19594 * gimplify.c (gimplify_arg): Non-static.
19595 * gimplify.h: Declare it.
19597 2014-06-04 Richard Biener <rguenther@suse.de>
19599 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19600 TREE_PUBLIC and DECL_EXTERNAL decls.
19602 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
19604 * regcprop.c (copyprop_hardreg_forward_1): Account for
19605 HARD_REGNO_CALL_PART_CLOBBERED.
19607 2014-06-04 Richard Biener <rguenther@suse.de>
19609 * configure.ac: Check whether the underlying type of int64_t
19610 is long or long long.
19611 * configure: Regenerate.
19612 * config.in: Likewise.
19613 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19614 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19616 2014-06-04 Richard Biener <rguenther@suse.de>
19618 PR tree-optimization/60098
19619 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19621 (dse_optimize_stmt): Simplify, now that we found a kill
19624 2014-06-04 Richard Biener <rguenther@suse.de>
19626 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19627 of accesses with non-invariant address.
19629 2014-06-04 Martin Liska <mliska@suse.cz>
19631 * cgraph.h (cgraph_make_wrapper): New function introduced.
19632 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19633 * ipa-inline.h (inline_analyze_function): The function is global.
19634 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19636 2014-06-04 Martin Liska <mliska@suse.cz>
19638 * tree.h (private_lookup_attribute_starting): New function.
19639 (lookup_attribute_starting): Likewise.
19640 * tree.c (private_lookup_attribute_starting): Likewise.
19642 2014-06-04 Martin Liska <mliska@suse.cz>
19644 * cgraph.h (expand_thunk): New argument added.
19645 (address_taken_from_non_vtable_p): New global function.
19646 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19647 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19648 * cgraphunit.c (analyze_function): Likewise.
19649 (assemble_thunks_and_aliases): Argument added to call.
19650 (expand_thunk): New argument forces to produce GIMPLE thunk.
19652 2014-06-04 Martin Liska <mliska@suse.cz>
19654 * coverage.h (coverage_compute_cfg_checksum): Argument added.
19655 * coverage.c (coverage_compute_cfg_checksum): Likewise.
19656 * profile.c (branch_prob): Likewise.
19658 2014-06-04 Martin Jambor <mjambor@suse.cz>
19661 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19662 handler for switch on an ipa_ref_use enum.
19663 * ipa-reference.c (analyze_function): Likewise.
19665 2014-06-04 Kai Tietz <ktietz@redhat.com>
19667 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19668 from old call-instruction.
19670 2014-06-04 Bin Cheng <bin.cheng@arm.com>
19672 * config/aarch64/aarch64.c (aarch64_classify_address)
19673 (aarch64_legitimize_reload_address): Support full addressing modes
19675 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19676 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19678 2014-06-03 Andrew Pinski <apinski@cavium.com>
19680 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19683 2014-06-03 Andrew Pinski <apinski@cavium.com>
19685 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19686 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19688 2014-06-03 Kai Tietz <ktietz@redhat.com>
19690 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19693 2014-06-03 Dehao Chen <dehao@google.com>
19695 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19698 2014-06-03 Marek Polacek <polacek@redhat.com>
19701 * doc/invoke.texi: Document -Wswitch-bool.
19702 * function.c (stack_protect_epilogue): Cast controlling expression of
19704 * gengtype.c (walk_type): Generate switch expression with its
19705 controlling expression cast to int.
19707 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
19709 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19711 * config/avr/avr-tables.opt: Regenerate.
19712 * config/avr/t-multilib: Regenerate.
19713 * doc/avr-mmcu.texi: Regenerate.
19715 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
19716 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19718 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19719 (ata6617c, ata664251): Add new avr35 devices.
19720 (ata6612c): Add new avr4 device.
19721 (ata6613c, ata6614q): Add new avr5 devices.
19722 * config/avr/avr-tables.opt: Regenerate.
19723 * config/avr/t-multilib: Regenerate.
19724 * doc/avr-mmcu.texi: Regenerate.
19726 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19728 * gcc/config/aarch64/aarch64-builtins.c
19729 (aarch64_types_binop_ssu_qualifiers): New static data.
19730 (TYPES_BINOP_SSU): Define.
19731 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19732 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19733 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19734 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19735 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19736 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19737 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19738 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19739 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19740 suffix to builtin function name, remove cast.
19741 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19742 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19743 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19745 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19747 * gcc/config/aarch64/aarch64-builtins.c
19748 (aarch64_types_binop_uus_qualifiers,
19749 aarch64_types_shift_to_unsigned_qualifiers,
19750 aarch64_types_unsigned_shiftacc_qualifiers): Define.
19751 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19752 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19753 sqshlu_n, uqshl_n): Update qualifiers.
19754 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19755 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19756 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19757 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19758 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19759 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19760 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19761 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19762 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19763 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19764 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19765 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19766 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19767 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19768 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19769 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19770 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19771 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19772 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19773 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19774 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19775 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19776 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19777 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19778 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19779 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19780 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19782 2014-06-03 Teresa Johnson <tejohnson@google.com>
19784 * tree-sra.c (modify_function): Record caller nodes after rebuild.
19786 2014-06-02 Jason Merrill <jason@redhat.com>
19789 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19791 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19793 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19796 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
19798 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19800 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19801 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19802 * config/aarch64/iterators.md (REVERSE): New iterator.
19803 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19804 (rev_op): New int_attribute.
19805 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19806 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19807 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19808 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19809 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19810 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19811 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19812 Replace temporary __asm__ with __builtin_shuffle.
19814 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19816 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19818 * config/mips/mips-tables.opt: Regenerate.
19819 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19820 to use mips_isa_rev rather than ISA_MIPS32R2.
19821 * config/mips/mips.h (ISA_MIPS32R3): New define.
19822 (ISA_MIPS32R5): New define.
19823 (ISA_MIPS64R3): New define.
19824 (ISA_MIPS64R5): New define.
19825 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19826 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19827 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19829 (MIPS_ISA_SYNCI_SPEC): Likewise.
19830 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19831 (LINK_SPEC): Added mips32r3 and mips32r5.
19832 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19833 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19834 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19835 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19836 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19837 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19838 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19840 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19842 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19844 * config/mips/mips.opt (mxpa): New option.
19845 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19848 2014-06-03 Martin Jambor <mjambor@suse.cz>
19851 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19854 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
19856 PR tree-optimization/61328
19857 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19858 initialization from find_bswap_or_nop_1.
19859 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19860 in source_expr2 before using the size value the function sets. Also
19861 make use of init_symbolic_number () in both the old place and
19862 find_bswap_or_nop_load () to avoid reading uninitialized memory when
19863 doing recursion in the GIMPLE_BINARY_RHS case.
19865 2014-06-03 Richard Biener <rguenther@suse.de>
19867 PR tree-optimization/61383
19868 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19871 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
19873 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19874 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19875 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19876 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19878 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19879 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19880 * system.h: ...here and make it unconditional.
19881 * target.def (conditional_register_usage): Mention
19882 define_register_constraint instead of old-style constraint macros.
19883 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19884 * doc/tm.texi: Regenerate.
19885 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19886 protected by !USE_MD_CONSTRAINTS.
19887 * config/frv/frv.md: Remove quote from old version of documentation.
19888 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19889 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19890 CONST_DOUBLE_OK_FOR_LETTER.
19891 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19893 2014-06-02 Andrew Pinski <apinski@cavium.com>
19895 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19896 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19897 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19898 file whose name depends on -mabi= and -mbig-endian.
19899 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19900 Handle LP64 better and handle ilp32 too.
19901 (MULTILIB_OPTIONS): Delete.
19902 (MULTILIB_DIRNAMES): Delete.
19904 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
19906 * expr.h: Remove prototypes of functions defined in builtins.c.
19907 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19908 Remove prototypes of functions defined in builtins.c.
19909 * builtins.h: Update prototype list to include all exported functions.
19910 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19911 no_c99_libc_has_function): Move to targhooks.c
19912 (build_string_literal, build_call_expr_loc_array,
19913 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19915 (expand_builtin_object_size, fold_builtin_object_size): Make static.
19916 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19917 no_c99_libc_has_function): Relocate from builtins.c.
19918 * tree.c: Include builtins.h.
19919 (build_call_expr_loc_array, build_call_expr_loc_vec,
19920 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19922 * fold-const.h (fold_fma): Move prototype to builtins.h.
19923 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19924 * asan.c: Include builtins.h.
19925 * cfgexpand.c: Likewise.
19926 * convert.c: Likewise.
19927 * emit-rtl.c: Likewise.
19928 * except.c: Likewise.
19929 * expr.c: Likewise.
19930 * fold-const.c: Likewise.
19931 * gimple-fold.c: Likewise.
19932 * gimple-ssa-strength-reduction.c: Likewise.
19933 * gimplify.c: Likewise.
19934 * ipa-inline.c: Likewise.
19935 * ipa-prop.c: Likewise.
19936 * lto-streamer-out.c: Likewise.
19937 * stmt.c: Likewise.
19938 * tree-inline.c: Likewise.
19939 * tree-object-size.c: Likewise.
19940 * tree-sra.c: Likewise.
19941 * tree-ssa-ccp.c: Likewise.
19942 * tree-ssa-forwprop.c: Likewise.
19943 * tree-ssa-loop-ivcanon.c: Likewise.
19944 * tree-ssa-loop-ivopts.c: Likewise.
19945 * tree-ssa-math-opts.c: Likewise.
19946 * tree-ssa-reassoc.c: Likewise.
19947 * tree-ssa-threadedge.c: Likewise.
19948 * tree-streamer-in.c: Likewise.
19949 * tree-vect-data-refs.c: Likewise.
19950 * tree-vect-patterns.c: Likewise.
19951 * tree-vect-stmts.c: Likewise.
19952 * config/aarch64/aarch64.c: Likewise.
19953 * config/alpha/alpha.c: Likewise.
19954 * config/arc/arc.c: Likewise.
19955 * config/arm/arm.c: Likewise.
19956 * config/avr/avr.c: Likewise.
19957 * config/bfin/bfin.c: Likewise.
19958 * config/c6x/c6x.c: Likewise.
19959 * config/cr16/cr16.c: Likewise.
19960 * config/cris/cris.c: Likewise.
19961 * config/epiphany/epiphany.c: Likewise.
19962 * config/fr30/fr30.c: Likewise.
19963 * config/frv/frv.c: Likewise.
19964 * config/h8300/h8300.c: Likewise.
19965 * config/i386/i386.c: Likewise.
19966 * config/i386/winnt.c: Likewise.
19967 * config/ia64/ia64.c: Likewise.
19968 * config/iq2000/iq2000.c: Likewise.
19969 * config/lm32/lm32.c: Likewise.
19970 * config/m32c/m32c.c: Likewise.
19971 * config/m32r/m32r.c: Likewise.
19972 * config/m68k/m68k.c: Likewise.
19973 * config/mcore/mcore.c: Likewise.
19974 * config/mep/mep.c: Likewise.
19975 * config/microblaze/microblaze.c: Likewise.
19976 * config/mips/mips.c: Likewise.
19977 * config/mmix/mmix.c: Likewise.
19978 * config/mn10300/mn10300.c: Likewise.
19979 * config/moxie/moxie.c: Likewise.
19980 * config/msp430/msp430.c: Likewise.
19981 * config/nds32/nds32.c: Likewise.
19982 * config/pa/pa.c: Likewise.
19983 * config/pdp11/pdp11.c: Likewise.
19984 * config/picochip/picochip.c: Likewise.
19985 * config/rl78/rl78.c: Likewise.
19986 * config/rs6000/rs6000.c: Likewise.
19987 * config/rx/rx.c: Likewise.
19988 * config/s390/s390.c: Likewise.
19989 * config/score/score.c: Likewise.
19990 * config/sh/sh.c: Likewise.
19991 * config/sparc/sparc.c: Likewise.
19992 * config/spu/spu.c: Likewise.
19993 * config/stormy16/stormy16.c: Likewise.
19994 * config/tilegx/tilegx.c: Likewise.
19995 * config/tilepro/tilepro.c: Likewise.
19996 * config/v850/v850.c: Likewise.
19997 * config/vax/vax.c: Likewise.
19998 * config/xtensa/xtensa.c: Likewise.
20000 2014-06-02 Jeff Law <law@redhat.com>
20002 PR rtl-optimization/61094
20003 * ree.c (combine_reaching_defs): Do not reextend an insn if it
20004 was marked as do_no_reextend. If a copy is needed to eliminate
20005 an extension, then mark it as do_not_reextend.
20007 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
20009 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20011 2014-06-02 Richard Henderson <rth@redhat.com>
20014 * config/alpha/alpha.c (print_operand_address): Allow symbolic
20015 addresses inside asms. Use output_operand_lossage instead of
20018 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
20021 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20022 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20024 2014-06-02 Tom de Vries <tom@codesourcery.com>
20026 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20027 case that x has VOIDmode.
20029 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
20031 * varasm.c (copy_constant): Delete function.
20032 (build_constant_desc): Don't call it.
20034 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20037 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20038 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20039 with immediate_operand.
20041 2014-06-02 Andreas Schwab <schwab@suse.de>
20043 * config/ia64/ia64.c
20044 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20045 pending_data_specs first.
20047 2014-06-02 Richard Biener <rguenther@suse.de>
20049 PR tree-optimization/61378
20050 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20051 valueized_anything.
20053 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
20055 * config/i386/constraints.md (Bw): Rename from 'w'.
20056 (Bz): Rename from 'z'.
20057 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20059 2014-06-01 Kai Tietz <ktietz@redhat.com>
20062 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20063 * config/i386/i386.md (sibcall_insn_operand): Use Bs
20064 instead of m constraint.
20066 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
20068 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20069 a separate alternative where the scratch operand 2 is marked as
20072 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20074 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20075 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20076 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20077 and __builtins_arm_get_fpscr.
20078 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20079 __builtins_arm_get_fpscr.
20080 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20081 __builtins_arm_ldfpscr.
20082 (arm_atomic_assign_expand_fenv): New function.
20083 * config/arm/vfp.md (set_fpscr): New pattern.
20084 (get_fpscr) : Likewise.
20085 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20087 * doc/extend.texi (AARCH64 Built-in Functions) : Document
20088 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20090 2014-05-30 Jakub Jelinek <jakub@redhat.com>
20092 * asan.c (report_error_func): Add SLOW_P argument, use
20093 BUILT_IN_ASAN_*_N if set.
20094 (build_check_stmt): Likewise.
20095 (instrument_derefs): If T has insufficient alignment,
20096 force same handling as for odd sizes.
20098 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20099 BUILT_IN_ASAN_REPORT_STORE_N): New.
20100 * asan.c (struct asan_mem_ref): Change access_size type to
20102 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20103 update_mem_ref_hash_table): Likewise.
20104 (asan_mem_ref_hasher::hash): Hash in a HWI.
20105 (report_error_func): Change size_in_bytes argument to HWI.
20106 Use *_N builtins if size_in_bytes is larger than 16 or not power of
20108 (build_shadow_mem_access): New function.
20109 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
20110 Handle size_in_bytes not power of two or larger than 16.
20111 (instrument_derefs): Don't give up if size_in_bytes is not
20112 power of two or is larger than 16.
20114 2014-05-30 Kai Tietz <ktietz@redhat.com>
20117 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20118 for sibling-tail-calls.
20119 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20121 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20122 (sibcall_insn_operand): Add check for sibcall_memory_operand.
20124 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20126 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20127 * config/avr/avr-tables.opt: Regenerate.
20128 * config/avr/t-multilib: Regenerate.
20129 * doc/avr-mmcu.texi: Regenerate.
20131 2014-05-30 Ian Lance Taylor <iant@google.com>
20133 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20136 2014-05-30 Tom de Vries <tom@codesourcery.com>
20138 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20141 2014-05-30 Tom de Vries <tom@codesourcery.com>
20143 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20144 * lra.c (initialize_lra_reg_info_element): Add init of
20145 actual_call_used_reg_set field.
20146 (lra): Call lra_create_live_ranges before lra_inheritance for
20148 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20150 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20151 instead of call_used_reg_set for -fuse-caller-save.
20152 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20154 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20156 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20158 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20160 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
20162 * ira.c (ira_get_dup_out_num): Check for output operands at
20163 the start of the loop. Handle cases where an included alternative
20164 follows an excluded one.
20166 2014-05-29 Mike Stump <mikestump@comcast.net>
20169 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20170 post ld passes when lto is used.
20172 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
20174 PR rtl-optimization/61325
20175 * lra-constraints.c (process_address): Rename to process_address_1.
20176 (process_address): New function.
20178 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
20180 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20181 TYPES_BINOPV): New static data.
20182 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20184 * config/aarch64/aarch64-simd.md (aarch64_ext,
20185 aarch64_im_lane_boundsi): New patterns.
20186 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20188 (aarch64_evpc_ext): New function.
20190 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20192 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20193 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20194 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20195 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20196 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20198 2014-05-29 Tom de Vries <tom@codesourcery.com>
20200 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20202 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
20203 Richard Sandiford <rdsandiford@googlemail.com>
20205 * arm/iterators.md (shiftable_ops): New code iterator.
20206 (t2_binop0, arith_shift_insn): New code attributes.
20207 * arm/predicates.md (shift_nomul_operator): New predicate.
20208 * arm/arm.md (insn_enabled): Delete.
20209 (enabled): Remove insn_enabled test.
20210 (*arith_shiftsi): Delete. Replace with ...
20211 (*<arith_shift_insn>_multsi): ... new pattern.
20212 (*<arith_shift_insn>_shiftsi): ... new pattern.
20213 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20215 2014-05-29 Radovan Obradovic <robradovic@mips.com>
20216 Tom de Vries <tom@codesourcery.com>
20218 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20219 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20221 (mips_split_call): Use POST_CALL_TMP_REG.
20222 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20224 2014-05-29 Tom de Vries <tom@codesourcery.com>
20226 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20227 with #ifdef STACK_REGS.
20229 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
20231 * varasm.c (get_variable_section): Walk aliases.
20232 (place_block_symbol): Walk aliases.
20234 2014-05-28 Tom de Vries <tom@codesourcery.com>
20237 2014-05-28 Tom de Vries <tom@codesourcery.com>
20239 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20240 * lra.c (initialize_lra_reg_info_element): Add init of
20241 actual_call_used_reg_set field.
20242 (lra): Call lra_create_live_ranges before lra_inheritance for
20244 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20246 * lra-constraints.c (need_for_call_save_p): Use
20247 actual_call_used_reg_set instead of call_used_reg_set for
20249 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20251 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20253 * doc/md.texi: Document that the % constraint character must
20254 be at the beginning of the string.
20255 * genoutput.c (validate_insn_alternatives): Check that '=',
20256 '+' and '%' only appear at the beginning of a constraint.
20257 * ira.c (commutative_constraint_p): Delete.
20258 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20259 at the start of the string.
20260 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20262 * config/arm/neon.md (bicdi3_neon): Likewise.
20263 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20264 (slt_si, sltu_si): Likewise.
20265 * config/vax/vax.md (sbcdi3): Likewise.
20266 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20267 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20268 (mul64): Move '%' to beginning of constraint.
20269 * config/arm/arm.md (*xordi3_insn): Likewise.
20270 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20271 (xorsi3): Likewise.
20273 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20275 * doc/md.texi: Document the restrictions on the "enabled" attribute.
20277 2014-05-28 Jason Merrill <jason@redhat.com>
20280 * cgraph.h (symtab_node::get_comdat_group_id): New.
20281 * cgraphunit.c (analyze_functions): Call it.
20282 * symtab.c (dump_symtab_node): Likewise.
20283 * tree.c (decl_comdat_group_id): New.
20284 * tree.h: Declare it.
20285 * lto-streamer-out.c (write_symbol): Use it.
20286 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20288 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
20290 PR bootstrap/PR61146
20291 * wide-int.cc: Do not include longlong.h when compiling with clang.
20293 2014-05-28 Richard Biener <rguenther@suse.de>
20295 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20296 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20297 (vrp_visit_assignment_or_call): Print less vertical space.
20298 (vrp_visit_stmt): Likewise.
20299 (vrp_visit_phi_node): Likewise. For a PHI argument with
20300 VR_VARYING range consider recording it as copy.
20302 2014-05-28 Richard Biener <rguenther@suse.de>
20305 2014-05-28 Richard Biener <rguenther@suse.de>
20307 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20309 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
20311 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20312 sufficiently aligned and an offset is used at the same time.
20313 (expand_expr_real_1): Likewise.
20315 2014-05-28 Richard Biener <rguenther@suse.de>
20317 PR middle-end/61045
20318 * fold-const.c (fold_comparison): When folding
20319 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20320 the sign of the remaining constant operand stays the same.
20322 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
20324 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20325 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20326 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20328 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20329 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20330 (m32bit-doubles) Likewise.
20331 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20332 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20335 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20337 * configure.ac ($gcc_cv_ld_clearcap): New test.
20338 * configure: Regenerate.
20339 * config.in: Regenerate.
20340 * config/sol2.opt (mclear-hwcap): New option.
20341 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20342 * config/sol2-clearcap.map: Moved here from
20343 testsuite/gcc.target/i386/clearcap.map.
20344 * config/sol2-clearcapv2.map: Move here from
20345 gcc.target/i386/clearcapv2.map.
20346 * config/t-sol2 (install): Depend on install-clearcap-map.
20347 (install-clearcap-map): New target.
20348 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20351 2014-05-28 Richard Biener <rguenther@suse.de>
20353 * hwint.h (*_HALF_WIDE_INT*): Move to ...
20354 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20355 ... here and remove the rest.
20356 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20358 2014-05-28 Richard Biener <rguenther@suse.de>
20360 PR tree-optimization/61335
20361 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20362 new range fails, drop to varying.
20364 2014-05-28 Olivier Hainque <hainque@adacore.com>
20366 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20367 (CPP_SPEC): Add entry for -mcpu=8548.
20368 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20369 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20371 2014-05-28 Tom de Vries <tom@codesourcery.com>
20373 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20374 * lra.c (initialize_lra_reg_info_element): Add init of
20375 actual_call_used_reg_set field.
20376 (lra): Call lra_create_live_ranges before lra_inheritance for
20378 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20380 * lra-constraints.c (need_for_call_save_p): Use
20381 actual_call_used_reg_set instead of call_used_reg_set for
20383 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20385 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20386 Tom de Vries <tom@codesourcery.com>
20388 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20390 (@item -fuse-caller-save): New item.
20392 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20393 Tom de Vries <tom@codesourcery.com>
20395 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20396 OPT_fuse_caller_save.
20398 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20399 Tom de Vries <tom@codesourcery.com>
20401 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20402 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20403 get_call_reg_set_usage.
20404 * resource.c (mark_set_resources, mark_target_live_regs): Use
20405 get_call_reg_set_usage.
20406 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20408 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20409 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20410 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20411 * ira-build.c (ira_create_allocno): Init
20412 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20413 (create_cap_allocno, propagate_allocno_info)
20414 (propagate_some_info_from_allocno)
20415 (copy_info_to_removed_store_destinations): Handle
20416 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20417 * ira-costs.c (ira_tune_allocno_costs): Use
20418 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20420 2014-05-28 Radovan Obradovic <robradovic@mips.com>
20421 Tom de Vries <tom@codesourcery.com>
20423 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20424 and function_used_regs_valid fields.
20425 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20426 find_all_hard_reg_sets.
20427 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20428 (get_call_reg_set_usage): New function.
20429 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20430 * regs.h (get_call_reg_set_usage): Declare.
20432 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20435 * config/dbx.h (License): Add Runtime Library Exception.
20436 * config/newlib-stdint.h (License): Same.
20437 * config/rtems.h (License): Same
20438 * config/initfini-array.h (License): Same
20439 * config/v850/v850.h (License): Same.
20440 * config/v850/v850-opts.h (License): Same
20441 * config/v850/rtems.h (License): Same.
20443 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
20446 * doc/extend.texi (Local Labels): Note that label differences are
20447 not supported for AVR.
20449 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20450 Olivier Hainque <hainque@adacore.com>
20452 * rtl.h (set_for_reg_notes): Declare.
20453 * emit-rtl.c (set_for_reg_notes): New function.
20454 (set_unique_reg_note): Use it.
20455 * optabs.c (add_equal_note): Likewise
20457 2014-05-27 Andrew Pinski <apinski@cavium.com>
20459 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20460 Use <w> for the register in assembly template.
20461 (stack_protect_test): Use the mode of operands[0] for the result.
20462 (stack_protect_test_<mode>): Use <w> for the register
20463 in assembly template.
20465 2014-05-27 DJ Delorie <dj@redhat.com>
20467 * config/rx/rx.c (add_vector_labels): New.
20468 (rx_output_function_prologue): Call it.
20469 (rx_handle_func_attribute): Don't require empty arguments.
20470 (rx_handle_vector_attribute): New.
20471 (rx_attribute_table): Add "vector" attribute.
20472 * doc/extend.texi (interrupt, vector): Document new/changed
20473 RX-specific attributes.
20475 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20477 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20479 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20480 predicate to detect a negative quotient.
20482 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
20484 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20485 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20486 Add X - Y CMP 0 to X CMP Y transformation.
20487 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20489 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
20491 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20494 2014-05-27 Steve Ellcey <sellcey@mips.com>
20496 * config/mips/mips.c: Add include of cgraph.h.
20498 2014-05-27 Richard Biener <rguenther@suse.de>
20500 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20502 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20505 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20506 * config/arm/arm-cores.def (License): Same.
20507 * config/arm/arm-opts.h (License): Same.
20508 * config/arm/aout.h (License): Same.
20509 * config/arm/bpabi.h (License): Same.
20510 * config/arm/elf.h (License): Same.
20511 * config/arm/linux-elf.h (License): Same.
20512 * config/arm/linux-gas.h (License): Same.
20513 * config/arm/netbsd-elf.h (License): Same.
20514 * config/arm/uclinux-eabi.h (License): Same.
20515 * config/arm/uclinux-elf.h (License): Same.
20516 * config/arm/vxworks.h (License): Same.
20518 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20520 * config/arm/neon.md (neon_bswap<mode>): New pattern.
20521 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20522 (arm_init_neon_builtins): Handle NEON_BSWAP.
20523 Define required type nodes.
20524 (arm_expand_neon_builtin): Handle NEON_BSWAP.
20525 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20526 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20527 * config/arm/iterators.md (VDQHSD): New mode iterator.
20529 2014-05-27 Richard Biener <rguenther@suse.de>
20531 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20532 Try using literal operands when comparing value-ranges failed.
20534 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20536 * ira.c (commutative_operand): Adjust for change to recog_data.
20537 [Missing from previous commit.]
20539 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20541 * system.h (TEST_BIT): New macro.
20542 * recog.h (alternative_mask): New type.
20543 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20544 (recog_data_d): Replace alternative_enabled_p array with
20545 enabled_alternatives.
20546 (target_recog): New structure.
20547 (default_target_recog, this_target_recog): Declare.
20548 (get_enabled_alternatives, recog_init): Likewise.
20549 * recog.c (default_target_recog, this_target_recog): New variables.
20550 (get_enabled_alternatives): New function.
20551 (extract_insn): Use it.
20552 (recog_init): New function.
20553 (preprocess_constraints, constrain_operands): Adjust for change to
20555 * postreload.c (reload_cse_simplify_operands): Likewise.
20556 * reload.c (find_reloads): Likewise.
20557 * ira-costs.c (record_reg_classes): Likewise.
20558 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
20559 all alternatives after a disabled one would be skipped.
20560 (ira_implicitly_set_insn_hard_regs): Likewise.
20561 * ira.c (ira_setup_alts): Adjust for change to recog_data.
20562 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20563 with enabled_alternatives.
20564 * lra.c (free_insn_recog_data): Update accordingly.
20565 (lra_update_insn_recog_data): Likewise.
20566 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
20567 * lra-constraints.c (process_alt_operands): Likewise. Handle
20568 only_alternative as part of the enabled mask.
20569 * target-globals.h (this_target_recog): Declare.
20570 (target_globals): Add a recog field.
20571 (restore_target_globals): Restore this_target_recog.
20572 * target-globals.c: Include recog.h.
20573 (default_target_globals): Initialize recog field.
20574 (save_target_globals): Likewise.
20575 * reginfo.c (reinit_regs): Call recog_init.
20576 * toplev.c (backend_init_target): Likewise.
20578 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
20580 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20581 rather than any named insn's code.
20583 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
20586 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20587 * config/arm/arm-cores.def (License): Same.
20589 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
20591 * tree.h (decl_comdat_group): Declare.
20592 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20593 * tree.c (decl_comdat_group): Here.
20595 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
20597 PR rtl-optimization/61222
20598 * combine.c (simplify_shift_const_1): When moving a PLUS outside
20599 the shift, truncate the PLUS operand to the result mode.
20601 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
20604 * config/i386/i386.c (ix86_rtx_costs)
20605 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20608 2014-05-26 Martin Jambor <mjambor@suse.cz>
20610 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20613 2014-05-26 Richard Biener <rguenther@suse.de>
20615 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20616 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20617 Provide specializations.
20618 (wi::int_traits <HOST_WIDE_INT>,
20619 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20621 2014-05-26 Alan Modra <amodra@gmail.com>
20624 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20625 params and return a bool. Remove dead code. Update comment.
20626 Assert we have a const_int source. Remove bogus code from
20627 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
20628 handling of constants > 2G and reg_equal note, from..
20629 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
20630 return value. Update comment. If we can, use a new pseudo
20631 for intermediate calculations.
20632 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20634 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20635 call to rs6000_emit_set_const in splitter.
20636 (movdi_internal64+2, +3): Likewise.
20638 2014-05-26 Richard Biener <rguenther@suse.de>
20640 * system.h: Define __STDC_FORMAT_MACROS before
20641 including inttypes.h.
20642 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20643 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20644 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20645 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20646 HOST_WIDEST_INT_C): Remove.
20647 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20648 if C99 inttypes.h is not available.
20649 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20650 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20651 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20652 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20653 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20654 (struct output_info): Likewise.
20655 (print_statistics): Adjust.
20656 (dump_bitmap_statistics): Likewise.
20657 * bt-load.c (migrate_btr_defs): Print with PRId64.
20658 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20659 (MAX_SAFE_MULTIPLIER): Adjust.
20660 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20661 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20662 dump_cgraph_node): Likewise.
20663 * final.c (dump_basic_block_info): Likewise.
20664 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20665 * gcov.c (format_gcov): Likewise.
20666 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
20668 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20669 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20670 (inline_small_functions, dump_overall_stats, dump_inline_stats):
20671 Use PRId64 for dumping.
20672 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20673 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20674 (add_allocno_hard_regs): Adjust.
20675 * loop-doloop.c (doloop_modify): Print using PRId64.
20676 * loop-iv.c (inverse): Compute in uint64_t.
20677 (determine_max_iter, iv_number_of_iterations): Likewise.
20678 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20679 Print using PRId64.
20680 * lto-streamer-out.c (write_symbol): Use uint64_t.
20681 * mcf.c (CAP_INFINITY): Use int64_t maximum.
20682 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20683 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20684 * modulo-sched.c (const_iteration_count): Use int64_t.
20685 (sms_schedule): Dump using PRId64.
20686 * predict.c (dump_prediction): Likewise.
20687 * pretty-print.h (pp_widest_integer): Remove.
20688 * profile.c (get_working_sets, is_edge_inconsistent,
20689 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20690 * tree-pretty-print.c (pp_double_int): Remove case handling
20691 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20692 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20694 (pass_optimize_bswap::execute): Remove restriction on hosts.
20695 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20696 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20697 * tree.c (widest_int_cst_value): Remove.
20698 * tree.h (widest_int_cst_value): Likewise.
20699 * value-prof.c (dump_histogram_value): Print using PRId64.
20700 * gengtype.c (main): Also inject int64_t.
20701 * ggc-page.c (struct max_alignment): Use int64_t.
20702 * alloc-pool.c (struct allocation_object_def): Likewise.
20703 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20705 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20706 * doc/tm.texi: Regenerated.
20707 * gengtype-lex.l (IWORD): Handle [u]int64_t.
20708 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20709 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20710 mmix_output_register_setting): Use [u]int64_t in prototypes.
20711 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20712 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20713 mmix_output_octa, mmix_output_shifted_value): Adjust.
20714 (mmix_intval): Adjust. Remove unreachable case.
20715 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20717 2014-05-26 Richard Biener <rguenther@suse.de>
20719 * configure.ac: Drop __int64 type check. Insist that we
20720 found uint64_t and int64_t.
20721 * hwint.h (HOST_BITS_PER___INT64): Remove.
20722 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20723 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20724 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20725 (HOST_WIDEST_FAST_INT): Remove __int64 case.
20726 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20727 for dst_q_src_df_rms_cdt.
20728 * configure: Regenerate.
20729 * config.in: Likewise.
20731 2014-05-26 Michael Tautschnig <mt@debian.org>
20734 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20735 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20737 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20739 PR rtl-optimization/61278
20740 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20742 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20744 PR rtl-optimization/61220
20745 Part of PR rtl-optimization/61225
20746 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20747 insn; skip split_edge for a block with only one successor.
20749 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20751 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20754 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20756 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20757 (update_vtable_references): New function.
20758 (function_and_variable_visibility): Rewrite also vtable initializers.
20759 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20761 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20763 * ggc.h (ggc_grow): New function.
20764 * ggc-none.c (ggc_grow): New function.
20765 * ggc-page.c (ggc_grow): Likewise.
20767 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20769 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20770 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20771 comdat_can_be_unshared_p, cgraph_externally_visible_p,
20772 varpool_externally_visible_p, can_replace_by_local_alias,
20773 update_visibility_by_resolution_info, function_and_variable_visibility,
20774 pass_data_ipa_function_and_variable_visibility,
20775 make_pass_ipa_function_and_variable_visibility,
20776 whole_program_function_and_variable_visibility,
20777 pass_data_ipa_whole_program_visibility,
20778 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20779 * cgraph.h (cgraph_local_node_p): Declare.
20780 * ipa-visibility.c: New file.
20781 * Makefile.in (OBJS): Add ipa-visiblity.o
20783 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20785 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20786 that var decl is available.
20788 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20790 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20791 symtab_node pointer.
20792 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20793 (find_decls_types_r): Do not walk COMDAT_GROUP.
20794 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20795 * varasm.c (make_decl_one_only): Use set_comdat_group;
20796 create node if needed.
20797 * ipa-inline-transform.c (save_inline_function_body): Update
20798 way we decl->symtab mapping.
20799 * symtab.c (symtab_hash, hash_node, eq_node
20800 symtab_insert_node_to_hashtable): Remove.
20801 (symtab_register_node): Update.
20802 (symtab_unregister_node): Update.
20803 (symtab_get_node): Reimplement as inline function.
20804 (symtab_add_to_same_comdat_group): Update.
20805 (symtab_dissolve_same_comdat_group_list): Update.
20806 (dump_symtab_base): Update.
20807 (verify_symtab_base): Update.
20808 (symtab_make_decl_local): Update.
20809 (fixup_same_cpp_alias_visibility): Update.
20810 (symtab_nonoverwritable_alias): Update.
20811 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20812 * ipa.c (update_visibility_by_resolution_info): UPdate.
20813 * bb-reorder.c: Include cgraph.h
20814 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20815 with comdat groups.
20816 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20817 * cgraph.c (cgraph_get_create_node): Update.
20818 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20820 (symtab_get_node): Make inline.
20821 (symtab_insert_node_to_hashtable): Remove.
20822 (symtab_can_be_discarded): Update.
20823 (decl_comdat_group): New function.
20824 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20826 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20828 (read_comdat_group): New function.
20829 (input_node, input_varpool_node): Use it.
20830 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20832 * mips.c (mips_start_unique_function): Likewise.
20833 (ix86_code_end): Likewise.
20834 (rs6000_code_end): Likweise.
20835 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20837 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20839 * gengtype-state.c (fatal_reading_state): Bring offline.
20840 * optabs.c (widening_optab_handler): Bring offline.
20841 * optabs.h (widening_optab_handler): Likewise.
20842 * final.c (get_attr_length_1): Likewise.
20844 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
20846 * sched-int.h (sd_iterator_cond): Manually tail recurse.
20848 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20850 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20851 (ppc440-compare): Include shift with dot.
20852 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20853 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20855 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20857 (e6500_sfx2): Include it.
20858 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20859 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20860 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20861 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20862 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20863 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20864 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20865 *lshiftrt_internal1le, *lshiftrt_internal1be,
20866 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20867 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20868 *rotldi3_internal10le, *rotldi3_internal10be,
20869 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20870 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20871 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20872 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20873 define_insns): Use type "shift" in the appropriate alternatives.
20875 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20877 * config/rs6000/rs6000.md (type): Add "logical". Delete
20879 (dot): Adjust comment.
20880 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20881 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20882 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20883 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20884 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20885 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20886 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20887 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20889 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20890 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20891 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20892 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20893 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20894 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20895 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20896 * config/rs6000/8540.md (ppc8540_su): Adjust.
20897 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20898 cell-cmp-microcoded): Adjust.
20899 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20900 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20901 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20902 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20903 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20904 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20905 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20906 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20907 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20909 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20910 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20911 Adjust. Adjust comment.
20912 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20913 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20915 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20917 * config/rs6000/rs6000.md (type): Add "add".
20918 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20919 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20920 define_insns): Use it.
20921 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20923 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20924 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20925 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20926 * config/rs6000/601.md (ppc601-integer): Adjust.
20927 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20928 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20929 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20930 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20931 * config/rs6000/8540.md (ppc8540_su): Adjust.
20932 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20933 cell-cmp-microcoded): Adjust.
20934 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20935 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20936 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20937 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20938 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20939 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20940 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20941 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20942 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20944 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20945 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20946 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20947 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20949 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
20951 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20952 "delayed_compare", "var_delayed_compare".
20953 (var_shift): New attribute.
20954 (cell_micro): Adjust.
20955 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20956 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20957 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20958 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20959 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20960 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20961 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20962 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20963 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20964 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20965 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20966 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20967 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20968 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20969 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20970 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20971 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20972 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20973 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20974 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20975 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20976 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20977 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20978 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20979 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20981 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20982 * config/rs6000/440.md (ppc440-integer): Adjust.
20983 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20984 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20985 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20986 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20987 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20988 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20989 * config/rs6000/8540.md (ppc8540_su): Adjust.
20990 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20991 cell-cmp-microcoded): Adjust.
20992 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20993 * config/rs6000/e500mc.md (e500mc_su): Adjust.
20994 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20995 e500mc64_delayed): Adjust.
20996 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20997 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20998 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20999 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21000 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21001 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21002 power6-delayed-compare, power6-var-delayed-compare): Adjust.
21003 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21004 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21006 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21007 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21009 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21011 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
21012 (bits): New mode_attr.
21013 (idiv_ldiv): Delete mode_attr.
21014 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21015 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21016 rs6000_adjust_priority, is_nonpipeline_insn,
21017 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21019 * config/rs6000/40x.md (ppc403-idiv): Adjust.
21020 * config/rs6000/440.md (ppc440-idiv): Adjust.
21021 * config/rs6000/476.md (ppc476-idiv): Adjust.
21022 * config/rs6000/601.md (ppc601-idiv): Adjust.
21023 * config/rs6000/603.md (ppc603-idiv): Adjust.
21024 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21025 ppc620-ldiv): Adjust.
21026 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21027 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21028 * config/rs6000/8540.md (ppc8540_divide): Adjust.
21029 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21030 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21031 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21032 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21033 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21034 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21035 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21036 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21037 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21038 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21039 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21040 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21041 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21042 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21043 * config/rs6000/titan.md (titan_fxu_div): Adjust.
21045 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21047 * config/rs6000/rs6000.md (type): Delete "insert_word",
21048 "insert_dword". Add "insert".
21049 (size): Update comment.
21050 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21051 insn_must_be_first_in_group): Adjust.
21052 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21053 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21054 *insvsi_internal6, insvdi_internal): Adjust.
21056 * config/rs6000/40x.md (ppc403-integer): Adjust.
21057 * config/rs6000/440.md (ppc440-integer): Adjust.
21058 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21059 * config/rs6000/601.md (ppc601-integer): Adjust.
21060 * config/rs6000/603.md (ppc603-integer): Adjust.
21061 * config/rs6000/6xx.md (ppc604-integer): Adjust.
21062 * config/rs6000/7450.md (ppc7450-integer): Adjust.
21063 * config/rs6000/7xx.md (ppc750-integer): Adjust.
21064 * config/rs6000/8540.md (ppc8540_su): Adjust.
21065 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21066 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21067 * config/rs6000/e500mc.md (e500mc_su): Adjust.
21068 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21069 * config/rs6000/e5500.md (e5500_sfx): Adjust.
21070 * config/rs6000/e6500.md (e6500_sfx): Adjust.
21071 * config/rs6000/mpc.md (mpccore-integer): Adjust.
21072 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21073 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21074 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21075 * config/rs6000/power7.md (power7-integer): Adjust.
21076 * config/rs6000/power8.md (power8-1cyc): Adjust.
21077 * config/rs6000/rs64.md (rs64a-integer): Adjust.
21078 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21080 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21082 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
21083 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21084 (size): New attribute.
21085 (dot): New attribute.
21086 (cell_micro): Adjust.
21087 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21088 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21089 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21090 umuldi3_highpart): Adjust.
21091 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21092 rs6000_adjust_priority, is_nonpipeline_insn,
21093 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21095 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21096 ppc405-imul3): Adjust.
21097 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21098 * config/rs6000/476.md (ppc476-imul): Adjust.
21099 * config/rs6000/601.md (ppc601-imul): Adjust.
21100 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21101 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21102 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21103 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21104 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21106 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21107 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21108 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21109 cell-imul): Adjust.
21110 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21111 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21112 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21113 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21114 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21115 * config/rs6000/mpc.md (mpccore-imul): Adjust.
21116 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21117 power4-lmul, power4-imul, power4-imul3): Adjust.
21118 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21119 power5-lmul, power5-imul, power5-imul3): Adjust.
21120 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21121 power6-lmul, power6-imul, power6-imul3): Adjust.
21122 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21123 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21125 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21126 rs64a-lmul): Adjust.
21127 * config/rs6000/titan.md (titan_imul): Adjust.
21129 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21131 * config/rs6000/rs6000.md (type): Add new value "halfmul".
21132 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21133 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21134 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21135 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21136 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21137 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21138 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21139 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21140 * config/rs6000/titan.md: Delete nonsensical comment.
21141 (titan_imul): Add type imul3.
21142 (titan_mulhw): Remove type imul3; add type halfmul.
21144 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
21146 * config/rs6000/rs6000.md (type): Reorder, reformat.
21148 2014-05-23 Martin Jambor <mjambor@suse.cz>
21150 PR tree-optimization/53787
21151 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21152 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21153 analysis_done, update all uses.
21154 * ipa-prop.c: Include domwalk.h
21155 (param_analysis_info): Removed.
21156 (param_aa_status): New type.
21157 (ipa_bb_info): Likewise.
21158 (func_body_info): Likewise.
21159 (ipa_get_bb_info): New function.
21160 (aa_overwalked): Likewise.
21161 (find_dominating_aa_status): Likewise.
21162 (parm_bb_aa_status_for_bb): Likewise.
21163 (parm_preserved_before_stmt_p): Changed to use new param AA info.
21164 (load_from_unmodified_param): Accept func_body_info as a parameter
21165 instead of parms_ainfo.
21166 (parm_ref_data_preserved_p): Changed to use new param AA info.
21167 (parm_ref_data_pass_through_p): Likewise.
21168 (ipa_load_from_parm_agg_1): Likewise. Update callers.
21169 (compute_complex_assign_jump_func): Changed to use new param AA info.
21170 (compute_complex_ancestor_jump_func): Likewise.
21171 (ipa_compute_jump_functions_for_edge): Likewise.
21172 (ipa_compute_jump_functions): Removed.
21173 (ipa_compute_jump_functions_for_bb): New function.
21174 (ipa_analyze_indirect_call_uses): Likewise, moved variable
21176 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21177 and info, moved variable declarations down.
21178 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21180 (ipa_analyze_stmt_uses): Likewise.
21181 (ipa_analyze_params_uses): Removed.
21182 (ipa_analyze_params_uses_in_bb): New function.
21183 (ipa_analyze_controlled_uses): Likewise.
21184 (free_ipa_bb_info): Likewise.
21185 (analysis_dom_walker): New class.
21186 (ipa_analyze_node): Handle node-specific forbidden analysis,
21187 initialize and free func_body_info, use dominator walker.
21188 (ipcp_modif_dom_walker): New class.
21189 (ipcp_transform_function): Create and free func_body_info, use
21190 ipcp_modif_dom_walker, moved a lot of functionality there.
21192 2014-05-23 Marek Polacek <polacek@redhat.com>
21193 Jakub Jelinek <jakub@redhat.com>
21195 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21196 * gcc.c (sanitize_spec_function): Likewise.
21197 * convert.c (convert_to_integer): Include "ubsan.h". Add
21198 floating-point to integer instrumentation.
21199 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21200 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21201 SANITIZE_NONDEFAULT.
21202 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21203 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21204 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21205 * ubsan.c: Include "realmpfr.h" and "dfp.h".
21206 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21207 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21208 float/double/long double.
21209 (ubsan_instrument_float_cast): New function.
21210 * ubsan.h (ubsan_instrument_float_cast): Declare.
21212 2014-05-23 Jiong Wang <jiong.wang@arm.com>
21214 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21216 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
21217 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21218 Adjust for tailcalling through registers.
21219 * config/aarch64/aarch64.h (enum reg_class): New caller save
21221 (REG_CLASS_NAMES): Likewise.
21222 (REG_CLASS_CONTENTS): Likewise.
21223 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21224 Allow tailcalling without decls.
21226 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21228 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21229 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21231 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21232 gsi, and variables v_* to v*.
21234 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
21236 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21238 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
21240 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21241 * omp-low.c: Update accordingly.
21243 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21244 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21245 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21246 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21247 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21248 GF_OMP_TARGET_KIND_UPDATE.
21250 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21251 Explicitly enumerate the expected region types.
21253 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
21256 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
21257 documentation; the old documentation didn't clearly state the
21258 constraints on the contents of the pointed-to storage.
21260 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21262 Fix bootstrap error on ia64
21263 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21264 Return default value.
21266 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
21268 PR tree-optimization/54733
21269 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21271 (find_bswap_or_nop_load): New.
21272 (find_bswap_1): Renamed to ...
21273 (find_bswap_or_nop_1): This. Also add support for memory source.
21274 (find_bswap): Renamed to ...
21275 (find_bswap_or_nop): This. Also add support for memory source and
21276 detection of bitwise operations equivalent to load in target
21278 (execute_optimize_bswap): Likewise. Also move its leading comment back
21279 in place and split statement transformation into ...
21280 (bswap_replace): This.
21282 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21284 PR rtl-optimization/61215
21285 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21286 simplify_gen_subreg until final substitution.
21288 2014-05-23 Alan Modra <amodra@gmail.com>
21291 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21292 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21293 Use "Y" constraint rather than "m".
21295 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21297 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21299 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21300 New function declaration.
21301 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21302 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21303 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21304 (aarch64_init_builtins) : Initialize builtins
21305 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21306 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21307 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21308 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21309 and __builtins_aarch64_set_fpsr.
21310 (aarch64_atomic_assign_expand_fenv): New function.
21311 * config/aarch64/aarch64.md (set_fpcr): New pattern.
21312 (get_fpcr) : Likewise.
21313 (set_fpsr) : Likewise.
21314 (get_fpsr) : Likewise.
21315 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21316 and UNSPECV_SET_FPSR.
21317 * doc/extend.texi (AARCH64 Built-in Functions) : Document
21318 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21319 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21321 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
21323 PR rtl-optimization/60969
21324 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21325 constraints. Set up mem cost for NO_REGS case.
21327 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
21329 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21331 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
21333 * config/darwin.c: Include "lto-section-names.h".
21334 (LTO_SEGMENT_NAME): Don't define.
21335 * config/i386/winnt.c: Include "lto-section-names.h".
21336 * lto-streamer.c: Include "lto-section-names.h".
21337 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21338 * lto-wrapper.c: Include "lto-section-names.h".
21339 (LTO_SECTION_NAME_PREFIX): Don't define.
21340 * lto-section-names.h: New file.
21341 * cgraphunit.c: Include "lto-section-names.h".
21343 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
21345 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21347 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
21350 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21352 2014-05-22 Nick Clifton <nickc@redhat.com>
21354 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21356 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
21358 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21359 -> (T)A transformation to integer types.
21361 2014-05-22 Teresa Johnson <tejohnson@google.com>
21363 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21364 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21365 (gcov_rewrite): Use gcov_nonruntime_assert.
21366 (gcov_open): Ditto.
21367 (gcov_write_words): Ditto.
21368 (gcov_write_length): Ditto.
21369 (gcov_read_words): Use gcov_nonruntime_assert, and remove
21370 gcc_assert from IN_LIBGCOV code.
21371 (gcov_read_summary): Use gcov_error to flag profile corruption.
21372 (gcov_sync): Use gcov_nonruntime_assert.
21373 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21374 (gcov_histo_index): Use gcov_nonruntime_assert.
21375 (static void gcov_histogram_merge): Ditto.
21376 (compute_working_sets): Ditto.
21377 * gcov-io.h (gcov_nonruntime_assert): Define.
21378 (gcov_error): Define for !IN_LIBGCOV
21380 2014-05-22 Richard Biener <rguenther@suse.de>
21382 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21383 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21384 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21385 and deallocation site.
21386 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21387 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21388 passing through the incoming points-to set.
21389 (handle_lhs_call): Use flags argument instead of recomputing it.
21390 (find_func_aliases_for_call): Call handle_lhs_call with proper
21393 2014-05-22 Jakub Jelinek <jakub@redhat.com>
21395 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21396 all padding bits in REAL_VALUE_TYPE are cleared.
21398 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21400 Cleanup and improve multipass_dfa_lookahead_guard
21401 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21402 (core2i7_first_cycle_multipass_begin,)
21403 (core2i7_first_cycle_multipass_issue,)
21404 (core2i7_first_cycle_multipass_backtrack): Update signature.
21405 * config/ia64/ia64.c
21406 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21407 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21408 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21410 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21411 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
21413 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21415 * doc/tm.texi: Regenerate.
21417 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21418 * haifa-sched.c (ready_try): Make signed to allow negative values.
21419 (rebug_ready_list_1): Update.
21420 (choose_ready): Simplify.
21421 (sched_extend_ready_list): Update.
21423 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21425 Remove IA64 speculation tweaking flags
21426 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21427 speculation tuning flags.
21428 (msched-prefer-non-data-spec-insns,)
21429 (msched-prefer-non-control-spec-insns): Obsolete options.
21430 * haifa-sched.c (choose_ready): Remove handling of
21431 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21432 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21433 and PREFER_NON_DATA_SPEC.
21434 * sel-sched.c (process_spec_exprs): Remove handling of
21435 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21437 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21439 Improve scheduling debug output
21440 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21441 (advance_one_cycle): Update.
21442 (schedule_insn, queue_to_ready): Add debug printouts.
21443 (debug_ready_list_1): New static function.
21444 (debug_ready_list): Update.
21445 (max_issue): Add debug printouts.
21446 (dump_insn_stream): New static function.
21447 (schedule_block): Use it. Also better indent printouts.
21449 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21451 Fix sched_insn debug counter
21452 * haifa-sched.c (schedule_insn): Update.
21453 (struct haifa_saved_data): Add nonscheduled_insns_begin.
21454 (save_backtrack_point, restore_backtrack_point): Update.
21455 (first_nonscheduled_insn): New static function.
21456 (queue_to_ready, choose_ready): Use it.
21457 (schedule_block): Init nonscheduled_insns_begin.
21458 (sched_emit_insn): Update.
21461 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21463 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21465 (aarch64_secondary_reload) : LikeWise.
21466 (aarch64_class_max_nregs) : Remove CORE_REGS.
21467 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21468 (REG_CLASS_NAMES) : Likewise.
21469 (REG_CLASS_CONTENTS) : LikeWise.
21470 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21472 2014-05-21 Guozhi Wei <carrot@google.com>
21475 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21477 (vqdmulhq_n_s16): Likewise.
21479 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
21481 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21483 2014-05-21 Marek Polacek <polacek@redhat.com>
21486 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21488 2014-05-21 Martin Jambor <mjambor@suse.cz>
21490 * doc/invoke.texi (Optimize Options): Document parameters
21491 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21492 ipa-cp-array-index-hint-bonus.
21494 2014-05-21 Mark Wielaard <mjw@redhat.com>
21497 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21498 version >= 3 or not strict DWARF.
21499 * langhooks.h (struct lang_hooks_for_types): Add
21500 enum_underlying_base_type.
21501 * langhooks.c (lhd_enum_underlying_base_type): New function.
21502 * gcc/langhooks.h (struct lang_hooks_for_types): Add
21503 enum_underlying_base_type.
21504 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21505 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21506 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21508 2014-05-21 Richard Biener <rguenther@suse.de>
21510 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21512 2014-05-21 John Marino <gnugcc@marino.st>
21514 * config.gcc (*-*-dragonfly*): New target.
21515 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21516 * configure: Regenerate.
21517 * config/dragonfly-stdint.h: New.
21518 * config/dragonfly.h: New.
21519 * config/dragonfly.opt: New.
21520 * config/i386/dragonfly.h: New.
21521 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21523 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21525 * tree.def (VOID_CST): New.
21526 * tree-core.h (TI_VOID): New.
21527 * tree.h (void_node): New.
21528 * tree.c (tree_node_structure_for_code, tree_code_size)
21529 (iterative_hash_expr): Handle VOID_CST.
21530 (build_common_tree_nodes): Initialize void_node.
21532 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
21534 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21536 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21538 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21541 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21542 flag_reorder_blocks_and_partition.
21543 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21545 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
21548 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
21550 (*addc_r_t): Add new insn_and_split.
21552 2014-05-21 Jakub Jelinek <jakub@redhat.com>
21554 PR middle-end/61252
21555 * omp-low.c (handle_simd_reference): New function.
21556 (lower_rec_input_clauses): Use it. Defer adding reference
21557 initialization even for reduction without placeholder if in simd,
21558 handle it properly later on.
21560 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21562 PR tree-optimization/60899
21563 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21564 assume all static symbols will have definition wile parsing and
21565 check the do have definition later in compilation; check that
21566 variable referring symbol will be output before concluding that
21567 reference is safe; be conservative for referring local statics;
21568 be more precise about when comdat is output in other partition.
21570 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21573 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21575 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21576 (ipa_inline): Loop inline_to_all_callers until no more aliases
21579 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21581 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21582 set writeonly flag only for vars actually written to.
21584 2014-05-20 Dehao Chen <dehao@google.com>
21586 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21587 and callee count to get clone count.
21588 * tree-inline.c (expand_call_inline): Use callee count instead of bb
21589 count in copy_body.
21591 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
21593 PR rtl-optimization/61243
21594 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21596 2014-05-20 Xinliang David Li <davidxl@google.com>
21598 * cgraphunit.c (walk_polymorphic_call_targets): Add
21599 dbgcnt and fopt-info support.
21600 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21601 * ipa-devirt.c (ipa_devirt): Ditto.
21602 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21603 * ipa.c (walk_polymorphic_call_targets): Ditto.
21604 * gimple-fold.c (fold_gimple_assign): Ditto.
21605 (gimple_fold_call): Ditto.
21606 * dbgcnt.def: New counter.
21608 2014-05-20 DJ Delorie <dj@redhat.com>
21610 * config/msp430/msp430.md (split): Don't allow subregs when
21611 splitting SImode adds.
21612 (andneghi): Fix subtraction logic.
21613 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21615 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
21617 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21619 * except.c (switch_to_exception_section, resolve_unique_section,
21620 get_named_text_section, default_function_rodata_section,
21621 align_variable, get_block_for_decl, default_section_type_flags):
21622 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21623 * symtab.c (symtab_add_to_same_comdat_group,
21624 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21625 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21627 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21628 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21629 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21630 (c6x_function_in_section_p): Likewise.
21631 * config/darwin.c (machopic_select_section): Likewise.
21632 * config/arm/arm.c (arm_function_in_section_p): Likewise.
21633 * config/mips/mips.c (mips_function_rodata_section): Likewise.
21634 * config/mep/mep.c (mep_select_section): LIkewise.
21635 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21637 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
21639 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21640 EH region of calls to pure functions that can throw an exception.
21641 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21642 (copy_reference_ops_from_call): Also copy the EH region of the call if
21643 it can throw an exception.
21645 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21647 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21648 nested VEC_SELECTs that are inverses of each other.
21650 2014-05-20 Richard Biener <rguenther@suse.de>
21652 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21653 (extract_and_process_scc_for_name): not here.
21654 (cond_dom_walker::before_dom_children): Only process
21655 stmts that end the BB in interesting ways.
21656 (run_scc_vn): Mark param uses as visited.
21658 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21660 * config/arm/arm.md (arith_shiftsi): Do not predicate for
21663 2014-05-20 Nick Clifton <nickc@redhat.com>
21665 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21666 (msp430_gimplify_va_arg_expr): New function.
21667 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21669 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21670 operand 0 in order to prevent confusion about the number of
21671 registers involved.
21673 2014-05-20 Richard Biener <rguenther@suse.de>
21675 PR tree-optimization/61221
21676 * tree-ssa-pre.c (el_to_update): Remove.
21677 (eliminate_dom_walker::before_dom_children): Handle released
21678 VDEFs by value-numbering them to the associated VUSE. Update
21679 stmt immediately for substituted call address.
21680 (eliminate): Remove delayed stmt updating code.
21681 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21682 possibly late re-numbered vuses.
21683 (vn_reference_lookup_2): Adjust.
21684 (vn_reference_lookup_pieces): Likewise.
21685 (vn_reference_lookup): Likewise.
21687 2014-05-20 Richard Biener <rguenther@suse.de>
21689 * config.gcc: Remove need_64bit_hwint.
21690 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21691 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21693 * config.in: Regenerate.
21694 * configure: Likewise.
21696 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
21698 * doc/extend.texi: Create Label Attributes section,
21699 move all label attributes into it and reference it.
21701 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
21703 * arm.c (thumb1_reorg): When scanning backwards skip anything
21704 that's not a proper insn.
21706 2014-05-19 Richard Biener <rguenther@suse.de>
21708 PR tree-optimization/61221
21709 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21710 Do nothing for unreachable blocks.
21711 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21712 Improve unreachability detection.
21714 2014-05-19 Richard Biener <rguenther@suse.de>
21716 PR tree-optimization/61209
21717 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21719 2014-05-19 Nick Clifton <nickc@redhat.com>
21721 * except.c (init_eh): Fix computation of builtin setjmp buffer
21722 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21724 2014-05-19 Richard Biener <rguenther@suse.de>
21726 PR tree-optimization/61184
21727 * tree-vrp.c (is_negative_overflow_infinity): Use
21728 TREE_OVERFLOW_P and do that check first.
21729 (is_positive_overflow_infinity): Likewise.
21730 (is_overflow_infinity): Likewise.
21731 (vrp_operand_equal_p): Properly treat operands with
21732 differing overflow as not equal.
21734 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
21736 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21737 shift simplification where it was intended.
21739 2014-05-19 Christian Bruel <christian.bruel@st.com>
21742 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21744 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
21747 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21750 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21752 * reg-notes.def (CROSSING_JUMP): Likewise.
21753 * rtl.h (rtx_def): Update comment for jump flag.
21754 (CROSSING_JUMP_P): Define.
21755 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21756 of a REG_CROSSING_JUMP note.
21757 * cfghooks.c (tidy_fallthru_edges): Likewise.
21758 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21759 * emit-rtl.c (try_split): Likewise.
21760 * haifa-sched.c (sched_create_recovery_edges): Likewise.
21761 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21762 * jump.c (redirect_jump_2): Likewise.
21763 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21764 (relax_delay_slots): Likewise.
21765 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21766 (bbit_di): Likewise.
21767 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21768 * config/sh/sh.md (jump_compact): Likewise.
21769 * bb-reorder.c (rotate_loop): Likewise.
21770 (pass_duplicate_computed_gotos::execute): Likewise.
21771 (add_reg_crossing_jump_notes): Rename to...
21772 (update_crossing_jump_flags): ...this.
21773 (pass_partition_blocks::execute): Update accordingly.
21775 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
21777 * tree.h: Remove extraneous template <>.
21779 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21781 * ipa.c (symtab_remove_unreachable_nodes): Remove
21782 symbol from comdat group if its body was eliminated.
21783 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21784 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21785 (symtab_unregister_node): ... this one.
21786 (verify_symtab_base): More strict checking of comdats.
21787 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21789 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21791 * tree-pass.h (make_pass_ipa_comdats): New pass.
21792 * timevar.def (TV_IPA_COMDATS): New timevar.
21793 * passes.def (pass_ipa_comdats): Add.
21794 * Makefile.in (OBJS): Add ipa-comdats.o
21795 * ipa-comdats.c: New file.
21797 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21799 * ipa.c (update_visibility_by_resolution_info): New function.
21800 (function_and_variable_visibility): Use it.
21802 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
21804 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21806 (FOR_EACH_DEFINED_SYMBOL): New macro.
21807 (varpool_first_static_initializer, varpool_next_static_initializer,
21808 varpool_first_defined_variable, varpool_next_defined_variable):
21810 (symtab_in_same_comdat_p): Correctly deal with inline functions.
21812 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21814 * ggc-page.c (ggc_handle_finalizers): Add comment.
21816 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21818 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21819 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21820 (ggc_internal_cleared_alloc): Likewise.
21821 * ggc-page.c (finalizer): New class.
21822 (vec_finalizer): Likewise.
21823 (globals::finalizers): New member.
21824 (globals::vec_finalizers): Likewise.
21825 (ggc_internal_alloc): Record the finalizer if any for the block being
21827 (ggc_handle_finalizers): New function.
21828 (ggc_collect): Call ggc_handle_finalizers.
21829 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21831 (ggc_internal_cleared_alloc): Likewise.
21832 (finalize): New function.
21833 (need_finalization_p): Likewise.
21834 (ggc_alloc): Install the type's destructor as the finalizer if it
21835 might do something.
21836 (ggc_cleared_alloc): Likewise.
21837 (ggc_vec_alloc): Likewise.
21838 (ggc_cleared_vec_alloc): Likewise.
21840 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21842 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21844 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
21846 * alias.c (record_alias_subset): Adjust.
21847 * bitmap.c (bitmap_element_allocate): Likewise.
21848 (bitmap_gc_alloc_stat): Likewise.
21849 * cfg.c (init_flow): Likewise.
21850 (alloc_block): Likewise.
21851 (unchecked_make_edge): Likewise.
21852 * cfgloop.c (alloc_loop): Likewise.
21853 (flow_loops_find): Likewise.
21854 (rescan_loop_exit): Likewise.
21855 * cfgrtl.c (init_rtl_bb_info): Likewise.
21856 * cgraph.c (insert_new_cgraph_node_version): Likewise.
21857 (cgraph_allocate_node): Likewise.
21858 (cgraph_create_edge_1): Likewise.
21859 (cgraph_allocate_init_indirect_info): Likewise.
21860 * cgraphclones.c (cgraph_clone_edge): Likewise.
21861 * cgraphunit.c (add_asm_node): Likewise.
21862 (init_lowered_empty_function): Likewise.
21863 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21864 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21865 (alpha_use_linkage): Likewise.
21866 * config/arc/arc.c (arc_init_machine_status): Likewise.
21867 * config/arm/arm.c (arm_init_machine_status): Likewise.
21868 * config/avr/avr.c (avr_init_machine_status): Likewise.
21869 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21870 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21871 * config/cris/cris.c (cris_init_machine_status): Likewise.
21872 * config/darwin.c (machopic_indirection_name): Likewise.
21873 (darwin_build_constant_cfstring): Likewise.
21874 (darwin_enter_string_into_cfstring_table): Likewise.
21875 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21876 * config/frv/frv.c (frv_init_machine_status): Likewise.
21877 * config/i386/i386.c (get_dllimport_decl): Likewise.
21878 (ix86_init_machine_status): Likewise.
21879 (assign_386_stack_local): Likewise.
21880 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21881 (i386_pe_maybe_record_exported_symbol): Likewise.
21882 (i386_pe_record_stub): Likewise.
21883 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21884 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21885 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21886 (m32c_note_pragma_address): Likewise.
21887 * config/mep/mep.c (mep_init_machine_status): Likewise.
21888 (mep_note_pragma_flag): Likewise.
21889 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21890 (mips16_local_alias): Likewise.
21891 (mips_init_machine_status): Likewise.
21892 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21893 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21894 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21895 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21896 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21897 * config/pa/pa.c (pa_init_machine_status): Likewise.
21898 (pa_get_deferred_plabel): Likewise.
21899 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21900 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21901 (rs6000_init_machine_status): Likewise.
21902 (output_toc): Likewise.
21903 * config/s390/s390.c (s390_init_machine_status): Likewise.
21904 * config/score/score.c (score_output_external): Likewise.
21905 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21906 * config/spu/spu.c (spu_init_machine_status): Likewise.
21907 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21908 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21909 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21910 * coverage.c (coverage_end_function): Likewise.
21911 * dbxout.c (dbxout_init): Likewise.
21912 * doc/gty.texi: Don't mention variable_size attribute.
21913 * dwarf2cfi.c (new_cfi): Adjust.
21914 (new_cfi_row): Likewise.
21915 (copy_cfi_row): Likewise.
21916 (create_cie_data): Likewise.
21917 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21918 (new_loc_descr): Likewise.
21919 (find_AT_string_in_table): Likewise.
21920 (add_addr_table_entry): Likewise.
21921 (new_die): Likewise.
21922 (add_var_loc_to_decl): Likewise.
21923 (clone_die): Likewise.
21924 (clone_as_declaration): Likewise.
21925 (break_out_comdat_types): Likewise.
21926 (new_loc_list): Likewise.
21927 (add_loc_descr_to_each): Likewise.
21928 (add_location_or_const_value_attribute): Likewise.
21929 (add_linkage_name): Likewise.
21930 (lookup_filename): Likewise.
21931 (dwarf2out_var_location): Likewise.
21932 (new_line_info_table): Likewise.
21933 (dwarf2out_init): Likewise.
21934 (mem_loc_descriptor): Likewise.
21935 (loc_descriptor): Likewise.
21936 (add_const_value_attribute): Likewise.
21937 (tree_add_const_value_attribute): Likewise.
21938 (comp_dir_string): Likewise.
21939 (dwarf2out_vms_debug_main_pointer): Likewise.
21940 (string_cst_pool_decl): Likewise.
21941 * emit-rtl.c (set_mem_attrs): Likewise.
21942 (get_reg_attrs): Likewise.
21943 (start_sequence): Likewise.
21944 (init_emit): Likewise.
21945 (init_emit_regs): Likewise.
21946 * except.c (init_eh_for_function): Likewise.
21947 (gen_eh_region): Likewise.
21948 (gen_eh_region_catch): Likewise.
21949 (gen_eh_landing_pad): Likewise.
21950 (add_call_site): Likewise.
21951 * function.c (add_frame_space): Likewise.
21952 (insert_temp_slot_address): Likewise.
21953 (assign_stack_temp_for_type): Likewise.
21954 (get_hard_reg_initial_val): Likewise.
21955 (allocate_struct_function): Likewise.
21956 (prepare_function_start): Likewise.
21957 (types_used_by_var_decl_insert): Likewise.
21958 * gengtype.c (variable_size_p): Remove function.
21959 (enum alloc_quantity): Remove enum.
21960 (write_typed_alloc_def): Remove function.
21961 (write_typed_struct_alloc_def): Likewise.
21962 (write_typed_typedef_alloc_def): Likewise.
21963 (write_typed_alloc_defns): Likewise.
21965 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21966 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21967 * ggc.h (ggc_alloc): new function.
21968 (ggc_cleared_alloc): Likewise.
21969 (ggc_vec_alloc): Template on type of vector element, and remove
21970 element size argument.
21971 (ggc_cleared_vec_alloc): Likewise.
21972 * gimple.c (gimple_build_omp_for): Adjust.
21973 (gimple_copy): Likewise.
21974 * ipa-cp.c (get_replacement_map): Likewise.
21975 (find_aggregate_values_for_callers_subset): Likewise.
21976 (known_aggs_to_agg_replacement_list): Likewise.
21977 * ipa-devirt.c (get_odr_type): Likewise.
21978 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21979 (read_agg_replacement_chain): Likewise.
21980 * loop-iv.c (get_simple_loop_desc): Likewise.
21981 * lto-cgraph.c (input_node_opt_summary): Likewise.
21982 * lto-section-in.c (lto_new_in_decl_state): Likewise.
21983 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21984 (input_eh_region): Likewise.
21985 (input_eh_lp): Likewise.
21986 (input_cfg): Likewise.
21987 * optabs.c (set_optab_libfunc): Likewise.
21988 (init_tree_optimization_optabs): Likewise.
21989 (set_conv_libfunc): Likewise.
21990 * passes.c (do_per_function_toporder): Likewise.
21991 * rtl.h: Don't use variable_size gty attribute.
21992 * sese.c (if_region_set_false_region): Adjust.
21993 * stringpool.c (gt_pch_save_stringpool): Likewise.
21994 * target-globals.c (save_target_globals): Likewise.
21995 * toplev.c (general_init): Likewise.
21996 * trans-mem.c (record_tm_replacement): Likewise.
21997 (split_bb_make_tm_edge): Likewise.
21998 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21999 * tree-data-ref.h (lambda_vector_new): Likewise.
22000 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22001 * tree-iterator.c (tsi_link_before): Likewise.
22002 (tsi_link_after): Likewise.
22003 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22004 * tree-ssa-loop-niter.c (record_estimate): Likewise.
22005 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22006 * tree-ssa-operands.h: Don't use variable_size gty attribute.
22007 * tree-ssa.c (init_tree_ssa): Adjust.
22008 * tree-ssanames.c (set_range_info): Likewise.
22009 (get_ptr_info): Likewise.
22010 (duplicate_ssa_name_ptr_info): Likewise.
22011 (duplicate_ssa_name_range_info): Likewise.
22012 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22013 (unpack_ts_fixed_cst_value_fields): Likewise.
22014 * tree.c (build_fixed): Likewise.
22015 (build_real): Likewise.
22016 (build_string): Likewise.
22017 (decl_priority_info): Likewise.
22018 (decl_debug_expr_insert): Likewise.
22019 (decl_value_expr_insert): Likewise.
22020 (decl_debug_args_insert): Likewise.
22021 (type_hash_add): Likewise.
22022 (build_omp_clause): Likewise.
22023 * ubsan.c (decl_for_type_insert): Likewise.
22024 * varasm.c (get_unnamed_section): Likewise.
22025 (get_noswitch_section): Likewise.
22026 (get_section): Likewise.
22027 (get_block_for_section): Likewise.
22028 (create_block_symbol): Likewise.
22029 (build_constant_desc): Likewise.
22030 (create_constant_pool): Likewise.
22031 (force_const_mem): Likewise.
22032 (record_tm_clone_pair): Likewise.
22033 * varpool.c (varpool_create_empty_node): Likewise.
22035 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
22037 * dwarf2out.c (tree_add_const_value_attribute): Call
22038 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22039 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22040 instead of ggc_internal_<x>alloc_stat.
22041 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22042 (ggc_realloc): Likewise.
22043 * ggc-none.c (ggc_internal_alloc): Likewise.
22044 (ggc_internal_cleared_alloc): Likewise.
22045 * ggc-page.c: Likewise.
22046 * ggc.h (ggc_internal_alloc_stat): Likewise.
22047 (ggc_internal_alloc): Remove macro.
22048 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22049 (ggc_internal_cleared_alloc): Remove macro.
22050 (GGC_RESIZEVEC): Adjust.
22051 (ggc_resizevar): Remove macro.
22052 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22053 (ggc_internal_cleared_vec_alloc_stat): Likewise.
22054 (ggc_internal_vec_cleared_alloc): Remove macro.
22055 (ggc_alloc_atomic_stat): Drop _stat suffix.
22056 (ggc_alloc_atomic): Remove macro.
22057 (ggc_alloc_cleared_atomic): Remove macro.
22058 (ggc_alloc_string_stat): Drop _stat suffix.
22059 (ggc_alloc_string): Remove macro.
22060 (ggc_alloc_rtx_def_stat): Adjust.
22061 (ggc_alloc_tree_node_stat): Likewise.
22062 (ggc_alloc_cleared_tree_node_stat): Likewise.
22063 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22064 (ggc_alloc_cleared_simd_clone_stat): Likewise.
22065 * gimple.c (gimple_build_omp_for): Likewise.
22066 (gimple_copy): Likewise.
22067 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22068 * toplev.c (realloc_for_line_map): Adjust.
22069 * tree-data-ref.h (lambda_vector_new): Likewise.
22070 * tree-phinodes.c (allocate_phi_node): Likewise.
22071 * tree.c (grow_tree_vec_stat): Likewise.
22072 * vec.h (va_gc::reserve): Adjust.
22074 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
22076 * config/microblaze/microblaze.c (break_handler): New Declaration.
22077 (microblaze_break_function_p,microblaze_is_break_handler): New.
22078 (compute_frame_size): Use microblaze_break_function_p.
22079 Add the test of break_handler.
22080 (microblaze_function_prologue) : Add the test of variable
22081 break_handler. Check the fnname by BREAK_HANDLER_NAME.
22082 (microblaze_function_epilogue) : Add the test of break_handler.
22083 (microblaze_globalize_label) : Add the test of break_handler.
22084 Check the name by BREAK_HANDLER_NAME.
22086 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22088 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22089 microblaze_is_break_handler test.
22090 (call_internal1,call_value_intern): Use microblaze_break_function_p.
22091 Use SYMBOL_REF_DECL.
22093 * config/microblaze/microblaze-protos.h
22094 (microblaze_break_function_p,microblaze_is_break_handler):
22097 * doc/extend.texi (MicroBlaze break_handler Functions): Document
22098 new MicroBlaze break_handler functions.
22100 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22102 * doc/extend.texi (Size of an asm): Move node text according
22103 to its @menu entry position.
22105 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
22107 PR tree-optimization/61140
22108 PR tree-optimization/61150
22109 PR tree-optimization/61197
22110 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22112 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
22114 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
22116 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
22118 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22119 __SIZEOF_INT128__ is defined.
22121 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22123 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22124 (rs6000_delegitimize_address): Use it.
22126 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
22128 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22129 inplace argument. Store the new address in the original MEM when true.
22130 * emit-rtl.c (change_address_1): Likewise.
22131 (adjust_address_1, adjust_automodify_address_1, offset_address):
22132 Update accordingly.
22133 * rtl.h (plus_constant): Add an inplace argument.
22134 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
22135 when true. Avoid generating (plus X (const_int 0)).
22136 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22137 in-place. Pass true to plus_constant.
22138 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22140 2014-05-16 Dehao Chen <dehao@google.com>
22142 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22144 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22147 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22149 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22151 2014-05-16 Dehao Chen <dehao@google.com>
22153 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22154 optimize_function_for_size_p.
22155 * regs.h (REG_FREQ_FROM_BB): Likewise.
22157 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22160 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22161 negt_reg_operand cases.
22162 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22164 * config/sh/predicates.md (cbranch_treg_value): Simplify.
22166 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
22168 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22171 2014-05-16 David Malcolm <dmalcolm@redhat.com>
22174 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22176 * tree-cfg.c (dump_function_to_file): Dump the return type of
22177 functions, in a line to itself before the function body, mimicking
22178 the layout of a C function.
22180 2014-05-16 Dehao Chen <dehao@google.com>
22182 * cfghooks.c (make_forwarder_block): Use direct computation to
22183 get fall-through edge's count and frequency.
22185 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
22187 * config/arc/arc.c (arc_init): Fix typo in error message.
22188 * config/i386/i386.c (ix86_expand_builtin): Likewise.
22189 (split_stack_prologue_scratch_regno): Likewise.
22190 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22191 word from error message.
22193 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22195 * ira-costs.c: Fix typo in comment.
22197 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
22199 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22201 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
22203 * varpool.c (dump_varpool_node): Dump write-only flag.
22204 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22206 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22207 write-only variables.
22208 * ipa.c (process_references): New function.
22209 (set_readonly_bit): New function.
22210 (set_writeonly_bit): New function.
22211 (clear_addressable_bit): New function.
22212 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22213 fix handling of aliases.
22214 * cgraph.h (struct varpool_node): Add writeonly flag.
22216 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
22218 PR rtl-optimization/60969
22219 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22220 Calculate costs for this case.
22222 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
22224 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22225 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22227 2014-05-16 Richard Biener <rguenther@suse.de>
22229 PR tree-optimization/61194
22230 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22231 bool patterns ending in a COND_EXPR.
22233 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22235 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22237 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22239 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22240 where we were unable to cost an RTX.
22242 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22244 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22247 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22248 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22250 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22252 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22253 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22255 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22256 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22258 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22259 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22261 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22264 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22265 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22267 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22270 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22271 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22273 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22274 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22276 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22277 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22279 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22280 rotates and shifts.
22282 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22283 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22285 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22286 ZERO_EXTEND and SIGN_EXTEND better.
22288 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22289 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22291 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22292 logical operations.
22294 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22295 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22297 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22298 costs when costing loads and stores to memory.
22300 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22301 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
22303 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22306 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22308 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22310 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22311 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22313 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22315 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22317 (aarch64_rtx_mult_cost): New.
22318 (aarch64_rtx_costs): Use it, refactor as appropriate.
22320 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22321 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22323 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22324 emit instructions, return number of instructions which would
22326 (aarch64_add_constant): Update call to aarch64_build_constant.
22327 (aarch64_output_mi_thunk): Likewise.
22328 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22331 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22333 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22334 (TARGET_RTX_COSTS): Call it.
22336 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22338 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22339 (cortexa57_vector_cost): Likewise.
22340 (cortexa57_tunings): Use them.
22342 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
22344 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22345 (cpu_addrcost_table): Use it.
22346 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22347 (aarch64_address_cost): Rewrite using aarch64_classify_address,
22350 2014-05-16 Richard Biener <rguenther@suse.de>
22352 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22353 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22354 (visit_phi): Ignore edges marked as not executable.
22355 (class cond_dom_walker): New.
22356 (cond_dom_walker::before_dom_children): Value-number
22357 control statements and mark successor edges as not
22358 executable if possible.
22359 (run_scc_vn): First walk all control statements in
22360 dominator order, marking edges as not executable.
22361 * tree-inline.c (copy_edges_for_bb): Be not confused
22362 about random edge flags.
22364 2014-05-16 Richard Biener <rguenther@suse.de>
22366 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22368 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
22371 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22372 (__TM_simple_begin): Use it.
22373 (__TM_begin): Likewise.
22375 2014-05-15 Martin Jambor <mjambor@suse.cz>
22378 * ipa-prop.c (update_indirect_edges_after_inlining): Check
22379 type_preserved flag when the indirect edge is polymorphic.
22381 2014-05-15 Martin Jambor <mjambor@suse.cz>
22383 PR tree-optimization/61090
22384 * tree-sra.c (sra_modify_expr): Pass the current gsi to
22385 build_ref_for_model.
22387 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22389 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22390 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22392 2014-05-15 Jakub Jelinek <jakub@redhat.com>
22394 PR tree-optimization/61158
22395 * fold-const.c (fold_binary_loc): If X is zero-extended and
22396 shiftc >= prec, make sure zerobits is all ones instead of
22397 invoking undefined behavior.
22399 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22401 * regcprop.h: New file.
22402 * regcprop.c (skip_debug_insn_p): New decl.
22403 (replace_oldest_value_reg): Check skip_debug_insn_p.
22404 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22405 * shrink-wrap.c: Include regcprop.h.
22406 (prepare_shrink_wrap): Call
22407 copyprop_hardreg_forward_bb_without_debug_insn.
22409 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22411 * shrink-wrap.h: Update comment.
22412 * shrink-wrap.c: Update comment.
22413 (next_block_for_reg): Rename to live_edge_for_reg.
22414 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22415 (move_insn_for_shrink_wrap): Split live_edge.
22416 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22418 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22420 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22422 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22423 * config/sparc/sparc.md (fptype_ut699): New attribute.
22424 (in_branch_delay): Return false if -mfix-ut699 is specified and
22425 fptype_ut699 is set to single.
22426 (truncdfsf2): Add fptype_ut699 attribute.
22427 (fix_truncdfsi2): Likewise.
22428 (floatsisf2): Change fptype attribute.
22429 (fix_truncsfsi2): Likewise.
22430 (negtf2_notv9): Delete.
22431 (negtf2_v9): Likewise.
22432 (negtf2_hq): New instruction.
22433 (negtf2): New instruction and splitter.
22434 (negdf2_notv9): Rewrite.
22435 (abstf2_notv9): Delete.
22436 (abstf2_hq_v9): Likewise.
22437 (abstf2_v9): Likewise.
22438 (abstf2_hq): New instruction.
22439 (abstf2): New instruction and splitter.
22440 (absdf2_notv9): Rewrite.
22442 2014-05-14 Cary Coutant <ccoutant@google.com>
22445 * opts.c (common_handle_option): Don't special-case "-g".
22446 (set_debug_level): Default to at least level 2 with "-g".
22448 2014-05-14 DJ Delorie <dj@redhat.com>
22450 * config/msp430/msp430.c (msp430_builtin): Add
22451 MSP430_BUILTIN_DELAY_CYCLES.
22452 (msp430_init_builtins): Register void __delay_cycles(long long).
22453 (msp430_builtin_decl): Add it.
22454 (cg_magic_constant): New.
22455 (msp430_expand_delay_cycles): New.
22456 (msp430_expand_builtin): Call it.
22457 (msp430_print_operand_raw): Change integer printing from "int" to
22459 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22460 (delay_cycles_start): New.
22461 (delay_cycles_end): New.
22462 (delay_cycles_32): New.
22463 (delay_cycles_32x): New.
22464 (delay_cycles_16): New.
22465 (delay_cycles_16x): New.
22466 (delay_cycles_2): New.
22467 (delay_cycles_1): New.
22468 * doc/extend.texi: Document __delay_cycles().
22470 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
22472 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22473 length attribute computation.
22475 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
22478 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22480 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
22483 * config/sparc/sparc.md: Fix types of low and high in DI constant
22484 splitter. Use gen_int_mode in some other splitters.
22486 2014-05-14 Martin Jambor <mjambor@suse.cz>
22489 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22491 2014-05-14 James Norris <jnorris@codesourcery.com>
22493 * omp-low.c (expand_parallel_call): Remove shadow variable.
22494 (expand_omp_taskreg): Likewise.
22496 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
22498 * common/config/i386/i386-common.c
22499 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22500 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22501 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22502 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22503 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22504 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22505 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22506 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22507 xsavecintrin.h, xsavesintrin.h.
22508 (x86_64-*-*): Ditto.
22509 * config/i386/clflushoptintrin.h: New.
22510 * config/i386/xsavecintrin.h: Ditto.
22511 * config/i386/xsavesintrin.h: Ditto.
22512 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22513 (bit_XSAVES): Ditto.
22514 (bit_XSAVES): Ditto.
22515 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22516 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22518 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22519 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22520 OPTION_MASK_ISA_XSAVES.
22521 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22522 -mxsavec, -mxsaves.
22523 (PTA_CLFLUSHOPT) Define.
22524 (PTA_XSAVEC): Ditto.
22525 (PTA_XSAVES): Ditto.
22526 (ix86_option_override_internal): Handle new options.
22527 (ix86_valid_target_attribute_inner_p): Ditto.
22528 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22529 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22530 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22531 (bdesc_special_args): Add __builtin_ia32_xsaves,
22532 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22533 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22534 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22535 (ix86_expand_builtin): Handle new builtins.
22536 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22537 (TARGET_CLFLUSHOPT_P): Ditto.
22538 (TARGET_XSAVEC): Ditto.
22539 (TARGET_XSAVEC_P): Ditto.
22540 (TARGET_XSAVES): Ditto.
22541 (TARGET_XSAVES_P): Ditto.
22542 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22543 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22544 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22546 (ANY_XRSTOR64): Ditto.
22548 (xrstor): Change into <xrstor>.
22549 (xrstor_rex64): Change into <xrstor>_rex64.
22550 (xrstor64): Change into <xrstor>64
22552 * config/i386/i386.opt (mclflushopt): New.
22555 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22557 * doc/invoke.texi: Document new options.
22559 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22561 PR rtl-optimization/60866
22562 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22563 Default it to -1. Pass it down to init_simplejump_data.
22564 (init_simplejump_data): New parameter old_seqno. Pass it down
22565 to get_seqno_for_a_jump.
22566 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
22567 initializing new jump seqno as a last resort. Add comment.
22568 (sel_redirect_edge_and_branch): Save old seqno of the conditional
22569 jump and pass it down to sel_init_new_insn.
22570 (sel_redirect_edge_and_branch_force): Likewise.
22572 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
22574 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22575 shifted values to avoid build warning.
22577 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
22579 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22580 * cfgrtl.c (rtl_merge_blocks): Fix comment.
22581 (cfg_layout_merge_blocks): Likewise.
22582 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22584 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
22586 PR rtl-optimization/60901
22587 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22588 bb predecessor belongs to the same scheduling region. Adjust comment.
22590 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
22592 * doc/sourcebuild.texi: (dfp_hw): Document.
22593 (p8vector_hw): Likewise.
22594 (powerpc_eabi_ok): Likewise.
22595 (powerpc_elfv2): Likewise.
22596 (powerpc_htm_ok): Likewise.
22597 (ppc_recip_hw): Likewise.
22598 (vsx_hw): Likewise.
22600 2014-05-13 Cary Coutant <ccoutant@google.com>
22602 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22604 2014-05-13 David Malcolm <dmalcolm@redhat.com>
22606 * gengtype-parse.c (require3): Eliminate in favor of...
22608 (require_template_declaration): Update to support optional single *
22611 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22612 (create_user_defined_type): Handle a single level of explicit
22613 pointerness within template arguments.
22614 (struct write_types_data): Add field "kind".
22615 (filter_type_name): Handle "*" character.
22616 (write_user_func_for_structure_ptr): Require a write_types_data
22617 rather than just a prefix string, so that we can look up the kind
22618 of the wtd and use it as an index into wrote_user_func_for_ptr,
22619 ensuring that such functions are written at most once. Support
22620 subclasses by invoking the marking function of the ultimate base class.
22621 (write_user_func_for_structure_body): Require a write_types_data
22622 rather than just a prefix string, so that we can pass this to
22623 write_user_func_for_structure_ptr.
22624 (write_func_for_structure): Likewise.
22625 (ggc_wtd): Add initializer of new "kind" field.
22626 (pch_wtd): Likewise.
22628 * gengtype.h (enum write_types_kinds): New.
22629 (struct type): Add field wrote_user_func_for_ptr to the "s"
22632 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22634 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22635 instead of const_binop.
22636 (fold_binary_loc): Likewise.
22638 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
22640 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22641 calculation to match get_ref_base_and_extent.
22643 2014-05-13 Catherine Moore <clm@codesourcery.com>
22644 Sandra Loosemore <sandra@codesourcery.com>
22646 * configure.ac: Fix assembly for explicit JALR relocation check.
22647 * configure: Regenerate.
22649 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22651 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22652 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22653 Remove associated type declarations and initialisations.
22654 (arm_expand_neon_builtin): Likewise.
22655 (neon_emit_pair_result_insn): Delete.
22656 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22657 * config/arm/neon.md (neon_vtrn<mode>): Delete.
22658 (neon_vzip<mode>): Likewise.
22659 (neon_vuzp<mode>): Likewise.
22661 2014-05-13 Richard Biener <rguenther@suse.de>
22664 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22665 it needs revisiting whether the call still may be tail-called.
22667 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22669 * rtl.def (SYMBOL_REF): Remove middle "0" field.
22670 * rtl.h (block_symbol): Reduce number of fields to 2.
22671 (rtx_def): Add u2.symbol_ref_flags.
22672 (SYMBOL_REF_FLAGS): Use it.
22673 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22674 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22675 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22676 Lower index of SYMBOL_REF_DATA.
22677 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22678 Print SYMBOL_REF_FLAGS at the same time.
22679 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22681 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22683 * rtl.def (VAR_LOCATION): Remove "i" field.
22684 * rtl.h (rtx_def): Add u2.var_location_status.
22685 (PAT_VAR_LOCATION_STATUS): Use it.
22686 (gen_rtx_VAR_LOCATION): Declare.
22687 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22688 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22689 * var-tracking.c (emit_note_insn_var_location): Remove casts.
22691 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22693 * rtl.def (scratch): Fix outdated comment and remove "0" field.
22694 * gengtype.c (adjust_field_rtx_def): Update accordingly.
22696 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22698 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22699 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22700 * rtl.h (rtx_def): Add insn_uid to u2 field.
22701 (RTX_FLAG_CHECK8): Delete in favor of...
22702 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22703 (INSN_DELETED_P): Update accordingly.
22704 (INSN_UID): Use u2.insn_uid.
22705 (INSN_CHAIN_CODE_P): Define.
22706 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22707 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22708 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22709 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22710 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22711 indices accordingly.
22712 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22713 Update indices for insn-chain rtxes.
22714 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22715 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22716 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22717 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22718 * combine.c (try_combine): Likewise.
22719 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22721 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22723 * rtl.def (REG): Remove middle field.
22724 * rtl.h (rtx_def): Add orignal_regno to u2.
22725 (ORIGINAL_REGNO): Use it instead of field 1.
22726 (REG_ATTRS): Lower field index accordingly.
22727 * gengtype.c (adjust_field_rtx_def): Remove handling of
22728 ORIGINAL_REGNO. Move REG_ATTRS index down.
22729 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22730 code that prints the REGNO.
22732 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22734 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22737 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
22739 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22741 2014-05-13 Bin Cheng <bin.cheng@arm.com>
22743 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22744 (alloc_iv): Lower base expressions containing ADDR_EXPR.
22746 2014-05-13 Ian Bolton <ian.bolton@arm.com>
22748 * config/aarch64/aarch64-protos.h
22749 (aarch64_hard_regno_caller_save_mode): New prototype.
22750 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22752 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22754 2014-05-13 Christian Bruel <christian.bruel@st.com>
22756 * target.def (mode_switching): New hook vector.
22757 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22758 (mode_exit, modepriority_to_mode): Likewise.
22759 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22760 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22761 * target.h: Include tm.h and hard-reg-set.h.
22762 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22763 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22764 * doc/tm.texi Regenerate.
22765 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22766 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22767 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22768 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22769 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22770 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22771 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22772 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22773 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22774 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22775 (ix86_emit_mode_set): Hookify.
22776 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22778 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22779 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22780 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22781 (epiphany_mode_priority_to_mode): Remove declaration.
22782 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22783 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22784 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22786 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
22787 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22788 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22790 2014-05-13 Jakub Jelinek <jakub@redhat.com>
22793 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22794 is const0_rtx, return immediately. Don't test count == 0 when
22797 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22799 * Makefile.in: add shrink-wrap.o.
22800 * config/i386/i386.c: include "shrink-wrap.h"
22801 * function.c: Likewise.
22802 (requires_stack_frame_p, next_block_for_reg,
22803 move_insn_for_shrink_wrap, prepare_shrink_wrap,
22804 dup_block_and_redirect): Move to shrink-wrap.c
22805 (thread_prologue_and_epilogue_insns): Extract three code segments
22806 as functions in shrink-wrap.c
22807 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22809 * shrink-wrap.c: New file.
22810 * shrink-wrap.h: New file.
22812 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22814 * doc/extend.texi: Reflect current numbers of pragmas. Remove
22815 reference to Solaris.
22817 2014-05-12 Mike Stump <mikestump@comcast.net>
22820 * genattrtab.c (filename): Add.
22821 (convert_set_attr_alternative): Improve error message.
22822 (check_defs): Restore read_md_filename for error messages.
22823 (gen_insn): Save filename.
22825 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
22827 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22828 -fno-local-ivars and -fivar-visibility.
22829 * c-family/c.opt: Make -Wshadow also implicitly enable
22832 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
22834 * doc/tm.texi: Remove reference to deleted macro.
22835 * doc/tm.texi.in: Likewise.
22837 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22840 * config/avr/avr.c (avr_out_store_psi): Use correct constant
22843 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
22846 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22847 * config/arm/aout.h (License): Same.
22848 * config/arm/bpabi.h (License): Same.
22849 * config/arm/elf.h (License): Same.
22850 * config/arm/linux-elf.h (License): Same.
22851 * config/arm/linux-gas.h (License): Same.
22852 * config/arm/netbsd-elf.h (License): Same.
22853 * config/arm/uclinux-eabi.h (License): Same.
22854 * config/arm/uclinux-elf.h (License): Same.
22855 * config/arm/vxworks.h (License): Same.
22857 2014-05-11 Jakub Jelinek <jakub@redhat.com>
22859 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22860 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22861 number of operands to 3.
22862 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22863 * tree-nested.c (convert_nonlocal_omp_clauses,
22864 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22865 * gimplify.c (gimplify_scan_omp_clauses): Handle
22866 OMP_CLAUSE_LINEAR_STMT.
22867 * omp-low.c (lower_rec_input_clauses): Fix typo.
22868 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22869 cast between Fortran boolean_type_node and C _Bool if
22872 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
22874 PR tree-optimization/61136
22875 * wide-int.h (multiple_of_p): Define a version that doesn't return
22877 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22878 integer_zerop/const_binop pair.
22879 (multiple_of_p): Likewise, converting both operands to widest_int
22882 2014-05-09 Teresa Johnson <tejohnson@google.com>
22884 * cgraphunit.c (analyze_functions): Use correct dump file.
22886 2014-05-09 Florian Weimer <fweimer@redhat.com>
22888 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22890 (stack_protect_return_slot_p): New function.
22891 (expand_used_vars): Call stack_protect_decl_p and
22892 stack_protect_return_slot_p for -fstack-protector-strong.
22894 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
22895 Andrew Haley <aph@redhat.com>
22896 Richard Sandiford <rdsandiford@googlemail.com>
22898 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22901 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
22903 PR middle-end/61111
22904 * fold-const.c (fold_binary_loc): Changed width of mask.
22906 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22908 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22909 unsigned int initializers for regno_in, regno_out.
22911 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
22914 * config/avr/avr.md (cc): Add new attribute set_vzn.
22915 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22916 Set cc insn attribute to set_vzn instead of set_zn for alternatives
22917 with INC, DEC or NEG.
22918 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22919 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22920 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22922 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22925 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22927 * wide-int.cc (UTItype): Define.
22928 (UDWtype): Define for appropriate W_TYPE_SIZE.
22930 2014-05-09 Richard Biener <rguenther@suse.de>
22932 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22933 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22934 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22935 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22936 ssa_propagate): Adjust.
22938 2014-05-08 Jeff Law <law@redhat.com>
22940 PR tree-optimization/61009
22941 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22942 tri-state rather than a boolean. When a block is too big to
22943 thread through, inform caller via negative return value.
22944 (thread_across_edge): If a block was too big for normal threading,
22945 then it's too big for a joiner too, so remove temporary equivalences
22946 and return immediately.
22948 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22949 Matthias Klose <doko@ubuntu.com>
22952 * optc-gen.awk: Fix option handling for -Wunused-parameter.
22954 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22957 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22959 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
22962 * config/alpha/alpha.c: Include gimple-iterator.h.
22963 (alpha_gimple_fold_builtin): New function. Move
22964 ALPHA_BUILTIN_UMULH folding from ...
22965 (alpha_fold_builtin): ... here.
22966 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22968 2014-05-08 Wei Mi <wmi@google.com>
22971 * config/i386/i386.c (ix86_compute_frame_layout): Update
22972 preferred_stack_boundary for call, expanded from tls descriptor.
22973 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22974 to depend on SP register.
22975 (*tls_local_dynamic_base_32_gnu): Ditto.
22976 (*tls_local_dynamic_32_once): Ditto.
22977 (tls_global_dynamic_64_<mode>): Set
22978 ix86_tls_descriptor_calls_expanded_in_cfun.
22979 (tls_local_dynamic_base_64_<mode>): Ditto.
22980 (tls_global_dynamic_32): Set
22981 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22982 to depend on SP register.
22983 (tls_local_dynamic_base_32): Ditto.
22985 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22987 * config/arm/arm_neon.h: Update comment.
22988 * config/arm/neon-docgen.ml: Delete.
22989 * config/arm/neon-gen.ml: Delete.
22990 * doc/arm-neon-intrinsics.texi: Update comment.
22992 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22994 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22996 (vand, vorr, veor, vorn, vbic): Remove.
22997 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22999 (neon_vsub_unspec): Likewise.
23000 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23002 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23004 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23005 (vadd_s16): Likewise.
23006 (vadd_s32): Likewise.
23007 (vadd_f32): Likewise.
23008 (vadd_u8): Likewise.
23009 (vadd_u16): Likewise.
23010 (vadd_u32): Likewise.
23011 (vadd_s64): Likewise.
23012 (vadd_u64): Likewise.
23013 (vaddq_s8): Likewise.
23014 (vaddq_s16): Likewise.
23015 (vaddq_s32): Likewise.
23016 (vaddq_s64): Likewise.
23017 (vaddq_f32): Likewise.
23018 (vaddq_u8): Likewise.
23019 (vaddq_u16): Likewise.
23020 (vaddq_u32): Likewise.
23021 (vaddq_u64): Likewise.
23022 (vmul_s8): Likewise.
23023 (vmul_s16): Likewise.
23024 (vmul_s32): Likewise.
23025 (vmul_f32): Likewise.
23026 (vmul_u8): Likewise.
23027 (vmul_u16): Likewise.
23028 (vmul_u32): Likewise.
23029 (vmul_p8): Likewise.
23030 (vmulq_s8): Likewise.
23031 (vmulq_s16): Likewise.
23032 (vmulq_s32): Likewise.
23033 (vmulq_f32): Likewise.
23034 (vmulq_u8): Likewise.
23035 (vmulq_u16): Likewise.
23036 (vmulq_u32): Likewise.
23037 (vsub_s8): Likewise.
23038 (vsub_s16): Likewise.
23039 (vsub_s32): Likewise.
23040 (vsub_f32): Likewise.
23041 (vsub_u8): Likewise.
23042 (vsub_u16): Likewise.
23043 (vsub_u32): Likewise.
23044 (vsub_s64): Likewise.
23045 (vsub_u64): Likewise.
23046 (vsubq_s8): Likewise.
23047 (vsubq_s16): Likewise.
23048 (vsubq_s32): Likewise.
23049 (vsubq_s64): Likewise.
23050 (vsubq_f32): Likewise.
23051 (vsubq_u8): Likewise.
23052 (vsubq_u16): Likewise.
23053 (vsubq_u32): Likewise.
23054 (vsubq_u64): Likewise.
23055 (vand_s8): Likewise.
23056 (vand_s16): Likewise.
23057 (vand_s32): Likewise.
23058 (vand_u8): Likewise.
23059 (vand_u16): Likewise.
23060 (vand_u32): Likewise.
23061 (vand_s64): Likewise.
23062 (vand_u64): Likewise.
23063 (vandq_s8): Likewise.
23064 (vandq_s16): Likewise.
23065 (vandq_s32): Likewise.
23066 (vandq_s64): Likewise.
23067 (vandq_u8): Likewise.
23068 (vandq_u16): Likewise.
23069 (vandq_u32): Likewise.
23070 (vandq_u64): Likewise.
23071 (vorr_s8): Likewise.
23072 (vorr_s16): Likewise.
23073 (vorr_s32): Likewise.
23074 (vorr_u8): Likewise.
23075 (vorr_u16): Likewise.
23076 (vorr_u32): Likewise.
23077 (vorr_s64): Likewise.
23078 (vorr_u64): Likewise.
23079 (vorrq_s8): Likewise.
23080 (vorrq_s16): Likewise.
23081 (vorrq_s32): Likewise.
23082 (vorrq_s64): Likewise.
23083 (vorrq_u8): Likewise.
23084 (vorrq_u16): Likewise.
23085 (vorrq_u32): Likewise.
23086 (vorrq_u64): Likewise.
23087 (veor_s8): Likewise.
23088 (veor_s16): Likewise.
23089 (veor_s32): Likewise.
23090 (veor_u8): Likewise.
23091 (veor_u16): Likewise.
23092 (veor_u32): Likewise.
23093 (veor_s64): Likewise.
23094 (veor_u64): Likewise.
23095 (veorq_s8): Likewise.
23096 (veorq_s16): Likewise.
23097 (veorq_s32): Likewise.
23098 (veorq_s64): Likewise.
23099 (veorq_u8): Likewise.
23100 (veorq_u16): Likewise.
23101 (veorq_u32): Likewise.
23102 (veorq_u64): Likewise.
23103 (vbic_s8): Likewise.
23104 (vbic_s16): Likewise.
23105 (vbic_s32): Likewise.
23106 (vbic_u8): Likewise.
23107 (vbic_u16): Likewise.
23108 (vbic_u32): Likewise.
23109 (vbic_s64): Likewise.
23110 (vbic_u64): Likewise.
23111 (vbicq_s8): Likewise.
23112 (vbicq_s16): Likewise.
23113 (vbicq_s32): Likewise.
23114 (vbicq_s64): Likewise.
23115 (vbicq_u8): Likewise.
23116 (vbicq_u16): Likewise.
23117 (vbicq_u32): Likewise.
23118 (vbicq_u64): Likewise.
23119 (vorn_s8): Likewise.
23120 (vorn_s16): Likewise.
23121 (vorn_s32): Likewise.
23122 (vorn_u8): Likewise.
23123 (vorn_u16): Likewise.
23124 (vorn_u32): Likewise.
23125 (vorn_s64): Likewise.
23126 (vorn_u64): Likewise.
23127 (vornq_s8): Likewise.
23128 (vornq_s16): Likewise.
23129 (vornq_s32): Likewise.
23130 (vornq_s64): Likewise.
23131 (vornq_u8): Likewise.
23132 (vornq_u16): Likewise.
23133 (vornq_u32): Likewise.
23134 (vornq_u64): Likewise.
23136 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23138 * wide-int.cc (UTItype): Define.
23139 (UDWtype): Define for appropriate W_TYPE_SIZE.
23141 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
23143 PR tree-optimization/59100
23144 * tree-ssa-phiopt.c: Include tree-inline.h.
23145 (neutral_element_p, absorbing_element_p): New functions.
23146 (value_replacement): Handle conditional binary operations with a
23147 neutral or absorbing element.
23149 2014-05-08 Richard Biener <rguenther@suse.de>
23151 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23152 folding the expression.
23153 (valueize_expr): Remove.
23154 (visit_reference_op_load): Do not valueize the result of
23156 (simplify_binary_expression): Likewise.
23157 (simplify_unary_expression): Likewise.
23159 2014-05-08 Richard Biener <rguenther@suse.de>
23161 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23162 looking at TYPE_ARG_TYPES.
23164 2014-05-08 Richard Biener <rguenther@suse.de>
23166 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23167 pointer propagation special-case.
23169 2014-05-08 Bin Cheng <bin.cheng@arm.com>
23171 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23172 core part of address expressions.
23174 2014-05-08 Alan Modra <amodra@gmail.com>
23177 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23178 loads and stores when -mno-strict-align at any alignment.
23179 (expand_block_clear): Similarly. Also correct calculation of
23182 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
23184 PR middle-end/39246
23185 * tree-complex.c (expand_complex_move): Keep line info when expanding
23187 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23188 of complex expression. Use new argument to display correct location
23189 for values coming from phi statement.
23190 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23191 (warn_uninitialized_phi): Pass location of phi argument to
23193 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23194 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23196 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23198 * config/rs6000/predicates.md (indexed_address_mem): New.
23199 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23200 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23201 fpstore_ux, fpstore_u.
23202 (sign_extend, indexed, update): New.
23203 (cell_micro): Adjust.
23204 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23205 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23206 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23207 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23208 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23209 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23210 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23211 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23212 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23213 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23214 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23215 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23216 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23217 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23218 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23220 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23221 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23222 *vsx_extract_<mode>_store): Adjust.
23223 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23224 is_cracked_insn, insn_must_be_first_in_group,
23225 insn_must_be_last_in_group): Adjust.
23227 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23229 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23230 ppc440-fpstore): Adjust.
23231 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23232 ppc476-fpstore): Adjust.
23233 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23234 ppc601-fpstore): Adjust.
23235 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23237 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23239 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23240 ppc7450-fpstore): Adjust.
23241 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23242 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23243 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23245 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23246 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23247 cell-fpstore, cell-fpstore-update): Adjust.
23248 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23249 ppce300c3_store, ppce300c3_fpstore): Adjust.
23250 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23251 e500mc_fpstore): Adjust.
23252 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23253 e500mc64_store, e500mc64_fpstore): Adjust.
23254 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23255 e5500_fpstore): Adjust.
23256 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23257 e6500_fpstore): Adjust.
23258 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23260 * config/rs6000/power4.md (power4-load, power4-load-ext,
23261 power4-load-ext-update, power4-load-ext-update-indexed,
23262 power4-load-update-indexed, power4-load-update, power4-fpload,
23263 power4-fpload-update, power4-store, power4-store-update,
23264 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23266 * config/rs6000/power5.md (power5-load, power5-load-ext,
23267 power5-load-ext-update, power5-load-ext-update-indexed,
23268 power5-load-update-indexed, power5-load-update, power5-fpload,
23269 power5-fpload-update, power5-store, power5-store-update,
23270 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23272 * config/rs6000/power6.md (power6-load, power6-load-ext,
23273 power6-load-update, power6-load-update-indexed,
23274 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23275 power6-fpload-update, power6-store, power6-store-update,
23276 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23278 * config/rs6000/power7.md (power7-load, power7-load-ext,
23279 power7-load-update, power7-load-update-indexed,
23280 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23281 power7-fpload-update, power7-store, power7-store-update,
23282 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23284 * config/rs6000/power8.md (power8-load, power8-load-update,
23285 power8-load-ext, power8-load-ext-update, power8-fpload,
23286 power8-fpload-update, power8-store, power8-store-update-indexed,
23287 power8-fpstore, power8-fpstore-update): Adjust.
23288 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23290 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23291 titan_lsu_store, titan_lsu_fpstore): Adjust.
23292 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23294 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
23297 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23298 unrolled byte insns. Emit address increments after move insns.
23300 2014-05-07 David Malcolm <dmalcolm@redhat.com>
23302 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23303 const_gimple, rather than a gimple.
23304 (gimple_call_builtin_p): Likewise, for the three variants.
23306 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23307 (gimple_call_builtin_p): Likewise, for the three variants.
23309 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23311 PR tree-optimization/61095
23312 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23314 2014-05-07 Richard Biener <rguenther@suse.de>
23316 PR tree-optimization/61034
23317 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23318 (maybe_skip_until): Use translate to take into account
23319 lattices when trying to do disambiguations.
23320 (get_continuation_for_phi_1): Likewise.
23321 (get_continuation_for_phi): Adjust for added translate arguments.
23322 (walk_non_aliased_vuses): Likewise.
23323 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23324 (walk_non_aliased_vuses): Likewise.
23325 (call_may_clobber_ref_p_1): Declare.
23326 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23327 calls. Stop early if we are only supposed to disambiguate.
23328 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23330 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
23332 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23333 Emit an error when the function has arguments.
23335 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23337 * cfgloop.h (unswitch_loops): Remove.
23338 * doc/passes.texi: Remove references to loop-unswitch.c
23339 * timevar.def (TV_LOOP_UNSWITCH): Remove.
23341 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
23343 * tree-vect-data-refs.c (vect_grouped_load_supported): New
23344 check for loads group of length 3.
23345 (vect_permute_load_chain): New permutations for loads group of
23347 * tree-vect-stmts.c (vect_model_load_cost): Change cost
23348 of vec_perm_shuffle for the new permutations.
23350 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
23352 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23353 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23354 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23355 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23356 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23357 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23358 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23359 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23361 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
23363 * loop-unswitch.c: Delete.
23365 2014-05-07 Richard Biener <rguenther@suse.de>
23367 * config.gcc: Always set need_64bit_hwint to yes.
23369 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
23371 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23372 of using optimize_size.
23374 2014-05-06 Mike Stump <mikestump@comcast.net>
23376 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23378 2014-05-06 Joseph Myers <joseph@codesourcery.com>
23380 * config/i386/sse.md (*mov<mode>_internal)
23381 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23382 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23383 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23384 (*<code><mode>3, *andnot<mode>3<mask_name>)
23385 (<mask_codefor><code><mode>3<mask_name>): Only consider
23386 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23388 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23391 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
23393 * lra-constraints.c (valid_address_p): Move earlier in file.
23394 Add a constraint argument to the address_info version.
23395 (satisfies_memory_constraint_p): New function.
23396 (satisfies_address_constraint_p): Likewise.
23397 (process_alt_operands, curr_insn_transform): Use them.
23398 (process_address): Pass the constraint to valid_address_p when
23399 checking address operands.
23401 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
23403 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23404 to their respective blocks. Fix inadvertent use of "node".
23406 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
23408 * emit-rtl.c (init_derived_machine_modes): New functionm, split
23410 (init_emit_once): ...here.
23411 * rtl.h (init_derived_machine_modes): Declare.
23412 * toplev.c (do_compile): Call it even if no_backend.
23414 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
23415 Mike Stump <mikestump@comcast.net>
23416 Richard Sandiford <rdsandiford@googlemail.com>
23417 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23419 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23420 (rtx_equal_for_memref_p): Update comment.
23421 (adjust_offset_for_component_ref): Use wide-int interfaces.
23422 * builtins.c (get_object_alignment_2): Likewise.
23423 (c_readstr): Likewise.
23424 (target_char_cast): Add comment.
23425 (determine_block_size): Use wide-int interfaces.
23426 (expand_builtin_signbit): Likewise.
23427 (fold_builtin_int_roundingfn): Likewise.
23428 (fold_builtin_bitop): Likewise.
23429 (fold_builtin_bswap): Likewise.
23430 (fold_builtin_logarithm): Use signop.
23431 (fold_builtin_pow): Likewise.
23432 (fold_builtin_memory_op): Use wide-int interfaces.
23433 (fold_builtin_object_size): Likewise.
23434 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23435 nb_iterations_estimate.
23436 (record_niter_bound): Use wide-int interfaces.
23437 (get_estimated_loop_iterations_int): Likewise.
23438 (get_estimated_loop_iterations): Likewise.
23439 (get_max_loop_iterations): Likewise.
23440 * cfgloop.h: Include wide-int.h.
23441 (struct nb_iter_bound): Change bound to widest_int.
23442 (struct loop): Change nb_iterations_upper_bound and
23443 nb_iterations_estimate to widest_int.
23444 (record_niter_bound): Switch to use widest_int.
23445 (get_estimated_loop_iterations): Likewise.
23446 (get_max_loop_iterations): Likewise.
23447 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23448 update for wide-int.
23449 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23450 * combine.c (try_combine): Likewise.
23451 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23452 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23454 (aarch64_float_const_representable_p): Likewise.
23455 * config/arc/arc.c: Include wide-int.h.
23456 (arc_can_use_doloop_p): Use wide-int interfaces.
23457 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23458 (vfp3_const_double_index): Likewise.
23459 * config/avr/avr.c (avr_out_round): Likewise.
23460 (avr_fold_builtin): Likewise.
23461 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23462 (bfin_can_use_doloop_p): Likewise.
23463 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23464 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23465 * config/i386/i386.c: Include wide-int.h.
23466 (ix86_data_alignment): Use wide-int interfaces.
23467 (ix86_local_alignment): Likewise.
23468 (ix86_emit_swsqrtsf): Update real_from_integer.
23469 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23470 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23471 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23472 (zero_constant): Likewise.
23473 (input_operand): Likewise.
23474 (splat_input_operand): Likewise.
23475 (non_logical_cint_operand): Change const_double to const_wide_int.
23476 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23477 (easy_altivec_constant): Remove comment.
23478 (paired_expand_vector_init): Use CONSTANT_P.
23479 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23480 (rs6000_emit_move): Update checks.
23481 (rs6000_aggregate_candidate): Use wide-int interfaces.
23482 (rs6000_expand_ternop_builtin): Likewise.
23483 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23484 (rs6000_assemble_integer): Likewise.
23485 (rs6000_hash_constant): Likewise.
23486 (output_toc): Likewise.
23487 (rs6000_rtx_costs): Likewise.
23488 (rs6000_emit_swrsqrt); Update call to real_from_integer.
23489 * config/rs6000/rs6000-c.c: Include wide-int.h.
23490 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23491 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23492 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23493 Handle CONST_WIDE_INT.
23494 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23495 Use tree_fits_uhwi_p.
23496 * config/sparc/sparc.c: Include wide-int.h.
23497 (sparc_fold_builtin): Use wide-int interfaces.
23498 * config/vax/vax.c: Include wide-int.h.
23499 (vax_float_literal): Use real_from_integer.
23500 * coretypes.h (struct hwivec_def): New.
23502 (const_hwivec): New.
23503 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23504 (equiv_constant): Handle CONST_WIDE_INT.
23505 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23506 (cselib_hash_rtx): Handle CONST_WIDE_INT.
23507 * dbxout.c (stabstr_U): Use wide-int interfaces.
23508 (dbxout_type): Update to use cst_fits_shwi_p.
23509 * defaults.h (LOG2_BITS_PER_UNIT): Define.
23510 (TARGET_SUPPORTS_WIDE_INT): Add default.
23511 * dfp.c: Include wide-int.h.
23512 (decimal_real_to_integer2): Use wide-int interfaces and rename to
23513 decimal_real_to_integer.
23514 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23515 decimal_real_to_integer.
23516 * doc/generic.texi (Constant expressions): Update for wide_int.
23517 * doc/rtl.texi (const_double): Likewise.
23518 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23519 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23520 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23521 (REAL_VALUE_FROM_INT): Remove.
23522 (TARGET_SUPPORTS_WIDE_INT): New.
23523 * doc/tm.texi: Regenerate.
23524 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23525 * double-int.h: Include wide-int.h.
23526 (struct wi::int_traits): New.
23527 * dwarf2out.c (get_full_len): New.
23528 (dw_val_equal_p): Add case dw_val_class_wide_int.
23529 (size_of_loc_descr): Likewise.
23530 (output_loc_operands): Likewise.
23531 (insert_double): Remove.
23532 (insert_wide_int): New.
23533 (add_AT_wide): New.
23534 (print_die): Add case dw_val_class_wide_int.
23535 (attr_checksum): Likewise.
23536 (attr_checksum_ordered): Likewise.
23537 (same_dw_val_p): Likewise.
23538 (size_of_die): Likewise.
23539 (value_format): Likewise.
23540 (output_die): Likewise.
23541 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23543 (clz_loc_descriptor): Use wide-int interfaces.
23544 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
23545 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
23546 (round_up_to_align): Use wide-int interfaces.
23547 (field_byte_offset): Likewise.
23548 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
23549 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
23550 CONST_DOUBLE handling. Use wide-int interfaces.
23551 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
23552 (gen_enumeration_type_die): Use add_AT_wide.
23553 (hash_loc_operands): Add case dw_val_class_wide_int.
23554 (compare_loc_operands): Likewise.
23555 * dwarf2out.h: Include wide-int.h.
23556 (wide_int_ptr): New.
23557 (enum dw_val_class): Add dw_val_class_wide_int.
23558 (struct dw_val_struct): Add val_wide.
23559 * emit-rtl.c (const_wide_int_htab): New.
23560 (const_wide_int_htab_hash): New.
23561 (const_wide_int_htab_eq): New.
23562 (lookup_const_wide_int): New.
23563 (const_double_htab_hash): Use wide-int interfaces.
23564 (const_double_htab_eq): Likewise.
23565 (rtx_to_double_int): Conditionally compile for wide-int.
23566 (immed_double_int_const): Rename to immed_wide_int_const and
23567 update for wide-int.
23568 (immed_double_const): Conditionally compile for wide-int.
23569 (init_emit_once): Use wide-int interfaces.
23570 * explow.c (plus_constant): Likewise.
23571 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
23572 (lshift_value): Use wide-int interfaces.
23573 (expand_mult): Likewise.
23574 (choose_multiplier): Likewise.
23575 (expand_smod_pow2): Likewise.
23576 (make_tree): Likewise.
23577 * expr.c (convert_modes): Consolidate handling of constants.
23578 Use wide-int interfaces.
23579 (emit_group_load_1): Add note.
23580 (store_expr): Update comment.
23581 (get_inner_reference): Use wide-int interfaces.
23582 (expand_constructor): Update comment.
23583 (expand_expr_real_2): Use wide-int interfaces.
23584 (expand_expr_real_1): Likewise.
23585 (reduce_to_bit_field_precision): Likewise.
23586 (const_vector_from_tree): Likewise.
23587 * final.c: Include wide-int-print.h.
23588 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
23589 * fixed-value.c: Include wide-int.h.
23590 (fixed_from_string): Use wide-int interfaces.
23591 (fixed_to_decimal): Likewise.
23592 (fixed_convert_from_real): Likewise.
23593 (real_convert_from_fixed): Likewise.
23594 * fold-const.h (mem_ref_offset): Return an offset_int.
23595 (div_if_zero_remainder): Remove code parameter.
23596 * fold-const.c (div_if_zero_remainder): Remove code parameter.
23597 Use wide-int interfaces.
23598 (may_negate_without_overflow_p): Use wide-int interfaces.
23599 (negate_expr_p): Likewise.
23600 (fold_negate_expr): Likewise.
23601 (int_const_binop_1): Likewise.
23602 (const_binop): Likewise.
23603 (fold_convert_const_int_from_int): Likewise.
23604 (fold_convert_const_int_from_real): Likewise.
23605 (fold_convert_const_int_from_fixed): Likewise.
23606 (fold_convert_const_fixed_from_int): Likewise.
23607 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
23608 (sign_bit_p): Use wide-int interfaces.
23609 (make_range_step): Likewise.
23610 (build_range_check): Likewise. Pass an integer of the correct type
23611 instead of using integer_one_node.
23612 (range_predecessor): Pass an integer of the correct type instead
23613 of using integer_one_node.
23614 (range_successor): Likewise.
23615 (merge_ranges): Likewise.
23616 (unextend): Use wide-int interfaces.
23617 (extract_muldiv_1): Likewise.
23618 (fold_div_compare): Likewise.
23619 (fold_single_bit_test): Likewise.
23620 (fold_sign_changed_comparison): Likewise.
23621 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23622 (fold_plusminus_mult_expr): Use wide-int interfaces.
23623 (native_encode_int): Likewise.
23624 (native_interpret_int): Likewise.
23625 (fold_unary_loc): Likewise.
23626 (pointer_may_wrap_p): Likewise.
23627 (size_low_cst): Likewise.
23628 (mask_with_tz): Likewise.
23629 (fold_binary_loc): Likewise.
23630 (fold_ternary_loc): Likewise.
23631 (multiple_of_p): Likewise.
23632 (tree_call_nonnegative_warnv_p): Update calls to
23633 tree_int_cst_min_precision and real_from_integer.
23634 (fold_negate_const): Use wide-int interfaces.
23635 (fold_abs_const): Likewise.
23636 (fold_relational_const): Use tree_int_cst_lt.
23637 (round_up_loc): Use wide-int interfaces.
23638 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23639 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23640 * gengtype.c: Remove include of double-int.h.
23641 (do_typedef): Use wide-int interfaces.
23642 (open_base_files): Add wide-int.h.
23643 (main): Add offset_int and widest_int typedefs.
23644 * gengtype-lex.l: Handle "^".
23645 (CXX_KEYWORD): Add "static".
23646 * gengtype-parse.c (require3): New.
23647 (require_template_declaration): Handle constant template arguments
23648 and nested templates.
23649 * gengtype-state.c: Don't include "double-int.h".
23650 * genpreds.c (write_one_predicate_function): Update comment.
23651 (write_tm_constrs_h): Add check for hval and lval use in
23653 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23654 (add_to_sequence): Likewise.
23655 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23656 and const_double_operand.
23657 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23659 * gimple-fold.c (get_base_constructor): Likewise.
23660 (fold_array_ctor_reference): Likewise.
23661 (fold_nonarray_ctor_reference): Likewise.
23662 (fold_const_aggregate_ref_1): Likewise.
23663 (gimple_val_nonnegative_real_p): Likewise.
23664 (gimple_fold_indirect_ref): Likewise.
23665 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23666 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23667 (struct slsr_cand_d): Change index to be widest_int.
23668 (struct incr_info_d): Change incr to be widest_int.
23669 (alloc_cand_and_find_basis): Use wide-int interfaces.
23670 (slsr_process_phi): Likewise.
23671 (backtrace_base_for_ref): Likewise. Return a widest_int.
23672 (restructure_reference): Take a widest_int instead of a double_int.
23673 (slsr_process_ref): Use wide-int interfaces.
23674 (create_mul_ssa_cand): Likewise.
23675 (create_mul_imm_cand): Likewise.
23676 (create_add_ssa_cand): Likewise.
23677 (create_add_imm_cand): Take a widest_int instead of a double_int.
23678 (slsr_process_add): Use wide-int interfaces.
23679 (slsr_process_cast): Likewise.
23680 (slsr_process_copy): Likewise.
23681 (dump_candidate): Likewise.
23682 (dump_incr_vec): Likewise.
23683 (replace_ref): Likewise.
23684 (cand_increment): Likewise. Return a widest_int.
23685 (cand_abs_increment): Likewise.
23686 (replace_mult_candidate): Take a widest_int instead of a double_int.
23687 (replace_unconditional_candidate): Use wide-int interfaces.
23688 (incr_vec_index): Take a widest_int instead of a double_int.
23689 (create_add_on_incoming_edge): Likewise.
23690 (create_phi_basis): Use wide-int interfaces.
23691 (replace_conditional_candidate): Likewise.
23692 (record_increment): Take a widest_int instead of a double_int.
23693 (record_phi_increments): Use wide-int interfaces.
23694 (phi_incr_cost): Take a widest_int instead of a double_int.
23695 (lowest_cost_path): Likewise.
23696 (total_savings): Likewise.
23697 (analyze_increments): Use wide-int interfaces.
23698 (ncd_with_phi): Take a widest_int instead of a double_int.
23699 (ncd_of_cand_and_phis): Likewise.
23700 (nearest_common_dominator_for_cands): Likewise.
23701 (insert_initializers): Use wide-int interfaces.
23702 (all_phi_incrs_profitable): Likewise.
23703 (replace_one_candidate): Likewise.
23704 (replace_profitable_candidates): Likewise.
23705 * godump.c: Include wide-int-print.h.
23706 (go_output_typedef): Use wide-int interfaces.
23707 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23708 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23709 (build_loop_iteration_domains): Likewise.
23710 * hooks.h: Include wide-int.h rather than double-int.h.
23711 (hook_bool_dint_dint_uint_bool_true): Delete.
23712 (hook_bool_wint_wint_uint_bool_true): Declare.
23713 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23714 (hook_bool_wint_wint_uint_bool_true): New.
23715 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23717 (ubsan_expand_si_overflow_mul_check): Likewise.
23718 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23719 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23720 (get_ancestor_addr_info): Likewise.
23721 (ipa_modify_call_arguments): Likewise.
23722 * loop-doloop.c (doloop_modify): Likewise.
23723 (doloop_optimize): Likewise.
23724 * loop-iv.c (iv_number_of_iterations): Likewise.
23725 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23726 (unroll_loop_constant_iterations): Likewise.
23727 (decide_unroll_runtime_iterations): Likewise.
23728 (unroll_loop_runtime_iterations): Likewise.
23729 (decide_peel_simple): Likewise.
23730 (decide_unroll_stupid): Likewise.
23731 * lto-streamer-in.c (streamer_read_wi): Add.
23732 (input_cfg): Use wide-int interfaces.
23733 (lto_input_tree_1): Likewise.
23734 * lto-streamer-out.c (streamer_write_wi): Add.
23735 (hash_tree): Use wide-int interfaces.
23736 (output_cfg): Likewise.
23737 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23738 (GTFILES): Add wide-int.h and signop.h.
23739 (TAGS): Look for .cc files too.
23740 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23741 * optabs.c (expand_subword_shift): Likewise.
23742 (expand_doubleword_shift): Likewise.
23743 (expand_absneg_bit): Likewise.
23744 (expand_copysign_absneg): Likewise.
23745 (expand_copysign_bit): Likewise.
23746 * postreload.c (reload_cse_simplify_set): Likewise.
23747 * predict.c (predict_iv_comparison): Likewise.
23748 * pretty-print.h: Include wide-int-print.h.
23750 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23751 * print-tree.c: Include wide-int-print.h.
23752 (print_node_brief): Use wide-int interfaces.
23753 (print_node): Likewise.
23754 * read-rtl.c (validate_const_wide_int): New.
23755 (read_rtx_code): Add CONST_WIDE_INT case.
23756 * real.c: Include wide-int.h.
23757 (real_to_integer2): Delete.
23758 (real_to_integer): New function, returning a wide_int.
23759 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23760 (ten_to_ptwo): Update call to real_from_integer.
23761 (real_digit): Likewise.
23762 * real.h: Include signop.h, wide-int.h and insn-modes.h.
23763 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23764 (REAL_VALUE_TO_INT): Delete.
23765 (real_to_integer): Declare a wide-int form.
23766 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23767 * recog.c (const_int_operand): Improve comment.
23768 (const_scalar_int_operand): New.
23769 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23770 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23771 (split_double): Likewise.
23772 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23773 (rtx_size): Likewise.
23774 (rtx_alloc_stat_v): New.
23775 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23776 (cwi_output_hex): New.
23777 (iterative_hash_rtx): Handle CONST_WIDE_INT.
23778 (cwi_check_failed_bounds): New.
23779 * rtl.def (CONST_WIDE_INT): New.
23780 * rtl.h: Include <utility> and wide-int.h.
23781 (struct hwivec_def): New.
23782 (CWI_GET_NUM_ELEM): New.
23783 (CWI_PUT_NUM_ELEM): New.
23784 (struct rtx_def): Add num_elem and hwiv.
23785 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23786 (CASE_CONST_UNIQUE): Likewise.
23787 (CASE_CONST_ANY): Likewise.
23788 (CONST_SCALAR_INT_P): Likewise.
23789 (CONST_WIDE_INT_P): New.
23791 (HWIVEC_CHECK): New.
23792 (cwi_check_failed_bounds): New.
23794 (HWIVEC_CHECK): New.
23795 (CONST_WIDE_INT_VEC) New.
23796 (CONST_WIDE_INT_NUNITS) New.
23797 (CONST_WIDE_INT_ELT) New.
23798 (rtx_mode_t): New type.
23799 (wi::int_traits <rtx_mode_t>): New.
23801 (wi::min_value): New.
23802 (wi::max_value): New.
23804 (const_wide_int_alloc): New.
23805 (immed_wide_int_const): New.
23806 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23807 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23808 * signop.h: New file.
23809 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23810 (simplify_const_unary_operation): Use wide-int interfaces.
23811 (simplify_binary_operation_1): Likewise.
23812 (simplify_const_binary_operation): Likewise.
23813 (simplify_const_relational_operation): Likewise.
23814 (simplify_immed_subreg): Likewise.
23815 * stmt.c (expand_case): Likewise.
23816 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23817 signop rather than a bool.
23818 * stor-layout.c (layout_type): Use wide-int interfaces.
23819 (initialize_sizetypes): Update calls to
23820 set_min_and_max_values_for_integral_type.
23821 (set_min_and_max_values_for_integral_type): Take a signop rather
23822 than a bool. Use wide-int interfaces.
23823 (fixup_signed_type): Update accordingly. Remove
23824 HOST_BITS_PER_DOUBLE_INT limit.
23825 (fixup_unsigned_type): Likewise.
23826 * system.h (STATIC_CONSTANT_P): New.
23827 (STATIC_ASSERT): New.
23828 * target.def (can_use_doloop_p): Take widest_ints rather than
23830 * target.h: Include wide-int.h rather than double-int.h.
23831 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23833 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23834 rather than INT_CST_LT_UNSIGNED.
23835 (can_use_doloop_if_innermost): Take widest_ints rather than
23837 * tree-affine.c: Include wide-int-print.h.
23838 (double_int_ext_for_comb): Delete.
23839 (wide_int_ext_for_comb): New.
23840 (aff_combination_zero): Use wide-int interfaces.
23841 (aff_combination_const): Take a widest_int instead of a double_int.
23842 (aff_combination_elt): Use wide-int interfaces.
23843 (aff_combination_scale): Take a widest_int instead of a double_int.
23844 (aff_combination_add_elt): Likewise.
23845 (aff_combination_add_cst): Likewise.
23846 (aff_combination_add): Use wide-int interfaces.
23847 (aff_combination_convert): Likewise.
23848 (tree_to_aff_combination): Likewise.
23849 (add_elt_to_tree): Take a widest_int instead of a double_int.
23850 (aff_combination_to_tree): Use wide-int interfaces.
23851 (aff_combination_remove_elt): Likewise.
23852 (aff_combination_add_product): Take a widest_int instead of
23854 (aff_combination_mult): Use wide-int interfaces.
23855 (aff_combination_expand): Likewise.
23856 (double_int_constant_multiple_p): Delete.
23857 (wide_int_constant_multiple_p): New.
23858 (aff_combination_constant_multiple_p): Take a widest_int pointer
23859 instead of a double_int pointer.
23860 (print_aff): Use wide-int interfaces.
23861 (get_inner_reference_aff): Take a widest_int pointer
23862 instead of a double_int pointer.
23863 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23864 * tree-affine.h: Include wide-int.h.
23865 (struct aff_comb_elt): Change type of coef to widest_int.
23866 (struct affine_tree_combination): Change type of offset to widest_int.
23867 (double_int_ext_for_comb): Delete.
23868 (wide_int_ext_for_comb): New.
23869 (aff_combination_const): Use widest_int instead of double_int.
23870 (aff_combination_scale): Likewise.
23871 (aff_combination_add_elt): Likewise.
23872 (aff_combination_constant_multiple_p): Likewise.
23873 (get_inner_reference_aff): Likewise.
23874 (aff_comb_cannot_overlap_p): Likewise.
23875 (aff_combination_zero_p): Use wide-int interfaces.
23876 * tree.c: Include tree.h.
23877 (init_ttree): Use make_int_cst.
23878 (tree_code_size): Removed code for INTEGER_CST case.
23879 (tree_size): Add INTEGER_CST case.
23880 (make_node_stat): Update comment.
23881 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23882 (build_int_cst_type): Use wide-int interfaces.
23883 (double_int_to_tree): Likewise.
23884 (double_int_fits_to_tree_p): Delete.
23885 (force_fit_type_double): Delete.
23886 (force_fit_type): New.
23887 (int_cst_hash_hash): Use wide-int interfaces.
23888 (int_cst_hash_eq): Likewise.
23889 (build_int_cst_wide): Delete.
23890 (wide_int_to_tree): New.
23891 (cache_integer_cst): Use wide-int interfaces.
23892 (build_low_bits_mask): Likewise.
23893 (cst_and_fits_in_hwi): Likewise.
23894 (real_value_from_int_cst): Likewise.
23895 (make_int_cst_stat): New.
23896 (integer_zerop): Use wide_int interfaces.
23897 (integer_onep): Likewise.
23898 (integer_all_onesp): Likewise.
23899 (integer_pow2p): Likewise.
23900 (integer_nonzerop): Likewise.
23901 (tree_log2): Likewise.
23902 (tree_floor_log2): Likewise.
23903 (tree_ctz): Likewise.
23904 (int_size_in_bytes): Likewise.
23905 (mem_ref_offset): Return an offset_int rather than a double_int.
23906 (build_type_attribute_qual_variant): Use wide_int interfaces.
23907 (type_hash_eq): Likewise
23908 (tree_int_cst_equal): Likewise.
23909 (tree_int_cst_lt): Delete.
23910 (tree_int_cst_compare): Likewise.
23911 (tree_fits_shwi_p): Use wide_int interfaces.
23912 (tree_fits_uhwi_p): Likewise.
23913 (tree_int_cst_sign_bit): Likewise.
23914 (tree_int_cst_sgn): Likewise.
23915 (tree_int_cst_min_precision): Take a signop rather than a bool.
23916 (simple_cst_equal): Use wide_int interfaces.
23917 (compare_tree_int): Likewise.
23918 (iterative_hash_expr): Likewise.
23919 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
23921 (get_type_static_bounds): Use wide_int interfaces.
23922 (tree_int_cst_elt_check_failed): New.
23923 (build_common_tree_nodes): Reordered to set prec before filling in
23925 (int_cst_value): Check cst_and_fits_in_hwi.
23926 (widest_int_cst_value): Use wide_int interfaces.
23927 (upper_bound_in_type): Likewise.
23928 (lower_bound_in_type): Likewise.
23929 (num_ending_zeros): Likewise.
23930 (drop_tree_overflow): Likewise.
23931 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23932 (gen_conditions_for_pow_cst_base): Likewise.
23933 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23934 (group_case_labels_stmt): Use wide-int interfaces.
23935 (verify_gimple_assign_binary): Likewise.
23936 (print_loop): Likewise.
23937 * tree-chrec.c (tree_fold_binomial): Likewise.
23938 * tree-core.h (struct tree_base): Add int_length.
23939 (struct tree_int_cst): Change rep of value.
23940 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23941 (dr_may_alias_p): Likewise.
23942 (max_stmt_executions_tree): Likewise.
23943 * tree.def (INTEGER_CST): Update comment.
23944 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23945 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23946 * tree-dump.c: Include wide-int.h and wide-int-print.h.
23947 (dequeue_and_dump): Use wide-int interfaces.
23948 * tree.h: Include wide-int.h.
23949 (NULL_TREE): Moved to earlier loc in file.
23950 (TREE_INT_CST_ELT_CHECK): New.
23951 (tree_int_cst_elt_check_failed): New.
23953 (TREE_INT_CST): Delete.
23954 (TREE_INT_CST_LOW): Use wide-int interfaces.
23955 (TREE_INT_CST_HIGH): Delete.
23956 (TREE_INT_CST_NUNITS): New.
23957 (TREE_INT_CST_EXT_NUNITS): Likewise.
23958 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23959 (TREE_INT_CST_ELT): Likewise.
23960 (INT_CST_LT): Delete.
23961 (tree_int_cst_elt_check): New (two forms).
23962 (type_code_size): Update comment.
23963 (make_int_cst_stat, make_int_cst): New.
23964 (tree_to_double_int): Delete.
23965 (double_int_fits_to_tree_p): Delete.
23966 (force_fit_type_double): Delete.
23967 (build_int_cstu): Replace with out-of-line function.
23968 (build_int_cst_wide): Delete.
23969 (tree_int_cst_lt): Define inline.
23970 (tree_int_cst_le): New.
23971 (tree_int_cst_compare): Define inline.
23972 (tree_int_cst_min_precision): Take a signop rather than a bool.
23973 (wi::int_traits <const_tree>): New.
23974 (wi::int_traits <tree>): New.
23975 (wi::extended_tree): New.
23976 (wi::int_traits <wi::extended_tree>): New.
23977 (wi::to_widest): New.
23978 (wi::to_offset): New.
23979 (wi::fits_to_tree_p): New.
23980 (wi::min_value): New.
23981 (wi::max_value): New.
23982 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23983 (copy_tree_body_r): Likewise.
23984 * tree-object-size.c (compute_object_offset): Likewise.
23985 (addr_object_size): Likewise.
23986 * tree-predcom.c: Include wide-int-print.h.
23987 (struct dref_d): Change type of offset to widest_int.
23988 (dump_dref): Call wide-int printer.
23989 (aff_combination_dr_offset): Use wide-int interfaces.
23990 (determine_offset): Take a widest_int pointer rather than a
23991 double_int pointer.
23992 (split_data_refs_to_components): Use wide-int interfaces.
23993 (suitable_component_p): Likewise.
23994 (order_drefs): Likewise.
23995 (add_ref_to_chain): Likewise.
23996 (valid_initializer_p): Likewise.
23997 (determine_roots_comp): Likewise.
23998 * tree-pretty-print.c: Include wide-int-print.h.
23999 (dump_generic_node): Use wide-int interfaces.
24000 * tree-sra.c (sra_ipa_modify_expr): Likewise.
24001 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24002 (move_fixed_address_to_symbol): Likewise.
24003 (move_hint_to_base): Likewise.
24004 (move_pointer_to_base): Likewise.
24005 (move_variant_to_index): Likewise.
24006 (most_expensive_mult_to_index): Likewise.
24007 (addr_to_parts): Likewise.
24008 (copy_ref_info): Likewise.
24009 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24010 (indirect_refs_may_alias_p): Likewise.
24011 (stmt_kills_ref_p_1): Likewise.
24012 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24013 * tree-ssa-ccp.c: Update comment at top of file. Include
24015 (struct prop_value_d): Change type of mask to widest_int.
24016 (extend_mask): New function.
24017 (dump_lattice_value): Use wide-int interfaces.
24018 (get_default_value): Likewise.
24019 (set_constant_value): Likewise.
24020 (set_value_varying): Likewise.
24021 (valid_lattice_transition): Likewise.
24022 (set_lattice_value): Likewise.
24023 (value_to_double_int): Delete.
24024 (value_to_wide_int): New.
24025 (get_value_from_alignment): Use wide-int interfaces.
24026 (get_value_for_expr): Likewise.
24027 (do_dbg_cnt): Likewise.
24028 (ccp_finalize): Likewise.
24029 (ccp_lattice_meet): Likewise.
24030 (bit_value_unop_1): Use widest_ints rather than double_ints.
24031 (bit_value_binop_1): Likewise.
24032 (bit_value_unop): Use wide-int interfaces.
24033 (bit_value_binop): Likewise.
24034 (bit_value_assume_aligned): Likewise.
24035 (evaluate_stmt): Likewise.
24036 (ccp_fold_stmt): Likewise.
24037 (visit_cond_stmt): Likewise.
24038 (ccp_visit_stmt): Likewise.
24039 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24040 (constant_pointer_difference): Likewise.
24041 (associate_pointerplus): Likewise.
24042 (combine_conversions): Likewise.
24043 * tree-ssa-loop.h: Include wide-int.h.
24044 (struct tree_niter_desc): Change type of max to widest_int.
24045 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24046 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24047 (remove_redundant_iv_tests): Likewise.
24048 (canonicalize_loop_induction_variables): Likewise.
24049 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24050 (constant_multiple_of): Take a widest_int pointer instead of
24051 a double_int pointer.
24052 (get_computation_aff): Use wide-int interfaces.
24053 (ptr_difference_cost): Likewise.
24054 (difference_cost): Likewise.
24055 (get_loop_invariant_expr_id): Likewise.
24056 (get_computation_cost_at): Likewise.
24057 (iv_elimination_compare_lt): Likewise.
24058 (may_eliminate_iv): Likewise.
24059 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24060 instead of double_int.
24061 (max_loop_iterations): Likewise.
24062 (max_stmt_executions): Likewise.
24063 (estimated_stmt_executions): Likewise.
24064 * tree-ssa-loop-niter.c: Include wide-int-print.h.
24065 (split_to_var_and_offset): Use wide-int interfaces.
24066 (determine_value_range): Likewise.
24067 (bound_difference_of_offsetted_base): Likewise.
24068 (bounds_add): Take a widest_int instead of a double_int.
24069 (number_of_iterations_ne_max): Use wide-int interfaces.
24070 (number_of_iterations_ne): Likewise.
24071 (number_of_iterations_lt_to_ne): Likewise.
24072 (assert_loop_rolls_lt): Likewise.
24073 (number_of_iterations_lt): Likewise.
24074 (number_of_iterations_le): Likewise.
24075 (number_of_iterations_cond): Likewise.
24076 (number_of_iterations_exit): Likewise.
24077 (finite_loop_p): Likewise.
24078 (derive_constant_upper_bound_assign): Likewise.
24079 (derive_constant_upper_bound): Return a widest_int.
24080 (derive_constant_upper_bound_ops): Likewise.
24081 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24082 (record_estimate): Take a widest_int rather than a double_int.
24083 (record_nonwrapping_iv): Use wide-int interfaces.
24084 (double_int_cmp): Delete.
24085 (wide_int_cmp): New.
24086 (bound_index): Take a widest_int rather than a double_int.
24087 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24088 (maybe_lower_iteration_bound): Likewise.
24089 (estimate_numbers_of_iterations_loop): Likewise.
24090 (estimated_loop_iterations): Take a widest_int pointer than than
24091 a double_int pointer.
24092 (estimated_loop_iterations_int): Use wide-int interfaces.
24093 (max_loop_iterations): Take a widest_int pointer than than
24094 a double_int pointer.
24095 (max_loop_iterations_int): Use wide-int interfaces.
24096 (max_stmt_executions): Take a widest_int pointer than than
24097 a double_int pointer.
24098 (estimated_stmt_executions): Likewise.
24099 (n_of_executions_at_most): Use wide-int interfaces.
24100 (scev_probably_wraps_p): Likewise.
24101 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24102 to real_to_integer.
24103 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24105 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24106 double_ints. Adjust for trailing_wide_ints <3> representation.
24107 (set_nonzero_bits): Likewise.
24108 (get_range_info): Return wide_ints rather than double_ints.
24109 Adjust for trailing_wide_ints <3> representation.
24110 (get_nonzero_bits): Likewise.
24111 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24113 * tree-ssanames.h (struct range_info_def): Replace min, max and
24114 nonzero_bits with a trailing_wide_ints <3>.
24115 (set_range_info): Use wide_int_refs rather than double_ints.
24116 (set_nonzero_bits): Likewise.
24117 (get_range_info): Return wide_ints rather than double_ints.
24118 (get_nonzero_bits): Likewise.
24119 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24120 * tree-ssa-pre.c (phi_translate_1): Likewise.
24121 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24122 (acceptable_pow_call): Likewise.
24123 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24125 (vn_reference_fold_indirect): Likewise.
24126 (vn_reference_maybe_forwprop_address): Likewise.
24127 (valueize_refs_1): Likewise.
24128 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24129 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24130 tree_int_cst_lt and tree_int_cst_le.
24131 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24133 (streamer_alloc_tree): Likewise.
24134 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24135 (streamer_write_tree_header): Likewise.
24136 (streamer_write_integer_cst): Likewise.
24137 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24138 (build_constructors): Likewise.
24139 (array_value_type): Likewise.
24140 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24141 (vect_check_gather): Likewise.
24142 * tree-vect-generic.c (build_replicated_const): Likewise.
24143 (expand_vector_divmod): Likewise.
24144 * tree-vect-loop.c (vect_transform_loop): Likewise.
24145 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24146 (vect_do_peeling_for_alignment): Likewise.
24147 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24148 * tree-vrp.c: Include wide-int.h.
24149 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24150 (extract_range_from_assert): Use wide-int interfaces.
24151 (vrp_int_const_binop): Likewise.
24152 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24153 double_int pointers.
24154 (ranges_from_anti_range): Use wide-int interfaces.
24155 (quad_int_cmp): Delete.
24156 (quad_int_pair_sort): Likewise.
24157 (extract_range_from_binary_expr_1): Use wide-int interfaces.
24158 (extract_range_from_unary_expr_1): Likewise.
24159 (adjust_range_with_scev): Likewise.
24160 (masked_increment): Take and return wide_ints rather than double_ints.
24161 (register_edge_assert_for_2): Use wide-int interfaces.
24162 (check_array_ref): Likewise.
24163 (search_for_addr_array): Likewise.
24164 (maybe_set_nonzero_bits): Likewise.
24165 (union_ranges): Pass an integer of the correct type instead of
24166 using integer_one_node.
24167 (intersect_ranges): Likewise.
24168 (simplify_truth_ops_using_ranges): Likewise.
24169 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24170 (range_fits_type_p): Likewise.
24171 (simplify_cond_using_ranges): Likewise. Take a signop rather than
24173 (simplify_conversion_using_ranges): Use wide-int interfaces.
24174 (simplify_float_conversion_using_ranges): Likewise.
24175 (vrp_finalize): Likewise.
24176 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24177 (gimple_stringops_transform): Likewise.
24178 * varasm.c (decode_addr_const): Likewise.
24179 (const_hash_1): Likewise.
24180 (const_rtx_hash_1): Likewise
24181 (output_constant): Likewise.
24182 (array_size_for_constructor): Likewise.
24183 (output_constructor_regular_field): Likewise.
24184 (output_constructor_bitfield): Likewise.
24185 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24186 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24188 * gencheck.c: Define BITS_PER_UNIT.
24189 * wide-int.cc: New.
24191 * wide-int-print.cc: New.
24192 * wide-int-print.h: New.
24194 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24196 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24198 2014-05-06 Richard Biener <rguenther@suse.de>
24200 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24201 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24202 (TODO_verify_all): Adjust.
24203 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24204 TODO_verify_stmts and TODO_verify_rtl_sharing.
24205 * bb-reorder.c: Likewise.
24206 * cfgexpand.c: Likewise.
24207 * cprop.c: Likewise.
24209 * function.c: Likewise.
24210 * fwprop.c: Likewise.
24211 * gcse.c: Likewise.
24212 * gimple-ssa-isolate-paths.c: Likewise.
24213 * gimple-ssa-strength-reduction.c: Likewise.
24214 * ipa-split.c: Likewise.
24215 * loop-init.c: Likewise.
24216 * loop-unroll.c: Likewise.
24217 * lower-subreg.c: Likewise.
24218 * modulo-sched.c: Likewise.
24219 * postreload-gcse.c: Likewise.
24220 * predict.c: Likewise.
24221 * recog.c: Likewise.
24222 * sched-rgn.c: Likewise.
24223 * store-motion.c: Likewise.
24224 * tracer.c: Likewise.
24225 * trans-mem.c: Likewise.
24226 * tree-call-cdce.c: Likewise.
24227 * tree-cfg.c: Likewise.
24228 * tree-cfgcleanup.c: Likewise.
24229 * tree-complex.c: Likewise.
24230 * tree-eh.c: Likewise.
24231 * tree-emutls.c: Likewise.
24232 * tree-if-conv.c: Likewise.
24233 * tree-into-ssa.c: Likewise.
24234 * tree-loop-distribution.c: Likewise.
24235 * tree-object-size.c: Likewise.
24236 * tree-parloops.c: Likewise.
24237 * tree-pass.h: Likewise.
24238 * tree-sra.c: Likewise.
24239 * tree-ssa-ccp.c: Likewise.
24240 * tree-ssa-copy.c: Likewise.
24241 * tree-ssa-copyrename.c: Likewise.
24242 * tree-ssa-dce.c: Likewise.
24243 * tree-ssa-dom.c: Likewise.
24244 * tree-ssa-dse.c: Likewise.
24245 * tree-ssa-forwprop.c: Likewise.
24246 * tree-ssa-ifcombine.c: Likewise.
24247 * tree-ssa-loop-ch.c: Likewise.
24248 * tree-ssa-loop-ivcanon.c: Likewise.
24249 * tree-ssa-loop.c: Likewise.
24250 * tree-ssa-math-opts.c: Likewise.
24251 * tree-ssa-phiopt.c: Likewise.
24252 * tree-ssa-phiprop.c: Likewise.
24253 * tree-ssa-pre.c: Likewise.
24254 * tree-ssa-reassoc.c: Likewise.
24255 * tree-ssa-sink.c: Likewise.
24256 * tree-ssa-strlen.c: Likewise.
24257 * tree-ssa-tail-merge.c: Likewise.
24258 * tree-ssa-uncprop.c: Likewise.
24259 * tree-switch-conversion.c: Likewise.
24260 * tree-tailcall.c: Likewise.
24261 * tree-vect-generic.c: Likewise.
24262 * tree-vectorizer.c: Likewise.
24263 * tree-vrp.c: Likewise.
24264 * tsan.c: Likewise.
24265 * var-tracking.c: Likewise.
24266 * bt-load.c: Likewise.
24267 * cfgcleanup.c: Likewise.
24268 * combine-stack-adj.c: Likewise.
24269 * combine.c: Likewise.
24270 * compare-elim.c: Likewise.
24271 * config/epiphany/resolve-sw-modes.c: Likewise.
24272 * config/i386/i386.c: Likewise.
24273 * config/mips/mips.c: Likewise.
24274 * config/s390/s390.c: Likewise.
24275 * config/sh/sh_treg_combine.cc: Likewise.
24276 * config/sparc/sparc.c: Likewise.
24279 * final.c: Likewise.
24280 * ifcvt.c: Likewise.
24281 * mode-switching.c: Likewise.
24282 * passes.c: Likewise.
24283 * postreload.c: Likewise.
24285 * reg-stack.c: Likewise.
24286 * regcprop.c: Likewise.
24287 * regrename.c: Likewise.
24290 2014-05-06 Richard Biener <rguenther@suse.de>
24292 PR middle-end/61070
24293 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24294 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24296 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
24299 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24301 2014-05-05 Radovan Obradovic <robradovic@mips.com>
24302 Tom de Vries <tom@codesourcery.com>
24304 * target.def (call_fusage_contains_non_callee_clobbers): New
24306 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24308 (@node Miscellaneous Register Hooks): New node.
24309 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24310 * doc/tm.texi: Regenerate.
24312 2014-05-05 Marek Polacek <polacek@redhat.com>
24315 * opts.c (common_handle_option): Call error_at instead of warning_at.
24317 2014-05-05 Richard Biener <rguenther@suse.de>
24319 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24320 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
24321 under the TODO_verify_il umbrella.
24323 2014-05-05 Richard Biener <rguenther@suse.de>
24325 * passes.c (execute_function_todo): Move TODO_verify_flow under
24326 the TODO_verify_ul umbrella.
24328 2014-05-05 Richard Biener <rguenther@suse.de>
24330 PR middle-end/61010
24331 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24332 X & CST away from a CST that is the mask of a mode.
24334 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24336 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24337 int argument to enum machine_mode.
24338 (picochip_class_max_nregs): Ditto.
24339 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24340 (picochip_class_max_nregs): Ditto.
24342 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24344 * target.def: Add new target hook.
24345 * doc/tm.texi: Regenerate.
24346 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24347 * targhooks.c (default_keep_leaf_when_profiled): New function.
24349 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24350 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24352 2014-05-05 Bin Cheng <bin.cheng@arm.com>
24354 PR tree-optimization/60363
24355 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24356 (copy_phi_args): New parameters. Call get_value_locus_in_path.
24357 (update_destination_phis): New parameter.
24358 (create_edge_and_update_destination_phis): Ditto.
24359 (ssa_fix_duplicate_block_edges): Pass new arguments.
24360 (thread_single_edge): Ditto.
24362 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
24364 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24365 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24366 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24367 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24368 Use RS6000_BTM_HARD_FLOAT.
24369 (BU_MISC_2): Likewise.
24370 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24371 RS6000_BTM_HARD_FLOAT.
24372 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24373 is explicitly used.
24374 (rs6000_invalid_builtin): Add hard floating builtin support.
24375 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24376 hard float builtins.
24377 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24379 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24381 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24382 Add missing function* argument.
24384 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24386 * lra-constraints.c (valid_address_p): Move earlier in file.
24387 Add a constraint argument to the address_info version.
24388 (satisfies_memory_constraint_p): New function.
24389 (satisfies_address_constraint_p): Likewise.
24390 (process_alt_operands, curr_insn_transform): Use them.
24391 (process_address): Pass the constraint to valid_address_p when
24392 checking address operands.
24394 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
24396 * config/mips/mips.c (mips_isa_rev): New variable.
24397 (mips_set_architecture): Set it.
24398 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24400 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24401 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24402 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24403 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24404 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24405 conditions in terms of mips_isa_rev.
24406 (mips_isa_rev): Declare.
24408 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24410 * config/sh/sh-mem.cc: Use tabs instead of spaces.
24411 (prob_unlikely, prob_likely): Make variables const.
24413 2014-05-03 Denis Chertykov <chertykov@gmail.com>
24415 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24417 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24419 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24421 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24423 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24424 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24425 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24427 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24428 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24430 Replace usage of ROUND_REG with sh_round_reg.
24431 Use CEIL instead of ROUND_ADVANCE.
24433 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24436 * config/sh/sh.c: Include stdlib headers before everything else.
24438 2014-05-02 Jakub Jelinek <jakub@redhat.com>
24440 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24441 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24442 (gimplify_adjust_omp_clauses): Simd region is never
24443 directly nested in combined parallel. Instead, for linear
24444 with copyin/copyout, if in combined for simd loop, make decl
24445 firstprivate/lastprivate on OMP_FOR.
24446 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24447 expand_omp_for_static_chunk): When setting endvar, also set
24448 fd->loop.v to the same value.
24450 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24452 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24454 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
24456 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24459 2014-05-02 Marek Polacek <polacek@redhat.com>
24461 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24463 2014-05-02 Kito Cheng <kito@0xlab.org>
24465 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24466 to a C expression marco.
24467 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24468 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24469 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24470 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24471 HONOR_REG_ALLOC_ORDER.
24472 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24474 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24476 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24478 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24480 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24482 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24484 * tree-if-conv.c (is_cond_scalar_reduction): New function.
24485 (convert_scalar_cond_reduction): Likewise.
24486 (predicate_scalar_phi): Add recognition and transformation
24487 of simple conditioanl reduction to be vectorizable.
24489 2014-05-01 Marek Polacek <polacek@redhat.com>
24492 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24494 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
24496 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24497 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24498 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24499 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24500 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24501 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24502 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24503 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24505 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
24507 * config/arc/arc.opt (mlra): Move comment above option name
24508 to avoid mis-parsing as language options.
24510 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24512 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24513 * config/sol2.h: ... here.
24514 * config/sol2-10.h: Remove.
24516 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24517 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24518 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24519 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24520 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24521 * config/sol2.h: ... here.
24522 (SECTION_NAME_FORMAT): Don't redefine.
24523 (STARTFILE_ARCH32_SPEC): Rename to ...
24524 (STARTFILE_ARCH_SPEC): ... this.
24525 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24526 * config/sparc/sol2.h: ... here.
24527 (SECTION_NAME_FORMAT): Don't undef.
24528 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24529 (SUBTARGET_EXTRA_SPECS): Remove.
24530 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24532 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24533 (MD_STARTFILE_PREFIX): Remove.
24534 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24535 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24536 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24537 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24538 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24539 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24540 * config/i386/sol2.h: ... here.
24541 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24542 * config/i386/sol2-bi.h: Remove.
24543 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24544 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24546 * config/i386/t-sol2-64: Rename to ...
24547 * config/i386/t-sol2: ... this.
24548 * config/sparc/t-sol2-64: Rename to ...
24549 * config/sparc/t-sol2: ... this.
24551 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24552 sol2_tm_file_head, sol2_tm_file_tail.
24553 Include ${cpu_type}/sol2.h before sol2.h.
24555 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24556 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24557 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24558 Reflect i386/t-sol2-64 renaming.
24559 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24560 Reflect sparc/t-sol2-64 renaming.
24562 2014-04-30 Richard Biener <rguenther@suse.de>
24564 * passes.c (execute_function_todo): Move TODO_verify_stmts
24565 and TODO_verify_ssa under the TODO_verify_il umbrella.
24566 * tree-ssa.h (verify_ssa): Adjust prototype.
24567 * tree-ssa.c (verify_ssa): Add parameter to tell whether
24568 we should verify SSA operands.
24569 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24570 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24571 whether we should verify whether not throwing stmts have EH info.
24572 * graphite-scop-detection.c (create_sese_edges): Adjust.
24573 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24574 * tree-eh.c (lower_try_finally_switch): Do not add the
24575 default case label twice.
24577 2014-04-30 Marek Polacek <polacek@redhat.com>
24579 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24580 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24581 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24582 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24584 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
24586 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24587 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24588 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24589 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24590 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24591 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24592 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24593 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24595 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24597 * tree-cfg.c (dump_function_to_file): Dump the return type of
24598 functions, in a line to itself before the function body, mimicking
24599 the layout of a C function.
24601 2014-04-29 Jakub Jelinek <jakub@redhat.com>
24603 PR tree-optimization/60971
24604 * tree-tailcall.c (process_assignment): Reject conversions which
24607 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
24609 * calls.c (initialize_argument_information): Always treat
24610 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24611 (expand_call): Likewise.
24612 (emit_library_call_calue_1): Likewise.
24613 * expr.c (PUSH_ARGS_REVERSED): Do not define.
24614 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24617 2014-04-29 Nick Clifton <nickc@redhat.com>
24619 * config/msp430/msp430.md (umulsidi): Fix typo.
24620 (mulhisi3): Enable even inside interrupt handlers.
24621 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24622 bigger return address pushed in large mode.
24624 2014-04-29 Nick Clifton <nickc@redhat.com>
24626 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24627 (arc_init_reg_tables): Use a machine_mode enum to iterate over
24629 * config/m32r/m32r.c (init_reg_tables): Likewise.
24630 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24631 enum to hold the modes.
24633 2014-04-29 Richard Biener <rguenther@suse.de>
24635 * dominance.c (free_dominance_info): Add overload with
24636 function parameter.
24637 (dom_info_state): Likewise.
24638 (dom_info_available_p): Likewise.
24639 * basic-block.h (free_dominance_info, dom_info_state,
24640 dom_info_available_p): Declare overloads.
24641 * passes.c (execute_function_todo): Verify that verifiers
24642 don't change dominator info state. Drop dominator info
24643 for IPA pass invocations.
24644 * cgraph.c (release_function_body): Restore asserts that
24645 dominator information is released.
24647 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
24649 * doc/invoke.texi: Fix typo.
24650 * tree-vrp.c: Fix typos.
24651 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24653 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24655 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24657 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24659 * config/aarch64/aarch64-builtins.c
24660 (aarch64_types_storestruct_lane_qualifiers): New.
24661 (TYPES_STORESTRUCT_LANE): Likewise.
24662 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24663 (st3_lane): Likewise.
24664 (st4_lane): Likewise.
24665 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24666 (vec_store_lanesci_lane<mode>): Likewise.
24667 (vec_store_lanesxi_lane<mode>): Likewise.
24668 (aarch64_st2_lane<VQ:mode>): Likewise.
24669 (aarch64_st3_lane<VQ:mode>): Likewise.
24670 (aarch64_st4_lane<VQ:mode>): Likewise.
24671 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24672 * config/aarch64/arm_neon.h
24673 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24674 use new macro arguments.
24675 (__ST3_LANE_FUNC): Likewise.
24676 (__ST4_LANE_FUNC): Likewise.
24677 * config/aarch64/iterators.md (V_TWO_ELEM): New.
24678 (V_THREE_ELEM): Likewise.
24679 (V_FOUR_ELEM): Likewise.
24681 2014-04-28 David Malcolm <dmalcolm@redhat.com>
24683 * doc/gimple.texi: Replace the description of the now-defunct
24684 union gimple_statement_d with a diagram showing the
24685 gimple_statement_base class hierarchy and its relationships to
24686 the GSS_ and GIMPLE_ enums.
24688 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
24690 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24691 * config/aarch64/aarch64.c
24692 (aarch64_cannot_change_mode_class): Weaken conditions.
24693 (aarch64_modes_tieable_p): New.
24694 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24696 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
24698 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24699 (loadsync_<mode>): Change mode.
24700 (load_quadpti, store_quadpti): New.
24701 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24702 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24704 2014-04-28 Martin Jambor <mjambor@suse.cz>
24706 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24707 same alias type as the original statement.
24708 (subreplacement_assignment_data): New type.
24709 (handle_unscalarized_data_in_subtree): New type of parameter,
24710 generate new memory accesses with same alias type as the original
24712 (load_assign_lhs_subreplacements): Likewise.
24713 (sra_modify_constructor_assign): Generate new memory accesses with
24714 same alias type as the original statement.
24716 2014-04-28 Richard Biener <rguenther@suse.de>
24718 * tree-pass.h (TODO_verify_il): Define.
24719 (TODO_verify_all): Complete properly.
24720 * passes.c (execute_function_todo): Move existing loop-closed
24721 SSA verification under TODO_verify_il.
24722 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24723 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24724 Fix tree sharing issue.
24726 2014-04-28 Richard Biener <rguenther@suse.de>
24728 PR middle-end/60092
24729 * builtins.def (DEF_C11_BUILTIN): Add.
24730 (BUILT_IN_ALIGNED_ALLOC): Likewise.
24731 * coretypes.h (enum function_class): Add function_c11_misc.
24732 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24733 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24734 (call_may_clobber_ref_p_1): Likewise.
24735 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24736 (mark_all_reaching_defs_necessary_1): Likewise.
24737 (propagate_necessity): Likewise.
24738 (eliminate_unnecessary_stmts): Likewise.
24739 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24741 2014-04-28 Richard Biener <rguenther@suse.de>
24743 * tree-vrp.c (vrp_var_may_overflow): Remove.
24744 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24745 with overflow immediately bump to one before that value and
24746 let iteration figure out overflow status.
24748 2014-04-28 Richard Biener <rguenther@suse.de>
24750 * configure.ac: Do valgrind header checks unconditionally.
24751 Add --enable-valgrind-annotations.
24752 * system.h: Guard valgrind header inclusion with
24753 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24754 * alloc-pool.c (pool_alloc, pool_free): Use
24755 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24756 to guard possibly dead code.
24757 * config.in: Regenerated.
24758 * configure: Likewise.
24760 2014-04-28 Jeff Law <law@redhat.com>
24762 PR tree-optimization/60902
24763 * tree-ssa-threadedge.c
24764 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24765 over real defs when invalidating outputs from statements that do not
24766 produce useful outputs for threading.
24768 2014-04-28 Richard Biener <rguenther@suse.de>
24770 PR tree-optimization/60979
24771 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24772 SCOPs that end in a block with a successor with abnormal
24775 2014-04-28 Richard Biener <rguenther@suse.de>
24777 * tree-pass.h (execute_pass_list): Adjust prototype.
24778 * passes.c (pass_manager::execute_early_local_passes): Adjust.
24779 (do_per_function): Change callback signature, push all actual
24780 work to the callbals.
24781 (do_per_function_toporder): Likewise.
24782 (execute_function_dump): Adjust.
24783 (execute_function_todo): Likewise.
24784 (clear_last_verified): Likewise.
24785 (verify_curr_properties): Likewise.
24786 (update_properties_after_pass): Likewise.
24787 (execute_pass_list_1): Split out from ...
24788 (execute_pass_list): ... here. Adjust.
24789 (execute_ipa_pass_list): Likewise.
24790 * cgraphunit.c (cgraph_add_new_function): Adjust.
24791 (analyze_function): Likewise.
24792 (expand_function): Likewise.
24793 * cgraph.c (release_function_body): Free dominance info
24794 here instead of asserting it was magically freed elsewhere.
24796 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
24798 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24799 * configure: Regenerate.
24800 * config/sparc/sparc.opt (muser-mode): New option.
24801 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24803 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24804 * doc/invoke.texi (SPARC options): Document -muser-mode.
24806 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
24808 * cselib.c (find_slot_memmode): Delete.
24809 (cselib_hasher): Change compare_type to a struct.
24810 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
24812 (preserve_constants_and_equivs): Adjust for new compare_type.
24813 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
24814 (wrap_constant): Delete.
24815 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24817 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
24819 * doc/install.texi (Building with profile feedback): Remove
24822 2014-04-26 Tom de Vries <tom@codesourcery.com>
24824 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24827 2014-04-25 Cary Coutant <ccoutant@google.com>
24830 * dwarf2out.c (should_move_die_to_comdat): A type definition
24831 can contain a subprogram definition, but don't move it to a
24833 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24834 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24836 (clone_tree_hash): Rename to...
24837 (clone_tree_partial): ...this; change callers. Copy
24838 DW_TAG_subprogram DIEs as declarations.
24839 (copy_decls_walk): Don't copy children of a declaration into a
24842 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
24845 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24848 2014-04-25 Jiong Wang <jiong.wang@arm.com>
24850 * config/arm/predicates.md (call_insn_operand): Add long_call check.
24851 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24853 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24856 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24858 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24860 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24862 PR tree-optimization/60930
24863 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
24864 creating a multiply candidate by folding two constant
24865 multiplicands when the result overflows.
24867 2014-04-25 Jakub Jelinek <jakub@redhat.com>
24869 PR tree-optimization/60960
24870 * tree-vect-generic.c (expand_vector_operation): Only call
24871 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24873 2014-04-25 Tom de Vries <tom@codesourcery.com>
24875 * expr.c (clobber_reg_mode): New function.
24876 * expr.h (clobber_reg): New function.
24878 2014-04-25 Tom de Vries <tom@codesourcery.com>
24880 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24883 2014-04-25 Radovan Obradovic <robradovic@mips.com>
24884 Tom de Vries <tom@codesourcery.com>
24886 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24888 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24889 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24890 new argument to find_all_hard_reg_sets call.
24892 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24894 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24895 Use HOST_WIDE_INT_C for mask literal.
24896 (aarch_rev16_shleft_mask_imm_p): Likewise.
24898 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
24901 * config/sparc/sparc.md (ashlsi3_extend): Delete.
24903 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
24905 PR preprocessor/56540
24906 * config/i386/i386-c.c (ix86_target_macros): Define
24907 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24909 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24911 * configure.ac (tga_func): Remove.
24912 (LIB_TLS_SPEC): Remove.
24913 * configure: Regenerate.
24914 * config.in: Regenerate.
24915 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24917 2014-04-25 Richard Biener <rguenther@suse.de>
24920 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24921 call stmt use/clobber sets during stmt walk instead of
24922 walking the possibly incomplete set of caller edges.
24924 2014-04-25 Richard Biener <rguenther@suse.de>
24927 * passes.c (apply_ipa_transforms): Inline into only caller ...
24928 (execute_one_pass): ... here. Properly bring in function
24929 bodies for nodes we want to apply IPA transforms to.
24931 2014-04-24 Cong Hou <congh@google.com>
24933 PR tree-optimization/60896
24934 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24935 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24936 (vect_mark_pattern_stmts): Set the def type of all statements in
24937 PATTERN_DEF_SEQ as vect_internal_def.
24939 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24941 * doc/extend.texi (PowerPC Built-in Functions): Document new
24942 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24943 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24945 * config/rs6000/predicates.md (const_0_to_3_operand): New
24946 predicate to match 0..3 integer constants.
24948 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24949 to support adding miscellaneous builtin functions.
24950 (BU_DFP_MISC_2): Likewise.
24951 (BU_P7_MISC_1): Likewise.
24952 (BU_P7_MISC_2): Likewise.
24953 (BU_P8V_MISC_3): Likewise.
24954 (BU_MISC_1): Likewise.
24955 (BU_MISC_2): Likewise.
24956 (DIVWE): Add extended divide builtin functions.
24957 (DIVWEO): Likewise.
24958 (DIVWEU): Likewise.
24959 (DIVWEUO): Likewise.
24961 (DIVDEO): Likewise.
24962 (DIVDEU): Likewise.
24963 (DIVDEUO): Likewise.
24964 (DXEX): Add decimal floating-point builtin functions.
24966 (DDEDPD): Likewise.
24967 (DDEDPDQ): Likewise.
24968 (DENBCD): Likewise.
24969 (DENBCDQ): Likewise.
24973 (DSCLIQ): Likewise.
24975 (DSCRIQ): Likewise.
24976 (CDTBCD): Add new BCD builtin functions.
24977 (CBCDTD): Likewise.
24978 (ADDG6S): Likewise.
24979 (BCDADD): Likewise.
24980 (BCDADD_LT): Likewise.
24981 (BCDADD_EQ): Likewise.
24982 (BCDADD_GT): Likewise.
24983 (BCDADD_OV): Likewise.
24984 (BCDSUB): Likewise.
24985 (BCDSUB_LT): Likewise.
24986 (BCDSUB_EQ): Likewise.
24987 (BCDSUB_GT): Likewise.
24988 (BCDSUB_OV): Likewise.
24989 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24990 (UNPACK_TD): Likewise.
24991 (PACK_TF): Likewise.
24992 (UNPACK_TF): Likewise.
24993 (UNPACK_TF_0): Likewise.
24994 (UNPACK_TF_1): Likewise.
24995 (PACK_V1TI): Likewise.
24996 (UNPACK_V1TI): Likewise.
24998 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24999 support for decimal floating point builtin functions.
25000 (rs6000_expand_ternop_builtin): Add checks for the new builtin
25001 functions that take constant arguments.
25002 (rs6000_invalid_builtin): Add decimal floating point builtin support.
25003 (rs6000_init_builtins): Setup long double, _Decimal64, and
25004 _Decimal128 types for new builtin functions.
25005 (builtin_function_type): Set the unsigned flags appropriately for
25006 the new builtin functions.
25007 (rs6000_opt_masks): Add support for decimal floating point builtin
25010 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25011 floating point builtin functions.
25012 (RS6000_BTM_COMMON): Likewise.
25013 (RS6000_BTI_long_double): Likewise.
25014 (RS6000_BTI_dfloat64): Likewise.
25015 (RS6000_BTI_dfloat128): Likewise.
25016 (long_double_type_internal_node): Likewise.
25017 (dfloat64_type_internal_node): Likewise.
25018 (dfloat128_type_internal_node): Likewise.
25020 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25021 2.07 bcd arithmetic instructions.
25022 (UNSPEC_BCDSUB): Likewise.
25023 (UNSPEC_BCD_OVERFLOW): Likewise.
25024 (UNSPEC_BCD_ADD_SUB): Likewise.
25025 (bcd_add_sub): Likewise.
25026 (BCD_TEST): Likewise.
25027 (bcd<bcd_add_sub>): Likewise.
25028 (bcd<bcd_add_sub>_test): Likewise.
25029 (bcd<bcd_add_sub>_test2): Likewise.
25030 (bcd<bcd_add_sub>_<code>): Likewise.
25031 (peephole2 for combined bcd ops): Likewise.
25033 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25034 decimal floating point builtin functions.
25035 (UNSPEC_DENBCD): Likewise.
25036 (UNSPEC_DXEX): Likewise.
25037 (UNSPEC_DIEX): Likewise.
25038 (UNSPEC_DSCLI): Likewise.
25039 (UNSPEC_DSCRI): Likewise.
25040 (D64_D128): Likewise.
25041 (dfp_suffix): Likewise.
25042 (dfp_ddedpd_<mode>): Likewise.
25043 (dfp_denbcd_<mode>): Likewise.
25044 (dfp_dxex_<mode>): Likewise.
25045 (dfp_diex_<mode>): Likewise.
25046 (dfp_dscli_<mode>): Likewise.
25047 (dfp_dscri_<mode>): Likewise.
25049 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25051 (UNSPEC_CDTBCD): Likewise.
25052 (UNSPEC_CBCDTD): Likewise.
25053 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25054 (UNSPEC_DIVEO): Likewise.
25055 (UNSPEC_DIVEU): Likewise.
25056 (UNSPEC_DIVEUO): Likewise.
25057 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25058 pack/unpack 128-bit types.
25059 (UNSPEC_PACK_128BIT): Likewise.
25060 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25061 (udiv<mode>3): Use idiv_ldiv mode attribute.
25062 (div<mode>3): Likewise.
25063 (addg6s): Add new BCD builtin functions.
25064 (cdtbcd): Likewise.
25065 (cbcdtd): Likewise.
25066 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25067 (div_extend): Likewise.
25068 (div<div_extend>_<mode>"): Likewise.
25069 (FP128_64): Add support for new builtin functions to pack/unpack
25071 (unpack<mode>): Likewise.
25072 (unpacktf_0): Likewise.
25073 (unpacktf_1): Likewise.
25074 (unpack<mode>_dm): Likewise.
25075 (unpack<mode>_nodm): Likewise.
25076 (pack<mode>): Likewise.
25077 (unpackv1ti): Likewise.
25078 (packv1ti): Likewise.
25080 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
25082 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25085 2014-04-24 Jakub Jelinek <jakub@redhat.com>
25087 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25088 * gimplify.c (omp_is_private): Change last argument's type to int.
25089 Only diagnose lastprivate if the simd argument is 1, only diagnose
25090 linear if the simd argument is 2.
25091 (gimplify_omp_for): Adjust omp_is_private callers. When adding
25092 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
25093 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
25094 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25095 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25096 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25097 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25098 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25099 * tree-nested.c (convert_nonlocal_omp_clauses,
25100 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25102 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
25105 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25108 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
25110 * flag-types.h (enum ivar_visibility): Add.
25112 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
25114 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25115 function * argument.
25117 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
25119 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25121 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25122 Tom de Vries <tom@codesourcery.com>
25124 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25125 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25127 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25128 * emit-rtl.c (try_split): Same.
25130 2014-04-24 Radovan Obradovic <robradovic@mips.com>
25131 Tom de Vries <tom@codesourcery.com>
25133 * common.opt (fuse-caller-save): New option.
25135 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
25137 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25138 elements for big-endian.
25140 2014-04-24 Richard Biener <rguenther@suse.de>
25142 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25143 during TER and instead use the sepops interface for expanding
25144 non-GIMPLE_SINGLE_RHS.
25146 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25148 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25149 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25151 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25153 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25154 assembler 64-bit option.
25155 * configure: Regenerate.
25157 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25159 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25160 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25161 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25162 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25163 (TARGET_CRYPTO): Take TARGET_SIMD into account.
25165 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25167 * config/aarch64/aarch64-builtins.c
25168 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25169 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25170 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25171 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25173 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25174 (Vrevsuff): New mode attribute.
25176 2014-04-24 Terry Guo <terry.guo@arm.com>
25178 * config/arm/arm.h (machine_function): Define variable
25179 after_arm_reorg here.
25180 * config/arm/arm.c (after_arm_reorg): Remove the definition.
25181 (arm_split_constant): Update the way to access variable
25183 (arm_reorg): Ditto.
25184 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25186 2014-04-23 Tom de Vries <tom@codesourcery.com>
25188 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25190 2014-04-23 David Malcolm <dmalcolm@redhat.com>
25192 * is-a.h: Update comments to reflect the following changes to the
25193 "pointerness" of the API, making the template parameter match the
25194 return type, allowing use of is-a.h with typedefs of pointers.
25195 (is_a_helper::cast): Return a T rather then a pointer to a T, so
25196 that the return type matches the parameter to the is_a_helper.
25198 (dyn_cast): Likewise.
25200 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25201 pointer from the is-a.h API.
25203 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25204 (is_a_helper <cgraph_node *>::test): ...this, matching change to
25206 (is_a_helper <varpool_node>::test): Likewise, convert to...
25207 (is_a_helper <varpool_node *>::test): ...this.
25209 (varpool_first_variable): Update for removal of implicit pointer
25210 from the is-a.h API.
25211 (varpool_next_variable): Likewise.
25212 (varpool_first_static_initializer): Likewise.
25213 (varpool_next_static_initializer): Likewise.
25214 (varpool_first_defined_variable): Likewise.
25215 (varpool_next_defined_variable): Likewise.
25216 (cgraph_first_defined_function): Likewise.
25217 (cgraph_next_defined_function): Likewise.
25218 (cgraph_first_function): Likewise.
25219 (cgraph_next_function): Likewise.
25220 (cgraph_first_function_with_gimple_body): Likewise.
25221 (cgraph_next_function_with_gimple_body): Likewise.
25222 (cgraph_alias_target): Likewise.
25223 (varpool_alias_target): Likewise.
25224 (cgraph_function_or_thunk_node): Likewise.
25225 (varpool_variable_node): Likewise.
25226 (symtab_real_symbol_p): Likewise.
25227 * cgraphunit.c (referred_to_p): Likewise.
25228 (analyze_functions): Likewise.
25229 (handle_alias_pairs): Likewise.
25230 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25231 * gimple-ssa.h (gimple_vuse_op): Likewise.
25232 (gimple_vdef_op): Likewise.
25233 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25234 * gimple.c (gimple_build_asm_1): Likewise.
25235 (gimple_build_try): Likewise.
25236 (gimple_build_resx): Likewise.
25237 (gimple_build_eh_dispatch): Likewise.
25238 (gimple_build_omp_for): Likewise.
25239 (gimple_omp_for_set_clauses): Likewise.
25241 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25242 (is_a_helper <gimple_statement_asm *>::test): ...this.
25243 (is_a_helper <gimple_statement_bind>::test): Convert to...
25244 (is_a_helper <gimple_statement_bind *>::test): ...this.
25245 (is_a_helper <gimple_statement_call>::test): Convert to...
25246 (is_a_helper <gimple_statement_call *>::test): ...this.
25247 (is_a_helper <gimple_statement_catch>::test): Convert to...
25248 (is_a_helper <gimple_statement_catch *>::test): ...this.
25249 (is_a_helper <gimple_statement_resx>::test): Convert to...
25250 (is_a_helper <gimple_statement_resx *>::test): ...this.
25251 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25252 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25253 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25254 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25255 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25256 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25257 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25258 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25259 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25260 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25261 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25262 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25263 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25264 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25265 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25266 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25267 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25268 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25269 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25270 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25271 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25272 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25273 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25274 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25275 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25276 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25277 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25278 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25279 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25280 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25281 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25282 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25283 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25284 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25285 (is_a_helper <gimple_statement_phi>::test): Convert to...
25286 (is_a_helper <gimple_statement_phi *>::test): ...this.
25287 (is_a_helper <gimple_statement_transaction>::test): Convert to...
25288 (is_a_helper <gimple_statement_transaction *>::test): ...this.
25289 (is_a_helper <gimple_statement_try>::test): Convert to...
25290 (is_a_helper <gimple_statement_try *>::test): ...this.
25291 (is_a_helper <gimple_statement_wce>::test): Convert to...
25292 (is_a_helper <gimple_statement_wce *>::test): ...this.
25293 (is_a_helper <const gimple_statement_asm>::test): Convert to...
25294 (is_a_helper <const gimple_statement_asm *>::test): ...this.
25295 (is_a_helper <const gimple_statement_bind>::test): Convert to...
25296 (is_a_helper <const gimple_statement_bind *>::test): ...this.
25297 (is_a_helper <const gimple_statement_call>::test): Convert to...
25298 (is_a_helper <const gimple_statement_call *>::test): ...this.
25299 (is_a_helper <const gimple_statement_catch>::test): Convert to...
25300 (is_a_helper <const gimple_statement_catch *>::test): ...this.
25301 (is_a_helper <const gimple_statement_resx>::test): Convert to...
25302 (is_a_helper <const gimple_statement_resx *>::test): ...this.
25303 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25304 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25305 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25306 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25307 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25309 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25311 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25313 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25315 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25316 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25317 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25319 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25320 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25322 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25323 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25324 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25325 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25326 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25327 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25329 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25330 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25331 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25332 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25334 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25335 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25336 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25337 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25338 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25339 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25340 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25341 (is_a_helper <const gimple_statement_phi>::test): Convert to...
25342 (is_a_helper <const gimple_statement_phi *>::test): ...this.
25343 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25344 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25345 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25346 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25347 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25348 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25349 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25351 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25353 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25354 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25356 (gimple_use_ops): Update for removal of implicit pointer from the
25358 (gimple_set_use_ops): Likewise.
25359 (gimple_vuse): Likewise.
25360 (gimple_vdef): Likewise.
25361 (gimple_vuse_ptr): Likewise.
25362 (gimple_vdef_ptr): Likewise.
25363 (gimple_set_vuse): Likewise.
25364 (gimple_set_vdef): Likewise.
25365 (gimple_omp_return_set_lhs): Likewise.
25366 (gimple_omp_return_lhs): Likewise.
25367 (gimple_omp_return_lhs_ptr): Likewise.
25368 (gimple_call_fntype): Likewise.
25369 (gimple_call_set_fntype): Likewise.
25370 (gimple_call_set_internal_fn): Likewise.
25371 (gimple_call_use_set): Likewise.
25372 (gimple_call_clobber_set): Likewise.
25373 (gimple_bind_vars): Likewise.
25374 (gimple_bind_set_vars): Likewise.
25375 (gimple_bind_body_ptr): Likewise.
25376 (gimple_bind_set_body): Likewise.
25377 (gimple_bind_add_stmt): Likewise.
25378 (gimple_bind_block): Likewise.
25379 (gimple_bind_set_block): Likewise.
25380 (gimple_asm_ninputs): Likewise.
25381 (gimple_asm_noutputs): Likewise.
25382 (gimple_asm_nclobbers): Likewise.
25383 (gimple_asm_nlabels): Likewise.
25384 (gimple_asm_input_op): Likewise.
25385 (gimple_asm_input_op_ptr): Likewise.
25386 (gimple_asm_output_op): Likewise.
25387 (gimple_asm_output_op_ptr): Likewise.
25388 (gimple_asm_set_output_op): Likewise.
25389 (gimple_asm_clobber_op): Likewise.
25390 (gimple_asm_set_clobber_op): Likewise.
25391 (gimple_asm_label_op): Likewise.
25392 (gimple_asm_set_label_op): Likewise.
25393 (gimple_asm_string): Likewise.
25394 (gimple_catch_types): Likewise.
25395 (gimple_catch_types_ptr): Likewise.
25396 (gimple_catch_handler_ptr): Likewise.
25397 (gimple_catch_set_types): Likewise.
25398 (gimple_catch_set_handler): Likewise.
25399 (gimple_eh_filter_types): Likewise.
25400 (gimple_eh_filter_types_ptr): Likewise.
25401 (gimple_eh_filter_failure_ptr): Likewise.
25402 (gimple_eh_filter_set_types): Likewise.
25403 (gimple_eh_filter_set_failure): Likewise.
25404 (gimple_eh_must_not_throw_fndecl): Likewise.
25405 (gimple_eh_must_not_throw_set_fndecl): Likewise.
25406 (gimple_eh_else_n_body_ptr): Likewise.
25407 (gimple_eh_else_e_body_ptr): Likewise.
25408 (gimple_eh_else_set_n_body): Likewise.
25409 (gimple_eh_else_set_e_body): Likewise.
25410 (gimple_try_eval_ptr): Likewise.
25411 (gimple_try_cleanup_ptr): Likewise.
25412 (gimple_try_set_eval): Likewise.
25413 (gimple_try_set_cleanup): Likewise.
25414 (gimple_wce_cleanup_ptr): Likewise.
25415 (gimple_wce_set_cleanup): Likewise.
25416 (gimple_phi_capacity): Likewise.
25417 (gimple_phi_num_args): Likewise.
25418 (gimple_phi_result): Likewise.
25419 (gimple_phi_result_ptr): Likewise.
25420 (gimple_phi_set_result): Likewise.
25421 (gimple_phi_arg): Likewise.
25422 (gimple_phi_set_arg): Likewise.
25423 (gimple_resx_region): Likewise.
25424 (gimple_resx_set_region): Likewise.
25425 (gimple_eh_dispatch_region): Likewise.
25426 (gimple_eh_dispatch_set_region): Likewise.
25427 (gimple_omp_critical_name): Likewise.
25428 (gimple_omp_critical_name_ptr): Likewise.
25429 (gimple_omp_critical_set_name): Likewise.
25430 (gimple_omp_for_clauses): Likewise.
25431 (gimple_omp_for_clauses_ptr): Likewise.
25432 (gimple_omp_for_set_clauses): Likewise.
25433 (gimple_omp_for_collapse): Likewise.
25434 (gimple_omp_for_index): Likewise.
25435 (gimple_omp_for_index_ptr): Likewise.
25436 (gimple_omp_for_set_index): Likewise.
25437 (gimple_omp_for_initial): Likewise.
25438 (gimple_omp_for_initial_ptr): Likewise.
25439 (gimple_omp_for_set_initial): Likewise.
25440 (gimple_omp_for_final): Likewise.
25441 (gimple_omp_for_final_ptr): Likewise.
25442 (gimple_omp_for_set_final): Likewise.
25443 (gimple_omp_for_incr): Likewise.
25444 (gimple_omp_for_incr_ptr): Likewise.
25445 (gimple_omp_for_set_incr): Likewise.
25446 (gimple_omp_for_pre_body_ptr): Likewise.
25447 (gimple_omp_for_set_pre_body): Likewise.
25448 (gimple_omp_parallel_clauses): Likewise.
25449 (gimple_omp_parallel_clauses_ptr): Likewise.
25450 (gimple_omp_parallel_set_clauses): Likewise.
25451 (gimple_omp_parallel_child_fn): Likewise.
25452 (gimple_omp_parallel_child_fn_ptr): Likewise.
25453 (gimple_omp_parallel_set_child_fn): Likewise.
25454 (gimple_omp_parallel_data_arg): Likewise.
25455 (gimple_omp_parallel_data_arg_ptr): Likewise.
25456 (gimple_omp_parallel_set_data_arg): Likewise.
25457 (gimple_omp_task_clauses): Likewise.
25458 (gimple_omp_task_clauses_ptr): Likewise.
25459 (gimple_omp_task_set_clauses): Likewise.
25460 (gimple_omp_task_child_fn): Likewise.
25461 (gimple_omp_task_child_fn_ptr): Likewise.
25462 (gimple_omp_task_set_child_fn): Likewise.
25463 (gimple_omp_task_data_arg): Likewise.
25464 (gimple_omp_task_data_arg_ptr): Likewise.
25465 (gimple_omp_task_set_data_arg): Likewise.
25466 (gimple_omp_taskreg_clauses): Likewise.
25467 (gimple_omp_taskreg_clauses_ptr): Likewise.
25468 (gimple_omp_taskreg_set_clauses): Likewise.
25469 (gimple_omp_taskreg_child_fn): Likewise.
25470 (gimple_omp_taskreg_child_fn_ptr): Likewise.
25471 (gimple_omp_taskreg_set_child_fn): Likewise.
25472 (gimple_omp_taskreg_data_arg): Likewise.
25473 (gimple_omp_taskreg_data_arg_ptr): Likewise.
25474 (gimple_omp_taskreg_set_data_arg): Likewise.
25475 (gimple_omp_task_copy_fn): Likewise.
25476 (gimple_omp_task_copy_fn_ptr): Likewise.
25477 (gimple_omp_task_set_copy_fn): Likewise.
25478 (gimple_omp_task_arg_size): Likewise.
25479 (gimple_omp_task_arg_size_ptr): Likewise.
25480 (gimple_omp_task_set_arg_size): Likewise.
25481 (gimple_omp_task_arg_align): Likewise.
25482 (gimple_omp_task_arg_align_ptr): Likewise.
25483 (gimple_omp_task_set_arg_align): Likewise.
25484 (gimple_omp_single_clauses): Likewise.
25485 (gimple_omp_single_clauses_ptr): Likewise.
25486 (gimple_omp_single_set_clauses): Likewise.
25487 (gimple_omp_target_clauses): Likewise.
25488 (gimple_omp_target_clauses_ptr): Likewise.
25489 (gimple_omp_target_set_clauses): Likewise.
25490 (gimple_omp_target_child_fn): Likewise.
25491 (gimple_omp_target_child_fn_ptr): Likewise.
25492 (gimple_omp_target_set_child_fn): Likewise.
25493 (gimple_omp_target_data_arg): Likewise.
25494 (gimple_omp_target_data_arg_ptr): Likewise.
25495 (gimple_omp_target_set_data_arg): Likewise.
25496 (gimple_omp_teams_clauses): Likewise.
25497 (gimple_omp_teams_clauses_ptr): Likewise.
25498 (gimple_omp_teams_set_clauses): Likewise.
25499 (gimple_omp_sections_clauses): Likewise.
25500 (gimple_omp_sections_clauses_ptr): Likewise.
25501 (gimple_omp_sections_set_clauses): Likewise.
25502 (gimple_omp_sections_control): Likewise.
25503 (gimple_omp_sections_control_ptr): Likewise.
25504 (gimple_omp_sections_set_control): Likewise.
25505 (gimple_omp_for_set_cond): Likewise.
25506 (gimple_omp_for_cond): Likewise.
25507 (gimple_omp_atomic_store_set_val): Likewise.
25508 (gimple_omp_atomic_store_val): Likewise.
25509 (gimple_omp_atomic_store_val_ptr): Likewise.
25510 (gimple_omp_atomic_load_set_lhs): Likewise.
25511 (gimple_omp_atomic_load_lhs): Likewise.
25512 (gimple_omp_atomic_load_lhs_ptr): Likewise.
25513 (gimple_omp_atomic_load_set_rhs): Likewise.
25514 (gimple_omp_atomic_load_rhs): Likewise.
25515 (gimple_omp_atomic_load_rhs_ptr): Likewise.
25516 (gimple_omp_continue_control_def): Likewise.
25517 (gimple_omp_continue_control_def_ptr): Likewise.
25518 (gimple_omp_continue_set_control_def): Likewise.
25519 (gimple_omp_continue_control_use): Likewise.
25520 (gimple_omp_continue_control_use_ptr): Likewise.
25521 (gimple_omp_continue_set_control_use): Likewise.
25522 (gimple_transaction_body_ptr): Likewise.
25523 (gimple_transaction_label): Likewise.
25524 (gimple_transaction_label_ptr): Likewise.
25525 (gimple_transaction_set_body): Likewise.
25526 (gimple_transaction_set_label): Likewise.
25528 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25529 * ipa-inline-analysis.c (inline_write_summary): Likewise.
25530 * ipa-ref.c (ipa_record_reference): Likewise.
25531 * ipa-reference.c (analyze_function): Likewise.
25532 (ipa_reference_write_optimization_summary): Likewise.
25533 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25534 (address_taken_from_non_vtable_p): Likewise.
25535 (comdat_can_be_unshared_p_1): Likewise.
25536 * lto-cgraph.c (lto_output_ref): Likewise.
25537 (add_references): Likewise.
25538 (compute_ltrans_boundary): Likewise.
25539 (output_symtab): Likewise.
25540 (input_ref): Likewise.
25541 (input_cgraph_1): Likewise.
25542 (output_cgraph_opt_summary): Likewise.
25543 * lto-streamer-out.c (lto_output): Likewise.
25544 (output_symbol_p): Likewise.
25545 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25546 (lsei_start_function_in_partition): Likewise.
25547 (lsei_next_variable_in_partition): Likewise.
25548 (lsei_start_variable_in_partition): Likewise.
25549 * symtab.c (insert_to_assembler_name_hash): Likewise.
25550 (unlink_from_assembler_name_hash): Likewise.
25551 (symtab_unregister_node): Likewise.
25552 (symtab_remove_node): Likewise.
25553 (dump_symtab_node): Likewise.
25554 (verify_symtab_base): Likewise.
25555 (verify_symtab_node): Likewise.
25556 (symtab_make_decl_local): Likewise.
25557 (symtab_alias_ultimate_target): Likewise.
25558 (symtab_resolve_alias): Likewise.
25559 (symtab_get_symbol_partitioning_class): Likewise.
25560 * tree-phinodes.c (allocate_phi_node): Likewise.
25561 (reserve_phi_args_for_new_edge): Likewise.
25562 (remove_phi_args): Likewise.
25563 * varpool.c (varpool_node_for_asm): Likewise.
25564 (varpool_remove_unreferenced_decls): Likewise.
25566 2014-04-23 Jeff Law <law@redhat.com>
25568 PR tree-optimization/60902
25569 * tree-ssa-threadedge.c
25570 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25571 invalidate outputs from statements that do not produce useful
25572 outputs for threading.
25574 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
25576 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25577 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25578 machine descriptions for Stack Smashing Protector.
25580 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
25582 * aarch64.md (<optab>_rol<mode>3): New pattern.
25583 (<optab>_rolsi3_uxtw): Likewise.
25584 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25586 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
25588 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25589 (arm_cortex_a12_tune): Likewise.
25591 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25593 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25595 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25597 * config/arm/arm.md (arm_rev16si2): New pattern.
25598 (arm_rev16si2_alt): Likewise.
25599 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25601 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25603 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25604 (rev16<mode>2_alt): Likewise.
25605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25606 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25607 (aarch_rev16_shleft_mask_imm_p): Likewise.
25608 (aarch_rev16_p_1): Likewise.
25609 (aarch_rev16_p): Likewise.
25610 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25611 (aarch_rev16_shright_mask_imm_p): Likewise.
25612 (aarch_rev16_shleft_mask_imm_p): Likewise.
25614 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25616 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25617 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25619 (cortex_a53_extra_costs): Likewise.
25620 (cortex_a57_extra_costs): Likewise.
25621 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25622 (cortexa7_extra_costs): Likewise.
25623 (cortexa8_extra_costs): Likewise.
25624 (cortexa12_extra_costs): Likewise.
25625 (cortexa15_extra_costs): Likewise.
25626 (v7m_extra_costs): Likewise.
25627 (arm_new_rtx_costs): Handle BSWAP.
25629 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25631 * config/arm/arm.c (cortexa8_extra_costs): New table.
25632 (arm_cortex_a8_tune): New tuning struct.
25633 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25635 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25637 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25639 2014-04-23 Richard Biener <rguenther@suse.de>
25641 * Makefile.in (OBJS): Remove loop-unswitch.o.
25642 * tree-pass.h (make_pass_rtl_unswitch): Remove.
25643 * passes.def (pass_rtl_unswitch): Likewise.
25644 * loop-init.c (gate_rtl_unswitch): Likewise.
25645 (rtl_unswitch): Likewise.
25646 (pass_data_rtl_unswitch): Likewise.
25647 (pass_rtl_unswitch): Likewise.
25648 (make_pass_rtl_unswitch): Likewise.
25649 * rtl.h (reversed_condition): Likewise.
25650 (compare_and_jump_seq): Likewise.
25651 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25653 * loop-unroll.c (compare_and_jump_seq): Likewise.
25655 2014-04-23 Richard Biener <rguenther@suse.de>
25657 PR tree-optimization/60903
25658 * tree-ssa-loop-im.c (analyze_memory_references): Remove
25659 commented code block.
25660 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25661 loop flags to newly created BBs and edges.
25663 2014-04-23 Nick Clifton <nickc@redhat.com>
25665 * config/msp430/msp430.c (msp430_handle_option): Move function
25667 (msp430_option_override): Simplify mcu and mcpu option handling.
25668 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
25669 support for -mhwmult command line option.
25670 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
25671 -mhwmult command line option.
25672 (msp430_hwmult_enabled): Delete.
25673 (msp43o_output_labelref): Add support for -mhwmult command line option.
25674 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25675 (umulsidi3): Likewise.
25676 * config/msp430/msp430.opt (mmcu): Add Report attribute.
25677 (mcpu, mlarge, msmall): Likewise.
25678 (mhwmult): New option.
25679 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25681 (msp430_is_f5_mcu): Remove prototype.
25682 (msp430_use_f5_series_hwmult): Add prototype.
25683 * config/msp430/msp430-opts.h: New file.
25684 * common/config/msp430: New directory.
25685 * common/config/msp430/msp430-common.c: New file.
25686 * config.gcc (msp430): Remove target_has_targetm_common.
25687 * doc/invoke.texi: Document -mhwmult command line option.
25689 2014-04-23 Nick Clifton <nickc@redhat.com>
25691 * config/i386/cygwin.h (ENDFILE_SPEC): Include
25692 default-manifest.o if it can be found in the search path.
25693 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25695 2014-04-23 Terry Guo <terry.guo@arm.com>
25697 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25699 2014-04-23 Richard Biener <rguenther@suse.de>
25701 PR middle-end/60895
25702 * tree-inline.c (declare_return_variable): Use mark_addressable.
25704 2014-04-23 Richard Biener <rguenther@suse.de>
25706 PR middle-end/60891
25707 * loop-init.c (loop_optimizer_init): Make sure to apply
25708 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25710 2014-04-22 Jakub Jelinek <jakub@redhat.com>
25713 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25715 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25716 if flag_sanitize_undefined_trap_on_error.
25717 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25718 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25719 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25720 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25721 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25722 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25723 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25724 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25725 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25726 * ubsan.c (ubsan_instrument_unreachable): Return
25727 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25728 (ubsan_expand_null_ifn): Emit __builtin_trap ()
25729 if flag_sanitize_undefined_trap_on_error and
25730 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25731 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25732 instrument_bool_enum_load): Emit __builtin_trap () if
25733 flag_sanitize_undefined_trap_on_error and
25734 __builtin_handle_*_abort () if !flag_sanitize_recover.
25735 * doc/invoke.texi (-fsanitize-recover,
25736 -fsanitize-undefined-trap-on-error): Document.
25738 2014-04-22 Christian Bruel <christian.bruel@st.com>
25740 * config/sh/sh.md (mov<mode>): Replace movQIHI.
25741 Force immediates to SImode.
25743 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
25745 * config/nios2/nios2.md (UNSPEC_ROUND): New.
25746 (lroundsfsi2): New.
25747 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25748 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25749 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25750 (nios2_fpu_insn): Add entry for round.
25751 (N2FPU_NO_ERRNO_P): Define.
25752 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25754 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25756 2014-04-22 Richard Henderson <rth@redhat.com>
25758 * config/aarch64/aarch64 (addti3, subti3): New expanders.
25759 (add<GPI>3_compare0): Remove leading * from name.
25760 (add<GPI>3_carryin): Likewise.
25761 (sub<GPI>3_compare0): Likewise.
25762 (sub<GPI>3_carryin): Likewise.
25763 (<su_optab>mulditi3): New expander.
25764 (multi3): New expander.
25765 (madd<GPI>): Remove leading * from name.
25767 2014-04-22 Martin Jambor <mjambor@suse.cz>
25769 * cgraphclones.c (cgraph_function_versioning): Copy
25770 ipa_transforms_to_apply instead of asserting it is empty.
25772 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
25775 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25776 on count_exp to get mode.
25778 2014-04-22 Andrew Pinski <apinski@cavium.com>
25780 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25781 Handle TLS for ILP32.
25782 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25783 (tlsie_small_<mode>): this and handle PTR.
25784 (tlsie_small_sidi): New pattern.
25785 (tlsle_small): Change to an expand to handle ILP32.
25786 (tlsle_small_<mode>): New pattern.
25787 (tlsdesc_small): Rename to ...
25788 (tlsdesc_small_<mode>): this and handle PTR.
25790 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25792 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25794 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25796 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25797 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25798 (aarch64_types_signed_poly_qualifiers): Likewise.
25799 (aarch64_types_unsigned_signed_qualifiers): Likewise.
25800 (aarch64_types_poly_signed_qualifiers): Likewise.
25801 (TYPES_REINTERP_SS): Type macro added.
25802 (TYPES_REINTERP_SU): Likewise.
25803 (TYPES_REINTERP_SP): Likewise.
25804 (TYPES_REINTERP_US): Likewise.
25805 (TYPES_REINTERP_PS): Likewise.
25806 (aarch64_fold_builtin): New expression folding added.
25807 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25808 Declarations removed.
25809 (REINTERP_SS): Declarations added.
25810 (REINTERP_US): Likewise.
25811 (REINTERP_PS): Likewise.
25812 (REINTERP_SU): Likewise.
25813 (REINTERP_SP): Likewise.
25814 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25815 (vreinterpretq_p8_f64): Likewise.
25816 (vreinterpret_p16_f64): Likewise.
25817 (vreinterpretq_p16_f64): Likewise.
25818 (vreinterpret_f32_f64): Likewise.
25819 (vreinterpretq_f32_f64): Likewise.
25820 (vreinterpret_f64_f32): Likewise.
25821 (vreinterpret_f64_p8): Likewise.
25822 (vreinterpret_f64_p16): Likewise.
25823 (vreinterpret_f64_s8): Likewise.
25824 (vreinterpret_f64_s16): Likewise.
25825 (vreinterpret_f64_s32): Likewise.
25826 (vreinterpret_f64_s64): Likewise.
25827 (vreinterpret_f64_u8): Likewise.
25828 (vreinterpret_f64_u16): Likewise.
25829 (vreinterpret_f64_u32): Likewise.
25830 (vreinterpret_f64_u64): Likewise.
25831 (vreinterpretq_f64_f32): Likewise.
25832 (vreinterpretq_f64_p8): Likewise.
25833 (vreinterpretq_f64_p16): Likewise.
25834 (vreinterpretq_f64_s8): Likewise.
25835 (vreinterpretq_f64_s16): Likewise.
25836 (vreinterpretq_f64_s32): Likewise.
25837 (vreinterpretq_f64_s64): Likewise.
25838 (vreinterpretq_f64_u8): Likewise.
25839 (vreinterpretq_f64_u16): Likewise.
25840 (vreinterpretq_f64_u32): Likewise.
25841 (vreinterpretq_f64_u64): Likewise.
25842 (vreinterpret_s64_f64): Likewise.
25843 (vreinterpretq_s64_f64): Likewise.
25844 (vreinterpret_u64_f64): Likewise.
25845 (vreinterpretq_u64_f64): Likewise.
25846 (vreinterpret_s8_f64): Likewise.
25847 (vreinterpretq_s8_f64): Likewise.
25848 (vreinterpret_s16_f64): Likewise.
25849 (vreinterpretq_s16_f64): Likewise.
25850 (vreinterpret_s32_f64): Likewise.
25851 (vreinterpretq_s32_f64): Likewise.
25852 (vreinterpret_u8_f64): Likewise.
25853 (vreinterpretq_u8_f64): Likewise.
25854 (vreinterpret_u16_f64): Likewise.
25855 (vreinterpretq_u16_f64): Likewise.
25856 (vreinterpret_u32_f64): Likewise.
25857 (vreinterpretq_u32_f64): Likewise.
25859 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
25861 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25862 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25863 (vreinterpret_p8_s8): Likewise.
25864 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25865 (vreinterpret_p8_s16): Likewise.
25866 (vreinterpret_p8_s32): Likewise.
25867 (vreinterpret_p8_s64): Likewise.
25868 (vreinterpret_p8_f32): Likewise.
25869 (vreinterpret_p8_u8): Likewise.
25870 (vreinterpret_p8_u16): Likewise.
25871 (vreinterpret_p8_u32): Likewise.
25872 (vreinterpret_p8_u64): Likewise.
25873 (vreinterpret_p8_p16): Likewise.
25874 (vreinterpretq_p8_s8): Likewise.
25875 (vreinterpretq_p8_s16): Likewise.
25876 (vreinterpretq_p8_s32): Likewise.
25877 (vreinterpretq_p8_s64): Likewise.
25878 (vreinterpretq_p8_f32): Likewise.
25879 (vreinterpretq_p8_u8): Likewise.
25880 (vreinterpretq_p8_u16): Likewise.
25881 (vreinterpretq_p8_u32): Likewise.
25882 (vreinterpretq_p8_u64): Likewise.
25883 (vreinterpretq_p8_p16): Likewise.
25884 (vreinterpret_p16_s8): Likewise.
25885 (vreinterpret_p16_s16): Likewise.
25886 (vreinterpret_p16_s32): Likewise.
25887 (vreinterpret_p16_s64): Likewise.
25888 (vreinterpret_p16_f32): Likewise.
25889 (vreinterpret_p16_u8): Likewise.
25890 (vreinterpret_p16_u16): Likewise.
25891 (vreinterpret_p16_u32): Likewise.
25892 (vreinterpret_p16_u64): Likewise.
25893 (vreinterpret_p16_p8): Likewise.
25894 (vreinterpretq_p16_s8): Likewise.
25895 (vreinterpretq_p16_s16): Likewise.
25896 (vreinterpretq_p16_s32): Likewise.
25897 (vreinterpretq_p16_s64): Likewise.
25898 (vreinterpretq_p16_f32): Likewise.
25899 (vreinterpretq_p16_u8): Likewise.
25900 (vreinterpretq_p16_u16): Likewise.
25901 (vreinterpretq_p16_u32): Likewise.
25902 (vreinterpretq_p16_u64): Likewise.
25903 (vreinterpretq_p16_p8): Likewise.
25904 (vreinterpret_f32_s8): Likewise.
25905 (vreinterpret_f32_s16): Likewise.
25906 (vreinterpret_f32_s32): Likewise.
25907 (vreinterpret_f32_s64): Likewise.
25908 (vreinterpret_f32_u8): Likewise.
25909 (vreinterpret_f32_u16): Likewise.
25910 (vreinterpret_f32_u32): Likewise.
25911 (vreinterpret_f32_u64): Likewise.
25912 (vreinterpret_f32_p8): Likewise.
25913 (vreinterpret_f32_p16): Likewise.
25914 (vreinterpretq_f32_s8): Likewise.
25915 (vreinterpretq_f32_s16): Likewise.
25916 (vreinterpretq_f32_s32): Likewise.
25917 (vreinterpretq_f32_s64): Likewise.
25918 (vreinterpretq_f32_u8): Likewise.
25919 (vreinterpretq_f32_u16): Likewise.
25920 (vreinterpretq_f32_u32): Likewise.
25921 (vreinterpretq_f32_u64): Likewise.
25922 (vreinterpretq_f32_p8): Likewise.
25923 (vreinterpretq_f32_p16): Likewise.
25924 (vreinterpret_s64_s8): Likewise.
25925 (vreinterpret_s64_s16): Likewise.
25926 (vreinterpret_s64_s32): Likewise.
25927 (vreinterpret_s64_f32): Likewise.
25928 (vreinterpret_s64_u8): Likewise.
25929 (vreinterpret_s64_u16): Likewise.
25930 (vreinterpret_s64_u32): Likewise.
25931 (vreinterpret_s64_u64): Likewise.
25932 (vreinterpret_s64_p8): Likewise.
25933 (vreinterpret_s64_p16): Likewise.
25934 (vreinterpretq_s64_s8): Likewise.
25935 (vreinterpretq_s64_s16): Likewise.
25936 (vreinterpretq_s64_s32): Likewise.
25937 (vreinterpretq_s64_f32): Likewise.
25938 (vreinterpretq_s64_u8): Likewise.
25939 (vreinterpretq_s64_u16): Likewise.
25940 (vreinterpretq_s64_u32): Likewise.
25941 (vreinterpretq_s64_u64): Likewise.
25942 (vreinterpretq_s64_p8): Likewise.
25943 (vreinterpretq_s64_p16): Likewise.
25944 (vreinterpret_u64_s8): Likewise.
25945 (vreinterpret_u64_s16): Likewise.
25946 (vreinterpret_u64_s32): Likewise.
25947 (vreinterpret_u64_s64): Likewise.
25948 (vreinterpret_u64_f32): Likewise.
25949 (vreinterpret_u64_u8): Likewise.
25950 (vreinterpret_u64_u16): Likewise.
25951 (vreinterpret_u64_u32): Likewise.
25952 (vreinterpret_u64_p8): Likewise.
25953 (vreinterpret_u64_p16): Likewise.
25954 (vreinterpretq_u64_s8): Likewise.
25955 (vreinterpretq_u64_s16): Likewise.
25956 (vreinterpretq_u64_s32): Likewise.
25957 (vreinterpretq_u64_s64): Likewise.
25958 (vreinterpretq_u64_f32): Likewise.
25959 (vreinterpretq_u64_u8): Likewise.
25960 (vreinterpretq_u64_u16): Likewise.
25961 (vreinterpretq_u64_u32): Likewise.
25962 (vreinterpretq_u64_p8): Likewise.
25963 (vreinterpretq_u64_p16): Likewise.
25964 (vreinterpret_s8_s16): Likewise.
25965 (vreinterpret_s8_s32): Likewise.
25966 (vreinterpret_s8_s64): Likewise.
25967 (vreinterpret_s8_f32): Likewise.
25968 (vreinterpret_s8_u8): Likewise.
25969 (vreinterpret_s8_u16): Likewise.
25970 (vreinterpret_s8_u32): Likewise.
25971 (vreinterpret_s8_u64): Likewise.
25972 (vreinterpret_s8_p8): Likewise.
25973 (vreinterpret_s8_p16): Likewise.
25974 (vreinterpretq_s8_s16): Likewise.
25975 (vreinterpretq_s8_s32): Likewise.
25976 (vreinterpretq_s8_s64): Likewise.
25977 (vreinterpretq_s8_f32): Likewise.
25978 (vreinterpretq_s8_u8): Likewise.
25979 (vreinterpretq_s8_u16): Likewise.
25980 (vreinterpretq_s8_u32): Likewise.
25981 (vreinterpretq_s8_u64): Likewise.
25982 (vreinterpretq_s8_p8): Likewise.
25983 (vreinterpretq_s8_p16): Likewise.
25984 (vreinterpret_s16_s8): Likewise.
25985 (vreinterpret_s16_s32): Likewise.
25986 (vreinterpret_s16_s64): Likewise.
25987 (vreinterpret_s16_f32): Likewise.
25988 (vreinterpret_s16_u8): Likewise.
25989 (vreinterpret_s16_u16): Likewise.
25990 (vreinterpret_s16_u32): Likewise.
25991 (vreinterpret_s16_u64): Likewise.
25992 (vreinterpret_s16_p8): Likewise.
25993 (vreinterpret_s16_p16): Likewise.
25994 (vreinterpretq_s16_s8): Likewise.
25995 (vreinterpretq_s16_s32): Likewise.
25996 (vreinterpretq_s16_s64): Likewise.
25997 (vreinterpretq_s16_f32): Likewise.
25998 (vreinterpretq_s16_u8): Likewise.
25999 (vreinterpretq_s16_u16): Likewise.
26000 (vreinterpretq_s16_u32): Likewise.
26001 (vreinterpretq_s16_u64): Likewise.
26002 (vreinterpretq_s16_p8): Likewise.
26003 (vreinterpretq_s16_p16): Likewise.
26004 (vreinterpret_s32_s8): Likewise.
26005 (vreinterpret_s32_s16): Likewise.
26006 (vreinterpret_s32_s64): Likewise.
26007 (vreinterpret_s32_f32): Likewise.
26008 (vreinterpret_s32_u8): Likewise.
26009 (vreinterpret_s32_u16): Likewise.
26010 (vreinterpret_s32_u32): Likewise.
26011 (vreinterpret_s32_u64): Likewise.
26012 (vreinterpret_s32_p8): Likewise.
26013 (vreinterpret_s32_p16): Likewise.
26014 (vreinterpretq_s32_s8): Likewise.
26015 (vreinterpretq_s32_s16): Likewise.
26016 (vreinterpretq_s32_s64): Likewise.
26017 (vreinterpretq_s32_f32): Likewise.
26018 (vreinterpretq_s32_u8): Likewise.
26019 (vreinterpretq_s32_u16): Likewise.
26020 (vreinterpretq_s32_u32): Likewise.
26021 (vreinterpretq_s32_u64): Likewise.
26022 (vreinterpretq_s32_p8): Likewise.
26023 (vreinterpretq_s32_p16): Likewise.
26024 (vreinterpret_u8_s8): Likewise.
26025 (vreinterpret_u8_s16): Likewise.
26026 (vreinterpret_u8_s32): Likewise.
26027 (vreinterpret_u8_s64): Likewise.
26028 (vreinterpret_u8_f32): Likewise.
26029 (vreinterpret_u8_u16): Likewise.
26030 (vreinterpret_u8_u32): Likewise.
26031 (vreinterpret_u8_u64): Likewise.
26032 (vreinterpret_u8_p8): Likewise.
26033 (vreinterpret_u8_p16): Likewise.
26034 (vreinterpretq_u8_s8): Likewise.
26035 (vreinterpretq_u8_s16): Likewise.
26036 (vreinterpretq_u8_s32): Likewise.
26037 (vreinterpretq_u8_s64): Likewise.
26038 (vreinterpretq_u8_f32): Likewise.
26039 (vreinterpretq_u8_u16): Likewise.
26040 (vreinterpretq_u8_u32): Likewise.
26041 (vreinterpretq_u8_u64): Likewise.
26042 (vreinterpretq_u8_p8): Likewise.
26043 (vreinterpretq_u8_p16): Likewise.
26044 (vreinterpret_u16_s8): Likewise.
26045 (vreinterpret_u16_s16): Likewise.
26046 (vreinterpret_u16_s32): Likewise.
26047 (vreinterpret_u16_s64): Likewise.
26048 (vreinterpret_u16_f32): Likewise.
26049 (vreinterpret_u16_u8): Likewise.
26050 (vreinterpret_u16_u32): Likewise.
26051 (vreinterpret_u16_u64): Likewise.
26052 (vreinterpret_u16_p8): Likewise.
26053 (vreinterpret_u16_p16): Likewise.
26054 (vreinterpretq_u16_s8): Likewise.
26055 (vreinterpretq_u16_s16): Likewise.
26056 (vreinterpretq_u16_s32): Likewise.
26057 (vreinterpretq_u16_s64): Likewise.
26058 (vreinterpretq_u16_f32): Likewise.
26059 (vreinterpretq_u16_u8): Likewise.
26060 (vreinterpretq_u16_u32): Likewise.
26061 (vreinterpretq_u16_u64): Likewise.
26062 (vreinterpretq_u16_p8): Likewise.
26063 (vreinterpretq_u16_p16): Likewise.
26064 (vreinterpret_u32_s8): Likewise.
26065 (vreinterpret_u32_s16): Likewise.
26066 (vreinterpret_u32_s32): Likewise.
26067 (vreinterpret_u32_s64): Likewise.
26068 (vreinterpret_u32_f32): Likewise.
26069 (vreinterpret_u32_u8): Likewise.
26070 (vreinterpret_u32_u16): Likewise.
26071 (vreinterpret_u32_u64): Likewise.
26072 (vreinterpret_u32_p8): Likewise.
26073 (vreinterpret_u32_p16): Likewise.
26074 (vreinterpretq_u32_s8): Likewise.
26075 (vreinterpretq_u32_s16): Likewise.
26076 (vreinterpretq_u32_s32): Likewise.
26077 (vreinterpretq_u32_s64): Likewise.
26078 (vreinterpretq_u32_f32): Likewise.
26079 (vreinterpretq_u32_u8): Likewise.
26080 (vreinterpretq_u32_u16): Likewise.
26081 (vreinterpretq_u32_u64): Likewise.
26082 (vreinterpretq_u32_p8): Likewise.
26083 (vreinterpretq_u32_p16): Likewise.
26085 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26087 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26089 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26091 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26092 (vqnegd_s64): Likewise.
26093 (vqabs_s64): Likewise.
26094 (vqabsd_s64): Likewise.
26096 2014-04-22 Richard Henderson <rth@redhat.com>
26098 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26099 computation to the top of the loop.
26101 2014-04-22 Renlin <renlin.li@arm.com>
26102 Jiong Wang <jiong.wang@arm.com>
26104 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26105 * config/aarch64/aarch64.c (aarch64_layout_frame)
26106 (aarch64_initial_elimination_offset): Likewise.
26108 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
26110 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26113 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
26115 * machmode.h (bitwise_mode_for_mode): Declare.
26116 * stor-layout.h (bitwise_type_for_mode): Likewise.
26117 * stor-layout.c (bitwise_mode_for_mode): New function.
26118 (bitwise_type_for_mode): Likewise.
26119 * builtins.c (fold_builtin_memory_op): Use it instead of
26120 int_mode_for_mode and build_nonstandard_integer_type.
26122 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26124 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26125 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26126 (*-*-solaris2*): Simplify.
26127 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26128 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26129 *-*-solaris2.9* handling.
26131 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26133 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26134 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26135 handling, simplify.
26136 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26137 * configure: Regenerate.
26139 * config/i386/sol2-9.h: Remove.
26141 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26142 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26143 Remove Solaris 9 references.
26145 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
26147 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26148 (floatuns<GPI:mode><GPF:mode>2): Remove.
26149 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26150 and floatuns conversions.
26151 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26152 and floatuns conversions.
26153 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26154 (w1,w2): New mode attributes for inequal width conversions.
26156 2014-04-22 Renlin Li <Renlin.Li@arm.com>
26158 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26159 the output asm format.
26161 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
26163 * config/aarch64/aarch64-simd.md
26164 (aarch64_cm<optab>di): Always split.
26165 (*aarch64_cm<optab>di): New.
26166 (aarch64_cmtstdi): Always split.
26167 (*aarch64_cmtstdi): New.
26169 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26171 PR tree-optimization/60823
26172 * omp-low.c (ipa_simd_modify_function_body): Go through
26173 all SSA_NAMEs and for those refering to vector arguments
26174 which are going to be replaced adjust SSA_NAME_VAR and,
26175 if it is a default definition, change it into a non-default
26176 definition assigned at the beginning of function from new_decl.
26177 (ipa_simd_modify_stmt_ops): Rewritten.
26178 * tree-dfa.c (set_ssa_default_def): When removing default def,
26179 check for NULL loc instead of NULL *loc.
26181 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26183 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26184 restrictions on core registers for DImode values in Thumb2.
26186 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26188 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26189 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26191 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26193 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26194 (*iordi_notzesidi_di): Likewise.
26195 (*iordi_notsesidi_di): Likewise.
26197 2014-04-22 Ian Bolton <ian.bolton@arm.com>
26199 * config/arm/arm-protos.h (tune_params): New struct members.
26200 * config/arm/arm.c: Initialise tune_params per processor.
26201 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26202 for speed, based on new tune_params.
26204 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
26206 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26207 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26208 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26209 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26210 * config/aarch64/arm_neon.h (vrnd_f64): Added.
26211 (vrnda_f64): Likewise.
26212 (vrndi_f64): Likewise.
26213 (vrndm_f64): Likewise.
26214 (vrndn_f64): Likewise.
26215 (vrndp_f64): Likewise.
26216 (vrndx_f64): Likewise.
26218 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26220 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26221 GET_MODE_SIZE argument is enum machine_mode.
26223 2014-04-22 Jakub Jelinek <jakub@redhat.com>
26226 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26227 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26229 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
26231 PR middle-end/60281
26232 * asan.c (asan_emit_stack_protection): Force the base to align to
26233 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
26234 appropriate bits if STRICT_ALIGNMENT.
26235 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26237 (expand_used_vars): Leave a space in the stack frame for alignment
26238 if STRICT_ALIGNMENT.
26240 2014-04-21 David Malcolm <dmalcolm@redhat.com>
26242 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26244 (gimple_store_p): Likewise.
26245 (gimple_assign_load_p): Likewise.
26246 (gimple_assign_cast_p): Likewise.
26247 (gimple_clobber_p): Likewise.
26249 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26250 rather than a gimple.
26251 (gimple_assign_cast_p): Likewise.
26253 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26256 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26257 If mode is DDmode and TARGET_E500_DOUBLE allow move.
26259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26260 more debug information for E500 if -mdebug=reg.
26262 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
26265 * config/i386/i386.c (ix86_expand_builtin)
26266 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26267 register for target RTX.
26268 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26270 2014-04-18 Cong Hou <congh@google.com>
26272 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26273 the widen-mult pattern by handling two operands with different sizes,
26274 and operands whose size is smaller than half of the result type.
26276 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26278 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26279 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26280 (do_estimate_edge_time): Compute it.
26281 * ipa-inline.c (want_inline_small_function_p): Bypass
26282 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26284 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
26286 * ipa-inline.c (spec_rem): New static variable.
26287 (dump_overall_stats): New function.
26288 (dump_inline_stats): New function.
26290 2014-04-18 Richard Henderson <rth@redhat.com>
26292 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26293 to GET_MODE_SIZE, not a reg_class_t.
26295 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26297 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26298 (vsx_xxmrglw_<mode>): Likewise.
26300 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
26303 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26304 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26305 (rs6000_init_hard_regno_mode_ok): Likewise.
26307 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
26309 * ipa-inline.c (inline_small_functions): Account only non-cold
26311 * doc/invoke.texi (inline-unit-growth): Update documentation.
26313 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
26315 * config/rs6000/rs6000.md (addti3, subti3): New.
26317 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
26320 * config/i386/i386.c (ix86_expand_clear): Remove outdated
26321 comment. Check optimize_insn_for_size_p instead of
26322 optimize_insn_for_speed_p.
26324 2014-04-17 Martin Jambor <mjambor@suse.cz>
26326 * gimple-iterator.c (gsi_start_edge): New function.
26327 * gimple-iterator.h (gsi_start_edge): Declare.
26328 * tree-sra.c (single_non_eh_succ): New function.
26329 (disqualify_ops_if_throwing_stmt): Renamed to
26330 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
26331 having one non-EH successor BB.
26332 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26333 generate loads into replacements.
26334 (sra_modify_assign): Likewise and and also use the simple path for
26336 (sra_modify_function_body): Commit statements on edges.
26338 2014-04-17 Richard Biener <rguenther@suse.de>
26340 PR middle-end/60849
26341 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26342 comparison results and add clarifying comment.
26344 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26346 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26347 (blank_mode): Initialize it.
26348 (emit_mode_size_inline, emit_mode_nunits_inline,
26349 emit_mode_inner_inline): New functions.
26350 (emit_insn_modes_h): Call them and surround their output with
26351 #if GCC_VERSION >= 4001 ... #endif.
26352 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26353 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26354 mode_* arrays if the argument is __builtin_constant_p.
26355 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26356 is enum machine_mode.
26358 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26360 * passes.c (opt_pass::execute): Adjust.
26361 (pass_manager::execute_pass_mode_switching): Likewise.
26362 (early_local_passes::execute): Likewise.
26363 (execute_one_pass): Pass cfun to the pass's execute method.
26364 * tree-pass.h (opt_pass::execute): Add function * argument.
26365 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26366 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26367 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26368 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26369 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26370 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26371 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26372 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26373 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26374 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26375 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26376 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26377 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26378 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26379 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26380 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26381 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26382 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26383 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26384 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26385 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26386 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26387 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26388 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26389 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26390 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26391 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26392 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26393 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26396 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26398 * passes.c (opt_pass::gate): Take function * argument.
26399 (gate_all_early_local_passes): Merge into
26400 (early_local_passes::gate): this.
26401 (gate_all_early_optimizations): Merge into
26402 (all_early_optimizations::gate): this.
26403 (gate_all_optimizations): Mege into
26404 (all_optimizations::gate): this.
26405 (gate_all_optimizations_g): Merge into
26406 (all_optimizations_g::gate): this.
26407 (gate_rest_of_compilation): Mege into
26408 (rest_of_compilation::gate): this.
26409 (gate_postreload): Merge into
26410 (postreload::gate): this.
26411 (dump_one_pass): Pass cfun to the pass's gate method.
26412 (execute_ipa_summary_passes): Likewise.
26413 (execute_one_pass): Likewise.
26414 (ipa_write_summaries_2): Likewise.
26415 (ipa_write_optimization_summaries_1): Likewise.
26416 (ipa_read_summaries_1): Likewise.
26417 (ipa_read_optimization_summaries_1): Likewise.
26418 (execute_ipa_stmt_fixups): Likewise.
26419 * tree-pass.h (opt_pass::gate): Add function * argument.
26420 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26421 combine-stack-adj.c, combine.c, compare-elim.c,
26422 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26423 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26424 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26425 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
26426 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26427 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26428 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26429 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26430 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26431 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26432 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26433 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26434 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26435 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26436 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26437 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26438 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26439 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26440 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26441 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26442 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26443 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26444 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26445 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26446 var-tracking.c, vtable-verify.c, web.c: Adjust.
26448 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26450 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26451 * configure: Regenerate.
26453 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26455 * passes.c (dump_one_pass): don't check pass->has_gate.
26456 (execute_ipa_summary_passes): Likewise.
26457 (execute_one_pass): Likewise.
26458 (ipa_write_summaries_2): Likewise.
26459 (ipa_write_optimization_summaries_1): Likewise.
26460 (ipa_read_optimization_summaries_1): Likewise.
26461 (execute_ipa_stmt_fixups): Likewise.
26462 * tree-pass.h (pass_data::has_gate): Remove.
26463 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26464 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26465 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26466 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26467 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26468 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26469 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26470 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26471 gimple-low.c, gimple-ssa-isolate-paths.c,
26472 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26473 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26474 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26475 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26476 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26477 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26478 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26479 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26480 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26481 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26482 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26483 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26484 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26485 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26486 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26487 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26488 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26489 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26490 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26491 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26492 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26493 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26496 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26498 * pass_manager.h (pass_manager::register_dump_files_1): Remove
26500 * passes.c (pass_manager::register_dump_files_1): Merge into
26501 (pass_manager::register_dump_files): this, and remove its handling of
26502 properties since the pass always has the properties anyway.
26503 (pass_manager::pass_manager): Adjust.
26505 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
26507 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26508 * passes.c (pass_manager::register_dump_files_1): Remove dead code
26509 dealing with properties.
26510 (pass_manager::register_dump_files): Adjust.
26512 2014-03-20 Mark Wielaard <mjw@redhat.com>
26514 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26515 then represent the bound as normal constant value.
26517 2014-04-17 Jakub Jelinek <jakub@redhat.com>
26520 Forward port from 4.8 branch
26521 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
26523 * config/i386/bmiintrin.h (_blsi_u32): New.
26524 (_blsi_u64): Ditto.
26525 (_blsr_u32): Ditto.
26526 (_blsr_u64): Ditto.
26527 (_blsmsk_u32): Ditto.
26528 (_blsmsk_u64): Ditto.
26529 (_tzcnt_u32): Ditto.
26530 (_tzcnt_u64): Ditto.
26532 2014-04-17 Kito Cheng <kito@0xlab.org>
26534 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26536 2014-04-17 Richard Biener <rguenther@suse.de>
26538 PR middle-end/60849
26539 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26540 boolean results for comparisons.
26542 2014-04-17 Richard Biener <rguenther@suse.de>
26544 PR tree-optimization/60836
26545 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26546 initial PHI args to be gimple values.
26548 2014-04-17 Richard Biener <rguenther@suse.de>
26550 PR tree-optimization/60841
26551 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26552 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26553 of stmts to SLP build.
26554 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26555 (vect_analyze_slp): Likewise.
26556 (vect_analyze_slp_instance): Likewise.
26557 (vect_build_slp_tree): Limit overall SLP tree growth.
26558 * tree-vectorizer.h (vect_analyze_data_refs,
26559 vect_analyze_slp): Adjust prototypes.
26561 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26563 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26566 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26568 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26569 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26570 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26571 for TARGET_SLOW_PSHUFB
26573 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
26575 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26576 * config/i386/i386.c (intel_cost): Ditto.
26578 2014-04-17 Joey Ye <joey.ye@arm.com>
26580 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26582 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26584 * opts.c (common_handle_option): Disable -fipa-reference coorectly
26585 with -fuse-profile.
26587 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26589 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26590 (type_all_derivations_known_p): New predicate.
26591 (type_all_ctors_visible_p): New predicate.
26592 (type_possibly_instantiated_p): New predicate.
26593 (get_odr_type): Compute all_derivations_known.
26594 (dump_odr_type): Dump the flag.
26595 (maybe_record_type): Cleanup.
26596 (record_target_from_binfo): Add bases_to_consider array;
26597 record bases for types w/o instances and skip CXX destructor.
26598 (possible_polymorphic_call_targets_1): Add bases_to_consider
26599 and consider_construction parameters; check if type may have instance.
26600 (get_polymorphic_call_info): Set maybe_in_construction to true
26601 when we know nothing.
26602 (record_targets_from_bases): Skip CXX destructors; they are
26603 never called for types in construction.
26604 (possible_polymorphic_call_targets): Do not record target when
26605 type may not have instance.
26607 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
26610 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26611 external aliases alive, too.
26613 2014-04-16 Andrew Pinski <apinski@cavium.com>
26615 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26618 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26620 * final.c (compute_alignments): Do not apply loop alignment to a block
26621 falling through to the exit.
26623 2014-04-16 Catherine Moore <clm@codesourcery.com>
26625 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26626 Adjust constraints for microMIPS store patterns.
26628 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
26630 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26632 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
26634 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26635 (append_use): Run at -O0.
26636 (append_vdef): Likewise.
26637 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26638 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26640 2014-04-16 Jakub Jelinek <jakub@redhat.com>
26642 PR tree-optimization/60844
26643 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26644 (propagate_op_to_single_use, remove_visited_stmt_chain,
26645 linearize_expr, repropagate_negates, reassociate_bb): Use it
26646 instead of gsi_remove.
26648 2014-04-16 Martin Jambor <mjambor@suse.cz>
26650 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26651 ipa_transforms_to_apply.
26652 (cgraph_function_versioning): Assert that old_node has empty
26653 ipa_transforms_to_apply.
26654 * trans-mem.c (ipa_tm_create_version): Likewise.
26655 * tree-inline.c (tree_function_versioning): Do not duplicate
26656 ipa_transforms_to_apply.
26658 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26661 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26663 Pass necessary as flags on 64-bit Solaris/x86.
26664 Use lowercase relocs for x86_64-*-*.
26665 * configure: Regenerate.
26667 2014-04-15 Jan Hubicka <jh@suse.cz>
26669 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26670 (maybe_record_node, likely_target_p): Use it.
26672 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26675 Revert following patch
26677 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26680 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26681 software floating point or no floating point registers, do not
26682 allow any type in the FPRs. Eliminate a test for SPE SIMD types
26683 in GPRs that occurs after we tested for GPRs that would never be
26686 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26687 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26688 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
26689 specifically allow DDmode, since that does not use the SPE SIMD
26692 2014-03-21 Mark Wielaard <mjw@redhat.com>
26694 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26695 as unsigned or int depending on type and value used.
26697 2014-04-15 Richard Biener <rguenther@suse.de>
26699 PR rtl-optimization/56965
26700 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26701 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26703 * alias.c (true_dependence_1): Do not call
26704 nonoverlapping_component_refs_p.
26705 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26706 nonoverlapping_component_refs_p.
26707 (indirect_refs_may_alias_p): Likewise.
26709 2014-04-15 Teresa Johnson <tejohnson@google.com>
26711 * cfg.c (dump_bb_info): Fix flags check.
26712 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26714 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26716 PR rtl-optimization/60663
26717 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26720 2014-04-15 Richard Biener <rguenther@suse.de>
26722 * lto-streamer.h (LTO_major_version): Bump to 4.
26724 2014-04-15 Richard Biener <rguenther@suse.de>
26726 * common.opt (lto_partition_model): New enum.
26727 (flto-partition=): Merge separate options with a single with argument,
26728 add -flto-partition=one support.
26729 * flag-types.h (enum lto_partition_model): Declare.
26730 * opts.c (finish_options): Remove duplicate -flto-partition=
26732 * lto-wrapper.c (run_gcc): Adjust.
26734 2014-04-15 Richard Biener <rguenther@suse.de>
26736 * alias.c (ncr_compar): New function.
26737 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26739 2014-04-15 Richard Biener <rguenther@suse.de>
26741 * alias.c (record_component_aliases): Do not walk BINFOs.
26743 2014-04-15 Richard Biener <rguenther@suse.de>
26745 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26746 Add struct function argument and adjust.
26747 (find_func_aliases_for_call): Likewise.
26748 (find_func_aliases): Likewise.
26749 (find_func_clobbers): Likewise.
26750 (intra_create_variable_infos): Likewise.
26751 (compute_points_to_sets): Likewise.
26752 (ipa_pta_execute): Adjust. Do not push/pop cfun.
26754 2014-04-15 Richard Biener <rguenther@suse.de>
26756 * tree.c (iterative_hash_expr): Use enum tree_code_class
26757 to store TREE_CODE_CLASS.
26758 (tree_block): Likewise.
26759 (tree_set_block): Likewise.
26760 * tree.h (fold_build_pointer_plus_loc): Use
26761 convert_to_ptrofftype_loc.
26763 2014-04-15 Jakub Jelinek <jakub@redhat.com>
26766 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26769 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
26771 * cfgloop.h (struct loop): Move force_vectorize down.
26772 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26773 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26774 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26775 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26776 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26777 * tree-core.h (enum annot_expr_kind): Add new kind values.
26778 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26779 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26781 * tree.def (ANNOTATE_EXPR): Tweak comment.
26783 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26785 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26788 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
26790 * tree.h (TYPE_IDENTIFIER): Declare.
26791 * tree.c (subrange_type_for_debug_p): Use it.
26792 * godump.c (go_format_type): Likewise.
26793 * dwarf2out.c (is_cxx_auto, modified_type_die,
26794 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26795 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26797 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26800 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26802 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
26804 * config/i386/i386.c (examine_argument): Return bool. Return true if
26805 parameter should be passed in memory.
26806 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26807 (construct_container): Update calls to examine_argument.
26808 (function_arg_advance_64): Ditto.
26809 (return_in_memory_32): Merge with ix86_return_in_memory.
26810 (return_in_memory_64): Ditto.
26811 (return_in_memory_ms_64): Ditto.
26813 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
26815 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26816 * coverage.c (coverage_compute_profile_id): Handle externally visible
26819 2014-04-14 Martin Jambor <mjambor@suse.cz>
26821 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26822 DECL_DISREGARD_INLINE_LIMITS functions.
26824 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26827 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26829 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
26832 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26833 optimize_insn_for_speed_p instead of
26834 optimize_function_for_speed_p.
26836 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
26838 * doc/invoke.texi (free): Document AArch64.
26840 2014-04-14 Richard Biener <rguenther@suse.de>
26842 PR tree-optimization/60042
26843 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26844 (insert_into_preds_of_block): Do not prevent PHI insertion
26845 for REFERENCE exprs here ...
26846 (eliminate_dom_walker::before_dom_children): ... but prevent
26847 their use here under similar conditions when applied to the
26848 IL after PRE optimizations.
26850 2014-04-14 Richard Biener <rguenther@suse.de>
26852 * passes.def: Move early points-to after early SRA.
26854 2014-04-14 Richard Biener <rguenther@suse.de>
26856 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26857 check for which sign-changes we allow when forwarding
26858 a converted value into a switch.
26860 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26862 * stor-layout.c (place_field): Finalize non-constant offset for the
26865 2014-04-14 Richard Biener <rguenther@suse.de>
26867 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26869 (expand_switch_using_bit_tests_p): Likewise.
26870 (process_switch): Compute and pass on speed_p based on the
26872 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26873 optimize_bb_for_speed_p.
26875 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
26877 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26878 * function.h (struct function): Rename has_force_vect_loops into
26879 has_force_vectorize_loops.
26880 * lto-streamer-in.c (input_cfg): Adjust for renaming.
26881 (input_struct_function_base): Likewise.
26882 * lto-streamer-out.c (output_cfg): Likewise.
26883 (output_struct_function_base): Likewise.
26884 * omp-low.c (expand_omp_simd): Likewise.
26885 * tree-cfg.c (move_sese_region_to_fn): Likewise.
26886 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26887 (version_loop_for_if_conversion): Likewise.
26888 (tree_if_conversion): Likewise.
26889 (main_tree_if_conversion): Likewise.
26890 (gate_tree_if_conversion): Likewise.
26891 * tree-inline.c (copy_loops): Likewise.
26892 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26893 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26894 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26895 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26896 * tree-vectorizer.c (vectorize_loops): Likewise.
26897 * tree-vectorizer.h (unlimited_cost_model): Likewise.
26899 2014-04-14 Richard Biener <rguenther@suse.de>
26902 * lto-streamer-out.c (wrap_refs): New function.
26903 (lto_output): Wrap symbol references in global initializes in
26904 type-preserving MEM_REFs.
26906 2014-04-14 Christian Bruel <christian.bruel@st.com>
26908 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26910 2014-04-14 Christian Bruel <christian.bruel@st.com>
26912 * config/sh/sh.md (setmemqi): New expand pattern.
26913 * config/sh/sh.h (CLEAR_RATIO): Define.
26914 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26915 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26917 2014-04-14 Richard Biener <rguenther@suse.de>
26919 PR middle-end/55022
26920 * fold-const.c (negate_expr_p): Don't negate directional rounding
26922 (fold_negate_expr): Likewise.
26924 2014-04-14 Richard Biener <rguenther@suse.de>
26926 PR tree-optimization/59817
26927 PR tree-optimization/60453
26928 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26929 recursion to catch all CHRECs in the scalar evolution and restrict
26930 the predicate for the remains appropriately.
26932 2014-04-12 Catherine Moore <clm@codesourcery.com>
26934 * config/mips/constraints.md: Add new register constraint "kb".
26935 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26936 (*movhi_internal): Likewise.
26937 (*movqi_internal): Likewise.
26938 * config/mips/mips.h (M16_STORE_REGS): New register class.
26939 (REG_CLASS_NAMES): Add M16_STORE_REGS.
26940 (REG_CLASS_CONTENTS): Likewise.
26941 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26943 2014-04-11 Tobias Burnus <burnus@net-b.de>
26946 * doc/invoke.texi (-Wformat-signedness): Document it.
26947 (Wformat=2): Mention that this enables -Wformat-signedness.
26949 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26951 * common/config/epiphany/epiphany-common.c
26952 (epiphany_option_optimization_table): Enable section anchors by
26953 default at -O1 or higher.
26954 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26955 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26956 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26957 carries no extra cost.
26958 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26959 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26960 * config/epiphany/predicates.md (memclob_operand): New predicate.
26961 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26962 Use memclob_operand predicate and X constraint for operand 3.
26964 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26966 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26967 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26970 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
26972 PR rtl-optimization/60651
26973 * mode-switching.c (optimize_mode_switching): Make sure to emit
26974 sets of a lower numbered entity before sets of a higher numbered
26975 entity to a mode of the same or lower priority.
26976 When creating a seginfo for a basic block that starts with a code
26977 label, move the insertion point past the code label.
26978 (new_seginfo): Document and enforce requirement that
26979 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26980 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26981 * doc/tm.texi: Regenerate.
26983 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
26986 * config/arc/arc.c (arc_save_restore): Fix assert typo.
26988 2013-04-11 Jakub Jelinek <jakub@redhat.com>
26990 * BASE-VER: Set to 4.10.0.
26992 2014-04-11 Tobias Burnus <burnus@net-b.de>
26995 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26996 * doc/gcc.texi (Service): Update description in the @menu
26997 * doc/invoke.texi (Option Summary): Remove misplaced and
27000 2014-04-11 Steve Ellcey <sellcey@mips.com>
27001 Jakub Jelinek <jakub@redhat.com>
27003 PR middle-end/60556
27004 * expr.c (convert_move): Use emit_store_flag_force instead of
27005 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
27008 2014-04-11 Richard Biener <rguenther@suse.de>
27010 PR middle-end/60797
27011 * varasm.c (assemble_alias): Avoid endless error reporting
27012 recursion by setting TREE_ASM_WRITTEN.
27014 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27016 * config/s390/s390.md: Add a splitter for NOT rtx.
27018 2014-04-11 Jakub Jelinek <jakub@redhat.com>
27020 PR rtl-optimization/60663
27021 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27023 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
27024 Jakub Jelinek <jakub@redhat.com>
27027 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27028 flag from decl_node to node.
27030 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27033 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27034 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27035 ameliorating the cases where it can be.
27037 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
27040 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27042 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27043 (loadsync_<mode>): Change mode.
27044 (load_quadpti, store_quadpti): New.
27045 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27046 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27047 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27049 2014-04-09 Cong Hou <congh@google.com>
27052 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27055 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27057 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27058 instead of vnor to exploit possible fusion opportunity in the
27060 (altivec_expand_vec_perm_const_le): Likewise.
27062 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
27064 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27065 (loadsync_<mode>): Change mode.
27066 (load_quadpti, store_quadpti): New.
27067 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27068 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27070 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
27073 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27074 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27075 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27077 2014-04-08 Richard Biener <rguenther@suse.de>
27079 PR middle-end/60706
27080 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27081 a 64bit widest int print double-int similar to on HWI64 hosts.
27083 2014-04-08 Richard Biener <rguenther@suse.de>
27085 PR tree-optimization/60785
27086 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27087 default defs properly.
27089 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
27091 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27092 (Weffc++): Likewise.
27094 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
27096 * ipa-devirt.c (maybe_record_node): When node is not recorded,
27097 set completep to false rather than true.
27099 2014-04-07 Douglas B Rupp <rupp@adacore.com>
27102 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27103 ARM_TARGET2_DWARF_FORMAT.
27105 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
27108 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27109 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27112 2014-04-07 Richard Biener <rguenther@suse.de>
27114 PR tree-optimization/60766
27115 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27116 (may_eliminate_iv): Convert cand_value_at result to desired type.
27118 2014-04-07 Jason Merrill <jason@redhat.com>
27121 * common.opt (-fno-gnu-unique): Add.
27122 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27124 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27126 * haifa-sched.c: Fix outdated function reference and minor
27127 grammar errors in introductory comment.
27129 2014-04-07 Richard Biener <rguenther@suse.de>
27131 PR middle-end/60750
27132 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27133 for noreturn calls.
27134 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27136 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
27139 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27140 size accounting for thunks.
27141 (pa_asm_output_mi_thunk): Use final_start_function() and
27142 final_end_function() to output function start and end directives.
27144 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
27146 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27147 device specific ISA/ feature information. Remove short_sp and
27148 errata_skip ds. Add avr_device_specific_features enum to have device
27150 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27151 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27152 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27153 updated device specific info.
27154 * config/avr/avr-mcus.def: Merge device specific details to
27155 dev_attribute field.
27156 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27158 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27159 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27160 assembler if RMW isa supported by current device.
27161 * config/avr/genmultilib.awk: Update as device info structure changed.
27162 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27164 2014-04-04 Cong Hou <congh@google.com>
27166 PR tree-optimization/60656
27167 * tree-vect-stmts.c (supportable_widening_operation):
27168 Fix a bug that elements in a vector with vect_used_by_reduction
27169 property are incorrectly reordered when the operation on it is not
27170 consistant with the one in reduction operation.
27172 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
27174 PR rtl-optimization/60155
27175 * gcse.c (record_set_data): New function.
27176 (single_set_gcse): New function.
27177 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27178 (hoist_code): Likewise.
27179 (get_pressure_class_and_nregs): Likewise.
27181 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
27183 * explow.c (probe_stack_range): Emit a final optimization blockage.
27185 2014-04-04 Anthony Green <green@moxielogic.com>
27187 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27190 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
27193 * lto-cgraph.c (input_overwrite_node): Check that partitioning
27194 flags are set only during streaming.
27195 * ipa.c (process_references, walk_polymorphic_call_targets,
27196 symtab_remove_unreachable_nodes): Drop bodies of always inline
27197 after early inlining.
27198 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27200 2014-04-04 Jakub Jelinek <jakub@redhat.com>
27201 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27204 * dwarf2out.c (const_ok_for_output_1): Reject expressions
27207 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27210 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27212 (cortex_a53_fdivd): Likewise.
27214 2014-04-04 Martin Jambor <mjambor@suse.cz>
27217 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27218 Adjust all callers.
27219 * cgraph.c (clone_of_p): Also return true if thunks match.
27220 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27221 cgraph_function_or_thunk_node and an obsolete comment.
27222 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27224 (build_function_decl_skip_args): Likewise.
27225 (set_new_clone_decl_and_node_flags): New function.
27226 (duplicate_thunk_for_node): Likewise.
27227 (redirect_edge_duplicating_thunks): Likewise.
27228 (cgraph_clone_node): New parameter args_to_skip, pass it to
27229 redirect_edge_duplicating_thunks which is called instead of
27230 cgraph_redirect_edge_callee.
27231 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27232 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27234 2014-04-04 Jeff Law <law@redhat.com>
27237 * config/arm/predicates.md (const_int_I_operand): New predicate.
27238 (const_int_M_operand): Similarly.
27239 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27241 (insv_t2, extv_reg, extzv_t2): Likewise.
27242 (load_multiple_with_writeback): Similarly for const_int_I_operand.
27243 (pop_multiple_with_writeback_and_return): Likewise.
27244 (vfp_pop_multiple_with_writeback): Likewise
27246 2014-04-04 Richard Biener <rguenther@suse.de>
27249 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27250 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27252 * gimplify.h (gimple_add_tmp_var_fn): Declare.
27253 * gimplify.c (gimple_add_tmp_var_fn): New function.
27254 * gimple-expr.h (create_tmp_reg_fn): Declare.
27255 * gimple-expr.c (create_tmp_reg_fn): New function.
27256 * gimple-low.c (record_vars_into): Don't change cfun.
27257 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27258 code generation without cfun.
27260 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
27263 * Makefile.in (install-driver): Fix shell scripting.
27265 2014-04-03 Cong Hou <congh@google.com>
27267 PR tree-optimization/60505
27268 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27269 threshold of number of iterations below which no vectorization
27271 * tree-vect-loop.c (new_loop_vec_info):
27272 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27273 * tree-vect-loop.c (vect_analyze_loop_operations):
27274 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27275 * tree-vect-loop.c (vect_transform_loop):
27276 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27277 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27278 of iterations of the loop and see if we should build the epilogue.
27280 2014-04-03 Richard Biener <rguenther@suse.de>
27282 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27283 (streamer_tree_cache_create): Adjust.
27284 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27285 to allow optional nodes array.
27286 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27287 (streamer_tree_cache_append): Likewise.
27288 (streamer_tree_cache_create): Create nodes array optionally
27289 as specified by parameter.
27290 * lto-streamer-out.c (create_output_block): Avoid maintaining
27291 the node array in the writer cache.
27292 (DFS_write_tree): Remove assertion.
27293 (produce_asm_for_decls): Free the out decl state hash table early.
27294 * lto-streamer-in.c (lto_data_in_create): Adjust for
27295 streamer_tree_cache_create prototype change.
27297 2014-04-03 Richard Biener <rguenther@suse.de>
27299 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27300 set TREE_CHAIN to NULL_TREE.
27302 2014-04-03 Richard Biener <rguenther@suse.de>
27304 PR tree-optimization/60740
27305 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27306 over all GIMPLE_COND operands.
27308 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
27310 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27311 (Weffc++): Remove Scott's numbering, merge lists and reference
27314 2014-04-03 Nick Clifton <nickc@redhat.com>
27316 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27319 2014-04-03 Martin Jambor <mjambor@suse.cz>
27321 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27322 mention gcc_unreachable before failing.
27323 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27326 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
27329 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27330 inconsistent code and instead mark the context inconsistent.
27331 (possible_polymorphic_call_targets): For inconsistent contexts
27332 return empty complete list.
27334 2014-04-02 Anthony Green <green@moxielogic.com>
27336 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27337 (extendqisi2, extendhisi2): Define.
27338 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27339 (WCHAR_TYPE): Change to unsigned int.
27341 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27343 PR tree-optimization/60733
27344 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27345 insertion point for PHI candidates to be the end of the feeding
27346 block for the PHI argument.
27348 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
27350 PR rtl-optimization/60650
27351 * lra-constraints.c (process_alt_operands): Decrease reject for
27352 earlyclobber matching.
27354 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27356 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27358 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27360 * config/spu/spu.c (pad_bb): Do not crash when the last
27361 insn is CODE_FOR_blockage.
27363 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27365 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27366 lies outside the target mode.
27368 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27371 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27372 software floating point or no floating point registers, do not
27373 allow any type in the FPRs. Eliminate a test for SPE SIMD types
27374 in GPRs that occurs after we tested for GPRs that would never be
27377 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27378 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27379 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
27380 specifically allow DDmode, since that does not use the SPE SIMD
27383 2014-04-02 Richard Biener <rguenther@suse.de>
27385 PR middle-end/60729
27386 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27387 MODE_INTs. Properly use negv_optab.
27388 (expand_abs): Likewise.
27390 2014-04-02 Richard Biener <rguenther@suse.de>
27393 * Makefile.in (install-driver): Guard extra installs with special
27396 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27398 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27399 Document vec_vgbbd.
27401 2014-04-01 Richard Henderson <rth@redhat.com>
27404 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27405 alternative enabled before register allocation.
27407 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
27409 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27410 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27412 (nios2_large_got_address): Remove unneeded 'sym' parameter.
27413 (nios2_got_address): Update nios2_large_got_address call site.
27414 (nios2_delegitimize_address): New function.
27415 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27416 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27417 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27419 2014-04-01 Martin Husemann <martin@duskware.de>
27421 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27424 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
27426 PR rtl-optimization/60604
27427 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27428 check from register_operand.
27429 (register_operand): Redefine in terms of general_operand.
27430 (nonmemory_operand): Use register_operand for the non-constant cases.
27432 2014-04-01 Richard Biener <rguenther@suse.de>
27434 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27436 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
27438 * doc/invoke.texi (mapp-regs): Clarify.
27440 2014-03-31 Ulrich Drepper <drepper@gmail.com>
27442 * config/i386/avx512fintrin.h (__v32hi): Define type.
27443 (__v64qi): Likewise.
27444 (_mm512_set1_epi8): Define.
27445 (_mm512_set1_epi16): Define.
27446 (_mm512_set4_epi32): Define.
27447 (_mm512_set4_epi64): Define.
27448 (_mm512_set4_pd): Define.
27449 (_mm512_set4_ps): Define.
27450 (_mm512_setr4_epi64): Define.
27451 (_mm512_setr4_epi32): Define.
27452 (_mm512_setr4_pd): Define.
27453 (_mm512_setr4_ps): Define.
27454 (_mm512_setzero_epi32): Define.
27456 2014-03-31 Martin Jambor <mjambor@suse.cz>
27458 PR middle-end/60647
27459 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27460 callsite_arguments_match_p. Updated all callers. Also check types of
27461 corresponding formal parameters and actual arguments.
27462 (not_all_callers_have_enough_arguments_p) Renamed to
27463 some_callers_have_mismatched_arguments_p.
27465 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
27467 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27469 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
27472 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27475 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
27477 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27478 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27480 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27481 Use FMAMODE_NOVF512 mode iterator.
27482 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27483 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27484 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27485 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27487 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27488 Use VF_128_256 mode iterator.
27489 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27492 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27494 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27495 static chain if needed.
27497 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27500 * lra-constraints.c (index_part_to_reg): New.
27501 (process_address): Use it.
27503 2014-03-27 Jeff Law <law@redhat.com>
27504 Jakub Jelinek <jakub@redhat.com>
27507 * expr.c (do_tablejump): Use simplify_gen_binary rather than
27508 gen_rtx_{PLUS,MULT} to build up the address expression.
27510 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27511 creating non-canonical RTL.
27513 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27516 * ipa-inline.c (want_inline_small_function_p): Short circuit large
27517 functions; reorganize to make cheap checks first.
27518 (inline_small_functions): Do not estimate growth when dumping;
27520 * ipa-inline.h (inline_summary): Add min_size.
27521 (growth_likely_positive): New function.
27522 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27523 (set_cond_stmt_execution_predicate): Cleanup.
27524 (estimate_edge_size_and_time): Compute min_size.
27525 (estimate_calls_size_and_time): Likewise.
27526 (estimate_node_size_and_time): Likewise.
27527 (inline_update_overall_summary): Update min_size.
27528 (do_estimate_edge_time): Likewise.
27529 (do_estimate_edge_size): Update.
27530 (do_estimate_edge_hints): Update.
27531 (growth_likely_positive): New function.
27533 2014-03-28 Jakub Jelinek <jakub@redhat.com>
27536 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27537 also if addr has VOIDmode.
27539 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27541 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27542 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27544 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27545 instructions as well as AdvancedSIMD loads.
27547 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27549 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27550 Use crypto_aese type.
27551 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27552 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27553 crypto_aese, crypto_aesmc. Move to types.md.
27554 * config/arm/types.md (crypto_aes): Split into crypto_aese,
27556 * config/arm/iterators.md (crypto_type): Likewise.
27558 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
27560 * cgraph.c: Include expr.h and tree-dfa.h.
27561 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27564 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
27567 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27568 regs from checking multi-reg pseudos.
27570 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27572 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27574 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27576 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27577 if it would clobber the stack pointer, even temporarily.
27579 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
27581 * mode-switching.c: Make small adjustments to the top comment.
27583 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
27585 * config/rs6000/constraints.md (wD constraint): New constraint to
27586 match the constant integer to get the top DImode/DFmode out of a
27587 vector in a VSX register.
27589 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27590 match the constant integer to get the top DImode/DFmode out of a
27591 vector in a VSX register.
27593 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27596 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27599 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27600 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27602 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27603 Optimize vec_extract of 64-bit values, where the value being
27604 extracted is in the top word, where we can use scalar
27605 instructions. Add direct move and store support. Combine the big
27606 endian/little endian vector select load support into a single insn.
27607 (vsx_extract_<mode>_internal1): Likewise.
27608 (vsx_extract_<mode>_internal2): Likewise.
27609 (vsx_extract_<mode>_load): Likewise.
27610 (vsx_extract_<mode>_store): Likewise.
27611 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27612 combined into vsx_extract_<mode>_load.
27613 (vsx_extract_<mode>_one_le): Likewise.
27615 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27616 define the top 64-bit vector element.
27618 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27621 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27622 Document vec_vbpermq builtin.
27625 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27626 enable use of xxsldwi and xxpermdi builtin functions.
27627 (vec_xxpermdi): Likewise.
27629 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27630 Document use of vec_xxsldwi and vec_xxpermdi builtins.
27632 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
27634 PR rtl-optimization/60650
27635 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27637 (find_spills_for): New.
27638 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27639 Spill all pseudos on the second iteration.
27641 2014-03-27 Marek Polacek <polacek@redhat.com>
27644 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27647 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27649 * config/s390/s390.c (s390_can_use_return_insn): Check for
27650 call-saved FPRs on 31 bit.
27652 2014-03-27 Jakub Jelinek <jakub@redhat.com>
27654 PR middle-end/60682
27655 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27656 if they need regimplification, just drop them instead of
27657 calling gimple_regimplify_operands on them.
27659 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
27662 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27663 (aarch64_frame_pointer_required): Adjust logic.
27664 (aarch64_can_eliminate): Adjust logic.
27665 (aarch64_override_options_after_change): Adjust logic.
27667 2014-03-27 Dehao Chen <dehao@google.com>
27669 * ipa-inline.c (early_inliner): Update node's inline info.
27671 2014-03-26 Dehao Chen <dehao@google.com>
27673 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27674 compiler inserted conditional jumps for NAN float check.
27676 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27678 * ubsan.h (ubsan_create_data): Change second argument's type
27679 to const location_t *.
27680 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27682 (ubsan_create_data): Change second argument to const location_t *PLOC.
27683 Create Loc field whenever PLOC is non-NULL.
27684 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27685 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27689 * real.c (real_to_integer2): Change type of low to UHWI.
27691 2014-03-26 Tobias Burnus <burnus@net-b.de>
27693 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27694 (CILK_SELF_SPECS): New define.
27695 (driver_self_specs): Use it.
27697 2014-03-26 Richard Biener <rguenther@suse.de>
27699 * tree-pretty-print.c (percent_K_format): Implement special
27700 case for LTO and its stripped down BLOCK tree.
27702 2014-03-26 Jakub Jelinek <jakub@redhat.com>
27705 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27707 * tree-vrp.c (simplify_internal_call_using_ranges): If only
27708 one range is range_int_cst_p, but not both, at least optimize
27709 addition/subtraction of 0 and multiplication by 0 or 1.
27710 * gimple-fold.c (gimple_fold_call): Fold
27711 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27712 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27713 INTEGER_CSTs, try to fold at least x * 0 and y - y.
27715 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
27717 PR rtl-optimization/60452
27718 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27719 <case REG>: Return 1 for invalid offsets from the frame pointer.
27721 2014-03-26 Marek Polacek <polacek@redhat.com>
27724 * doc/extend.texi (C Extensions): Mention variable-length arrays in
27727 2014-03-26 Marek Polacek <polacek@redhat.com>
27730 * doc/extend.texi (Designated Inits): Describe what happens to omitted
27733 2014-03-26 Marek Polacek <polacek@redhat.com>
27736 * ira-color.c (update_conflict_hard_regno_costs): Perform the
27737 multiplication in unsigned type.
27739 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27741 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27743 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
27745 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27747 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27750 * cif-code.def (UNREACHABLE) New code.
27751 * ipa-inline.c (inline_small_functions): Skip edges to
27752 __builtlin_unreachable.
27753 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27754 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27755 predicate to __bulitin_unreachable.
27756 (set_cond_stmt_execution_predicate): Fix issue when
27757 invert_tree_comparison returns ERROR_MARK.
27758 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27759 propagate to inline clones.
27760 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27762 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27763 * cgraphclones.c (cgraph_clone_node): If call destination is already
27764 ureachable, do not redirect it back.
27765 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27768 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
27770 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27771 Do not modify inline clones.
27773 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27775 * config/i386/i386.md (general_sext_operand): New mode attr.
27776 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27777 don't generate (sign_extend (const_int)).
27778 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27779 operands[2]. Use We constraint instead of <i> and
27780 <general_sext_operand> predicate instead of <general_operand>.
27781 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27782 * config/i386/constraints.md (We): New constraint.
27783 * config/i386/predicates.md (x86_64_sext_operand,
27784 sext_operand): New predicates.
27786 2014-03-25 Martin Jambor <mjambor@suse.cz>
27789 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27790 inconsistent devirtualizations to __builtin_unreachable.
27792 2014-03-25 Marek Polacek <polacek@redhat.com>
27795 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27797 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
27799 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27800 order of elements for big-endian.
27802 2014-03-25 Richard Biener <rguenther@suse.de>
27804 PR middle-end/60635
27805 * gimplify-me.c (gimple_regimplify_operands): Update the
27808 2014-03-25 Martin Jambor <mjambor@suse.cz>
27811 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27812 (lto_output_varpool_node): Likewise.
27813 (input_overwrite_node): Likewise.
27814 (input_varpool_node): Likewise.
27816 2014-03-25 Richard Biener <rguenther@suse.de>
27818 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27819 (run_gcc): Likewise.
27821 2014-03-25 Jakub Jelinek <jakub@redhat.com>
27823 * combine.c (simplify_compare_const): Add MODE argument.
27824 Handle mode_width 0 as very large mode_width.
27825 (try_combine, simplify_comparison): Adjust callers.
27827 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27828 type to avoid signed integer overflow.
27829 * explow.c (plus_constant): Likewise.
27831 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
27833 * doc/generic.texi: Correct typos.
27835 2014-03-24 Tobias Burnus <burnus@net-b.de>
27837 * doc/invoke.texi (-flto): Expand section about
27838 using static libraries with LTO.
27840 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27842 PR rtl-optimization/60501
27843 * optabs.def (addptr3_optab): New optab.
27844 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27845 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27846 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27848 * lra.c (emit_add3_insn): Use the addptr pattern if available.
27850 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27852 2014-03-24 Ulrich Drepper <drepper@gmail.com>
27854 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27857 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27858 (_mm256_undefined_ps): Define.
27859 (_mm256_undefined_pd): Define.
27860 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27861 (_mm_undefined_pd): Define.
27862 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27863 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27864 (_mm512_undefined_ps): Define.
27865 (_mm512_undefined_pd): Define.
27866 Use _mm*_undefined_*.
27867 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27869 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
27871 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27872 (lshr_simd): DI mode added.
27873 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27874 (aarch64_ushr_simddi): Likewise.
27875 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27876 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27877 (vshrd_n_u64): Likewise.
27879 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27881 * Makefile.in (s-macro_list): Depend on cc1.
27883 2014-03-23 Teresa Johnson <tejohnson@google.com>
27885 * ipa-utils.c (ipa_print_order): Use specified dump file.
27887 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
27889 PR rtl-optimization/60601
27890 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27892 * gcc.c (eval_spec_function): Initialize save_growing_value.
27894 2014-03-22 Jakub Jelinek <jakub@redhat.com>
27897 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27898 code == MINUS_EXPR, never swap op0 with op1.
27900 * toplev.c (init_local_tick): Avoid signed integer multiplication
27902 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27903 shift by first operand's bitsize.
27905 2014-03-21 Jakub Jelinek <jakub@redhat.com>
27908 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27909 redefine to 1 or 0.
27910 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27911 TARGET_ISA_64BIT_P(x).
27913 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27915 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27916 pattern for vector nor instead of subtract from splat(-1).
27917 (altivec_expand_vec_perm_const_le): Likewise.
27919 2014-03-21 Richard Henderson <rth@twiddle.net>
27922 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27923 related insns after epilogue_completed.
27925 2014-03-21 Martin Jambor <mjambor@suse.cz>
27928 * cgraph.h (symtab_node): New flag body_removed.
27929 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27930 when removing bodies.
27931 * symtab.c (dump_symtab_base): Dump body_removed flag.
27932 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27933 had their bodies removed.
27935 2014-03-21 Martin Jambor <mjambor@suse.cz>
27938 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27941 2014-03-21 Richard Biener <rguenther@suse.de>
27943 PR tree-optimization/60577
27944 * tree-core.h (struct tree_base): Document nothrow_flag use
27945 in DECL_NONALIASED.
27946 * tree.h (DECL_NONALIASED): New.
27947 (may_be_aliased): Adjust.
27948 * coverage.c (build_var): Set DECL_NONALIASED.
27950 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27952 * expr.c (expand_expr_real_1): Remove outdated comment.
27954 2014-03-20 Jakub Jelinek <jakub@redhat.com>
27956 PR middle-end/60597
27957 * ira.c (adjust_cleared_regs): Call copy_rtx on
27958 *reg_equiv[REGNO (loc)].src_p before passing it to
27959 simplify_replace_fn_rtx.
27962 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27963 into CONST, put pic register as first operand of PLUS. Use
27964 gen_const_mem for both 32-bit and 64-bit PIC got loads.
27966 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27968 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27970 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27972 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27973 around for store forwarding issue in the FPU on the UT699.
27974 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27975 loads and operations if -mfix-ut699 is specified.
27976 (divtf3_hq): Tweak attribute.
27977 (sqrttf2_hq): Likewise.
27979 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
27981 * calls.c (store_one_arg): Remove incorrect const qualification on the
27982 type of the temporary.
27983 * cfgexpand.c (expand_return): Likewise.
27984 * expr.c (expand_constructor): Likewise.
27985 (expand_expr_real_1): Likewise.
27987 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27989 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27992 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27995 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27997 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
27999 * config/arm/aarch-common-protos.h
28000 (alu_cost_table): Fix spelling of "extend".
28001 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28003 2014-03-19 Richard Biener <rguenther@suse.de>
28005 PR middle-end/60553
28006 * tree-core.h (tree_type_common): Re-order pointer members
28007 to reduce recursion depth during GC walks.
28009 2014-03-19 Marek Polacek <polacek@redhat.com>
28012 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28013 before accessing it.
28015 2014-03-19 Richard Biener <rguenther@suse.de>
28018 * lto-streamer-in.c (input_function): In WPA stage do not drop
28021 2014-03-19 Jakub Jelinek <jakub@redhat.com>
28023 PR tree-optimization/60559
28024 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28025 with build_zero_cst assignment.
28027 2014-03-18 Kai Tietz <ktietz@redhat.com>
28029 PR rtl-optimization/56356
28030 * sdbout.c (sdbout_parms): Verify that parms'
28031 incoming argument is valid.
28032 (sdbout_reg_parms): Likewise.
28034 2014-03-18 Richard Henderson <rth@redhat.com>
28037 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28038 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
28039 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28041 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
28043 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28044 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28045 Italicize plugin event names in description. Explain that
28046 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
28047 Remind that no GCC functions should be called after PLUGIN_FINISH.
28048 Explain what pragmas with expansion are.
28050 2014-03-18 Martin Liska <mliska@suse.cz>
28052 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28053 gimple call statement is update.
28054 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28055 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28057 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28060 * ubsan.c (ubsan_instrument_unreachable): Call
28061 initialize_sanitizer_builtins.
28062 (ubsan_pass): Likewise.
28065 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28066 varpool_finalize_decl instead of rest_of_decl_compilation.
28068 2014-03-18 Richard Biener <rguenther@suse.de>
28070 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28071 by using bitmap_and_compl instead of bitmap_and_compl_into.
28072 (df_rd_transfer_function): Likewise.
28074 2014-03-18 Richard Biener <rguenther@suse.de>
28076 * doc/lto.texi (fresolution): Fix typo.
28078 2014-03-18 Richard Biener <rguenther@suse.de>
28080 * doc/invoke.texi (flto): Update for changes in 4.9.
28082 2014-03-18 Richard Biener <rguenther@suse.de>
28084 * doc/loop.texi: Remove section on the removed lambda framework.
28085 Update loop docs with recent changes in preserving loop structure.
28087 2014-03-18 Richard Biener <rguenther@suse.de>
28089 * doc/lto.texi (-fresolution): Document.
28091 2014-03-18 Richard Biener <rguenther@suse.de>
28093 * doc/contrib.texi: Adjust my name.
28095 2014-03-18 Jakub Jelinek <jakub@redhat.com>
28098 * internal-fn.c: Include diagnostic-core.h.
28099 (expand_BUILTIN_EXPECT): New function.
28100 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28101 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28102 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28103 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28104 IFN_BUILTIN_EXPECT.
28105 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28106 Revert 3 argument __builtin_expect code.
28107 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28108 * gimple-fold.c (gimple_fold_call): Likewise.
28109 * tree.h (fold_builtin_expect): New prototype.
28110 * builtins.c (build_builtin_expect_predicate): Add predictor
28111 argument, if non-NULL, create 3 argument __builtin_expect.
28112 (fold_builtin_expect): No longer static. Add ARG2 argument,
28113 pass it through to build_builtin_expect_predicate.
28114 (fold_builtin_2): Adjust caller.
28115 (fold_builtin_3): Handle BUILT_IN_EXPECT.
28116 * internal-fn.def (BUILTIN_EXPECT): New.
28118 2014-03-18 Tobias Burnus <burnus@net-b.de>
28121 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28122 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28123 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28125 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
28128 * predict.c (combine_predictions_for_bb): Fix up formatting.
28129 (expr_expected_value_1, expr_expected_value): Add predictor argument,
28130 fill what it points to if non-NULL.
28131 (tree_predict_by_opcode): Adjust caller, use the predictor.
28132 * predict.def (PRED_COMPARE_AND_SWAP): Add.
28134 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
28136 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28137 proper constant for the store mode.
28139 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
28141 * symtab.c (change_decl_assembler_name): Fix transparent alias
28142 chain construction.
28144 2014-03-16 Renlin Li <Renlin.Li@arm.com>
28146 * config/aarch64/aarch64.c: Correct the comments about the
28147 aarch64 stack layout.
28149 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
28151 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28152 check for GF_OMP_FOR_KIND_FOR.
28154 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28156 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28157 ymm and zmm register names.
28159 2014-03-17 Jakub Jelinek <jakub@redhat.com>
28162 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28163 note creation for the 2010-08-31 changes.
28165 2014-03-17 Marek Polacek <polacek@redhat.com>
28167 PR middle-end/60534
28168 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28169 as -fno-tree-loop-vectorize.
28170 (expand_omp_simd): Likewise.
28172 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
28174 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28175 (eligible_for_call_delay): New prototype.
28176 * config/sparc/sparc.c (tls_call_delay): Rename into...
28177 (eligible_for_call_delay): ...this. Return false if the instruction
28178 cannot be put in the delay slot of a branch.
28179 (eligible_for_restore_insn): Simplify.
28180 (eligible_for_return_delay): Return false if the instruction cannot be
28181 put in the delay slot of a branch and simplify.
28182 (eligible_for_sibcall_delay): Return false if the instruction cannot be
28183 put in the delay slot of a branch.
28184 * config/sparc/sparc.md (fix_ut699): New attribute.
28185 (tls_call_delay): Delete.
28186 (in_call_delay): Reimplement.
28187 (eligible_for_sibcall_delay): Rename into...
28188 (in_sibcall_delay): ...this.
28189 (eligible_for_return_delay): Rename into...
28190 (in_return_delay): ...this.
28191 (in_branch_delay): Reimplement.
28192 (in_uncond_branch_delay): Delete.
28193 (in_annul_branch_delay): Delete.
28195 2014-03-14 Richard Henderson <rth@redhat.com>
28198 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28199 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28200 (*floathi<X87MODEF>2_i387_with_temp): Remove.
28201 (floathi splitters): Remove.
28202 (float<SWI48x>xf2): New pattern.
28203 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
28204 code that tried to handle DImode for 32-bit, but which was excluded
28205 by the pattern's condition. Drop allocation of stack temporary.
28206 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28207 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28208 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28209 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28210 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28211 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28212 (*float<SWI48><MODEF>2_sse_interunit): Remove.
28213 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28214 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28215 (*float<SWI48x><X87MODEF>2_i387): Remove.
28216 (all float _with_temp splitters): Remove.
28217 (*float<SWI48x><MODEF>2_i387): New pattern.
28218 (*float<SWI48><MODEF>2_sse): New pattern.
28219 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28220 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28222 2014-03-14 Jakub Jelinek <jakub@redhat.com>
28223 Marek Polacek <polacek@redhat.com>
28225 PR middle-end/60484
28226 * common.opt (dump_base_name_prefixed): New Variable.
28227 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28228 if x_dump_base_name_prefixed is already set, set it at the end.
28230 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
28232 PR rtl-optimization/60508
28233 * lra-constraints.c (get_reload_reg): Add new parameter
28235 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28236 Pass the new parameter values.
28238 2014-03-14 Richard Biener <rguenther@suse.de>
28240 * common.opt: Revert unintented changes from r205065.
28241 * opts.c: Likewise.
28243 2014-03-14 Richard Biener <rguenther@suse.de>
28245 PR middle-end/60518
28246 * cfghooks.c (split_block): Properly adjust all loops the
28247 block was a latch of.
28249 2014-03-14 Martin Jambor <mjambor@suse.cz>
28252 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28255 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
28258 * config/avr/avr.c (avr_set_current_function): Pass function name
28259 through default_strip_name_encoding before sanity checking instead
28260 of skipping the first char of the assembler name.
28262 2014-03-13 Richard Henderson <rth@redhat.com>
28265 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28266 (ix86_force_to_memory, ix86_free_from_memory): Remove.
28267 * config/i386/i386-protos.h: Likewise.
28268 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28269 in the expander instead of a splitter.
28270 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28271 any possibility of requiring a memory.
28272 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28273 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28274 (fp branch splitters): Update for ix86_split_fp_branch.
28275 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28276 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28277 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28278 (*fop_<MODEF>_2_i387): Remove f/r alternative.
28279 (*fop_<MODEF>_3_i387): Likewise.
28280 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28281 (splitters for the fop_* register patterns): Remove.
28282 (fscalexf4_i387): Rename from *fscalexf4_i387.
28283 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28285 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28287 PR tree-optimization/59779
28288 * tree-dfa.c (get_ref_base_and_extent): Use double_int
28289 type for bitsize and maxsize instead of HOST_WIDE_INT.
28291 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
28293 PR rtl-optimization/57320
28294 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28295 the CFG after thread_prologue_and_epilogue_insns.
28297 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
28299 PR rtl-optimization/57189
28300 * lra-constraints.c (process_alt_operands): Disfavor spilling
28303 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
28305 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28307 2014-03-13 Jakub Jelinek <jakub@redhat.com>
28309 PR tree-optimization/59025
28310 PR middle-end/60418
28311 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28312 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28314 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
28317 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28318 calls of avr_out_plus_1.
28320 2014-03-13 Bin Cheng <bin.cheng@arm.com>
28322 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28323 BB's single pred and update the father loop's latch info later.
28325 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28327 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28331 (VEC_base): Likewise.
28332 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28333 registers, we need to swap double words in little endian mode.
28335 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28336 to be a container mode for 128-bit integer operations added in ISA
28337 2.07. Unlike TImode and PTImode, the preferred register set is
28338 the Altivec/VMX registers for the 128-bit operations.
28340 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28342 (rs6000_split_128bit_ok_p): Likewise.
28344 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28345 macros for creating ISA 2.07 normal and overloaded builtin
28346 functions with 3 arguments.
28347 (BU_P8V_OVERLOAD_3): Likewise.
28348 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28349 for use as overloaded functions.
28350 (VPERM_1TI_UNS): Likewise.
28351 (VSEL_1TI): Likewise.
28352 (VSEL_1TI_UNS): Likewise.
28353 (ST_INTERNAL_1ti): Likewise.
28354 (LD_INTERNAL_1ti): Likewise.
28355 (XXSEL_1TI): Likewise.
28356 (XXSEL_1TI_UNS): Likewise.
28357 (VPERM_1TI): Likewise.
28358 (VPERM_1TI_UNS): Likewise.
28359 (XXPERMDI_1TI): Likewise.
28360 (SET_1TI): Likewise.
28361 (LXVD2X_V1TI): Likewise.
28362 (STXVD2X_V1TI): Likewise.
28363 (VEC_INIT_V1TI): Likewise.
28364 (VEC_SET_V1TI): Likewise.
28365 (VEC_EXT_V1TI): Likewise.
28366 (EQV_V1TI): Likewise.
28367 (NAND_V1TI): Likewise.
28368 (ORC_V1TI): Likewise.
28369 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28370 added in ISA 2.07. Add both normal 'altivec' builtins, and the
28371 overloaded builtin.
28372 (VADDUQM): Likewise.
28373 (VSUBCUQ): Likewise.
28374 (VADDEUQM): Likewise.
28375 (VADDECUQ): Likewise.
28376 (VSUBEUQM): Likewise.
28377 (VSUBECUQ): Likewise.
28379 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28380 __int128_t and __uint128_t types.
28381 (__uint128_type): Likewise.
28382 (altivec_categorize_keyword): Add support for vector __int128_t,
28383 vector __uint128_t, vector __int128, and vector unsigned __int128
28384 as a container type for TImode operations that need to be done in
28385 VSX/Altivec registers.
28386 (rs6000_macro_to_expand): Likewise.
28387 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28388 to support 128-bit integer instructions vaddcuq, vadduqm,
28389 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28390 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28392 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28393 for V1TImode, and set up preferences to use VSX/Altivec registers.
28394 Setup VSX reload handlers.
28395 (rs6000_debug_reg_global): Likewise.
28396 (rs6000_init_hard_regno_mode_ok): Likewise.
28397 (rs6000_preferred_simd_mode): Likewise.
28398 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28399 (easy_altivec_constant): Likewise.
28400 (output_vec_const_move): Likewise.
28401 (rs6000_expand_vector_set): Convert V1TImode set and extract to
28403 (rs6000_expand_vector_extract): Likewise.
28404 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28406 (rs6000_const_vec): Add support for V1TImode.
28407 (rs6000_emit_le_vsx_load): Swap double words when loading or
28408 storing TImode/V1TImode.
28409 (rs6000_emit_le_vsx_store): Likewise.
28410 (rs6000_emit_le_vsx_move): Likewise.
28411 (rs6000_emit_move): Add support for V1TImode.
28412 (altivec_expand_ld_builtin): Likewise.
28413 (altivec_expand_st_builtin): Likewise.
28414 (altivec_expand_vec_init_builtin): Likewise.
28415 (altivec_expand_builtin): Likewise.
28416 (rs6000_init_builtins): Add support for V1TImode type. Add
28417 support for ISA 2.07 128-bit integer builtins. Define type names
28418 for the VSX/Altivec vector types.
28419 (altivec_init_builtins): Add support for overloaded vector
28420 functions with V1TImode type.
28421 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28422 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28424 (rs6000_split_128bit_ok_p): Likewise.
28425 (rs6000_handle_altivec_attribute): Create V1TImode from vector
28426 __int128_t and vector __uint128_t.
28428 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28429 and mode attributes.
28431 (VSX_M2): Likewise.
28436 (VS_scalar): Likewise.
28437 (VS_double): Likewise.
28438 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28440 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28441 we support the ISA 2.07 128-bit integer arithmetic instructions.
28442 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28443 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28444 and TImode types for use with the builtin functions.
28445 (V1TI_type_node): Likewise.
28446 (unsigned_V1TI_type_node): Likewise.
28447 (intTI_type_internal_node): Likewise.
28448 (uintTI_type_internal_node): Likewise.
28450 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28451 128-bit builtin functions.
28452 (UNSPEC_VADDEUQM): Likewise.
28453 (UNSPEC_VADDECUQ): Likewise.
28454 (UNSPEC_VSUBCUQ): Likewise.
28455 (UNSPEC_VSUBEUQM): Likewise.
28456 (UNSPEC_VSUBECUQ): Likewise.
28457 (VM): Add V1TImode to vector mode iterators.
28459 (VI_unit): Likewise.
28460 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28461 (altivec_vaddcuq): Likewise.
28462 (altivec_vsubuqm): Likewise.
28463 (altivec_vsubcuq): Likewise.
28464 (altivec_vaddeuqm): Likewise.
28465 (altivec_vaddecuq): Likewise.
28466 (altivec_vsubeuqm): Likewise.
28467 (altivec_vsubecuq): Likewise.
28469 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28471 (BOOL_128): Likewise.
28472 (BOOL_REGS_OUTPUT): Likewise.
28473 (BOOL_REGS_OP1): Likewise.
28474 (BOOL_REGS_OP2): Likewise.
28475 (BOOL_REGS_UNARY): Likewise.
28476 (BOOL_REGS_AND_CR0): Likewise.
28478 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28479 128-bit integer builtin support.
28480 (vec_vadduqm): Likewise.
28481 (vec_vaddecuq): Likewise.
28482 (vec_vaddeuqm): Likewise.
28483 (vec_vsubecuq): Likewise.
28484 (vec_vsubeuqm): Likewise.
28485 (vec_vsubcuq): Likewise.
28486 (vec_vsubuqm): Likewise.
28488 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28489 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28490 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28491 128-bit integer add/subtract to ISA 2.07.
28493 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
28495 * config/arc/arc.c (arc_predicate_delay_insns):
28496 Fix third argument passed to conditionalize_nonjump.
28498 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
28500 * config/aarch64/aarch64-builtins.c
28501 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28502 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28503 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28504 instead of __builtin_lfloor.
28505 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28507 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28509 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28510 (tree_ssa_ifcombine_bb_1): New function.
28511 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
28512 is an empty forwarder block to then_bb or vice versa and then_bb
28513 and else_bb are effectively swapped.
28515 2014-03-12 Christian Bruel <christian.bruel@st.com>
28518 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28519 REG_CFA_DEF_CFA note.
28520 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28521 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28523 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28525 PR tree-optimization/60454
28526 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28528 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28530 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28531 Do not define target_cpu_default2 to generic.
28532 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28533 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28534 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28536 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28537 Marc Glisse <marc.glisse@inria.fr>
28539 PR tree-optimization/60502
28540 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28541 instead of build_low_bits_mask.
28543 2014-03-12 Jakub Jelinek <jakub@redhat.com>
28545 PR middle-end/60482
28546 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28547 if there are multiple uses, but op doesn't live on E edge.
28548 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28549 clobber stmts before __builtin_unreachable.
28551 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
28553 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28554 hard_frame_pointer_rtx.
28555 * cse.c (cse_insn): Remove volatile check.
28556 * cselib.c (cselib_process_insn): Likewise.
28557 * dse.c (scan_insn): Likewise.
28559 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28561 * config/arc/arc.c (conditionalize_nonjump): New function,
28563 (arc_ifcvt): ... this.
28564 (arc_predicate_delay_insns): Use it.
28566 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
28568 * config/arc/predicates.md (extend_operand): During/after reload,
28569 allow const_int_operand.
28570 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28571 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
28572 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28574 (umulsi3_highpart_i): Likewise.
28576 2014-03-11 Richard Biener <rguenther@suse.de>
28578 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28579 Add asserts to guard possible wrong-code bugs.
28581 2014-03-11 Richard Biener <rguenther@suse.de>
28583 PR tree-optimization/60429
28584 PR tree-optimization/60485
28585 * tree-ssa-structalias.c (set_union_with_increment): Properly
28586 take into account all fields that overlap the shifted vars.
28587 (do_sd_constraint): Likewise.
28588 (do_ds_constraint): Likewise.
28589 (get_constraint_for_ptr_offset): Likewise.
28591 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
28593 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28594 (nios2_compute_frame_layout):
28595 Add calculation of cfun->machine->fp_save_offset.
28596 (nios2_expand_prologue): Correct setting of frame pointer register
28598 (nios2_expand_epilogue): Update recovery of stack pointer from
28599 frame pointer accordingly.
28600 (nios2_initial_elimination_offset): Update calculation of offset
28601 for eliminating to HARD_FRAME_POINTER_REGNUM.
28603 2014-03-10 Jakub Jelinek <jakub@redhat.com>
28606 * ipa.c (symtab_remove_unreachable_nodes): Don't call
28607 cgraph_get_create_node on VAR_DECLs.
28609 2014-03-10 Richard Biener <rguenther@suse.de>
28611 PR middle-end/60474
28612 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28614 2014-03-08 Douglas B Rupp <rupp@gnat.com>
28616 * config/vms/vms.opt (vms_float_format): New variable.
28618 2014-03-08 Tobias Burnus <burnus@net-b.de>
28620 * doc/invoke.texi (-fcilkplus): Update implementation status.
28622 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
28623 Richard Biener <rguenther@suse.de>
28625 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28626 consistently accross all TUs.
28627 (run_gcc): Enable -fshort-double automatically at link at link-time
28628 and disallow override.
28630 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
28633 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28634 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28635 if they can't be used.
28637 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28639 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28640 for Solaris 11/x86 ld.
28641 * configure: Regenerate.
28643 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28645 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28646 (LIB_TLS_SPEC): Save as ld_tls_libs.
28647 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28648 (HAVE_AS_IX86_TLSLDM): New test.
28649 * configure, config.in: Regenerate.
28650 * config/i386/i386.c (legitimize_tls_address): Fall back to
28651 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28652 cannot support TLS_MODEL_LOCAL_DYNAMIC.
28653 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28654 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28656 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
28658 * common.opt (fira-loop-pressure): Mark as optimization.
28660 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
28662 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28663 an OpenMP mappable type.
28665 2014-03-06 Matthias Klose <doko@ubuntu.com>
28667 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28668 MULTILIB_OSDIRNAMES is not defined.
28670 2014-03-06 Jakub Jelinek <jakub@redhat.com>
28671 Meador Inge <meadori@codesourcery.com>
28674 * config/arm/arm.c (arm_tls_symbol_p): Remove.
28675 (arm_legitimize_address): Call legitimize_tls_address for any
28676 arm_tls_referenced_p expression, handle constant addend. Call it
28677 before testing for !TARGET_ARM.
28678 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28680 2014-03-06 Richard Biener <rguenther@suse.de>
28682 PR middle-end/60445
28686 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28688 * tree-streamer.c (record_common_node): Assert we don't record
28689 nodes with type double.
28690 (preload_common_node): Skip type double, complex double and double
28691 pointer since it is now frontend dependent due to fshort-double option.
28693 2014-03-06 Richard Biener <rguenther@suse.de>
28695 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28696 or -fno-lto is specified and the linker has full plugin support.
28697 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28698 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28699 * lto-wrapper.c (merge_and_complain): Merge compile-time
28700 optimization levels.
28701 (run_gcc): And pass it through to the link options.
28703 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
28707 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28709 * cselib.c (remove_useless_values): Skip to avoid quadratic
28710 behavior if the condition moved from...
28711 (cselib_process_insn): ... here holds.
28713 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28716 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28717 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28720 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28721 (TM_H): Add x86-tune.def.
28723 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28725 * config/aarch64/aarch64.c (generic_tunings):
28726 Use cortexa57_extra_costs.
28728 2014-03-05 Jakub Jelinek <jakub@redhat.com>
28731 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28732 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28733 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28736 2014-03-04 Heiher <r@hev.cc>
28738 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28739 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28741 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
28743 * config/i386/predicates.md (const2356_operand): Change to ...
28744 (const2367_operand): ... this.
28745 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28747 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28748 (*avx512pf_scatterpf<mode>sf): Ditto.
28749 (avx512pf_scatterpf<mode>df): Ditto.
28750 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28751 (*avx512pf_scatterpf<mode>df): Ditto.
28752 * config/i386/i386.c (ix86_expand_builtin): Update
28753 incorrect hint operand error message.
28755 2014-03-04 Richard Biener <rguenther@suse.de>
28757 * lto-section-in.c (lto_get_section_data): Fix const cast.
28759 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
28761 * tree-streamer.c (record_common_node): Assert we don't record
28762 nodes with type double.
28763 (preload_common_node): Skip type double, complex double and double
28764 pointer since it is now frontend dependent due to fshort-double option.
28766 2014-03-04 Richard Biener <rguenther@suse.de>
28769 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28770 (lto_input_toplevel_asms): Likewise.
28771 * lto-section-in.c (lto_get_section_data): Instead do it here
28774 2014-03-04 Richard Biener <rguenther@suse.de>
28776 PR tree-optimization/60382
28777 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28778 dead PHIs a reduction.
28780 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
28782 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28784 (_mm_prefetch): Move out of GCC target("sse") pragma.
28785 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28786 GCC target("prfchw") pragma.
28787 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28789 * config/i386/i386.c (ix86_option_override_internal): Enable
28790 -mprfchw with -mprefetchwt1.
28792 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28794 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28797 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
28799 * opts.h (CL_PCH_IGNORE): Define.
28800 * targhooks.c (option_affects_pch_p):
28801 Return false for options that have CL_PCH_IGNORE set.
28802 * opt-functions.awk: Process PchIgnore.
28803 * doc/options.texi: Document PchIgnore.
28805 * config/arc/arc.opt (misize): Add PchIgnore property.
28807 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28809 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28810 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28811 constraint on constants to permit them being loaded into
28812 GENERAL_REGS or BASE_REGS.
28814 2014-03-03 Nick Clifton <nickc@redhat.com>
28816 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28817 anti-cacnonical alternatives.
28818 (negandhi3_real): New pattern.
28819 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28821 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28823 * config/avr/avr-mcus.def: Remove atxmega16x1.
28824 * config/avr/avr-tables.opt: Regenerate.
28825 * config/avr/t-multilib: Regenerate.
28826 * doc/avr-mmcu.texi: Regenerate.
28828 2014-03-03 Tobias Grosser <tobias@grosser.es>
28829 Mircea Namolaru <mircea.namolaru@inria.fr>
28831 PR tree-optimization/58028
28832 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28835 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28837 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28838 not handled by recognizers.
28840 2014-03-03 Jakub Jelinek <jakub@redhat.com>
28842 PR middle-end/60175
28843 * function.c (expand_function_end): Don't emit
28844 clobber_return_register sequence if clobber_after is a BARRIER.
28845 * cfgexpand.c (construct_exit_block): Append instructions before
28846 return_label to prev_bb.
28848 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28850 * config/rs6000/constraints.md: Document reserved use of "wc".
28852 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28855 * ipa.c (function_and_variable_visibility): When dissolving comdat
28856 group, also set all symbols to local.
28858 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
28863 2013-12-14 Jan Hubicka <jh@suse.cz>
28864 PR middle-end/58477
28865 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28867 2014-03-02 Jon Beniston <jon@beniston.com>
28873 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28874 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28875 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28876 (simple_return, *simple_return): New patterns
28877 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28878 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28880 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
28882 * dwarf2out.c (gen_subprogram_die): Tidy.
28884 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
28887 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28888 (*mov_t_msb_neg_negc): ... this new insn.
28890 2014-02-28 Jason Merrill <jason@redhat.com>
28893 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28896 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
28899 * dwarf2out.c (decltype_auto_die): New static.
28900 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28901 (gen_type_die_with_usage): Handle 'decltype(auto)'.
28902 (is_cxx_auto): Likewise.
28904 2014-02-28 Ian Bolton <ian.bolton@arm.com>
28906 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28907 we are not using general regs only.
28909 2014-02-28 Richard Biener <rguenther@suse.de>
28912 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28913 previous fix and only allow to remove trivial pre-headers
28914 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28915 (remove_forwarder_block): Properly update the latch of a loop.
28917 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28920 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28921 (cselib_preserved_hash_table): New.
28922 (preserve_constants_and_equivs): Move preserved vals to it.
28923 (cselib_find_slot): Look it up first.
28924 (cselib_init): Initialize it.
28925 (cselib_finish): Release it.
28926 (dump_cselib_table): Dump it.
28928 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28931 * cselib.c (remove_useless_values): Skip to avoid quadratic
28932 behavior if the condition moved from...
28933 (cselib_process_insn): ... here holds.
28935 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
28938 * var-tracking.c (vt_initialize): Apply the same condition to
28939 preserve the CFA base value.
28941 2014-02-28 Joey Ye <joey.ye@arm.com>
28944 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28945 if reload in progress or completed.
28947 2014-02-28 Tobias Burnus <burnus@net-b.de>
28949 PR middle-end/60147
28950 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28953 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
28955 * doc/tm.texi.in (Condition Code Status): Update documention for
28956 relative locations of cc0-setter and cc0-user.
28958 2014-02-27 Jeff Law <law@redhat.com>
28960 PR rtl-optimization/52714
28961 * combine.c (try_combine): When splitting an unrecognized PARALLEL
28962 into two independent simple sets, if I3 is a jump, ensure the
28963 pattern we place into I3 is a (set (pc) ...).
28965 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
28966 Jeff Law <law@redhat.com>
28968 PR rtl-optimization/49847
28969 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28970 are in different blocks.
28971 * doc/tm.texi (Condition Code Status): Update documention for
28972 relative locations of cc0-setter and cc0-user.
28974 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
28977 * lra.c (lra_emit_add): Check SUBREG too.
28979 2014-02-27 Andreas Schwab <schwab@suse.de>
28981 * config/m68k/m68k.c (m68k_option_override): Disable
28982 -flive-range-shrinkage for classic m68k.
28983 (m68k_override_options_after_change): Likewise.
28985 2014-02-27 Marek Polacek <polacek@redhat.com>
28987 PR middle-end/59223
28988 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28989 -Wmaybe-uninitialized.
28991 2014-02-27 Alan Modra <amodra@gmail.com>
28994 * reload1.c (emit_input_reload_insns): When reload_override_in,
28995 set old to rl->in_reg when rl->in_reg is a subreg.
28997 2014-02-26 Richard Biener <rguenther@suse.de>
29000 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29002 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29004 * common/config/i386/predicates.md (const1256_operand): Remove.
29005 (const2356_operand): New.
29006 (const_1_to_2_operand): Remove.
29007 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29008 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29009 (*avx512pf_gatherpf<mode>sf): Ditto.
29010 (avx512pf_gatherpf<mode>df): Ditto.
29011 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29012 (*avx512pf_gatherpf<mode>df): Ditto.
29013 (avx512pf_scatterpf<mode>sf): Ditto.
29014 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29015 (*avx512pf_scatterpf<mode>sf): Ditto.
29016 (avx512pf_scatterpf<mode>df): Ditto.
29017 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29018 (*avx512pf_scatterpf<mode>df): Ditto.
29019 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29021 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
29023 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29024 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29025 (_mm512_mask_testn_epi64_mask): Move to ...
29026 * config/i386/avx512cdintrin.h: Here.
29027 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29028 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29029 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29030 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29031 TARGET_AVX512F from TARGET_AVX512CD.
29033 2014-02-26 Richard Biener <rguenther@suse.de>
29036 * ipa.c (walk_polymorphic_call_targets): Properly guard
29037 call to inline_update_overall_summary.
29039 2014-02-26 Bin Cheng <bin.cheng@arm.com>
29042 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29043 and latches only if requested. Fix latch if it is removed.
29044 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29045 LOOPS_HAVE_PREHEADERS.
29047 2014-02-25 Andrew Pinski <apinski@cavium.com>
29049 * builtins.c (expand_builtin_thread_pointer): Create a new target
29050 when the target is NULL.
29052 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
29054 PR rtl-optimization/60317
29055 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29056 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29057 * lra-assigns.c: Include params.h.
29058 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29059 other reload pseudos considerations.
29061 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29063 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29064 to use canonical form for nor<mode>3.
29066 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29069 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29072 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
29074 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29075 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29076 (ix86_handle_option): Handle OPT_mprefetchwt1.
29077 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29078 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29080 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29081 OPTION_MASK_ISA_PREFETCHWT1.
29082 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29083 (PTA_PREFETCHWT1): New.
29084 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29085 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29086 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29087 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29088 (*prefetch_avx512pf_<mode>_: Change into ...
29089 (*prefetch_prefetchwt1_<mode>: This.
29090 * config/i386/i386.opt (mprefetchwt1): New.
29091 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29092 (_mm_prefetch): Handle intent to write.
29093 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29095 2014-02-25 Richard Biener <rguenther@suse.de>
29097 PR middle-end/60291
29098 * emit-rtl.c (mem_attrs_htab): Remove.
29099 (mem_attrs_htab_hash): Likewise.
29100 (mem_attrs_htab_eq): Likewise.
29101 (set_mem_attrs): Always allocate new mem-attrs when something changed.
29102 (init_emit_once): Do not allocate mem_attrs_htab.
29104 2014-02-25 Richard Biener <rguenther@suse.de>
29107 * lto-opts.c (lto_write_options): Output non-explicit conservative
29108 -fwrapv, -fno-trapv and -fno-strict-overflow.
29109 * lto-wrapper.c (merge_and_complain): Handle merging those options.
29110 (run_gcc): And pass them through.
29112 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29114 * sel-sched.c (calculate_new_fences): New parameter ptime.
29115 Calculate it as a maximum over all fence cycles.
29116 (sel_sched_region_2): Adjust the call to calculate_new_fences.
29117 Print the final schedule timing when sched_verbose.
29119 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
29121 PR rtl-optimization/60292
29122 * sel-sched.c (fill_vec_av_set): Do not reset target availability
29123 bit fot the fence instruction.
29125 2014-02-24 Alangi Derick <alangiderick@gmail.com>
29127 * calls.h: Fix typo in comment.
29129 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
29131 * config/pa/pa.c (pa_output_move_double): Don't valididate when
29132 adjusting offsetable addresses.
29134 2014-02-24 Guozhi Wei <carrot@google.com>
29136 * sparseset.h (sparseset_pop): Fix the wrong index.
29138 2014-02-24 Walter Lee <walt@tilera.com>
29140 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29141 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29143 * common/config/tilegx/tilegx-common.c
29144 (TARGET_DEFAULT_TARGET_FLAGS): Define.
29145 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29146 (LINK_SPEC): Ditto.
29147 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29148 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29149 (tilegx_gimplify_va_arg_expr): Handle big endian.
29150 (tilegx_expand_unaligned_load): Ditto.
29151 (tilegx_expand_unaligned_store): Ditto.
29152 (TARGET_RETURN_IN_MSB): New.
29153 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29154 (TARGET_ENDIAN_DEFAULT): New.
29155 (TARGET_BIG_ENDIAN): Handle big endian.
29156 (BYTES_BIG_ENDIAN): Ditto.
29157 (WORDS_BIG_ENDIAN): Ditto.
29158 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29159 (ENDIAN_SPEC): New.
29160 (EXTRA_SPECS): New.
29161 * config/tilegx/tilegx.md (extv): Handle big endian.
29163 (insn_st<n>): Ditto.
29164 (insn_st<n>_add<bitsuffix>): Ditto.
29165 (insn_stnt<n>): Ditto.
29166 (insn_stnt<n>_add<bitsuffix>):Ditto.
29167 (vec_interleave_highv8qi): Handle big endian.
29168 (vec_interleave_highv8qi_be): New.
29169 (vec_interleave_highv8qi_le): New.
29170 (insn_v1int_h): Handle big endian.
29171 (vec_interleave_lowv8qi): Handle big endian.
29172 (vec_interleave_lowv8qi_be): New.
29173 (vec_interleave_lowv8qi_le): New.
29174 (insn_v1int_l): Handle big endian.
29175 (vec_interleave_highv4hi): Handle big endian.
29176 (vec_interleave_highv4hi_be): New.
29177 (vec_interleave_highv4hi_le): New.
29178 (insn_v2int_h): Handle big endian.
29179 (vec_interleave_lowv4hi): Handle big endian.
29180 (vec_interleave_lowv4hi_be): New.
29181 (vec_interleave_lowv4hi_le): New.
29182 (insn_v2int_l): Handle big endian.
29183 (vec_interleave_highv2si): Handle big endian.
29184 (vec_interleave_highv2si_be): New.
29185 (vec_interleave_highv2si_le): New.
29186 (insn_v4int_h): Handle big endian.
29187 (vec_interleave_lowv2si): Handle big endian.
29188 (vec_interleave_lowv2si_be): New.
29189 (vec_interleave_lowv2si_le): New.
29190 (insn_v4int_l): Handle big endian.
29191 * config/tilegx/tilegx.opt (mbig-endian): New option.
29192 (mlittle-endian): New option.
29193 * doc/install.texi: Document tilegxbe-linux.
29194 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29196 2014-02-24 Martin Jambor <mjambor@suse.cz>
29199 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29200 there are no parameter descriptors.
29202 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
29204 PR rtl-optimization/60268
29205 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29206 initialization to ...
29207 (sched_rgn_init): ... here.
29208 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29210 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29212 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29215 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
29217 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29220 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29222 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29223 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29225 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
29227 * config/microblaze/predicates.md: Add cmp_op predicate.
29228 * config/microblaze/microblaze.md: Add branch_compare instruction
29229 which uses cmp_op predicate and emits cmp insn before branch.
29230 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29231 to microblaze_expand_conditional_branch and consolidate logic.
29232 (microblaze_expand_conditional_branch): emit branch_compare
29233 insn instead of handling cmp op separate from branch insn.
29235 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29237 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29240 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29242 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29243 define_insn with define_expand and new define_insn
29244 *altivec_lve<VI_char>x_internal.
29245 (altivec_stve<VI_char>x): Replace define_insn with define_expand
29246 and new define_insn *altivec_stve<VI_char>x_internal.
29247 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29249 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29251 (altivec_expand_stvex_be): New function.
29253 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
29255 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29256 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29257 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29258 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29260 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
29263 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29264 instead of emit_move_insn.
29266 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29268 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29269 vspltw with vsldoi.
29270 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29271 gen_altivec_vsumsws.
29273 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29275 * config/rs6000/altivec.md (altivec_lvxl): Rename as
29276 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29277 (altivec_lvxl_<mode>): New define_expand incorporating
29278 -maltivec=be semantics where needed.
29279 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29280 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29281 semantics where needed.
29282 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29283 (altivec_stvx_<mode>): New define_expand incorporating
29284 -maltivec=be semantics where needed.
29285 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29286 VM2 iterator instead of V4SI.
29287 (altivec_stvxl_<mode>): New define_expand incorporating
29288 -maltivec=be semantics where needed.
29289 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29290 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29291 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29292 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29293 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29294 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29295 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29296 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29297 ALTIVEC_BUILTIN_STVXL.
29298 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29299 (altivec_expand_stvx_be): Likewise.
29300 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29301 (altivec_expand_lvx_be): Likewise.
29302 (altivec_expand_stvx_be): Likewise.
29303 (altivec_expand_builtin): Add cases for
29304 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29305 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29306 (altivec_init_builtins): Add definitions for
29307 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29308 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29310 2014-02-21 Catherine Moore <clm@codesourcery.com>
29312 * doc/invoke.texi (mvirt, mno-virt): Document.
29313 * config/mips/mips.opt (mvirt): New option.
29314 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29316 2014-02-21 Richard Biener <rguenther@suse.de>
29318 PR tree-optimization/60276
29319 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29320 (STMT_VINFO_MIN_NEG_DIST): New macro.
29321 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29322 STMT_VINFO_MIN_NEG_DIST.
29323 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29324 made for negative dependence distances still hold.
29326 2014-02-21 Richard Biener <rguenther@suse.de>
29328 PR middle-end/60291
29329 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29330 DECL_INITIAL for globals not in the current function context.
29332 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29334 PR tree-optimization/56490
29335 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29336 * tree-ssa-uninit.c: Include params.h.
29337 (compute_control_dep_chain): Add num_calls argument, return false
29338 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29339 num_calls to recursive call.
29340 (find_predicates): Change dep_chain into normal array,
29341 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29342 variable and adjust compute_control_dep_chain caller.
29343 (find_def_preds): Likewise.
29345 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
29347 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29348 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29350 2014-02-21 Nick Clifton <nickc@redhat.com>
29352 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29353 (pushhi1): Likewise.
29354 (popqi1): Add mode to pre_dec.
29355 (pophi1): Likewise.
29357 2014-02-21 Jakub Jelinek <jakub@redhat.com>
29359 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29360 mode for mask of V8SFmode permutation.
29362 2014-02-20 Richard Henderson <rth@redhat.com>
29365 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29366 a new pseudo for OLDVAL.
29368 2014-02-20 Jakub Jelinek <jakub@redhat.com>
29371 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29372 gen_reg_rtx if d->testing_p.
29373 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29374 if d->testing_p and we will certainly return true.
29375 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
29378 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
29380 * emit-rtl.c (gen_reg_rtx): Assert that
29381 crtl->emit.regno_pointer_align_length is non-zero.
29383 2014-02-20 Richard Henderson <rth@redhat.com>
29386 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29387 on failure the store back into EXPECT.
29389 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
29390 Sandra Loosemore <sandra@codesourcery.com>
29392 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29393 * config/nios2/nios2.c (nios2_function_profiler): Add
29394 -fPIC (flag_pic == 2) support.
29395 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29396 (nios2_large_offset_p): New function.
29397 (nios2_unspec_reloc_p): Move up position, update to use
29398 nios2_large_offset_p.
29399 (nios2_unspec_address): Remove function.
29400 (nios2_unspec_offset): New function.
29401 (nios2_large_got_address): New function.
29402 (nios2_got_address): Add large offset support.
29403 (nios2_legitimize_tls_address): Update usage of removed and new
29405 (nios2_symbol_binds_local_p): New function.
29406 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29407 (nios2_legitimize_address): Update to use nios2_large_offset_p.
29408 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29409 (nios2_print_operand): Merge H/L processing, add hiadj/lo
29410 processing for (const (unspec ...)).
29411 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29413 2014-02-20 Richard Biener <rguenther@suse.de>
29415 * tree-cfg.c (replace_uses_by): Mark altered BBs before
29416 doing the substitution.
29417 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29419 2014-02-20 Martin Jambor <mjambor@suse.cz>
29422 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29423 info when checking whether lattices are bottom.
29425 2014-02-20 Richard Biener <rguenther@suse.de>
29427 PR middle-end/60221
29428 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29431 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
29434 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29435 parameter specifying the scaling.
29436 (inline_call): Update.
29437 (want_inline_recursively): Guard division by zero.
29438 (recursive_inlining): Update.
29439 * ipa-inline.h (clone_inlined_nodes): Update.
29441 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29444 * config/i386/i386.c (classify_argument): Pass structures of size
29445 64 bytes or less in register.
29447 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
29448 Kirill Yukhin <kirill.yukhin@intel.com>
29450 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29451 (_mm_rcp28_round_ss): Ditto.
29452 (_mm_rsqrt28_round_sd): Ditto.
29453 (_mm_rsqrt28_round_ss): Ditto.
29454 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29455 (_mm_rcp14_round_ss): Ditto.
29456 (_mm_rsqrt14_round_sd): Ditto.
29457 (_mm_rsqrt14_round_ss): Ditto.
29458 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29459 the first input operand, get rid of match_dup.
29460 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29462 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29464 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29465 operand as the first input operand, set type attribute.
29466 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29467 Set type attribute.
29468 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29469 operand as the first input operand, set type attribute.
29471 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29473 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29476 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
29479 * config/i386/i386.c (construct_container): Remove TFmode check
29480 for X86_64_INTEGER_CLASS.
29482 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
29485 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29486 only when -Wpsabi is enabled.
29488 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
29491 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29492 passing arrays in registers are the same as for structs, so remove the
29493 special case for them.
29495 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
29497 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29498 destination type, extract only the valid bits if the source type is not
29499 integral and has a different mode.
29501 2014-02-19 Richard Biener <rguenther@suse.de>
29504 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29507 2014-02-19 Richard Biener <rguenther@suse.de>
29510 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29511 (ipa_modify_call_arguments): Emit an argument load explicitely and
29512 preserve virtual SSA form there and for the replacement call.
29513 Do not update SSA form nor free dominance info.
29515 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29517 * ipa.c (function_and_variable_visibility): Also clear WEAK
29518 flag when disolving COMDAT_GROUP.
29520 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29522 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29523 * ipa-prop.c (ipa_set_jf_known_type): Return early when
29524 not devirtualizing.
29525 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29526 do more sanity checks.
29527 (detect_type_change): Return true when giving up early.
29528 (compute_complex_assign_jump_func): Fix type parameter of
29529 ipa_set_ancestor_jf.
29530 (compute_complex_ancestor_jump_func): Likewise.
29531 (update_jump_functions_after_inlining): Fix updating of
29533 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29535 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
29537 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29538 inline clones when edge disappears.
29540 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
29543 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29544 Split 64-bit moves into 2 patterns. Do not allow the use of
29545 direct move for TDmode in little endian, since the decimal value
29546 has little endian bytes within a word, but the 64-bit pieces are
29547 ordered in a big endian fashion, and normal subreg's of TDmode are
29549 (mov<mode>_64bit_dm): Likewise.
29550 (movtd_64bit_nodm): Likewise.
29552 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29554 PR tree-optimization/60174
29555 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29556 statement of an SSA_NAME that occurs in an abnormal PHI node.
29558 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29561 * final.c (SEEN_BB): Remove.
29562 (SEEN_NOTE, SEEN_EMITTED): Renumber.
29563 (final_scan_insn): Don't force_source_line on second
29564 NOTE_INSN_BASIC_BLOCK.
29566 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
29569 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29570 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29571 (type_natural_mode): Warn ABI change when %zmm register is not
29572 available for AVX512F vector value passing.
29574 2014-02-18 Kai Tietz <ktietz@redhat.com>
29577 * config/i386/i386.c (ix86_expand_prologue): Use value in
29578 rax register as displacement when restoring %r10 or %rax.
29579 Fix wrong offset when restoring both registers.
29581 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
29583 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29584 assertion with conditional return.
29586 2014-02-18 Jakub Jelinek <jakub@redhat.com>
29587 Uros Bizjak <ubizjak@gmail.com>
29590 * config/i386/driver-i386.c (host_detect_local_cpu): If
29591 YMM state is not saved by the OS, also clear has_f16c. Move
29592 CPUID 0x80000001 handling before YMM state saving checking.
29594 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
29596 PR rtl-optimization/58960
29597 * haifa-sched.c (alloc_global_sched_pressure_data): New,
29598 factored out from ...
29599 (sched_init): ... here.
29600 (free_global_sched_pressure_data): New, factored out from ...
29601 (sched_finish): ... here.
29602 * sched-int.h (free_global_sched_pressure_data): Declare.
29603 * sched-rgn.c (nr_regions_initial): New static global.
29604 (haifa_find_rgns): Initialize it.
29605 (schedule_region): Disable sched-pressure for the newly
29608 2014-02-17 Richard Biener <rguenther@suse.de>
29610 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29611 release SSA defs of pattern stmts.
29613 2014-02-17 Richard Biener <rguenther@suse.de>
29615 * tree-inline.c (expand_call_inline): Release the virtual
29616 operand defined by the call we are about to inline.
29618 2014-02-17 Richard Biener <rguenther@suse.de>
29620 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29622 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
29623 Ilya Tocar <ilya.tocar@intel.com>
29625 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29626 arguments order in builtin.
29627 (_mm512_permutexvar_epi64): Ditto.
29628 (_mm512_mask_permutexvar_epi64): Ditto
29629 (_mm512_maskz_permutexvar_epi32): Ditto
29630 (_mm512_permutexvar_epi32): Ditto
29631 (_mm512_mask_permutexvar_epi32): Ditto
29633 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29635 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29636 (p8_vmrgow): Likewise.
29638 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29640 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29643 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29646 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29647 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29648 into 64-bit and 32-bit moves. On 64-bit moves, add support for
29649 using direct move instructions on ISA 2.07. Also adjust
29650 instruction length for 64-bit.
29651 (mov<mode>_64bit, TFmode/TDmode): Likewise.
29652 (mov<mode>_32bit, TFmode/TDmode): Likewise.
29654 2014-02-15 Alan Modra <amodra@gmail.com>
29658 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29659 find_replacement on parts of insn rtl that might be reloaded.
29661 2014-02-15 Richard Biener <rguenther@suse.de>
29663 PR tree-optimization/60183
29664 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29665 (tree_ssa_phiprop): Calculate and free post-dominators.
29667 2014-02-14 Jeff Law <law@redhat.com>
29669 PR rtl-optimization/60131
29670 * ree.c (get_extended_src_reg): New function.
29671 (combine_reaching_defs): Use it rather than assuming location of REG.
29672 (find_and_remove_re): Verify first operand of extension is
29673 a REG before adding the insns to the copy list.
29675 2014-02-14 Roland McGrath <mcgrathr@google.com>
29677 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29678 * configure: Regenerated.
29679 * config.in: Regenerated.
29680 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29681 instead of ASM_SHORT.
29683 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
29684 Richard Earnshaw <rearnsha@arm.com>
29686 PR rtl-optimization/59535
29687 * lra-constraints.c (process_alt_operands): Encourage alternative
29688 when unassigned pseudo class is superset of the alternative class.
29689 (inherit_reload_reg): Don't inherit when optimizing for code size.
29690 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29691 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29692 modes not less than 4 for Thumb1.
29694 2014-02-14 Kyle McMartin <kyle@redhat.com>
29697 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29699 2014-02-14 Richard Biener <rguenther@suse.de>
29701 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29702 (get_frame_arg): Drop the assert with langhook types_compatible_p.
29703 Do not strip INDIRECT_REFs.
29705 2014-02-14 Richard Biener <rguenther@suse.de>
29708 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29709 DECL_FUNCTION_SPECIFIC_TARGET.
29710 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29711 * tree-streamer-out.c (pack_ts_target_option): Remove.
29712 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29713 (write_ts_function_decl_tree_pointers): Do not stream
29714 DECL_FUNCTION_SPECIFIC_TARGET.
29715 * tree-streamer-in.c (unpack_ts_target_option): Remove.
29716 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29717 (lto_input_ts_function_decl_tree_pointers): Do not stream
29718 DECL_FUNCTION_SPECIFIC_TARGET.
29720 2014-02-14 Jakub Jelinek <jakub@redhat.com>
29722 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29723 (get_initial_def_for_induction, vectorizable_induction): Ignore
29724 debug stmts when looking for exit_phi.
29725 (vectorizable_live_operation): Fix up condition.
29727 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29729 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29730 nreverse() because it changes the content of original tree list.
29732 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29734 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29735 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29737 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
29739 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29740 GNU coding standards.
29742 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29745 * dwarf2out.c (gen_subprogram_die): Don't call
29746 add_calling_convention_attribute if subr_die is old_die.
29748 2014-02-13 Sharad Singhai <singhai@google.com>
29750 * doc/optinfo.texi: Fix order of nodes.
29752 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
29754 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29755 operands[2], not operands[3].
29757 2014-02-13 Richard Biener <rguenther@suse.de>
29760 * doc/install.texi (ISL): Update recommended version to 0.12.2,
29761 mention the possibility of an in-tree build.
29762 (CLooG): Update recommended version to 0.18.1, mention the
29763 possibility of an in-tree build and clarify that the ISL
29764 bundled with CLooG does not work.
29766 2014-02-13 Jakub Jelinek <jakub@redhat.com>
29769 * expr.c (compress_float_constant): If x is a hard register,
29770 extend into a pseudo and then move to x.
29772 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
29774 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29775 caused by bad second argument to warning_at() with -mhotpatch and
29776 nested functions (e.g. with gfortran).
29778 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
29780 * opts.c (option_name): Remove "enabled by default" rider.
29782 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
29784 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29786 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
29787 Uros Bizjak <ubizjak@gmail.com>
29790 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29791 * configure: Regenerated.
29793 2014-02-12 Richard Biener <rguenther@suse.de>
29795 * vec.c (vec_prefix::calculate_allocation): Move as
29796 inline variant to vec.h.
29797 (vec_prefix::calculate_allocation_1): New out-of-line version.
29798 * vec.h (vec_prefix::calculate_allocation_1): Declare.
29799 (vec_prefix::m_has_auto_buf): Rename to ...
29800 (vec_prefix::m_using_auto_storage): ... this.
29801 (vec_prefix::calculate_allocation): Inline the easy cases
29802 and dispatch to calculate_allocation_1 which doesn't need the
29804 (va_heap::reserve): Use gcc_checking_assert.
29805 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29806 m_using_auto_storage.
29807 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29809 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29810 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29811 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29813 2014-02-12 Richard Biener <rguenther@suse.de>
29815 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29816 when we found a dependence.
29818 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
29820 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29822 (maybe_fold_stmt): ... into this new function.
29823 * omp-low.c (lower_omp): Update comment.
29825 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29828 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29831 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
29833 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29834 identifiers in comments.
29835 (cortexa53_extra_costs): Likewise.
29836 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29837 (cortexa7_extra_costs): Likewise.
29838 (cortexa12_extra_costs): Likewise.
29839 (cortexa15_extra_costs): Likewise.
29840 (v7m_extra_costs): Likewise.
29842 2014-02-12 Richard Biener <rguenther@suse.de>
29844 PR middle-end/60092
29845 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29846 of posix_memalign being successful.
29847 (lower_stmt): Restrict lowering of posix_memalign to when
29848 -ftree-bit-ccp is enabled.
29850 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29852 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29854 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29856 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
29858 PR rtl-optimization/60116
29859 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29860 other_insn once the combination has been validated.
29862 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
29865 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29867 * ipa-devirt.c: Include demangle.h
29868 (odr_violation_reported): New static variable.
29869 (add_type_duplicate): Update odr_violations.
29870 (maybe_record_node): Add completep parameter; update it.
29871 (record_target_from_binfo): Add COMPLETEP parameter;
29872 update it as needed.
29873 (possible_polymorphic_call_targets_1): Likewise.
29874 (struct polymorphic_call_target_d): Add nonconstruction_targets;
29875 rename FINAL to COMPLETE.
29876 (record_targets_from_bases): Sanity check we found the binfo;
29877 fix COMPLETEP updating.
29878 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29879 parameter, fix computing of COMPLETEP.
29880 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29881 at LTO time do demangling.
29882 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29883 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29885 (gimple_get_virt_method_for_binfo): Likewise.
29886 * gimple-fold.h (gimple_get_virt_method_for_binfo,
29887 gimple_get_virt_method_for_vtable): Update prototypes.
29889 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
29892 * genautomata.c (add_presence_absence): Fix typo with
29893 {final_}presence_list.
29895 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29898 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29899 for VSX/Altivec vectors that land in GPR registers.
29901 2014-02-11 Richard Henderson <rth@redhat.com>
29902 Jakub Jelinek <jakub@redhat.com>
29905 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29906 around drhs if type conversion to lacc->type is not useless.
29908 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29910 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29912 (cortex-a57.cortex-a53): Likewise.
29913 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29915 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29917 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29920 2014-02-11 Renlin Li <Renlin.Li@arm.com>
29922 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29923 add_options_for_arm_vfp3.
29925 2014-02-11 Jeff Law <law@redhat.com>
29927 PR middle-end/54041
29928 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29929 object with an undesirable mode.
29931 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29934 * config/i386/sol2-9.h: New file.
29935 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29936 *-*-solaris2.9*): Use it.
29938 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29940 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29941 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29943 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
29945 * config/microblaze/microblaze.c: Extend mcpu version format
29947 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
29949 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29951 2014-02-10 Richard Henderson <rth@redhat.com>
29954 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29955 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29956 ms-abi vs -mno-accumulate-outgoing-args.
29957 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29958 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29961 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
29963 PR middle-end/60080
29964 * cfgexpand.c (expand_asm_operands): Attach source location to
29965 ASM_INPUT rtx objects.
29966 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29968 2014-02-10 Nick Clifton <nickc@redhat.com>
29970 * config/mn10300/mn10300.c (popcount): New function.
29971 (mn10300_expand_prologue): Include saved registers in stack usage
29974 2014-02-10 Jeff Law <law@redhat.com>
29976 PR middle-end/52306
29977 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29978 when changing the SET_DEST of a prior insn to avoid an input reload.
29980 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29982 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29983 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29984 -mcall-openbsd, or -mcall-linux.
29985 (CC1_ENDIAN_BIG_SPEC): Remove.
29986 (CC1_ENDIAN_LITTLE_SPEC): Remove.
29987 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29988 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29989 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29990 and %cc1_endian_default.
29991 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29993 2014-02-10 Richard Biener <rguenther@suse.de>
29995 PR tree-optimization/60115
29996 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29997 MEM_REF handling. Properly verify that the accesses are not
29998 out of the objects bound.
30000 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30002 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30005 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
30007 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30008 proper constants and fix formatting.
30009 (possible_polymorphic_call_targets): Fix formatting.
30011 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
30012 Ilya Tocar <ilya.tocar@intel.com>
30014 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30015 (_mm512_loadu_epi32): Renamed into...
30016 (_mm512_loadu_si512): This.
30017 (_mm512_storeu_epi32): Renamed into...
30018 (_mm512_storeu_si512): This.
30019 (_mm512_maskz_ceil_ps): Removed.
30020 (_mm512_maskz_ceil_pd): Ditto.
30021 (_mm512_maskz_floor_ps): Ditto.
30022 (_mm512_maskz_floor_pd): Ditto.
30023 (_mm512_floor_round_ps): Ditto.
30024 (_mm512_floor_round_pd): Ditto.
30025 (_mm512_ceil_round_ps): Ditto.
30026 (_mm512_ceil_round_pd): Ditto.
30027 (_mm512_mask_floor_round_ps): Ditto.
30028 (_mm512_mask_floor_round_pd): Ditto.
30029 (_mm512_mask_ceil_round_ps): Ditto.
30030 (_mm512_mask_ceil_round_pd): Ditto.
30031 (_mm512_maskz_floor_round_ps): Ditto.
30032 (_mm512_maskz_floor_round_pd): Ditto.
30033 (_mm512_maskz_ceil_round_ps): Ditto.
30034 (_mm512_maskz_ceil_round_pd): Ditto.
30035 (_mm512_expand_pd): Ditto.
30036 (_mm512_expand_ps): Ditto.
30037 * config/i386/i386.c (ix86_builtins): Remove
30038 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30039 (bdesc_args): Ditto.
30040 * config/i386/predicates.md (const1256_operand): New.
30041 (const_1_to_2_operand): Ditto.
30042 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30043 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30044 (*avx512pf_gatherpf<mode>sf): Ditto.
30045 (avx512pf_gatherpf<mode>df): Ditto.
30046 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30047 (*avx512pf_gatherpf<mode>df): Ditto.
30048 (avx512pf_scatterpf<mode>sf): Ditto.
30049 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30050 (*avx512pf_scatterpf<mode>sf): Ditto.
30051 (avx512pf_scatterpf<mode>df): Ditto.
30052 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30053 (*avx512pf_scatterpf<mode>df): Ditto.
30054 (avx512f_expand<mode>): Removed.
30055 (<shift_insn><mode>3<mask_name>): Change predicate type.
30057 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30059 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30060 not at the end of datarefs vector use ordered_remove to avoid
30061 reordering datarefs vector.
30064 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30065 mark local addressable non-static vars as GOVD_PRIVATE
30066 instead of GOVD_LOCAL.
30067 * omp-low.c (lower_omp_for): Move gimple_bind_vars
30068 and BLOCK_VARS of gimple_bind_block to new_stmt rather
30071 PR middle-end/60092
30072 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30073 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30074 assume_aligned or alloc_align attributes.
30075 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30076 arguments. Handle also assume_aligned and alloc_align attributes.
30077 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
30078 calls to functions with assume_aligned or alloc_align attributes.
30079 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30081 2014-02-08 Terry Guo <terry.guo@arm.com>
30083 * doc/invoke.texi: Document ARM -march=armv7e-m.
30085 2014-02-08 Jakub Jelinek <jakub@redhat.com>
30087 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30088 flag on __cilkrts_rethrow builtin.
30091 * ipa-cp.c (determine_versionability): Fail at -O0
30092 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30093 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30096 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30099 * tree-inline.c (copy_forbidden): Fail for
30100 __attribute__((optimize (0))) functions.
30102 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30104 * varpool.c: Include pointer-set.h.
30105 (varpool_remove_unreferenced_decls): Variables in other partitions
30106 will not be output; be however careful to not lose information
30107 about partitioning.
30109 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
30111 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30112 lookup in the vtable constructor.
30114 2014-02-07 Jeff Law <law@redhat.com>
30117 * config/m68k/m68k.md (ashldi_extsi): Turn into a
30118 define_insn_and_split.
30120 * ipa-inline.c (inline_small_functions): Fix typos.
30122 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30124 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30125 (s390_can_use_return_insn): Declare.
30126 * config/s390/s390.h (EPILOGUE_USES): Define.
30127 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30129 (s390_chunkify_start): Handle return JUMP_LABELs.
30130 (s390_early_mach): Emit a main_pool instruction on the entry edge.
30131 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30132 (s390_can_use_return_insn): New functions.
30133 (s390_fix_long_loop_prediction): Handle conditional returns.
30134 (TARGET_SET_UP_BY_PROLOGUE): Define.
30135 * config/s390/s390.md (ANY_RETURN): New code iterator.
30136 (*creturn, *csimple_return, return, simple_return): New patterns.
30138 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30140 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30141 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
30142 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
30143 REG_CFA_RESTORE list when deciding not to restore a register.
30145 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30147 * config/s390/s390.c: Include tree-pass.h and context.h.
30148 (s390_early_mach): New function, split out from...
30149 (s390_emit_prologue): ...here.
30150 (pass_data_s390_early_mach): New pass structure.
30151 (pass_s390_early_mach): New class.
30152 (s390_option_override): Create and register early_mach pass.
30153 Move to end of file.
30155 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30157 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30158 to match for the exit block.
30160 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30162 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30163 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30164 Reject misaligned operands.
30166 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30168 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30170 2014-02-07 Richard Biener <rguenther@suse.de>
30172 PR middle-end/60092
30173 * gimple-low.c (lower_builtin_posix_memalign): New function.
30174 (lower_stmt): Call it to lower posix_memalign in a way
30175 to make alignment info accessible.
30177 2014-02-07 Jakub Jelinek <jakub@redhat.com>
30180 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30181 __builtin_setjmp_receiver.
30183 2014-02-07 Richard Biener <rguenther@suse.de>
30185 PR middle-end/60092
30186 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30187 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30188 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30189 Handle BUILT_IN_POSIX_MEMALIGN.
30190 (find_func_clobbers): Likewise.
30191 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30192 (call_may_clobber_ref_p_1): Likewise.
30194 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30197 * ipa-devirt.c (record_target_from_binfo): Remove overactive
30200 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30203 * lto-cgraph.c (lto_output_node): Use
30204 symtab_get_symbol_partitioning_class.
30205 (lto_output_varpool_node): likewise.
30206 (symtab_get_symbol_partitioning_class): Move here from
30207 lto/lto-partition.c
30208 * cgraph.h (symbol_partitioning_class): Likewise.
30209 (symtab_get_symbol_partitioning_class): Declare.
30211 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30213 * ggc.h (ggc_internal_cleared_alloc): New macro.
30214 * vec.h (vec_safe_copy): Handle memory stats.
30215 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30216 * target-globals.c (save_target_globals): Likewise.
30218 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
30221 * expr.c (emit_move_resolve_push): Export; be bit more selective
30222 on when to clear alias set.
30223 * expr.h (emit_move_resolve_push): Declare.
30224 * function.h (struct function): Add tail_call_marked.
30225 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30226 * config/i386/i386-protos.h (ix86_expand_push): Remove.
30227 * config/i386/i386.md (TImode move expander): De not call
30229 (FP push expanders): Preserve memory attributes.
30230 * config/i386/sse.md (push<mode>1): Remove.
30231 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30232 (ix86_expand_push): Remove.
30233 * config/i386/mmx.md (push<mode>1): Remove.
30235 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30237 PR rtl-optimization/60030
30238 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30239 lopart with paradoxical subreg before shifting it up by hprec.
30241 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30243 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30244 Remove extra newline at end of file.
30245 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30246 (arm_issue_rate): Handle cortexa57.
30247 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30248 (cortex-a57.cortex-a53): Likewise.
30250 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30253 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30254 don't record in REG_FRAME_RELATED_EXPR registers not set in that
30256 (arm_expand_prologue): Adjust all callers.
30257 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30258 info, registers also at the lowest numbered registers side. Use
30259 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30263 * var-tracking.c (adjust_mems): Before adding a SET to
30264 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30266 2014-02-06 Alan Modra <amodra@gmail.com>
30269 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30270 change SDmode to DDmode when lra_in_progress.
30272 2014-02-06 Jakub Jelinek <jakub@redhat.com>
30274 PR middle-end/59150
30275 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30276 free_data_ref on the dr first, and before goto again also set dr
30277 to the next dr. For simd_lane_access, free old datarefs[i] before
30278 overwriting it. For get_vectype_for_scalar_type failure, don't
30279 free_data_ref if simd_lane_access.
30281 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30284 * tree.h (opts_for_fn): New inline function.
30285 (opt_for_fn): Define.
30286 * config/i386/i386.c (ix86_function_regparm): Use
30287 opt_for_fn (decl, optimize) instead of optimize.
30289 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
30291 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30292 for SYMBOL_REF in large memory model.
30294 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30296 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30297 and crypto support.
30298 (cortex-a57): Likewise.
30299 (cortex-a57.cortex-a53): Likewise.
30301 2014-02-06 Yury Gribov <y.gribov@samsung.com>
30302 Kugan Vivekanandarajah <kuganv@linaro.org>
30304 * config/arm/arm.c (arm_vector_alignment_reachable): Check
30306 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30308 2014-02-06 Richard Biener <rguenther@suse.de>
30310 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30311 set_loop_copy and initialize_original_copy_tables.
30313 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
30315 * config/aarch64/aarch64-simd.md
30316 (aarch64_ashr_simddi): Change QI to SI.
30318 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30319 Jakub Jelinek <jakub@redhat.com>
30321 PR middle-end/60013
30322 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30325 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30327 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30328 CODE_FOR_altivec_vpku[hw]um to
30329 CODE_FOR_altivec_vpku[hw]um_direct.
30330 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30331 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30332 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30333 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30335 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30337 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30338 generation for -maltivec=be.
30339 (altivec_vsumsws): Simplify redundant test.
30341 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30343 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30344 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30345 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30346 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30347 gen_altivec_vpkuwum.
30348 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30350 (altivec_vpks<VI_char>ss): Likewise.
30351 (altivec_vpks<VI_char>us): Likewise.
30352 (altivec_vpku<VI_char>us): Likewise.
30353 (altivec_vpku<VI_char>um): Likewise.
30354 (altivec_vpku<VI_char>um_direct): New (copy of
30355 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30357 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30358 target is little endian and -maltivec=be is not specified.
30359 (*altivec_vupkhs<VU_char>_direct): New (copy of
30360 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30361 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30362 target is little endian and -maltivec=be is not specified.
30363 (*altivec_vupkls<VU_char>_direct): New (copy of
30364 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30365 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30366 little endian and -maltivec=be is not specified.
30367 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30368 little endian and -maltivec=be is not specified.
30370 2014-02-05 Richard Henderson <rth@redhat.com>
30373 * combine-stack-adj.c: Revert r206943.
30374 * sched-int.h (struct deps_desc): Add last_args_size.
30375 * sched-deps.c (init_deps): Initialize it.
30376 (sched_analyze_insn): Add OUTPUT dependencies between insns that
30377 contain REG_ARGS_SIZE notes.
30379 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
30381 * lto-cgraph.c (asm_nodes_output): Make global.
30382 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30383 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30384 (driver_handle_option): Handle OPT_fwpa.
30386 2014-02-05 Jakub Jelinek <jakub@redhat.com>
30389 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30390 a comment typo and formatting issue. If odr_hash hasn't been
30391 created, return vNULL and set *completep to false.
30393 PR middle-end/57499
30394 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30395 bb with no successors.
30397 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
30400 * doc/invoke.texi (-march): Clarify documentation for ARM.
30401 (-mtune): Likewise.
30404 2014-02-05 Richard Biener <rguenther@suse.de>
30406 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30407 when not vectorizing because of too many alias checks.
30408 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30409 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30411 2014-02-05 Nick Clifton <nickc@redhat.com>
30413 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30414 accept extended registers in any mode when compiling for the MN10300.
30416 2014-02-05 Yury Gribov <y.gribov@samsung.com>
30418 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30419 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30420 sanitization attributes.
30421 (can_inline_edge_p): Likewise.
30422 (sanitize_attrs_match_for_inline_p): New function.
30424 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30426 * ipa-prop.c (detect_type_change): Shor circuit testing of
30427 type changes on THIS pointer.
30429 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
30432 * config/pa/pa.c (legitimize_tls_address): Return original address
30433 if not passed a SYMBOL_REF rtx.
30434 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30436 (pa_emit_move_sequence): Simplify TLS source operands.
30437 (pa_legitimate_constant_p): Reject all TLS constants.
30438 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30439 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30441 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30443 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30444 groups when we know they are controlled by LTO.
30445 * varasm.c (default_binds_local_p_1): If object is in other partition,
30446 it will be resolved locally.
30448 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30450 * config/host-linux.c (linux_gt_pch_use_address): Don't
30451 use SSIZE_MAX because it is not always defined.
30453 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
30456 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30457 threshold for pseudo splitting.
30458 (update_ebb_live_info): Process call argument hard registers and
30459 hard registers from insn definition too.
30460 (max_small_class_regs_num): New constant.
30461 (inherit_in_ebb): Update live hard regs through EBBs. Update
30462 reloads_num only for small register classes. Don't split for
30465 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
30468 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30471 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
30473 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30474 visibility is safe.
30476 2014-02-04 Marek Polacek <polacek@redhat.com>
30478 * gdbinit.in (pel): Define.
30480 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
30482 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30485 2014-02-04 Richard Biener <rguenther@suse.de>
30488 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30489 in function context local.
30490 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30491 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30492 similar to LTO_imported_decl_ref.
30494 2014-02-04 Jakub Jelinek <jakub@redhat.com>
30496 PR tree-optimization/60002
30497 * cgraphclones.c (build_function_decl_skip_args): Clear
30498 DECL_LANG_SPECIFIC.
30500 PR tree-optimization/60023
30501 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30502 false to gsi_replace.
30503 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30504 has been in some EH region and vec_stmt could throw, add
30505 vec_stmt into the same EH region.
30506 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30507 has no lhs, ignore it.
30508 * internal-fn.c (expand_MASK_LOAD): Likewise.
30511 * tree-inline.c (copy_forbidden): Fail for
30512 __attribute__((optimize (0))) functions.
30515 * omp-low.c (simd_clone_struct_copy): If from->inbranch
30516 is set, copy one less argument.
30517 (expand_simd_clones): Don't subtract clone_info->inbranch
30518 from simd_clone_struct_alloc argument.
30520 PR rtl-optimization/57915
30521 * recog.c (simplify_while_replacing): If all unary/binary/relational
30522 operation arguments are constant, attempt to simplify those.
30524 PR middle-end/59261
30525 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30526 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30528 2014-02-04 Richard Biener <rguenther@suse.de>
30530 PR tree-optimization/60012
30531 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30532 TBAA disambiguation to all DDRs.
30534 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30537 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30538 (LINK_SPEC): Use it for -shared, -shared-libgcc.
30540 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30543 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30545 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30547 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30548 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30550 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30553 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30554 to figure out targets of polymorphic calls with known decl.
30555 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30556 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30557 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30558 (get_polymorphic_call_info): ... here.
30559 (get_polymorphic_call_info_from_invariant): New function.
30561 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30563 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30564 lookup via vtable pointer; check for type consistency
30565 and turn inconsitent facts into UNREACHABLE.
30566 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30567 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30568 type inconsistent querries; return UNREACHABLE instead.
30570 2014-02-03 Richard Henderson <rth@twiddle.net>
30573 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30574 already processed this node.
30575 (normalize_one_pred_1): Pass along mark_set.
30576 (normalize_one_pred): Create and destroy a pointer_set_t.
30577 (normalize_one_pred_chain): Likewise.
30579 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
30581 PR gcov-profile/58602
30582 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30584 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
30587 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30588 -fno-devirtualize; try to devirtualize by the knowledge of
30589 virtual table pointer given by aggregate propagation.
30590 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30591 (ipa_print_node_jump_functions): Dump also offset that
30592 is relevant for polymorphic calls.
30593 (determine_known_aggregate_parts): Add arg_type parameter; use it
30594 instead of determining the type from pointer type.
30595 (ipa_compute_jump_functions_for_edge): Update call of
30596 determine_known_aggregate_parts.
30597 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30598 (gimple_get_virt_method_for_binfo): ... here; simplify using
30599 vtable_pointer_value_to_vtable.
30600 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30601 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30602 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30603 (vtable_pointer_value_to_vtable): Break out from ...; handle also
30605 (vtable_pointer_value_to_binfo): ... here.
30606 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30608 2014-02-03 Teresa Johnson <tejohnson@google.com>
30610 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30611 redef of outer loop index variable.
30613 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
30617 * doc/extend.texi (Function Attributes): Typo.
30619 2014-02-03 Cong Hou <congh@google.com>
30621 PR tree-optimization/60000
30622 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30623 if the vectorized statement is a store. A store statement can only
30624 appear at the end of pattern statements.
30626 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30628 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30629 (ix86_option_override_internal): Default long double to 64-bit for
30630 32-bit Bionic and to 128-bit for 64-bit Bionic.
30632 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30633 TARGET_LONG_DOUBLE_128 is true.
30634 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30636 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30637 (mlong-double-64): Negate -mlong-double-128.
30638 (mlong-double-128): New option.
30640 * config/i386/i386-c.c (ix86_target_macros): Define
30641 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30643 * doc/invoke.texi: Document -mlong-double-128.
30645 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
30647 PR rtl-optimization/60024
30648 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30650 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
30652 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30654 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30656 PR rtl-optimization/57662
30657 * sel-sched.c (code_motion_path_driver): Do not mark already not
30658 existing blocks in the visiting bitmap.
30660 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
30662 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30663 on the insn being emitted.
30665 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
30666 Will Deacon <will.deacon@arm.com>
30668 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30670 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30672 * config/arm/arm-tables.opt: Regenerate.
30674 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30676 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30677 for vector types other than V16QImode.
30678 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30679 define_expand, and call altivec_expand_vec_perm_le when producing
30680 code with little endian element order.
30681 (*altivec_vperm_<mode>_internal): New insn having previous
30682 behavior of altivec_vperm_<mode>.
30683 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30684 altivec_expand_vec_perm_le when producing code with little endian
30686 (*altivec_vperm_<mode>_uns_internal): New insn having previous
30687 behavior of altivec_vperm_<mode>_uns.
30689 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30691 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30692 (altivec_vsumsws): Add handling for -maltivec=be with a little
30694 (altivec_vsumsws_direct): New.
30695 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30696 gen_altivec_vsumsws.
30698 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30700 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30701 vtable_pointer_value_to_binfo): New functions.
30702 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30703 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30705 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
30707 * config/nios2/nios2.md (load_got_register): Initialize GOT
30708 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30709 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30711 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
30713 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30714 preserverd by passthrough, do not propagate the type.
30716 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30718 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30719 (mips_atomic_assign_expand_fenv): New function.
30720 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30722 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30724 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30725 (__builtin_mips_set_fcsr): Likewise.
30726 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30727 MIPS_USI_FTYPE_VOID.
30728 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30729 (mips16_expand_set_fcsr): Likewise.
30730 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30731 (mips16_set_fcsr_stub): Likewise.
30732 (mips16_get_fcsr_one_only_stub): New class.
30733 (mips16_set_fcsr_one_only_stub): Likewise.
30734 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30735 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30736 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30737 (hard_float): New availability predicate.
30738 (mips_builtins): Add get_fcsr and set_fcsr.
30739 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30740 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30741 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30742 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30743 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30746 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30748 * config/mips/mips.c (mips_one_only_stub): New class.
30749 (mips_need_mips16_rdhwr_p): Replace with...
30750 (mips16_rdhwr_stub): ...this new variable.
30751 (mips16_stub_call_address): New function.
30752 (mips16_rdhwr_one_only_stub): New class.
30753 (mips_expand_thread_pointer): Use mips16_stub_call_address.
30754 (mips_output_mips16_rdhwr): Delete.
30755 (mips_finish_stub): New function.
30756 (mips_code_end): Use it to handle rdhwr stubs.
30758 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
30761 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30762 when calculating size of integer atomic types.
30764 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
30766 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30768 2014-02-01 Jakub Jelinek <jakub@redhat.com>
30770 PR tree-optimization/60003
30771 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30772 * profile.c (branch_prob): Use gimple_call_builtin_p
30773 to check for BUILT_IN_SETJMP_RECEIVER.
30774 * tree-inline.c (copy_bb): Call notice_special_calls.
30776 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
30779 * lra-constraints.c (process_alt_operands): Update reload_sum only
30782 2014-01-31 Richard Henderson <rth@redhat.com>
30784 PR middle-end/60004
30785 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30786 until after else_eh is processed.
30788 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30790 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30791 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30792 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30793 in smmintrin.h, remove them.
30794 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30795 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30796 * config/i386/i386.md (ROUND_SAE): Fix value.
30797 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30798 (const48_operand): New.
30799 * config/i386/subst.md (round), (round_expand): Use
30800 const_4_or_8_to_11_operand.
30801 (round_saeonly), (round_saeonly_expand): Use const48_operand.
30803 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
30805 * config/i386/constraints.md (Yk): Swap meaning with k.
30806 * config/i386/i386.md (movhi_internal): Change Yk to k.
30807 (movqi_internal): Ditto.
30808 (*k<logic><mode>): Ditto.
30811 (kandn<mode>): Ditto.
30812 (*<code>hi_1): Ditto.
30813 (*<code>qi_1): Ditto.
30814 (kxnor<mode>): Ditto.
30815 (kortestzhi): Ditto.
30816 (kortestchi): Ditto.
30818 (*one_cmplhi2_1): Ditto.
30819 (*one_cmplqi2_1): Ditto.
30820 * config/i386/sse.md (): Change k to Yk.
30821 (avx512f_load<mode>_mask): Ditto.
30822 (avx512f_blendm<mode>): Ditto.
30823 (avx512f_store<mode>_mask): Ditto.
30824 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30825 (avx512f_storedqu<mode>_mask): Ditto.
30826 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30828 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30829 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30830 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30831 (avx512f_maskcmp<mode>3): Ditto.
30832 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30833 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30834 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30835 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30836 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30837 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30838 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30839 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30840 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30841 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30842 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30843 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30844 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30845 (vec_extract_lo_<mode>_maskm): Ditto.
30846 (vec_extract_hi_<mode>_maskm): Ditto.
30847 (avx512f_vternlog<mode>_mask): Ditto.
30848 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30849 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30850 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30851 (avx512f_<code>v8div16qi2_mask): Ditto.
30852 (avx512f_<code>v8div16qi2_mask_store): Ditto.
30853 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30854 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30855 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30856 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30857 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30858 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30859 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30860 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30861 (avx512cd_maskb_vec_dupv8di): Ditto.
30862 (avx512cd_maskw_vec_dupv16si): Ditto.
30863 (avx512f_vpermi2var<mode>3_maskz): Ditto.
30864 (avx512f_vpermi2var<mode>3_mask): Ditto.
30865 (avx512f_vpermi2var<mode>3_mask): Ditto.
30866 (avx512f_vpermt2var<mode>3_maskz): Ditto.
30867 (*avx512f_gathersi<mode>): Ditto.
30868 (*avx512f_gathersi<mode>_2): Ditto.
30869 (*avx512f_gatherdi<mode>): Ditto.
30870 (*avx512f_gatherdi<mode>_2): Ditto.
30871 (*avx512f_scattersi<mode>): Ditto.
30872 (*avx512f_scatterdi<mode>): Ditto.
30873 (avx512f_compress<mode>_mask): Ditto.
30874 (avx512f_compressstore<mode>_mask): Ditto.
30875 (avx512f_expand<mode>_mask): Ditto.
30876 * config/i386/subst.md (mask): Change k to Yk.
30877 (mask_scalar_merge): Ditto.
30880 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
30882 * doc/extend.texi (Vector Extensions): Document ?: in C++.
30884 2014-01-31 Richard Biener <rguenther@suse.de>
30886 PR middle-end/59990
30887 * builtins.c (fold_builtin_memory_op): Make sure to not
30888 use a floating-point mode or a boolean or enumeral type for
30889 the copy operation.
30891 2014-01-30 DJ Delorie <dj@redhat.com>
30893 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30894 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30895 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30896 whenever main() has an epilogue.
30898 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30900 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30901 unused variable "field".
30902 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30903 (vsx_mergeh_<mode>): Likewise.
30904 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30905 (altivec_vmrghh): Likewise.
30906 (altivec_vmrghw): Likewise.
30907 (altivec_vmrglb): Likewise.
30908 (altivec_vmrglh): Likewise.
30909 (altivec_vmrglw): Likewise.
30910 (altivec_vspltb): Add missing uses.
30911 (altivec_vsplth): Likewise.
30912 (altivec_vspltw): Likewise.
30913 (altivec_vspltsf): Likewise.
30915 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30918 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30919 frame related instructions.
30921 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
30923 PR rtl-optimization/59959
30924 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30925 any reload of register whose subreg is invalid.
30927 2014-01-30 Jakub Jelinek <jakub@redhat.com>
30929 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30930 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30931 Add missing return type - void.
30933 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30935 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30936 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30937 remove element index adjustment for endian (now handled in vsx.md
30939 (altivec_expand_vec_perm_const): Use
30940 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30941 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30942 (vsx_xxspltw_<mode>): Adjust element index for little endian.
30943 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30944 define_expand and a new define_insn *altivec_vspltb_internal;
30945 adjust for -maltivec=be on a little endian target.
30946 (altivec_vspltb_direct): New.
30947 (altivec_vsplth): Divide into a define_expand and a new
30948 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30949 little endian target.
30950 (altivec_vsplth_direct): New.
30951 (altivec_vspltw): Divide into a define_expand and a new
30952 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30953 little endian target.
30954 (altivec_vspltw_direct): New.
30955 (altivec_vspltsf): Divide into a define_expand and a new
30956 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30957 a little endian target.
30959 2014-01-30 Richard Biener <rguenther@suse.de>
30961 PR tree-optimization/59993
30962 * tree-ssa-forwprop.c (associate_pointerplus): Check we
30963 can propagate form the earlier stmt and avoid the transform
30964 when the intermediate result is needed.
30966 2014-01-30 Alangi Derick <alangiderick@gmail.com>
30968 * README.Portability: Fix typo.
30970 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
30972 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30973 comparison_operator with ordered_comparison_operator.
30975 2014-01-30 Nick Clifton <nickc@redhat.com>
30977 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30978 Rename to mn10300_store_multiple_regs.
30979 * config/mn10300/mn10300.c: Likewise.
30980 * config/mn10300/mn10300.md (store_movm): Fix typo: call
30981 store_multiple_regs.
30982 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30983 Call mn10300_store_multiple_regs.
30985 2014-01-30 Nick Clifton <nickc@redhat.com>
30986 DJ Delorie <dj@redhat.com>
30988 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30989 %fp 2 to keep registers after it properly word-aligned.
30990 (rl78_alloc_physical_registers_umul): Handle the case where both
30991 input operands are the same.
30993 2014-01-30 Richard Biener <rguenther@suse.de>
30995 PR tree-optimization/59903
30996 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30999 2014-01-30 Jason Merrill <jason@redhat.com>
31002 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31005 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31007 2014-01-30 Richard Biener <rguenther@suse.de>
31009 PR tree-optimization/59951
31010 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31012 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
31015 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31016 SFmode to DFmode case.
31018 2014-01-29 DJ Delorie <dj@redhat.com>
31020 * config/msp430/msp430.opt (-minrt): New.
31021 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31023 (ENDFILE_SPEC): Likewise.
31025 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
31027 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31028 (estimate_function_body_sizes): Use it.
31030 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
31033 * dwarf2out.c (is_cxx_auto): New.
31034 (is_base_type): Use it.
31035 (gen_type_die_with_usage): Likewise.
31037 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31039 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
31040 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31041 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31042 -maltivec=be with LE targets.
31043 (vsx_mergeh_<mode>): Likewise.
31044 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31045 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31046 (altivec_vmrghb): Replace with define_expand and new
31047 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31048 (altivec_vmrghb_direct): New define_insn.
31049 (altivec_vmrghh): Replace with define_expand and new
31050 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31051 (altivec_vmrghh_direct): New define_insn.
31052 (altivec_vmrghw): Replace with define_expand and new
31053 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31054 (altivec_vmrghw_direct): New define_insn.
31055 (*altivec_vmrghsf): Adjust for endianness.
31056 (altivec_vmrglb): Replace with define_expand and new
31057 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31058 (altivec_vmrglb_direct): New define_insn.
31059 (altivec_vmrglh): Replace with define_expand and new
31060 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31061 (altivec_vmrglh_direct): New define_insn.
31062 (altivec_vmrglw): Replace with define_expand and new
31063 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31064 (altivec_vmrglw_direct): New define_insn.
31065 (*altivec_vmrglsf): Adjust for endianness.
31066 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31067 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31068 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31069 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31070 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31071 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31072 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31073 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31075 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
31077 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31078 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31081 2014-01-29 Richard Biener <rguenther@suse.de>
31083 PR tree-optimization/58742
31084 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31085 associate_pointerplus_align.
31086 (associate_pointerplus_diff): New function.
31087 (associate_pointerplus): Likewise. Call associate_pointerplus_align
31088 and associate_pointerplus_diff.
31090 2014-01-29 Richard Biener <rguenther@suse.de>
31092 * lto-streamer.h (LTO_major_version): Bump to 3.
31093 (LTO_minor_version): Reset to 0.
31095 2014-01-29 Renlin Li <Renlin.Li@arm.com>
31097 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31098 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31099 (arm_file_start): Generate correct asm header for armv7ve.
31100 * config/arm/bpabi.h: Add multilib support for armv7ve.
31101 * config/arm/driver-arm.c: Change the architectures of cortex-a7
31102 and cortex-a15 to armv7ve.
31103 * config/arm/t-aprofile: Add multilib support for armv7ve.
31104 * doc/invoke.texi: Document -march=armv7ve.
31106 2014-01-29 Richard Biener <rguenther@suse.de>
31108 PR tree-optimization/58742
31109 * tree-ssa-forwprop.c (associate_plusminus): Return true
31110 if we changed sth, defer EH cleanup to ...
31111 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
31112 (simplify_mult): New function.
31114 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31116 PR middle-end/59917
31117 PR tree-optimization/59920
31118 * tree.c (build_common_builtin_nodes): Remove
31119 __builtin_setjmp_dispatcher initialization.
31120 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31121 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31122 instead of gsi_after_labels + manually skipping debug stmts.
31123 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31124 ignore bbs with IFN_ABNORMAL_DISPATCHER.
31125 * tree-inline.c (copy_edges_for_bb): Remove
31126 can_make_abnormal_goto argument, instead add abnormal_goto_dest
31127 argument. Ignore computed_goto_p stmts. Don't call
31128 make_abnormal_goto_edges. If a call might need abnormal edges
31129 for non-local gotos, see if it already has an edge to
31130 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31131 with true argument, don't do anything then, otherwise add
31132 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31133 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31135 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31136 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31137 (lower_stmt): Don't set data->calls_builtin_setjmp.
31138 (lower_builtin_setjmp): Adjust comment.
31139 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31140 * tree-cfg.c (found_computed_goto): Remove.
31141 (factor_computed_gotos): Remove.
31142 (make_goto_expr_edges): Return bool, true for computed gotos.
31143 Don't call make_abnormal_goto_edges.
31144 (build_gimple_cfg): Don't set found_computed_goto, don't call
31145 factor_computed_gotos.
31146 (computed_goto_p): No longer static.
31147 (make_blocks): Don't set found_computed_goto.
31148 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31149 (make_edges): If make_goto_expr_edges returns true, push bb
31150 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31151 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31152 vector. Record mapping between bbs and OpenMP regions if there
31153 are any, adjust make_gimple_omp_edges caller. Call
31154 handle_abnormal_edges.
31155 (make_abnormal_goto_edges): Remove.
31156 * tree-cfg.h (make_abnormal_goto_edges): Remove.
31157 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31158 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31159 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31160 * internal-fn.def (ABNORMAL_DISPATCHER): New.
31161 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31162 filling *region also set *region_idx to (*region)->entry->index.
31165 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31166 For REGs set ORIGINAL_REGNO.
31168 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
31170 * doc/md.texi: Mention that a target shouldn't implement
31171 vec_widen_(s|u)mul_even/odd pair if it is less efficient
31174 2014-01-29 Jakub Jelinek <jakub@redhat.com>
31176 PR tree-optimization/59594
31177 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31178 a copy of the datarefs vector rather than the vector itself.
31180 2014-01-28 Jason Merrill <jason@redhat.com>
31183 * dwarf2out.c (auto_die): New static.
31184 (gen_type_die_with_usage): Handle C++1y 'auto'.
31185 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31188 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
31191 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31192 (SPEC_X32): Likewise.
31193 (SPEC_64): Likewise.
31194 * config/i386/i386.c (ix86_option_override_internal): Turn off
31195 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31197 (x86_file_start): Output .code16gcc for TARGET_16BIT.
31198 * config/i386/i386.h (TARGET_16BIT): New macro.
31199 (TARGET_16BIT_P): Likewise.
31200 * config/i386/i386.opt: Add m16.
31201 * doc/invoke.texi: Document -m16.
31203 2014-01-28 Jakub Jelinek <jakub@redhat.com>
31205 PR preprocessor/59935
31206 * input.c (location_get_source_line): Bail out on when line number
31207 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31209 2014-01-28 Richard Biener <rguenther@suse.de>
31211 PR tree-optimization/58742
31212 * tree-ssa-forwprop.c (associate_plusminus): Handle
31213 pointer subtraction of the form (T)(P + A) - (T)P.
31215 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31217 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31220 2014-01-28 Richard Biener <rguenther@suse.de>
31223 2014-01-28 Richard Biener <rguenther@suse.de>
31225 PR rtl-optimization/45364
31226 PR rtl-optimization/59890
31227 * var-tracking.c (local_get_addr_clear_given_value): Handle
31228 already cleared slot.
31229 (val_reset): Handle not allocated local_get_addr_cache.
31230 (vt_find_locations): Use post-order on the inverted CFG.
31232 2014-01-28 Richard Biener <rguenther@suse.de>
31234 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31236 2014-01-28 Richard Biener <rguenther@suse.de>
31238 PR rtl-optimization/45364
31239 PR rtl-optimization/59890
31240 * var-tracking.c (local_get_addr_clear_given_value): Handle
31241 already cleared slot.
31242 (val_reset): Handle not allocated local_get_addr_cache.
31243 (vt_find_locations): Use post-order on the inverted CFG.
31245 2014-01-28 Alan Modra <amodra@gmail.com>
31247 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31248 * configure.ac <recursive call for build != host>: Define
31249 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31250 and LD_FOR_BUILD too.
31251 * configure: Regenerate.
31253 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
31255 * config/i386/i386.c (get_builtin_code_for_version): Separate
31256 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31257 Broadwell from Haswell.
31259 2014-01-27 Steve Ellcey <sellcey@mips.com>
31261 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31262 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31263 * config/mips/mips.c (mips_option_override): Change setting
31265 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31266 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31267 Change from Mask to Var.
31269 2014-01-27 Jeff Law <law@redhat.com>
31271 * ipa-inline.c (inline_small_functions): Fix typo.
31273 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
31275 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31276 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31277 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31278 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31279 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31280 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31281 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31282 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31283 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31284 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31285 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31286 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31287 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31288 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31289 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31290 (_mm512_storeu_epi64): Ditto.
31291 (_mm512_cmpge_epi32_mask): Ditto.
31292 (_mm512_cmpge_epu32_mask): Ditto.
31293 (_mm512_cmpge_epi64_mask): Ditto.
31294 (_mm512_cmpge_epu64_mask): Ditto.
31295 (_mm512_cmple_epi32_mask): Ditto.
31296 (_mm512_cmple_epu32_mask): Ditto.
31297 (_mm512_cmple_epi64_mask): Ditto.
31298 (_mm512_cmple_epu64_mask): Ditto.
31299 (_mm512_cmplt_epi32_mask): Ditto.
31300 (_mm512_cmplt_epu32_mask): Ditto.
31301 (_mm512_cmplt_epi64_mask): Ditto.
31302 (_mm512_cmplt_epu64_mask): Ditto.
31303 (_mm512_cmpneq_epi32_mask): Ditto.
31304 (_mm512_cmpneq_epu32_mask): Ditto.
31305 (_mm512_cmpneq_epi64_mask): Ditto.
31306 (_mm512_cmpneq_epu64_mask): Ditto.
31307 (_mm512_expand_pd): Ditto.
31308 (_mm512_expand_ps): Ditto.
31309 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31310 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31311 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31312 * config/i386/i386.c (ix86_builtins): Add
31313 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31314 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31315 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31316 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31317 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31318 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31319 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31320 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31321 IX86_BUILTIN_PMOVUSQW512_MEM.
31322 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31323 __builtin_ia32_pmovsqd512mem_mask,
31324 __builtin_ia32_pmovqd512mem_mask,
31325 __builtin_ia32_pmovusqw512mem_mask,
31326 __builtin_ia32_pmovsqw512mem_mask,
31327 __builtin_ia32_pmovqw512mem_mask,
31328 __builtin_ia32_pmovusdw512mem_mask,
31329 __builtin_ia32_pmovsdw512mem_mask,
31330 __builtin_ia32_pmovdw512mem_mask,
31331 __builtin_ia32_pmovqb512mem_mask,
31332 __builtin_ia32_pmovusqb512mem_mask,
31333 __builtin_ia32_pmovsqb512mem_mask,
31334 __builtin_ia32_pmovusdb512mem_mask,
31335 __builtin_ia32_pmovsdb512mem_mask,
31336 __builtin_ia32_pmovdb512mem_mask.
31337 (bdesc_args): Add __builtin_ia32_expanddf512,
31338 __builtin_ia32_expandsf512.
31339 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31340 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31341 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31342 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31343 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31344 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31345 (avx512f_<code>v8div16qi2_mask_store): This.
31346 (avx512f_expand<mode>): New.
31348 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
31350 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31352 (_mm512_mask_prefetch_i64gather_pd): Ditto.
31353 (_mm512_prefetch_i32scatter_pd): Ditto.
31354 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31355 (_mm512_prefetch_i64scatter_pd): Ditto.
31356 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31357 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31358 (_mm512_mask_prefetch_i64gather_ps): Ditto.
31359 (_mm512_prefetch_i32scatter_ps): Ditto.
31360 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31361 (_mm512_prefetch_i64scatter_ps): Ditto.
31362 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31363 * config/i386/i386-builtin-types.def: Define
31364 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31365 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31366 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31367 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31368 IX86_BUILTIN_SCATTERPFQPD.
31369 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31370 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31371 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31372 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31373 __builtin_ia32_scatterpfqps.
31374 (ix86_expand_builtin): Expand new built-ins.
31375 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31376 fix memory access data type.
31377 (*avx512pf_gatherpf<mode>_mask): Ditto.
31378 (*avx512pf_gatherpf<mode>): Ditto.
31379 (avx512pf_scatterpf<mode>): Ditto.
31380 (*avx512pf_scatterpf<mode>_mask): Ditto.
31381 (*avx512pf_scatterpf<mode>): Ditto.
31382 (GATHER_SCATTER_SF_MEM_MODE): New.
31383 (avx512pf_gatherpf<mode>df): Ditto.
31384 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31385 (*avx512pf_scatterpf<mode>df): Ditto.
31387 2014-01-27 Jakub Jelinek <jakub@redhat.com>
31390 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31391 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31394 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31396 * common/config/arm/arm-common.c
31397 (arm_rewrite_mcpu): Handle multiple names.
31399 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31401 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
31403 * gimple-builder.h (create_gimple_tmp): Delete.
31405 2014-01-27 Christian Bruel <christian.bruel@st.com>
31407 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31410 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
31412 * config/pa/pa.md (call): Generate indirect long calls to non-local
31413 functions when outputing 32-bit code.
31414 (call_value): Likewise except for special call to buggy powf function.
31416 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31417 portable runtime and PIC indirect calls.
31418 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31419 and PIC call sequences. Use ldo instead of blr to set return register
31420 in PIC call sequence.
31422 2014-01-25 Walter Lee <walt@tilera.com>
31424 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31425 avoid clobbering a live register.
31427 2014-01-25 Walter Lee <walt@tilera.com>
31429 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31430 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31431 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31432 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31434 2014-01-25 Walter Lee <walt@tilera.com>
31436 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31437 arguments on even registers.
31438 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31440 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31441 (BIGGEST_ALIGNMENT): Ditto.
31442 (BIGGEST_FIELD_ALIGNMENT): Ditto.
31444 2014-01-25 Walter Lee <walt@tilera.com>
31446 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31447 insns before bundling.
31448 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31450 2014-01-25 Walter Lee <walt@tilera.com>
31452 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31453 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31454 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31456 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31458 * config/mips/constraints.md (kl): Delete.
31459 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31460 define expands, using...
31461 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31462 instructions for MIPS16.
31463 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31464 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31466 2014-01-25 Walter Lee <walt@tilera.com>
31468 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31472 2014-01-25 Walter Lee <walt@tilera.com>
31474 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31475 (TARGET_EXPAND_TO_RTL_HOOK): Define.
31477 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31479 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31482 2014-01-25 Jakub Jelinek <jakub@redhat.com>
31484 * print-rtl.c (in_call_function_usage): New var.
31485 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31486 EXPR_LIST mode as mode and not as reg note name.
31488 PR middle-end/59561
31489 * cfgloopmanip.c (copy_loop_info): If
31490 loop->warned_aggressive_loop_optimizations, make sure
31491 the flag is set in target loop too.
31493 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
31495 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31497 * builtins.def: Likewise.
31498 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31499 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31500 * ira.c (ira_setup_eliminable_regset): Likewise.
31501 * omp-low.c (gate_expand_omp): Likewise.
31502 (execute_lower_omp): Likewise.
31503 (diagnose_sb_0): Likewise.
31504 (gate_diagnose_omp_blocks): Likewise.
31505 (simd_clone_clauses_extract): Likewise.
31508 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31510 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31511 correction for little endian...
31512 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31515 2014-01-24 Jeff Law <law@redhat.com>
31517 PR tree-optimization/59919
31518 * tree-vrp.c (find_assert_locations_1): Do not register asserts
31519 for non-returning calls.
31521 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
31523 * common/config/aarch64/aarch64-common.c
31524 (aarch64_rewrite_mcpu): Handle multiple names.
31525 * config/aarch64/aarch64.h
31526 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31528 2014-01-24 Dodji Seketeli <dodji@redhat.com>
31530 * input.c (add_file_to_cache_tab): Handle the case where fopen
31533 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
31536 * config/i386/i386.md (pushsf splitter): Get stack adjustment
31537 from push operand if code of push isn't PRE_DEC.
31539 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
31542 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31543 -mquad-memory-atomic. Update -mquad-memory documentation to say
31544 it is only used for non-atomic loads/stores.
31546 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31547 -mquad-memory or -mquad-memory-atomic switches.
31549 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31550 -mquad-memory-atomic to ISA 2.07 support.
31552 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31553 to separate support of normal quad word memory operations (ldq, stq)
31554 from the atomic quad word memory operations.
31556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31557 support to separate non-atomic quad word operations from atomic
31558 quad word operations. Disable non-atomic quad word operations in
31559 little endian mode so that we don't have to swap words after the
31560 load and before the store.
31561 (quad_load_store_p): Add comment about atomic quad word support.
31562 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31563 options printed with -mdebug=reg.
31565 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31566 -mquad-memory-atomic as the test for whether we have quad word
31567 atomic instructions.
31568 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31569 or -mp8-vector are used, allow byte/half-word atomic operations.
31571 * config/rs6000/sync.md (load_lockedti): Insure that the address
31572 is a proper indexed or indirect address for the lqarx instruction.
31573 On little endian systems, swap the hi/lo registers after the lqarx
31575 (load_lockedpti): Use indexed_or_indirect_operand predicate to
31576 insure the address is valid for the lqarx instruction.
31577 (store_conditionalti): Insure that the address is a proper indexed
31578 or indirect address for the stqcrx. instruction. On little endian
31579 systems, swap the hi/lo registers before doing the stqcrx.
31581 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31582 insure the address is valid for the stqcrx. instruction.
31584 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31585 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31586 type of quad memory support is available.
31588 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
31590 PR regression/59915
31591 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31592 there is a danger of looping.
31594 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
31596 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31597 force flag_ira_loop_pressure if set via command line.
31599 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31601 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31602 (ashr_simd): New builtin handling DI mode.
31603 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31604 (aarch64_sshr_simddi): New match pattern.
31605 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31606 (vshrd_n_s64): Likewise.
31607 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31609 2014-01-23 Nick Clifton <nickc@redhat.com>
31611 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31612 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31613 favour of mcu specific scripts.
31614 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31617 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31618 Alex Velenko <Alex.Velenko@arm.com>
31620 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31621 (vaddv_s16): Likewise.
31622 (vaddv_s32): Likewise.
31623 (vaddv_u8): Likewise.
31624 (vaddv_u16): Likewise.
31625 (vaddv_u32): Likewise.
31626 (vaddvq_s8): Likewise.
31627 (vaddvq_s16): Likewise.
31628 (vaddvq_s32): Likewise.
31629 (vaddvq_s64): Likewise.
31630 (vaddvq_u8): Likewise.
31631 (vaddvq_u16): Likewise.
31632 (vaddvq_u32): Likewise.
31633 (vaddvq_u64): Likewise.
31634 (vaddv_f32): Likewise.
31635 (vaddvq_f32): Likewise.
31636 (vaddvq_f64): Likewise.
31637 (vmaxv_f32): Likewise.
31638 (vmaxv_s8): Likewise.
31639 (vmaxv_s16): Likewise.
31640 (vmaxv_s32): Likewise.
31641 (vmaxv_u8): Likewise.
31642 (vmaxv_u16): Likewise.
31643 (vmaxv_u32): Likewise.
31644 (vmaxvq_f32): Likewise.
31645 (vmaxvq_f64): Likewise.
31646 (vmaxvq_s8): Likewise.
31647 (vmaxvq_s16): Likewise.
31648 (vmaxvq_s32): Likewise.
31649 (vmaxvq_u8): Likewise.
31650 (vmaxvq_u16): Likewise.
31651 (vmaxvq_u32): Likewise.
31652 (vmaxnmv_f32): Likewise.
31653 (vmaxnmvq_f32): Likewise.
31654 (vmaxnmvq_f64): Likewise.
31655 (vminv_f32): Likewise.
31656 (vminv_s8): Likewise.
31657 (vminv_s16): Likewise.
31658 (vminv_s32): Likewise.
31659 (vminv_u8): Likewise.
31660 (vminv_u16): Likewise.
31661 (vminv_u32): Likewise.
31662 (vminvq_f32): Likewise.
31663 (vminvq_f64): Likewise.
31664 (vminvq_s8): Likewise.
31665 (vminvq_s16): Likewise.
31666 (vminvq_s32): Likewise.
31667 (vminvq_u8): Likewise.
31668 (vminvq_u16): Likewise.
31669 (vminvq_u32): Likewise.
31670 (vminnmv_f32): Likewise.
31671 (vminnmvq_f32): Likewise.
31672 (vminnmvq_f64): Likewise.
31674 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
31676 * config/aarch64/aarch64-simd.md
31677 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31678 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31679 (*aarch64_mul3_elt<mode>): Likewise.
31680 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31681 (*aarch64_mul3_elt_to_64v2df): Likewise.
31682 (*aarch64_mla_elt<mode>): Likewise.
31683 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31684 (*aarch64_mls_elt<mode>): Likewise.
31685 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31686 (*aarch64_fma4_elt<mode>): Likewise.
31687 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31688 (*aarch64_fma4_elt_to_64v2df): Likewise.
31689 (*aarch64_fnma4_elt<mode>): Likewise.
31690 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31691 (*aarch64_fnma4_elt_to_64v2df): Likewise.
31692 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31693 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31694 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31695 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31696 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31697 (aarch64_sqdmull_lane<mode>_internal): Likewise.
31698 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31700 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
31702 * config/aarch64/aarch64-simd.md
31703 (aarch64_be_checked_get_lane<mode>): New define_expand.
31704 * config/aarch64/aarch64-simd-builtins.def
31705 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31706 New builtin definition.
31707 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31708 Use new safe be builtin.
31710 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
31712 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31714 (aarch64_be_st1<mode>): Likewise.
31715 (aarch_ld1<VALL:mode>): Define_expand modified.
31716 (aarch_st1<VALL:mode>): Likewise.
31717 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31718 (UNSPEC_ST1): Likewise.
31720 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
31722 * config/microblaze/microblaze.md: Add trap insn and attribute
31724 2014-01-23 Dodji Seketeli <dodji@redhat.com>
31726 PR preprocessor/58580
31727 * input.h (location_get_source_line): Take an additional line_size
31729 (void diagnostics_file_cache_fini): Declare new function.
31730 * input.c (struct fcache): New type.
31731 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31732 New static constants.
31733 (diagnostic_file_cache_init, total_lines_num)
31734 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31735 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31736 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31737 (get_next_line, read_next_line, goto_next_line, read_line_num):
31738 New static function definitions.
31739 (diagnostic_file_cache_fini): New function.
31740 (location_get_source_line): Take an additional output line_len
31741 parameter. Re-write using lookup_or_add_file_to_cache_tab and
31743 * diagnostic.c (diagnostic_finish): Call
31744 diagnostic_file_cache_fini.
31745 (adjust_line): Take an additional input parameter for the length
31746 of the line, rather than calculating it with strlen.
31747 (diagnostic_show_locus): Adjust the use of
31748 location_get_source_line and adjust_line with respect to their new
31749 signature. While displaying a line now, do not stop at the first
31750 null byte. Rather, display the zero byte as a space and keep
31751 going until we reach the size of the line.
31752 * Makefile.in: Add vec.o to OBJS-libcommon
31754 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31755 Ilya Tocar <ilya.tocar@intel.com>
31757 * config/i386/avx512fintrin.h (_mm512_kmov): New.
31758 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31759 (__builtin_ia32_kmov16): Ditto.
31760 * config/i386/i386.md (UNSPEC_KMOV): New.
31763 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
31765 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31766 (_mm512_storeu_si512): Ditto.
31768 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
31771 * rtl.h (get_referenced_operands): Declare.
31772 * recog.c (get_referenced_operands): New function.
31773 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31774 operands have been referenced when recording LO_SUM references.
31776 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
31778 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31780 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31782 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31783 Enable for generic and recent AMD targets.
31785 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
31787 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31788 ARG_SIZE note when adjustment was eliminated.
31790 2014-01-22 Jeff Law <law@redhat.com>
31792 PR tree-optimization/59597
31793 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31794 in file. Accept new argument REGISTERING and use it to modify
31795 dump output appropriately.
31796 (register_jump_thread): Corresponding changes.
31797 (mark_threaded_blocks): Reinstate code to cancel unprofitable
31798 thread paths involving joiner blocks. Add code to dump cancelled
31799 jump threading paths.
31801 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
31803 PR rtl-optimization/59477
31804 * lra-constraints.c (inherit_in_ebb): Process call for living hard
31805 regs. Update reloads_num and potential_reload_hard_regs for all insns.
31807 2014-01-22 Tom Tromey <tromey@redhat.com>
31809 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31811 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31813 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31815 PR rtl-optimization/59896
31816 * lra-constraints.c (process_alt_operands): Check unused note for
31817 matched operands of insn with no output reloads.
31819 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
31821 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31822 (mips_move_from_gpr_cost): Likewise.
31824 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
31826 PR rtl-optimization/59858
31827 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31828 ira_class_hard_regs_num.
31829 (process_alt_operands): Increase reject for dying matched operand.
31831 2014-01-21 Jakub Jelinek <jakub@redhat.com>
31834 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31835 smaller than size, perform several stores or loads and stores
31836 at dst + count - size to store or copy all of size bytes, rather
31837 than just last modesize bytes.
31839 2014-01-20 DJ Delorie <dj@redhat.com>
31841 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31842 that CLOBBERs are REGs before propogating their values.
31844 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
31846 PR middle-end/59789
31847 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31848 (cgraph_inline_failed_type): New function.
31849 * cgraph.h (DEFCIFCODE): Add type.
31850 (cgraph_inline_failed_type_t): New enum.
31851 (cgraph_inline_failed_type): New prototype.
31852 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31853 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31854 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31855 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31856 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31857 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31858 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31859 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31860 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31861 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31862 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31863 OPTIMIZATION_MISMATCH.
31864 * tree-inline.c (expand_call_inline): Emit errors during
31865 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31867 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31870 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31871 mode attribute in insn output.
31873 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
31875 * output.h (output_constant): Delete.
31876 * varasm.c (output_constant): Make private.
31878 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
31880 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31882 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31884 PR middle-end/59860
31885 * tree.h (fold_builtin_strcat): New prototype.
31886 * builtins.c (fold_builtin_strcat): No longer static. Add len
31887 argument, if non-NULL, don't call c_strlen. Optimize
31888 directly into __builtin_memcpy instead of __builtin_strcpy.
31889 (fold_builtin_2): Adjust fold_builtin_strcat caller.
31890 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31892 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
31894 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31895 for SImode_address_operand operands, having only a REG argument.
31897 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
31899 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31900 loader name using mbig-endian.
31901 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31903 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31905 * doc/invoke.texi (-march): Clarify documentation for AArch64.
31906 (-mtune): Likewise.
31909 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
31911 * config/aarch64/aarch64-protos.h
31912 (aarch64_cannot_change_mode_class_ptr): Declare.
31913 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31914 aarch64_cannot_change_mode_class_ptr): New.
31915 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31916 backend hook aarch64_cannot_change_mode_class.
31918 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
31920 * common/config/aarch64/aarch64-common.c
31921 (aarch64_handle_option): Don't handle any option order logic here.
31922 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31923 selected_cpu, warn on architecture version mismatch.
31924 (aarch64_override_options): Fix parsing order for option strings.
31926 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31927 Iain Sandoe <iain@codesourcery.com>
31930 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31931 warning. Amend comment to reflect current functionality.
31933 2014-01-20 Richard Biener <rguenther@suse.de>
31935 PR middle-end/59860
31936 * builtins.c (fold_builtin_strcat): Remove case better handled
31937 by tree-ssa-strlen.c.
31939 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
31941 * config/aarch64/aarch64.opt
31942 (mcpu, march, mtune): Make case-insensitive.
31944 2014-01-20 Jakub Jelinek <jakub@redhat.com>
31947 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31948 if operands[1] is a REG or ZERO_EXTEND of a REG.
31950 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
31952 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31954 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
31956 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31957 long non-pic millicode calls.
31959 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31961 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31963 2014-01-19 Kito Cheng <kito@0xlab.org>
31965 * builtins.c (expand_movstr): Check movstr expand done or fail.
31967 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31968 H.J. Lu <hongjiu.lu@intel.com>
31971 * config/i386/i386.md (*lea<mode>): Zero-extend return register
31972 to DImode for zero-extended addresses.
31974 2014-01-19 Jakub Jelinek <jakub@redhat.com>
31976 PR rtl-optimization/57763
31977 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31978 on the new indirect jump_insn and increment LABEL_NUSES (label).
31980 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
31984 * config.gcc (x86_archs): New variable.
31985 (x86_64_archs): Likewise.
31986 (x86_cpus): Likewise.
31987 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31988 --with-arch/--with-cpu= options.
31989 Support --with-arch=/--with-cpu={nehalem,westmere,
31990 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31992 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31994 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31995 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
31997 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
31999 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32001 2014-01-18 Jakub Jelinek <jakub@redhat.com>
32004 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32005 clear cpp_get_options (parse_in)->warn_unused_macros for
32006 ix86_target_macros_internal with cpp_define.
32008 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
32010 * jump.c (delete_related_insns): Keep (use (insn))s.
32011 * reorg.c (redundant_insn): Check for barriers too.
32013 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32015 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32017 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
32019 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32020 call to $$dyncall when TARGET_LONG_CALLS is true.
32022 2014-01-17 Jeff Law <law@redhat.com>
32024 * ree.c (combine_set_extension): Temporarily disable test for
32025 changing number of hard registers.
32027 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32029 PR middle-end/58125
32030 * ipa-inline-analysis.c (inline_free_summary):
32031 Do not free summary of aliases.
32033 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32035 PR middle-end/59706
32036 * gimplify.c (gimplify_expr): Use create_tmp_var
32037 instead of create_tmp_var_raw. If cond doesn't have
32038 integral type, don't add the IFN_ANNOTATE builtin at all.
32040 2014-01-17 Martin Jambor <mjambor@suse.cz>
32043 * ipa-cp.c (prev_edge_clone): New variable.
32044 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32045 Also resize prev_edge_clone vector.
32046 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32047 (ipcp_edge_removal_hook): New function.
32048 (ipcp_driver): Register ipcp_edge_removal_hook.
32050 2014-01-17 Andrew Pinski <apinski@cavium.com>
32051 Steve Ellcey <sellcey@mips.com>
32054 * config/mips/mips.c (mips_print_operand): Check operand mode instead
32057 2014-01-17 Jeff Law <law@redhat.com>
32059 PR middle-end/57904
32060 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32061 so that pass_ccp runs first.
32063 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32065 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32066 (ix86_adjust_cost): Use !TARGET_XXX.
32067 (do_reorder_for_imul): Likewise.
32068 (swap_top_of_ready_list): Likewise.
32069 (ix86_sched_reorder): Likewise.
32071 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
32073 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32074 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
32075 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
32076 (intel_memset): New. Duplicate slm_memset.
32077 (intel_cost): New. Duplicate slm_cost.
32078 (m_INTEL): New macro.
32079 (processor_target_table): Add "intel".
32080 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32081 with PROCESSOR_INTEL for "intel".
32082 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
32083 PROCESSOR_SILVERMONT.
32084 (ix86_issue_rate): Likewise.
32085 (ix86_adjust_cost): Likewise.
32086 (ia32_multipass_dfa_lookahead): Likewise.
32087 (swap_top_of_ready_list): Likewise.
32088 (ix86_sched_reorder): Likewise.
32089 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32090 instead of TARGET_OPT_AGU.
32091 * config/i386/i386.h (TARGET_INTEL): New.
32092 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32093 (processor_type): Add PROCESSOR_INTEL.
32094 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32095 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32097 2014-01-17 Marek Polacek <polacek@redhat.com>
32100 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32103 2014-01-17 Richard Biener <rguenther@suse.de>
32105 PR tree-optimization/46590
32106 * opts.c (default_options_table): Add entries for
32107 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32108 all enabled at -O1 but not for -Og.
32109 * common.opt (fbranch-count-reg): Remove Init(1).
32110 (fmove-loop-invariants): Likewise.
32111 (ftree-pta): Likewise.
32113 2014-01-17 Jakub Jelinek <jakub@redhat.com>
32115 * config/i386/i386.c (ix86_data_alignment): For compatibility with
32116 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32117 decls to at least the GCC 4.8 used alignments.
32120 * tree-nested.c (convert_nonlocal_reference_stmt,
32121 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32122 of GIMPLE_BIND stmts, adjust associated decls.
32124 2014-01-17 Richard Biener <rguenther@suse.de>
32126 PR tree-optimization/46590
32127 * vec.h (vec<>::bseach): New member function implementing
32128 binary search according to C89 bsearch.
32129 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32130 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32131 bitmap pointer again. Make accesses_in_loop a flat array.
32132 (mem_ref_obstack): New global.
32133 (outermost_indep_loop): Adjust for mem_ref->stored changes.
32134 (mark_ref_stored): Likewise.
32135 (ref_indep_loop_p_2): Likewise.
32136 (set_ref_stored_in_loop): New helper function.
32137 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32138 (memref_free): Adjust.
32139 (record_mem_ref_loc): Simplify.
32140 (gather_mem_refs_stmt): Adjust.
32141 (sort_locs_in_loop_postorder_cmp): New function.
32142 (analyze_memory_references): Sort accesses_in_loop after
32143 loop postorder number.
32144 (find_ref_loc_in_loop_cmp): New function.
32145 (for_all_locs_in_loop): Find relevant cluster of locs in
32146 accesses_in_loop and iterate without recursion.
32147 (execute_sm): Avoid uninit warning.
32148 (struct ref_always_accessed): Simplify.
32149 (ref_always_accessed::operator ()): Likewise.
32150 (ref_always_accessed_p): Likewise.
32151 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32152 loop postorder numbers here.
32153 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32156 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
32159 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32160 on decls for which assemble_alias has been called.
32162 2014-01-17 Nick Clifton <nickc@redhat.com>
32164 * config/msp430/msp430.opt: (mcpu): New option.
32165 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32166 (msp430_option_override): Parse target_cpu. If the MCU name
32167 matches a generic string, clear target_mcu.
32168 (msp430_attr): Allow numeric interrupt values up to 63.
32169 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32170 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32172 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32174 * config/msp430/msp430.md (popm): Use %J rather than %I.
32175 (addsi3): Use msp430_nonimmediate_operand for operand 2.
32176 (addhi_cy_i): Use immediate_operand for operand 2.
32177 * doc/invoke.texi: Document -mcpu option.
32179 2014-01-17 Richard Biener <rguenther@suse.de>
32181 PR rtl-optimization/38518
32182 * df.h (df_analyze_loop): Declare.
32183 * df-core.c: Include cfgloop.h.
32184 (df_analyze_1): Split out main part of df_analyze.
32185 (df_analyze): Adjust.
32186 (loop_inverted_post_order_compute): New function.
32187 (loop_post_order_compute): Likewise.
32188 (df_analyze_loop): New function avoiding whole-function
32189 postorder computes.
32190 * loop-invariant.c (find_defs): Use df_analyze_loop.
32191 (find_invariants): Adjust.
32192 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32194 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
32196 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32197 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32199 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
32201 * ipa-ref.c (ipa_remove_stmt_references): Fix references
32202 traversal when removing references.
32204 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
32207 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32209 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
32211 PR middle-end/56791
32212 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32213 pushing a reload for an autoinc when we had previously reloaded an
32214 inner part of the address.
32216 2014-01-16 Jakub Jelinek <jakub@redhat.com>
32218 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32220 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32221 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32222 when not giving up or versioning for alias only because of
32224 (vect_analyze_data_ref_dependences): Set to true.
32225 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32227 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32228 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32231 PR middle-end/58344
32232 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32235 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32236 operand 0 predicate for gathers, use a new pseudo as subtarget.
32238 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32240 PR middle-end/59609
32241 * lra-constraints.c (process_alt_operands): Add printing debug info.
32242 Check absence of input/output reloads for matched operands too.
32244 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
32246 PR rtl-optimization/59835
32247 * ira.c (ira_init_register_move_cost): Increase cost for
32250 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
32252 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32254 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
32257 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32258 non-register objects. Use gen_(high/low)part more consistently.
32261 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
32264 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32265 endian support, remove tests for WORDS_BIG_ENDIAN.
32266 (p8_mfvsrd_3_<mode>): Likewise.
32267 (reload_gpr_from_vsx<mode>): Likewise.
32268 (reload_gpr_from_vsxsf): Likewise.
32269 (p8_mfvsrd_4_disf): Likewise.
32271 2014-01-16 Richard Biener <rguenther@suse.de>
32273 PR rtl-optimization/46590
32274 * lcm.c (compute_antinout_edge): Use postorder iteration.
32275 (compute_laterin): Use inverted postorder iteration.
32277 2014-01-16 Nick Clifton <nickc@redhat.com>
32279 PR middle-end/28865
32280 * varasm.c (output_constant): Return the number of bytes actually
32282 (output_constructor_array_range): Update the field size with the
32283 number of bytes emitted by output_constant.
32284 (output_constructor_regular_field): Likewise. Also do not
32285 complain if the total number of bytes emitted is now greater
32286 than the expected fieldpos.
32287 * output.h (output_constant): Update prototype and descriptive comment.
32289 2014-01-16 Marek Polacek <polacek@redhat.com>
32291 PR middle-end/59827
32292 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32293 it is error_mark_node.
32295 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
32297 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32298 VALID_AVX256_REG_OR_OI_MODE.
32300 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
32302 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32303 current procedure should be profiled.
32305 2014-01-15 Andrew Pinski <apinski@cavium.com>
32307 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32308 of moving from/to the STACK_REG register class.
32310 2014-01-15 Richard Henderson <rth@redhat.com>
32313 * reginfo.c (global_regs_decl): Globalize.
32314 * rtl.h (global_regs_decl): Declare.
32315 * ira.c (do_reload): Diagnose frame_pointer_needed and it
32316 reserved via global_regs.
32318 2014-01-15 Teresa Johnson <tejohnson@google.com>
32320 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32322 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
32324 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32325 and vmulosh rather than call gen_vec_widen_smult_*.
32326 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32327 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32328 (vec_widen_smult_even_v16qi): Likewise.
32329 (vec_widen_umult_even_v8hi): Likewise.
32330 (vec_widen_smult_even_v8hi): Likewise.
32331 (vec_widen_umult_odd_v16qi): Likewise.
32332 (vec_widen_smult_odd_v16qi): Likewise.
32333 (vec_widen_umult_odd_v8hi): Likewise.
32334 (vec_widen_smult_odd_v8hi): Likewise.
32335 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32336 vmuloub rather than call gen_vec_widen_umult_*.
32337 (vec_widen_umult_lo_v16qi): Likewise.
32338 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32339 vmulosb rather than call gen_vec_widen_smult_*.
32340 (vec_widen_smult_lo_v16qi): Likewise.
32341 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32342 rather than call gen_vec_widen_umult_*.
32343 (vec_widen_umult_lo_v8hi): Likewise.
32344 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32345 rather than call gen_vec_widen_smult_*.
32346 (vec_widen_smult_lo_v8hi): Likewise.
32348 2014-01-15 Jeff Law <law@redhat.com>
32350 PR tree-optimization/59747
32351 * ree.c (find_and_remove_re): Properly handle case where a second
32352 eliminated extension requires widening a copy created for elimination
32353 of a prior extension.
32354 (combine_set_extension): Ensure that the number of hard regs needed
32355 for a destination register does not change when we widen it.
32357 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
32359 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32360 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32361 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32362 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32363 (avr-*-rtems*): Likewise.
32364 (bfin*-rtems*): Likewise.
32365 (moxie-*-rtems*): Likewise.
32366 (h8300-*-rtems*): Likewise.
32367 (i[34567]86-*-rtems*): Likewise.
32368 (lm32-*-rtems*): Likewise.
32369 (m32r-*-rtems*): Likewise.
32370 (m68k-*-rtems*): Likewise.
32371 (microblaze*-*-rtems*): Likewise.
32372 (mips*-*-rtems*): Likewise.
32373 (powerpc-*-rtems*): Likewise.
32374 (sh-*-rtems*): Likewise.
32375 (sparc-*-rtems*): Likewise.
32376 (sparc64-*-rtems*): Likewise.
32377 (v850-*-rtems*): Likewise.
32378 (m32c-*-rtems*): Likewise.
32380 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
32382 PR rtl-optimization/59511
32383 * ira.c (ira_init_register_move_cost): Use memory costs for some
32384 cases of register move cost calculations.
32385 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32386 instead of BB frequency.
32387 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32388 * lra-assigns.c (find_hard_regno_for): Ditto.
32390 2014-01-15 Richard Biener <rguenther@suse.de>
32392 PR tree-optimization/59822
32393 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32394 (vectorizable_load): Use it to hoist defs of uses of invariant
32395 loads out of the loop.
32397 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32398 Kugan Vivekanandarajah <kuganv@linaro.org>
32401 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32404 2014-01-15 Richard Biener <rguenther@suse.de>
32406 PR rtl-optimization/59802
32407 * lcm.c (compute_available): Use inverted postorder to seed
32408 the initial worklist.
32410 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32413 * config/s390/s390.c (s390_preferred_reload_class): Don't return
32414 ADDR_REGS for invalid symrefs in non-PIC code.
32416 2014-01-15 Jakub Jelinek <jakub@redhat.com>
32419 * builtins.c (determine_block_size): Initialize *probable_max_size
32420 even if len_rtx is CONST_INT.
32422 2014-01-14 Andrew Pinski <apinski@cavium.com>
32424 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32425 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32426 (cortexa53_tunings): Likewise.
32427 (aarch64_sched_issue_rate): New function.
32428 (TARGET_SCHED_ISSUE_RATE): Define.
32430 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32432 * ira-costs.c (find_costs_and_classes): Add missed
32433 ira_init_register_move_cost_if_necessary.
32435 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
32438 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32440 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
32443 * config/i386/i386.c (type_natural_mode): Add a bool parameter
32444 to indicate if type is used for function return value. Warn ABI
32445 change if the vector mode isn't available for function return value.
32446 (ix86_function_arg_advance): Pass false to type_natural_mode.
32447 (ix86_function_arg): Likewise.
32448 (ix86_gimplify_va_arg): Likewise.
32449 (function_arg_32): Don't warn ABI change.
32450 (ix86_function_value): Pass true to type_natural_mode.
32451 (ix86_return_in_memory): Likewise.
32452 (ix86_struct_value_rtx): Removed.
32453 (TARGET_STRUCT_VALUE_RTX): Likewise.
32455 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32457 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32458 converting a conditional jump into a conditional return.
32460 2014-01-14 Richard Biener <rguenther@suse.de>
32462 PR tree-optimization/58921
32463 PR tree-optimization/59006
32464 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32465 hoisting invariant stmts.
32466 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32467 invariant loads on the preheader edge if possible.
32469 2014-01-14 Joey Ye <joey.ye@arm.com>
32471 * doc/plugin.texi (Building GCC plugins): Update to C++.
32473 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
32475 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32476 (_mm_rcp28_round_ss): Ditto.
32477 (_mm_rsqrt28_round_sd): Ditto.
32478 (_mm_rsqrt28_round_ss): Ditto.
32479 (_mm_rcp28_sd): Ditto.
32480 (_mm_rcp28_ss): Ditto.
32481 (_mm_rsqrt28_sd): Ditto.
32482 (_mm_rsqrt28_ss): Ditto.
32483 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32484 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32485 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32486 (IX86_BUILTIN_RCP28SD): Ditto.
32487 (IX86_BUILTIN_RCP28SS): Ditto.
32488 (IX86_BUILTIN_RSQRT28SD): Ditto.
32489 (IX86_BUILTIN_RSQRT28SS): Ditto.
32490 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32491 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32492 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32493 (ix86_expand_special_args_builtin): Expand new FTYPE.
32494 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32495 (srcp14<mode>): Make insn unary.
32496 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32497 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32498 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32499 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32500 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32501 Fix rounding: make it SAE only.
32502 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32504 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32506 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32507 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32508 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32509 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32510 (round_saeonly_mask_scalar_operand4): Ditto.
32511 (round_saeonly_mask_scalar_op3): Ditto.
32512 (round_saeonly_mask_scalar_op4): Ditto.
32514 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32516 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32517 Implement -maltivec=be for vec_insert and vec_extract.
32519 2014-01-10 DJ Delorie <dj@redhat.com>
32521 * config/msp430/msp430.md (call_internal): Don't allow memory
32522 references with SP as the base register.
32523 (call_value_internal): Likewise.
32524 * config/msp430/constraints.md (Yc): New. For memory references
32525 that don't use SP as a base register.
32527 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32528 "an integer without a # prefix"
32529 * config/msp430/msp430.md (epilogue_helper): Use it.
32531 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32534 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32535 AVX512F gather builtins.
32536 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32537 on gather decls with INTEGER_TYPE masktype.
32538 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32539 directly into the builtin rather than hoisting it before loop.
32541 PR tree-optimization/59387
32542 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32543 (scev_const_prop): If folded_casts and type has undefined overflow,
32544 use force_gimple_operand instead of force_gimple_operand_gsi and
32545 for each added stmt if it is assign with
32546 arith_code_with_undefined_signed_overflow, call
32547 rewrite_to_defined_overflow.
32548 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32549 gimple-fold.h instead.
32550 (arith_code_with_undefined_signed_overflow,
32551 rewrite_to_defined_overflow): Moved to ...
32552 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32553 rewrite_to_defined_overflow): ... here. No longer static.
32554 Include gimplify-me.h.
32555 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32556 rewrite_to_defined_overflow): New prototypes.
32558 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32560 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32562 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
32564 * builtins.c (get_object_alignment_2): Minor tweak.
32565 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32567 2014-01-13 Christian Bruel <christian.bruel@st.com>
32569 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32570 optimized non constant lengths.
32572 2014-01-13 Jakub Jelinek <jakub@redhat.com>
32575 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32576 load as __atomic_load_N if possible.
32578 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32580 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32582 (rs6000_expand_builtin): Adjust call.
32584 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
32587 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32588 * config/rs6000/rs6000.c: Include target-globals.h.
32589 (rs6000_set_current_function): Instead of doing target_reinit
32590 unconditionally, use save_target_globals_default_opts and
32591 restore_target_globals.
32593 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32595 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32596 (rs6000_expand_builtin): Handle mffs and mtfsf.
32597 (rs6000_init_builtins): Define mffs and mtfsf.
32598 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32599 (rs6000_mffs): New pattern.
32600 (rs6000_mtfsf): New pattern.
32602 2014-01-11 Bin Cheng <bin.cheng@arm.com>
32604 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32605 Start narrowing with START. Apply candidate-use pair
32606 and check overall cost in narrowing.
32607 (iv_ca_prune): Pass new argument.
32609 2014-01-10 Jeff Law <law@redhat.com>
32611 PR middle-end/59743
32612 * ree.c (combine_reaching_defs): Ensure the defining statement
32613 occurs before the extension when optimizing extensions with
32614 different source and destination hard registers.
32616 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32619 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32620 vtables into the type inheritance graph.
32622 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32624 PR rtl-optimization/59754
32625 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32626 modes in the REGNO != REGNO case.
32628 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32630 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32632 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32634 PR tree-optimization/59745
32635 * tree-predcom.c (tree_predictive_commoning_loop): Call
32636 free_affine_expand_cache if giving up because components is NULL.
32638 * target-globals.c (save_target_globals): Allocate < 4KB structs using
32639 GC in payload of target_globals struct instead of allocating them on
32640 the heap and the larger structs separately using GC.
32641 * target-globals.h (struct target_globals): Make regs, hard_regs,
32642 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32643 of GTY((skip)) and change type to void *.
32644 (reset_target_globals): Cast loads from those fields to corresponding
32647 2014-01-10 Steve Ellcey <sellcey@mips.com>
32650 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32651 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32652 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32654 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
32657 * aarch64-modes.def (CC_Zmode): New flags mode.
32658 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32659 represents an equality.
32660 (aarch64_get_condition_code): Handle CC_Zmode.
32661 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32663 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32665 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32666 extraction in good case.
32668 2014-01-10 Richard Biener <rguenther@suse.de>
32670 PR tree-optimization/59374
32671 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32672 checking after SLP discovery. Mark stmts not participating
32673 in any SLP instance properly.
32675 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32677 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32678 when handling a SET rtx.
32680 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32682 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32683 (cortex-a57): Likewise.
32684 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32686 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32688 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32689 non-iwmmxt builtins.
32691 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
32695 * ipa-devirt.c record_target_from_binfo): Take as argument
32696 stack of binfos and lookup matching one for virtual inheritance.
32697 (possible_polymorphic_call_targets_1): Update.
32699 2014-01-10 Huacai Chen <chenhc@lemote.com>
32701 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32702 kernel strings for Loongson-2E/2F/3A.
32704 2014-01-10 Jakub Jelinek <jakub@redhat.com>
32706 PR middle-end/59670
32707 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32708 is_gimple_call before calling gimple_call_internal_p.
32710 2014-01-09 Steve Ellcey <sellcey@mips.com>
32712 * Makefile.in (TREE_FLOW_H): Remove.
32713 (TREE_SSA_H): Add file names from tree-flow.h.
32714 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32715 * tree.h: Remove tree-flow.h reference.
32716 * hash-table.h: Remove tree-flow.h reference.
32717 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32718 reference with tree-ssa-loop.h.
32720 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32722 * doc/invoke.texi: Add -maltivec={be,le} options, and document
32723 default element-order behavior for -maltivec.
32724 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32725 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32726 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32727 when targeting big endian, at least for now.
32728 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32730 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32732 PR middle-end/47735
32733 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32734 var satisfies use_register_for_decl, just take into account type
32735 alignment, rather than decl alignment.
32737 PR tree-optimization/59622
32738 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
32739 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32740 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32741 Don't devirtualize for inplace at all. For targets.length () == 1,
32742 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32744 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32746 * config/i386/i386.md (cpu): Remove the unused btver1.
32748 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
32750 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32752 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32755 * tree-core.h (struct target_globals): New forward declaration.
32756 (struct tree_target_option): Add globals field.
32757 * tree.h (TREE_TARGET_GLOBALS): Define.
32758 (prepare_target_option_nodes_for_pch): New prototype.
32759 * target-globals.h (struct target_globals): Define even if
32760 !SWITCHABLE_TARGET.
32761 * tree.c (prepare_target_option_node_for_pch,
32762 prepare_target_option_nodes_for_pch): New functions.
32763 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32764 * config/i386/i386.c: Include target-globals.h.
32765 (ix86_set_current_function): Instead of doing target_reinit
32766 unconditionally, use save_target_globals_default_opts and
32767 restore_target_globals.
32769 2014-01-09 Richard Biener <rguenther@suse.de>
32771 PR tree-optimization/59715
32772 * tree-cfg.h (split_critical_edges): Declare.
32773 * tree-cfg.c (split_critical_edges): Export.
32774 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32776 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
32778 * cfgexpand.c (expand_stack_vars): Optionally disable
32779 asan stack protection.
32780 (expand_used_vars): Likewise.
32781 (partition_stack_vars): Likewise.
32782 * asan.c (asan_emit_stack_protection): Optionally disable
32783 after return stack usage.
32784 (instrument_derefs): Optionally disable memory access instrumentation.
32785 (instrument_builtin_call): Likewise.
32786 (instrument_strlen_call): Likewise.
32787 (asan_protect_global): Optionally disable global variables protection.
32788 * doc/invoke.texi: Added doc for new options.
32789 * params.def: Added new options.
32790 * params.h: Likewise.
32792 2014-01-09 Jakub Jelinek <jakub@redhat.com>
32794 PR rtl-optimization/59724
32795 * ifcvt.c (cond_exec_process_if_block): Don't call
32796 flow_find_head_matching_sequence with 0 longest_match.
32797 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32798 non-active insns if !stop_after.
32799 (try_head_merge_bb): Revert 2014-01-07 changes.
32801 2014-01-08 Jeff Law <law@redhat.com>
32803 * ree.c (get_sub_rtx): New function, extracted from...
32804 (merge_def_and_ext): Here.
32805 (combine_reaching_defs): Use get_sub_rtx.
32807 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
32809 * cgraph.h (varpool_variable_node): Do not choke on null node.
32811 2014-01-08 Catherine Moore <clm@codesourcery.com>
32813 * config/mips/mips.md (simple_return): Attempt to use JRC
32815 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32817 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32819 PR rtl-optimization/59137
32820 * reorg.c (steal_delay_list_from_target): Call update_block for
32822 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32824 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32826 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32827 two duplicate entries.
32829 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
32832 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
32834 * config/mips/mips.c (mips_truncated_op_cost): New function.
32835 (mips_rtx_costs): Adjust test for BADDU.
32836 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32838 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
32840 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32841 (*baddu_si): ...this new pattern.
32843 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32846 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32848 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
32850 PR middle-end/57748
32851 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32853 (expand_expr, expand_normal): Adjust.
32854 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32855 inner_reference_p. Use inner_reference_p to expand inner references.
32856 (store_expr): Adjust.
32857 * cfgexpand.c (expand_call_stmt): Adjust.
32859 2014-01-08 Rong Xu <xur@google.com>
32861 * gcov-io.c (gcov_var): Move from gcov-io.h.
32862 (gcov_position): Ditto.
32863 (gcov_is_error): Ditto.
32864 (gcov_rewrite): Ditto.
32865 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32866 only part to libgcc/libgcov.h.
32868 2014-01-08 Marek Polacek <polacek@redhat.com>
32870 PR middle-end/59669
32871 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32873 2014-01-08 Marek Polacek <polacek@redhat.com>
32876 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32878 2014-01-08 Jakub Jelinek <jakub@redhat.com>
32880 PR rtl-optimization/59649
32881 * stor-layout.c (get_mode_bounds): For BImode return
32882 0 and STORE_FLAG_VALUE.
32884 2014-01-08 Richard Biener <rguenther@suse.de>
32886 PR middle-end/59630
32887 * gimple.h (is_gimple_builtin_call): Remove.
32888 (gimple_builtin_call_types_compatible_p): New.
32889 (gimple_call_builtin_p): New overload.
32890 * gimple.c (is_gimple_builtin_call): Remove.
32891 (validate_call): Rename to ...
32892 (gimple_builtin_call_types_compatible_p): ... this and export. Also
32893 check return types.
32894 (validate_type): New static function.
32895 (gimple_call_builtin_p): New overload and adjust.
32896 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32897 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
32898 (gimple_fold_stmt_to_constant_1): Likewise.
32899 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32901 2014-01-08 Richard Biener <rguenther@suse.de>
32903 PR middle-end/59471
32904 * gimplify.c (gimplify_expr): Gimplify register-register type
32905 VIEW_CONVERT_EXPRs to separate stmts.
32907 2014-01-07 Jeff Law <law@redhat.com>
32909 PR middle-end/53623
32910 * ree.c (combine_set_extension): Handle case where source
32911 and destination registers in an extension insn are different.
32912 (combine_reaching_defs): Allow source and destination registers
32913 in extension to be different under limited circumstances.
32914 (add_removable_extension): Remove restriction that the
32915 source and destination registers in the extension are the same.
32916 (find_and_remove_re): Emit a copy from the extension's
32917 destination to its source after the defining insn if
32918 the source and destination registers are different.
32920 PR middle-end/59285
32921 * ifcvt.c (merge_if_block): If we are merging a block with more than
32922 one successor with a block with no successors, remove any BARRIER
32923 after the second block.
32925 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
32927 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32929 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
32932 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32933 for 14-bit register offsets when INT14_OK_STRICT is false.
32935 2014-01-07 Roland Stigge <stigge@antcom.de>
32936 Michael Meissner <meissner@linux.vnet.ibm.com>
32939 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32940 Only check TFmode for SPE constants. Don't check TImode or TDmode.
32942 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
32944 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32947 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
32949 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32950 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32951 rtx is const0_rtx or not.
32953 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
32956 * target-globals.c (save_target_globals): Remove this_fn_optab
32958 * toplev.c: Include optabs.h.
32959 (target_reinit): Temporarily restore the global options if another
32960 set of options are in force.
32962 2014-01-07 Jakub Jelinek <jakub@redhat.com>
32964 PR rtl-optimization/58668
32965 * cfgcleanup.c (flow_find_cross_jump): Don't count
32966 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
32967 to determine what is counted.
32968 (flow_find_head_matching_sequence): Use active_insn_p to determine
32970 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32972 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32973 determine what is counted.
32975 PR tree-optimization/59643
32976 * tree-predcom.c (split_data_refs_to_components): If one dr is
32977 read and one write, determine_offset fails and the write isn't
32978 in the bad component, just put the read into the bad component.
32980 2014-01-07 Mike Stump <mikestump@comcast.net>
32981 Jakub Jelinek <jakub@redhat.com>
32984 * tree-core.h (struct tree_optimization_option): Change optabs
32985 type from unsigned char * to void *.
32986 * optabs.c (init_tree_optimization_optabs): Adjust
32987 TREE_OPTIMIZATION_OPTABS initialization.
32989 2014-01-06 Jakub Jelinek <jakub@redhat.com>
32992 * config/i386/i386.h (struct machine_function): Add
32993 no_drap_save_restore field.
32994 * config/i386/i386.c (ix86_save_reg): Use
32995 !cfun->machine->no_drap_save_restore instead of
32996 crtl->stack_realign_needed.
32997 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32998 this function clears frame_pointer_needed. Set
32999 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33000 and DRAP reg is needed.
33002 2014-01-06 Marek Polacek <polacek@redhat.com>
33005 * doc/implement-c.texi: Mention that other integer types are
33006 permitted as bit-field types in strictly conforming mode.
33008 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
33010 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33011 is newly allocated.
33013 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
33015 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33017 2014-01-06 Martin Jambor <mjambor@suse.cz>
33020 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33022 * ipa-prop.c (ipa_print_node_params): Fix indentation.
33024 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
33028 * var-tracking.c (add_stores): Preserve the value of the source even if
33029 we don't record the store.
33031 2014-01-06 Terry Guo <terry.guo@arm.com>
33033 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33035 2014-01-05 Iain Sandoe <iain@codesourcery.com>
33038 * config/darwin.c (darwin_function_section): Adjust return values to
33039 correspond to optimisation changes made in r206070.
33041 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
33043 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33044 from prefetch_block tune setting.
33045 (nocona_cost): Correct size of prefetch block to 64.
33047 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
33049 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33050 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33051 used to save the static chain register in the computation of the offset
33052 from which the FP registers need to be restored.
33054 2014-01-04 Jakub Jelinek <jakub@redhat.com>
33056 PR tree-optimization/59519
33057 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33058 ICE if get_current_def (current_new_name) is already non-NULL, as long
33059 as it is a phi result of some other phi in *new_exit_bb that has
33062 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33063 or vmovdqu* for misaligned_operand.
33064 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33065 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33066 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33067 aligned_mem for AVX512F masked aligned load and store builtins and for
33068 non-temporal moves.
33070 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
33072 PR tree-optimization/59651
33073 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33074 Address range for negative step should be added by TYPE_SIZE_UNIT.
33076 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
33078 * config/m68k/m68k.c (handle_move_double): Handle pushes with
33079 overlapping registers also for registers other than the stack pointer.
33081 2014-01-03 Marek Polacek <polacek@redhat.com>
33084 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33087 2014-01-03 Jakub Jelinek <jakub@redhat.com>
33090 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33093 * config/i386/i386.md (MODE_SIZE): New mode attribute.
33094 (push splitter): Use <P:MODE_SIZE> instead of
33095 GET_MODE_SIZE (<P:MODE>mode).
33096 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33097 (mov -1, reg peephole2): Likewise.
33098 * config/i386/sse.md (*mov<mode>_internal,
33099 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33100 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33101 *<code><mode>3, *andnot<mode>3<mask_name>,
33102 <mask_codefor><code><mode>3<mask_name>): Likewise.
33103 * config/i386/subst.md (mask_mode512bit_condition,
33104 sd_mask_mode512bit_condition): Likewise.
33106 2014-01-02 Xinliang David Li <davidxl@google.com>
33108 PR tree-optimization/59303
33109 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33110 (dump_predicates): Better output format.
33111 (pred_equal_p): New function.
33112 (is_neq_relop_p): Ditto.
33113 (is_neq_zero_form_p): Ditto.
33114 (pred_expr_equal_p): Ditto.
33115 (pred_neg_p): Ditto.
33116 (simplify_pred): Ditto.
33117 (simplify_preds_2): Ditto.
33118 (simplify_preds_3): Ditto.
33119 (simplify_preds_4): Ditto.
33120 (simplify_preds): Ditto.
33121 (push_pred): Ditto.
33122 (push_to_worklist): Ditto.
33123 (get_pred_info_from_cmp): Ditto.
33124 (is_degenerated_phi): Ditto.
33125 (normalize_one_pred_1): Ditto.
33126 (normalize_one_pred): Ditto.
33127 (normalize_one_pred_chain): Ditto.
33128 (normalize_preds): Ditto.
33129 (normalize_cond_1): Remove function.
33130 (normalize_cond): Ditto.
33131 (is_gcond_subset_of): Ditto.
33132 (is_subset_of_any): Ditto.
33133 (is_or_set_subset_of): Ditto.
33134 (is_and_set_subset_of): Ditto.
33135 (is_norm_cond_subset_of): Ditto.
33136 (pred_chain_length_cmp): Ditto.
33137 (convert_control_dep_chain_into_preds): Type change.
33138 (find_predicates): Ditto.
33139 (find_def_preds): Ditto.
33140 (destroy_predicates_vecs): Ditto.
33141 (find_matching_predicates_in_rest_chains): Ditto.
33142 (use_pred_not_overlap_with_undef_path_pred): Ditto.
33143 (is_pred_expr_subset): Ditto.
33144 (is_pred_chain_subset_of): Ditto.
33145 (is_included_in): Ditto.
33146 (is_superset_of): Ditto.
33148 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33150 Update copyright years.
33152 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
33154 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33155 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33156 config/arc/arc.md, config/arc/arc.opt,
33157 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33158 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33159 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33160 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33161 config/linux-protos.h, config/linux.c, config/winnt-c.c,
33162 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33163 vtable-verify.c, vtable-verify.h: Use the standard form for the
33166 2014-01-02 Tobias Burnus <burnus@net-b.de>
33168 * gcc.c (process_command): Update copyright notice dates.
33169 * gcov-dump.c: Ditto.
33171 * doc/cpp.texi: Bump @copying's copyright year.
33172 * doc/cppinternals.texi: Ditto.
33173 * doc/gcc.texi: Ditto.
33174 * doc/gccint.texi: Ditto.
33175 * doc/gcov.texi: Ditto.
33176 * doc/install.texi: Ditto.
33177 * doc/invoke.texi: Ditto.
33179 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33181 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33183 2014-01-01 Jakub Jelinek <jakub@redhat.com>
33185 * config/i386/sse.md (*mov<mode>_internal): Guard
33186 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33188 PR rtl-optimization/59647
33189 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33190 new_rtx into UNSIGNED_FLOAT rtxes.
33192 Copyright (C) 2014 Free Software Foundation, Inc.
33194 Copying and distribution of this file, with or without modification,
33195 are permitted in any medium without royalty provided the copyright
33196 notice and this notice are preserved.